From 1d6e242b297c8d0876a54af188da564777c03a25 Mon Sep 17 00:00:00 2001 From: zeim839 Date: Thu, 24 Oct 2024 21:30:18 -0400 Subject: [PATCH] Initial commit --- LICENSE | 7 + Makefile.in | 64 + README.md | 1 + configure | 5451 +++++++++++++++++++++++++++++++++++++++++ configure.ac | 24 + install-sh | 541 ++++ src/Makefile.in | 61 + src/audio/Makefile.in | 18 + src/audio/apu.c | 505 ++++ src/audio/apu.h | 57 + src/audio/audio.c | 43 + src/audio/audio.h | 52 + src/audio/biquad.c | 145 ++ src/audio/biquad.h | 35 + src/audio/dmc.c | 46 + src/audio/dmc.h | 40 + src/audio/noise.c | 49 + src/audio/noise.h | 26 + src/audio/pulse.c | 79 + src/audio/pulse.h | 32 + src/audio/triangle.c | 58 + src/audio/triangle.h | 27 + src/bus.c | 258 ++ src/bus.h | 87 + src/config.h.in | 63 + src/cpu6502.c | 709 ++++++ src/cpu6502.h | 142 ++ src/emulator.c | 189 ++ src/emulator.h | 50 + src/font.c | 3883 +++++++++++++++++++++++++++++ src/gfx.c | 108 + src/gfx.h | 29 + src/joypad.c | 91 + src/joypad.h | 35 + src/log.c | 30 + src/log.h | 20 + src/main.c | 101 + src/mapper.c | 196 ++ src/mapper.h | 54 + src/ppu.c | 453 ++++ src/ppu.h | 111 + src/system.h | 27 + src/timerx.c | 65 + src/timerx.h | 22 + 44 files changed, 14084 insertions(+) create mode 100644 LICENSE create mode 100644 Makefile.in create mode 100644 README.md create mode 100755 configure create mode 100644 configure.ac create mode 100755 install-sh create mode 100644 src/Makefile.in create mode 100644 src/audio/Makefile.in create mode 100644 src/audio/apu.c create mode 100644 src/audio/apu.h create mode 100644 src/audio/audio.c create mode 100644 src/audio/audio.h create mode 100644 src/audio/biquad.c create mode 100644 src/audio/biquad.h create mode 100644 src/audio/dmc.c create mode 100644 src/audio/dmc.h create mode 100644 src/audio/noise.c create mode 100644 src/audio/noise.h create mode 100644 src/audio/pulse.c create mode 100644 src/audio/pulse.h create mode 100644 src/audio/triangle.c create mode 100644 src/audio/triangle.h create mode 100644 src/bus.c create mode 100644 src/bus.h create mode 100644 src/config.h.in create mode 100644 src/cpu6502.c create mode 100644 src/cpu6502.h create mode 100644 src/emulator.c create mode 100644 src/emulator.h create mode 100644 src/font.c create mode 100644 src/gfx.c create mode 100644 src/gfx.h create mode 100644 src/joypad.c create mode 100644 src/joypad.h create mode 100644 src/log.c create mode 100644 src/log.h create mode 100644 src/main.c create mode 100644 src/mapper.c create mode 100644 src/mapper.h create mode 100644 src/ppu.c create mode 100644 src/ppu.h create mode 100644 src/system.h create mode 100644 src/timerx.c create mode 100644 src/timerx.h diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..62ea322 --- /dev/null +++ b/LICENSE @@ -0,0 +1,7 @@ +Copyright 2024 Michail Zeipekki + +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. \ No newline at end of file diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..018c774 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,64 @@ +# @configure_input@ + +# Package-specific substitution variables +package = @PACKAGE_NAME@ +version = @PACKAGE_VERSION@ +tarname = @PACKAGE_TARNAME@ +distdir = $(tarname)-$(version) + +# Prefix-specific substitution variables. +prefix = @prefix@ +exec_prefix = @exec_prefix@ +bindir = @bindir@ + +all clean install uninstall: + cd src && $(MAKE) $@ + +dist: $(distdir).tar.gz + +$(distdir).tar.gz: $(distdir) + tar chof - $(distdir) | gzip -9 -c > $@ + rm -rf $(distdir) + +$(distdir): FORCE + mkdir -p $(distdir)/src + mkdir -p $(distdir)/src/audio + + cp configure.ac $(distdir) + cp configure $(distdir) + + cp Makefile.in $(distdir) + cp src/Makefile.in $(distdir)/src + cp src/audio/Makefile.in $(distdir)/src/audio + + cp src/*.c $(distdir)/src + cp src/*.h $(distdir)/src + cp src/audio/*.c $(distdir)/src/audio + cp src/audio/*.h $(distdir)/src/audio + +distcheck: $(distdir).tar.gz + gzip -cd $(distdir).tar.gz | tar xvf - + cd $(distdir) && ./configure + cd $(distdir) && $(MAKE) all + cd $(distdir) && $(MAKE) DESTDIR=$${PWD}/_inst install + cd $(distdir) && $(MAKE) DESTDIR=$${PWD}/_inst uninstall + @remaining="`find $${PWD}/$(distdir)/_inst -type f | wc -l`"; \ + if test "$${remaining}" -ne 0; then \ + echo "*** $${remaining} file(s) remaining in stage directory!"; \ + exit 1; \ + fi + cd $(distdir) && $(MAKE) clean + rm -rf $(distdir) + @echo "*** Package $(distdir).tar.gz is ready for distribution." + +Makefile: Makefile.in config.status + ./config.status $@ + +config.status: configure + ./config.status --recheck + +FORCE: + -rm $(distdir).tar.gz >/dev/null 2>&1 + -rm -rf $(distdir) >/dev/null 2>&1 + +.PHONY: FORCE all clean dist distcheck install uninstall diff --git a/README.md b/README.md new file mode 100644 index 0000000..f6981f2 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# nes-tools diff --git a/configure b/configure new file mode 100755 index 0000000..2e06a72 --- /dev/null +++ b/configure @@ -0,0 +1,5451 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.71 for nes-tools 0.1. +# +# +# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, +# Inc. +# +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +as_nop=: +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else $as_nop + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + + +# Reset variables that may have inherited troublesome values from +# the environment. + +# IFS needs to be set, to space, tab, and newline, in precisely that order. +# (If _AS_PATH_WALK were called with IFS unset, it would have the +# side effect of setting IFS to empty, thus disabling word splitting.) +# Quoting is to prevent editors from complaining about space-tab. +as_nl=' +' +export as_nl +IFS=" "" $as_nl" + +PS1='$ ' +PS2='> ' +PS4='+ ' + +# Ensure predictable behavior from utilities with locale-dependent output. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# We cannot yet rely on "unset" to work, but we need these variables +# to be unset--not just set to an empty or harmless value--now, to +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct +# also avoids known problems related to "unset" and subshell syntax +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH +do eval test \${$as_var+y} \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done + +# Ensure that fds 0, 1, and 2 are open. +if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi + +# The user is always right. +if ${PATH_SEPARATOR+false} :; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + test -r "$as_dir$0" && as_myself=$as_dir$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + + +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} +if test "x$CONFIG_SHELL" = x; then + as_bourne_compatible="as_nop=: +if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else \$as_nop + case \`(set -o) 2>/dev/null\` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi +" + as_required="as_fn_return () { (exit \$1); } +as_fn_success () { as_fn_return 0; } +as_fn_failure () { as_fn_return 1; } +as_fn_ret_success () { return 0; } +as_fn_ret_failure () { return 1; } + +exitcode=0 +as_fn_success || { exitcode=1; echo as_fn_success failed.; } +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } +if ( set x; as_fn_ret_success y && test x = \"\$1\" ) +then : + +else \$as_nop + exitcode=1; echo positional parameters were not saved. +fi +test x\$exitcode = x0 || exit 1 +blah=\$(echo \$(echo blah)) +test x\"\$blah\" = xblah || exit 1 +test -x / || exit 1" + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" + if (eval "$as_required") 2>/dev/null +then : + as_have_required=yes +else $as_nop + as_have_required=no +fi + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null +then : + +else $as_nop + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + as_found=: + case $as_dir in #( + /*) + for as_base in sh bash ksh sh5; do + # Try only shells that exist, to save several forks. + as_shell=$as_dir$as_base + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null +then : + CONFIG_SHELL=$as_shell as_have_required=yes + if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null +then : + break 2 +fi +fi + done;; + esac + as_found=false +done +IFS=$as_save_IFS +if $as_found +then : + +else $as_nop + if { test -f "$SHELL" || test -f "$SHELL.exe"; } && + as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null +then : + CONFIG_SHELL=$SHELL as_have_required=yes +fi +fi + + + if test "x$CONFIG_SHELL" != x +then : + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 +fi + + if test x$as_have_required = xno +then : + printf "%s\n" "$0: This script requires a shell more modern than all" + printf "%s\n" "$0: the shells that I found on your system." + if test ${ZSH_VERSION+y} ; then + printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" + printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." + else + printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, +$0: including any error possibly output before this +$0: message. Then install a modern shell, or manually run +$0: the script under such a shell if you do have one." + fi + exit 1 +fi +fi +fi +SHELL=${CONFIG_SHELL-/bin/sh} +export SHELL +# Unset more variables known to interfere with behavior of common tools. +CLICOLOR_FORCE= GREP_OPTIONS= +unset CLICOLOR_FORCE GREP_OPTIONS + +## --------------------- ## +## M4sh Shell Functions. ## +## --------------------- ## +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit +# as_fn_nop +# --------- +# Do nothing but, unlike ":", preserve the value of $?. +as_fn_nop () +{ + return $? +} +as_nop=as_fn_nop + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +printf "%s\n" X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null +then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else $as_nop + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null +then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else $as_nop + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + +# as_fn_nop +# --------- +# Do nothing but, unlike ":", preserve the value of $?. +as_fn_nop () +{ + return $? +} +as_nop=as_fn_nop + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + printf "%s\n" "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +printf "%s\n" X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + + as_lineno_1=$LINENO as_lineno_1a=$LINENO + as_lineno_2=$LINENO as_lineno_2a=$LINENO + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + + +# Determine whether it's possible to make 'echo' print without a newline. +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed +# for compatibility with existing Makefiles. +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +# For backward compatibility with old third-party macros, we provide +# the shell variables $as_echo and $as_echo_n. New code should use +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. +as_echo='printf %s\n' +as_echo_n='printf %s' + + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +test -n "$DJDIR" || exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= + +# Identity of this package. +PACKAGE_NAME='nes-tools' +PACKAGE_TARNAME='nes-tools' +PACKAGE_VERSION='0.1' +PACKAGE_STRING='nes-tools 0.1' +PACKAGE_BUGREPORT='' +PACKAGE_URL='' + +ac_unique_file="src/cpu6502.c" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_STDIO_H +# include +#endif +#ifdef HAVE_STDLIB_H +# include +#endif +#ifdef HAVE_STRING_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_header_c_list= +ac_subst_vars='LTLIBOBJS +LIBOBJS +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +OBJEXT +EXEEXT +ac_ct_CC +CPPFLAGS +LDFLAGS +CFLAGS +CC +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +runstatedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_URL +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +' + ac_precious_vars='build_alias +host_alias +target_alias +CC +CFLAGS +LDFLAGS +LIBS +CPPFLAGS' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +runstatedir='${localstatedir}/run' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *=) ac_optarg= ;; + *) ac_optarg=yes ;; + esac + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: \`$ac_useropt'" + ac_useropt_orig=$ac_useropt + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid feature name: \`$ac_useropt'" + ac_useropt_orig=$ac_useropt + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -runstatedir | --runstatedir | --runstatedi | --runstated \ + | --runstate | --runstat | --runsta | --runst | --runs \ + | --run | --ru | --r) + ac_prev=runstatedir ;; + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ + | --run=* | --ru=* | --r=*) + runstatedir=$ac_optarg ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: \`$ac_useropt'" + ac_useropt_orig=$ac_useropt + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + as_fn_error $? "invalid package name: \`$ac_useropt'" + ac_useropt_orig=$ac_useropt + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) as_fn_error $? "unrecognized option: \`$ac_option' +Try \`$0 --help' for more information" + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + case $ac_envvar in #( + '' | [0-9]* | *[!_$as_cr_alnum]* ) + as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; + esac + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + as_fn_error $? "missing argument to $ac_option" +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; + *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir runstatedir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + as_fn_error $? "working directory cannot be determined" +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + as_fn_error $? "pwd does not report name of working directory" + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +printf "%s\n" X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures nes-tools 0.1 to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking ...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/nes-tools] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF +_ACEOF +fi + +if test -n "$ac_init_help"; then + case $ac_init_help in + short | recursive ) echo "Configuration of nes-tools 0.1:";; + esac + cat <<\_ACEOF + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +Report bugs to the package provider. +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for configure.gnu first; this name is used for a wrapper for + # Metaconfig's "Configure" on case-insensitive file systems. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +nes-tools configure 0.1 +generated by GNU Autoconf 2.71 + +Copyright (C) 2021 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi + +## ------------------------ ## +## Autoconf initialization. ## +## ------------------------ ## + +# ac_fn_c_try_compile LINENO +# -------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_c_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext conftest.beam + if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext +then : + ac_retval=0 +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=1 +fi + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_c_try_compile + +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES +# ------------------------------------------------------- +# Tests whether HEADER exists and can be compiled using the include files in +# INCLUDES, setting the cache variable VAR accordingly. +ac_fn_c_check_header_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 +printf %s "checking for $2... " >&6; } +if eval test \${$3+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$4 +#include <$2> +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + eval "$3=yes" +else $as_nop + eval "$3=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +eval ac_res=\$$3 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +printf "%s\n" "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_check_header_compile +ac_configure_args_raw= +for ac_arg +do + case $ac_arg in + *\'*) + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append ac_configure_args_raw " '$ac_arg'" +done + +case $ac_configure_args_raw in + *$as_nl*) + ac_safe_unquote= ;; + *) + ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. + ac_unsafe_a="$ac_unsafe_z#~" + ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" + ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; +esac + +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by nes-tools $as_me 0.1, which was +generated by GNU Autoconf 2.71. Invocation command line was + + $ $0$ac_configure_args_raw + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + printf "%s\n" "PATH: $as_dir" + done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; + 2) + as_fn_append ac_configure_args1 " '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + as_fn_append ac_configure_args " '$ac_arg'" + ;; + esac + done +done +{ ac_configure_args0=; unset ac_configure_args0;} +{ ac_configure_args1=; unset ac_configure_args1;} + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Sanitize IFS. + IFS=" "" $as_nl" + # Save into config.log some information that might help in debugging. + { + echo + + printf "%s\n" "## ---------------- ## +## Cache variables. ## +## ---------------- ##" + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + printf "%s\n" "## ----------------- ## +## Output variables. ## +## ----------------- ##" + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + printf "%s\n" "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + printf "%s\n" "## ------------------- ## +## File substitutions. ## +## ------------------- ##" + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + printf "%s\n" "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + printf "%s\n" "## ----------- ## +## confdefs.h. ## +## ----------- ##" + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + printf "%s\n" "$as_me: caught signal $ac_signal" + printf "%s\n" "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +printf "%s\n" "/* confdefs.h */" > confdefs.h + +# Predefined preprocessor variables. + +printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h + +printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h + +printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h + +printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h + +printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h + +printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +if test -n "$CONFIG_SITE"; then + ac_site_files="$CONFIG_SITE" +elif test "x$prefix" != xNONE; then + ac_site_files="$prefix/share/config.site $prefix/etc/config.site" +else + ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" +fi + +for ac_site_file in $ac_site_files +do + case $ac_site_file in #( + */*) : + ;; #( + *) : + ac_site_file=./$ac_site_file ;; +esac + if test -f "$ac_site_file" && test -r "$ac_site_file"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 +printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" \ + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "failed to load site script $ac_site_file +See \`config.log' for more details" "$LINENO" 5; } + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special files + # actually), so we avoid doing that. DJGPP emulates it as a regular file. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 +printf "%s\n" "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 +printf "%s\n" "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Test code for whether the C compiler supports C89 (global declarations) +ac_c_conftest_c89_globals=' +/* Does the compiler advertise C89 conformance? + Do not test the value of __STDC__, because some compilers set it to 0 + while being otherwise adequately conformant. */ +#if !defined __STDC__ +# error "Compiler does not advertise C89 conformance" +#endif + +#include +#include +struct stat; +/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ +struct buf { int x; }; +struct buf * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not \xHH hex character constants. + These do not provoke an error unfortunately, instead are silently treated + as an "x". The following induces an error, until -std is added to get + proper ANSI mode. Curiously \x00 != x always comes out true, for an + array size at least. It is necessary to write \x00 == 0 to get something + that is true only with -std. */ +int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) '\''x'\'' +int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), + int, int);' + +# Test code for whether the C compiler supports C89 (body of main). +ac_c_conftest_c89_main=' +ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); +' + +# Test code for whether the C compiler supports C99 (global declarations) +ac_c_conftest_c99_globals=' +// Does the compiler advertise C99 conformance? +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L +# error "Compiler does not advertise C99 conformance" +#endif + +#include +extern int puts (const char *); +extern int printf (const char *, ...); +extern int dprintf (int, const char *, ...); +extern void *malloc (size_t); + +// Check varargs macros. These examples are taken from C99 6.10.3.5. +// dprintf is used instead of fprintf to avoid needing to declare +// FILE and stderr. +#define debug(...) dprintf (2, __VA_ARGS__) +#define showlist(...) puts (#__VA_ARGS__) +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) +static void +test_varargs_macros (void) +{ + int x = 1234; + int y = 5678; + debug ("Flag"); + debug ("X = %d\n", x); + showlist (The first, second, and third items.); + report (x>y, "x is %d but y is %d", x, y); +} + +// Check long long types. +#define BIG64 18446744073709551615ull +#define BIG32 4294967295ul +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) +#if !BIG_OK + #error "your preprocessor is broken" +#endif +#if BIG_OK +#else + #error "your preprocessor is broken" +#endif +static long long int bignum = -9223372036854775807LL; +static unsigned long long int ubignum = BIG64; + +struct incomplete_array +{ + int datasize; + double data[]; +}; + +struct named_init { + int number; + const wchar_t *name; + double average; +}; + +typedef const char *ccp; + +static inline int +test_restrict (ccp restrict text) +{ + // See if C++-style comments work. + // Iterate through items via the restricted pointer. + // Also check for declarations in for loops. + for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) + continue; + return 0; +} + +// Check varargs and va_copy. +static bool +test_varargs (const char *format, ...) +{ + va_list args; + va_start (args, format); + va_list args_copy; + va_copy (args_copy, args); + + const char *str = ""; + int number = 0; + float fnumber = 0; + + while (*format) + { + switch (*format++) + { + case '\''s'\'': // string + str = va_arg (args_copy, const char *); + break; + case '\''d'\'': // int + number = va_arg (args_copy, int); + break; + case '\''f'\'': // float + fnumber = va_arg (args_copy, double); + break; + default: + break; + } + } + va_end (args_copy); + va_end (args); + + return *str && number && fnumber; +} +' + +# Test code for whether the C compiler supports C99 (body of main). +ac_c_conftest_c99_main=' + // Check bool. + _Bool success = false; + success |= (argc != 0); + + // Check restrict. + if (test_restrict ("String literal") == 0) + success = true; + char *restrict newvar = "Another string"; + + // Check varargs. + success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); + test_varargs_macros (); + + // Check flexible array members. + struct incomplete_array *ia = + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); + ia->datasize = 10; + for (int i = 0; i < ia->datasize; ++i) + ia->data[i] = i * 1.234; + + // Check named initializers. + struct named_init ni = { + .number = 34, + .name = L"Test wide string", + .average = 543.34343, + }; + + ni.number = 58; + + int dynamic_array[ni.number]; + dynamic_array[0] = argv[0][0]; + dynamic_array[ni.number - 1] = 543; + + // work around unused variable warnings + ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' + || dynamic_array[ni.number - 1] != 543); +' + +# Test code for whether the C compiler supports C11 (global declarations) +ac_c_conftest_c11_globals=' +// Does the compiler advertise C11 conformance? +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L +# error "Compiler does not advertise C11 conformance" +#endif + +// Check _Alignas. +char _Alignas (double) aligned_as_double; +char _Alignas (0) no_special_alignment; +extern char aligned_as_int; +char _Alignas (0) _Alignas (int) aligned_as_int; + +// Check _Alignof. +enum +{ + int_alignment = _Alignof (int), + int_array_alignment = _Alignof (int[100]), + char_alignment = _Alignof (char) +}; +_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); + +// Check _Noreturn. +int _Noreturn does_not_return (void) { for (;;) continue; } + +// Check _Static_assert. +struct test_static_assert +{ + int x; + _Static_assert (sizeof (int) <= sizeof (long int), + "_Static_assert does not work in struct"); + long int y; +}; + +// Check UTF-8 literals. +#define u8 syntax error! +char const utf8_literal[] = u8"happens to be ASCII" "another string"; + +// Check duplicate typedefs. +typedef long *long_ptr; +typedef long int *long_ptr; +typedef long_ptr long_ptr; + +// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. +struct anonymous +{ + union { + struct { int i; int j; }; + struct { int k; long int l; } w; + }; + int m; +} v1; +' + +# Test code for whether the C compiler supports C11 (body of main). +ac_c_conftest_c11_main=' + _Static_assert ((offsetof (struct anonymous, i) + == offsetof (struct anonymous, w.k)), + "Anonymous union alignment botch"); + v1.i = 2; + v1.w.k = 5; + ok |= v1.i != 5; +' + +# Test code for whether the C compiler supports C11 (complete). +ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} +${ac_c_conftest_c99_globals} +${ac_c_conftest_c11_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + ${ac_c_conftest_c99_main} + ${ac_c_conftest_c11_main} + return ok; +} +" + +# Test code for whether the C compiler supports C99 (complete). +ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} +${ac_c_conftest_c99_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + ${ac_c_conftest_c99_main} + return ok; +} +" + +# Test code for whether the C compiler supports C89 (complete). +ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + return ok; +} +" + +as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" +as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" +as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" +as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" +as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" +as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" +as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" +as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" +as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" + +# Auxiliary files required by this configure script. +ac_aux_files="install-sh" + +# Locations in which to look for auxiliary files. +ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." + +# Search for a directory containing all of the required auxiliary files, +# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. +# If we don't find one directory that contains all the files we need, +# we report the set of missing files from the *first* directory in +# $ac_aux_dir_candidates and give up. +ac_missing_aux_files="" +ac_first_candidate=: +printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +as_found=false +for as_dir in $ac_aux_dir_candidates +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + as_found=: + + printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 + ac_aux_dir_found=yes + ac_install_sh= + for ac_aux in $ac_aux_files + do + # As a special case, if "install-sh" is required, that requirement + # can be satisfied by any of "install-sh", "install.sh", or "shtool", + # and $ac_install_sh is set appropriately for whichever one is found. + if test x"$ac_aux" = x"install-sh" + then + if test -f "${as_dir}install-sh"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 + ac_install_sh="${as_dir}install-sh -c" + elif test -f "${as_dir}install.sh"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 + ac_install_sh="${as_dir}install.sh -c" + elif test -f "${as_dir}shtool"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 + ac_install_sh="${as_dir}shtool install -c" + else + ac_aux_dir_found=no + if $ac_first_candidate; then + ac_missing_aux_files="${ac_missing_aux_files} install-sh" + else + break + fi + fi + else + if test -f "${as_dir}${ac_aux}"; then + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 + else + ac_aux_dir_found=no + if $ac_first_candidate; then + ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" + else + break + fi + fi + fi + done + if test "$ac_aux_dir_found" = yes; then + ac_aux_dir="$as_dir" + break + fi + ac_first_candidate=false + + as_found=false +done +IFS=$as_save_IFS +if $as_found +then : + +else $as_nop + as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 +fi + + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +if test -f "${ac_aux_dir}config.guess"; then + ac_config_guess="$SHELL ${ac_aux_dir}config.guess" +fi +if test -f "${ac_aux_dir}config.sub"; then + ac_config_sub="$SHELL ${ac_aux_dir}config.sub" +fi +if test -f "$ac_aux_dir/configure"; then + ac_configure="$SHELL ${ac_aux_dir}configure" +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 +printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 +printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 +printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) as_fn_append ac_configure_args " '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 +printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} + as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' + and start over" "$LINENO" 5 +fi +## -------------------- ## +## Main body of script. ## +## -------------------- ## + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + +ac_config_headers="$ac_config_headers src/config.h" + + +# Checks for header files. + + + + + + + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. +set dummy ${ac_tool_prefix}clang; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}clang" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "clang", so it can be a program name with args. +set dummy clang; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="clang" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +fi + + +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion -version; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 +printf %s "checking whether the C compiler works... " >&6; } +ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { { ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else $as_nop + ac_file='' +fi +if test -z "$ac_file" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +printf "%s\n" "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "C compiler cannot create executables +See \`config.log' for more details" "$LINENO" 5; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 +printf %s "checking for C compiler default output file name... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 +printf "%s\n" "$ac_file" >&6; } +ac_exeext=$ac_cv_exeext + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 +printf %s "checking for suffix of executables... " >&6; } +if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else $as_nop + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest conftest$ac_cv_exeext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +printf "%s\n" "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main (void) +{ +FILE *f = fopen ("conftest.out", "w"); + return ferror (f) || fclose (f) != 0; + + ; + return 0; +} +_ACEOF +ac_clean_files="$ac_clean_files conftest.out" +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 +printf %s "checking whether we are cross compiling... " >&6; } +if test "$cross_compiling" != yes; then + { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } + if { ac_try='./conftest$ac_cv_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error 77 "cannot run C compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details" "$LINENO" 5; } + fi + fi +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 +printf "%s\n" "$cross_compiling" >&6; } + +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out +ac_clean_files=$ac_clean_files_save +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 +printf %s "checking for suffix of object files... " >&6; } +if test ${ac_cv_objext+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { { ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +then : + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else $as_nop + printf "%s\n" "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "cannot compute suffix of object files: cannot compile +See \`config.log' for more details" "$LINENO" 5; } +fi +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 +printf "%s\n" "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 +printf %s "checking whether the compiler supports GNU C... " >&6; } +if test ${ac_cv_c_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_compiler_gnu=yes +else $as_nop + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+y} +ac_save_CFLAGS=$CFLAGS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +printf %s "checking whether $CC accepts -g... " >&6; } +if test ${ac_cv_prog_cc_g+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_g=yes +else $as_nop + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + +else $as_nop + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +printf "%s\n" "$ac_cv_prog_cc_g" >&6; } +if test $ac_test_CFLAGS; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +ac_prog_cc_stdc=no +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 +printf %s "checking for $CC option to enable C11 features... " >&6; } +if test ${ac_cv_prog_cc_c11+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c11=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c11_program +_ACEOF +for ac_arg in '' -std=gnu11 +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c11=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c11" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC +fi + +if test "x$ac_cv_prog_cc_c11" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c11" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } + CC="$CC $ac_cv_prog_cc_c11" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 + ac_prog_cc_stdc=c11 +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 +printf %s "checking for $CC option to enable C99 features... " >&6; } +if test ${ac_cv_prog_cc_c99+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c99=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c99_program +_ACEOF +for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c99=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c99" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC +fi + +if test "x$ac_cv_prog_cc_c99" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c99" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } + CC="$CC $ac_cv_prog_cc_c99" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 + ac_prog_cc_stdc=c99 +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 +printf %s "checking for $CC option to enable C89 features... " >&6; } +if test ${ac_cv_prog_cc_c89+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c89_program +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC +fi + +if test "x$ac_cv_prog_cc_c89" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c89" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } + CC="$CC $ac_cv_prog_cc_c89" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 + ac_prog_cc_stdc=c89 +fi +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +ac_header= ac_cache= +for ac_item in $ac_header_c_list +do + if test $ac_cache; then + ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" + if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then + printf "%s\n" "#define $ac_item 1" >> confdefs.h + fi + ac_header= ac_cache= + elif test $ac_header; then + ac_cache=$ac_item + else + ac_header=$ac_item + fi +done + + + + + + + + +if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes +then : + +printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" +if test "x$ac_cv_header_stdlib_h" = xyes +then : + printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = xyes +then : + printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" +if test "x$ac_cv_header_time_h" = xyes +then : + printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "SDL2/SDL.h" "ac_cv_header_SDL2_SDL_h" "$ac_includes_default" +if test "x$ac_cv_header_SDL2_SDL_h" = xyes +then : + printf "%s\n" "#define HAVE_SDL2_SDL_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "SDL2/SDL_ttf.h" "ac_cv_header_SDL2_SDL_ttf_h" "$ac_includes_default" +if test "x$ac_cv_header_SDL2_SDL_ttf_h" = xyes +then : + printf "%s\n" "#define HAVE_SDL2_SDL_TTF_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" +if test "x$ac_cv_header_stdarg_h" = xyes +then : + printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" +if test "x$ac_cv_header_stdio_h" = xyes +then : + printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h + +fi + + +# Checks for programs. +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="gcc" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="$ac_prog" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. +set dummy ${ac_tool_prefix}clang; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_CC="${ac_tool_prefix}clang" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 +printf "%s\n" "$CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "clang", so it can be a program name with args. +set dummy clang; ac_word=$2 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +printf %s "checking for $ac_word... " >&6; } +if test ${ac_cv_prog_ac_ct_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CC="clang" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 +printf "%s\n" "$ac_ct_CC" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +fi + + +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "no acceptable C compiler found in \$PATH +See \`config.log' for more details" "$LINENO" 5; } + +# Provide some information about the compiler. +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +for ac_option in --version -v -V -qversion -version; do + { { ac_try="$ac_compiler $ac_option >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_compiler $ac_option >&5") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + sed '10a\ +... rest of stderr output deleted ... + 10q' conftest.err >conftest.er1 + cat conftest.er1 >&5 + fi + rm -f conftest.er1 conftest.err + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } +done + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 +printf %s "checking whether the compiler supports GNU C... " >&6; } +if test ${ac_cv_c_compiler_gnu+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_compiler_gnu=yes +else $as_nop + ac_compiler_gnu=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 +printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+y} +ac_save_CFLAGS=$CFLAGS +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 +printf %s "checking whether $CC accepts -g... " >&6; } +if test ${ac_cv_prog_cc_g+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_g=yes +else $as_nop + CFLAGS="" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + +else $as_nop + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_g=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 +printf "%s\n" "$ac_cv_prog_cc_g" >&6; } +if test $ac_test_CFLAGS; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +ac_prog_cc_stdc=no +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 +printf %s "checking for $CC option to enable C11 features... " >&6; } +if test ${ac_cv_prog_cc_c11+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c11=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c11_program +_ACEOF +for ac_arg in '' -std=gnu11 +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c11=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c11" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC +fi + +if test "x$ac_cv_prog_cc_c11" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c11" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 +printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } + CC="$CC $ac_cv_prog_cc_c11" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 + ac_prog_cc_stdc=c11 +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 +printf %s "checking for $CC option to enable C99 features... " >&6; } +if test ${ac_cv_prog_cc_c99+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c99=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c99_program +_ACEOF +for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c99=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c99" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC +fi + +if test "x$ac_cv_prog_cc_c99" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c99" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 +printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } + CC="$CC $ac_cv_prog_cc_c99" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 + ac_prog_cc_stdc=c99 +fi +fi +if test x$ac_prog_cc_stdc = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 +printf %s "checking for $CC option to enable C89 features... " >&6; } +if test ${ac_cv_prog_cc_c89+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_c_conftest_c89_program +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_prog_cc_c89=$ac_arg +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC +fi + +if test "x$ac_cv_prog_cc_c89" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 +printf "%s\n" "unsupported" >&6; } +else $as_nop + if test "x$ac_cv_prog_cc_c89" = x +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 +printf "%s\n" "none needed" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 +printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } + CC="$CC $ac_cv_prog_cc_c89" +fi + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 + ac_prog_cc_stdc=c89 +fi +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + + # Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 +printf %s "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if test ${ac_cv_path_install+y} +then : + printf %s "(cached) " >&6 +else $as_nop + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + # Account for fact that we put trailing slashes in our PATH walk. +case $as_dir in #(( + ./ | /[cC]/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + + done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test ${ac_cv_path_install+y}; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 +printf "%s\n" "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + + +ac_config_files="$ac_config_files Makefile src/Makefile src/audio/Makefile" + + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) { eval $ac_var=; unset $ac_var;} ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes: double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \. + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + if test "x$cache_file" != "x/dev/null"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 +printf "%s\n" "$as_me: updating cache $cache_file" >&6;} + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache >"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi + else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 +printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +U= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + + +: "${CONFIG_STATUS=./config.status}" +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 +printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} +as_write_fail=0 +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false + +SHELL=\${CONFIG_SHELL-$SHELL} +export SHELL +_ASEOF +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 +## -------------------- ## +## M4sh Initialization. ## +## -------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +as_nop=: +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 +then : + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else $as_nop + case `(set -o) 2>/dev/null` in #( + *posix*) : + set -o posix ;; #( + *) : + ;; +esac +fi + + + +# Reset variables that may have inherited troublesome values from +# the environment. + +# IFS needs to be set, to space, tab, and newline, in precisely that order. +# (If _AS_PATH_WALK were called with IFS unset, it would have the +# side effect of setting IFS to empty, thus disabling word splitting.) +# Quoting is to prevent editors from complaining about space-tab. +as_nl=' +' +export as_nl +IFS=" "" $as_nl" + +PS1='$ ' +PS2='> ' +PS4='+ ' + +# Ensure predictable behavior from utilities with locale-dependent output. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# We cannot yet rely on "unset" to work, but we need these variables +# to be unset--not just set to an empty or harmless value--now, to +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct +# also avoids known problems related to "unset" and subshell syntax +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH +do eval test \${$as_var+y} \ + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : +done + +# Ensure that fds 0, 1, and 2 are open. +if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi + +# The user is always right. +if ${PATH_SEPARATOR+false} :; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + + +# Find who we are. Look in the path if we contain no directory separator. +as_myself= +case $0 in #(( + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac + test -r "$as_dir$0" && as_myself=$as_dir$0 && break + done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + exit 1 +fi + + + +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the +# script with STATUS, using 1 if that was 0. +as_fn_error () +{ + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 + fi + printf "%s\n" "$as_me: error: $2" >&2 + as_fn_exit $as_status +} # as_fn_error + + + +# as_fn_set_status STATUS +# ----------------------- +# Set $? to STATUS, without forking. +as_fn_set_status () +{ + return $1 +} # as_fn_set_status + +# as_fn_exit STATUS +# ----------------- +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. +as_fn_exit () +{ + set +e + as_fn_set_status $1 + exit $1 +} # as_fn_exit + +# as_fn_unset VAR +# --------------- +# Portably unset VAR. +as_fn_unset () +{ + { eval $1=; unset $1;} +} +as_unset=as_fn_unset + +# as_fn_append VAR VALUE +# ---------------------- +# Append the text in VALUE to the end of the definition contained in VAR. Take +# advantage of any shell optimizations that allow amortized linear growth over +# repeated appends, instead of the typical quadratic growth present in naive +# implementations. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null +then : + eval 'as_fn_append () + { + eval $1+=\$2 + }' +else $as_nop + as_fn_append () + { + eval $1=\$$1\$2 + } +fi # as_fn_append + +# as_fn_arith ARG... +# ------------------ +# Perform arithmetic evaluation on the ARGs, and store the result in the +# global $as_val. Take advantage of shells that can avoid forks. The arguments +# must be portable across $(()) and expr. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null +then : + eval 'as_fn_arith () + { + as_val=$(( $* )) + }' +else $as_nop + as_fn_arith () + { + as_val=`expr "$@" || test $? -eq 1` + } +fi # as_fn_arith + + +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +printf "%s\n" X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + + +# Determine whether it's possible to make 'echo' print without a newline. +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed +# for compatibility with existing Makefiles. +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in #((((( +-n*) + case `echo 'xy\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + xy) ECHO_C='\c';; + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null + ECHO_T=' ';; + esac;; +*) + ECHO_N='-n';; +esac + +# For backward compatibility with old third-party macros, we provide +# the shell variables $as_echo and $as_echo_n. New code should use +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. +as_echo='printf %s\n' +as_echo_n='printf %s' + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -pR'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -pR' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -pR' + fi +else + as_ln_s='cp -pR' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + + +# as_fn_mkdir_p +# ------------- +# Create "$as_dir" as a directory, including parents if necessary. +as_fn_mkdir_p () +{ + + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || eval $as_mkdir_p || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +printf "%s\n" X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" + + +} # as_fn_mkdir_p +if mkdir -p . 2>/dev/null; then + as_mkdir_p='mkdir -p "$as_dir"' +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p +as_test_x='test -x' +as_executable_p=as_fn_executable_p + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 +## ----------------------------------- ## +## Main body of $CONFIG_STATUS script. ## +## ----------------------------------- ## +_ASEOF +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# Save the log message, to keep $0 and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by nes-tools $as_me 0.1, which was +generated by GNU Autoconf 2.71. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files and other configuration actions +from templates according to the current configuration. Unless the files +and actions are specified as TAGs, all are instantiated by default. + +Usage: $0 [OPTION]... [TAG]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + --config print configuration, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Report bugs to the package provider." + +_ACEOF +ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` +ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_config='$ac_cs_config_escaped' +ac_cs_version="\\ +nes-tools config.status 0.1 +configured by $0, generated by GNU Autoconf 2.71, + with options \\"\$ac_cs_config\\" + +Copyright (C) 2021 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=?*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + --*=) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg= + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + printf "%s\n" "$ac_cs_version"; exit ;; + --config | --confi | --conf | --con | --co | --c ) + printf "%s\n" "$ac_cs_config"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + '') as_fn_error $? "missing file argument" ;; + esac + as_fn_append CONFIG_FILES " '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + as_fn_append CONFIG_HEADERS " '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + as_fn_error $? "ambiguous option: \`$1' +Try \`$0 --help' for more information.";; + --help | --hel | -h ) + printf "%s\n" "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) as_fn_error $? "unrecognized option: \`$1' +Try \`$0 --help' for more information." ;; + + *) as_fn_append ac_config_targets " $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + printf "%s\n" "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + "src/audio/Makefile") CONFIG_FILES="$CONFIG_FILES src/audio/Makefile" ;; + + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files + test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= ac_tmp= + trap 'exit_status=$? + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status +' 0 + trap 'as_fn_exit 1' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=`echo X | tr X '\015'` +# On cygwin, bash can eat \r inside `` if the user requested igncr. +# But we know of no other shell where ac_cr would be empty at this +# point, so we can use a bashism as a fallback. +if test "x$ac_cr" = x; then + eval ac_cr=\$\'\\r\' +fi +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$ac_tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 +ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\)..*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\)..*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ + || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 +_ACEOF + +# VPATH may cause trouble with some makes, so we remove sole $(srcdir), +# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ +h +s/// +s/^/:/ +s/[ ]*$/:/ +s/:\$(srcdir):/:/g +s/:\${srcdir}:/:/g +s/:@srcdir@:/:/g +s/^:*// +s/:*$// +x +s/\(=[ ]*\).*/\1/ +G +s/\n// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$ac_tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then + break + elif $ac_last_try; then + as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$ac_tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; + esac + case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + as_fn_append ac_file_inputs " '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 +printf "%s\n" "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`printf "%s\n" "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +printf "%s\n" X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + as_dir="$ac_dir"; as_fn_mkdir_p + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ + >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&5 +printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined" >&2;} + + rm -f "$ac_tmp/stdin" + case $ac_file in + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; + esac \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + printf "%s\n" "/* $configure_input */" >&1 \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + } >"$ac_tmp/config.h" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 +printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$ac_tmp/config.h" "$ac_file" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 + fi + else + printf "%s\n" "/* $configure_input */" >&1 \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ + || as_fn_error $? "could not create -" "$LINENO" 5 + fi + ;; + + + esac + +done # for ac_tag + + +as_fn_exit 0 +_ACEOF +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || as_fn_exit 1 +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + + diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..813a6b3 --- /dev/null +++ b/configure.ac @@ -0,0 +1,24 @@ +AC_PREREQ([2.71]) +AC_INIT([nes-tools], [0.1]) +AC_CONFIG_SRCDIR([src/cpu6502.c]) + +AC_CONFIG_HEADERS([src/config.h]) + +# Checks for header files. +AC_CHECK_HEADERS([ + stdlib.h stdint.h time.h + SDL2/SDL.h SDL2/SDL_ttf.h + stdarg.h stdio.h + ]) + +# Checks for programs. +AC_PROG_CC +AC_PROG_INSTALL + +AC_CONFIG_FILES([ + Makefile + src/Makefile + src/audio/Makefile + ]) + +AC_OUTPUT diff --git a/install-sh b/install-sh new file mode 100755 index 0000000..ec298b5 --- /dev/null +++ b/install-sh @@ -0,0 +1,541 @@ +#!/bin/sh +# install - install a program, script, or datafile + +scriptversion=2020-11-14.01; # UTC + +# This originates from X11R5 (mit/util/scripts/install.sh), which was +# later released in X11R6 (xc/config/util/install.sh) with the +# following copyright and license. +# +# Copyright (C) 1994 X Consortium +# +# 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 +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the X Consortium shall not +# be used in advertising or otherwise to promote the sale, use or other deal- +# ings in this Software without prior written authorization from the X Consor- +# tium. +# +# +# FSF changes to this file are in the public domain. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# 'make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. + +tab=' ' +nl=' +' +IFS=" $tab$nl" + +# Set DOITPROG to "echo" to test this script. + +doit=${DOITPROG-} +doit_exec=${doit:-exec} + +# Put in absolute file names if you don't have them in your path; +# or use environment vars. + +chgrpprog=${CHGRPPROG-chgrp} +chmodprog=${CHMODPROG-chmod} +chownprog=${CHOWNPROG-chown} +cmpprog=${CMPPROG-cmp} +cpprog=${CPPROG-cp} +mkdirprog=${MKDIRPROG-mkdir} +mvprog=${MVPROG-mv} +rmprog=${RMPROG-rm} +stripprog=${STRIPPROG-strip} + +posix_mkdir= + +# Desired mode of installed file. +mode=0755 + +# Create dirs (including intermediate dirs) using mode 755. +# This is like GNU 'install' as of coreutils 8.32 (2020). +mkdir_umask=22 + +backupsuffix= +chgrpcmd= +chmodcmd=$chmodprog +chowncmd= +mvcmd=$mvprog +rmcmd="$rmprog -f" +stripcmd= + +src= +dst= +dir_arg= +dst_arg= + +copy_on_change=false +is_target_a_directory=possibly + +usage="\ +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE + or: $0 [OPTION]... SRCFILES... DIRECTORY + or: $0 [OPTION]... -t DIRECTORY SRCFILES... + or: $0 [OPTION]... -d DIRECTORIES... + +In the 1st form, copy SRCFILE to DSTFILE. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. +In the 4th, create DIRECTORIES. + +Options: + --help display this help and exit. + --version display version info and exit. + + -c (ignored) + -C install only if different (preserve data modification time) + -d create directories instead of installing files. + -g GROUP $chgrpprog installed files to GROUP. + -m MODE $chmodprog installed files to MODE. + -o USER $chownprog installed files to USER. + -p pass -p to $cpprog. + -s $stripprog installed files. + -S SUFFIX attempt to back up existing files, with suffix SUFFIX. + -t DIRECTORY install into DIRECTORY. + -T report an error if DSTFILE is a directory. + +Environment variables override the default commands: + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG + RMPROG STRIPPROG + +By default, rm is invoked with -f; when overridden with RMPROG, +it's up to you to specify -f if you want it. + +If -S is not specified, no backups are attempted. + +Email bug reports to bug-automake@gnu.org. +Automake home page: https://www.gnu.org/software/automake/ +" + +while test $# -ne 0; do + case $1 in + -c) ;; + + -C) copy_on_change=true;; + + -d) dir_arg=true;; + + -g) chgrpcmd="$chgrpprog $2" + shift;; + + --help) echo "$usage"; exit $?;; + + -m) mode=$2 + case $mode in + *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) + echo "$0: invalid mode: $mode" >&2 + exit 1;; + esac + shift;; + + -o) chowncmd="$chownprog $2" + shift;; + + -p) cpprog="$cpprog -p";; + + -s) stripcmd=$stripprog;; + + -S) backupsuffix="$2" + shift;; + + -t) + is_target_a_directory=always + dst_arg=$2 + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + shift;; + + -T) is_target_a_directory=never;; + + --version) echo "$0 $scriptversion"; exit $?;; + + --) shift + break;; + + -*) echo "$0: invalid option: $1" >&2 + exit 1;; + + *) break;; + esac + shift +done + +# We allow the use of options -d and -T together, by making -d +# take the precedence; this is for compatibility with GNU install. + +if test -n "$dir_arg"; then + if test -n "$dst_arg"; then + echo "$0: target directory not allowed when installing a directory." >&2 + exit 1 + fi +fi + +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then + # When -d is used, all remaining arguments are directories to create. + # When -t is used, the destination is already specified. + # Otherwise, the last argument is the destination. Remove it from $@. + for arg + do + if test -n "$dst_arg"; then + # $@ is not empty: it contains at least $arg. + set fnord "$@" "$dst_arg" + shift # fnord + fi + shift # arg + dst_arg=$arg + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac + done +fi + +if test $# -eq 0; then + if test -z "$dir_arg"; then + echo "$0: no input file specified." >&2 + exit 1 + fi + # It's OK to call 'install-sh -d' without argument. + # This can happen when creating conditional directories. + exit 0 +fi + +if test -z "$dir_arg"; then + if test $# -gt 1 || test "$is_target_a_directory" = always; then + if test ! -d "$dst_arg"; then + echo "$0: $dst_arg: Is not a directory." >&2 + exit 1 + fi + fi +fi + +if test -z "$dir_arg"; then + do_exit='(exit $ret); exit $ret' + trap "ret=129; $do_exit" 1 + trap "ret=130; $do_exit" 2 + trap "ret=141; $do_exit" 13 + trap "ret=143; $do_exit" 15 + + # Set umask so as not to create temps with too-generous modes. + # However, 'strip' requires both read and write access to temps. + case $mode in + # Optimize common cases. + *644) cp_umask=133;; + *755) cp_umask=22;; + + *[0-7]) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw='% 200' + fi + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; + *) + if test -z "$stripcmd"; then + u_plus_rw= + else + u_plus_rw=,u+rw + fi + cp_umask=$mode$u_plus_rw;; + esac +fi + +for src +do + # Protect names problematic for 'test' and other utilities. + case $src in + -* | [=\(\)!]) src=./$src;; + esac + + if test -n "$dir_arg"; then + dst=$src + dstdir=$dst + test -d "$dstdir" + dstdir_status=$? + # Don't chown directories that already exist. + if test $dstdir_status = 0; then + chowncmd="" + fi + else + + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command + # might cause directories to be created, which would be especially bad + # if $src (and thus $dsttmp) contains '*'. + if test ! -f "$src" && test ! -d "$src"; then + echo "$0: $src does not exist." >&2 + exit 1 + fi + + if test -z "$dst_arg"; then + echo "$0: no destination specified." >&2 + exit 1 + fi + dst=$dst_arg + + # If destination is a directory, append the input filename. + if test -d "$dst"; then + if test "$is_target_a_directory" = never; then + echo "$0: $dst_arg: Is a directory" >&2 + exit 1 + fi + dstdir=$dst + dstbase=`basename "$src"` + case $dst in + */) dst=$dst$dstbase;; + *) dst=$dst/$dstbase;; + esac + dstdir_status=0 + else + dstdir=`dirname "$dst"` + test -d "$dstdir" + dstdir_status=$? + fi + fi + + case $dstdir in + */) dstdirslash=$dstdir;; + *) dstdirslash=$dstdir/;; + esac + + obsolete_mkdir_used=false + + if test $dstdir_status != 0; then + case $posix_mkdir in + '') + # With -d, create the new directory with the user-specified mode. + # Otherwise, rely on $mkdir_umask. + if test -n "$dir_arg"; then + mkdir_mode=-m$mode + else + mkdir_mode= + fi + + posix_mkdir=false + # The $RANDOM variable is not portable (e.g., dash). Use it + # here however when possible just to lower collision chance. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ + + trap ' + ret=$? + rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null + exit $ret + ' 0 + + # Because "mkdir -p" follows existing symlinks and we likely work + # directly in world-writeable /tmp, make sure that the '$tmpdir' + # directory is successfully created first before we actually test + # 'mkdir -p'. + if (umask $mkdir_umask && + $mkdirprog $mkdir_mode "$tmpdir" && + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 + then + if test -z "$dir_arg" || { + # Check for POSIX incompatibilities with -m. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or + # other-writable bit of parent directory when it shouldn't. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. + test_tmpdir="$tmpdir/a" + ls_ld_tmpdir=`ls -ld "$test_tmpdir"` + case $ls_ld_tmpdir in + d????-?r-*) different_mode=700;; + d????-?--*) different_mode=755;; + *) false;; + esac && + $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { + ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" + } + } + then posix_mkdir=: + fi + rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" + else + # Remove any dirs left behind by ancient mkdir implementations. + rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null + fi + trap '' 0;; + esac + + if + $posix_mkdir && ( + umask $mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" + ) + then : + else + + # mkdir does not conform to POSIX, + # or it failed possibly due to a race condition. Create the + # directory the slow way, step by step, checking for races as we go. + + case $dstdir in + /*) prefix='/';; + [-=\(\)!]*) prefix='./';; + *) prefix='';; + esac + + oIFS=$IFS + IFS=/ + set -f + set fnord $dstdir + shift + set +f + IFS=$oIFS + + prefixes= + + for d + do + test X"$d" = X && continue + + prefix=$prefix$d + if test -d "$prefix"; then + prefixes= + else + if $posix_mkdir; then + (umask $mkdir_umask && + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break + # Don't fail if two instances are running concurrently. + test -d "$prefix" || exit 1 + else + case $prefix in + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; + *) qprefix=$prefix;; + esac + prefixes="$prefixes '$qprefix'" + fi + fi + prefix=$prefix/ + done + + if test -n "$prefixes"; then + # Don't fail if two instances are running concurrently. + (umask $mkdir_umask && + eval "\$doit_exec \$mkdirprog $prefixes") || + test -d "$dstdir" || exit 1 + obsolete_mkdir_used=true + fi + fi + fi + + if test -n "$dir_arg"; then + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 + else + + # Make a couple of temp file names in the proper directory. + dsttmp=${dstdirslash}_inst.$$_ + rmtmp=${dstdirslash}_rm.$$_ + + # Trap to clean up those temp files at exit. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 + + # Copy the file name to the temp name. + (umask $cp_umask && + { test -z "$stripcmd" || { + # Create $dsttmp read-write so that cp doesn't create it read-only, + # which would cause strip to fail. + if test -z "$doit"; then + : >"$dsttmp" # No need to fork-exec 'touch'. + else + $doit touch "$dsttmp" + fi + } + } && + $doit_exec $cpprog "$src" "$dsttmp") && + + # and set any options; do chmod last to preserve setuid bits. + # + # If any of these fail, we abort the whole thing. If we want to + # ignore errors from any of these, just make sure not to ignore + # errors from the above "$doit $cpprog $src $dsttmp" command. + # + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && + + # If -C, don't bother to copy if it wouldn't change the file. + if $copy_on_change && + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && + set -f && + set X $old && old=:$2:$4:$5:$6 && + set X $new && new=:$2:$4:$5:$6 && + set +f && + test "$old" = "$new" && + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 + then + rm -f "$dsttmp" + else + # If $backupsuffix is set, and the file being installed + # already exists, attempt a backup. Don't worry if it fails, + # e.g., if mv doesn't support -f. + if test -n "$backupsuffix" && test -f "$dst"; then + $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null + fi + + # Rename the file to the real destination. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || + + # The rename failed, perhaps because mv can't rename something else + # to itself, or perhaps because mv is so ancient that it does not + # support -f. + { + # Now remove or move aside any old file at destination location. + # We try this two ways since rm can't unlink itself on some + # systems and the destination file might be busy for other + # reasons. In this case, the final cleanup might fail but the new + # file should still install successfully. + { + test ! -f "$dst" || + $doit $rmcmd "$dst" 2>/dev/null || + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && + { $doit $rmcmd "$rmtmp" 2>/dev/null; :; } + } || + { echo "$0: cannot unlink or rename $dst" >&2 + (exit 1); exit 1 + } + } && + + # Now rename the file to the real destination. + $doit $mvcmd "$dsttmp" "$dst" + } + fi || exit 1 + + trap '' 0 + fi +done + +# Local variables: +# eval: (add-hook 'before-save-hook 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC0" +# time-stamp-end: "; # UTC" +# End: diff --git a/src/Makefile.in b/src/Makefile.in new file mode 100644 index 0000000..5cb22c3 --- /dev/null +++ b/src/Makefile.in @@ -0,0 +1,61 @@ +# @configure_input@ + +# Package-specific substitution variables +package = @PACKAGE_NAME@ +version = @PACKAGE_VERSION@ +tarname = @PACKAGE_TARNAME@ +distdir = $(tarname)-$(version) + +# Prefix-specific substitution variables +prefix = @prefix@ +exec_prefix = @exec_prefix@ +bindir = @bindir@ + +# Build-specific substitution variables. +CC = @CC@ +CFLAGS = @CFLAGS@ -Wall -O0 -I. +LDFLAGS = -lm -lSDL2 -lSDL2_ttf + +# Install script substitution variables. +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ + +# Source/header/object files. +SRC_FILES = $(wildcard *.c) +OBJ_FILES = $(SRC_FILES:.c=.o) + +AUDIO_DIR = ./audio +AUDIO_SRC_FILES = $(wildcard $(AUDIO_DIR)/*.c) +AUDIO_OBJ_FILES = $(AUDIO_SRC_FILES:.c=.o) + +TARGET = nes-tools + +all: $(TARGET) + +$(TARGET): $(AUDIO_OBJ_FILES) $(OBJ_FILES) + $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) + +$(AUDIO_OBJ_FILES): $(AUDIO_SRC_FILES) $(AUDIO_HDR_FILES) + $(MAKE) -C $(AUDIO_DIR) all + +%.o: %.c + $(CC) $(CFLAGS) -c $< -o $@ + +clean: + $(RM) $(OBJ_FILES) $(TARGET) + $(MAKE) -C $(AUDIO_DIR) clean + +install: $(TARGET) + $(INSTALL) -d $(bindir) + $(INSTALL_PROGRAM) -m 0755 $(TARGET) $(bindir) + +uninstall: + -rm $(bindir)/nes-tools + +Makefile: Makefile.in ../config.status + cd .. && ./config.status src/$@ + +../config.status: ../configure + cd .. && ./config.status --recheck + +.PHONY: all clean check install diff --git a/src/audio/Makefile.in b/src/audio/Makefile.in new file mode 100644 index 0000000..3c203de --- /dev/null +++ b/src/audio/Makefile.in @@ -0,0 +1,18 @@ +# @configure_input@ + +# Build-specific variables +CC = @CC@ +CFLAGS = @CFLAGS@ -Wall -O0 -I.. + +SRC_FILES = $(wildcard *.c) +OBJ_FILES = $(SRC_FILES:.c=.o) + +all: $(OBJ_FILES) + +%.o: %.c + $(CC) $(CFLAGS) -c $< -o $@ + +clean: + $(RM) $(OBJ_FILES) + +.PHONY: all clean diff --git a/src/audio/apu.c b/src/audio/apu.c new file mode 100644 index 0000000..1a3d4c6 --- /dev/null +++ b/src/audio/apu.c @@ -0,0 +1,505 @@ +#include "apu.h" +#include "../cpu6502.h" + +#define TND_LUT_SIZE 203 +#define PULSE_LUT_SIZE 31 +#define AUDIO_TO_FILE 0 + +static uint8_t duty[4][8] = +{ + {0, 1, 0, 0, 0, 0, 0, 0}, // 12.5 % + {0, 1, 1, 0, 0, 0, 0, 0}, // 25 % + {0, 1, 1, 1, 1, 0, 0, 0}, // 50 % + {1, 0, 0, 1, 1, 1, 1, 1} // 25 % negated +}; + + +static float tnd_lut[TND_LUT_SIZE]; +static float pulse_lut[PULSE_LUT_SIZE]; + +static void compute_mixer_lut() +{ + pulse_lut[0] = 0; + for (int i = 1; i < PULSE_LUT_SIZE; i++) + pulse_lut[i] = 95.52f / (8128.0f / (float) i + 100); + + tnd_lut[0] = 0; + for (int i = 1; i < TND_LUT_SIZE; i++) + tnd_lut[i] = 163.67f / (24329.0f / (float) i + 100); +} + +static void sampler_init(apu_t* apu, int frequency) +{ + float cycles_per_frame = apu->bus->mapper->type == PAL? 33247.5: 29780.5; + float rate = apu->bus->mapper->type == PAL? 50.0f : 60.0f; + sampler_t* sampler = &apu->sampler; + + // Q = 0.707 => BW = 1.414 (1 octave) + apu->filter = biquad_create(HPF, 0, 20, frequency, 1); + + // Anti-aliasing filter. + apu->aa_filter = biquad_create(LPF, 0, 20000, cycles_per_frame * rate, 1); + + sampler->max_period = cycles_per_frame * rate / frequency; + sampler->min_period = sampler->max_period - 1; + sampler->period = sampler->min_period; + sampler->index = 0; + sampler->max_index = AUDIO_BUFF_SIZE; + sampler->samples = 0; + sampler->counter = 0; + sampler->factor_index = 0; + + // basically the precision with which we vary the + // sampling rate. 100 ->2 d.p, 1000->3 d.p, etc. + sampler->max_factor = 100; + + // This may need to be calibrated to suit the current + // sampling frequency; the current equilibrium is + // for 48000 hz. + sampler->target_factor = sampler->equilibrium_factor = 48; +} + +static void init_audio_device(const apu_t* apu) +{ + SDL_AudioSpec want; + SDL_zero(want); + + // Set the audio format. + want.freq = SAMPLING_FREQUENCY; + want.format = AUDIO_S16SYS; + + want.channels = 1; + want.callback = NULL; + want.userdata = NULL; + want.silence = 0; + + apu->gfx->audio_device = SDL_OpenAudioDevice(NULL, 0, &want, NULL, 0); + if (apu->gfx->audio_device == 0) { + LOG(ERROR , SDL_GetError()); + exit(EXIT_FAILURE); + } +} + +apu_t* apu_create(bus_t* bus, gfx_t* gfx) +{ + compute_mixer_lut(); + + apu_t* apu = malloc(sizeof(apu_t)); + memset(apu, 0, sizeof(apu_t)); + + apu->volume = 1; + apu->bus = bus; + apu->gfx = gfx; + apu->cycles = 0; + apu->sequencer = 0; + apu->reset_sequencer = 0; + apu->audio_start = 0; + apu->IRQ_inhibit = 0; + + // For keeping track of queue_size statistics for use by + // the adaptive sampler. + memset(apu->stat_window, 0, sizeof(apu->stat_window)); + apu->stat_index = 0; + apu->stat = 0; + + apu->pulse1 = pulse_create(1); + apu->pulse2 = pulse_create(2); + apu->tri = triangle_create(); + apu->noise = noise_create(); + apu->dmc = dmc_create(); + + sampler_init(apu, SAMPLING_FREQUENCY); + init_audio_device(apu); + SDL_PauseAudioDevice(gfx->audio_device, 1); + apu_set_status(apu, 0); + apu_set_frame_counter_ctrl(apu, 0); + + return apu; +} + +void apu_destroy(apu_t* apu) +{ free(apu); } + +void apu_reset(apu_t* apu) +{ + apu_set_status(apu, 0); + apu->tri.sequencer.step = 0; + apu->dmc.counter &= 1; + apu->frame_interrupt = 0; +} + +void quarter_frame(apu_t* apu) +{ + triangle_t* tri = &apu->tri; + + divider_clock_inverse(&apu->pulse1.envelope); + divider_clock_inverse(&apu->pulse2.envelope); + divider_clock_inverse(&apu->noise.envelope); + + // Triangle linear counter. + tri->linear_counter = (tri->linear_reload_flag) ? + tri->linear_reload : tri->linear_counter - 1; + + // If halt is clear, clear linear reload flag. + tri->linear_reload_flag = tri->halt ? tri->linear_reload_flag : 0; +} + +void half_frame(apu_t* apu) +{ + // Length and sweep. + pulse_length_sweep(&apu->pulse1); + pulse_length_sweep(&apu->pulse2); + + // Triangle length counter. + if (!apu->tri.halt && apu->tri.length_counter) { + apu->tri.length_counter--; + } + + // Noise length counter. + noise_t* noise = &apu->noise; + if (noise->l && !noise->envelope.loop) + noise->l--; +} + +void sample(apu_t* apu) { + float sample = biquad_apply(&apu->aa_filter, apu_get_sample(apu)); + sampler_t* sampler = &apu->sampler; + sampler->counter++; + if (sampler->counter < sampler->period) + return; + + apu->buff[sampler->index++] = 32000 * biquad_apply(&apu->filter, sample) * apu->volume; + if(sampler->index >= sampler->max_index) { + sampler->index = 0; + } + + sampler->samples++; + sampler->counter = 0; + + sampler->period = (apu->sampler.factor_index <= apu->sampler.target_factor) ? + sampler->max_period : sampler->min_period; + + sampler->factor_index++; + if(sampler->factor_index > sampler->max_factor) + sampler->factor_index = 0; +} + +void clock_dmc(apu_t* apu) +{ + dmc_t* dmc = &apu->dmc; + + if (dmc->enabled && dmc->empty) { + if(dmc->bytes_remaining > 0) { + apu->bus->cpu->dma_cycles += 3; + dmc->sample = bus_read(apu->bus, dmc->current_addr); + dmc->empty = 0; + dmc->bytes_remaining--; + if(dmc->current_addr == 0xffff) + dmc->current_addr = 0x8000; + else + dmc->current_addr++; + dmc->irq_set = 0; + } + if(dmc->bytes_remaining == 0) { + if(dmc->loop) { + dmc->current_addr = dmc->sample_addr; + dmc->bytes_remaining = dmc->sample_length; + }else if(dmc->irq_enable && !dmc->irq_set) { + dmc->interrupt = 1; + dmc->irq_set = 1; + cpu_interrupt(apu->bus->cpu, IRQ); + } + } + } + + if(dmc->rate_index > 0) { + dmc->rate_index--; + return; + } + dmc->rate_index = dmc->rate; + + if(dmc->bits_remaining > 0) { + // clamped counter update + if(!dmc->silence) { + if(dmc->bits & 1) { + dmc->counter+=2; + dmc->counter = dmc->counter > 127 ? 127 : dmc->counter; + } + else if(dmc->counter > 1) + dmc->counter-=2; + dmc->bits >>= 1; + } + dmc->bits_remaining--; + } + if(dmc->bits_remaining == 0) { + if(dmc->empty) + dmc->silence = 1; + else { + dmc->bits = dmc->sample; + dmc->empty = 1; + dmc->silence = 0; + } + dmc->bits_remaining = 8; + } +} + +void apu_exec(apu_t* apu) +{ + // Perform necessary reset after $4017 write + if (apu->reset_sequencer) { + apu->reset_sequencer = 0; + if (apu->frame_mode == 1) { + quarter_frame(apu); + half_frame(apu); + } + apu->sequencer = 0; + goto post_sequencer; + } + + switch (apu->bus->mapper->type) { + case NTSC: + default: + switch (apu->sequencer) { + case 0: + apu->sequencer++; + break; + case 7457: + quarter_frame(apu); + apu->sequencer++; + break; + case 14913: + quarter_frame(apu); + half_frame(apu); + apu->sequencer++; + break; + case 22371: + quarter_frame(apu); + apu->sequencer++; + break; + case 29828: + apu->sequencer++; + break; + case 29829: + if (apu->frame_mode == 1) { + apu->sequencer++; + break; + } + + quarter_frame(apu); + half_frame(apu); + if (!apu->IRQ_inhibit) { + apu->frame_interrupt = 1; + cpu_interrupt(apu->bus->cpu, IRQ); + } + apu->sequencer = 0; + break; + case 37281: + quarter_frame(apu); + half_frame(apu); + apu->sequencer = 0; + break; + default: + apu->sequencer++; + } + break; + case PAL: + switch (apu->sequencer) { + case 0: + apu->sequencer++; + break; + case 8313: + quarter_frame(apu); + apu->sequencer++; + break; + case 16627: + quarter_frame(apu); + half_frame(apu); + apu->sequencer++; + break; + case 24939: + quarter_frame(apu); + apu->sequencer++; + break; + case 33252: + apu->sequencer++; + break; + case 33253: + if (apu->frame_mode == 1) { + apu->sequencer++; + break; + } + + quarter_frame(apu); + half_frame(apu); + + if (!apu->IRQ_inhibit) { + apu->frame_interrupt = 1; + cpu_interrupt(apu->bus->cpu, IRQ); + } + apu->sequencer = 0; + break; + case 41565: + quarter_frame(apu); + half_frame(apu); + apu->sequencer = 0; + break; + default: + apu->sequencer++; + } + break; + } + +post_sequencer: + + if (apu->cycles & 1) { + // channel sequencer + divider_clock(&apu->pulse1.t); + divider_clock(&apu->pulse2.t); + + // noise timer + if (divider_clock(&apu->noise.timer)) { + noise_t* noise = &apu->noise; + uint8_t feedback = (noise->shift & BIT_0) ^ + (((noise->mode ? BIT_6 : BIT_1) & noise->shift) > 0); + + noise->shift >>= 1; + noise->shift |= feedback ? (1 << 14) : 0; + } + } + + // DMC + clock_dmc(apu); + + // triangle timer + triangle_clock(&apu->tri); + + // sample + sample(apu); + + apu->cycles++; +} + +void apu_queue_audio(apu_t* apu, gfx_t* gfx) +{ + uint32_t queue_size = SDL_GetQueuedAudioSize(gfx->audio_device); + apu->stat = apu->stat - apu->stat_window[apu->stat_index] + queue_size; + apu->stat_window[apu->stat_index++] = queue_size; + if(apu->stat_index >= STATS_WIN_SIZE) + apu->stat_index = 0; + + size_t avg = apu->stat / STATS_WIN_SIZE; + + // From here we tweak the sampling rate ever so slightly to + // prevent underruns and runaway latency by minimising + // deviation from the nominal queue size with a bit of + // control engineering + float delta_f, error = (float)avg - NOMINAL_QUEUE_SIZE; + sampler_t* s = &apu->sampler; + + delta_f = (error >= 0) ? + (s->max_factor - s->equilibrium_factor) * error / NOMINAL_QUEUE_SIZE : + (s->equilibrium_factor * error / NOMINAL_QUEUE_SIZE); + + s->target_factor = s->equilibrium_factor + delta_f; + if(s->target_factor > s->max_factor) + s->target_factor = s->max_factor; + + SDL_QueueAudio(gfx->audio_device, apu->buff, s->index * 2); + + // wait till queue is filled to prevent early onset underruns + if(!apu->audio_start && queue_size >= NOMINAL_QUEUE_SIZE) { + SDL_PauseAudioDevice(apu->gfx->audio_device, 0); + apu->audio_start = 1; + } + + memset(apu->buff, 0, AUDIO_BUFF_SIZE * 2); + + // reset sampler + s->index = 0; +} + + +float apu_get_sample(apu_t* apu) +{ + uint8_t pulse_out = 0; + uint8_t tnd_out = 0; + + if (apu->pulse1.enabled && apu->pulse1.l && !apu->pulse1.mute) + pulse_out += (apu->pulse1.const_volume ? + apu->pulse1.envelope.period : + apu->pulse1.envelope.step) * + (duty[apu->pulse1.duty][apu->pulse1.t.step]); + + if (apu->pulse2.enabled && apu->pulse2.l && !apu->pulse2.mute) + pulse_out += (apu->pulse2.const_volume ? + apu->pulse2.envelope.period : + apu->pulse2.envelope.step) * + (duty[apu->pulse2.duty][apu->pulse2.t.step]); + + if (apu->tri.enabled && apu->tri.sequencer.period > 1) + tnd_out += triangle_sequence[apu->tri.sequencer.step] * 3; + + if (apu->noise.enabled && !(apu->noise.shift & BIT_0) && apu->noise.l > 0) + tnd_out += 2 * (apu->noise.const_volume ? + apu->noise.envelope.period : + apu->noise.envelope.step); + + tnd_out += apu->dmc.counter; + float amp = pulse_lut[pulse_out] + tnd_lut[tnd_out]; + + // clamp to within 1 just in case + return amp > 1 ? 1 : amp; +} + +void apu_set_status(apu_t* apu, uint8_t value) +{ + apu->pulse1.enabled = (value & BIT_0) > 0; + apu->pulse2.enabled = (value & BIT_1) > 0; + apu->tri.enabled = (value & BIT_2) > 0; + apu->noise.enabled = (value & BIT_3) > 0; + apu->dmc.enabled = (value & BIT_4) > 0; + + if (apu->dmc.enabled && apu->dmc.bytes_remaining == 0) { + apu->dmc.bytes_remaining = apu->dmc.sample_length; + apu->dmc.current_addr = apu->dmc.sample_addr; + } + else if(!apu->dmc.enabled) { + apu->dmc.bytes_remaining = 0; + } + + apu->dmc.interrupt = 0; + + // reset length counters if disabled + apu->pulse1.l = apu->pulse1.enabled ? apu->pulse1.l : 0; + apu->pulse2.l = apu->pulse2.enabled ? apu->pulse2.l : 0; + apu->tri.length_counter = apu->tri.enabled ? + apu->tri.length_counter : 0; + + apu->noise.l = apu->noise.enabled ? apu->noise.l : 0; +} + +uint8_t apu_read_status(apu_t* apu) +{ + uint8_t status = (apu->pulse1.l > 0); + status |= (apu->pulse2.l > 0 ? BIT_1 : 0); + status |= (apu->tri.length_counter > 0 ? BIT_2 : 0); + status |= (apu->noise.l > 0 ? BIT_3 : 0); + status |= (apu->frame_interrupt ? BIT_6 : 0); + status |= (apu->dmc.interrupt ? BIT_7 : 0); + status |= (apu->dmc.bytes_remaining? BIT_4: 0); + apu->frame_interrupt = 0; + return status; +} + +void apu_set_frame_counter_ctrl(apu_t* apu, uint8_t value) +{ + // $4017 + apu->IRQ_inhibit = (value & BIT_6) > 0; + apu->frame_mode = (value & BIT_7) > 0; + + // clear interrupt if IRQ disable set + if (value & BIT_6) + apu->frame_interrupt = 0; + + apu->reset_sequencer = 1; +} diff --git a/src/audio/apu.h b/src/audio/apu.h new file mode 100644 index 0000000..fef25af --- /dev/null +++ b/src/audio/apu.h @@ -0,0 +1,57 @@ +#ifndef NES_TOOLS_APU_H +#define NES_TOOLS_APU_H + +#include "../system.h" +#include "../gfx.h" +#include "../bus.h" + +#include "audio.h" +#include "pulse.h" +#include "biquad.h" +#include "triangle.h" +#include "noise.h" +#include "dmc.h" + +typedef struct apu_t +{ + bus_t* bus; + gfx_t* gfx; + float volume; + + int16_t buff[AUDIO_BUFF_SIZE]; + size_t stat_window[STATS_WIN_SIZE]; + + pulse_t pulse1; + pulse_t pulse2; + triangle_t tri; + noise_t noise; + dmc_t dmc; + sampler_t sampler; + + uint8_t frame_mode; + uint8_t status; + uint8_t IRQ_inhibit; + uint8_t frame_interrupt; + uint8_t audio_start; + uint8_t reset_sequencer; + size_t cycles; + size_t sequencer; + float stat; + size_t stat_index; + + biquad_t filter; + biquad_t aa_filter; + +} apu_t; + +apu_t* apu_create(bus_t* bus, gfx_t* gfx); +void apu_destroy(apu_t* apu); +void apu_reset(apu_t* apu); +void apu_exec(apu_t* apu); +void apu_set_status(apu_t* apu, uint8_t val); +float apu_get_sample(apu_t* apu); +void apu_queue_audio(apu_t* apu, gfx_t* gfx); +uint8_t apu_read_status(apu_t* apu); +void apu_set_frame_counter_ctrl(apu_t* apu, uint8_t val); + +#endif // NES_TOOLS_APU_H diff --git a/src/audio/audio.c b/src/audio/audio.c new file mode 100644 index 0000000..7b02a47 --- /dev/null +++ b/src/audio/audio.c @@ -0,0 +1,43 @@ +#include "audio.h" + +const uint8_t length_counter_lookup[32] = +{ + // HI/LO 0 1 2 3 4 5 6 7 8 9 A B C D E F + // ---------------------------------------------------------------------- + /* 0 */ 10, 254, 20, 2, 40, 4, 80, 6, 160, 8, 60, 10, 14, 12, 26, 14, + /* 1 */ 12, 16, 24, 18, 48, 20, 96, 22, 192, 24, 72, 26, 16, 28, 32, 30 +}; + +uint8_t divider_clock(divider_t* divider) +{ + if (divider->counter) { + divider->counter--; + return 0; + } + + divider->counter = divider->period; + divider->step++; + + if (divider->limit && divider->step > divider->limit) + divider->step = divider->from; + + // Trigger clock. + return 1; +} + +uint8_t divider_clock_inverse(divider_t* divider) +{ + if (divider->counter) { + divider->counter--; + return 0; + } + + divider->counter = divider->period; + if (divider->limit && divider->step == 0 && divider->loop) + divider->step = divider->limit; + else if (divider->step) + divider->step--; + + // Trigger clock. + return 1; +} diff --git a/src/audio/audio.h b/src/audio/audio.h new file mode 100644 index 0000000..da3aab1 --- /dev/null +++ b/src/audio/audio.h @@ -0,0 +1,52 @@ +#ifndef NES_TOOLS_AUDIO_H +#define NES_TOOLS_AUDIO_H + +#include "../system.h" +#include "../mapper.h" + +#define SAMPLING_FREQUENCY 48000 +#define AUDIO_BUFF_SIZE 1024 +#define STATS_WIN_SIZE 20 +#define AVERAGE_DOWNSAMPLING 0 +#define NOMINAL_QUEUE_SIZE 6000 + +enum +{ + TIMER_HIGH = 0x7, + PULSE_SHIFT = 0x7, + PULSE_PERIOD = 0b01110000, +}; + +typedef struct +{ + long long period; + long long counter; + uint32_t step; + uint32_t limit; + uint32_t from; + uint8_t loop; + +} divider_t; + +typedef struct +{ + uint16_t factor_index; + uint16_t target_factor; + uint16_t equilibrium_factor; + uint16_t max_factor; + size_t samples; + size_t max_period; + size_t min_period; + size_t period; + size_t counter; + size_t index; + size_t max_index; + +} sampler_t; + +extern const uint8_t length_counter_lookup[32]; + +uint8_t divider_clock(divider_t *divider); +uint8_t divider_clock_inverse(divider_t* divider); + +#endif // NES_TOOLS_AUDIO_H diff --git a/src/audio/biquad.c b/src/audio/biquad.c new file mode 100644 index 0000000..1b8cf3b --- /dev/null +++ b/src/audio/biquad.c @@ -0,0 +1,145 @@ +/* + * Simple implementation of Biquad filters -- Tom St Denis + * + * Based on the work + * + * Cookbook formulae for audio EQ biquad filter coefficients + * --------------------------------------------------------- + * by Robert Bristow-Johnson, pbjrbj@viconet.com a.k.a. robert@audioheads.com + * + * Available on the web at + * + * http://www.smartelectronix.com/musicdsp/text/filters005.txt + * + * Enjoy. + * + * This work is hereby placed in the public domain for all purposes, whether + * commercial, free [as in speech] or educational, etc. Use the code and please + * give me credit if you wish. + * + * Tom St Denis -- http://tomstdenis.home.dhs.org + * + */ + +#include "biquad.h" + +#ifndef M_LN2 +#define M_LN2 0.69314718055994530942 +#endif + +#ifndef M_PI +#define M_PI 3.14159265358979323846 +#endif + + +// Computes a BiQuad filter on a sample. +double biquad_apply(biquad_t * b, double sample) +{ + double result = result = b->a0 * sample + + b->a1 * b->x1 + b->a2 * b->x2 - + b->a3 * b->y1 - b->a4 * b->y2; + + b->x2 = b->x1; + b->x1 = sample; + + b->y2 = b->y1; + b->y1 = result; + + return result; +} + +// Sets up a BiQuad Filter. +biquad_t biquad_create +(int type, double gain, double freq, double srate, double bw) +{ + biquad_t b; + memset(&b, 0, sizeof(biquad_t)); + + double A, omega, sn, cs, alpha, beta; + double a0, a1, a2, b0, b1, b2; + + // setup variables + A = pow(10, gain / 40); + omega = 2 * M_PI * freq / srate; + sn = sin(omega); + cs = cos(omega); + alpha = sn * sinh(M_LN2 /2 * bw * omega /sn); + beta = sqrt(A + A); + + switch (type) { + case LPF: + b0 = (1 - cs) /2; + b1 = 1 - cs; + b2 = (1 - cs) /2; + a0 = 1 + alpha; + a1 = -2 * cs; + a2 = 1 - alpha; + break; + case HPF: + b0 = (1 + cs) /2; + b1 = -(1 + cs); + b2 = (1 + cs) /2; + a0 = 1 + alpha; + a1 = -2 * cs; + a2 = 1 - alpha; + break; + case BPF: + b0 = alpha; + b1 = 0; + b2 = -alpha; + a0 = 1 + alpha; + a1 = -2 * cs; + a2 = 1 - alpha; + break; + case NOTCH: + b0 = 1; + b1 = -2 * cs; + b2 = 1; + a0 = 1 + alpha; + a1 = -2 * cs; + a2 = 1 - alpha; + break; + case PEQ: + b0 = 1 + (alpha * A); + b1 = -2 * cs; + b2 = 1 - (alpha * A); + a0 = 1 + (alpha /A); + a1 = -2 * cs; + a2 = 1 - (alpha /A); + break; + case LSH: + b0 = A * ((A + 1) - (A - 1) * cs + beta * sn); + b1 = 2 * A * ((A - 1) - (A + 1) * cs); + b2 = A * ((A + 1) - (A - 1) * cs - beta * sn); + a0 = (A + 1) + (A - 1) * cs + beta * sn; + a1 = -2 * ((A - 1) + (A + 1) * cs); + a2 = (A + 1) + (A - 1) * cs - beta * sn; + break; + case HSH: + b0 = A * ((A + 1) + (A - 1) * cs + beta * sn); + b1 = -2 * A * ((A - 1) + (A + 1) * cs); + b2 = A * ((A + 1) + (A - 1) * cs - beta * sn); + a0 = (A + 1) - (A - 1) * cs + beta * sn; + a1 = 2 * ((A - 1) - (A + 1) * cs); + a2 = (A + 1) - (A - 1) * cs - beta * sn; + break; + default: + LOG(ERROR, "biquad: unrecognized filter"); + exit(EXIT_FAILURE); + } + + // Precompute the coefficients. + b.a0 = b0 / a0; + b.a1 = b1 / a0; + b.a2 = b2 / a0; + b.a3 = a1 / a0; + b.a4 = a2 / a0; + + // Zero initial samples. + b.x1 = 0; + b.x2 = 0; + b.y1 = 0; + b.y2 = 0; + + return b; +} diff --git a/src/audio/biquad.h b/src/audio/biquad.h new file mode 100644 index 0000000..b136648 --- /dev/null +++ b/src/audio/biquad.h @@ -0,0 +1,35 @@ +#ifndef NES_TOOLS_BIQUAD_H +#define NES_TOOLS_BIQUAD_H + +#include "../system.h" + +typedef struct +{ + double a0; + double a1; + double a2; + double a3; + double a4; + + double x1; + double x2; + double y1; + double y2; + +} biquad_t; + +enum +{ + LPF, // Low pass filter. + HPF, // High pass filter. + BPF, // Band pass filter. + NOTCH, // Notch Filter. + PEQ, // Peaking band EQ filter. + LSH, // Low shelf filter. + HSH // High shelf filter. +}; + +biquad_t biquad_create(int type, double gain, double freq, double srate, double bw); +double biquad_apply(biquad_t* b, double sample); + +#endif // NES_TOOLS_BIQUAD_H diff --git a/src/audio/dmc.c b/src/audio/dmc.c new file mode 100644 index 0000000..c0e57ec --- /dev/null +++ b/src/audio/dmc.c @@ -0,0 +1,46 @@ +#include "dmc.h" + +static uint16_t dmc_rate_index_ntsc[16] = +{ + 428, 380, 340, 320, 286, 254, 226, 214, + 190, 160, 142, 128, 106, 84, 72, 54 +}; + +static uint16_t dmc_rate_index_pal[16] = +{ + 398, 354, 316, 298, 276, 236, 210, 198, + 176, 148, 132, 118, 98, 78, 66, 50 +}; + +dmc_t dmc_create() +{ + dmc_t dmc; + memset(&dmc, 0, sizeof(dmc_t)); + + dmc.empty = 1; + dmc.silence = 1; + + return dmc; +} + +void dmc_set_ctrl(dmc_t* dmc, enum tv_system type, uint8_t val) +{ + dmc->loop = (val & BIT_6) > 0; + dmc->irq_enable = (val & BIT_7) > 0; + if(!dmc->irq_enable) { + dmc->interrupt = 0; + } + + dmc->rate = (type == NTSC) ? + dmc_rate_index_ntsc[val & 0xf] - 1 : + dmc_rate_index_pal[val & 0xf] - 1; +} + +void dmc_set_da(dmc_t* dmc, uint8_t val) +{ dmc->counter = val & 0x7F; } + +void dmc_set_addr(dmc_t* dmc, uint8_t val) +{ dmc->sample_addr = 0xC000 + (uint16_t)val * 64; } + +void dmc_set_length(dmc_t* dmc, uint8_t val) +{ dmc->sample_length = (uint16_t)val * 16 + 1; } diff --git a/src/audio/dmc.h b/src/audio/dmc.h new file mode 100644 index 0000000..811d8d6 --- /dev/null +++ b/src/audio/dmc.h @@ -0,0 +1,40 @@ +#ifndef NES_TOOLS_DMC_H +#define NES_TOOLS_DMC_H + +#include "../system.h" +#include "../mapper.h" +#include "audio.h" + +typedef struct +{ + uint8_t enabled; + uint8_t irq_enable; + uint8_t loop; + uint8_t counter; + uint16_t sample_length; + uint16_t sample_addr; + uint8_t interrupt; + uint8_t irq_set; + uint16_t rate; + uint16_t rate_index; + + // Output unit + uint8_t bits_remaining; + uint8_t silence; + uint8_t bits; + + // Memory reader. + uint8_t sample; + uint8_t empty; + uint16_t bytes_remaining; + uint16_t current_addr; + +} dmc_t; + +dmc_t dmc_create(); +void dmc_set_ctrl(dmc_t* dmc, enum tv_system type, uint8_t val); +void dmc_set_da(dmc_t* dmc, uint8_t val); +void dmc_set_addr(dmc_t* dmc, uint8_t val); +void dmc_set_length(dmc_t* dmc, uint8_t val); + +#endif // NES_TOOLS_DMC_H diff --git a/src/audio/noise.c b/src/audio/noise.c new file mode 100644 index 0000000..215c899 --- /dev/null +++ b/src/audio/noise.c @@ -0,0 +1,49 @@ +#include "noise.h" + +static const uint16_t noise_period_lookup_ntsc[16] = +{ + 4, 8, 16, 32, 64, 96, 128, 160, 202, + 254, 380, 508, 762, 1016, 2034, 4068 +}; + +static const uint16_t noise_period_lookup_pal[16] = +{ + 4, 8, 14, 30, 60, 88, 118, 148, 188, + 236, 354, 472, 708, 944, 1890, 3778 +}; + +noise_t noise_create() +{ + noise_t noise; + memset(&noise, 0, sizeof(noise_t)); + + noise.enabled = 0; + noise.timer.limit = 0; + noise.shift = 1; + + return noise; +} + +void noise_set_ctrl(noise_t* noise, uint8_t val) +{ + noise->const_volume = (val & BIT_4) > 0; + noise->envelope.loop = (val & BIT_5) > 0; + noise->envelope.period = val & 0xF; +} + +void noise_set_period(noise_t* noise, enum tv_system type, uint8_t val) +{ + noise->timer.period = (type == PAL) ? + noise_period_lookup_pal[val & 0xF] : + noise_period_lookup_ntsc[val & 0xF]; + + noise->mode = (val & BIT_7) > 0; +} + +void noise_set_length(noise_t* noise, uint8_t val) +{ + if (noise->enabled) + noise->l = length_counter_lookup[val >> 3]; + + noise->envelope.step = 15; +} diff --git a/src/audio/noise.h b/src/audio/noise.h new file mode 100644 index 0000000..a0e9594 --- /dev/null +++ b/src/audio/noise.h @@ -0,0 +1,26 @@ +#ifndef NES_TOOLS_NOISE_H +#define NES_TOOLS_NOISE_H + +#include "../system.h" +#include "../mapper.h" +#include "audio.h" + +typedef struct +{ + divider_t timer; + uint8_t mode; + uint8_t l; + uint16_t shift; + uint8_t const_volume; + divider_t envelope; + uint8_t envelope_loop; + uint8_t enabled; + +} noise_t; + +noise_t noise_create(); +void noise_set_ctrl(noise_t* noise, uint8_t val); +void noise_set_period(noise_t* noise, enum tv_system type, uint8_t val); +void noise_set_length(noise_t* noise, uint8_t val); + +#endif // NES_TOOLS_NOISE_H diff --git a/src/audio/pulse.c b/src/audio/pulse.c new file mode 100644 index 0000000..4905eef --- /dev/null +++ b/src/audio/pulse.c @@ -0,0 +1,79 @@ +#include "pulse.h" + +static void update_target_period(pulse_t* pulse) +{ + int change = pulse->t.period >> pulse->shift; + change = pulse->neg ? pulse->id == 1 ? - change - 1 : -change : change; + + // Add 1 (2's complement) for pulse 2. + change = pulse->t.period + change; + pulse->target_period = change < 0 ? 0 : change; + + pulse->mute = (pulse->t.period < 8 || pulse->target_period > 0x7ff) ? + 1 : 0; +} + +pulse_t pulse_create(uint8_t id) +{ + pulse_t pulse; + memset(&pulse, 0, sizeof(pulse_t)); + + pulse.id = id; + pulse.t.step = 0; + pulse.t.from = 0; + pulse.t.limit = 7; + pulse.t.loop = 1; + pulse.sweep.limit = 0; + pulse.enabled = 0; + + return pulse; +} + +void pulse_set_ctrl(pulse_t* pulse, uint8_t value) +{ + pulse->const_volume = (value & BIT_4) > 0; + pulse->envelope.loop = (value & BIT_5) > 0; + pulse->envelope.period = value & 0xF; + pulse->envelope.counter = pulse->envelope.period; + pulse->envelope.step = 15; + pulse->duty = value >> 6; +} + +void pulse_set_timer(pulse_t* pulse, uint8_t value) +{ + pulse->t.period = (pulse->t.period & ~0xff) | value; + update_target_period(pulse); +} + +void pulse_set_sweep(pulse_t* pulse, uint8_t value) +{ + pulse->enable_sweep = (value & BIT_7) > 0; + pulse->sweep.period = ((value & PULSE_PERIOD) >> 4) + 1; + pulse->sweep.counter = pulse->sweep.period; + pulse->shift = value & PULSE_SHIFT; + pulse->neg = value & BIT_3; + update_target_period(pulse); +} + +void pulse_set_length_counter(pulse_t* pulse, uint8_t value) +{ + pulse->t.period = (pulse->t.period & 0xff) | (value & 0x7) << 8; + if (pulse->enabled) + pulse->l = length_counter_lookup[value >> 3]; + + update_target_period(pulse); + pulse->envelope.step = 15; +} + +void pulse_length_sweep(pulse_t* pulse) +{ + if (divider_clock(&pulse->sweep) && pulse->enable_sweep && + pulse->shift > 0 && !pulse->mute) { + pulse->t.period = pulse->target_period; + update_target_period(pulse); + } + + // Length counter. + if (pulse->l && !pulse->envelope.loop) + pulse->l--; +} diff --git a/src/audio/pulse.h b/src/audio/pulse.h new file mode 100644 index 0000000..1a5580e --- /dev/null +++ b/src/audio/pulse.h @@ -0,0 +1,32 @@ +#ifndef NES_TOOLS_PULSE_H +#define NES_TOOLS_PULSE_H + +#include "audio.h" + +typedef struct +{ + divider_t t; + uint8_t l; + uint8_t id; + uint8_t neg; + uint8_t shift; + divider_t sweep; + uint8_t enable_sweep; + uint8_t duty; + uint8_t const_volume; + divider_t envelope; + uint8_t envelope_loop; + uint8_t enabled; + uint8_t mute; + uint16_t target_period; + +} pulse_t; + +pulse_t pulse_create(uint8_t id); +void pulse_set_ctrl(pulse_t* pulse, uint8_t value); +void pulse_set_timer(pulse_t* pulse, uint8_t value); +void pulse_set_sweep(pulse_t* pulse, uint8_t value); +void pulse_set_length_counter(pulse_t* pulse, uint8_t value); +void pulse_length_sweep(pulse_t* pulse); + +#endif // NES_TOOLS_PULSE_H diff --git a/src/audio/triangle.c b/src/audio/triangle.c new file mode 100644 index 0000000..6043e81 --- /dev/null +++ b/src/audio/triangle.c @@ -0,0 +1,58 @@ +#include "triangle.h" + +const uint8_t triangle_sequence[32] = +{ + 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 +}; + +triangle_t triangle_create() +{ + triangle_t tri; + memset(&tri, 0, sizeof(triangle_t)); + + tri.sequencer.step = 0; + tri.sequencer.limit = 31; + tri.sequencer.from = 0; + tri.enabled = 0; + tri.halt = 1; + + return tri; +} + +void triangle_set_counter(triangle_t* tri, uint8_t val) +{ + tri->linear_reload = val & 0x7f; + tri->halt = (val & BIT_7) > 0; +} + +void triangle_set_timer_low(triangle_t* tri, uint8_t val) +{ tri->sequencer.period = (tri->sequencer.period & ~0xff) | val; } + +void triangle_set_length(triangle_t* tri, uint8_t val) +{ + tri->sequencer.period = (tri->sequencer.period & 0xff) | (val & 0x7) << 8; + tri->linear_reload_flag = 1; + if (!tri->enabled) + return; + + tri->length_counter = length_counter_lookup[val >> 3]; +} + +uint8_t triangle_clock(triangle_t* tri) +{ + divider_t* divider = &tri->sequencer; + if (divider->counter) { + divider->counter--; + return 0; + } + + divider->counter = divider->period; + if (tri->length_counter && tri->linear_counter) + divider->step++; + + if (divider->limit && divider->step > divider->limit) + divider->step = divider->from; + + return 1; +} diff --git a/src/audio/triangle.h b/src/audio/triangle.h new file mode 100644 index 0000000..b922ccd --- /dev/null +++ b/src/audio/triangle.h @@ -0,0 +1,27 @@ +#ifndef NES_TOOLS_TRIANGLE_H +#define NES_TOOLS_TRIANGLE_H + +#include "../system.h" +#include "audio.h" + +typedef struct +{ + divider_t sequencer; + uint8_t length_counter; + uint8_t linear_reload; + uint8_t linear_counter; + uint8_t linear_reload_flag; + uint8_t halt; + uint8_t enabled; + +} triangle_t; + +extern const uint8_t triangle_sequence[32]; + +triangle_t triangle_create(); +void triangle_set_counter(triangle_t* tri, uint8_t value); +void triangle_set_timer_low(triangle_t* tri, uint8_t value); +void triangle_set_length(triangle_t* tri, uint8_t value); +uint8_t triangle_clock(triangle_t* tri); + +#endif // NES_TOOLS_TRIANGLE_H diff --git a/src/bus.c b/src/bus.c new file mode 100644 index 0000000..95bf5fa --- /dev/null +++ b/src/bus.c @@ -0,0 +1,258 @@ +#include "bus.h" +#include "ppu.h" + +#include "audio/apu.h" +#include "audio/triangle.h" +#include "audio/noise.h" + +#define REQUIRE_PPU(ppu, then) if (ppu == NULL) then; +#define REQUIRE_APU(apu, then) if (apu == NULL) then; + +void bus_set_cpu(bus_t* bus, struct cpu6502_t* cpu) +{ bus->cpu = cpu; } + +void bus_set_apu(bus_t* bus, struct apu_t* apu) +{ bus->apu = apu; } + +void bus_set_ppu(bus_t* bus, struct ppu_t* ppu) +{ bus->ppu = ppu; } + +bus_t* bus_create(mapper_t* mapper) +{ + bus_t* bus = malloc(sizeof(bus_t)); + bus->mapper = mapper; + + memset(bus->ram, 0, RAM_SIZE); + bus->joy1 = joypad_create(0); + bus->joy2 = joypad_create(1); + + return bus; +} + +void bus_destroy(bus_t* bus) +{ free(bus); } + +void bus_write(bus_t* bus, uint16_t addr, uint8_t val) +{ + uint8_t old = bus->bus; + bus->bus = val; + if (addr < RAM_END) { + bus->ram[addr % RAM_SIZE] = val; + return; + } + + // resolve mirrored registers + if (addr < IO_REG_MIRRORED_END) + addr = 0x2000 + (addr - 0x2000) % 0x8; + + // handle all IO registers + if (addr < IO_REG_END){ + ppu_t* ppu = bus->ppu; + apu_t* apu = bus->apu; + switch (addr) { + case PPU_CTRL: + REQUIRE_PPU(ppu, break); + ppu->ppu_bus = val; + ppu_set_ctrl(ppu, val); + break; + case PPU_MASK: + REQUIRE_PPU(ppu, break); + ppu->ppu_bus = val; + ppu->mask = val; + break; + case PPU_SCROLL: + REQUIRE_PPU(ppu, break); + ppu->ppu_bus = val; + ppu_set_scroll(ppu, val); + break; + case PPU_ADDR: + REQUIRE_PPU(ppu, break); + ppu->ppu_bus = val; + ppu_set_addr(ppu, val); + break; + case PPU_DATA: + REQUIRE_PPU(ppu, break); + ppu->ppu_bus = val; + ppu_write(ppu, val); + break; + case OAM_ADDR: + REQUIRE_PPU(ppu, break); + ppu->ppu_bus = val; + ppu_set_oam_addr(ppu, val); + break; + case OAM_DMA: + REQUIRE_PPU(ppu, break); + ppu_dma(ppu, val); + break; + case OAM_DATA: + REQUIRE_PPU(ppu, break); + ppu->ppu_bus = val; + ppu_write_oam(ppu, val); + break; + case PPU_STATUS: + REQUIRE_PPU(ppu, break); + ppu->ppu_bus = val; + break; + case JOY1: + joypad_write(&bus->joy1, val); + joypad_write(&bus->joy2, val); + bus->bus = (old & 0xf0) | (val & 0xf); + break; + case APU_P1_CTRL: + REQUIRE_APU(apu, break); + pulse_set_ctrl(&apu->pulse1, val); + break; + case APU_P2_CTRL: + REQUIRE_APU(apu, break); + pulse_set_ctrl(&apu->pulse2, val); + break; + case APU_P1_RAMP: + REQUIRE_APU(apu, break); + pulse_set_sweep(&apu->pulse1, val); + break; + case APU_P2_RAMP: + REQUIRE_APU(apu, break); + pulse_set_sweep(&apu->pulse2, val); + break; + case APU_P1_FT: + REQUIRE_APU(apu, break); + pulse_set_timer(&apu->pulse1, val); + break; + case APU_P2_FT: + REQUIRE_APU(apu, break); + pulse_set_timer(&apu->pulse2, val); + break; + case APU_P1_CT: + REQUIRE_APU(apu, break); + pulse_set_length_counter(&apu->pulse1, val); + break; + case APU_P2_CT: + REQUIRE_APU(apu, break); + pulse_set_length_counter(&apu->pulse2, val); + break; + case APU_TRI_LINEAR_COUNTER: + REQUIRE_APU(apu, break); + triangle_set_counter(&apu->tri, val); + break; + case APU_TRI_FREQ1: + REQUIRE_APU(apu, break); + triangle_set_timer_low(&apu->tri, val); + break; + case APU_TRI_FREQ2: + REQUIRE_APU(apu, break); + triangle_set_length(&apu->tri, val); + break; + case APU_NOISE_CTRL: + REQUIRE_APU(apu, break); + noise_set_ctrl(&apu->noise, val); + break; + case APU_NOISE_FREQ1: + REQUIRE_APU(apu, break); + noise_set_period(&apu->noise, apu->bus->mapper->type, val); + break; + case APU_NOISE_FREQ2: + REQUIRE_APU(apu, break); + noise_set_length(&apu->noise, val); + break; + case APU_DMC_ADDR: + REQUIRE_APU(apu, break); + dmc_set_addr(&apu->dmc, val); + break; + case APU_DMC_CTRL: + REQUIRE_APU(apu, break); + dmc_set_ctrl(&apu->dmc, bus->mapper->type, val); + break; + case APU_DMC_DA: + REQUIRE_APU(apu, break); + dmc_set_da(&apu->dmc, val); + break; + case APU_DMC_LEN: + REQUIRE_APU(apu, break); + dmc_set_length(&apu->dmc, val); + break; + case FRAME_COUNTER: + REQUIRE_APU(apu, break); + apu_set_frame_counter_ctrl(apu, val); + break; + case APU_STATUS: + REQUIRE_APU(apu, break); + apu_set_status(apu, val); + break; + default: + break; + } + return; + } + mapper_write_rom(bus->mapper, addr, val); +} + +uint8_t bus_read(bus_t* bus, uint16_t addr) +{ + if (addr < RAM_END) { + bus->bus = bus->ram[addr % RAM_SIZE]; + return bus->bus; + } + + // resolve mirrored registers + if (addr < IO_REG_MIRRORED_END) + addr = 0x2000 + (addr - 0x2000) % 0x8; + + // handle all IO registers + if (addr < IO_REG_END) { + ppu_t* ppu = bus->ppu; + switch (addr) { + case PPU_STATUS: + REQUIRE_PPU(ppu, return bus->bus;); + ppu->ppu_bus &= 0x1f; + ppu->ppu_bus |= ppu_read_status(ppu) & 0xe0; + bus->bus = ppu->ppu_bus; + return bus->bus; + case OAM_DATA: + REQUIRE_PPU(ppu, return bus->bus;); + ppu->ppu_bus = ppu_read_oam(ppu); + bus->bus = ppu->ppu_bus; + return bus->bus; + case PPU_DATA: + REQUIRE_PPU(ppu, return bus->bus;); + ppu->ppu_bus = ppu_read(ppu); + bus->bus = ppu->ppu_bus; + return bus->bus; + case PPU_CTRL: + case PPU_MASK: + case PPU_SCROLL: + case PPU_ADDR: + case OAM_ADDR: + REQUIRE_PPU(ppu, return bus->bus;); + bus->bus = ppu->ppu_bus; + return bus->bus; + case JOY1: + bus->bus &= 0xe0; + bus->bus |= joypad_read(&bus->joy1) & 0x1f; + return bus->bus; + case JOY2: + bus->bus &= 0xe0; + bus->bus |= joypad_read(&bus->joy2) & 0x1f; + return bus->bus; + case APU_STATUS: + REQUIRE_APU(bus->apu, return bus->bus;); + bus->bus = apu_read_status(bus->apu); + return bus->bus; + default: // open bus. + return bus->bus; + } + } + + bus->bus = mapper_read_rom(bus->mapper, bus->bus, addr); + return bus->bus; +} + +uint8_t* bus_get_ptr(bus_t* bus, uint16_t addr) +{ + if (addr < 0x2000) + return bus->ram + (addr % 0x800); + + if (addr > 0x6000 && addr < 0x8000 && bus->mapper->prg_ram != NULL) + return bus->mapper->prg_ram + (addr - 0x6000); + + return NULL; +} diff --git a/src/bus.h b/src/bus.h new file mode 100644 index 0000000..d200ffa --- /dev/null +++ b/src/bus.h @@ -0,0 +1,87 @@ +#ifndef NES_TOOLS_BUS_H +#define NES_TOOLS_BUS_H + +#include "system.h" +#include "mapper.h" +#include "joypad.h" + +#define IRQ_ADDRESS 0xFFFE +#define NMI_ADDRESS 0xFFFA +#define RESET_ADDRESS 0xFFFC +#define RAM_SIZE 0x800 +#define RAM_END 0x2000 +#define IO_REG_MIRRORED_END 0x4000 +#define IO_REG_END 0x4020 + +enum +{ + PPU_CTRL = 0x2000, + PPU_MASK, + PPU_STATUS, + OAM_ADDR, + OAM_DATA, + PPU_SCROLL, + PPU_ADDR, + PPU_DATA, + + APU_P1_CTRL = 0x4000, + APU_P1_RAMP, + APU_P1_FT, + APU_P1_CT, + + APU_P2_CTRL, + APU_P2_RAMP, + APU_P2_FT, + APU_P2_CT, + + APU_TRI_LINEAR_COUNTER, + APU_TRI_FREQ1 = 0x400A, + APU_TRI_FREQ2, + + APU_NOISE_CTRL, + APU_NOISE_FREQ1 = 0x400E, + APU_NOISE_FREQ2, + + APU_DMC_CTRL, + APU_DMC_DA, + APU_DMC_ADDR, + APU_DMC_LEN, + + OAM_DMA, + + APU_CTRL, + APU_STATUS = 0x4015, + JOY1, + JOY2, + FRAME_COUNTER = 0x4017 +}; + +struct cpu6502_t; +struct apu_t; +struct ppu_t; + +typedef struct +{ + mapper_t* mapper; + uint8_t ram[RAM_SIZE]; + uint8_t bus; + joypad_t joy1; + joypad_t joy2; + struct cpu6502_t* cpu; + struct apu_t* apu; + struct ppu_t* ppu; + +} bus_t; + +bus_t* bus_create(mapper_t* mapper); +void bus_destroy(bus_t* bus); + +void bus_write(bus_t* bus, uint16_t addr, uint8_t val); +uint8_t bus_read(bus_t* bus, uint16_t addr); +uint8_t* bus_get_ptr(bus_t* bus, uint16_t addr); + +void bus_set_cpu(bus_t* bus, struct cpu6502_t* cpu); +void bus_set_apu(bus_t* bus, struct apu_t* apu); +void bus_set_ppu(bus_t* bus, struct ppu_t* ppu); + +#endif // NES_TOOLS_BUS_H diff --git a/src/config.h.in b/src/config.h.in new file mode 100644 index 0000000..440e074 --- /dev/null +++ b/src/config.h.in @@ -0,0 +1,63 @@ +/* src/config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SDL2_SDL_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SDL2_SDL_TTF_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDARG_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDIO_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_TIME_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the home page for this package. */ +#undef PACKAGE_URL + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to 1 if all of the C90 standard headers exist (not just the ones + required in a freestanding environment). This macro is provided for + backward compatibility; new code need not use it. */ +#undef STDC_HEADERS diff --git a/src/cpu6502.c b/src/cpu6502.c new file mode 100644 index 0000000..4ba7659 --- /dev/null +++ b/src/cpu6502.c @@ -0,0 +1,709 @@ +#include "cpu6502.h" + +#define DMA_CYCLES 513 + +static uint16_t read_abs_addr(bus_t* bus, uint16_t offset) +{ + // 16 bit address is little endian so read lo then hi + uint16_t lo = (uint16_t)bus_read(bus, offset); + uint16_t hi = (uint16_t)bus_read(bus, offset + 1); + return (hi << 8) | lo; +} + +static uint8_t has_page_break(uint16_t addr1, uint16_t addr2) +{ return (addr1 & 0xFF00) != (addr2 & 0xFF00); } + +static uint16_t get_address(cpu6502_t* cpu) +{ + uint16_t addr, hi, lo; + switch (cpu->instr->mode) { + case IMPL: + case ACC: + bus_read(cpu->bus, cpu->pc); + case NONE: + return 0; + case REL: { + int8_t offset = (int8_t)bus_read(cpu->bus, cpu->pc++); + return cpu->pc + offset; + } + case IMT: + return cpu->pc++; + case ZPG: + return bus_read(cpu->bus, cpu->pc++) & 0xFF; + case ZPG_X: + addr = bus_read(cpu->bus, cpu->pc++); + return (addr + cpu->x) & 0xFF; + case ZPG_Y: + addr = bus_read(cpu->bus, cpu->pc++); + return (addr + cpu->y) & 0xFF; + case ABS: + addr = read_abs_addr(cpu->bus, cpu->pc); + cpu->pc += 2; + return addr; + case ABS_X: + addr = read_abs_addr(cpu->bus, cpu->pc); + cpu->pc += 2; + switch (cpu->instr->opcode) { + case STA: case ASL: case DEC: case INC: + case LSR: case ROL: case ROR: case SLO: + case RLA: case SRE: case RRA: case DCP: + case ISB: case SHY: + bus_read(cpu->bus, (addr & 0xff00) | ((addr + cpu->x) & 0xff)); + break; + default: + if (has_page_break(addr, addr + cpu->x)) { + bus_read(cpu->bus, (addr & 0xff00) | ((addr + cpu->x) & 0xff)); + cpu->cycles++; + } + } + return addr + cpu->x; + case ABS_Y: + addr = read_abs_addr(cpu->bus, cpu->pc); + cpu->pc += 2; + switch (cpu->instr->opcode) { + case STA: case SLO: case RLA: case SRE: + case RRA: case DCP: case ISB: case NOP: + bus_read(cpu->bus, (addr & 0xff00) | ((addr + cpu->y) & 0xff)); + break; + default: + if (has_page_break(addr, addr + cpu->y)) { + bus_read(cpu->bus, (addr & 0xff00) | ((addr + cpu->y) & 0xff)); + cpu->cycles++; + } + } + return addr + cpu->y; + case IND: + addr = read_abs_addr(cpu->bus, cpu->pc); + cpu->pc += 2; + lo = bus_read(cpu->bus, addr); + hi = bus_read(cpu->bus, (addr & 0xFF00) | ((addr + 1) & 0xFF)); + return (hi << 8) | lo; + case IDX_IND: + addr = (bus_read(cpu->bus, cpu->pc++) + cpu->x) & 0xFF; + hi = bus_read(cpu->bus, (addr + 1) & 0xFF); + lo = bus_read(cpu->bus, addr & 0xFF); + return (hi << 8) | lo; + case IND_IDX: + addr = bus_read(cpu->bus, cpu->pc++); + hi = bus_read(cpu->bus, (addr + 1) & 0xFF); + lo = bus_read(cpu->bus, addr & 0xFF); + addr = (hi << 8) | lo; + switch (cpu->instr->opcode) { + case STA:case SLO:case RLA:case SRE:case RRA:case DCP:case ISB: case NOP: + bus_read(cpu->bus, (addr & 0xff00) | ((addr + cpu->y) & 0xff)); + break; + default: + if (has_page_break(addr, addr + cpu->y)) { + bus_read(cpu->bus, (addr & 0xff00) | ((addr + cpu->y) & 0xff)); + cpu->cycles++; + } + } + return addr + cpu->y; + } + return 0; +} + +static void set_zn(cpu6502_t* cpu, uint8_t value) +{ + cpu->sr &= ~(NEGATIVE | ZERO); + cpu->sr |= ((!value)? ZERO: 0); + cpu->sr |= (value & NEGATIVE); +} + +static void fast_set_zn(cpu6502_t* cpu, uint8_t value) +{ + // this assumes the necessary flags (Z & N) have been cleared + cpu->sr |= ((!value)? ZERO: 0); + cpu->sr |= (value & NEGATIVE); +} + +static void stack_push(cpu6502_t* cpu, uint8_t value) +{ bus_write(cpu->bus, STACK_START + cpu->sp--, value); } + +static void stack_push_addr(cpu6502_t* cpu, uint16_t addr) +{ + bus_write(cpu->bus, STACK_START + cpu->sp--, addr >> 8); + bus_write(cpu->bus, STACK_START + cpu->sp--, addr & 0xFF); +} + +static uint8_t stack_pop(cpu6502_t* cpu) +{ return bus_read(cpu->bus, STACK_START + ++cpu->sp); } + +static uint16_t stack_pop_addr(cpu6502_t* cpu) +{ + uint16_t addr = bus_read(cpu->bus, STACK_START + ++cpu->sp); + return addr | ((uint16_t)bus_read(cpu->bus, STACK_START + ++cpu->sp)) << 8; +} + +cpu6502_t* cpu_create(bus_t* bus) +{ + cpu6502_t* cpu = malloc(sizeof(cpu6502_t)); + cpu->interrupt = NOI; + cpu->bus = bus; + cpu->ac = 0; + cpu->x = 0; + cpu->y = 0; + cpu->state = 0; + cpu->cycles = 0; + cpu->dma_cycles = 0; + cpu->odd_cycle = 0; + cpu->t_cycles = 0; + cpu->sr = 0x24; + cpu->sp = 0xfd; + cpu->pc = read_abs_addr(cpu->bus, RESET_ADDRESS); + return cpu; +} + +void cpu_destroy(cpu6502_t* cpu) +{ free(cpu); } + +void cpu_reset(cpu6502_t* cpu) +{ + cpu->sr |= INTERRUPT; + cpu->sp -= 3; + cpu->pc = read_abs_addr(cpu->bus, RESET_ADDRESS); + cpu->cycles = 0; + cpu->dma_cycles = 0; +} + +static void branch(cpu6502_t* cpu, uint8_t mask, uint8_t predicate) +{ + if (((cpu->sr & mask) > 0) == predicate) { + cpu->cycles += has_page_break(cpu->pc, cpu->addr); + cpu->cycles++; + cpu->state |= BRANCH_STATE; + return; + } + cpu->state &= ~BRANCH_STATE; +} + +static void prep_branch(cpu6502_t* cpu) +{ + switch(cpu->instr->opcode){ + case BCC: + branch(cpu, CARRY, 0); + break; + case BCS: + branch(cpu, CARRY, 1); + break; + case BEQ: + branch(cpu, ZERO, 1); + break; + case BMI: + branch(cpu, NEGATIVE, 1); + break; + case BNE: + branch(cpu, ZERO, 0); + break; + case BPL: + branch(cpu, NEGATIVE, 0); + break; + case BVC: + branch(cpu, OVERFLW, 0); + break; + case BVS: + branch(cpu, OVERFLW, 1); + break; + default: + cpu->state &= ~BRANCH_STATE; + } +} + +static uint8_t shift_l(cpu6502_t* cpu, uint8_t val) +{ + cpu->sr &= ~(CARRY | ZERO | NEGATIVE); + cpu->sr |= (val & NEGATIVE) ? CARRY: 0; + val <<= 1; + fast_set_zn(cpu, val); + return val; +} + +static uint8_t shift_r(cpu6502_t* cpu, uint8_t val) +{ + cpu->sr &= ~(CARRY | ZERO | NEGATIVE); + cpu->sr |= (val & 0x1) ? CARRY: 0; + val >>= 1; + fast_set_zn(cpu, val); + return val; +} + +static uint8_t rot_l(cpu6502_t* cpu, uint8_t val) +{ + uint8_t rotated = val << 1; + rotated |= cpu->sr & CARRY; + cpu->sr &= ~(CARRY | ZERO | NEGATIVE); + cpu->sr |= val & NEGATIVE ? CARRY: 0; + fast_set_zn(cpu, rotated); + return rotated; +} + +static uint8_t rot_r(cpu6502_t* cpu, uint8_t val) +{ + uint8_t rotated = val >> 1; + rotated |= (cpu->sr & CARRY) << 7; + cpu->sr &= ~(CARRY | ZERO | NEGATIVE); + cpu->sr |= val & CARRY; + fast_set_zn(cpu, rotated); + return rotated; +} + +static void interrupt_(cpu6502_t* cpu) +{ + if ((cpu->sr & INTERRUPT) && cpu->interrupt != NMI) { + cpu->interrupt = NOI; + return; + } + + uint16_t addr; + switch (cpu->interrupt) { + case NMI: + addr = NMI_ADDRESS; + break; + case IRQ: + addr = IRQ_ADDRESS; + cpu->sr |= BREAK; + break; + case RSI: + addr = RESET_ADDRESS; + break; + case NOI: + LOG(ERROR, "No interrupt set"); + return; + default: + LOG(ERROR, "Unknown interrupt"); + return; + } + + stack_push_addr(cpu, cpu->pc); + stack_push(cpu, cpu->sr); + cpu->sr &= ~INTERRUPT; + cpu->sr |= INTERRUPT; + cpu->pc = read_abs_addr(cpu->bus, addr); + cpu->interrupt = NOI; +} + +void cpu_dma_suspend(cpu6502_t* cpu) +{ + if (!cpu) return; + + // Extra cycle on odd cycles. + cpu->dma_cycles += DMA_CYCLES + cpu->odd_cycle; +} + +void cpu_exec(cpu6502_t* cpu) +{ + cpu->odd_cycle ^= 1; + cpu->t_cycles++; + + // Handle DMA suspended cycles. + if (cpu->dma_cycles != 0) { + cpu->dma_cycles--; + return; + } + + // Poll for pending interrupts. + if (cpu->cycles == 0 && cpu->interrupt != NOI) { + cpu->state |= INTERRUPT_PENDING; + + // Takes 7 cycles and this is one of them. + cpu->cycles = 7 - 1; + + return; + } + + // Fetch new instruction. + if (cpu->cycles == 0) { + uint8_t opcode = bus_read(cpu->bus, cpu->pc++); + cpu->instr = &cpu_instr_lookup[opcode]; + cpu->addr = get_address(cpu); + cpu->cycles += cpu_cycle_lookup[opcode]; + + // Prepare for branching and adjust cycles accordingly + prep_branch(cpu); + cpu->cycles--; + return; + } + + if (cpu->cycles == 1) + cpu->cycles--; + + // Process current instruction. + if (cpu->cycles > 1) { + cpu->cycles--; + return; + } + + // Handle pending interrupts. + if (cpu->state & INTERRUPT_PENDING) { + interrupt_(cpu); + cpu->state &= ~INTERRUPT_PENDING; + return; + } + + // Execute current instruction. + uint16_t address = cpu->addr; + switch (cpu->instr->opcode) { + case LDA: + cpu->ac = bus_read(cpu->bus, address); + set_zn(cpu, cpu->ac); + break; + case LDX: + cpu->x = bus_read(cpu->bus, address); + set_zn(cpu, cpu->x); + break; + case LDY: + cpu->y = bus_read(cpu->bus, address); + set_zn(cpu, cpu->y); + break; + case STA: + bus_write(cpu->bus, address, cpu->ac); + break; + case STY: + bus_write(cpu->bus, address, cpu->y); + break; + case STX: + bus_write(cpu->bus, address, cpu->x); + break; + case TAX: + cpu->x = cpu->ac; + set_zn(cpu, cpu->x); + break; + case TAY: + cpu->y = cpu->ac; + set_zn(cpu, cpu->y); + break; + case TXA: + cpu->ac = cpu->x; + set_zn(cpu, cpu->ac); + break; + case TYA: + cpu->ac = cpu->y; + set_zn(cpu, cpu->ac); + break; + case TSX: + cpu->x = cpu->sp; + set_zn(cpu, cpu->x); + break; + case TXS: + cpu->sp = cpu->x; + break; + case PHA: + stack_push(cpu, cpu->ac); + break; + case PHP: + stack_push(cpu, cpu->sr | BIT_4 | BIT_5); + break; + case PLA: + cpu->ac = stack_pop(cpu); + set_zn(cpu, cpu->ac); + break; + case PLP: + cpu->sr &= (BIT_4 |BIT_5); + cpu->sr |= stack_pop(cpu) & ~(BIT_4 | BIT_5); + break; + case AND: + cpu->ac &= bus_read(cpu->bus, address); + set_zn(cpu, cpu->ac); + break; + case EOR: + cpu->ac ^= bus_read(cpu->bus, address); + set_zn(cpu, cpu->ac); + break; + case ORA: + cpu->ac |= bus_read(cpu->bus, address); + set_zn(cpu, cpu->ac); + break; + case BIT: { + uint8_t opr = bus_read(cpu->bus, address); + cpu->sr &= ~(NEGATIVE | OVERFLW | ZERO); + cpu->sr |= (!(opr & cpu->ac) ? ZERO: 0); + cpu->sr |= (opr & (NEGATIVE | OVERFLW)); + break; + } + case ADC: { + uint8_t opr = bus_read(cpu->bus, address); + uint16_t sum = cpu->ac + opr + ((cpu->sr & CARRY) != 0); + cpu->sr &= ~(CARRY | OVERFLW | NEGATIVE | ZERO); + cpu->sr |= (sum & 0xFF00 ? CARRY: 0); + cpu->sr |= ((cpu->ac ^ sum) & (opr ^ sum) & 0x80) ? OVERFLW: 0; + cpu->ac = sum; + fast_set_zn(cpu, cpu->ac); + break; + } + case SBC: { + uint8_t opr = bus_read(cpu->bus, address); + uint16_t diff = cpu->ac - opr - ((cpu->sr & CARRY) == 0); + cpu->sr &= ~(CARRY | OVERFLW | NEGATIVE | ZERO); + cpu->sr |= (!(diff & 0xFF00)) ? CARRY : 0; + cpu->sr |= ((cpu->ac ^ diff) & (~opr ^ diff) & 0x80) ? OVERFLW: 0; + cpu->ac = diff; + fast_set_zn(cpu, cpu->ac); + break; + } + case CMP: { + uint16_t diff = cpu->ac - bus_read(cpu->bus, address); + cpu->sr &= ~(CARRY | NEGATIVE | ZERO); + cpu->sr |= !(diff & 0xFF00) ? CARRY: 0; + fast_set_zn(cpu, diff); + break; + } + case CPX: { + uint16_t diff = cpu->x - bus_read(cpu->bus, address); + cpu->sr &= ~(CARRY | NEGATIVE | ZERO); + cpu->sr |= !(diff & 0x100) ? CARRY: 0; + fast_set_zn(cpu, diff); + break; + } + case CPY: { + uint16_t diff = cpu->y - bus_read(cpu->bus, address); + cpu->sr &= ~(CARRY | NEGATIVE | ZERO); + cpu->sr |= !(diff & 0xFF00) ? CARRY: 0; + fast_set_zn(cpu, diff); + break; + } + case DEC: { + uint8_t m = bus_read(cpu->bus, address); + bus_write(cpu->bus, address, m--); + bus_write(cpu->bus, address, m); + set_zn(cpu, m); + break; + } + case DEX: + cpu->x--; + set_zn(cpu, cpu->x); + break; + case DEY: + cpu->y--; + set_zn(cpu, cpu->y); + break; + case INC: { + uint8_t m = bus_read(cpu->bus, address); + bus_write(cpu->bus, address, m++); + bus_write(cpu->bus, address, m); + set_zn(cpu, m); + break; + } + case INX: + cpu->x++; + set_zn(cpu, cpu->x); + break; + case INY: + cpu->y++; + set_zn(cpu, cpu->y); + break; + case ASL: + if (cpu->instr->mode == ACC) { + cpu->ac = shift_l(cpu, cpu->ac); + break; + } + uint8_t m = bus_read(cpu->bus, address); + bus_write(cpu->bus, address, m); + bus_write(cpu->bus, address, shift_l(cpu, m)); + break; + case LSR: { + if (cpu->instr->mode == ACC) { + cpu->ac = shift_r(cpu, cpu->ac); + break; + } + uint8_t m = bus_read(cpu->bus, address); + bus_write(cpu->bus, address, m); + bus_write(cpu->bus, address, shift_r(cpu, m)); + break; + } + case ROL: { + if (cpu->instr->mode == ACC) { + cpu->ac = rot_l(cpu, cpu->ac); + break; + } + uint8_t m = bus_read(cpu->bus, address); + bus_write(cpu->bus, address, m); + bus_write(cpu->bus, address, rot_l(cpu, m)); + break; + } + case ROR: { + if (cpu->instr->mode == ACC) { + cpu->ac = rot_r(cpu, cpu->ac); + break; + } + uint8_t m = bus_read(cpu->bus, address); + bus_write(cpu->bus, address, m); + bus_write(cpu->bus, address, rot_r(cpu, m)); + break; + } + case JMP: + cpu->pc = address; + break; + case JSR: + stack_push_addr(cpu, cpu->pc - 1); + cpu->pc = address; + break; + case RTS: + cpu->pc = stack_pop_addr(cpu) + 1; + break; + case BCC: + case BCS: + case BEQ: + case BMI: + case BNE: + case BPL: + case BVC: + case BVS: + if (cpu->state & BRANCH_STATE) { + cpu->pc = cpu->addr; + cpu->state &= ~BRANCH_STATE; + } + break; + case CLC: + cpu->sr &= ~CARRY; + break; + case CLD: + cpu->sr &= ~DECIMAL_; + break; + case CLI: + cpu->sr &= ~INTERRUPT; + break; + case CLV: + cpu->sr &= ~OVERFLW; + break; + case SEC: + cpu->sr |= CARRY; + break; + case SED: + cpu->sr |= DECIMAL_; + break; + case SEI: + cpu->sr |= INTERRUPT; + break; + case BRK: + cpu->pc++; + stack_push_addr(cpu, cpu->pc); + stack_push(cpu, cpu->sr | BIT_5 | BIT_4); + cpu->pc = read_abs_addr(cpu->bus, IRQ_ADDRESS); + cpu->sr |= INTERRUPT; + break; + case RTI: + cpu->sr &= (BIT_4 | BIT_5); + cpu->sr |= stack_pop(cpu) & ~(BIT_4 | BIT_5); + cpu->pc = stack_pop_addr(cpu); + break; + case NOP: + break; + case ALR: + cpu->ac &= bus_read(cpu->bus, address); + cpu->ac = shift_r(cpu, cpu->ac); + break; + case ANC: + cpu->ac = cpu->ac & bus_read(cpu->bus, address); + cpu->sr &= ~(CARRY | ZERO | NEGATIVE); + cpu->sr |= (cpu->ac & NEGATIVE) ? (CARRY | NEGATIVE): 0; + cpu->sr |= ((!cpu->ac)? ZERO: 0); + break; + case ARR: { + uint8_t val = cpu->ac & bus_read(cpu->bus, address); + uint8_t rotated = val >> 1; + rotated |= (cpu->sr & CARRY) << 7; + cpu->sr &= ~(CARRY | ZERO | NEGATIVE | OVERFLW); + cpu->sr |= (rotated & BIT_6) ? CARRY: 0; + cpu->sr |= (((rotated & BIT_6) >> 1) ^ (rotated & BIT_5)) ? OVERFLW: 0; + fast_set_zn(cpu, rotated); + cpu->ac = rotated; + break; + } + case AXS: { + uint8_t opr = bus_read(cpu->bus, address); + cpu->x = cpu->x & cpu->ac; + uint16_t diff = cpu->x - opr; + cpu->sr &= ~(CARRY | NEGATIVE | ZERO); + cpu->sr |= (!(diff & 0xFF00)) ? CARRY : 0; + cpu->x = diff; + fast_set_zn(cpu, cpu->x); + break; + } + case LAX: + cpu->ac = bus_read(cpu->bus, address); + cpu->x = cpu->ac; + set_zn(cpu, cpu->ac); + break; + case SAX: { + bus_write(cpu->bus, address, cpu->ac & cpu->x); + break; + } + case DCP: { + uint8_t m = bus_read(cpu->bus, address); + bus_write(cpu->bus, address, m--); + bus_write(cpu->bus, address, m); + uint16_t diff = cpu->ac - bus_read(cpu->bus, address); + cpu->sr &= ~(CARRY | NEGATIVE | ZERO); + cpu->sr |= !(diff & 0xFF00) ? CARRY: 0; + fast_set_zn(cpu, diff); + break; + } + case ISB: { + uint8_t m = bus_read(cpu->bus, address); + bus_write(cpu->bus, address, m++); + bus_write(cpu->bus, address, m); + uint16_t diff = cpu->ac - m - ((cpu->sr & CARRY) == 0); + cpu->sr &= ~(CARRY | OVERFLW | NEGATIVE | ZERO); + cpu->sr |= (!(diff & 0xFF00)) ? CARRY : 0; + cpu->sr |= ((cpu->ac ^ diff) & (~m ^ diff) & 0x80) ? OVERFLW: 0; + cpu->ac = diff; + fast_set_zn(cpu, cpu->ac); + break; + } + case RLA: { + uint8_t m = bus_read(cpu->bus, address); + bus_write(cpu->bus, address, m); + m = rot_l(cpu, m); + bus_write(cpu->bus, address, m); + cpu->ac &= m; + set_zn(cpu, cpu->ac); + break; + } + case RRA: { + uint8_t m = bus_read(cpu->bus, address); + bus_write(cpu->bus, address, m); + m = rot_r(cpu, m); + bus_write(cpu->bus, address, m); + uint16_t sum = cpu->ac + m + ((cpu->sr & CARRY) != 0); + cpu->sr &= ~(CARRY | OVERFLW | NEGATIVE | ZERO); + cpu->sr |= (sum & 0xFF00 ? CARRY : 0); + cpu->sr |= ((cpu->ac ^ sum) & (m ^ sum) & 0x80) ? OVERFLW : 0; + cpu->ac = sum; + fast_set_zn(cpu, sum); + break; + } + case SLO: { + uint8_t m = bus_read(cpu->bus, address); + bus_write(cpu->bus, address, m); + m = shift_l(cpu, m); + bus_write(cpu->bus, address, m); + cpu->ac |= m; + set_zn(cpu, cpu->ac); + break; + } + case SRE: { + uint8_t m = bus_read(cpu->bus, address); + bus_write(cpu->bus, address, m); + m = shift_r(cpu, m); + bus_write(cpu->bus, address, m); + cpu->ac ^= m; + set_zn(cpu, cpu->ac); + break; + } + case SHY: { + uint8_t H = address >> 8, L = address & 0xff; + bus_write(cpu->bus, ((cpu->y & (H + 1)) << 8) | L, cpu->y & (H + 1)); + break; + } + case SHX: { + uint8_t H = address >> 8, L = address & 0xff; + bus_write(cpu->bus, ((cpu->x & (H + 1)) << 8) | L, cpu->x & (H + 1)); + break; + } + default: + break; + } +} + +void cpu_interrupt(cpu6502_t* cpu, enum cpu_interrupt interrupt) +{ cpu->interrupt = interrupt; } diff --git a/src/cpu6502.h b/src/cpu6502.h new file mode 100644 index 0000000..33357a1 --- /dev/null +++ b/src/cpu6502.h @@ -0,0 +1,142 @@ +#ifndef NES_TOOLS_CPU6502_H +#define NES_TOOLS_CPU6502_H + +#include "system.h" +#include "bus.h" + +#define STACK_START 0x100 +#define NIL_OP {NOP, NONE} + +enum +{ + BRANCH_STATE = 1, + INTERRUPT_PENDING = 1 << 1 +}; + +enum cpu_flag +{ + NEGATIVE = 1 << 7, + OVERFLW = 1 << 6, + BREAK = 1 << 4, + DECIMAL_ = 1 << 3, + INTERRUPT = 1 << 2, + ZERO = 1 << 1, + CARRY = 1 +}; + +enum cpu_opcode +{ + // Official opcodes. + + ADC, AND, ASL, BCC, BCS, BEQ, BIT, BMI, BNE, BPL, + BRK, BVC, BVS, CLC, CLD, CLI, CLV, CMP, CPX, CPY, + DEC, DEX, DEY, EOR, INC, INX, INY, JMP, JSR, LDA, + LDX, LDY, LSR, NOP, ORA, PHA, PHP, PLA, PLP, ROL, + ROR, RTI, RTS, SBC, SEC, SED, SEI, STA, STX, STY, + TAX, TAY, TSX, TXA, TXS, TYA, + + // Unofficial opcodes. + + ALR, ANC, ARR, AXS, LAX, LAS, SAX, SHY, SHX, DCP, + ISB, RLA, RRA, SLO, SRE, SKB, IGN, +}; + +enum cpu_addr_mode +{ + NONE, IMPL, ACC, REL, IMT, ZPG, ZPG_X, ZPG_Y, + ABS, ABS_X, ABS_Y, IND, IND_IDX, IDX_IND, +}; + +struct cpu_instr +{ + enum cpu_opcode opcode; + enum cpu_addr_mode mode; +}; + +static const struct cpu_instr cpu_instr_lookup[256] = +{ +// HI\LO 0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 0x9 0xA 0xB 0xC 0xD 0xE 0xF +// ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + /* 0x0 */ {BRK, IMPL},{ORA, IDX_IND}, NIL_OP, {SLO, IDX_IND}, {NOP, ZPG}, {ORA, ZPG}, {ASL, ZPG}, {SLO, ZPG}, {PHP, IMPL}, {ORA, IMT}, {ASL, ACC}, {ANC, IMT}, {NOP, ABS}, {ORA, ABS}, {ASL, ABS}, {SLO, ABS}, + /* 0x1 */ {BPL, REL}, {ORA, IND_IDX}, NIL_OP, {SLO, IND_IDX}, {NOP, ZPG_X}, {ORA, ZPG_X}, {ASL, ZPG_X}, {SLO, ZPG_X}, {CLC, IMPL}, {ORA, ABS_Y}, {NOP, IMPL}, {SLO, ABS_Y}, {NOP, ABS_X}, {ORA, ABS_X}, {ASL, ABS_X}, {SLO, ABS_X}, + /* 0x2 */ {JSR, ABS}, {AND, IDX_IND}, NIL_OP, {RLA, IDX_IND}, {BIT, ZPG}, {AND, ZPG}, {ROL, ZPG}, {RLA, ZPG}, {PLP, IMPL}, {AND, IMT}, {ROL, ACC}, {ANC, IMT}, {BIT, ABS}, {AND, ABS}, {ROL, ABS}, {RLA, ABS}, + /* 0x3 */ {BMI, REL}, {AND, IND_IDX}, NIL_OP, {RLA, IND_IDX}, {NOP, ZPG_X}, {AND, ZPG_X}, {ROL, ZPG_X}, {RLA, ZPG_X}, {SEC, IMPL}, {AND, ABS_Y}, {NOP, IMPL}, {RLA, ABS_Y}, {NOP, ABS_X}, {AND, ABS_X}, {ROL, ABS_X}, {RLA, ABS_X}, + /* 0x4 */ {RTI, IMPL},{EOR, IDX_IND}, NIL_OP, {SRE, IDX_IND}, {NOP, ZPG}, {EOR, ZPG}, {LSR, ZPG}, {SRE, ZPG}, {PHA, IMPL}, {EOR, IMT}, {LSR, ACC}, {ALR, IMT}, {JMP, ABS}, {EOR, ABS}, {LSR, ABS}, {SRE, ABS}, + /* 0x5 */ {BVC, REL}, {EOR, IND_IDX}, NIL_OP, {SRE, IND_IDX}, {NOP, ZPG_X}, {EOR, ZPG_X}, {LSR, ZPG_X}, {SRE, ZPG_X}, {CLI, IMPL}, {EOR, ABS_Y}, {NOP, IMPL}, {SRE, ABS_Y}, {NOP, ABS_X}, {EOR, ABS_X}, {LSR, ABS_X}, {SRE, ABS_X}, + /* 0x6 */ {RTS, IMPL},{ADC, IDX_IND}, NIL_OP, {RRA, IDX_IND}, {NOP, ZPG}, {ADC, ZPG}, {ROR, ZPG}, {RRA, ZPG}, {PLA, IMPL}, {ADC, IMT}, {ROR, ACC}, {ARR, IMT}, {JMP, IND}, {ADC, ABS}, {ROR, ABS}, {RRA, ABS}, + /* 0x7 */ {BVS, REL}, {ADC, IND_IDX}, NIL_OP, {RRA, IND_IDX}, {NOP, ZPG_X}, {ADC, ZPG_X}, {ROR, ZPG_X}, {RRA, ZPG_X}, {SEI, IMPL}, {ADC, ABS_Y}, {NOP, IMPL}, {RRA, ABS_Y}, {NOP, ABS_X}, {ADC, ABS_X}, {ROR, ABS_X}, {RRA, ABS_X}, + /* 0x8 */ {NOP, IMT}, {STA, IDX_IND}, {NOP, IMT}, {SAX, IDX_IND}, {STY, ZPG}, {STA, ZPG}, {STX, ZPG}, {SAX, ZPG}, {DEY, IMPL}, {NOP, IMT}, {TXA, IMPL}, {NOP, IMT}, {STY, ABS}, {STA, ABS}, {STX, ABS}, {SAX, ABS}, + /* 0x9 */ {BCC, REL}, {STA, IND_IDX}, NIL_OP, {NOP, IND_IDX}, {STY, ZPG_X}, {STA, ZPG_X}, {STX, ZPG_Y}, {SAX, ZPG_Y}, {TYA, IMPL}, {STA, ABS_Y}, {TXS, IMPL}, {NOP, ABS_Y}, {SHY, ABS_X}, {STA, ABS_X}, {SHX, ABS_Y}, {NOP, ABS_Y}, + /* 0xA */ {LDY, IMT}, {LDA, IDX_IND}, {LDX, IMT}, {LAX, IDX_IND}, {LDY, ZPG}, {LDA, ZPG}, {LDX, ZPG}, {LAX, ZPG}, {TAY, IMPL}, {LDA, IMT}, {TAX, IMPL}, {LAX, IMT}, {LDY, ABS}, {LDA, ABS}, {LDX, ABS}, {LAX, ABS}, + /* 0xB */ {BCS, REL}, {LDA, IND_IDX}, NIL_OP, {LAX, IND_IDX}, {LDY, ZPG_X}, {LDA, ZPG_X}, {LDX, ZPG_Y}, {LAX, ZPG_Y}, {CLV, IMPL}, {LDA, ABS_Y}, {TSX, IMPL}, {LAS, ABS_Y}, {LDY, ABS_X}, {LDA, ABS_X}, {LDX, ABS_Y}, {LAX, ABS_Y}, + /* 0xC */ {CPY, IMT}, {CMP, IDX_IND}, {NOP, IMT}, {DCP, IDX_IND}, {CPY, ZPG}, {CMP, ZPG}, {DEC, ZPG}, {DCP, ZPG}, {INY, IMPL}, {CMP, IMT}, {DEX, IMPL}, {AXS, IMT}, {CPY, ABS}, {CMP, ABS}, {DEC, ABS}, {DCP, ABS}, + /* 0xD */ {BNE, REL}, {CMP, IND_IDX}, NIL_OP, {DCP, IND_IDX}, {NOP, ZPG_X}, {CMP, ZPG_X}, {DEC, ZPG_X}, {DCP, ZPG_X}, {CLD, IMPL}, {CMP, ABS_Y}, {NOP, IMPL}, {DCP, ABS_Y}, {NOP, ABS_X}, {CMP, ABS_X}, {DEC, ABS_X}, {DCP, ABS_X}, + /* 0xE */ {CPX, IMT}, {SBC, IDX_IND}, {NOP, IMT}, {ISB, IDX_IND}, {CPX, ZPG}, {SBC, ZPG}, {INC, ZPG}, {ISB, ZPG}, {INX, IMPL}, {SBC, IMT}, NIL_OP, {SBC, IMT}, {CPX, ABS}, {SBC, ABS}, {INC, ABS}, {ISB, ABS}, + /* 0xF */ {BEQ, REL}, {SBC, IND_IDX}, NIL_OP, {ISB, IND_IDX}, {NOP, ZPG_X}, {SBC, ZPG_X}, {INC, ZPG_X}, {ISB, ZPG_X}, {SED, IMPL}, {SBC, ABS_Y}, {NOP, IMPL}, {ISB, ABS_Y}, {NOP, ABS_X}, {SBC, ABS_X}, {INC, ABS_X}, {ISB, ABS_X} +}; + +static const uint8_t cpu_cycle_lookup[256] = +{ + // HI/LO 0 1 2 3 4 5 6 7 8 9 A B C D E F + // ----------------------------------------------------- + /* 0 */ 7, 6, 0, 8, 3, 3, 5, 5, 3, 2, 2, 2, 4, 4, 6, 6, + /* 1 */ 2, 5, 0, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, + /* 2 */ 6, 6, 0, 8, 3, 3, 5, 5, 4, 2, 2, 2, 4, 4, 6, 6, + /* 3 */ 2, 5, 0, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, + /* 4 */ 6, 6, 0, 8, 3, 3, 5, 5, 3, 2, 2, 2, 3, 4, 6, 6, + /* 5 */ 2, 5, 0, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, + /* 6 */ 6, 6, 0, 8, 3, 3, 5, 5, 4, 2, 2, 2, 5, 4, 6, 6, + /* 7 */ 2, 5, 0, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, + /* 8 */ 2, 6, 2, 6, 3, 3, 3, 3, 2, 2, 2, 2, 4, 4, 4, 4, + /* 9 */ 2, 6, 0, 6, 4, 4, 4, 4, 2, 5, 2, 5, 5, 5, 5, 5, + /* A */ 2, 6, 2, 6, 3, 3, 3, 3, 2, 2, 2, 2, 4, 4, 4, 4, + /* B */ 2, 5, 0, 5, 4, 4, 4, 4, 2, 4, 2, 4, 4, 4, 4, 4, + /* C */ 2, 6, 2, 8, 3, 3, 5, 5, 2, 2, 2, 2, 4, 4, 6, 6, + /* D */ 2, 5, 0, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, + /* E */ 2, 6, 2, 8, 3, 3, 5, 5, 2, 2, 2, 2, 4, 4, 6, 6, + /* F */ 2, 5, 0, 8, 4, 4, 6, 6, 2, 4, 2, 7, 4, 4, 7, 7, +}; + +enum cpu_interrupt +{ + NOI = 0, + NMI, + RSI, + IRQ +}; + +typedef struct cpu6502_t +{ + uint8_t state; + uint16_t addr; + bus_t* bus; + + // Cycle state. + uint8_t cycles; + size_t t_cycles; + uint16_t dma_cycles; + uint8_t odd_cycle; + + // Registers. + uint16_t pc; + uint8_t ac; + uint8_t x; + uint8_t y; + uint8_t sr; + uint8_t sp; + + // Interrupt flag. + enum cpu_interrupt interrupt; + + const struct cpu_instr* instr; + +} cpu6502_t; + +cpu6502_t* cpu_create(bus_t* bus); +void cpu_destroy(cpu6502_t* cpu); +void cpu_reset(cpu6502_t* cpu); +void cpu_exec(cpu6502_t* cpu); +void cpu_dma_suspend(cpu6502_t* cpu); +void cpu_interrupt(cpu6502_t* cpu, enum cpu_interrupt interrupt); + +#endif // NES_TOOLS_CPU6502_H diff --git a/src/emulator.c b/src/emulator.c new file mode 100644 index 0000000..4696306 --- /dev/null +++ b/src/emulator.c @@ -0,0 +1,189 @@ +#include "emulator.h" + +emulator_t* emulator_create(mapper_t* mapper) +{ + emulator_t* emu = malloc(sizeof(emulator_t)); + emu->mapper = mapper; + emu->type = mapper->type; + + emu->period = (emu->type == PAL) ? + 1000000000 / PAL_FRAME_RATE : + 1000000000 / NTSC_FRAME_RATE; + + emu->turbo_skip = (emu->type == PAL) ? + PAL_FRAME_RATE / PAL_TURBO_RATE : + NTSC_FRAME_RATE / NTSC_TURBO_RATE; + + if (!(emu->gfx = gfx_create(256, 240, 2))) { + free(emu); + return NULL; + } + + emu->gfx->screen_width = -1; + emu->gfx->screen_height = -1; + + if (!(emu->bus = bus_create(emu->mapper))) { + gfx_destroy(emu->gfx); + free(emu); + return NULL; + } + + if (!(emu->ppu = ppu_create(emu->bus))) { + bus_destroy(emu->bus); + gfx_destroy(emu->gfx); + free(emu); + return NULL; + } + + if (!(emu->cpu = cpu_create(emu->bus))) { + ppu_destroy(emu->ppu); + bus_destroy(emu->bus); + gfx_destroy(emu->gfx); + free(emu); + return NULL; + } + + if (!(emu->apu = apu_create(emu->bus, emu->gfx))) { + cpu_destroy(emu->cpu); + ppu_destroy(emu->ppu); + bus_destroy(emu->bus); + gfx_destroy(emu->gfx); + free(emu); + return NULL; + } + + bus_set_cpu(emu->bus, emu->cpu); + bus_set_ppu(emu->bus, emu->ppu); + bus_set_apu(emu->bus, emu->apu); + + emu->timer = timerx_create(emu->period); + emu->exit = 0; + emu->pause = 0; + + return emu; +} + +void emulator_exec(emulator_t* emu) +{ + joypad_t* joy1 = &emu->bus->joy1; + joypad_t* joy2 = &emu->bus->joy2; + ppu_t* ppu = emu->ppu; + cpu6502_t* cpu = emu->cpu; + apu_t* apu = emu->apu; + gfx_t* gfx = emu->gfx; + timerx_t* timer = &emu->timer; + timerx_t frame_timer = timerx_create(emu->period); + + SDL_Event e; + timerx_mark_start(&frame_timer); + + while (!emu->exit) { + timerx_mark_start(timer); + while (SDL_PollEvent(&e)) { + joypad_update(joy1, &e); + joypad_update(joy2, &e); + if ((joy1->status & 0xc) == 0xc || + (joy2->status & 0xc) == 0xc) { + emulator_reset(emu); + } + + switch (e.type) { + case SDL_KEYDOWN: + switch (e.key.keysym.sym) { + case SDLK_ESCAPE: + emu->exit = 1; + break; + case SDLK_AUDIOPLAY: + case SDLK_SPACE: + emu->pause ^= 1; + break; + case SDLK_F5: + emulator_reset(emu); + break; + default: + break; + } + break; + case SDL_QUIT: + emu->exit = 1; + break; + default: + if(e.key.keysym.sym == SDLK_AC_BACK + || e.key.keysym.scancode == SDL_SCANCODE_AC_BACK) { + emu->exit = 1; + LOG(DEBUG, "Exiting emulator session"); + } + } + } + + // Trigger turbo events + if (ppu->frames % emu->turbo_skip == 0) { + joypad_trigger_turbo(joy1); + joypad_trigger_turbo(joy2); + } + + if (!emu->pause) { + // If ppu.render is set a frame is complete + if (emu->type == NTSC) { + while (!ppu->render) { + ppu_exec(ppu); + ppu_exec(ppu); + ppu_exec(ppu); + cpu_exec(cpu); + apu_exec(apu); + } + } + else { + + // PAL + uint8_t check = 0; + while (!ppu->render) { + ppu_exec(ppu); + ppu_exec(ppu); + ppu_exec(ppu); + check++; + if(check == 5) { + // on the fifth run execute an extra ppu clock + // this produces 3.2 scanlines per cpu clock + ppu_exec(ppu); + check = 0; + } + cpu_exec(cpu); + apu_exec(apu); + } + } + gfx_render(gfx, ppu->screen); + ppu->render = 0; + apu_queue_audio(apu, gfx); + timerx_mark_end(timer); + timerx_adjusted_wait(timer); + + } else { + timerx_wait(IDLE_SLEEP); + } + } + timerx_mark_end(&frame_timer); + emu->time_diff = timerx_get_diff(&frame_timer); +} + +void emulator_reset(emulator_t* emu) +{ + LOG(INFO, "Resetting emulator"); + cpu_reset(emu->cpu); + apu_reset(emu->apu); + ppu_reset(emu->ppu); +} + +void emulator_destroy(emulator_t* emu) +{ + LOG(DEBUG, "Starting emulator clean up"); + + apu_destroy(emu->apu); + ppu_destroy(emu->ppu); + cpu_destroy(emu->cpu); + gfx_destroy(emu->gfx); + bus_destroy(emu->bus); + free(emu); + + LOG(DEBUG, "Emulator session successfully terminated"); +} diff --git a/src/emulator.h b/src/emulator.h new file mode 100644 index 0000000..f4083c4 --- /dev/null +++ b/src/emulator.h @@ -0,0 +1,50 @@ +#ifndef NES_TOOLS_EMULATOR_H +#define NES_TOOLS_EMULATOR_H + +#include "system.h" +#include "cpu6502.h" +#include "ppu.h" +#include "bus.h" +#include "audio/apu.h" +#include "mapper.h" +#include "gfx.h" +#include "timerx.h" + +// Frame rate in Hz +#define NTSC_FRAME_RATE 60 +#define PAL_FRAME_RATE 50 + +// Turbo keys toggle rate (Hz): value should be a factor of FRAME_RATE +// and should never exceed FRAME_RATE for best result +#define NTSC_TURBO_RATE 30 +#define PAL_TURBO_RATE 25 + +// Sleep time when emulator is paused in milliseconds. +#define IDLE_SLEEP 50 + +typedef struct +{ + cpu6502_t* cpu; + ppu_t* ppu; + apu_t* apu; + bus_t* bus; + + mapper_t* mapper; + gfx_t* gfx; + double time_diff; + uint8_t exit; + uint8_t pause; + timerx_t timer; + uint64_t period; + uint64_t turbo_skip; + + enum tv_system type; + +} emulator_t; + +emulator_t* emulator_create(mapper_t* mapper); +void emulator_reset(emulator_t* emu); +void emulator_exec(emulator_t* emu); +void emulator_destroy(emulator_t* emu); + +#endif // NES_TOOLS_EMULATOR_H diff --git a/src/font.c b/src/font.c new file mode 100644 index 0000000..e2c249a --- /dev/null +++ b/src/font.c @@ -0,0 +1,3883 @@ +unsigned char font_data[31035] = +{ + 0x00,0x01,0x00,0x00,0x00,0x0F,0x00,0x80, + 0x00,0x03,0x00,0x70,0x44,0x53,0x49,0x47, + 0x00,0x00,0x00,0x01,0x00,0x00,0x78,0x0C, + 0x00,0x00,0x00,0x08,0x46,0x46,0x54,0x4D, + 0x60,0x05,0x61,0x7C,0x00,0x00,0x77,0xD0, + 0x00,0x00,0x00,0x1C,0x47,0x44,0x45,0x46, + 0x00,0x29,0x01,0x01,0x00,0x00,0x77,0xEC, + 0x00,0x00,0x00,0x1E,0x4F,0x53,0x2F,0x32, + 0x16,0xA4,0x2C,0x41,0x00,0x00,0x01,0x78, + 0x00,0x00,0x00,0x60,0x63,0x6D,0x61,0x70, + 0xE5,0x5B,0xA3,0xC5,0x00,0x00,0x05,0xC8, + 0x00,0x00,0x02,0x5A,0x67,0x61,0x73,0x70, + 0x00,0x00,0x00,0x10,0x00,0x00,0x77,0xC8, + 0x00,0x00,0x00,0x08,0x67,0x6C,0x79,0x66, + 0x88,0xAE,0xCA,0xF8,0x00,0x00,0x0A,0x28, + 0x00,0x00,0x62,0x64,0x68,0x65,0x61,0x64, + 0xF9,0x37,0x50,0x46,0x00,0x00,0x00,0xFC, + 0x00,0x00,0x00,0x36,0x68,0x68,0x65,0x61, + 0x07,0x45,0x03,0xE0,0x00,0x00,0x01,0x34, + 0x00,0x00,0x00,0x24,0x68,0x6D,0x74,0x78, + 0xF8,0x17,0x2D,0xA0,0x00,0x00,0x01,0xD8, + 0x00,0x00,0x03,0xF0,0x6C,0x6F,0x63,0x61, + 0xAE,0x85,0x96,0x04,0x00,0x00,0x08,0x2C, + 0x00,0x00,0x01,0xFA,0x6D,0x61,0x78,0x70, + 0x01,0x45,0x00,0x5C,0x00,0x00,0x01,0x58, + 0x00,0x00,0x00,0x20,0x6E,0x61,0x6D,0x65, + 0x27,0xA6,0xD5,0x19,0x00,0x00,0x6C,0x8C, + 0x00,0x00,0x08,0xE2,0x70,0x6F,0x73,0x74, + 0x25,0x2E,0x2A,0x5B,0x00,0x00,0x75,0x70, + 0x00,0x00,0x02,0x56,0x70,0x72,0x65,0x70, + 0x68,0x06,0x8C,0x85,0x00,0x00,0x08,0x24, + 0x00,0x00,0x00,0x07,0x00,0x01,0x00,0x00, + 0x00,0x01,0x00,0x42,0x77,0xB1,0x4E,0x1C, + 0x5F,0x0F,0x3C,0xF5,0x00,0x0B,0x03,0xE8, + 0x00,0x00,0x00,0x00,0xCB,0x3E,0x04,0x94, + 0x00,0x00,0x00,0x00,0xCB,0x3E,0x07,0xBB, + 0xFF,0xB4,0xFF,0x2C,0x03,0xE8,0x03,0xA4, + 0x00,0x00,0x00,0x08,0x00,0x02,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, + 0x03,0xA6,0xFF,0x2C,0x00,0x00,0x04,0x0E, + 0xFF,0xB4,0xFF,0xA9,0x03,0xE8,0x00,0x01, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xFC, + 0x00,0x01,0x00,0x00,0x00,0xFC,0x00,0x59, + 0x00,0x07,0x00,0x00,0x00,0x00,0x00,0x02, + 0x00,0x00,0x00,0x01,0x00,0x01,0x00,0x00, + 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x02,0x01,0xBA,0x01,0x90,0x00,0x05, + 0x00,0x00,0x02,0x8A,0x02,0x58,0x00,0x00, + 0x00,0x4B,0x02,0x8A,0x02,0x58,0x00,0x00, + 0x01,0x5E,0x00,0x46,0x01,0x39,0x00,0x00, + 0x02,0x00,0x05,0x06,0x04,0x00,0x00,0x02, + 0x00,0x04,0x00,0x00,0x00,0x03,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x40, + 0x00,0x20,0xFB,0x02,0x03,0xA6,0xFF,0x2C, + 0x00,0x00,0x03,0xA6,0x00,0xD4,0x20,0x00, + 0x00,0x01,0x00,0x00,0x00,0x00,0x02,0x0B, + 0x02,0xBC,0x00,0x00,0x00,0x20,0x00,0x01, + 0x03,0xE8,0x00,0x00,0x00,0x00,0x00,0x00, + 0x01,0x4D,0x00,0x00,0x00,0xF0,0x00,0x00, + 0x01,0x26,0x00,0x64,0x01,0x3F,0x00,0x32, + 0x02,0x16,0x00,0x0D,0x01,0xF0,0x00,0x23, + 0x02,0xFD,0x00,0x3C,0x02,0x70,0x00,0x32, + 0x00,0xB7,0x00,0x32,0x01,0x2D,0x00,0x37, + 0x01,0x2D,0x00,0x09,0x01,0x75,0x00,0x23, + 0x02,0x30,0x00,0x30,0x00,0xC6,0x00,0x0C, + 0x01,0x40,0x00,0x2C,0x00,0xC6,0x00,0x33, + 0x01,0x72,0xFF,0xF6,0x02,0x17,0x00,0x27, + 0x02,0x17,0x00,0x28,0x02,0x17,0x00,0x33, + 0x02,0x17,0x00,0x2D,0x02,0x17,0x00,0x12, + 0x02,0x17,0x00,0x2F,0x02,0x17,0x00,0x33, + 0x02,0x17,0x00,0x37,0x02,0x17,0x00,0x33, + 0x02,0x17,0x00,0x37,0x00,0xC6,0x00,0x33, + 0x00,0xC6,0x00,0x0C,0x02,0x30,0x00,0x29, + 0x02,0x30,0x00,0x30,0x02,0x30,0x00,0x2E, + 0x01,0xBD,0x00,0x30,0x03,0xCE,0x00,0x54, + 0x02,0x65,0x00,0x0C,0x02,0x51,0x00,0x61, + 0x02,0x6B,0x00,0x39,0x02,0xB7,0x00,0x61, + 0x02,0x22,0x00,0x61,0x01,0xF7,0x00,0x61, + 0x02,0xA0,0x00,0x39,0x02,0xDD,0x00,0x61, + 0x01,0x1A,0x00,0x61,0x01,0x92,0x00,0x06, + 0x02,0x40,0x00,0x61,0x01,0xE4,0x00,0x61, + 0x03,0x4B,0x00,0x5A,0x02,0xCF,0x00,0x5A, + 0x02,0xDB,0x00,0x39,0x02,0x3A,0x00,0x55, + 0x02,0xDB,0x00,0x39,0x02,0x62,0x00,0x61, + 0x01,0xF4,0x00,0x25,0x02,0x25,0x00,0x14, + 0x02,0xC8,0x00,0x53,0x02,0x69,0x00,0x15, + 0x03,0x72,0x00,0x0F,0x02,0x63,0x00,0x14, + 0x02,0x2F,0x00,0x12,0x02,0x68,0x00,0x26, + 0x01,0x23,0x00,0x5A,0x01,0x69,0x00,0x05, + 0x01,0x23,0x00,0x1E,0x01,0xC2,0x00,0x35, + 0x02,0x16,0xFF,0xEB,0x01,0x40,0x00,0x4A, + 0x02,0x21,0x00,0x31,0x02,0x39,0x00,0x55, + 0x01,0xE5,0x00,0x34,0x02,0x35,0x00,0x34, + 0x02,0x1B,0x00,0x37,0x01,0x45,0x00,0x30, + 0x02,0x22,0x00,0x22,0x02,0x35,0x00,0x5C, + 0x01,0x09,0x00,0x57,0x01,0x14,0xFF,0xEF, + 0x02,0x09,0x00,0x5E,0x01,0x29,0x00,0x52, + 0x03,0x50,0x00,0x49,0x02,0x2D,0x00,0x4A, + 0x02,0x39,0x00,0x37,0x02,0x3D,0x00,0x4A, + 0x02,0x36,0x00,0x34,0x01,0x6E,0x00,0x4E, + 0x01,0x9D,0x00,0x23,0x01,0x56,0x00,0x25, + 0x02,0x2D,0x00,0x4B,0x01,0xE5,0x00,0x15, + 0x02,0xEB,0x00,0x1E,0x01,0xE5,0x00,0x14, + 0x01,0xE1,0x00,0x12,0x01,0xE9,0x00,0x25, + 0x01,0x12,0x00,0x14,0x00,0xFA,0x00,0x60, + 0x01,0x12,0x00,0x1E,0x02,0x23,0x00,0x4F, + 0x01,0xE0,0x00,0x00,0x01,0x26,0x00,0x52, + 0x01,0xE6,0x00,0x37,0x01,0xEB,0x00,0x21, + 0x02,0x16,0x00,0x55,0x02,0x2F,0x00,0x12, + 0x00,0xFA,0x00,0x60,0x01,0xAD,0x00,0x32, + 0x01,0x40,0x00,0x2F,0x02,0xE3,0x00,0x0A, + 0x01,0x3F,0x00,0x2D,0x01,0xD7,0x00,0x2C, + 0x02,0x30,0x00,0x26,0x01,0x40,0x00,0x2C, + 0x02,0xE3,0x00,0x0A,0x01,0x40,0x00,0x1B, + 0x01,0x59,0x00,0x26,0x02,0x30,0x00,0x26, + 0x01,0x40,0x00,0x23,0x01,0x40,0x00,0x2B, + 0x01,0x40,0x00,0x4A,0x02,0x36,0x00,0x55, + 0x02,0x03,0x00,0x29,0x01,0x0B,0x00,0x5A, + 0x01,0x40,0x00,0x2D,0x00,0xD9,0x00,0x29, + 0x01,0x51,0x00,0x37,0x01,0xD7,0x00,0x36, + 0x02,0x9F,0x00,0x29,0x02,0xEA,0x00,0x29, + 0x02,0xE2,0x00,0x27,0x01,0xA9,0x00,0x13, + 0x02,0x65,0x00,0x0C,0x02,0x65,0x00,0x0C, + 0x02,0x65,0x00,0x0C,0x02,0x65,0x00,0x0C, + 0x02,0x65,0x00,0x0C,0x02,0x65,0x00,0x0C, + 0x03,0x93,0xFF,0xF5,0x02,0x6B,0x00,0x39, + 0x02,0x22,0x00,0x61,0x02,0x22,0x00,0x61, + 0x02,0x22,0x00,0x61,0x02,0x22,0x00,0x61, + 0x01,0x1A,0x00,0x28,0x01,0x1A,0x00,0x55, + 0x01,0x1A,0x00,0x14,0x01,0x1A,0x00,0x1B, + 0x02,0xB8,0x00,0x00,0x02,0xCF,0x00,0x5A, + 0x02,0xDB,0x00,0x39,0x02,0xDB,0x00,0x39, + 0x02,0xDB,0x00,0x39,0x02,0xDB,0x00,0x39, + 0x02,0xDB,0x00,0x39,0x02,0x30,0x00,0x36, + 0x02,0xDB,0x00,0x22,0x02,0xC8,0x00,0x53, + 0x02,0xC8,0x00,0x53,0x02,0xC8,0x00,0x53, + 0x02,0xC8,0x00,0x53,0x02,0x2F,0x00,0x12, + 0x02,0x37,0x00,0x55,0x02,0x2A,0x00,0x5A, + 0x02,0x21,0x00,0x31,0x02,0x21,0x00,0x31, + 0x02,0x21,0x00,0x31,0x02,0x21,0x00,0x31, + 0x02,0x21,0x00,0x31,0x02,0x21,0x00,0x31, + 0x03,0x3D,0x00,0x2D,0x01,0xE5,0x00,0x34, + 0x02,0x1B,0x00,0x37,0x02,0x1B,0x00,0x37, + 0x02,0x1B,0x00,0x37,0x02,0x1B,0x00,0x37, + 0x01,0x09,0x00,0x21,0x01,0x09,0x00,0x4E, + 0x01,0x09,0x00,0x0D,0x01,0x09,0x00,0x14, + 0x02,0x39,0x00,0x37,0x02,0x2D,0x00,0x4A, + 0x02,0x39,0x00,0x37,0x02,0x39,0x00,0x37, + 0x02,0x39,0x00,0x37,0x02,0x39,0x00,0x37, + 0x02,0x39,0x00,0x37,0x02,0x30,0x00,0x30, + 0x02,0x39,0x00,0x37,0x02,0x2D,0x00,0x4B, + 0x02,0x2D,0x00,0x4B,0x02,0x2D,0x00,0x4B, + 0x02,0x2D,0x00,0x4B,0x01,0xE1,0x00,0x12, + 0x02,0x3A,0x00,0x55,0x01,0xE1,0x00,0x12, + 0x01,0x09,0x00,0x5B,0x01,0xE6,0xFF,0xFE, + 0x01,0x25,0x00,0x13,0x03,0xFD,0x00,0x39, + 0x03,0x67,0x00,0x37,0x01,0xF4,0x00,0x25, + 0x01,0x9D,0x00,0x23,0x02,0x2F,0x00,0x12, + 0x02,0x68,0x00,0x26,0x01,0xE9,0x00,0x25, + 0x01,0x4C,0x00,0x0F,0x01,0x40,0x00,0x24, + 0x01,0x40,0x00,0x23,0x01,0x40,0x00,0x0D, + 0x01,0x40,0x00,0x78,0x01,0x40,0x00,0x4C, + 0x01,0x40,0x00,0x36,0x01,0x6D,0x00,0x18, + 0x01,0x80,0x00,0x3B,0x02,0x68,0x00,0x0E, + 0x01,0xF4,0x00,0x00,0x03,0xE8,0x00,0x00, + 0x00,0xD4,0x00,0x3A,0x00,0xD4,0x00,0x20, + 0x00,0xC6,0x00,0x0C,0x01,0x5E,0x00,0x28, + 0x01,0x5E,0x00,0x22,0x01,0x50,0x00,0x0C, + 0x02,0x17,0x00,0x31,0x02,0x17,0x00,0x31, + 0x01,0x50,0x00,0x2A,0x02,0x69,0x00,0x33, + 0x04,0x0E,0x00,0x40,0x01,0x2C,0x00,0x2E, + 0x01,0x2C,0x00,0x36,0x01,0x08,0xFF,0xB4, + 0x02,0x58,0x00,0x00,0x03,0x04,0x00,0x1E, + 0x02,0xDB,0x00,0x29,0x02,0xEE,0x00,0x00, + 0x02,0x11,0xFF,0xFF,0x02,0xEE,0x00,0x00, + 0x02,0x11,0x00,0x00,0x02,0x02,0x00,0x28, + 0x02,0xC4,0x00,0x22,0x02,0xEE,0x00,0x18, + 0x02,0x51,0x00,0x17,0x02,0x30,0x00,0x26, + 0x02,0x6A,0x00,0x24,0x03,0x14,0x00,0x31, + 0x01,0x74,0x00,0x0E,0x02,0x23,0x00,0x4F, + 0x02,0x30,0x00,0x30,0x02,0x36,0x00,0x30, + 0x02,0x36,0x00,0x30,0x02,0x2E,0x00,0x37, + 0x02,0x33,0x00,0x30,0x02,0x4F,0x00,0x30, + 0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x03, + 0x00,0x00,0x00,0x1C,0x00,0x01,0x00,0x00, + 0x00,0x00,0x01,0x54,0x00,0x03,0x00,0x01, + 0x00,0x00,0x00,0x1C,0x00,0x04,0x01,0x38, + 0x00,0x00,0x00,0x4A,0x00,0x40,0x00,0x05, + 0x00,0x0A,0x00,0x7E,0x00,0xFF,0x01,0x31, + 0x01,0x42,0x01,0x53,0x01,0x61,0x01,0x78, + 0x01,0x7E,0x01,0x92,0x02,0xC7,0x02,0xDD, + 0x03,0xC0,0x20,0x14,0x20,0x1A,0x20,0x1E, + 0x20,0x22,0x20,0x26,0x20,0x30,0x20,0x3A, + 0x20,0x44,0x20,0xAC,0x21,0x22,0x21,0x26, + 0x21,0x93,0x22,0x02,0x22,0x06,0x22,0x0F, + 0x22,0x12,0x22,0x1A,0x22,0x1E,0x22,0x2B, + 0x22,0x48,0x22,0x60,0x22,0x65,0x25,0xCA, + 0xFB,0x02,0xFF,0xFF,0x00,0x00,0x00,0x20, + 0x00,0xA0,0x01,0x31,0x01,0x41,0x01,0x52, + 0x01,0x60,0x01,0x78,0x01,0x7D,0x01,0x92, + 0x02,0xC6,0x02,0xD8,0x03,0xC0,0x20,0x13, + 0x20,0x18,0x20,0x1C,0x20,0x20,0x20,0x26, + 0x20,0x30,0x20,0x39,0x20,0x44,0x20,0xAC, + 0x21,0x22,0x21,0x26,0x21,0x90,0x22,0x02, + 0x22,0x06,0x22,0x0F,0x22,0x11,0x22,0x1A, + 0x22,0x1E,0x22,0x2B,0x22,0x48,0x22,0x60, + 0x22,0x64,0x25,0xCA,0xFB,0x01,0xFF,0xFF, + 0xFF,0xE3,0xFF,0xC2,0xFF,0x91,0xFF,0x82, + 0xFF,0x73,0xFF,0x67,0xFF,0x51,0xFF,0x4D, + 0xFF,0x3A,0xFE,0x07,0xFD,0xF7,0xFD,0x15, + 0xE0,0xC3,0xE0,0xC0,0xE0,0xBF,0xE0,0xBE, + 0xE0,0xBB,0xE0,0xB2,0xE0,0xAA,0xE0,0xA1, + 0xE0,0x3A,0xDF,0xC5,0xDF,0xC2,0xDF,0x59, + 0xDE,0xEB,0xDE,0xE8,0xDE,0xE0,0xDE,0xDF, + 0xDE,0xD8,0xDE,0xD5,0xDE,0xC9,0xDE,0xAD, + 0xDE,0x96,0xDE,0x93,0xDB,0x2F,0x05,0xF9, + 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x06, + 0x00,0x00,0x01,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x01,0x02,0x00,0x00,0x00,0x02, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, + 0x00,0x00,0x03,0x04,0x05,0x06,0x07,0x08, + 0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F,0x10, + 0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18, + 0x19,0x1A,0x1B,0x1C,0x1D,0x1E,0x1F,0x20, + 0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28, + 0x29,0x2A,0x2B,0x2C,0x2D,0x2E,0x2F,0x30, + 0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38, + 0x39,0x3A,0x3B,0x3C,0x3D,0x3E,0x3F,0x40, + 0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48, + 0x49,0x4A,0x4B,0x4C,0x4D,0x4E,0x4F,0x50, + 0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58, + 0x59,0x5A,0x5B,0x5C,0x5D,0x5E,0x5F,0x60, + 0x61,0x00,0x86,0x87,0x89,0x8B,0x93,0x98, + 0x9E,0xA3,0xA2,0xA4,0xA6,0xA5,0xA7,0xA9, + 0xAB,0xAA,0xAC,0xAD,0xAF,0xAE,0xB0,0xB1, + 0xB3,0xB5,0xB4,0xB6,0xB8,0xB7,0xBC,0xBB, + 0xBD,0xBE,0xDE,0x72,0x64,0x65,0x69,0xE0, + 0x78,0xA1,0x70,0x6B,0xE7,0x76,0x6A,0xF6, + 0x88,0x9A,0xF3,0x73,0xF7,0xF8,0x67,0x77, + 0xED,0xF0,0xEF,0xD5,0xF4,0x6C,0x7C,0x00, + 0xA8,0xBA,0x81,0x63,0x6E,0xF2,0xCC,0xF5, + 0xEE,0x6D,0x7D,0xE1,0x62,0x82,0x85,0x97, + 0xC5,0xC6,0xD6,0xD7,0xDB,0xDC,0xD8,0xD9, + 0xB9,0xF9,0xC1,0xC9,0xE5,0xE6,0xE3,0xE4, + 0xFA,0xFB,0xDF,0x79,0xDA,0xDD,0xE2,0x84, + 0x8C,0x83,0x8D,0x8A,0x8F,0x90,0x91,0x8E, + 0x95,0x96,0x00,0x94,0x9C,0x9D,0x9B,0xC2, + 0xCD,0xD3,0x71,0xCF,0xD0,0xD1,0x7A,0xD4, + 0xD2,0xCE,0x00,0x00,0xB8,0x01,0xFF,0x85, + 0xB0,0x04,0x8D,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x24, + 0x00,0x4A,0x00,0xA6,0x00,0xFC,0x01,0x54, + 0x01,0xAE,0x01,0xC4,0x01,0xE8,0x02,0x0C, + 0x02,0x40,0x02,0x66,0x02,0x7C,0x02,0x90, + 0x02,0xA4,0x02,0xC2,0x02,0xE2,0x03,0x06, + 0x03,0x38,0x03,0x7C,0x03,0xA8,0x03,0xDE, + 0x04,0x0C,0x04,0x2E,0x04,0x74,0x04,0xA2, + 0x04,0xC4,0x04,0xEA,0x05,0x10,0x05,0x34, + 0x05,0x5A,0x05,0x96,0x05,0xF4,0x06,0x24, + 0x06,0x5A,0x06,0x88,0x06,0xAA,0x06,0xD2, + 0x06,0xF4,0x07,0x24,0x07,0x4C,0x07,0x62, + 0x07,0x80,0x07,0xB2,0x07,0xCC,0x08,0x00, + 0x08,0x2C,0x08,0x4C,0x08,0x7C,0x08,0xAA, + 0x08,0xE4,0x09,0x1E,0x09,0x3C,0x09,0x60, + 0x09,0x8A,0x09,0xCE,0x0A,0x06,0x0A,0x2C, + 0x0A,0x52,0x0A,0x70,0x0A,0x8E,0x0A,0xAC, + 0x0A,0xD2,0x0A,0xE8,0x0A,0xFC,0x0B,0x44, + 0x0B,0x74,0x0B,0xA8,0x0B,0xE4,0x0C,0x12, + 0x0C,0x42,0x0C,0x92,0x0C,0xC2,0x0C,0xE6, + 0x0D,0x14,0x0D,0x42,0x0D,0x60,0x0D,0xB0, + 0x0D,0xE4,0x0E,0x02,0x0E,0x3C,0x0E,0x6E, + 0x0E,0xA0,0x0E,0xD6,0x0F,0x06,0x0F,0x3A, + 0x0F,0x5E,0x0F,0x96,0x0F,0xCA,0x0F,0xF2, + 0x10,0x18,0x10,0x52,0x10,0x68,0x10,0xA4, + 0x10,0xC2,0x10,0xC2,0x10,0xE6,0x11,0x28, + 0x11,0x68,0x11,0xB0,0x11,0xF2,0x12,0x16, + 0x12,0x68,0x12,0x8A,0x12,0xD2,0x13,0x0A, + 0x13,0x40,0x13,0x5A,0x13,0x6E,0x13,0xC0, + 0x13,0xD4,0x13,0xF2,0x14,0x24,0x14,0x50, + 0x14,0x8C,0x14,0xA0,0x14,0xDA,0x15,0x00, + 0x15,0x12,0x15,0x38,0x15,0x52,0x15,0x6A, + 0x15,0xA0,0x15,0xF6,0x16,0x4C,0x16,0xC4, + 0x16,0xFE,0x17,0x3C,0x17,0x7A,0x17,0xC2, + 0x18,0x0A,0x18,0x54,0x18,0x9A,0x18,0xDA, + 0x19,0x26,0x19,0x5C,0x19,0x92,0x19,0xD4, + 0x1A,0x18,0x1A,0x3C,0x1A,0x60,0x1A,0x8E, + 0x1A,0xBE,0x1A,0xF4,0x1B,0x38,0x1B,0x66, + 0x1B,0x94,0x1B,0xCE,0x1C,0x06,0x1C,0x42, + 0x1C,0x7C,0x1C,0xBA,0x1C,0xEE,0x1D,0x22, + 0x1D,0x60,0x1D,0xA0,0x1D,0xD4,0x1E,0x08, + 0x1E,0x46,0x1E,0x9C,0x1E,0xF2,0x1F,0x52, + 0x1F,0xB2,0x20,0x14,0x20,0x72,0x20,0xD0, + 0x21,0x24,0x21,0x60,0x21,0x9C,0x21,0xE4, + 0x22,0x2C,0x22,0x50,0x22,0x74,0x22,0xA2, + 0x22,0xD2,0x23,0x12,0x23,0x5E,0x23,0x8A, + 0x23,0xB6,0x23,0xEE,0x24,0x24,0x24,0x5E, + 0x24,0x8E,0x24,0xD0,0x25,0x12,0x25,0x54, + 0x25,0xA2,0x25,0xF2,0x26,0x28,0x26,0x58, + 0x26,0x9A,0x26,0xB0,0x26,0xE2,0x27,0x1A, + 0x27,0x58,0x27,0x9E,0x27,0xF2,0x28,0x42, + 0x28,0x82,0x28,0xC2,0x29,0x02,0x29,0x36, + 0x29,0x56,0x29,0x76,0x29,0x98,0x29,0xAC, + 0x29,0xCA,0x29,0xEC,0x2A,0x0A,0x2A,0x2C, + 0x2A,0x64,0x2A,0x78,0x2A,0x8C,0x2A,0xA4, + 0x2A,0xBC,0x2A,0xD2,0x2A,0xF8,0x2B,0x20, + 0x2B,0x46,0x2B,0x68,0x2B,0x9A,0x2B,0xAC, + 0x2B,0xDC,0x2C,0x52,0x2C,0x70,0x2C,0x8E, + 0x2C,0xAC,0x2D,0x00,0x2D,0x4A,0x2D,0x84, + 0x2D,0xAE,0x2D,0xD8,0x2E,0x02,0x2E,0x2C, + 0x2E,0x68,0x2E,0x8C,0x2E,0xB4,0x2E,0xE2, + 0x2E,0xF6,0x2F,0x28,0x2F,0x68,0x2F,0x8C, + 0x2F,0xC4,0x30,0x02,0x30,0x38,0x30,0x6C, + 0x30,0x9A,0x30,0xE8,0x31,0x32,0x00,0x00, + 0x00,0x02,0x00,0x64,0xFF,0xFE,0x00,0xD3, + 0x02,0xBE,0x00,0x0B,0x00,0x17,0x00,0x00, + 0x37,0x22,0x35,0x11,0x34,0x33,0x33,0x32, + 0x15,0x03,0x06,0x23,0x07,0x35,0x34,0x33, + 0x33,0x32,0x15,0x15,0x14,0x23,0x23,0x22, + 0x8E,0x1E,0x28,0x14,0x27,0x1B,0x02,0x1D, + 0x35,0x28,0x11,0x28,0x28,0x11,0x28,0xCA, + 0x16,0x01,0xC8,0x16,0x16,0xFE,0x38,0x16, + 0xB6,0x42,0x16,0x16,0x42,0x16,0x00,0x00, + 0x00,0x02,0x00,0x32,0x01,0xD8,0x01,0x0C, + 0x02,0xBE,0x00,0x0B,0x00,0x17,0x00,0x00, + 0x13,0x06,0x22,0x27,0x27,0x35,0x34,0x33, + 0x33,0x32,0x15,0x15,0x07,0x06,0x22,0x27, + 0x27,0x35,0x34,0x33,0x33,0x32,0x15,0x15, + 0xF5,0x03,0x27,0x03,0x16,0x28,0x0A,0x28, + 0x97,0x03,0x27,0x03,0x16,0x28,0x0A,0x28, + 0x01,0xE4,0x0C,0x0C,0xB8,0x0C,0x16,0x16, + 0x0E,0xB6,0x0C,0x0C,0xB8,0x0C,0x16,0x16, + 0x0E,0x00,0x00,0x00,0x00,0x02,0x00,0x0D, + 0xFF,0xFE,0x02,0x08,0x02,0xAE,0x00,0x42, + 0x00,0x46,0x00,0x00,0x37,0x22,0x35,0x35, + 0x34,0x33,0x33,0x37,0x23,0x22,0x35,0x35, + 0x34,0x33,0x33,0x37,0x36,0x37,0x36,0x33, + 0x33,0x32,0x15,0x07,0x33,0x37,0x36,0x37, + 0x36,0x33,0x33,0x32,0x15,0x07,0x33,0x32, + 0x15,0x15,0x14,0x23,0x23,0x07,0x33,0x32, + 0x15,0x15,0x14,0x23,0x23,0x07,0x06,0x06, + 0x23,0x23,0x22,0x35,0x37,0x23,0x07,0x06, + 0x07,0x06,0x23,0x23,0x22,0x35,0x37,0x37, + 0x33,0x37,0x23,0x21,0x14,0x14,0x5B,0x1A, + 0x51,0x14,0x14,0x5E,0x1F,0x01,0x03,0x08, + 0x20,0x04,0x1C,0x21,0x77,0x1E,0x01,0x03, + 0x08,0x20,0x05,0x1C,0x1F,0x44,0x14,0x14, + 0x53,0x19,0x4C,0x14,0x14,0x5C,0x1F,0x03, + 0x10,0x18,0x04,0x1C,0x20,0x76,0x20,0x02, + 0x02,0x07,0x20,0x04,0x1C,0x20,0x5A,0x76, + 0x1A,0x76,0xC4,0x1E,0x11,0x1E,0x93,0x1E, + 0x11,0x1E,0xA7,0x08,0x04,0x0A,0x0F,0xAE, + 0xA7,0x08,0x04,0x0A,0x0F,0xAE,0x1E,0x11, + 0x1E,0x93,0x1E,0x11,0x1E,0xB0,0x0C,0x0A, + 0x11,0xB5,0xB0,0x08,0x04,0x0A,0x11,0xB5, + 0x4D,0x93,0x00,0x00,0x00,0x03,0x00,0x23, + 0xFF,0xB9,0x01,0xD0,0x02,0xF6,0x00,0x2D, + 0x00,0x33,0x00,0x39,0x00,0x00,0x37,0x34, + 0x36,0x33,0x32,0x16,0x16,0x17,0x11,0x2E, + 0x02,0x27,0x26,0x34,0x36,0x37,0x35,0x34, + 0x32,0x15,0x15,0x16,0x16,0x15,0x14,0x06, + 0x22,0x27,0x26,0x27,0x15,0x16,0x16,0x17, + 0x16,0x14,0x06,0x07,0x15,0x14,0x22,0x35, + 0x35,0x26,0x26,0x12,0x06,0x14,0x16,0x17, + 0x35,0x12,0x36,0x34,0x26,0x27,0x15,0x23, + 0x1B,0x08,0x03,0x2A,0x4B,0x2B,0x26,0x21, + 0x3D,0x0F,0x26,0x64,0x55,0x28,0x32,0x6C, + 0x19,0x0C,0x10,0x31,0x38,0x2E,0x2F,0x22, + 0x40,0x66,0x59,0x28,0x4F,0x77,0x9A,0x32, + 0x30,0x2E,0x55,0x37,0x34,0x30,0x43,0x0C, + 0x2A,0x1A,0x1C,0x01,0x01,0x02,0x0F,0x0E, + 0x24,0x12,0x30,0x8C,0x60,0x09,0x2A,0x10, + 0x10,0x28,0x01,0x21,0x17,0x0B,0x2A,0x09, + 0x1B,0x02,0xE9,0x10,0x16,0x18,0x2E,0xB7, + 0x67,0x08,0x32,0x10,0x10,0x31,0x02,0x31, + 0x02,0x3E,0x37,0x55,0x30,0x13,0xD7,0xFD, + 0xDA,0x42,0x5B,0x35,0x15,0xEF,0x00,0x00, + 0x00,0x05,0x00,0x3C,0xFF,0xF9,0x02,0xC1, + 0x02,0xC2,0x00,0x0F,0x00,0x17,0x00,0x24, + 0x00,0x2C,0x00,0x39,0x00,0x00,0x37,0x34, + 0x37,0x01,0x36,0x33,0x33,0x32,0x15,0x14, + 0x07,0x01,0x06,0x23,0x23,0x22,0x13,0x22, + 0x10,0x33,0x32,0x16,0x14,0x06,0x27,0x32, + 0x35,0x34,0x27,0x26,0x22,0x06,0x07,0x06, + 0x14,0x16,0x16,0x01,0x22,0x10,0x33,0x32, + 0x16,0x14,0x06,0x26,0x06,0x14,0x16,0x16, + 0x33,0x32,0x35,0x34,0x27,0x26,0x22,0x06, + 0xA1,0x04,0x01,0x75,0x0A,0x1E,0x05,0x18, + 0x04,0xFE,0x8B,0x0A,0x1E,0x05,0x18,0x24, + 0x89,0x89,0x39,0x50,0x50,0x39,0x49,0x21, + 0x10,0x2F,0x1F,0x07,0x0A,0x07,0x22,0x01, + 0x91,0x89,0x89,0x39,0x50,0x50,0x7C,0x04, + 0x07,0x22,0x1E,0x49,0x21,0x10,0x2F,0x1F, + 0x02,0x05,0x05,0x02,0xA3,0x13,0x09,0x02, + 0x08,0xFD,0x5D,0x13,0x01,0x84,0x01,0x45, + 0x49,0xB5,0x47,0x37,0x6A,0x4F,0x15,0x0A, + 0x14,0x12,0x1D,0x48,0x29,0x24,0xFE,0x47, + 0x01,0x45,0x49,0xB5,0x47,0xD7,0x20,0x33, + 0x29,0x24,0x6A,0x4F,0x15,0x0A,0x14,0x00, + 0x00,0x02,0x00,0x32,0xFF,0xFA,0x02,0x63, + 0x02,0xC2,0x00,0x37,0x00,0x44,0x00,0x00, + 0x37,0x34,0x36,0x37,0x35,0x26,0x26,0x35, + 0x34,0x36,0x32,0x15,0x14,0x06,0x23,0x22, + 0x26,0x22,0x06,0x07,0x06,0x14,0x16,0x33, + 0x33,0x37,0x36,0x33,0x33,0x32,0x15,0x15, + 0x33,0x32,0x15,0x15,0x14,0x23,0x23,0x15, + 0x14,0x33,0x32,0x36,0x33,0x32,0x16,0x15, + 0x14,0x22,0x27,0x06,0x23,0x22,0x27,0x26, + 0x37,0x14,0x16,0x16,0x33,0x32,0x37,0x26, + 0x35,0x35,0x23,0x22,0x06,0x32,0x4C,0x32, + 0x2D,0x3A,0x6F,0xB0,0x0C,0x0A,0x01,0x29, + 0x38,0x33,0x0B,0x15,0x44,0x42,0x76,0x0C, + 0x02,0x1E,0x0A,0x1E,0x54,0x14,0x14,0x54, + 0x36,0x11,0x18,0x02,0x09,0x0C,0x8D,0x22, + 0x47,0x5C,0x52,0x43,0x4A,0x57,0x31,0x3D, + 0x22,0x3F,0x43,0x02,0x7A,0x49,0x4D,0xD4, + 0x40,0x62,0x0D,0x04,0x12,0x4C,0x35,0x52, + 0x56,0x20,0x09,0x28,0x09,0x15,0x12,0x20, + 0x4F,0x4C,0x69,0x16,0x16,0x69,0x1E,0x0C, + 0x1E,0xC4,0x4A,0x05,0x25,0x0A,0x1E,0x2B, + 0x2B,0x2E,0x35,0x6F,0x33,0x41,0x16,0x25, + 0x12,0x0B,0xCC,0x3C,0x00,0x01,0x00,0x32, + 0x01,0xD8,0x00,0x8C,0x02,0xBE,0x00,0x0B, + 0x00,0x00,0x13,0x06,0x22,0x27,0x27,0x35, + 0x34,0x33,0x33,0x32,0x15,0x15,0x75,0x03, + 0x27,0x03,0x16,0x28,0x0A,0x28,0x01,0xE4, + 0x0C,0x0C,0xB8,0x0C,0x16,0x16,0x0E,0x00, + 0x00,0x01,0x00,0x37,0xFF,0x2C,0x01,0x22, + 0x03,0x0F,0x00,0x13,0x00,0x00,0x36,0x10, + 0x12,0x37,0x36,0x32,0x16,0x14,0x07,0x06, + 0x06,0x10,0x16,0x17,0x16,0x14,0x06,0x22, + 0x27,0x26,0x37,0x63,0x55,0x0A,0x15,0x14, + 0x09,0x44,0x4D,0x4D,0x43,0x09,0x12,0x15, + 0x0B,0x55,0x87,0x01,0x2E,0x01,0x02,0x4E, + 0x0A,0x0F,0x14,0x0C,0x50,0xEB,0xFE,0xF3, + 0xEB,0x51,0x0A,0x12,0x14,0x0B,0x4E,0x00, + 0x00,0x01,0x00,0x09,0xFF,0x2D,0x00,0xF6, + 0x03,0x10,0x00,0x13,0x00,0x00,0x16,0x36, + 0x10,0x26,0x27,0x26,0x34,0x36,0x32,0x17, + 0x16,0x12,0x10,0x02,0x07,0x06,0x22,0x26, + 0x34,0x37,0x55,0x50,0x4D,0x43,0x09,0x12, + 0x15,0x0B,0x55,0x63,0x63,0x55,0x0A,0x16, + 0x15,0x07,0x5A,0xEF,0x01,0x0F,0xEB,0x51, + 0x0A,0x12,0x14,0x0B,0x4E,0xFE,0xFE,0xFE, + 0xD2,0xFE,0xFE,0x4E,0x0A,0x11,0x0F,0x09, + 0x00,0x01,0x00,0x23,0x01,0x9E,0x01,0x47, + 0x02,0xC5,0x00,0x20,0x00,0x00,0x13,0x06, + 0x22,0x26,0x34,0x37,0x37,0x27,0x26,0x34, + 0x36,0x32,0x17,0x17,0x35,0x34,0x32,0x15, + 0x15,0x37,0x36,0x32,0x16,0x14,0x07,0x07, + 0x17,0x16,0x14,0x06,0x22,0x27,0x27,0x6C, + 0x08,0x0E,0x0F,0x05,0x47,0x62,0x0E,0x0B, + 0x0D,0x03,0x63,0x28,0x63,0x03,0x0D,0x0B, + 0x0E,0x63,0x48,0x05,0x0F,0x10,0x06,0x49, + 0x01,0xA7,0x09,0x0B,0x10,0x06,0x63,0x20, + 0x04,0x16,0x0D,0x01,0x20,0x69,0x14,0x14, + 0x69,0x20,0x01,0x0D,0x16,0x04,0x20,0x63, + 0x08,0x0C,0x0D,0x09,0x65,0x00,0x00,0x00, + 0x00,0x01,0x00,0x30,0xFF,0xFE,0x02,0x00, + 0x01,0xCF,0x00,0x1C,0x00,0x00,0x37,0x22, + 0x26,0x35,0x35,0x34,0x33,0x33,0x35,0x34, + 0x33,0x33,0x32,0x15,0x15,0x33,0x32,0x15, + 0x15,0x14,0x23,0x23,0x15,0x14,0x23,0x23, + 0x22,0x35,0x35,0x44,0x0B,0x09,0x14,0xB3, + 0x1E,0x07,0x1E,0xB2,0x14,0x14,0xB2,0x1E, + 0x07,0x1E,0xC5,0x0B,0x0F,0x07,0x22,0xB3, + 0x14,0x14,0xB3,0x1E,0x07,0x1E,0xB3,0x14, + 0x14,0xB3,0x00,0x00,0x00,0x01,0x00,0x0C, + 0xFF,0x8C,0x00,0x90,0x00,0x6C,0x00,0x0C, + 0x00,0x00,0x37,0x34,0x33,0x33,0x32,0x15, + 0x14,0x06,0x22,0x35,0x34,0x37,0x36,0x37, + 0x28,0x09,0x28,0x49,0x3B,0x09,0x22,0x4C, + 0x20,0x1C,0x51,0x73,0x0F,0x06,0x12,0x44, + 0x00,0x01,0x00,0x2C,0x00,0xE6,0x01,0x11, + 0x01,0x2C,0x00,0x0B,0x00,0x00,0x37,0x22, + 0x35,0x35,0x34,0x33,0x33,0x32,0x15,0x15, + 0x14,0x23,0x40,0x14,0x14,0xBD,0x14,0x14, + 0xE6,0x1E,0x0A,0x1E,0x1E,0x0A,0x1E,0x00, + 0x00,0x01,0x00,0x33,0xFF,0xFE,0x00,0x94, + 0x00,0x6C,0x00,0x0B,0x00,0x00,0x37,0x35, + 0x34,0x33,0x33,0x32,0x15,0x15,0x14,0x23, + 0x23,0x22,0x33,0x28,0x11,0x28,0x28,0x11, + 0x28,0x14,0x42,0x16,0x16,0x42,0x16,0x00, + 0x00,0x01,0xFF,0xF6,0xFF,0xB4,0x01,0x6E, + 0x02,0xBF,0x00,0x0F,0x00,0x00,0x01,0x33, + 0x32,0x15,0x14,0x07,0x01,0x06,0x23,0x23, + 0x22,0x35,0x34,0x37,0x01,0x36,0x01,0x52, + 0x04,0x18,0x03,0xFE,0xCA,0x0A,0x17,0x04, + 0x1A,0x03,0x01,0x36,0x0A,0x02,0xBF,0x14, + 0x07,0x08,0xFD,0x2F,0x17,0x14,0x08,0x07, + 0x02,0xD1,0x17,0x00,0x00,0x02,0x00,0x27, + 0xFF,0xFA,0x01,0xEF,0x02,0xC2,0x00,0x07, + 0x00,0x0F,0x00,0x00,0x24,0x06,0x22,0x26, + 0x10,0x36,0x32,0x16,0x00,0x16,0x32,0x36, + 0x10,0x26,0x22,0x06,0x01,0xEF,0x83,0xC3, + 0x82,0x82,0xC3,0x83,0xFE,0x8D,0x52,0x79, + 0x53,0x53,0x79,0x52,0xAE,0xB4,0xB4,0x01, + 0x60,0xB4,0xB4,0xFE,0xBE,0x8A,0x8A,0x01, + 0x24,0x8A,0x8A,0x00,0x00,0x01,0x00,0x28, + 0x00,0x00,0x01,0xE9,0x02,0xBE,0x00,0x17, + 0x00,0x00,0x37,0x35,0x34,0x33,0x33,0x11, + 0x07,0x22,0x26,0x34,0x37,0x37,0x32,0x16, + 0x15,0x11,0x33,0x32,0x15,0x15,0x14,0x23, + 0x21,0x22,0x2B,0x14,0xAE,0xB1,0x09,0x0B, + 0x12,0xE8,0x0C,0x13,0x94,0x14,0x14,0xFE, + 0x6A,0x14,0x1E,0x0C,0x1E,0x02,0x1B,0x1E, + 0x22,0x1F,0x05,0x33,0x0C,0x09,0xFD,0x9F, + 0x1E,0x0C,0x1E,0x00,0x00,0x01,0x00,0x33, + 0x00,0x00,0x01,0xD9,0x02,0xC2,0x00,0x20, + 0x00,0x00,0x32,0x26,0x34,0x37,0x36,0x12, + 0x36,0x34,0x26,0x22,0x06,0x06,0x22,0x26, + 0x35,0x34,0x36,0x33,0x32,0x16,0x15,0x14, + 0x06,0x06,0x07,0x07,0x21,0x32,0x15,0x15, + 0x14,0x23,0x21,0x3F,0x0C,0x04,0x2B,0xE0, + 0x3B,0x43,0x62,0x43,0x26,0x0C,0x19,0x7F, + 0x35,0x62,0x73,0x25,0x4D,0x73,0x49,0x01, + 0x20,0x14,0x14,0xFE,0x82,0x1C,0x1D,0x04, + 0x36,0x01,0x17,0x5A,0x5E,0x38,0x1A,0x19, + 0x27,0x0B,0x1D,0x2C,0x5B,0x4F,0x32,0x53, + 0x66,0x8D,0x59,0x1E,0x0B,0x1E,0x00,0x00, + 0x00,0x01,0x00,0x2D,0xFF,0xFA,0x01,0xD5, + 0x02,0xC2,0x00,0x31,0x00,0x00,0x37,0x34, + 0x36,0x33,0x32,0x16,0x32,0x36,0x36,0x35, + 0x34,0x26,0x23,0x23,0x22,0x35,0x35,0x34, + 0x33,0x33,0x32,0x36,0x34,0x26,0x23,0x22, + 0x07,0x06,0x23,0x22,0x26,0x35,0x34,0x36, + 0x33,0x32,0x16,0x15,0x14,0x06,0x07,0x15, + 0x16,0x16,0x14,0x06,0x07,0x06,0x22,0x26, + 0x2D,0x1A,0x09,0x01,0x68,0x57,0x3D,0x31, + 0x4D,0x49,0x21,0x14,0x14,0x1D,0x45,0x40, + 0x36,0x41,0x47,0x33,0x11,0x05,0x08,0x19, + 0x7E,0x35,0x5C,0x6E,0x3B,0x2C,0x32,0x4C, + 0x29,0x22,0x42,0xA5,0x76,0x33,0x0E,0x24, + 0x23,0x16,0x41,0x33,0x48,0x3C,0x1E,0x0B, + 0x1E,0x54,0x54,0x3B,0x18,0x09,0x28,0x0C, + 0x15,0x20,0x5A,0x57,0x31,0x48,0x11,0x04, + 0x0D,0x62,0x80,0x54,0x18,0x2E,0x25,0x00, + 0x00,0x02,0x00,0x12,0xFF,0xFE,0x02,0x04, + 0x02,0xBE,0x00,0x19,0x00,0x1D,0x00,0x00, + 0x37,0x22,0x26,0x34,0x37,0x01,0x36,0x33, + 0x33,0x32,0x15,0x11,0x33,0x32,0x15,0x15, + 0x14,0x23,0x23,0x15,0x14,0x23,0x23,0x22, + 0x3D,0x02,0x11,0x27,0x03,0x2A,0x08,0x10, + 0x02,0x01,0x49,0x0B,0x17,0x10,0x1E,0x43, + 0x14,0x14,0x43,0x1E,0x17,0x1E,0x04,0xE1, + 0xA7,0x24,0x18,0x02,0x01,0xCB,0x0E,0x16, + 0xFE,0x47,0x1E,0x0C,0x1E,0x93,0x16,0x16, + 0x93,0x48,0x01,0x3E,0x02,0xFE,0xC0,0x00, + 0x00,0x01,0x00,0x2F,0xFF,0xFA,0x01,0xDA, + 0x02,0xBC,0x00,0x24,0x00,0x00,0x37,0x34, + 0x36,0x33,0x32,0x16,0x32,0x36,0x34,0x26, + 0x23,0x23,0x22,0x26,0x35,0x13,0x36,0x33, + 0x21,0x32,0x15,0x15,0x14,0x23,0x23,0x07, + 0x33,0x32,0x17,0x16,0x16,0x14,0x06,0x07, + 0x06,0x22,0x26,0x2F,0x1A,0x09,0x01,0x62, + 0x75,0x5A,0x5C,0x58,0x55,0x10,0x0C,0x11, + 0x01,0x1F,0x01,0x0A,0x14,0x14,0xD9,0x0D, + 0x34,0x59,0x48,0x25,0x2C,0x2A,0x24,0x44, + 0xAC,0x6D,0x36,0x0E,0x24,0x26,0x4D,0x89, + 0x46,0x0E,0x10,0x01,0x22,0x1E,0x1E,0x0C, + 0x1E,0xCE,0x2C,0x16,0x55,0x78,0x5A,0x17, + 0x2C,0x27,0x00,0x00,0x00,0x02,0x00,0x33, + 0xFF,0xFB,0x01,0xE0,0x02,0xBE,0x00,0x12, + 0x00,0x1C,0x00,0x00,0x37,0x34,0x3E,0x03, + 0x32,0x16,0x14,0x07,0x06,0x07,0x36,0x32, + 0x16,0x14,0x06,0x22,0x26,0x37,0x14,0x16, + 0x32,0x36,0x34,0x26,0x22,0x07,0x06,0x33, + 0x37,0x51,0x5C,0x4B,0x24,0x13,0x08,0xC2, + 0x35,0x39,0x9F,0x6E,0x7B,0xC6,0x6C,0x54, + 0x4D,0x68,0x4F,0x4C,0x78,0x3C,0x04,0xF7, + 0x52,0x97,0x69,0x4F,0x26,0x28,0x15,0x03, + 0x50,0xBA,0x21,0x70,0xB7,0x73,0x83,0x71, + 0x5F,0x4D,0x45,0x83,0x42,0x22,0x28,0x00, + 0x00,0x01,0x00,0x37,0xFF,0xFE,0x01,0xEA, + 0x02,0xBC,0x00,0x13,0x00,0x00,0x37,0x34, + 0x37,0x01,0x21,0x22,0x35,0x35,0x34,0x33, + 0x21,0x32,0x16,0x14,0x07,0x01,0x06,0x23, + 0x23,0x22,0x61,0x04,0x01,0x21,0xFE,0xC5, + 0x14,0x14,0x01,0x8B,0x06,0x0E,0x02,0xFE, + 0xD8,0x08,0x20,0x0C,0x2B,0x10,0x02,0x0A, + 0x02,0x58,0x1E,0x0C,0x1E,0x24,0x14,0x06, + 0xFD,0x90,0x10,0x00,0x00,0x03,0x00,0x33, + 0xFF,0xFA,0x01,0xE4,0x02,0xC2,0x00,0x13, + 0x00,0x1E,0x00,0x2D,0x00,0x00,0x37,0x34, + 0x36,0x37,0x26,0x35,0x34,0x36,0x32,0x16, + 0x15,0x14,0x07,0x16,0x16,0x15,0x14,0x06, + 0x22,0x26,0x01,0x34,0x26,0x22,0x06,0x15, + 0x14,0x17,0x16,0x17,0x36,0x03,0x14,0x16, + 0x32,0x36,0x35,0x34,0x27,0x2E,0x04,0x27, + 0x06,0x33,0x3A,0x35,0x53,0x6B,0xA6,0x6D, + 0x61,0x39,0x3F,0x79,0xBF,0x79,0x01,0x46, + 0x3C,0x5F,0x3B,0x28,0x1E,0x3A,0x56,0xF0, + 0x4A,0x70,0x4B,0x14,0x0B,0x13,0x26,0x17, + 0x30,0x0A,0x5C,0xCA,0x49,0x50,0x19,0x31, + 0x68,0x52,0x5B,0x5B,0x52,0x6B,0x2D,0x1A, + 0x4E,0x4B,0x66,0x6A,0x6A,0x01,0xB1,0x33, + 0x32,0x32,0x33,0x39,0x1C,0x14,0x14,0x32, + 0xFF,0x00,0x41,0x47,0x47,0x41,0x2C,0x18, + 0x0E,0x12,0x12,0x09,0x11,0x04,0x36,0x00, + 0x00,0x02,0x00,0x37,0xFF,0xFE,0x01,0xE4, + 0x02,0xC1,0x00,0x12,0x00,0x1C,0x00,0x00, + 0x16,0x26,0x34,0x37,0x36,0x37,0x06,0x22, + 0x26,0x34,0x36,0x32,0x16,0x15,0x14,0x0E, + 0x03,0x02,0x16,0x32,0x37,0x36,0x35,0x34, + 0x26,0x22,0x06,0x91,0x13,0x08,0xC2,0x35, + 0x39,0x9F,0x6E,0x7B,0xC6,0x6C,0x37,0x51, + 0x5C,0x4B,0x29,0x4C,0x78,0x3C,0x04,0x4D, + 0x68,0x4F,0x02,0x28,0x15,0x03,0x50,0xBA, + 0x21,0x70,0xB7,0x73,0x83,0x79,0x52,0x97, + 0x69,0x4F,0x26,0x01,0xB3,0x42,0x22,0x28, + 0x14,0x5F,0x4D,0x45,0x00,0x02,0x00,0x33, + 0xFF,0xFE,0x00,0x94,0x02,0x0D,0x00,0x0B, + 0x00,0x17,0x00,0x00,0x13,0x22,0x35,0x35, + 0x34,0x33,0x33,0x32,0x15,0x15,0x14,0x23, + 0x03,0x35,0x34,0x33,0x33,0x32,0x15,0x15, + 0x14,0x23,0x23,0x22,0x5B,0x28,0x28,0x11, + 0x28,0x28,0x39,0x28,0x11,0x28,0x28,0x11, + 0x28,0x01,0x9F,0x16,0x42,0x16,0x16,0x42, + 0x16,0xFE,0x75,0x42,0x16,0x16,0x42,0x16, + 0x00,0x02,0x00,0x0C,0xFF,0x8C,0x00,0x94, + 0x02,0x0D,0x00,0x0B,0x00,0x18,0x00,0x00, + 0x13,0x22,0x35,0x35,0x34,0x33,0x33,0x32, + 0x15,0x15,0x14,0x23,0x03,0x34,0x33,0x33, + 0x32,0x15,0x14,0x06,0x22,0x35,0x34,0x37, + 0x36,0x5B,0x28,0x28,0x11,0x28,0x28,0x35, + 0x28,0x09,0x28,0x49,0x3B,0x09,0x22,0x01, + 0x9F,0x16,0x42,0x16,0x16,0x42,0x16,0xFE, + 0xAD,0x20,0x1C,0x51,0x73,0x0F,0x06,0x12, + 0x44,0x00,0x00,0x00,0x00,0x01,0x00,0x29, + 0x00,0x07,0x02,0x01,0x01,0xC0,0x00,0x16, + 0x00,0x00,0x37,0x35,0x34,0x37,0x25,0x36, + 0x33,0x32,0x15,0x15,0x14,0x07,0x05,0x05, + 0x16,0x15,0x15,0x14,0x23,0x22,0x27,0x25, + 0x26,0x29,0x19,0x01,0x9B,0x07,0x08,0x15, + 0x18,0xFE,0x9C,0x01,0x64,0x18,0x15,0x08, + 0x07,0xFE,0x65,0x19,0xDB,0x11,0x18,0x0B, + 0xAE,0x03,0x1A,0x0E,0x1A,0x09,0x91,0x92, + 0x0A,0x19,0x0E,0x1A,0x03,0xAE,0x0B,0x00, + 0x00,0x02,0x00,0x30,0x00,0x6B,0x02,0x00, + 0x01,0x52,0x00,0x0B,0x00,0x17,0x00,0x00, + 0x13,0x22,0x35,0x35,0x34,0x33,0x21,0x32, + 0x15,0x15,0x14,0x23,0x05,0x22,0x35,0x35, + 0x34,0x33,0x21,0x32,0x15,0x15,0x14,0x23, + 0x4E,0x1E,0x1E,0x01,0x94,0x1E,0x1E,0xFE, + 0x6C,0x1E,0x1E,0x01,0x94,0x1E,0x1E,0x01, + 0x0F,0x1E,0x07,0x1E,0x1E,0x07,0x1E,0xA4, + 0x1E,0x08,0x1E,0x1E,0x08,0x1E,0x00,0x00, + 0x00,0x01,0x00,0x2E,0x00,0x06,0x02,0x06, + 0x01,0xBF,0x00,0x16,0x00,0x00,0x37,0x35, + 0x34,0x37,0x25,0x25,0x26,0x35,0x35,0x34, + 0x33,0x32,0x17,0x05,0x16,0x15,0x15,0x14, + 0x07,0x05,0x06,0x23,0x22,0x2E,0x18,0x01, + 0x64,0xFE,0x9C,0x18,0x15,0x07,0x08,0x01, + 0x9B,0x19,0x19,0xFE,0x65,0x08,0x07,0x15, + 0x20,0x0E,0x18,0x0B,0x92,0x91,0x09,0x1A, + 0x0E,0x1A,0x03,0xAE,0x0B,0x18,0x11,0x18, + 0x0B,0xAE,0x03,0x00,0x00,0x02,0x00,0x30, + 0xFF,0xFE,0x01,0xA9,0x02,0xC2,0x00,0x1E, + 0x00,0x2A,0x00,0x00,0x37,0x34,0x37,0x3E, + 0x02,0x35,0x34,0x23,0x22,0x06,0x23,0x22, + 0x26,0x35,0x34,0x36,0x33,0x32,0x16,0x15, + 0x14,0x07,0x06,0x07,0x06,0x07,0x06,0x23, + 0x23,0x22,0x07,0x35,0x34,0x33,0x33,0x32, + 0x15,0x15,0x14,0x23,0x23,0x22,0x95,0x56, + 0x22,0x1E,0x1F,0x7E,0x26,0x54,0x02,0x07, + 0x19,0x70,0x3C,0x60,0x6D,0x41,0x1C,0x1C, + 0x46,0x07,0x03,0x1E,0x0F,0x1E,0x0D,0x28, + 0x11,0x28,0x28,0x11,0x28,0xE1,0x49,0x56, + 0x22,0x21,0x36,0x17,0x68,0x22,0x28,0x0B, + 0x18,0x21,0x61,0x47,0x45,0x43,0x1D,0x1B, + 0x44,0x38,0x14,0xB6,0x42,0x16,0x16,0x42, + 0x16,0x00,0x00,0x00,0x00,0x02,0x00,0x54, + 0xFF,0x82,0x03,0x63,0x02,0xC1,0x00,0x39, + 0x00,0x44,0x00,0x00,0x37,0x34,0x00,0x33, + 0x32,0x16,0x10,0x06,0x23,0x22,0x26,0x27, + 0x35,0x06,0x23,0x22,0x27,0x26,0x26,0x35, + 0x34,0x36,0x33,0x32,0x17,0x36,0x37,0x36, + 0x33,0x33,0x32,0x15,0x02,0x15,0x14,0x33, + 0x32,0x36,0x35,0x34,0x26,0x23,0x22,0x06, + 0x15,0x14,0x16,0x33,0x32,0x36,0x33,0x32, + 0x15,0x14,0x06,0x23,0x22,0x26,0x25,0x14, + 0x33,0x32,0x36,0x37,0x36,0x37,0x26,0x23, + 0x22,0x54,0x01,0x04,0xBE,0x97,0xB6,0x76, + 0x5C,0x2D,0x34,0x02,0x31,0x56,0x30,0x2D, + 0x18,0x1C,0x74,0x5F,0x40,0x2F,0x09,0x05, + 0x06,0x0F,0x06,0x16,0x21,0x28,0x38,0x57, + 0x9A,0x7D,0xA7,0xE5,0x96,0x7A,0x3A,0x5D, + 0x03,0x0E,0x71,0x37,0x91,0xB5,0x01,0x0B, + 0x58,0x22,0x46,0x19,0x0D,0x06,0x29,0x33, + 0x90,0xED,0xC5,0x01,0x0F,0xB2,0xFE,0xE3, + 0xBC,0x30,0x23,0x07,0x5A,0x24,0x12,0x4C, + 0x34,0x77,0x96,0x2F,0x1C,0x07,0x09,0x15, + 0xFE,0xCC,0x18,0x2A,0xA5,0x6C,0x7F,0x9A, + 0xF6,0xB2,0x8E,0xB1,0x1D,0x17,0x1A,0x18, + 0xC9,0xA6,0x7E,0x42,0x4B,0x86,0x13,0x22, + 0x00,0x02,0x00,0x0C,0xFF,0xFE,0x02,0x59, + 0x02,0xBE,0x00,0x17,0x00,0x1C,0x00,0x00, + 0x37,0x34,0x37,0x13,0x36,0x33,0x33,0x32, + 0x17,0x13,0x16,0x15,0x14,0x23,0x23,0x22, + 0x27,0x27,0x21,0x07,0x06,0x23,0x23,0x22, + 0x13,0x33,0x03,0x27,0x07,0x0C,0x03,0xED, + 0x05,0x23,0x1D,0x23,0x05,0xED,0x03,0x2B, + 0x08,0x23,0x05,0x3B,0xFE,0xDA,0x39,0x05, + 0x23,0x05,0x2B,0xAD,0xEF,0x69,0x0D,0x10, + 0x0F,0x05,0x09,0x02,0x91,0x10,0x10,0xFD, + 0x6E,0x07,0x06,0x11,0x10,0xA4,0xA4,0x10, + 0x01,0x00,0x01,0x2A,0x3A,0x3A,0x00,0x00, + 0x00,0x03,0x00,0x61,0x00,0x00,0x02,0x30, + 0x02,0xBC,0x00,0x14,0x00,0x1C,0x00,0x24, + 0x00,0x00,0x37,0x11,0x34,0x33,0x33,0x32, + 0x16,0x15,0x14,0x06,0x07,0x15,0x1E,0x03, + 0x15,0x14,0x21,0x23,0x22,0x13,0x33,0x32, + 0x36,0x34,0x26,0x23,0x23,0x11,0x33,0x32, + 0x36,0x34,0x26,0x23,0x23,0x61,0x1E,0xB3, + 0x6D,0x73,0x42,0x2C,0x0F,0x3A,0x25,0x1E, + 0xFE,0xFB,0xAC,0x1E,0x58,0x74,0x3C,0x4E, + 0x44,0x4A,0x70,0x92,0x42,0x48,0x4F,0x4C, + 0x81,0x1E,0x02,0x80,0x1E,0x60,0x51,0x32, + 0x5A,0x0C,0x04,0x02,0x20,0x21,0x3E,0x25, + 0xC9,0x01,0x8E,0x44,0x69,0x35,0xFD,0xDC, + 0x45,0x74,0x3D,0x00,0x00,0x01,0x00,0x39, + 0xFF,0xFA,0x02,0x4A,0x02,0xC2,0x00,0x1D, + 0x00,0x00,0x13,0x10,0x21,0x32,0x16,0x15, + 0x14,0x06,0x23,0x22,0x26,0x26,0x23,0x22, + 0x06,0x10,0x16,0x33,0x32,0x36,0x36,0x33, + 0x32,0x16,0x15,0x14,0x06,0x23,0x22,0x26, + 0x39,0x01,0x44,0x48,0x77,0x19,0x09,0x02, + 0x27,0x48,0x2A,0x79,0x72,0x71,0x76,0x2D, + 0x50,0x2C,0x03,0x09,0x1A,0x7D,0x52,0xA5, + 0x9D,0x01,0x5E,0x01,0x64,0x29,0x15,0x0E, + 0x2C,0x16,0x16,0x86,0xFE,0xDD,0x87,0x19, + 0x19,0x2C,0x0A,0x17,0x31,0xAD,0x00,0x00, + 0x00,0x02,0x00,0x61,0x00,0x00,0x02,0x7E, + 0x02,0xBC,0x00,0x0B,0x00,0x13,0x00,0x00, + 0x37,0x11,0x34,0x33,0x33,0x32,0x16,0x10, + 0x06,0x23,0x23,0x22,0x37,0x33,0x32,0x36, + 0x10,0x26,0x23,0x23,0x61,0x1E,0xCA,0x8C, + 0xA9,0xA9,0x8C,0xCA,0x1E,0x58,0x89,0x65, + 0x7C,0x7C,0x65,0x89,0x1E,0x02,0x80,0x1E, + 0xA7,0xFE,0x91,0xA6,0x4C,0x84,0x01,0x1B, + 0x85,0x00,0x00,0x00,0x00,0x01,0x00,0x61, + 0x00,0x00,0x01,0xF1,0x02,0xBC,0x00,0x1B, + 0x00,0x00,0x37,0x11,0x34,0x33,0x21,0x32, + 0x15,0x15,0x14,0x23,0x21,0x15,0x21,0x32, + 0x15,0x15,0x14,0x23,0x21,0x15,0x21,0x32, + 0x15,0x15,0x14,0x23,0x21,0x22,0x61,0x1E, + 0x01,0x5D,0x14,0x14,0xFE,0xDD,0x01,0x05, + 0x14,0x14,0xFE,0xFB,0x01,0x24,0x14,0x14, + 0xFE,0xA2,0x1E,0x1E,0x02,0x80,0x1E,0x1E, + 0x10,0x1E,0xE4,0x1E,0x10,0x1E,0xF4,0x1E, + 0x10,0x1E,0x00,0x00,0x00,0x01,0x00,0x61, + 0xFF,0xFE,0x01,0xCE,0x02,0xBC,0x00,0x17, + 0x00,0x00,0x37,0x11,0x34,0x33,0x21,0x32, + 0x15,0x15,0x14,0x23,0x21,0x15,0x33,0x32, + 0x15,0x15,0x14,0x23,0x23,0x11,0x14,0x23, + 0x23,0x22,0x61,0x1E,0x01,0x3B,0x14,0x14, + 0xFE,0xFF,0xEF,0x14,0x14,0xEF,0x28,0x08, + 0x28,0x14,0x02,0x8A,0x1E,0x1E,0x10,0x1E, + 0xE4,0x1E,0x10,0x1E,0xFE,0xD4,0x16,0x00, + 0x00,0x01,0x00,0x39,0xFF,0xFA,0x02,0x4D, + 0x02,0xC2,0x00,0x21,0x00,0x00,0x13,0x10, + 0x21,0x32,0x16,0x15,0x14,0x06,0x23,0x22, + 0x26,0x26,0x23,0x22,0x06,0x15,0x10,0x33, + 0x32,0x37,0x35,0x23,0x22,0x35,0x35,0x34, + 0x33,0x33,0x32,0x15,0x11,0x14,0x23,0x20, + 0x39,0x01,0x44,0x48,0x77,0x19,0x09,0x02, + 0x27,0x48,0x2A,0x7F,0x6C,0xE0,0x4F,0x32, + 0x75,0x14,0x14,0xAF,0x1E,0xDF,0xFE,0xCB, + 0x01,0x58,0x01,0x6A,0x29,0x15,0x0E,0x2C, + 0x16,0x16,0x8C,0x89,0xFE,0xE5,0x0D,0xCA, + 0x1E,0x10,0x1E,0x1E,0xFE,0xF7,0x48,0x00, + 0x00,0x01,0x00,0x61,0xFF,0xFE,0x02,0x7B, + 0x02,0xBE,0x00,0x1B,0x00,0x00,0x37,0x11, + 0x34,0x33,0x33,0x32,0x15,0x11,0x21,0x11, + 0x34,0x33,0x33,0x32,0x15,0x11,0x14,0x23, + 0x23,0x22,0x35,0x11,0x21,0x11,0x14,0x23, + 0x23,0x22,0x61,0x28,0x08,0x28,0x01,0x6A, + 0x28,0x08,0x28,0x28,0x08,0x28,0xFE,0x96, + 0x28,0x08,0x28,0x14,0x02,0x94,0x16,0x16, + 0xFE,0xE5,0x01,0x1B,0x16,0x16,0xFD,0x6C, + 0x16,0x16,0x01,0x2D,0xFE,0xD3,0x16,0x00, + 0x00,0x01,0x00,0x61,0xFF,0xFE,0x00,0xB9, + 0x02,0xBE,0x00,0x0B,0x00,0x00,0x37,0x11, + 0x34,0x33,0x33,0x32,0x15,0x11,0x14,0x23, + 0x23,0x22,0x61,0x28,0x08,0x28,0x28,0x08, + 0x28,0x14,0x02,0x94,0x16,0x16,0xFD,0x6C, + 0x16,0x00,0x00,0x00,0x00,0x01,0x00,0x06, + 0xFF,0xFA,0x01,0x3F,0x02,0xBE,0x00,0x13, + 0x00,0x00,0x37,0x34,0x36,0x33,0x32,0x16, + 0x33,0x32,0x36,0x35,0x11,0x34,0x33,0x33, + 0x32,0x15,0x11,0x14,0x23,0x22,0x06,0x0C, + 0x0A,0x01,0x2B,0x13,0x4A,0x42,0x28,0x08, + 0x28,0xD4,0x65,0x1A,0x0A,0x2D,0x09,0x3A, + 0x41,0x01,0xE5,0x16,0x16,0xFE,0x25,0xD3, + 0x00,0x01,0x00,0x61,0xFF,0xFE,0x02,0x4A, + 0x02,0xBE,0x00,0x20,0x00,0x00,0x37,0x11, + 0x34,0x33,0x33,0x32,0x15,0x11,0x33,0x13, + 0x36,0x33,0x33,0x32,0x15,0x14,0x07,0x03, + 0x01,0x16,0x15,0x14,0x23,0x23,0x22,0x27, + 0x01,0x23,0x11,0x14,0x23,0x23,0x22,0x61, + 0x28,0x08,0x28,0x04,0xF6,0x0B,0x2B,0x0A, + 0x23,0x0A,0xFA,0x01,0x2F,0x09,0x2C,0x0C, + 0x2B,0x0C,0xFE,0xE2,0x04,0x28,0x08,0x28, + 0x14,0x02,0x94,0x16,0x16,0xFE,0xCE,0x01, + 0x3A,0x0E,0x0D,0x09,0x0B,0xFE,0xC8,0xFE, + 0xB7,0x0A,0x06,0x0E,0x0D,0x01,0x42,0xFE, + 0xC7,0x16,0x00,0x00,0x00,0x01,0x00,0x61, + 0x00,0x00,0x01,0xE0,0x02,0xBE,0x00,0x0F, + 0x00,0x00,0x37,0x11,0x34,0x33,0x33,0x32, + 0x15,0x11,0x21,0x32,0x15,0x15,0x14,0x23, + 0x21,0x22,0x61,0x28,0x08,0x28,0x01,0x13, + 0x14,0x14,0xFE,0xB3,0x1E,0x1E,0x02,0x8A, + 0x16,0x16,0xFD,0xA4,0x1E,0x10,0x1E,0x00, + 0x00,0x01,0x00,0x5A,0xFF,0xFE,0x02,0xF1, + 0x02,0xBE,0x00,0x22,0x00,0x00,0x37,0x11, + 0x34,0x33,0x33,0x32,0x17,0x13,0x17,0x37, + 0x13,0x36,0x33,0x33,0x32,0x15,0x11,0x14, + 0x23,0x23,0x22,0x35,0x11,0x03,0x06,0x23, + 0x23,0x22,0x27,0x03,0x11,0x14,0x23,0x23, + 0x22,0x5A,0x28,0x24,0x20,0x0A,0xBD,0x1A, + 0x1A,0xBD,0x0A,0x20,0x21,0x28,0x28,0x07, + 0x28,0xC9,0x07,0x0F,0x28,0x0F,0x07,0xCC, + 0x28,0x07,0x28,0x14,0x02,0x94,0x16,0x12, + 0xFE,0xB8,0x3F,0x39,0x01,0x4E,0x12,0x16, + 0xFD,0x6C,0x16,0x16,0x02,0x1A,0xFE,0xA2, + 0x0D,0x0D,0x01,0x64,0xFD,0xE0,0x16,0x00, + 0x00,0x01,0x00,0x5A,0xFF,0xFE,0x02,0x75, + 0x02,0xBE,0x00,0x1B,0x00,0x00,0x37,0x11, + 0x34,0x33,0x33,0x32,0x17,0x01,0x17,0x11, + 0x34,0x33,0x33,0x32,0x15,0x11,0x14,0x23, + 0x23,0x22,0x27,0x01,0x27,0x11,0x14,0x23, + 0x23,0x22,0x5A,0x28,0x15,0x1C,0x0E,0x01, + 0x3F,0x1E,0x28,0x07,0x28,0x28,0x14,0x1A, + 0x09,0xFE,0xB6,0x1B,0x28,0x07,0x28,0x14, + 0x02,0x94,0x16,0x13,0xFE,0x1E,0x38,0x02, + 0x17,0x16,0x16,0xFD,0x6C,0x16,0x0E,0x01, + 0xF2,0x33,0xFD,0xE3,0x16,0x00,0x00,0x00, + 0x00,0x02,0x00,0x39,0xFF,0xFA,0x02,0xA2, + 0x02,0xC2,0x00,0x07,0x00,0x0F,0x00,0x00, + 0x36,0x10,0x36,0x20,0x16,0x10,0x06,0x20, + 0x36,0x32,0x36,0x10,0x26,0x22,0x06,0x10, + 0x39,0x9D,0x01,0x2E,0x9E,0x9E,0xFE,0xD3, + 0x2C,0xD4,0x70,0x70,0xD4,0x6F,0xB1,0x01, + 0x5E,0xB3,0xB3,0xFE,0xA2,0xB7,0x4C,0x90, + 0x01,0x13,0x8D,0x8D,0xFE,0xED,0x00,0x00, + 0x00,0x02,0x00,0x55,0xFF,0xFE,0x02,0x1D, + 0x02,0xBC,0x00,0x14,0x00,0x1F,0x00,0x00, + 0x37,0x11,0x34,0x33,0x33,0x32,0x17,0x16, + 0x16,0x14,0x06,0x06,0x07,0x06,0x23,0x23, + 0x11,0x14,0x23,0x23,0x22,0x13,0x33,0x32, + 0x37,0x36,0x36,0x35,0x34,0x26,0x23,0x23, + 0x55,0x1E,0xCB,0x4D,0x41,0x25,0x2C,0x23, + 0x31,0x20,0x31,0x30,0x9B,0x28,0x08,0x28, + 0x58,0x9C,0x26,0x25,0x14,0x1A,0x50,0x37, + 0x8E,0x14,0x02,0x8A,0x1E,0x22,0x13,0x53, + 0x70,0x4F,0x2A,0x0D,0x14,0xFE,0xEA,0x16, + 0x01,0x78,0x18,0x0D,0x37,0x26,0x43,0x35, + 0x00,0x02,0x00,0x39,0xFF,0x6C,0x02,0xAC, + 0x02,0xC2,0x00,0x12,0x00,0x1A,0x00,0x00, + 0x13,0x34,0x36,0x20,0x16,0x15,0x14,0x06, + 0x07,0x15,0x17,0x16,0x14,0x06,0x23,0x22, + 0x24,0x27,0x26,0x36,0x16,0x32,0x36,0x10, + 0x26,0x22,0x06,0x39,0x9E,0x01,0x2D,0x9E, + 0x67,0x62,0xC5,0x0E,0x1B,0x0F,0x08,0xFE, + 0xAC,0x30,0xBD,0x5B,0x71,0xD1,0x71,0x72, + 0xD0,0x71,0x01,0x5B,0xB0,0xB7,0xB8,0xAF, + 0x8E,0xAE,0x1A,0x04,0x3E,0x05,0x18,0x3A, + 0x86,0x14,0x4B,0x82,0x90,0x91,0x01,0x0F, + 0x93,0x92,0x00,0x00,0x00,0x02,0x00,0x61, + 0xFF,0xFE,0x02,0x50,0x02,0xBC,0x00,0x1F, + 0x00,0x27,0x00,0x00,0x37,0x11,0x34,0x33, + 0x33,0x32,0x16,0x15,0x14,0x07,0x15,0x16, + 0x16,0x17,0x17,0x16,0x15,0x14,0x23,0x23, + 0x22,0x27,0x27,0x26,0x26,0x23,0x23,0x11, + 0x14,0x23,0x23,0x22,0x13,0x33,0x32,0x36, + 0x34,0x26,0x23,0x23,0x61,0x1E,0xA8,0x78, + 0x79,0x73,0x1D,0x27,0x16,0x4E,0x03,0x2A, + 0x0A,0x22,0x06,0x4C,0x16,0x42,0x3D,0x5A, + 0x28,0x08,0x28,0x58,0x84,0x35,0x4B,0x48, + 0x3F,0x7D,0x14,0x02,0x8A,0x1E,0x55,0x5C, + 0x7B,0x2E,0x04,0x0A,0x3A,0x39,0xC5,0x09, + 0x05,0x10,0x10,0xC4,0x39,0x29,0xFE,0xE0, + 0x16,0x01,0x82,0x49,0x6D,0x3A,0x00,0x00, + 0x00,0x01,0x00,0x25,0xFF,0xFA,0x01,0xD2, + 0x02,0xC2,0x00,0x28,0x00,0x00,0x37,0x34, + 0x36,0x33,0x32,0x16,0x16,0x32,0x36,0x34, + 0x2E,0x03,0x35,0x34,0x36,0x33,0x32,0x16, + 0x15,0x14,0x06,0x23,0x22,0x27,0x26,0x22, + 0x06,0x14,0x17,0x1E,0x04,0x15,0x14,0x06, + 0x22,0x26,0x25,0x1B,0x08,0x03,0x2C,0x50, + 0x67,0x49,0x43,0x5F,0x60,0x43,0x7A,0x64, + 0x31,0x70,0x19,0x07,0x04,0x11,0x33,0x76, + 0x46,0x41,0x1C,0x46,0x45,0x39,0x24,0x78, + 0xB8,0x7D,0x43,0x0C,0x2A,0x19,0x1A,0x42, + 0x66,0x3C,0x23,0x28,0x54,0x41,0x53,0x65, + 0x24,0x19,0x0B,0x2A,0x0A,0x1C,0x39,0x6E, + 0x1F,0x0D,0x19,0x21,0x2C,0x4C,0x32,0x5C, + 0x69,0x32,0x00,0x00,0x00,0x01,0x00,0x14, + 0xFF,0xFE,0x02,0x11,0x02,0xBC,0x00,0x13, + 0x00,0x00,0x37,0x11,0x23,0x22,0x35,0x35, + 0x34,0x33,0x21,0x32,0x15,0x15,0x14,0x23, + 0x23,0x11,0x14,0x23,0x23,0x22,0xE8,0xC0, + 0x14,0x14,0x01,0xD5,0x14,0x14,0xBD,0x28, + 0x08,0x28,0x14,0x02,0x5C,0x1E,0x10,0x1E, + 0x1E,0x10,0x1E,0xFD,0xA4,0x16,0x00,0x00, + 0x00,0x01,0x00,0x53,0xFF,0xFA,0x02,0x75, + 0x02,0xBE,0x00,0x17,0x00,0x00,0x37,0x11, + 0x34,0x33,0x33,0x32,0x15,0x11,0x14,0x16, + 0x32,0x36,0x35,0x11,0x34,0x33,0x33,0x32, + 0x15,0x11,0x14,0x06,0x20,0x26,0x53,0x28, + 0x08,0x28,0x69,0xA0,0x69,0x28,0x08,0x28, + 0x8E,0xFE,0xF9,0x8D,0xE0,0x01,0xC8,0x16, + 0x16,0xFE,0x35,0x42,0x55,0x55,0x42,0x01, + 0xCB,0x16,0x16,0xFE,0x38,0x6D,0x79,0x79, + 0x00,0x01,0x00,0x15,0xFF,0xFE,0x02,0x54, + 0x02,0xBE,0x00,0x18,0x00,0x00,0x13,0x34, + 0x33,0x33,0x32,0x17,0x13,0x17,0x37,0x13, + 0x36,0x33,0x33,0x32,0x15,0x14,0x07,0x03, + 0x06,0x23,0x23,0x22,0x27,0x03,0x26,0x15, + 0x2B,0x09,0x23,0x05,0xB9,0x0B,0x0D,0xB9, + 0x05,0x23,0x06,0x2B,0x03,0xE5,0x05,0x23, + 0x1F,0x23,0x05,0xE5,0x03,0x02,0xAD,0x11, + 0x10,0xFD,0xEA,0x34,0x35,0x02,0x15,0x10, + 0x11,0x05,0x09,0xFD,0x6F,0x10,0x10,0x02, + 0x92,0x08,0x00,0x00,0x00,0x01,0x00,0x0F, + 0xFF,0xFE,0x03,0x63,0x02,0xBE,0x00,0x2A, + 0x00,0x00,0x13,0x34,0x33,0x33,0x32,0x17, + 0x13,0x16,0x16,0x15,0x13,0x36,0x33,0x33, + 0x32,0x17,0x13,0x17,0x13,0x36,0x33,0x33, + 0x32,0x15,0x14,0x07,0x03,0x06,0x23,0x23, + 0x22,0x27,0x03,0x27,0x07,0x03,0x06,0x23, + 0x23,0x22,0x27,0x03,0x26,0x0F,0x2B,0x0A, + 0x24,0x04,0x7F,0x07,0x0B,0x91,0x04,0x23, + 0x10,0x23,0x04,0x7C,0x11,0x91,0x04,0x24, + 0x06,0x2B,0x03,0xAD,0x04,0x24,0x29,0x24, + 0x04,0x6D,0x15,0x15,0x6D,0x04,0x24,0x29, + 0x24,0x04,0xAB,0x03,0x02,0xAD,0x11,0x10, + 0xFE,0x14,0x1C,0x40,0x01,0x02,0x48,0x11, + 0x11,0xFE,0x14,0x5C,0x02,0x49,0x10,0x11, + 0x02,0x0C,0xFD,0x6F,0x10,0x10,0x01,0x97, + 0x82,0x82,0xFE,0x69,0x10,0x10,0x02,0x91, + 0x0C,0x00,0x00,0x00,0x00,0x01,0x00,0x14, + 0xFF,0xFE,0x02,0x50,0x02,0xBE,0x00,0x23, + 0x00,0x00,0x37,0x34,0x37,0x13,0x03,0x26, + 0x35,0x34,0x33,0x33,0x32,0x17,0x17,0x37, + 0x36,0x33,0x33,0x32,0x15,0x14,0x07,0x03, + 0x13,0x16,0x15,0x14,0x23,0x23,0x22,0x27, + 0x03,0x03,0x06,0x23,0x23,0x22,0x14,0x08, + 0xE0,0xC8,0x08,0x2E,0x0E,0x21,0x0A,0xA0, + 0xA5,0x09,0x22,0x06,0x2E,0x08,0xC8,0xE1, + 0x08,0x2E,0x10,0x21,0x0A,0xB8,0xBA,0x09, + 0x22,0x08,0x2E,0x0F,0x07,0x0B,0x01,0x4C, + 0x01,0x2E,0x0B,0x07,0x11,0x0F,0xF1,0xF2, + 0x0E,0x11,0x04,0x0E,0xFE,0xD7,0xFE,0xAF, + 0x0B,0x07,0x11,0x0F,0x01,0x13,0xFE,0xEC, + 0x0E,0x00,0x00,0x00,0x00,0x01,0x00,0x12, + 0xFF,0xFE,0x02,0x1D,0x02,0xBE,0x00,0x16, + 0x00,0x00,0x37,0x11,0x03,0x26,0x35,0x34, + 0x33,0x33,0x32,0x17,0x17,0x37,0x36,0x32, + 0x15,0x14,0x07,0x03,0x11,0x14,0x23,0x23, + 0x22,0xEB,0xD1,0x08,0x2E,0x0B,0x21,0x0A, + 0xA4,0xA8,0x09,0x52,0x08,0xD2,0x28,0x08, + 0x28,0x14,0x01,0x53,0x01,0x34,0x0B,0x07, + 0x11,0x0F,0xF6,0xF7,0x0E,0x11,0x04,0x0E, + 0xFE,0xC9,0xFE,0xB0,0x16,0x00,0x00,0x00, + 0x00,0x01,0x00,0x26,0x00,0x00,0x02,0x3B, + 0x02,0xBC,0x00,0x17,0x00,0x00,0x33,0x22, + 0x26,0x34,0x37,0x01,0x21,0x22,0x35,0x35, + 0x34,0x33,0x21,0x32,0x16,0x14,0x07,0x01, + 0x21,0x32,0x15,0x15,0x14,0x23,0x3E,0x07, + 0x11,0x03,0x01,0x9A,0xFE,0x98,0x14,0x14, + 0x01,0xCA,0x06,0x10,0x03,0xFE,0x66,0x01, + 0x87,0x14,0x14,0x26,0x16,0x05,0x02,0x2F, + 0x22,0x08,0x22,0x26,0x16,0x05,0xFD,0xD1, + 0x22,0x08,0x22,0x00,0x00,0x01,0x00,0x5A, + 0xFF,0x76,0x01,0x05,0x03,0x00,0x00,0x13, + 0x00,0x00,0x17,0x11,0x34,0x33,0x33,0x32, + 0x15,0x15,0x14,0x23,0x23,0x11,0x33,0x32, + 0x15,0x15,0x14,0x23,0x23,0x22,0x5A,0x1E, + 0x79,0x14,0x14,0x4D,0x4D,0x14,0x14,0x79, + 0x1E,0x6C,0x03,0x4E,0x1E,0x1D,0x05,0x1D, + 0xFC,0xF3,0x1D,0x04,0x1D,0x00,0x00,0x00, + 0x00,0x01,0x00,0x05,0xFF,0xEC,0x01,0x65, + 0x02,0xBE,0x00,0x0F,0x00,0x00,0x13,0x34, + 0x33,0x33,0x32,0x17,0x01,0x16,0x15,0x14, + 0x23,0x23,0x22,0x27,0x01,0x26,0x05,0x18, + 0x04,0x19,0x0A,0x01,0x1E,0x03,0x1A,0x04, + 0x17,0x0A,0xFE,0xE2,0x03,0x02,0xAA,0x14, + 0x17,0xFD,0x68,0x07,0x08,0x14,0x17,0x02, + 0x98,0x07,0x00,0x00,0x00,0x01,0x00,0x1E, + 0xFF,0x76,0x00,0xC9,0x03,0x00,0x00,0x13, + 0x00,0x00,0x17,0x33,0x11,0x23,0x22,0x35, + 0x35,0x34,0x33,0x33,0x32,0x15,0x11,0x14, + 0x23,0x23,0x22,0x35,0x35,0x34,0x32,0x4D, + 0x4D,0x14,0x14,0x79,0x1E,0x1E,0x79,0x14, + 0x4C,0x03,0x0D,0x1D,0x05,0x1D,0x1E,0xFC, + 0xB2,0x1E,0x1D,0x04,0x1D,0x00,0x00,0x00, + 0x00,0x01,0x00,0x35,0x01,0x40,0x01,0x8D, + 0x02,0xAC,0x00,0x16,0x00,0x00,0x13,0x22, + 0x35,0x34,0x37,0x13,0x36,0x33,0x33,0x32, + 0x17,0x13,0x16,0x15,0x14,0x23,0x23,0x22, + 0x27,0x03,0x03,0x06,0x23,0x50,0x1B,0x03, + 0x7D,0x07,0x1B,0x14,0x19,0x09,0x7D,0x03, + 0x1B,0x04,0x1A,0x09,0x6A,0x6B,0x0A,0x18, + 0x01,0x40,0x15,0x07,0x07,0x01,0x35,0x14, + 0x14,0xFE,0xCB,0x07,0x07,0x15,0x17,0x01, + 0x05,0xFE,0xFB,0x17,0x00,0x01,0xFF,0xEB, + 0xFF,0x76,0x02,0x2B,0xFF,0xA6,0x00,0x0B, + 0x00,0x00,0x07,0x21,0x32,0x15,0x15,0x14, + 0x23,0x21,0x22,0x35,0x35,0x34,0x01,0x02, + 0x18,0x14,0x14,0xFD,0xE8,0x14,0x5A,0x14, + 0x08,0x14,0x14,0x08,0x14,0x00,0x00,0x00, + 0x00,0x01,0x00,0x4A,0x02,0x5D,0x00,0xF2, + 0x02,0xF0,0x00,0x09,0x00,0x00,0x12,0x14, + 0x22,0x27,0x26,0x26,0x35,0x34,0x32,0x17, + 0xF2,0x3A,0x10,0x58,0x06,0x5F,0x0F,0x02, + 0x71,0x14,0x12,0x65,0x0B,0x04,0x0D,0x1A, + 0x00,0x02,0x00,0x31,0xFF,0xFA,0x01,0xDD, + 0x02,0x11,0x00,0x25,0x00,0x31,0x00,0x00, + 0x01,0x35,0x34,0x23,0x22,0x07,0x06,0x23, + 0x22,0x26,0x35,0x34,0x36,0x32,0x16,0x15, + 0x15,0x14,0x17,0x16,0x15,0x14,0x06,0x22, + 0x2E,0x05,0x27,0x06,0x23,0x22,0x26,0x34, + 0x36,0x36,0x07,0x14,0x33,0x32,0x36,0x37, + 0x35,0x22,0x07,0x06,0x07,0x06,0x01,0x7D, + 0x6E,0x48,0x3D,0x15,0x02,0x0A,0x19,0x75, + 0xA4,0x68,0x05,0x07,0x26,0x15,0x08,0x07, + 0x04,0x04,0x03,0x03,0x01,0x44,0x64,0x4D, + 0x5E,0x6D,0x88,0x9B,0x55,0x31,0x47,0x25, + 0x7D,0x24,0x13,0x15,0x29,0x01,0x46,0x2F, + 0x54,0x1F,0x0B,0x28,0x0A,0x15,0x2B,0x53, + 0x4A,0xE0,0x3C,0x1B,0x25,0x02,0x0C,0x0B, + 0x04,0x0A,0x09,0x10,0x09,0x13,0x03,0x4B, + 0x4C,0x9E,0x4F,0x11,0xAF,0x52,0x24,0x21, + 0x76,0x0E,0x07,0x0B,0x15,0x00,0x00,0x00, + 0x00,0x02,0x00,0x55,0xFF,0xFA,0x02,0x03, + 0x02,0xF0,0x00,0x15,0x00,0x20,0x00,0x00, + 0x37,0x11,0x34,0x33,0x33,0x32,0x15,0x15, + 0x36,0x32,0x16,0x15,0x15,0x14,0x06,0x22, + 0x27,0x07,0x06,0x23,0x23,0x22,0x37,0x16, + 0x33,0x32,0x35,0x34,0x26,0x27,0x23,0x22, + 0x07,0x55,0x28,0x04,0x28,0x42,0xA8,0x70, + 0x69,0xB0,0x48,0x10,0x05,0x16,0x04,0x1E, + 0x54,0x3F,0x42,0x81,0x43,0x40,0x06,0x43, + 0x36,0x14,0x02,0xC6,0x16,0x16,0xFC,0x33, + 0x8B,0x7B,0x09,0x74,0x94,0x4B,0x3B,0x0C, + 0x8A,0x45,0xCA,0x59,0x60,0x01,0x2D,0x00, + 0x00,0x01,0x00,0x34,0xFF,0xFA,0x01,0xC7, + 0x02,0x11,0x00,0x23,0x00,0x00,0x13,0x34, + 0x36,0x37,0x36,0x33,0x32,0x16,0x15,0x14, + 0x06,0x23,0x22,0x26,0x26,0x27,0x26,0x23, + 0x22,0x15,0x14,0x16,0x33,0x32,0x37,0x36, + 0x36,0x33,0x32,0x16,0x15,0x14,0x06,0x23, + 0x22,0x26,0x34,0x29,0x23,0x42,0x5F,0x3A, + 0x5C,0x17,0x09,0x01,0x05,0x03,0x02,0x36, + 0x37,0x91,0x47,0x54,0x3D,0x34,0x03,0x07, + 0x01,0x0A,0x18,0x5E,0x3F,0x7C,0x7A,0x01, + 0x08,0x4B,0x6C,0x1D,0x35,0x1C,0x12,0x0D, + 0x29,0x02,0x01,0x01,0x18,0xBF,0x6A,0x5E, + 0x1A,0x01,0x03,0x27,0x0C,0x12,0x21,0x80, + 0x00,0x02,0x00,0x34,0xFF,0xFA,0x01,0xEE, + 0x02,0xF0,0x00,0x1D,0x00,0x28,0x00,0x00, + 0x25,0x06,0x22,0x26,0x35,0x35,0x34,0x36, + 0x32,0x17,0x35,0x34,0x33,0x33,0x32,0x15, + 0x11,0x14,0x17,0x16,0x15,0x14,0x06,0x22, + 0x2E,0x05,0x25,0x14,0x33,0x32,0x37,0x11, + 0x26,0x23,0x23,0x06,0x06,0x01,0x95,0x48, + 0xB0,0x69,0x70,0xA8,0x42,0x28,0x04,0x28, + 0x05,0x07,0x26,0x15,0x08,0x07,0x04,0x04, + 0x03,0x03,0xFE,0xF6,0x82,0x41,0x3F,0x36, + 0x43,0x06,0x40,0x43,0x45,0x4B,0x94,0x74, + 0x09,0x7B,0x8B,0x33,0xFC,0x16,0x16,0xFD, + 0xBA,0x3C,0x1B,0x25,0x02,0x0C,0x0B,0x04, + 0x0A,0x09,0x10,0x09,0x13,0xCB,0xCA,0x45, + 0x01,0x12,0x2D,0x01,0x60,0x00,0x00,0x00, + 0x00,0x02,0x00,0x37,0xFF,0xFA,0x01,0xEE, + 0x02,0x11,0x00,0x17,0x00,0x1C,0x00,0x00, + 0x16,0x26,0x10,0x36,0x33,0x32,0x11,0x14, + 0x06,0x23,0x21,0x16,0x16,0x33,0x32,0x37, + 0x36,0x33,0x32,0x16,0x15,0x14,0x06,0x23, + 0x13,0x34,0x23,0x22,0x07,0xAF,0x78,0x76, + 0x6D,0xD4,0x18,0x09,0xFE,0xC4,0x06,0x4A, + 0x4A,0x44,0x39,0x13,0x02,0x0A,0x19,0x6D, + 0x47,0x69,0x78,0x81,0x0B,0x06,0x82,0x01, + 0x0B,0x8A,0xFE,0xFB,0x09,0x20,0x53,0x4E, + 0x20,0x0A,0x28,0x0A,0x14,0x2C,0x01,0x31, + 0x9E,0x9E,0x00,0x00,0x00,0x01,0x00,0x30, + 0xFF,0xFE,0x01,0x36,0x02,0xF4,0x00,0x24, + 0x00,0x00,0x37,0x11,0x23,0x22,0x35,0x35, + 0x34,0x33,0x33,0x35,0x34,0x37,0x36,0x33, + 0x32,0x15,0x14,0x06,0x23,0x22,0x26,0x22, + 0x06,0x15,0x15,0x33,0x32,0x15,0x15,0x14, + 0x23,0x23,0x11,0x14,0x23,0x23,0x22,0x6C, + 0x28,0x14,0x14,0x28,0x2E,0x27,0x2C,0x49, + 0x0C,0x09,0x02,0x18,0x2B,0x1C,0x57,0x14, + 0x14,0x57,0x28,0x04,0x28,0x14,0x01,0xAF, + 0x1E,0x0C,0x1E,0x5F,0x56,0x1C,0x18,0x1E, + 0x0A,0x25,0x05,0x1D,0x2D,0x57,0x1E,0x0C, + 0x1E,0xFE,0x51,0x16,0x00,0x03,0x00,0x22, + 0xFF,0x2C,0x02,0x0E,0x02,0x11,0x00,0x26, + 0x00,0x2A,0x00,0x38,0x00,0x00,0x17,0x34, + 0x37,0x26,0x34,0x37,0x26,0x26,0x35,0x34, + 0x36,0x33,0x32,0x17,0x33,0x32,0x15,0x15, + 0x14,0x23,0x23,0x16,0x15,0x14,0x06,0x23, + 0x23,0x06,0x15,0x14,0x1E,0x03,0x15,0x14, + 0x06,0x22,0x26,0x12,0x32,0x34,0x22,0x03, + 0x14,0x33,0x32,0x36,0x35,0x34,0x27,0x26, + 0x27,0x26,0x27,0x06,0x06,0x22,0x71,0x40, + 0x4C,0x2C,0x2F,0x69,0x5F,0x24,0x1E,0xAC, + 0x14,0x14,0x46,0x21,0x6A,0x5F,0x0A,0x56, + 0x46,0x63,0x63,0x46,0x85,0xE1,0x76,0x7A, + 0xE1,0xE1,0x23,0x96,0x43,0x53,0x17,0x26, + 0x62,0x1A,0x0F,0x27,0x3D,0x51,0x52,0x28, + 0x1B,0x71,0x1A,0x15,0x4F,0x31,0x4B,0x62, + 0x06,0x1E,0x0C,0x1E,0x28,0x37,0x4A,0x62, + 0x04,0x26,0x15,0x15,0x0C,0x16,0x43,0x36, + 0x44,0x59,0x3B,0x01,0x99,0xC9,0xFD,0xEF, + 0x44,0x2E,0x22,0x1B,0x0D,0x15,0x0D,0x04, + 0x03,0x0F,0x30,0x00,0x00,0x01,0x00,0x5C, + 0xFF,0xFE,0x01,0xE8,0x02,0xF0,0x00,0x20, + 0x00,0x00,0x37,0x11,0x34,0x33,0x33,0x32, + 0x15,0x11,0x36,0x33,0x32,0x17,0x16,0x16, + 0x15,0x11,0x14,0x23,0x23,0x22,0x35,0x11, + 0x34,0x26,0x22,0x06,0x07,0x07,0x11,0x14, + 0x23,0x23,0x22,0x5C,0x28,0x04,0x28,0x45, + 0x54,0x39,0x2E,0x19,0x1F,0x28,0x04,0x28, + 0x34,0x53,0x3F,0x0F,0x0F,0x28,0x04,0x28, + 0x14,0x02,0xC6,0x16,0x16,0xFE,0xF2,0x45, + 0x1D,0x11,0x44,0x30,0xFE,0xA5,0x16,0x16, + 0x01,0x53,0x2D,0x34,0x23,0x11,0x12,0xFE, + 0x92,0x16,0x00,0x00,0x00,0x02,0x00,0x57, + 0xFF,0xFE,0x00,0xB3,0x02,0xF0,0x00,0x0B, + 0x00,0x17,0x00,0x00,0x13,0x22,0x35,0x35, + 0x34,0x33,0x33,0x32,0x15,0x15,0x14,0x23, + 0x03,0x11,0x34,0x33,0x33,0x32,0x15,0x11, + 0x14,0x23,0x23,0x22,0x7F,0x28,0x28,0x0C, + 0x28,0x28,0x30,0x28,0x04,0x28,0x28,0x04, + 0x28,0x02,0x89,0x16,0x3B,0x16,0x16,0x3B, + 0x16,0xFD,0x8B,0x01,0xE3,0x16,0x16,0xFE, + 0x1D,0x16,0x00,0x00,0x00,0x02,0xFF,0xEF, + 0xFF,0x2C,0x00,0xBD,0x02,0xF0,0x00,0x0B, + 0x00,0x1F,0x00,0x00,0x13,0x22,0x35,0x35, + 0x34,0x33,0x33,0x32,0x15,0x15,0x14,0x23, + 0x03,0x11,0x34,0x33,0x33,0x32,0x15,0x11, + 0x14,0x06,0x23,0x22,0x35,0x34,0x36,0x33, + 0x32,0x16,0x33,0x32,0x89,0x28,0x28,0x0C, + 0x28,0x28,0x30,0x28,0x04,0x28,0x4F,0x32, + 0x49,0x0C,0x09,0x02,0x18,0x11,0x36,0x02, + 0x89,0x16,0x3B,0x16,0x16,0x3B,0x16,0xFD, + 0x35,0x02,0x39,0x16,0x16,0xFD,0xBF,0x4D, + 0x3D,0x1E,0x0A,0x25,0x05,0x00,0x00,0x00, + 0x00,0x01,0x00,0x5E,0xFF,0xFE,0x01,0xE4, + 0x02,0xF0,0x00,0x20,0x00,0x00,0x37,0x11, + 0x34,0x33,0x33,0x32,0x15,0x11,0x33,0x37, + 0x36,0x33,0x33,0x32,0x15,0x14,0x07,0x07, + 0x17,0x16,0x15,0x14,0x23,0x23,0x22,0x27, + 0x27,0x23,0x15,0x14,0x23,0x23,0x22,0x5E, + 0x28,0x04,0x28,0x04,0xBF,0x0B,0x2A,0x04, + 0x23,0x0A,0xBA,0xCE,0x09,0x2C,0x04,0x2B, + 0x0B,0xC8,0x04,0x28,0x04,0x28,0x14,0x02, + 0xC6,0x16,0x16,0xFE,0x41,0xE4,0x0E,0x0D, + 0x09,0x0B,0xDC,0xF4,0x0A,0x06,0x0E,0x0D, + 0xED,0xE4,0x16,0x00,0x00,0x01,0x00,0x52, + 0xFF,0xFA,0x01,0x1C,0x02,0xF0,0x00,0x13, + 0x00,0x00,0x37,0x11,0x34,0x33,0x33,0x32, + 0x15,0x11,0x14,0x33,0x32,0x36,0x33,0x32, + 0x16,0x15,0x14,0x23,0x22,0x26,0x52,0x28, + 0x04,0x28,0x36,0x11,0x18,0x02,0x09,0x0C, + 0x49,0x32,0x4F,0x84,0x02,0x56,0x16,0x16, + 0xFD,0xB2,0x4A,0x05,0x25,0x0A,0x1E,0x3D, + 0x00,0x01,0x00,0x49,0xFF,0xFE,0x03,0x05, + 0x02,0x11,0x00,0x3A,0x00,0x00,0x37,0x11, + 0x34,0x27,0x26,0x35,0x34,0x36,0x32,0x1E, + 0x05,0x17,0x36,0x33,0x32,0x17,0x36,0x33, + 0x32,0x17,0x16,0x16,0x15,0x11,0x14,0x23, + 0x23,0x22,0x35,0x11,0x34,0x26,0x23,0x22, + 0x07,0x16,0x15,0x11,0x14,0x23,0x23,0x22, + 0x35,0x11,0x34,0x26,0x22,0x06,0x07,0x07, + 0x11,0x14,0x23,0x23,0x22,0x55,0x05,0x07, + 0x26,0x15,0x08,0x07,0x04,0x04,0x03,0x03, + 0x01,0x41,0x57,0x6D,0x22,0x46,0x59,0x39, + 0x2D,0x19,0x1E,0x28,0x04,0x28,0x31,0x2F, + 0x3E,0x3D,0x01,0x28,0x04,0x28,0x31,0x4F, + 0x3D,0x0E,0x0F,0x28,0x04,0x28,0x14,0x01, + 0x5F,0x3D,0x1A,0x24,0x03,0x0C,0x0B,0x04, + 0x09,0x09,0x0F,0x09,0x11,0x03,0x4B,0x53, + 0x53,0x1D,0x11,0x44,0x30,0xFE,0xA5,0x16, + 0x16,0x01,0x53,0x2D,0x34,0x45,0x07,0x0E, + 0xFE,0xA6,0x16,0x16,0x01,0x53,0x2D,0x34, + 0x22,0x12,0x11,0xFE,0x91,0x16,0x00,0x00, + 0x00,0x01,0x00,0x4A,0xFF,0xFE,0x01,0xE2, + 0x02,0x11,0x00,0x24,0x00,0x00,0x37,0x11, + 0x34,0x27,0x26,0x35,0x34,0x36,0x32,0x1E, + 0x05,0x17,0x36,0x32,0x16,0x15,0x11,0x14, + 0x23,0x23,0x22,0x35,0x11,0x34,0x26,0x23, + 0x22,0x07,0x11,0x14,0x23,0x23,0x22,0x56, + 0x05,0x07,0x26,0x15,0x08,0x07,0x04,0x04, + 0x03,0x03,0x01,0x43,0xA5,0x57,0x28,0x04, + 0x28,0x35,0x31,0x48,0x36,0x28,0x04,0x28, + 0x14,0x01,0x5F,0x3D,0x1A,0x24,0x03,0x0C, + 0x0B,0x04,0x09,0x09,0x0F,0x09,0x11,0x03, + 0x4B,0x56,0x4C,0xFE,0xA5,0x16,0x16,0x01, + 0x53,0x2E,0x33,0x46,0xFE,0x92,0x16,0x00, + 0x00,0x02,0x00,0x37,0xFF,0xFA,0x02,0x02, + 0x02,0x11,0x00,0x07,0x00,0x0F,0x00,0x00, + 0x16,0x26,0x10,0x36,0x32,0x16,0x10,0x06, + 0x26,0x32,0x36,0x34,0x26,0x22,0x06,0x14, + 0xAE,0x77,0x78,0xDE,0x75,0x73,0xBC,0x92, + 0x46,0x46,0x92,0x44,0x06,0x88,0x01,0x03, + 0x8C,0x8B,0xFE,0xFB,0x87,0x48,0x5F,0xC8, + 0x60,0x5F,0xC9,0x00,0x00,0x02,0x00,0x4A, + 0xFF,0x30,0x02,0x04,0x02,0x11,0x00,0x1D, + 0x00,0x27,0x00,0x00,0x17,0x14,0x23,0x23, + 0x22,0x35,0x11,0x34,0x27,0x26,0x35,0x34, + 0x36,0x32,0x1E,0x05,0x17,0x36,0x32,0x16, + 0x15,0x15,0x14,0x06,0x22,0x27,0x37,0x33, + 0x36,0x36,0x34,0x26,0x22,0x07,0x11,0x16, + 0xAA,0x28,0x04,0x28,0x05,0x07,0x26,0x15, + 0x08,0x07,0x04,0x04,0x03,0x03,0x01,0x48, + 0xB0,0x69,0x70,0xA8,0x42,0x79,0x06,0x40, + 0x43,0x40,0x83,0x3F,0x36,0xBA,0x16,0x16, + 0x02,0x2D,0x3D,0x1A,0x24,0x03,0x0C,0x0B, + 0x04,0x09,0x09,0x0F,0x09,0x11,0x03,0x4B, + 0x94,0x74,0x09,0x7B,0x8B,0x33,0x17,0x01, + 0x60,0xBA,0x69,0x45,0xFE,0xEE,0x2D,0x00, + 0x00,0x02,0x00,0x34,0xFF,0x30,0x01,0xE2, + 0x02,0x11,0x00,0x15,0x00,0x20,0x00,0x00, + 0x25,0x06,0x22,0x26,0x35,0x35,0x34,0x36, + 0x32,0x17,0x37,0x36,0x33,0x33,0x32,0x15, + 0x11,0x14,0x23,0x23,0x22,0x35,0x27,0x32, + 0x37,0x11,0x26,0x23,0x22,0x15,0x14,0x16, + 0x17,0x01,0x8E,0x42,0xA8,0x70,0x69,0xB0, + 0x48,0x10,0x05,0x16,0x04,0x1E,0x28,0x04, + 0x28,0x79,0x43,0x36,0x3F,0x41,0x82,0x43, + 0x40,0x2D,0x33,0x8B,0x7B,0x09,0x74,0x94, + 0x4B,0x3B,0x0C,0x16,0xFD,0x4F,0x16,0x16, + 0xFE,0x2D,0x01,0x12,0x45,0xCA,0x59,0x60, + 0x01,0x00,0x00,0x00,0x00,0x01,0x00,0x4E, + 0xFF,0xFE,0x01,0x55,0x02,0x11,0x00,0x21, + 0x00,0x00,0x37,0x11,0x34,0x27,0x26,0x35, + 0x34,0x36,0x32,0x1E,0x05,0x17,0x36,0x33, + 0x32,0x16,0x14,0x06,0x23,0x22,0x26,0x22, + 0x06,0x07,0x07,0x11,0x14,0x23,0x23,0x22, + 0x5A,0x05,0x07,0x26,0x15,0x08,0x07,0x04, + 0x04,0x03,0x03,0x01,0x35,0x3F,0x1C,0x1E, + 0x0C,0x08,0x04,0x1F,0x2B,0x2E,0x0B,0x0C, + 0x28,0x04,0x28,0x14,0x01,0x5F,0x3D,0x1A, + 0x24,0x03,0x0C,0x0B,0x04,0x09,0x09,0x0F, + 0x09,0x11,0x03,0x4B,0x16,0x22,0x25,0x0B, + 0x1F,0x0F,0x0F,0xFE,0x92,0x16,0x00,0x00, + 0x00,0x01,0x00,0x23,0xFF,0xFA,0x01,0x74, + 0x02,0x11,0x00,0x23,0x00,0x00,0x37,0x34, + 0x36,0x33,0x32,0x16,0x16,0x32,0x36,0x34, + 0x2E,0x02,0x34,0x36,0x33,0x32,0x16,0x15, + 0x14,0x06,0x23,0x22,0x27,0x26,0x22,0x06, + 0x14,0x16,0x17,0x16,0x16,0x14,0x06,0x22, + 0x26,0x23,0x19,0x0A,0x01,0x1E,0x38,0x4F, + 0x33,0x2D,0x86,0x3C,0x5C,0x4A,0x33,0x50, + 0x17,0x09,0x01,0x0C,0x22,0x55,0x2F,0x23, + 0x2A,0x5E,0x43,0x63,0x8A,0x64,0x36,0x0A, + 0x28,0x13,0x13,0x2D,0x4D,0x2B,0x26,0x3B, + 0x78,0x51,0x1A,0x10,0x0D,0x29,0x06,0x12, + 0x23,0x38,0x20,0x0D,0x1D,0x45,0x8B,0x5A, + 0x29,0x00,0x00,0x00,0x00,0x01,0x00,0x25, + 0xFF,0xFA,0x01,0x35,0x02,0x8A,0x00,0x23, + 0x00,0x00,0x37,0x11,0x23,0x22,0x35,0x35, + 0x34,0x33,0x33,0x37,0x36,0x33,0x33,0x32, + 0x15,0x15,0x33,0x32,0x15,0x15,0x14,0x23, + 0x23,0x11,0x14,0x33,0x32,0x36,0x33,0x32, + 0x16,0x15,0x14,0x23,0x22,0x26,0x6B,0x32, + 0x14,0x14,0x32,0x0C,0x02,0x1E,0x0A,0x1E, + 0x54,0x14,0x14,0x54,0x36,0x11,0x18,0x02, + 0x09,0x0C,0x49,0x32,0x4F,0x84,0x01,0x3F, + 0x1E,0x0C,0x1E,0x69,0x16,0x16,0x69,0x1E, + 0x0C,0x1E,0xFE,0xC9,0x4A,0x05,0x25,0x0A, + 0x1E,0x3D,0x00,0x00,0x00,0x01,0x00,0x4B, + 0xFF,0xFA,0x01,0xE3,0x02,0x0D,0x00,0x24, + 0x00,0x00,0x37,0x11,0x34,0x33,0x33,0x32, + 0x15,0x11,0x14,0x16,0x33,0x32,0x37,0x11, + 0x34,0x33,0x33,0x32,0x15,0x11,0x14,0x17, + 0x16,0x15,0x14,0x06,0x22,0x2E,0x05,0x27, + 0x06,0x22,0x26,0x4B,0x28,0x04,0x28,0x35, + 0x31,0x48,0x36,0x28,0x04,0x28,0x05,0x07, + 0x26,0x15,0x08,0x07,0x04,0x04,0x03,0x03, + 0x01,0x43,0xA5,0x57,0x9C,0x01,0x5B,0x16, + 0x16,0xFE,0xAD,0x2E,0x33,0x46,0x01,0x6E, + 0x16,0x16,0xFE,0x9D,0x3C,0x1B,0x25,0x02, + 0x0C,0x0B,0x04,0x0A,0x09,0x10,0x09,0x13, + 0x03,0x4B,0x56,0x00,0x00,0x01,0x00,0x15, + 0xFF,0xFE,0x01,0xD0,0x02,0x0D,0x00,0x14, + 0x00,0x00,0x13,0x34,0x33,0x33,0x32,0x17, + 0x13,0x13,0x36,0x32,0x15,0x14,0x07,0x03, + 0x06,0x23,0x23,0x22,0x27,0x03,0x26,0x15, + 0x2B,0x08,0x23,0x05,0x86,0x86,0x05,0x4F, + 0x03,0xA1,0x05,0x23,0x23,0x23,0x05,0xA1, + 0x03,0x01,0xFC,0x11,0x10,0xFE,0x6B,0x01, + 0x95,0x10,0x11,0x05,0x09,0xFE,0x20,0x10, + 0x10,0x01,0xE1,0x09,0x00,0x01,0x00,0x1E, + 0xFF,0xFE,0x02,0xCB,0x02,0x0D,0x00,0x22, + 0x00,0x00,0x13,0x34,0x33,0x33,0x32,0x17, + 0x13,0x13,0x36,0x33,0x33,0x32,0x17,0x13, + 0x13,0x36,0x32,0x15,0x14,0x07,0x03,0x06, + 0x23,0x23,0x22,0x27,0x03,0x03,0x06,0x23, + 0x23,0x22,0x27,0x03,0x26,0x1E,0x2B,0x09, + 0x24,0x04,0x69,0x68,0x04,0x23,0x0B,0x22, + 0x05,0x69,0x68,0x04,0x52,0x03,0x86,0x04, + 0x24,0x21,0x23,0x04,0x5C,0x5E,0x04,0x24, + 0x21,0x24,0x04,0x86,0x03,0x01,0xFC,0x11, + 0x10,0xFE,0x71,0x01,0x8E,0x11,0x11,0xFE, + 0x72,0x01,0x8F,0x10,0x11,0x05,0x09,0xFE, + 0x20,0x10,0x10,0x01,0x6C,0xFE,0x94,0x10, + 0x10,0x01,0xE1,0x09,0x00,0x01,0x00,0x14, + 0xFF,0xFE,0x01,0xD1,0x02,0x0D,0x00,0x23, + 0x00,0x00,0x37,0x34,0x37,0x37,0x27,0x26, + 0x35,0x34,0x33,0x33,0x32,0x17,0x17,0x37, + 0x36,0x33,0x33,0x32,0x15,0x14,0x07,0x07, + 0x17,0x16,0x15,0x14,0x23,0x23,0x22,0x27, + 0x27,0x07,0x06,0x23,0x23,0x22,0x14,0x08, + 0xA2,0x96,0x08,0x2E,0x0B,0x21,0x0A,0x72, + 0x73,0x09,0x22,0x04,0x2E,0x08,0x97,0xA2, + 0x08,0x2E,0x0B,0x21,0x0A,0x7D,0x7F,0x0A, + 0x21,0x04,0x2E,0x0F,0x07,0x0B,0xEB,0xDE, + 0x0B,0x07,0x11,0x0F,0xA6,0xA7,0x0E,0x11, + 0x07,0x0B,0xDC,0xED,0x0B,0x07,0x11,0x0F, + 0xB7,0xB8,0x0E,0x00,0x00,0x01,0x00,0x12, + 0xFF,0x30,0x01,0xCE,0x02,0x0D,0x00,0x16, + 0x00,0x00,0x13,0x34,0x33,0x33,0x32,0x17, + 0x13,0x13,0x36,0x32,0x15,0x14,0x07,0x01, + 0x06,0x23,0x23,0x22,0x35,0x34,0x37,0x03, + 0x26,0x12,0x2B,0x08,0x21,0x07,0x88,0x85, + 0x05,0x4F,0x03,0xFE,0xFF,0x08,0x27,0x0F, + 0x21,0x59,0xAF,0x03,0x01,0xFC,0x11,0x10, + 0xFE,0x97,0x01,0x69,0x10,0x11,0x05,0x09, + 0xFD,0x57,0x15,0x10,0x03,0xD9,0x01,0xD3, + 0x09,0x00,0x00,0x00,0x00,0x01,0x00,0x25, + 0x00,0x00,0x01,0xC1,0x02,0x0B,0x00,0x17, + 0x00,0x00,0x33,0x22,0x26,0x34,0x37,0x01, + 0x21,0x22,0x35,0x35,0x34,0x33,0x21,0x32, + 0x16,0x14,0x07,0x01,0x21,0x32,0x15,0x15, + 0x14,0x23,0x3B,0x06,0x10,0x03,0x01,0x25, + 0xFF,0x00,0x14,0x14,0x01,0x5F,0x07,0x0D, + 0x02,0xFE,0xDC,0x01,0x13,0x14,0x14,0x24, + 0x15,0x05,0x01,0x85,0x1E,0x0C,0x1E,0x25, + 0x15,0x04,0xFE,0x7B,0x1E,0x0C,0x1E,0x00, + 0x00,0x01,0x00,0x14,0xFF,0x76,0x00,0xF4, + 0x03,0x00,0x00,0x2C,0x00,0x00,0x17,0x35, + 0x34,0x26,0x26,0x35,0x35,0x34,0x36,0x36, + 0x35,0x35,0x34,0x36,0x33,0x33,0x32,0x15, + 0x15,0x14,0x23,0x23,0x22,0x06,0x15,0x15, + 0x14,0x07,0x1E,0x02,0x15,0x15,0x14,0x16, + 0x33,0x33,0x32,0x15,0x15,0x14,0x23,0x23, + 0x22,0x26,0x60,0x14,0x38,0x38,0x14,0x32, + 0x1C,0x32,0x14,0x14,0x16,0x14,0x0E,0x4E, + 0x0C,0x1F,0x23,0x0E,0x14,0x16,0x14,0x14, + 0x32,0x1C,0x32,0x16,0xA7,0x37,0x3C,0x19, + 0x17,0x0E,0x17,0x19,0x3B,0x38,0xA7,0x3F, + 0x35,0x1D,0x04,0x1D,0x1D,0x20,0xB0,0x64, + 0x37,0x06,0x1C,0x49,0x2E,0xAF,0x20,0x1E, + 0x1D,0x04,0x1D,0x34,0x00,0x01,0x00,0x60, + 0xFF,0x74,0x00,0x9A,0x03,0x02,0x00,0x0B, + 0x00,0x00,0x17,0x11,0x34,0x33,0x33,0x32, + 0x15,0x11,0x14,0x23,0x23,0x22,0x60,0x18, + 0x0A,0x18,0x18,0x0A,0x18,0x76,0x03,0x62, + 0x16,0x16,0xFC,0x9E,0x16,0x00,0x00,0x00, + 0x00,0x01,0x00,0x1E,0xFF,0x76,0x00,0xFE, + 0x03,0x00,0x00,0x2C,0x00,0x00,0x17,0x33, + 0x32,0x36,0x35,0x35,0x34,0x36,0x36,0x37, + 0x26,0x35,0x35,0x34,0x26,0x23,0x23,0x22, + 0x35,0x35,0x34,0x33,0x33,0x32,0x16,0x15, + 0x15,0x14,0x16,0x16,0x15,0x15,0x14,0x06, + 0x06,0x15,0x15,0x14,0x06,0x23,0x23,0x22, + 0x35,0x35,0x34,0x32,0x16,0x14,0x0E,0x23, + 0x1F,0x0C,0x4E,0x0E,0x14,0x16,0x14,0x14, + 0x32,0x1C,0x32,0x14,0x38,0x38,0x14,0x32, + 0x1C,0x32,0x14,0x4C,0x1E,0x20,0xAF,0x2E, + 0x49,0x1C,0x06,0x37,0x64,0xB0,0x20,0x1D, + 0x1D,0x04,0x1D,0x35,0x3F,0xA7,0x38,0x3B, + 0x19,0x17,0x0E,0x17,0x19,0x3C,0x37,0xA7, + 0x40,0x34,0x1D,0x04,0x1D,0x00,0x00,0x00, + 0x00,0x01,0x00,0x4F,0x00,0xD7,0x01,0xD4, + 0x01,0x3B,0x00,0x11,0x00,0x00,0x36,0x26, + 0x35,0x34,0x36,0x32,0x16,0x32,0x36,0x32, + 0x16,0x15,0x14,0x06,0x22,0x26,0x22,0x06, + 0x5D,0x0E,0x50,0x57,0x6C,0x26,0x2A,0x10, + 0x12,0x50,0x58,0x6B,0x26,0x2A,0xE6,0x1A, + 0x07,0x11,0x23,0x1A,0x0B,0x12,0x0E,0x12, + 0x23,0x1A,0x0B,0x00,0x00,0x02,0x00,0x52, + 0xFF,0x4D,0x00,0xC1,0x02,0x0D,0x00,0x0B, + 0x00,0x17,0x00,0x00,0x13,0x22,0x35,0x35, + 0x34,0x33,0x33,0x32,0x15,0x15,0x14,0x23, + 0x07,0x33,0x32,0x15,0x11,0x14,0x23,0x23, + 0x22,0x35,0x13,0x36,0x88,0x28,0x28,0x11, + 0x28,0x28,0x0D,0x0B,0x1E,0x28,0x14,0x27, + 0x1B,0x02,0x01,0x9F,0x16,0x42,0x16,0x16, + 0x42,0x16,0x5E,0x16,0xFE,0x38,0x16,0x16, + 0x01,0xC8,0x16,0x00,0x00,0x02,0x00,0x37, + 0xFF,0xB5,0x01,0xC2,0x02,0x47,0x00,0x26, + 0x00,0x2C,0x00,0x00,0x13,0x34,0x36,0x37, + 0x36,0x37,0x35,0x34,0x32,0x15,0x15,0x16, + 0x16,0x15,0x14,0x06,0x23,0x22,0x27,0x26, + 0x27,0x11,0x36,0x37,0x36,0x33,0x32,0x16, + 0x15,0x14,0x06,0x07,0x15,0x14,0x22,0x35, + 0x35,0x26,0x26,0x37,0x14,0x16,0x17,0x11, + 0x06,0x37,0x24,0x1F,0x3C,0x57,0x28,0x32, + 0x4B,0x17,0x09,0x01,0x0C,0x28,0x28,0x30, + 0x2B,0x0E,0x02,0x0A,0x18,0x54,0x39,0x28, + 0x6C,0x6A,0x59,0x3A,0x43,0x7D,0x01,0x08, + 0x47,0x69,0x1C,0x38,0x04,0x27,0x10,0x10, + 0x27,0x02,0x1B,0x10,0x0D,0x29,0x05,0x13, + 0x03,0xFE,0x7A,0x04,0x14,0x06,0x27,0x0C, + 0x11,0x20,0x02,0x35,0x10,0x10,0x36,0x06, + 0x81,0x88,0x62,0x5E,0x07,0x01,0x85,0x0C, + 0x00,0x01,0x00,0x21,0x00,0x00,0x01,0xBE, + 0x02,0xC2,0x00,0x31,0x00,0x00,0x37,0x35, + 0x34,0x37,0x36,0x36,0x35,0x35,0x23,0x22, + 0x35,0x35,0x34,0x33,0x33,0x35,0x34,0x33, + 0x32,0x15,0x14,0x06,0x23,0x22,0x26,0x23, + 0x22,0x06,0x15,0x15,0x33,0x32,0x15,0x15, + 0x14,0x23,0x23,0x15,0x14,0x07,0x06,0x07, + 0x21,0x32,0x15,0x15,0x14,0x23,0x21,0x22, + 0x21,0x2B,0x10,0x1B,0x37,0x14,0x14,0x37, + 0xCD,0x65,0x0C,0x0A,0x01,0x2B,0x13,0x48, + 0x41,0x93,0x14,0x14,0x93,0x27,0x07,0x0B, + 0x01,0x18,0x14,0x14,0xFE,0x8B,0x14,0x1E, + 0x10,0x17,0x11,0x07,0x25,0x1D,0xB4,0x1E, + 0x0C,0x1E,0x57,0xD0,0x20,0x09,0x28,0x09, + 0x3F,0x44,0x5C,0x1E,0x0C,0x1E,0x5A,0x7C, + 0x27,0x07,0x07,0x1E,0x0C,0x1E,0x00,0x00, + 0x00,0x02,0x00,0x55,0x00,0x8F,0x01,0xB9, + 0x01,0xF5,0x00,0x27,0x00,0x2F,0x00,0x00, + 0x37,0x06,0x22,0x26,0x34,0x37,0x37,0x26, + 0x34,0x37,0x27,0x26,0x34,0x36,0x32,0x17, + 0x17,0x36,0x32,0x17,0x37,0x36,0x32,0x16, + 0x14,0x07,0x07,0x16,0x14,0x07,0x17,0x16, + 0x14,0x06,0x22,0x27,0x27,0x06,0x22,0x27, + 0x36,0x32,0x36,0x34,0x26,0x22,0x06,0x14, + 0x86,0x0A,0x15,0x12,0x0B,0x18,0x22,0x22, + 0x18,0x0A,0x10,0x16,0x0A,0x18,0x30,0x72, + 0x2F,0x18,0x0A,0x13,0x15,0x0B,0x18,0x23, + 0x23,0x18,0x0B,0x13,0x15,0x0A,0x18,0x2F, + 0x73,0x2E,0x38,0x60,0x45,0x45,0x60,0x44, + 0x99,0x0A,0x12,0x15,0x0B,0x18,0x2D,0x77, + 0x2E,0x17,0x0A,0x15,0x14,0x0C,0x18,0x23, + 0x22,0x18,0x0A,0x13,0x14,0x0B,0x18,0x2E, + 0x75,0x2E,0x18,0x0B,0x13,0x14,0x0B,0x18, + 0x21,0x21,0x1C,0x44,0x60,0x45,0x45,0x60, + 0x00,0x01,0x00,0x12,0xFF,0xFE,0x02,0x1D, + 0x02,0xBE,0x00,0x34,0x00,0x00,0x37,0x22, + 0x35,0x35,0x34,0x33,0x33,0x35,0x23,0x22, + 0x35,0x35,0x34,0x33,0x33,0x27,0x26,0x35, + 0x34,0x33,0x33,0x32,0x17,0x17,0x37,0x36, + 0x32,0x15,0x14,0x07,0x07,0x33,0x32,0x15, + 0x15,0x14,0x23,0x23,0x15,0x33,0x32,0x15, + 0x15,0x14,0x23,0x23,0x15,0x14,0x23,0x23, + 0x22,0x35,0x35,0x44,0x14,0x14,0xA7,0xA7, + 0x14,0x14,0x7B,0xA5,0x08,0x2E,0x0B,0x21, + 0x0A,0xA4,0xA8,0x09,0x52,0x08,0xA5,0x7C, + 0x14,0x14,0xA9,0xA9,0x14,0x14,0xA9,0x28, + 0x08,0x28,0xBF,0x1E,0x08,0x1E,0x60,0x1E, + 0x08,0x1E,0xF4,0x0B,0x07,0x11,0x0F,0xF6, + 0xF7,0x0E,0x11,0x04,0x0E,0xF4,0x1E,0x08, + 0x1E,0x60,0x1E,0x08,0x1E,0xAB,0x16,0x16, + 0xAB,0x00,0x00,0x00,0x00,0x02,0x00,0x60, + 0xFF,0x74,0x00,0x9A,0x03,0x02,0x00,0x0B, + 0x00,0x17,0x00,0x00,0x13,0x22,0x35,0x11, + 0x34,0x33,0x33,0x32,0x15,0x11,0x14,0x23, + 0x03,0x11,0x34,0x33,0x33,0x32,0x15,0x11, + 0x14,0x23,0x23,0x22,0x78,0x18,0x18,0x0A, + 0x18,0x18,0x22,0x18,0x0A,0x18,0x18,0x0A, + 0x18,0x01,0x93,0x16,0x01,0x43,0x16,0x16, + 0xFE,0xBD,0x16,0xFD,0xF7,0x01,0x42,0x16, + 0x16,0xFE,0xBE,0x16,0x00,0x02,0x00,0x32, + 0xFF,0xFA,0x01,0x7B,0x02,0xC2,0x00,0x2C, + 0x00,0x38,0x00,0x00,0x37,0x34,0x36,0x33, + 0x32,0x17,0x16,0x32,0x36,0x34,0x2E,0x04, + 0x35,0x34,0x37,0x26,0x34,0x36,0x32,0x16, + 0x15,0x14,0x06,0x23,0x22,0x27,0x26,0x22, + 0x06,0x14,0x1E,0x03,0x15,0x14,0x07,0x16, + 0x14,0x06,0x22,0x26,0x13,0x34,0x26,0x26, + 0x27,0x06,0x15,0x14,0x17,0x16,0x17,0x36, + 0x4A,0x17,0x09,0x01,0x0B,0x23,0x54,0x2A, + 0x22,0x33,0x3B,0x33,0x22,0x35,0x26,0x5E, + 0x75,0x50,0x17,0x09,0x01,0x0B,0x23,0x55, + 0x29,0x2F,0x43,0x43,0x2F,0x37,0x28,0x5D, + 0x75,0x50,0xDC,0x21,0x24,0x22,0x38,0x20, + 0x19,0x2E,0x38,0x24,0x0D,0x29,0x06,0x12, + 0x22,0x32,0x1F,0x0E,0x18,0x1D,0x40,0x2F, + 0x45,0x2E,0x23,0x7E,0x47,0x1A,0x10,0x0D, + 0x29,0x06,0x12,0x21,0x37,0x20,0x14,0x1B, + 0x45,0x37,0x49,0x2B,0x21,0x80,0x48,0x1A, + 0x01,0x43,0x1C,0x26,0x10,0x0A,0x10,0x3C, + 0x2C,0x13,0x10,0x0E,0x0D,0x00,0x00,0x00, + 0x00,0x02,0x00,0x2F,0x02,0x5F,0x01,0x13, + 0x02,0xBE,0x00,0x0B,0x00,0x17,0x00,0x00, + 0x13,0x22,0x35,0x35,0x34,0x33,0x33,0x32, + 0x15,0x15,0x14,0x23,0x23,0x22,0x35,0x35, + 0x34,0x33,0x33,0x32,0x15,0x15,0x14,0x23, + 0xE7,0x28,0x28,0x04,0x28,0x28,0x94,0x28, + 0x28,0x04,0x28,0x28,0x02,0x5F,0x16,0x33, + 0x16,0x16,0x33,0x16,0x16,0x33,0x16,0x16, + 0x33,0x16,0x00,0x00,0x00,0x03,0x00,0x0A, + 0xFF,0xFB,0x02,0xD9,0x02,0xC6,0x00,0x07, + 0x00,0x0F,0x00,0x2D,0x00,0x00,0x36,0x10, + 0x36,0x20,0x16,0x10,0x06,0x20,0x12,0x06, + 0x10,0x16,0x20,0x36,0x10,0x26,0x01,0x34, + 0x33,0x32,0x16,0x15,0x14,0x06,0x23,0x22, + 0x27,0x26,0x23,0x22,0x06,0x14,0x16,0x33, + 0x32,0x37,0x36,0x33,0x32,0x16,0x15,0x14, + 0x06,0x23,0x22,0x26,0x0A,0xD1,0x01,0x2C, + 0xD2,0xD3,0xFE,0xD6,0x14,0xB6,0xB7,0x01, + 0x01,0xB7,0xB7,0xFE,0xCF,0xC2,0x2B,0x47, + 0x0F,0x06,0x01,0x0B,0x21,0x2F,0x48,0x45, + 0x44,0x46,0x31,0x27,0x0D,0x02,0x06,0x0F, + 0x4B,0x31,0x62,0x5E,0xCD,0x01,0x2A,0xCF, + 0xCF,0xFE,0xD6,0xD2,0x02,0x9B,0xB3,0xFE, + 0xFF,0xB7,0xB7,0x01,0x01,0xB3,0xFE,0xC7, + 0xD5,0x18,0x0D,0x08,0x1B,0x07,0x14,0x51, + 0xAD,0x51,0x16,0x08,0x1A,0x06,0x0D,0x1E, + 0x68,0x00,0x00,0x00,0x00,0x02,0x00,0x2D, + 0x01,0xB9,0x01,0x01,0x02,0xC2,0x00,0x1D, + 0x00,0x25,0x00,0x00,0x13,0x14,0x17,0x14, + 0x23,0x22,0x27,0x06,0x22,0x26,0x34,0x36, + 0x36,0x37,0x36,0x33,0x35,0x34,0x23,0x22, + 0x06,0x23,0x22,0x26,0x35,0x34,0x36,0x32, + 0x16,0x15,0x07,0x14,0x32,0x37,0x35,0x22, + 0x07,0x06,0xFB,0x06,0x1B,0x0C,0x05,0x22, + 0x57,0x2F,0x15,0x1D,0x19,0x27,0x33,0x37, + 0x24,0x28,0x01,0x05,0x0D,0x3A,0x51,0x34, + 0xA1,0x53,0x25,0x5A,0x14,0x0A,0x02,0x05, + 0x20,0x1E,0x0B,0x23,0x26,0x26,0x3C,0x23, + 0x12,0x05,0x08,0x18,0x29,0x14,0x13,0x05, + 0x0A,0x16,0x29,0x25,0x6E,0x28,0x21,0x3B, + 0x16,0x0C,0x00,0x00,0x00,0x02,0x00,0x2C, + 0x00,0x3D,0x01,0xA0,0x01,0xC6,0x00,0x10, + 0x00,0x21,0x00,0x00,0x36,0x34,0x37,0x37, + 0x36,0x32,0x16,0x14,0x07,0x07,0x17,0x16, + 0x14,0x06,0x22,0x27,0x27,0x26,0x34,0x37, + 0x37,0x36,0x32,0x16,0x14,0x07,0x07,0x17, + 0x16,0x14,0x06,0x22,0x27,0x27,0xD8,0x0D, + 0x82,0x0B,0x15,0x19,0x08,0x6F,0x6F,0x08, + 0x18,0x16,0x0B,0x82,0xB9,0x0D,0x82,0x0B, + 0x15,0x19,0x08,0x6F,0x6F,0x08,0x18,0x16, + 0x0B,0x82,0xF6,0x18,0x10,0x9C,0x0C,0x14, + 0x15,0x0B,0x90,0x91,0x0B,0x12,0x17,0x0D, + 0x9C,0x10,0x18,0x10,0x9C,0x0C,0x14,0x15, + 0x0B,0x90,0x91,0x0B,0x12,0x17,0x0D,0x9C, + 0x00,0x01,0x00,0x26,0x00,0x4D,0x02,0x0A, + 0x01,0x52,0x00,0x0F,0x00,0x00,0x13,0x22, + 0x35,0x35,0x34,0x33,0x21,0x32,0x15,0x15, + 0x14,0x23,0x23,0x22,0x35,0x35,0x3A,0x14, + 0x14,0x01,0xB2,0x1E,0x1E,0x0D,0x1E,0x01, + 0x09,0x1E,0x0D,0x1E,0x1E,0xD1,0x16,0x16, + 0xA6,0x00,0x00,0x00,0x00,0x01,0x00,0x2C, + 0x00,0xE6,0x01,0x11,0x01,0x2C,0x00,0x0B, + 0x00,0x00,0x37,0x22,0x35,0x35,0x34,0x33, + 0x33,0x32,0x15,0x15,0x14,0x23,0x40,0x14, + 0x14,0xBD,0x14,0x14,0xE6,0x1E,0x0A,0x1E, + 0x1E,0x0A,0x1E,0x00,0x00,0x04,0x00,0x0A, + 0xFF,0xFB,0x02,0xD9,0x02,0xC6,0x00,0x07, + 0x00,0x0F,0x00,0x2E,0x00,0x36,0x00,0x00, + 0x36,0x10,0x36,0x20,0x16,0x10,0x06,0x20, + 0x12,0x06,0x10,0x16,0x20,0x36,0x10,0x26, + 0x03,0x11,0x34,0x33,0x33,0x32,0x15,0x14, + 0x07,0x15,0x16,0x16,0x17,0x17,0x16,0x15, + 0x14,0x23,0x23,0x22,0x27,0x27,0x26,0x26, + 0x23,0x23,0x15,0x14,0x23,0x23,0x22,0x37, + 0x33,0x32,0x36,0x35,0x34,0x23,0x23,0x0A, + 0xD1,0x01,0x2C,0xD2,0xD3,0xFE,0xD6,0x14, + 0xB6,0xB7,0x01,0x01,0xB7,0xB7,0xF9,0x12, + 0x63,0x8E,0x44,0x11,0x16,0x0E,0x2E,0x02, + 0x19,0x06,0x13,0x04,0x2D,0x0D,0x27,0x24, + 0x35,0x18,0x04,0x18,0x34,0x4E,0x1F,0x2C, + 0x4F,0x4A,0xCD,0x01,0x2A,0xCF,0xCF,0xFE, + 0xD6,0xD2,0x02,0x9B,0xB3,0xFE,0xFF,0xB7, + 0xB7,0x01,0x01,0xB3,0xFE,0x08,0x01,0x7F, + 0x12,0x68,0x49,0x1B,0x02,0x06,0x22,0x22, + 0x74,0x08,0x01,0x09,0x09,0x74,0x22,0x18, + 0xAA,0x0D,0xE4,0x2B,0x1D,0x45,0x00,0x00, + 0x00,0x01,0x00,0x1B,0x02,0x64,0x01,0x22, + 0x02,0xAA,0x00,0x0B,0x00,0x00,0x13,0x22, + 0x35,0x35,0x34,0x33,0x33,0x32,0x15,0x15, + 0x14,0x23,0x2F,0x14,0x14,0xDF,0x14,0x14, + 0x02,0x64,0x1E,0x0A,0x1E,0x1E,0x0A,0x1E, + 0x00,0x02,0x00,0x26,0x01,0xB9,0x01,0x2F, + 0x02,0xC2,0x00,0x07,0x00,0x0F,0x00,0x00, + 0x12,0x22,0x26,0x34,0x36,0x32,0x16,0x14, + 0x26,0x16,0x32,0x36,0x34,0x26,0x22,0x06, + 0xE1,0x6E,0x4D,0x4D,0x6E,0x4E,0xD8,0x31, + 0x45,0x31,0x32,0x44,0x31,0x01,0xB9,0x4D, + 0x6E,0x4E,0x4E,0x6E,0x13,0x33,0x33,0x48, + 0x34,0x34,0x00,0x00,0x00,0x02,0x00,0x26, + 0x00,0x00,0x02,0x0A,0x02,0x51,0x00,0x1B, + 0x00,0x27,0x00,0x00,0x37,0x35,0x23,0x22, + 0x35,0x35,0x34,0x33,0x33,0x35,0x34,0x33, + 0x33,0x32,0x15,0x15,0x33,0x32,0x15,0x15, + 0x14,0x23,0x23,0x15,0x14,0x23,0x23,0x22, + 0x07,0x35,0x34,0x33,0x21,0x32,0x15,0x15, + 0x14,0x23,0x21,0x22,0xF7,0xA9,0x1E,0x1E, + 0xA9,0x1E,0x07,0x1E,0xA8,0x1E,0x1E,0xA8, + 0x1E,0x07,0x1E,0xD1,0x1E,0x01,0xA8,0x1E, + 0x1E,0xFE,0x58,0x1E,0x9F,0xA8,0x1E,0x07, + 0x1E,0xA9,0x1E,0x1E,0xA9,0x1E,0x07,0x1E, + 0xA8,0x1E,0x63,0x0D,0x1E,0x1E,0x0D,0x1E, + 0x00,0x01,0x00,0x23,0x01,0x2A,0x01,0x16, + 0x02,0xC1,0x00,0x1D,0x00,0x00,0x13,0x22, + 0x35,0x34,0x37,0x36,0x36,0x34,0x26,0x22, + 0x06,0x06,0x22,0x26,0x35,0x34,0x36,0x33, + 0x32,0x16,0x14,0x06,0x07,0x07,0x33,0x32, + 0x15,0x15,0x14,0x23,0x2F,0x0C,0x02,0x9C, + 0x20,0x26,0x39,0x26,0x16,0x07,0x0F,0x49, + 0x1F,0x39,0x42,0x2A,0x5A,0x2A,0xA6,0x0B, + 0x0B,0x01,0x2A,0x19,0x06,0x04,0xC3,0x33, + 0x34,0x20,0x0F,0x0E,0x16,0x07,0x11,0x19, + 0x34,0x55,0x44,0x6E,0x33,0x11,0x07,0x11, + 0x00,0x01,0x00,0x2B,0x01,0x25,0x01,0x21, + 0x02,0xC2,0x00,0x2A,0x00,0x00,0x13,0x34, + 0x36,0x33,0x32,0x16,0x32,0x36,0x34,0x26, + 0x23,0x23,0x22,0x35,0x35,0x34,0x33,0x33, + 0x32,0x36,0x34,0x26,0x22,0x06,0x06,0x22, + 0x26,0x35,0x34,0x36,0x33,0x32,0x16,0x14, + 0x07,0x15,0x16,0x16,0x15,0x14,0x06,0x22, + 0x26,0x2B,0x0F,0x05,0x01,0x3C,0x3F,0x33, + 0x2D,0x2A,0x12,0x0C,0x0C,0x10,0x28,0x25, + 0x1F,0x3D,0x25,0x14,0x08,0x0E,0x48,0x1F, + 0x36,0x40,0x3C,0x1D,0x2C,0x4F,0x62,0x45, + 0x01,0x46,0x08,0x15,0x14,0x25,0x55,0x22, + 0x12,0x06,0x12,0x30,0x30,0x23,0x0A,0x09, + 0x17,0x07,0x0C,0x13,0x35,0x68,0x19,0x04, + 0x08,0x37,0x2B,0x3D,0x3C,0x16,0x00,0x00, + 0x00,0x01,0x00,0x4A,0x02,0x5D,0x00,0xF2, + 0x02,0xF0,0x00,0x09,0x00,0x00,0x12,0x0E, + 0x02,0x22,0x34,0x37,0x36,0x32,0x15,0xF2, + 0x13,0x3C,0x1F,0x3A,0x3A,0x0F,0x5F,0x02, + 0xDC,0x18,0x44,0x23,0x14,0x65,0x1A,0x0D, + 0x00,0x01,0x00,0x55,0xFF,0x30,0x01,0xED, + 0x02,0x0D,0x00,0x2A,0x00,0x00,0x17,0x14, + 0x23,0x23,0x22,0x35,0x11,0x34,0x33,0x33, + 0x32,0x15,0x11,0x14,0x16,0x33,0x32,0x37, + 0x11,0x34,0x33,0x33,0x32,0x15,0x11,0x14, + 0x17,0x16,0x15,0x14,0x06,0x22,0x2E,0x05, + 0x27,0x06,0x23,0x22,0x27,0xA9,0x28,0x04, + 0x28,0x28,0x04,0x28,0x35,0x31,0x48,0x36, + 0x28,0x04,0x28,0x05,0x07,0x26,0x15,0x08, + 0x07,0x04,0x04,0x03,0x03,0x01,0x43,0x59, + 0x2A,0x25,0xBA,0x16,0x16,0x02,0xB1,0x16, + 0x16,0xFE,0xAD,0x2E,0x33,0x46,0x01,0x6E, + 0x16,0x16,0xFE,0x9D,0x3C,0x1B,0x25,0x02, + 0x0C,0x0B,0x04,0x0A,0x09,0x10,0x09,0x13, + 0x03,0x4B,0x0F,0x00,0x00,0x01,0x00,0x29, + 0xFF,0x53,0x01,0xF5,0x02,0xBC,0x00,0x1A, + 0x00,0x00,0x17,0x11,0x26,0x26,0x34,0x36, + 0x33,0x33,0x32,0x15,0x15,0x14,0x23,0x23, + 0x11,0x14,0x23,0x23,0x22,0x35,0x11,0x23, + 0x11,0x14,0x23,0x23,0x22,0xF3,0x55,0x75, + 0x85,0x5E,0xD5,0x14,0x14,0x24,0x18,0x0E, + 0x18,0x4E,0x18,0x0E,0x18,0x97,0x01,0x8E, + 0x0A,0x81,0xB5,0x85,0x18,0x0E,0x18,0xFC, + 0xEB,0x16,0x16,0x03,0x15,0xFC,0xEB,0x16, + 0x00,0x01,0x00,0x5A,0x01,0x35,0x00,0xC1, + 0x01,0x9C,0x00,0x07,0x00,0x00,0x12,0x22, + 0x26,0x34,0x36,0x32,0x16,0x14,0xA3,0x2C, + 0x1D,0x1D,0x2C,0x1E,0x01,0x35,0x1D,0x2C, + 0x1E,0x1E,0x2C,0x00,0x00,0x01,0x00,0x2D, + 0xFF,0x2E,0x01,0x13,0x00,0x00,0x00,0x19, + 0x00,0x00,0x17,0x32,0x16,0x16,0x15,0x14, + 0x23,0x22,0x26,0x35,0x34,0x33,0x32,0x16, + 0x33,0x32,0x35,0x34,0x26,0x26,0x35,0x34, + 0x37,0x37,0x33,0x07,0xBE,0x10,0x21,0x24, + 0x73,0x27,0x4C,0x13,0x05,0x38,0x16,0x39, + 0x21,0x21,0x02,0x11,0x2B,0x0E,0x31,0x07, + 0x23,0x1E,0x59,0x18,0x13,0x1A,0x14,0x23, + 0x13,0x12,0x0A,0x0B,0x02,0x0A,0x38,0x31, + 0x00,0x01,0x00,0x29,0x01,0x29,0x00,0xAF, + 0x02,0xBE,0x00,0x0E,0x00,0x00,0x13,0x22, + 0x35,0x11,0x07,0x22,0x35,0x34,0x37,0x37, + 0x32,0x15,0x11,0x14,0x23,0x94,0x15,0x4A, + 0x0C,0x0A,0x6A,0x12,0x16,0x01,0x29,0x0E, + 0x01,0x52,0x10,0x1E,0x08,0x03,0x1C,0x0C, + 0xFE,0x85,0x0E,0x00,0x00,0x02,0x00,0x37, + 0x01,0xB9,0x01,0x1A,0x02,0xC2,0x00,0x07, + 0x00,0x0B,0x00,0x00,0x00,0x06,0x22,0x26, + 0x34,0x36,0x32,0x16,0x06,0x32,0x34,0x22, + 0x01,0x1A,0x39,0x6F,0x3B,0x3C,0x6D,0x3A, + 0xB8,0x8D,0x8D,0x01,0xFC,0x43,0x43,0x81, + 0x45,0x45,0xA0,0xC1,0x00,0x02,0x00,0x36, + 0x00,0x3D,0x01,0xAA,0x01,0xC6,0x00,0x10, + 0x00,0x21,0x00,0x00,0x36,0x26,0x34,0x37, + 0x37,0x27,0x26,0x34,0x36,0x32,0x17,0x17, + 0x16,0x14,0x07,0x07,0x06,0x22,0x22,0x26, + 0x34,0x37,0x37,0x27,0x26,0x34,0x36,0x32, + 0x17,0x17,0x16,0x14,0x07,0x07,0xFA,0x18, + 0x08,0x6F,0x6F,0x08,0x19,0x15,0x0B,0x82, + 0x0D,0x0D,0x82,0x0B,0xAC,0x16,0x18,0x08, + 0x6F,0x6F,0x08,0x19,0x15,0x0B,0x82,0x0D, + 0x0D,0x82,0x3D,0x17,0x12,0x0B,0x91,0x90, + 0x0B,0x15,0x14,0x0C,0x9C,0x10,0x18,0x10, + 0x9C,0x0D,0x17,0x12,0x0B,0x91,0x90,0x0B, + 0x15,0x14,0x0C,0x9C,0x10,0x18,0x10,0x9C, + 0x00,0x04,0x00,0x29,0xFF,0xFE,0x02,0x74, + 0x02,0xBF,0x00,0x0E,0x00,0x1D,0x00,0x37, + 0x00,0x3C,0x00,0x00,0x17,0x22,0x34,0x37, + 0x01,0x36,0x33,0x33,0x32,0x15,0x14,0x07, + 0x01,0x06,0x23,0x13,0x22,0x35,0x11,0x07, + 0x22,0x35,0x34,0x37,0x37,0x32,0x15,0x11, + 0x14,0x23,0x16,0x26,0x34,0x37,0x13,0x36, + 0x33,0x33,0x32,0x15,0x11,0x33,0x32,0x15, + 0x15,0x14,0x23,0x23,0x15,0x14,0x23,0x23, + 0x22,0x35,0x35,0x23,0x37,0x35,0x37,0x27, + 0x07,0x68,0x0E,0x04,0x01,0x96,0x0A,0x14, + 0x0D,0x0E,0x04,0xFE,0x6A,0x0A,0x14,0x1F, + 0x15,0x4A,0x0C,0x0A,0x6A,0x12,0x16,0xC6, + 0x0A,0x01,0xBE,0x06,0x0E,0x09,0x11,0x27, + 0x0B,0x0B,0x27,0x11,0x0D,0x12,0xAF,0xAF, + 0x02,0x03,0x83,0x02,0x0C,0x05,0x02,0x9F, + 0x11,0x07,0x02,0x08,0xFD,0x61,0x11,0x01, + 0x2B,0x0E,0x01,0x52,0x10,0x1E,0x08,0x03, + 0x1C,0x0C,0xFE,0x85,0x0E,0xD2,0x15,0x0E, + 0x02,0x01,0x10,0x08,0x0D,0xFE,0xFA,0x11, + 0x07,0x12,0x4C,0x0D,0x0D,0x4C,0x2A,0x83, + 0x3E,0x02,0xC3,0x00,0x00,0x03,0x00,0x29, + 0xFF,0xFE,0x02,0xB1,0x02,0xBF,0x00,0x0E, + 0x00,0x1D,0x00,0x3B,0x00,0x00,0x17,0x22, + 0x34,0x37,0x01,0x36,0x33,0x33,0x32,0x15, + 0x14,0x07,0x01,0x06,0x23,0x13,0x22,0x35, + 0x11,0x07,0x22,0x35,0x34,0x37,0x37,0x32, + 0x15,0x11,0x14,0x23,0x01,0x34,0x37,0x36, + 0x36,0x34,0x26,0x22,0x06,0x06,0x22,0x26, + 0x35,0x34,0x36,0x33,0x32,0x16,0x14,0x06, + 0x07,0x07,0x33,0x32,0x15,0x15,0x14,0x23, + 0x23,0x22,0x68,0x0E,0x04,0x01,0x96,0x0A, + 0x14,0x0D,0x0E,0x04,0xFE,0x6A,0x0A,0x14, + 0x1F,0x15,0x4A,0x0C,0x0A,0x6A,0x12,0x16, + 0x01,0x25,0x02,0x9C,0x20,0x26,0x39,0x26, + 0x16,0x07,0x0F,0x49,0x1F,0x39,0x42,0x2A, + 0x5A,0x2A,0xA6,0x0B,0x0B,0xDC,0x0C,0x02, + 0x0C,0x05,0x02,0x9F,0x11,0x07,0x02,0x08, + 0xFD,0x61,0x11,0x01,0x2B,0x0E,0x01,0x52, + 0x10,0x1E,0x08,0x03,0x1C,0x0C,0xFE,0x85, + 0x0E,0xFE,0xF0,0x06,0x04,0xC3,0x32,0x35, + 0x20,0x0F,0x0E,0x16,0x07,0x11,0x19,0x34, + 0x55,0x44,0x6E,0x33,0x11,0x07,0x11,0x00, + 0x00,0x04,0x00,0x27,0xFF,0xFE,0x02,0xB9, + 0x02,0xC2,0x00,0x2A,0x00,0x39,0x00,0x53, + 0x00,0x58,0x00,0x00,0x13,0x34,0x36,0x33, + 0x32,0x16,0x32,0x36,0x34,0x26,0x23,0x23, + 0x22,0x35,0x35,0x34,0x33,0x33,0x32,0x36, + 0x34,0x26,0x22,0x06,0x06,0x22,0x26,0x35, + 0x34,0x36,0x33,0x32,0x16,0x14,0x07,0x15, + 0x16,0x16,0x15,0x14,0x06,0x22,0x26,0x13, + 0x22,0x34,0x37,0x01,0x36,0x33,0x33,0x32, + 0x15,0x14,0x07,0x01,0x06,0x23,0x36,0x26, + 0x34,0x37,0x13,0x36,0x33,0x33,0x32,0x15, + 0x11,0x33,0x32,0x15,0x15,0x14,0x23,0x23, + 0x15,0x14,0x23,0x23,0x22,0x35,0x35,0x23, + 0x37,0x35,0x37,0x27,0x07,0x27,0x0F,0x05, + 0x01,0x3C,0x3F,0x33,0x2D,0x2A,0x12,0x0C, + 0x0C,0x10,0x28,0x25,0x1F,0x3D,0x25,0x14, + 0x08,0x0E,0x48,0x1F,0x36,0x40,0x3C,0x1D, + 0x2C,0x4F,0x62,0x45,0x82,0x0E,0x04,0x01, + 0x96,0x0A,0x14,0x0D,0x0E,0x04,0xFE,0x6A, + 0x0A,0x14,0xEE,0x0A,0x01,0xBE,0x06,0x0E, + 0x09,0x11,0x27,0x0B,0x0B,0x27,0x11,0x0D, + 0x12,0xAF,0xAF,0x02,0x03,0x83,0x01,0x46, + 0x08,0x15,0x14,0x25,0x55,0x22,0x12,0x06, + 0x12,0x30,0x30,0x23,0x0A,0x09,0x17,0x07, + 0x0C,0x13,0x35,0x68,0x19,0x04,0x08,0x37, + 0x2B,0x3D,0x3C,0x16,0xFE,0xC3,0x0C,0x05, + 0x02,0x9F,0x11,0x07,0x02,0x08,0xFD,0x61, + 0x11,0x59,0x15,0x0E,0x02,0x01,0x10,0x08, + 0x0D,0xFE,0xFA,0x11,0x07,0x12,0x4C,0x0D, + 0x0D,0x4C,0x2A,0x83,0x3E,0x02,0xC3,0x00, + 0x00,0x02,0x00,0x13,0xFF,0x49,0x01,0x8C, + 0x02,0x0D,0x00,0x0B,0x00,0x29,0x00,0x00, + 0x13,0x22,0x35,0x35,0x34,0x33,0x33,0x32, + 0x15,0x15,0x14,0x23,0x03,0x36,0x37,0x36, + 0x37,0x36,0x33,0x33,0x32,0x15,0x14,0x07, + 0x0E,0x02,0x15,0x14,0x33,0x32,0x36,0x33, + 0x32,0x16,0x15,0x14,0x06,0x23,0x22,0x26, + 0x34,0xFD,0x28,0x28,0x11,0x28,0x28,0xBA, + 0x1C,0x1C,0x46,0x07,0x03,0x1E,0x0F,0x1E, + 0x56,0x22,0x1E,0x1F,0x7E,0x26,0x54,0x02, + 0x07,0x19,0x70,0x3C,0x60,0x6D,0x01,0x9F, + 0x16,0x42,0x16,0x16,0x42,0x16,0xFE,0xDB, + 0x1C,0x1C,0x43,0x38,0x14,0x17,0x49,0x56, + 0x22,0x21,0x36,0x17,0x68,0x22,0x28,0x0B, + 0x18,0x21,0x61,0x8C,0x00,0x03,0x00,0x0C, + 0xFF,0xFE,0x02,0x59,0x03,0xA4,0x00,0x17, + 0x00,0x1C,0x00,0x26,0x00,0x00,0x37,0x34, + 0x37,0x13,0x36,0x33,0x33,0x32,0x17,0x13, + 0x16,0x15,0x14,0x23,0x23,0x22,0x27,0x27, + 0x21,0x07,0x06,0x23,0x23,0x22,0x13,0x33, + 0x03,0x27,0x07,0x36,0x14,0x22,0x27,0x26, + 0x26,0x35,0x34,0x32,0x17,0x0C,0x03,0xED, + 0x05,0x23,0x1D,0x23,0x05,0xED,0x03,0x2B, + 0x08,0x23,0x05,0x3B,0xFE,0xDA,0x39,0x05, + 0x23,0x05,0x2B,0xAD,0xEF,0x69,0x0D,0x10, + 0x54,0x3A,0x10,0x58,0x06,0x5F,0x0F,0x0F, + 0x05,0x09,0x02,0x91,0x10,0x10,0xFD,0x6E, + 0x07,0x06,0x11,0x10,0xA4,0xA4,0x10,0x01, + 0x00,0x01,0x2A,0x3A,0x3A,0xFD,0x14,0x12, + 0x65,0x0B,0x04,0x0D,0x1A,0x00,0x00,0x00, + 0x00,0x03,0x00,0x0C,0xFF,0xFE,0x02,0x59, + 0x03,0xA4,0x00,0x17,0x00,0x1C,0x00,0x26, + 0x00,0x00,0x37,0x34,0x37,0x13,0x36,0x33, + 0x33,0x32,0x17,0x13,0x16,0x15,0x14,0x23, + 0x23,0x22,0x27,0x27,0x21,0x07,0x06,0x23, + 0x23,0x22,0x13,0x33,0x03,0x27,0x07,0x12, + 0x0E,0x02,0x22,0x34,0x37,0x36,0x32,0x15, + 0x0C,0x03,0xED,0x05,0x23,0x1D,0x23,0x05, + 0xED,0x03,0x2B,0x08,0x23,0x05,0x3B,0xFE, + 0xDA,0x39,0x05,0x23,0x05,0x2B,0xAD,0xEF, + 0x69,0x0D,0x10,0x81,0x13,0x3C,0x20,0x39, + 0x3A,0x0F,0x5F,0x0F,0x05,0x09,0x02,0x91, + 0x10,0x10,0xFD,0x6E,0x07,0x06,0x11,0x10, + 0xA4,0xA4,0x10,0x01,0x00,0x01,0x2A,0x3A, + 0x3A,0x01,0x68,0x18,0x44,0x23,0x14,0x65, + 0x1A,0x0D,0x00,0x00,0x00,0x03,0x00,0x0C, + 0xFF,0xFE,0x02,0x59,0x03,0x8A,0x00,0x17, + 0x00,0x1C,0x00,0x2F,0x00,0x00,0x37,0x34, + 0x37,0x13,0x36,0x33,0x33,0x32,0x17,0x13, + 0x16,0x15,0x14,0x23,0x23,0x22,0x27,0x27, + 0x21,0x07,0x06,0x23,0x23,0x22,0x13,0x33, + 0x03,0x27,0x07,0x27,0x06,0x22,0x35,0x34, + 0x37,0x37,0x36,0x33,0x33,0x32,0x17,0x17, + 0x16,0x15,0x14,0x22,0x27,0x27,0x0C,0x03, + 0xED,0x05,0x23,0x1D,0x23,0x05,0xED,0x03, + 0x2B,0x08,0x23,0x05,0x3B,0xFE,0xDA,0x39, + 0x05,0x23,0x05,0x2B,0xAD,0xEF,0x69,0x0D, + 0x10,0x2D,0x0E,0x2D,0x06,0x38,0x0F,0x1F, + 0x19,0x1F,0x0F,0x39,0x06,0x2D,0x0E,0x3F, + 0x0F,0x05,0x09,0x02,0x91,0x10,0x10,0xFD, + 0x6E,0x07,0x06,0x11,0x10,0xA4,0xA4,0x10, + 0x01,0x00,0x01,0x2A,0x3A,0x3A,0xE1,0x0D, + 0x0E,0x08,0x0A,0x58,0x16,0x16,0x58,0x09, + 0x08,0x0F,0x0D,0x4A,0x00,0x03,0x00,0x0C, + 0xFF,0xFE,0x02,0x59,0x03,0x78,0x00,0x17, + 0x00,0x1C,0x00,0x2E,0x00,0x00,0x37,0x34, + 0x37,0x13,0x36,0x33,0x33,0x32,0x17,0x13, + 0x16,0x15,0x14,0x23,0x23,0x22,0x27,0x27, + 0x21,0x07,0x06,0x23,0x23,0x22,0x13,0x33, + 0x03,0x27,0x07,0x36,0x26,0x22,0x06,0x22, + 0x26,0x35,0x34,0x36,0x32,0x16,0x32,0x36, + 0x32,0x16,0x15,0x14,0x06,0x0C,0x03,0xED, + 0x05,0x23,0x1D,0x23,0x05,0xED,0x03,0x2B, + 0x08,0x23,0x05,0x3B,0xFE,0xDA,0x39,0x05, + 0x23,0x05,0x2B,0xAD,0xEF,0x69,0x0D,0x10, + 0x28,0x52,0x1A,0x22,0x16,0x12,0x44,0x44, + 0x51,0x20,0x1F,0x13,0x13,0x44,0x0F,0x05, + 0x09,0x02,0x91,0x10,0x10,0xFD,0x6E,0x07, + 0x06,0x11,0x10,0xA4,0xA4,0x10,0x01,0x00, + 0x01,0x2A,0x3A,0x3A,0xF3,0x14,0x0D,0x15, + 0x09,0x13,0x25,0x14,0x0D,0x16,0x08,0x13, + 0x25,0x00,0x00,0x00,0x00,0x04,0x00,0x0C, + 0xFF,0xFE,0x02,0x59,0x03,0x72,0x00,0x17, + 0x00,0x1C,0x00,0x28,0x00,0x34,0x00,0x00, + 0x37,0x34,0x37,0x13,0x36,0x33,0x33,0x32, + 0x17,0x13,0x16,0x15,0x14,0x23,0x23,0x22, + 0x27,0x27,0x21,0x07,0x06,0x23,0x23,0x22, + 0x13,0x33,0x03,0x27,0x07,0x37,0x22,0x35, + 0x35,0x34,0x33,0x33,0x32,0x15,0x15,0x14, + 0x23,0x23,0x22,0x35,0x35,0x34,0x33,0x33, + 0x32,0x15,0x15,0x14,0x23,0x0C,0x03,0xED, + 0x05,0x23,0x1D,0x23,0x05,0xED,0x03,0x2B, + 0x08,0x23,0x05,0x3B,0xFE,0xDA,0x39,0x05, + 0x23,0x05,0x2B,0xAD,0xEF,0x69,0x0D,0x10, + 0x57,0x28,0x28,0x04,0x28,0x28,0x94,0x28, + 0x28,0x04,0x28,0x28,0x0F,0x05,0x09,0x02, + 0x91,0x10,0x10,0xFD,0x6E,0x07,0x06,0x11, + 0x10,0xA4,0xA4,0x10,0x01,0x00,0x01,0x2A, + 0x3A,0x3A,0xEB,0x16,0x33,0x16,0x16,0x33, + 0x16,0x16,0x33,0x16,0x16,0x33,0x16,0x00, + 0x00,0x04,0x00,0x0C,0xFF,0xFE,0x02,0x59, + 0x03,0x91,0x00,0x17,0x00,0x1C,0x00,0x24, + 0x00,0x2C,0x00,0x00,0x37,0x34,0x37,0x13, + 0x36,0x33,0x33,0x32,0x17,0x13,0x16,0x15, + 0x14,0x23,0x23,0x22,0x27,0x27,0x21,0x07, + 0x06,0x23,0x23,0x22,0x13,0x33,0x03,0x27, + 0x07,0x36,0x22,0x26,0x34,0x36,0x32,0x16, + 0x14,0x06,0x32,0x36,0x34,0x26,0x22,0x06, + 0x14,0x0C,0x03,0xED,0x05,0x23,0x1D,0x23, + 0x05,0xED,0x03,0x2B,0x08,0x23,0x05,0x3B, + 0xFE,0xDA,0x39,0x05,0x23,0x05,0x2B,0xAD, + 0xEF,0x69,0x0D,0x10,0x34,0x46,0x31,0x31, + 0x46,0x32,0x6A,0x2A,0x1D,0x1D,0x2A,0x1C, + 0x0F,0x05,0x09,0x02,0x91,0x10,0x10,0xFD, + 0x6E,0x07,0x06,0x11,0x10,0xA4,0xA4,0x10, + 0x01,0x00,0x01,0x2A,0x3A,0x3A,0xC0,0x31, + 0x46,0x32,0x32,0x46,0x0E,0x1C,0x2A,0x1D, + 0x1D,0x2A,0x00,0x00,0x00,0x02,0xFF,0xF5, + 0xFF,0xFE,0x03,0x37,0x02,0xBC,0x00,0x25, + 0x00,0x2A,0x00,0x00,0x27,0x34,0x37,0x01, + 0x36,0x33,0x21,0x32,0x15,0x15,0x14,0x23, + 0x21,0x17,0x21,0x32,0x15,0x15,0x14,0x23, + 0x21,0x17,0x33,0x32,0x15,0x15,0x14,0x23, + 0x21,0x22,0x27,0x27,0x21,0x07,0x06,0x23, + 0x23,0x22,0x37,0x33,0x03,0x27,0x07,0x0B, + 0x04,0x01,0x41,0x0D,0x1E,0x01,0xBD,0x14, + 0x14,0xFE,0x96,0x32,0x01,0x1A,0x14,0x14, + 0xFE,0xF6,0x35,0xF4,0x14,0x14,0xFE,0xE1, + 0x1E,0x06,0x20,0xFE,0xD9,0x50,0x09,0x1F, + 0x05,0x27,0xCB,0xEF,0x40,0x04,0x17,0x0F, + 0x08,0x08,0x02,0x82,0x1B,0x1E,0x10,0x1E, + 0xE4,0x1E,0x10,0x1E,0xF4,0x1E,0x10,0x1E, + 0x1D,0x95,0xA4,0x10,0xFF,0x01,0x2B,0x3A, + 0x3A,0x00,0x00,0x00,0x00,0x01,0x00,0x39, + 0xFF,0x2E,0x02,0x4A,0x02,0xC2,0x00,0x37, + 0x00,0x00,0x13,0x10,0x21,0x32,0x16,0x15, + 0x14,0x06,0x23,0x22,0x26,0x26,0x23,0x22, + 0x06,0x10,0x16,0x33,0x32,0x36,0x36,0x33, + 0x32,0x16,0x15,0x14,0x06,0x23,0x23,0x07, + 0x33,0x32,0x16,0x16,0x15,0x14,0x23,0x22, + 0x26,0x35,0x34,0x33,0x32,0x16,0x33,0x32, + 0x35,0x34,0x26,0x26,0x35,0x34,0x37,0x37, + 0x26,0x26,0x39,0x01,0x44,0x48,0x77,0x19, + 0x09,0x02,0x27,0x48,0x2A,0x79,0x72,0x71, + 0x76,0x2D,0x50,0x2C,0x03,0x09,0x1A,0x7D, + 0x52,0x0A,0x0C,0x04,0x10,0x21,0x24,0x73, + 0x27,0x4C,0x13,0x05,0x38,0x16,0x39,0x21, + 0x21,0x02,0x10,0x8A,0x84,0x01,0x5E,0x01, + 0x64,0x29,0x15,0x0E,0x2C,0x16,0x16,0x86, + 0xFE,0xDD,0x87,0x19,0x19,0x2C,0x0A,0x17, + 0x31,0x2B,0x07,0x23,0x1E,0x59,0x18,0x13, + 0x1A,0x14,0x23,0x13,0x12,0x0A,0x0B,0x02, + 0x0A,0x35,0x0C,0xAD,0x00,0x02,0x00,0x61, + 0x00,0x00,0x01,0xF1,0x03,0xA4,0x00,0x1B, + 0x00,0x25,0x00,0x00,0x37,0x11,0x34,0x33, + 0x21,0x32,0x15,0x15,0x14,0x23,0x21,0x15, + 0x21,0x32,0x15,0x15,0x14,0x23,0x21,0x15, + 0x21,0x32,0x15,0x15,0x14,0x23,0x21,0x22, + 0x00,0x14,0x22,0x27,0x26,0x26,0x35,0x34, + 0x32,0x17,0x61,0x1E,0x01,0x5D,0x14,0x14, + 0xFE,0xDD,0x01,0x05,0x14,0x14,0xFE,0xFB, + 0x01,0x24,0x14,0x14,0xFE,0xA2,0x1E,0x01, + 0x0C,0x39,0x11,0x58,0x06,0x5F,0x0F,0x1E, + 0x02,0x80,0x1E,0x1E,0x10,0x1E,0xE4,0x1E, + 0x10,0x1E,0xF4,0x1E,0x10,0x1E,0x03,0x25, + 0x14,0x12,0x65,0x0B,0x04,0x0D,0x1A,0x00, + 0x00,0x02,0x00,0x61,0x00,0x00,0x01,0xF1, + 0x03,0xA4,0x00,0x1B,0x00,0x25,0x00,0x00, + 0x37,0x11,0x34,0x33,0x21,0x32,0x15,0x15, + 0x14,0x23,0x21,0x15,0x21,0x32,0x15,0x15, + 0x14,0x23,0x21,0x15,0x21,0x32,0x15,0x15, + 0x14,0x23,0x21,0x22,0x00,0x0E,0x02,0x22, + 0x34,0x37,0x36,0x32,0x15,0x61,0x1E,0x01, + 0x5D,0x14,0x14,0xFE,0xDD,0x01,0x05,0x14, + 0x14,0xFE,0xFB,0x01,0x24,0x14,0x14,0xFE, + 0xA2,0x1E,0x01,0x39,0x13,0x3C,0x1F,0x3A, + 0x3A,0x0F,0x5F,0x1E,0x02,0x80,0x1E,0x1E, + 0x10,0x1E,0xE4,0x1E,0x10,0x1E,0xF4,0x1E, + 0x10,0x1E,0x03,0x90,0x18,0x44,0x23,0x14, + 0x65,0x1A,0x0D,0x00,0x00,0x02,0x00,0x61, + 0x00,0x00,0x01,0xF1,0x03,0x8A,0x00,0x1B, + 0x00,0x2E,0x00,0x00,0x37,0x11,0x34,0x33, + 0x21,0x32,0x15,0x15,0x14,0x23,0x21,0x15, + 0x21,0x32,0x15,0x15,0x14,0x23,0x21,0x15, + 0x21,0x32,0x15,0x15,0x14,0x23,0x21,0x22, + 0x13,0x06,0x22,0x35,0x34,0x37,0x37,0x36, + 0x33,0x33,0x32,0x17,0x17,0x16,0x15,0x14, + 0x22,0x27,0x27,0x61,0x1E,0x01,0x5D,0x14, + 0x14,0xFE,0xDD,0x01,0x05,0x14,0x14,0xFE, + 0xFB,0x01,0x24,0x14,0x14,0xFE,0xA2,0x1E, + 0x8B,0x0E,0x2D,0x06,0x38,0x0F,0x1F,0x19, + 0x1F,0x0F,0x39,0x06,0x2D,0x0E,0x3F,0x1E, + 0x02,0x80,0x1E,0x1E,0x10,0x1E,0xE4,0x1E, + 0x10,0x1E,0xF4,0x1E,0x10,0x1E,0x03,0x09, + 0x0D,0x0E,0x08,0x0A,0x58,0x16,0x16,0x58, + 0x09,0x08,0x0F,0x0D,0x4A,0x00,0x00,0x00, + 0x00,0x03,0x00,0x61,0x00,0x00,0x01,0xF1, + 0x03,0x72,0x00,0x1B,0x00,0x27,0x00,0x33, + 0x00,0x00,0x37,0x11,0x34,0x33,0x21,0x32, + 0x15,0x15,0x14,0x23,0x21,0x15,0x21,0x32, + 0x15,0x15,0x14,0x23,0x21,0x15,0x21,0x32, + 0x15,0x15,0x14,0x23,0x21,0x22,0x01,0x22, + 0x35,0x35,0x34,0x33,0x33,0x32,0x15,0x15, + 0x14,0x23,0x23,0x22,0x35,0x35,0x34,0x33, + 0x33,0x32,0x15,0x15,0x14,0x23,0x61,0x1E, + 0x01,0x5D,0x14,0x14,0xFE,0xDD,0x01,0x05, + 0x14,0x14,0xFE,0xFB,0x01,0x24,0x14,0x14, + 0xFE,0xA2,0x1E,0x01,0x0F,0x28,0x28,0x04, + 0x28,0x28,0x94,0x28,0x28,0x04,0x28,0x28, + 0x1E,0x02,0x80,0x1E,0x1E,0x10,0x1E,0xE4, + 0x1E,0x10,0x1E,0xF4,0x1E,0x10,0x1E,0x03, + 0x13,0x16,0x33,0x16,0x16,0x33,0x16,0x16, + 0x33,0x16,0x16,0x33,0x16,0x00,0x00,0x00, + 0x00,0x02,0x00,0x28,0xFF,0xFE,0x00,0xD0, + 0x03,0xA4,0x00,0x0B,0x00,0x15,0x00,0x00, + 0x37,0x11,0x34,0x33,0x33,0x32,0x15,0x11, + 0x14,0x23,0x23,0x22,0x12,0x14,0x22,0x27, + 0x26,0x26,0x35,0x34,0x32,0x17,0x61,0x28, + 0x08,0x28,0x28,0x08,0x28,0x6F,0x3A,0x10, + 0x58,0x06,0x5F,0x0F,0x14,0x02,0x94,0x16, + 0x16,0xFD,0x6C,0x16,0x03,0x27,0x14,0x12, + 0x65,0x0B,0x04,0x0D,0x1A,0x00,0x00,0x00, + 0x00,0x02,0x00,0x55,0xFF,0xFE,0x00,0xFD, + 0x03,0xA4,0x00,0x0B,0x00,0x15,0x00,0x00, + 0x37,0x11,0x34,0x33,0x33,0x32,0x15,0x11, + 0x14,0x23,0x23,0x22,0x12,0x0E,0x02,0x22, + 0x34,0x37,0x36,0x32,0x15,0x61,0x28,0x08, + 0x28,0x28,0x08,0x28,0x9C,0x13,0x3C,0x1F, + 0x3A,0x3A,0x0F,0x5F,0x14,0x02,0x94,0x16, + 0x16,0xFD,0x6C,0x16,0x03,0x92,0x18,0x44, + 0x23,0x14,0x65,0x1A,0x0D,0x00,0x00,0x00, + 0x00,0x02,0x00,0x14,0xFF,0xFE,0x01,0x06, + 0x03,0x8A,0x00,0x0B,0x00,0x1E,0x00,0x00, + 0x37,0x11,0x34,0x33,0x33,0x32,0x15,0x11, + 0x14,0x23,0x23,0x22,0x03,0x06,0x22,0x35, + 0x34,0x37,0x37,0x36,0x33,0x33,0x32,0x17, + 0x17,0x16,0x15,0x14,0x22,0x27,0x27,0x61, + 0x28,0x08,0x28,0x28,0x08,0x28,0x12,0x0E, + 0x2D,0x06,0x38,0x0F,0x1F,0x19,0x1F,0x0F, + 0x39,0x06,0x2D,0x0E,0x3F,0x14,0x02,0x94, + 0x16,0x16,0xFD,0x6C,0x16,0x03,0x0B,0x0D, + 0x0E,0x08,0x0A,0x58,0x16,0x16,0x58,0x09, + 0x08,0x0F,0x0D,0x4A,0x00,0x03,0x00,0x1B, + 0xFF,0xFE,0x00,0xFF,0x03,0x72,0x00,0x0B, + 0x00,0x17,0x00,0x23,0x00,0x00,0x37,0x11, + 0x34,0x33,0x33,0x32,0x15,0x11,0x14,0x23, + 0x23,0x22,0x13,0x22,0x35,0x35,0x34,0x33, + 0x33,0x32,0x15,0x15,0x14,0x23,0x23,0x22, + 0x35,0x35,0x34,0x33,0x33,0x32,0x15,0x15, + 0x14,0x23,0x61,0x28,0x08,0x28,0x28,0x08, + 0x28,0x72,0x28,0x28,0x04,0x28,0x28,0x94, + 0x28,0x28,0x04,0x28,0x28,0x14,0x02,0x94, + 0x16,0x16,0xFD,0x6C,0x16,0x03,0x15,0x16, + 0x33,0x16,0x16,0x33,0x16,0x16,0x33,0x16, + 0x16,0x33,0x16,0x00,0x00,0x02,0x00,0x00, + 0x00,0x00,0x02,0x81,0x02,0xBC,0x00,0x16, + 0x00,0x26,0x00,0x00,0x37,0x11,0x23,0x22, + 0x35,0x35,0x34,0x33,0x33,0x11,0x34,0x33, + 0x33,0x32,0x17,0x16,0x15,0x10,0x07,0x06, + 0x23,0x23,0x22,0x37,0x33,0x32,0x36,0x10, + 0x26,0x23,0x23,0x15,0x33,0x32,0x15,0x15, + 0x14,0x23,0x23,0x55,0x41,0x14,0x14,0x41, + 0x1E,0xD7,0x86,0x56,0x5B,0xBD,0x37,0x43, + 0xD7,0x1E,0x58,0x96,0x66,0x7D,0x7D,0x66, + 0x96,0x6E,0x14,0x14,0x6E,0x1E,0x01,0x22, + 0x1E,0x10,0x1E,0x01,0x12,0x1E,0x4E,0x53, + 0xBD,0xFE,0xF5,0x41,0x12,0x4C,0x84,0x01, + 0x1B,0x85,0xE4,0x1E,0x10,0x1E,0x00,0x00, + 0x00,0x02,0x00,0x5A,0xFF,0xFE,0x02,0x75, + 0x03,0x78,0x00,0x1B,0x00,0x2D,0x00,0x00, + 0x37,0x11,0x34,0x33,0x33,0x32,0x17,0x01, + 0x17,0x11,0x34,0x33,0x33,0x32,0x15,0x11, + 0x14,0x23,0x23,0x22,0x27,0x01,0x27,0x11, + 0x14,0x23,0x23,0x22,0x00,0x26,0x22,0x06, + 0x22,0x26,0x35,0x34,0x36,0x32,0x16,0x32, + 0x36,0x32,0x16,0x15,0x14,0x06,0x5A,0x28, + 0x15,0x1C,0x0E,0x01,0x3F,0x1E,0x28,0x07, + 0x28,0x28,0x14,0x1A,0x09,0xFE,0xB6,0x1B, + 0x28,0x07,0x28,0x01,0x24,0x52,0x1A,0x22, + 0x16,0x12,0x44,0x44,0x51,0x20,0x1F,0x13, + 0x13,0x44,0x14,0x02,0x94,0x16,0x13,0xFE, + 0x1E,0x38,0x02,0x17,0x16,0x16,0xFD,0x6C, + 0x16,0x0E,0x01,0xF2,0x33,0xFD,0xE3,0x16, + 0x03,0x1D,0x14,0x0D,0x15,0x09,0x13,0x25, + 0x14,0x0D,0x16,0x08,0x13,0x25,0x00,0x00, + 0x00,0x03,0x00,0x39,0xFF,0xFA,0x02,0xA2, + 0x03,0xA4,0x00,0x07,0x00,0x0F,0x00,0x19, + 0x00,0x00,0x36,0x10,0x36,0x20,0x16,0x10, + 0x06,0x20,0x36,0x32,0x36,0x10,0x26,0x22, + 0x06,0x10,0x00,0x14,0x22,0x27,0x26,0x26, + 0x35,0x34,0x32,0x17,0x39,0x9D,0x01,0x2E, + 0x9E,0x9E,0xFE,0xD3,0x2C,0xD4,0x70,0x70, + 0xD4,0x6F,0x01,0x1C,0x3A,0x10,0x58,0x06, + 0x5F,0x0F,0xB1,0x01,0x5E,0xB3,0xB3,0xFE, + 0xA2,0xB7,0x4C,0x90,0x01,0x13,0x8D,0x8D, + 0xFE,0xED,0x02,0x4F,0x14,0x12,0x65,0x0B, + 0x04,0x0D,0x1A,0x00,0x00,0x03,0x00,0x39, + 0xFF,0xFA,0x02,0xA2,0x03,0xA4,0x00,0x07, + 0x00,0x0F,0x00,0x19,0x00,0x00,0x36,0x10, + 0x36,0x20,0x16,0x10,0x06,0x20,0x36,0x32, + 0x36,0x10,0x26,0x22,0x06,0x10,0x00,0x0E, + 0x02,0x22,0x34,0x37,0x36,0x32,0x15,0x39, + 0x9D,0x01,0x2E,0x9E,0x9E,0xFE,0xD3,0x2C, + 0xD4,0x70,0x70,0xD4,0x6F,0x01,0x49,0x13, + 0x3C,0x20,0x39,0x3A,0x0F,0x5F,0xB1,0x01, + 0x5E,0xB3,0xB3,0xFE,0xA2,0xB7,0x4C,0x90, + 0x01,0x13,0x8D,0x8D,0xFE,0xED,0x02,0xBA, + 0x18,0x44,0x23,0x14,0x65,0x1A,0x0D,0x00, + 0x00,0x03,0x00,0x39,0xFF,0xFA,0x02,0xA2, + 0x03,0x8A,0x00,0x07,0x00,0x0F,0x00,0x22, + 0x00,0x00,0x36,0x10,0x36,0x20,0x16,0x10, + 0x06,0x20,0x36,0x32,0x36,0x10,0x26,0x22, + 0x06,0x10,0x13,0x06,0x22,0x35,0x34,0x37, + 0x37,0x36,0x33,0x33,0x32,0x17,0x17,0x16, + 0x15,0x14,0x22,0x27,0x27,0x39,0x9D,0x01, + 0x2E,0x9E,0x9E,0xFE,0xD3,0x2C,0xD4,0x70, + 0x70,0xD4,0x6F,0x9B,0x0E,0x2D,0x06,0x38, + 0x0F,0x1F,0x19,0x1F,0x0F,0x39,0x06,0x2D, + 0x0E,0x3F,0xB1,0x01,0x5E,0xB3,0xB3,0xFE, + 0xA2,0xB7,0x4C,0x90,0x01,0x13,0x8D,0x8D, + 0xFE,0xED,0x02,0x33,0x0D,0x0E,0x08,0x0A, + 0x58,0x16,0x16,0x58,0x09,0x08,0x0F,0x0D, + 0x4A,0x00,0x00,0x00,0x00,0x03,0x00,0x39, + 0xFF,0xFA,0x02,0xA2,0x03,0x78,0x00,0x07, + 0x00,0x0F,0x00,0x21,0x00,0x00,0x36,0x10, + 0x36,0x20,0x16,0x10,0x06,0x20,0x36,0x32, + 0x36,0x10,0x26,0x22,0x06,0x10,0x12,0x26, + 0x22,0x06,0x22,0x26,0x35,0x34,0x36,0x32, + 0x16,0x32,0x36,0x32,0x16,0x15,0x14,0x06, + 0x39,0x9D,0x01,0x2E,0x9E,0x9E,0xFE,0xD3, + 0x2C,0xD4,0x70,0x70,0xD4,0x6F,0xF0,0x52, + 0x1A,0x22,0x16,0x12,0x44,0x44,0x51,0x20, + 0x1F,0x13,0x13,0x44,0xB1,0x01,0x5E,0xB3, + 0xB3,0xFE,0xA2,0xB7,0x4C,0x90,0x01,0x13, + 0x8D,0x8D,0xFE,0xED,0x02,0x45,0x14,0x0D, + 0x15,0x09,0x13,0x25,0x14,0x0D,0x16,0x08, + 0x13,0x25,0x00,0x00,0x00,0x04,0x00,0x39, + 0xFF,0xFA,0x02,0xA2,0x03,0x72,0x00,0x07, + 0x00,0x0F,0x00,0x1B,0x00,0x27,0x00,0x00, + 0x36,0x10,0x36,0x20,0x16,0x10,0x06,0x20, + 0x36,0x32,0x36,0x10,0x26,0x22,0x06,0x10, + 0x01,0x22,0x35,0x35,0x34,0x33,0x33,0x32, + 0x15,0x15,0x14,0x23,0x23,0x22,0x35,0x35, + 0x34,0x33,0x33,0x32,0x15,0x15,0x14,0x23, + 0x39,0x9D,0x01,0x2E,0x9E,0x9E,0xFE,0xD3, + 0x2C,0xD4,0x70,0x70,0xD4,0x6F,0x01,0x1F, + 0x28,0x28,0x04,0x28,0x28,0x94,0x28,0x28, + 0x04,0x28,0x28,0xB1,0x01,0x5E,0xB3,0xB3, + 0xFE,0xA2,0xB7,0x4C,0x90,0x01,0x13,0x8D, + 0x8D,0xFE,0xED,0x02,0x3D,0x16,0x33,0x16, + 0x16,0x33,0x16,0x16,0x33,0x16,0x16,0x33, + 0x16,0x00,0x00,0x00,0x00,0x01,0x00,0x36, + 0x00,0x00,0x01,0xF9,0x01,0xC6,0x00,0x23, + 0x00,0x00,0x36,0x34,0x37,0x37,0x27,0x26, + 0x34,0x37,0x37,0x36,0x32,0x17,0x17,0x37, + 0x36,0x32,0x17,0x17,0x16,0x14,0x07,0x07, + 0x17,0x16,0x14,0x07,0x07,0x06,0x22,0x27, + 0x27,0x07,0x06,0x22,0x27,0x27,0x36,0x08, + 0xAB,0xAB,0x08,0x08,0x13,0x07,0x0E,0x07, + 0xAB,0xAB,0x07,0x0E,0x07,0x13,0x07,0x07, + 0xAB,0xAB,0x07,0x07,0x13,0x08,0x0C,0x08, + 0xAB,0xAB,0x08,0x0C,0x08,0x13,0x24,0x0C, + 0x08,0xAC,0xAB,0x08,0x0C,0x08,0x14,0x07, + 0x07,0xAC,0xAC,0x07,0x07,0x14,0x07,0x0E, + 0x07,0xAB,0xAC,0x07,0x0E,0x07,0x14,0x08, + 0x08,0xAD,0xAD,0x08,0x08,0x14,0x00,0x00, + 0x00,0x03,0x00,0x22,0xFF,0xFA,0x02,0xA2, + 0x02,0xC2,0x00,0x18,0x00,0x1F,0x00,0x25, + 0x00,0x00,0x36,0x26,0x34,0x37,0x37,0x26, + 0x35,0x34,0x36,0x20,0x17,0x37,0x36,0x32, + 0x16,0x14,0x07,0x07,0x16,0x10,0x06,0x20, + 0x27,0x07,0x06,0x01,0x26,0x22,0x06,0x15, + 0x14,0x17,0x17,0x16,0x32,0x36,0x34,0x27, + 0x31,0x0F,0x06,0x49,0x38,0x9D,0x01,0x1D, + 0x4F,0x37,0x07,0x0E,0x0F,0x06,0x3A,0x45, + 0x9E,0xFE,0xD3,0x4E,0x43,0x08,0x01,0xC9, + 0x36,0xCE,0x6F,0x1D,0x14,0x36,0xDC,0x70, + 0x28,0x01,0x0E,0x0D,0x08,0x50,0x59,0x93, + 0xAF,0xB3,0x49,0x3D,0x08,0x0E,0x0D,0x07, + 0x40,0x5A,0xFE,0xAF,0xB7,0x5A,0x4A,0x09, + 0x02,0x37,0x3E,0x8D,0x89,0x62,0x43,0x24, + 0x51,0x90,0xFD,0x45,0x00,0x02,0x00,0x53, + 0xFF,0xFA,0x02,0x75,0x03,0xA4,0x00,0x17, + 0x00,0x21,0x00,0x00,0x37,0x11,0x34,0x33, + 0x33,0x32,0x15,0x11,0x14,0x16,0x32,0x36, + 0x35,0x11,0x34,0x33,0x33,0x32,0x15,0x11, + 0x14,0x06,0x20,0x26,0x00,0x14,0x22,0x27, + 0x26,0x26,0x35,0x34,0x32,0x17,0x53,0x28, + 0x08,0x28,0x69,0xA0,0x69,0x28,0x08,0x28, + 0x8E,0xFE,0xF9,0x8D,0x01,0x54,0x39,0x11, + 0x58,0x06,0x5F,0x0F,0xE0,0x01,0xC8,0x16, + 0x16,0xFE,0x35,0x42,0x55,0x55,0x42,0x01, + 0xCB,0x16,0x16,0xFE,0x38,0x6D,0x79,0x79, + 0x02,0xB2,0x14,0x12,0x65,0x0B,0x04,0x0D, + 0x1A,0x00,0x00,0x00,0x00,0x02,0x00,0x53, + 0xFF,0xFA,0x02,0x75,0x03,0xA4,0x00,0x17, + 0x00,0x21,0x00,0x00,0x37,0x11,0x34,0x33, + 0x33,0x32,0x15,0x11,0x14,0x16,0x32,0x36, + 0x35,0x11,0x34,0x33,0x33,0x32,0x15,0x11, + 0x14,0x06,0x20,0x26,0x00,0x0E,0x02,0x22, + 0x34,0x37,0x36,0x32,0x15,0x53,0x28,0x08, + 0x28,0x69,0xA0,0x69,0x28,0x08,0x28,0x8E, + 0xFE,0xF9,0x8D,0x01,0x81,0x13,0x3C,0x1F, + 0x3A,0x3A,0x0F,0x5F,0xE0,0x01,0xC8,0x16, + 0x16,0xFE,0x35,0x42,0x55,0x55,0x42,0x01, + 0xCB,0x16,0x16,0xFE,0x38,0x6D,0x79,0x79, + 0x03,0x1D,0x18,0x44,0x23,0x14,0x65,0x1A, + 0x0D,0x00,0x00,0x00,0x00,0x02,0x00,0x53, + 0xFF,0xFA,0x02,0x75,0x03,0x8A,0x00,0x17, + 0x00,0x2A,0x00,0x00,0x37,0x11,0x34,0x33, + 0x33,0x32,0x15,0x11,0x14,0x16,0x32,0x36, + 0x35,0x11,0x34,0x33,0x33,0x32,0x15,0x11, + 0x14,0x06,0x20,0x26,0x13,0x06,0x22,0x35, + 0x34,0x37,0x37,0x36,0x33,0x33,0x32,0x17, + 0x17,0x16,0x15,0x14,0x22,0x27,0x27,0x53, + 0x28,0x08,0x28,0x69,0xA0,0x69,0x28,0x08, + 0x28,0x8E,0xFE,0xF9,0x8D,0xD3,0x0E,0x2D, + 0x06,0x38,0x0F,0x1F,0x19,0x1F,0x0F,0x39, + 0x06,0x2D,0x0E,0x3F,0xE0,0x01,0xC8,0x16, + 0x16,0xFE,0x35,0x42,0x55,0x55,0x42,0x01, + 0xCB,0x16,0x16,0xFE,0x38,0x6D,0x79,0x79, + 0x02,0x96,0x0D,0x0E,0x08,0x0A,0x58,0x16, + 0x16,0x58,0x09,0x08,0x0F,0x0D,0x4A,0x00, + 0x00,0x03,0x00,0x53,0xFF,0xFA,0x02,0x75, + 0x03,0x72,0x00,0x17,0x00,0x23,0x00,0x2F, + 0x00,0x00,0x37,0x11,0x34,0x33,0x33,0x32, + 0x15,0x11,0x14,0x16,0x32,0x36,0x35,0x11, + 0x34,0x33,0x33,0x32,0x15,0x11,0x14,0x06, + 0x20,0x26,0x01,0x22,0x35,0x35,0x34,0x33, + 0x33,0x32,0x15,0x15,0x14,0x23,0x23,0x22, + 0x35,0x35,0x34,0x33,0x33,0x32,0x15,0x15, + 0x14,0x23,0x53,0x28,0x08,0x28,0x69,0xA0, + 0x69,0x28,0x08,0x28,0x8E,0xFE,0xF9,0x8D, + 0x01,0x57,0x28,0x28,0x04,0x28,0x28,0x94, + 0x28,0x28,0x04,0x28,0x28,0xE0,0x01,0xC8, + 0x16,0x16,0xFE,0x35,0x42,0x55,0x55,0x42, + 0x01,0xCB,0x16,0x16,0xFE,0x38,0x6D,0x79, + 0x79,0x02,0xA0,0x16,0x33,0x16,0x16,0x33, + 0x16,0x16,0x33,0x16,0x16,0x33,0x16,0x00, + 0x00,0x02,0x00,0x12,0xFF,0xFE,0x02,0x1D, + 0x03,0xA4,0x00,0x16,0x00,0x20,0x00,0x00, + 0x37,0x11,0x03,0x26,0x35,0x34,0x33,0x33, + 0x32,0x17,0x17,0x37,0x36,0x32,0x15,0x14, + 0x07,0x03,0x11,0x14,0x23,0x23,0x22,0x12, + 0x0E,0x02,0x22,0x34,0x37,0x36,0x32,0x15, + 0xEB,0xD1,0x08,0x2E,0x0B,0x21,0x0A,0xA4, + 0xA8,0x09,0x52,0x08,0xD2,0x28,0x08,0x28, + 0x9C,0x13,0x3C,0x20,0x39,0x3A,0x0F,0x5F, + 0x14,0x01,0x53,0x01,0x34,0x0B,0x07,0x11, + 0x0F,0xF6,0xF7,0x0E,0x11,0x04,0x0E,0xFE, + 0xC9,0xFE,0xB0,0x16,0x03,0x92,0x18,0x44, + 0x23,0x14,0x65,0x1A,0x0D,0x00,0x00,0x00, + 0x00,0x02,0x00,0x55,0xFF,0xFE,0x02,0x1D, + 0x02,0xBE,0x00,0x18,0x00,0x23,0x00,0x00, + 0x37,0x11,0x34,0x33,0x33,0x32,0x15,0x15, + 0x33,0x32,0x17,0x16,0x16,0x14,0x06,0x06, + 0x07,0x06,0x23,0x23,0x15,0x14,0x23,0x23, + 0x22,0x37,0x33,0x32,0x37,0x36,0x36,0x35, + 0x34,0x26,0x23,0x23,0x55,0x28,0x08,0x28, + 0x91,0x4D,0x41,0x25,0x2C,0x23,0x31,0x20, + 0x31,0x30,0x9B,0x28,0x08,0x28,0x58,0x9C, + 0x26,0x25,0x14,0x1A,0x50,0x37,0x8E,0x14, + 0x02,0x94,0x16,0x16,0x66,0x22,0x13,0x53, + 0x70,0x4F,0x2A,0x0D,0x14,0x9C,0x16,0xFE, + 0x18,0x0D,0x37,0x26,0x43,0x35,0x00,0x00, + 0x00,0x01,0x00,0x5A,0xFF,0xFE,0x02,0x02, + 0x02,0xC2,0x00,0x2F,0x00,0x00,0x37,0x11, + 0x34,0x36,0x32,0x16,0x15,0x14,0x06,0x07, + 0x16,0x16,0x15,0x14,0x06,0x23,0x23,0x22, + 0x35,0x35,0x34,0x33,0x33,0x32,0x36,0x34, + 0x26,0x23,0x23,0x22,0x35,0x35,0x34,0x33, + 0x33,0x32,0x36,0x35,0x34,0x23,0x22,0x06, + 0x15,0x11,0x14,0x23,0x23,0x22,0x5A,0x6C, + 0xB3,0x6C,0x39,0x2D,0x3E,0x45,0x7A,0x5D, + 0x20,0x14,0x14,0x21,0x36,0x48,0x48,0x36, + 0x21,0x14,0x14,0x0A,0x2F,0x48,0x6F,0x33, + 0x3C,0x28,0x04,0x28,0x14,0x01,0xF5,0x52, + 0x67,0x51,0x59,0x2D,0x57,0x13,0x0E,0x62, + 0x43,0x61,0x6D,0x1E,0x0C,0x1E,0x48,0x7B, + 0x49,0x1E,0x0C,0x1E,0x44,0x30,0x6A,0x3D, + 0x34,0xFE,0x0B,0x16,0x00,0x03,0x00,0x31, + 0xFF,0xFA,0x01,0xDD,0x02,0xF0,0x00,0x25, + 0x00,0x31,0x00,0x3B,0x00,0x00,0x01,0x35, + 0x34,0x23,0x22,0x07,0x06,0x23,0x22,0x26, + 0x35,0x34,0x36,0x32,0x16,0x15,0x15,0x14, + 0x17,0x16,0x15,0x14,0x06,0x22,0x2E,0x05, + 0x27,0x06,0x23,0x22,0x26,0x34,0x36,0x36, + 0x07,0x14,0x33,0x32,0x36,0x37,0x35,0x22, + 0x07,0x06,0x07,0x06,0x12,0x14,0x22,0x27, + 0x26,0x26,0x35,0x34,0x32,0x17,0x01,0x7D, + 0x6E,0x48,0x3D,0x15,0x02,0x0A,0x19,0x75, + 0xA4,0x68,0x05,0x07,0x26,0x15,0x08,0x07, + 0x04,0x04,0x03,0x03,0x01,0x44,0x64,0x4D, + 0x5E,0x6D,0x88,0x9B,0x55,0x31,0x47,0x25, + 0x7D,0x24,0x13,0x15,0x29,0xC4,0x39,0x11, + 0x58,0x06,0x5F,0x0F,0x01,0x46,0x2F,0x54, + 0x1F,0x0B,0x28,0x0A,0x15,0x2B,0x53,0x4A, + 0xE0,0x3C,0x1B,0x25,0x02,0x0C,0x0B,0x04, + 0x0A,0x09,0x10,0x09,0x13,0x03,0x4B,0x4C, + 0x9E,0x4F,0x11,0xAF,0x52,0x24,0x21,0x76, + 0x0E,0x07,0x0B,0x15,0x01,0xA8,0x14,0x12, + 0x65,0x0B,0x04,0x0D,0x1A,0x00,0x00,0x00, + 0x00,0x03,0x00,0x31,0xFF,0xFA,0x01,0xDD, + 0x02,0xF0,0x00,0x25,0x00,0x31,0x00,0x3B, + 0x00,0x00,0x01,0x35,0x34,0x23,0x22,0x07, + 0x06,0x23,0x22,0x26,0x35,0x34,0x36,0x32, + 0x16,0x15,0x15,0x14,0x17,0x16,0x15,0x14, + 0x06,0x22,0x2E,0x05,0x27,0x06,0x23,0x22, + 0x26,0x34,0x36,0x36,0x07,0x14,0x33,0x32, + 0x36,0x37,0x35,0x22,0x07,0x06,0x07,0x06, + 0x12,0x0E,0x02,0x22,0x34,0x37,0x36,0x32, + 0x15,0x01,0x7D,0x6E,0x48,0x3D,0x15,0x02, + 0x0A,0x19,0x75,0xA4,0x68,0x05,0x07,0x26, + 0x15,0x08,0x07,0x04,0x04,0x03,0x03,0x01, + 0x44,0x64,0x4D,0x5E,0x6D,0x88,0x9B,0x55, + 0x31,0x47,0x25,0x7D,0x24,0x13,0x15,0x29, + 0xF1,0x13,0x3C,0x1F,0x3A,0x3A,0x0F,0x5F, + 0x01,0x46,0x2F,0x54,0x1F,0x0B,0x28,0x0A, + 0x15,0x2B,0x53,0x4A,0xE0,0x3C,0x1B,0x25, + 0x02,0x0C,0x0B,0x04,0x0A,0x09,0x10,0x09, + 0x13,0x03,0x4B,0x4C,0x9E,0x4F,0x11,0xAF, + 0x52,0x24,0x21,0x76,0x0E,0x07,0x0B,0x15, + 0x02,0x13,0x18,0x44,0x23,0x14,0x65,0x1A, + 0x0D,0x00,0x00,0x00,0x00,0x03,0x00,0x31, + 0xFF,0xFA,0x01,0xDD,0x02,0xD6,0x00,0x25, + 0x00,0x31,0x00,0x44,0x00,0x00,0x01,0x35, + 0x34,0x23,0x22,0x07,0x06,0x23,0x22,0x26, + 0x35,0x34,0x36,0x32,0x16,0x15,0x15,0x14, + 0x17,0x16,0x15,0x14,0x06,0x22,0x2E,0x05, + 0x27,0x06,0x23,0x22,0x26,0x34,0x36,0x36, + 0x07,0x14,0x33,0x32,0x36,0x37,0x35,0x22, + 0x07,0x06,0x07,0x06,0x13,0x06,0x22,0x35, + 0x34,0x37,0x37,0x36,0x33,0x33,0x32,0x17, + 0x17,0x16,0x15,0x14,0x22,0x27,0x27,0x01, + 0x7D,0x6E,0x48,0x3D,0x15,0x02,0x0A,0x19, + 0x75,0xA4,0x68,0x05,0x07,0x26,0x15,0x08, + 0x07,0x04,0x04,0x03,0x03,0x01,0x44,0x64, + 0x4D,0x5E,0x6D,0x88,0x9B,0x55,0x31,0x47, + 0x25,0x7D,0x24,0x13,0x15,0x29,0x43,0x0E, + 0x2D,0x06,0x38,0x0F,0x1F,0x19,0x1F,0x0F, + 0x39,0x06,0x2D,0x0E,0x3F,0x01,0x46,0x2F, + 0x54,0x1F,0x0B,0x28,0x0A,0x15,0x2B,0x53, + 0x4A,0xE0,0x3C,0x1B,0x25,0x02,0x0C,0x0B, + 0x04,0x0A,0x09,0x10,0x09,0x13,0x03,0x4B, + 0x4C,0x9E,0x4F,0x11,0xAF,0x52,0x24,0x21, + 0x76,0x0E,0x07,0x0B,0x15,0x01,0x8C,0x0D, + 0x0E,0x08,0x0A,0x58,0x16,0x16,0x58,0x09, + 0x08,0x0F,0x0D,0x4A,0x00,0x03,0x00,0x31, + 0xFF,0xFA,0x01,0xDD,0x02,0xC4,0x00,0x25, + 0x00,0x31,0x00,0x43,0x00,0x00,0x01,0x35, + 0x34,0x23,0x22,0x07,0x06,0x23,0x22,0x26, + 0x35,0x34,0x36,0x32,0x16,0x15,0x15,0x14, + 0x17,0x16,0x15,0x14,0x06,0x22,0x2E,0x05, + 0x27,0x06,0x23,0x22,0x26,0x34,0x36,0x36, + 0x07,0x14,0x33,0x32,0x36,0x37,0x35,0x22, + 0x07,0x06,0x07,0x06,0x12,0x26,0x22,0x06, + 0x22,0x26,0x35,0x34,0x36,0x32,0x16,0x32, + 0x36,0x32,0x16,0x15,0x14,0x06,0x01,0x7D, + 0x6E,0x48,0x3D,0x15,0x02,0x0A,0x19,0x75, + 0xA4,0x68,0x05,0x07,0x26,0x15,0x08,0x07, + 0x04,0x04,0x03,0x03,0x01,0x44,0x64,0x4D, + 0x5E,0x6D,0x88,0x9B,0x55,0x31,0x47,0x25, + 0x7D,0x24,0x13,0x15,0x29,0x98,0x52,0x1A, + 0x22,0x16,0x12,0x44,0x44,0x51,0x20,0x1F, + 0x13,0x13,0x44,0x01,0x46,0x2F,0x54,0x1F, + 0x0B,0x28,0x0A,0x15,0x2B,0x53,0x4A,0xE0, + 0x3C,0x1B,0x25,0x02,0x0C,0x0B,0x04,0x0A, + 0x09,0x10,0x09,0x13,0x03,0x4B,0x4C,0x9E, + 0x4F,0x11,0xAF,0x52,0x24,0x21,0x76,0x0E, + 0x07,0x0B,0x15,0x01,0x9E,0x14,0x0D,0x15, + 0x09,0x13,0x25,0x14,0x0D,0x16,0x08,0x13, + 0x25,0x00,0x00,0x00,0x00,0x04,0x00,0x31, + 0xFF,0xFA,0x01,0xDD,0x02,0xBE,0x00,0x25, + 0x00,0x31,0x00,0x3D,0x00,0x49,0x00,0x00, + 0x01,0x35,0x34,0x23,0x22,0x07,0x06,0x23, + 0x22,0x26,0x35,0x34,0x36,0x32,0x16,0x15, + 0x15,0x14,0x17,0x16,0x15,0x14,0x06,0x22, + 0x2E,0x05,0x27,0x06,0x23,0x22,0x26,0x34, + 0x36,0x36,0x07,0x14,0x33,0x32,0x36,0x37, + 0x35,0x22,0x07,0x06,0x07,0x06,0x13,0x22, + 0x35,0x35,0x34,0x33,0x33,0x32,0x15,0x15, + 0x14,0x23,0x23,0x22,0x35,0x35,0x34,0x33, + 0x33,0x32,0x15,0x15,0x14,0x23,0x01,0x7D, + 0x6E,0x48,0x3D,0x15,0x02,0x0A,0x19,0x75, + 0xA4,0x68,0x05,0x07,0x26,0x15,0x08,0x07, + 0x04,0x04,0x03,0x03,0x01,0x44,0x64,0x4D, + 0x5E,0x6D,0x88,0x9B,0x55,0x31,0x47,0x25, + 0x7D,0x24,0x13,0x15,0x29,0xC7,0x28,0x28, + 0x04,0x28,0x28,0x94,0x28,0x28,0x04,0x28, + 0x28,0x01,0x46,0x2F,0x54,0x1F,0x0B,0x28, + 0x0A,0x15,0x2B,0x53,0x4A,0xE0,0x3C,0x1B, + 0x25,0x02,0x0C,0x0B,0x04,0x0A,0x09,0x10, + 0x09,0x13,0x03,0x4B,0x4C,0x9E,0x4F,0x11, + 0xAF,0x52,0x24,0x21,0x76,0x0E,0x07,0x0B, + 0x15,0x01,0x96,0x16,0x33,0x16,0x16,0x33, + 0x16,0x16,0x33,0x16,0x16,0x33,0x16,0x00, + 0x00,0x04,0x00,0x31,0xFF,0xFA,0x01,0xDD, + 0x02,0xDD,0x00,0x25,0x00,0x31,0x00,0x39, + 0x00,0x41,0x00,0x00,0x01,0x35,0x34,0x23, + 0x22,0x07,0x06,0x23,0x22,0x26,0x35,0x34, + 0x36,0x32,0x16,0x15,0x15,0x14,0x17,0x16, + 0x15,0x14,0x06,0x22,0x2E,0x05,0x27,0x06, + 0x23,0x22,0x26,0x34,0x36,0x36,0x07,0x14, + 0x33,0x32,0x36,0x37,0x35,0x22,0x07,0x06, + 0x07,0x06,0x12,0x22,0x26,0x34,0x36,0x32, + 0x16,0x14,0x06,0x32,0x36,0x34,0x26,0x22, + 0x06,0x14,0x01,0x7D,0x6E,0x48,0x3D,0x15, + 0x02,0x0A,0x19,0x75,0xA4,0x68,0x05,0x07, + 0x26,0x15,0x08,0x07,0x04,0x04,0x03,0x03, + 0x01,0x44,0x64,0x4D,0x5E,0x6D,0x88,0x9B, + 0x55,0x31,0x47,0x25,0x7D,0x24,0x13,0x15, + 0x29,0xA4,0x46,0x31,0x31,0x46,0x32,0x6A, + 0x2A,0x1D,0x1D,0x2A,0x1C,0x01,0x46,0x2F, + 0x54,0x1F,0x0B,0x28,0x0A,0x15,0x2B,0x53, + 0x4A,0xE0,0x3C,0x1B,0x25,0x02,0x0C,0x0B, + 0x04,0x0A,0x09,0x10,0x09,0x13,0x03,0x4B, + 0x4C,0x9E,0x4F,0x11,0xAF,0x52,0x24,0x21, + 0x76,0x0E,0x07,0x0B,0x15,0x01,0x6B,0x31, + 0x46,0x32,0x32,0x46,0x0E,0x1C,0x2A,0x1D, + 0x1D,0x2A,0x00,0x00,0x00,0x03,0x00,0x2D, + 0xFF,0xFA,0x03,0x06,0x02,0x11,0x00,0x31, + 0x00,0x36,0x00,0x40,0x00,0x00,0x37,0x34, + 0x36,0x36,0x37,0x36,0x37,0x36,0x37,0x26, + 0x23,0x22,0x07,0x06,0x23,0x22,0x26,0x35, + 0x34,0x36,0x33,0x32,0x17,0x36,0x32,0x16, + 0x15,0x14,0x06,0x23,0x21,0x16,0x16,0x33, + 0x32,0x37,0x36,0x33,0x32,0x16,0x15,0x14, + 0x06,0x23,0x22,0x27,0x06,0x23,0x22,0x26, + 0x25,0x34,0x23,0x22,0x07,0x05,0x14,0x33, + 0x32,0x37,0x26,0x27,0x06,0x07,0x06,0x2D, + 0x23,0x35,0x29,0x43,0x61,0x06,0x16,0x1A, + 0x49,0x48,0x3D,0x15,0x02,0x0A,0x19,0x75, + 0x47,0x63,0x35,0x39,0xC5,0x68,0x18,0x09, + 0xFE,0xC4,0x06,0x4A,0x4A,0x44,0x39,0x13, + 0x02,0x0A,0x19,0x6D,0x47,0x7B,0x3C,0x4C, + 0x69,0x4D,0x5E,0x02,0x80,0x78,0x81,0x0B, + 0xFE,0xDE,0x55,0x49,0x41,0x16,0x01,0x93, + 0x24,0x11,0x90,0x29,0x3D,0x23,0x0B,0x12, + 0x02,0x3E,0x2A,0x29,0x1F,0x0B,0x28,0x0A, + 0x15,0x2B,0x30,0x30,0x7E,0x79,0x09,0x20, + 0x5B,0x54,0x20,0x0A,0x28,0x0A,0x14,0x2C, + 0x3F,0x3F,0x4C,0xF3,0x90,0x90,0xA4,0x52, + 0x34,0x33,0x46,0x03,0x29,0x13,0x00,0x00, + 0x00,0x01,0x00,0x34,0xFF,0x2E,0x01,0xC7, + 0x02,0x11,0x00,0x3D,0x00,0x00,0x13,0x34, + 0x36,0x37,0x36,0x33,0x32,0x16,0x15,0x14, + 0x06,0x23,0x22,0x26,0x26,0x27,0x26,0x23, + 0x22,0x15,0x14,0x16,0x33,0x32,0x37,0x36, + 0x36,0x33,0x32,0x16,0x15,0x14,0x06,0x23, + 0x23,0x07,0x33,0x32,0x16,0x16,0x15,0x14, + 0x23,0x22,0x26,0x35,0x34,0x33,0x32,0x16, + 0x33,0x32,0x35,0x34,0x26,0x26,0x35,0x34, + 0x37,0x37,0x26,0x26,0x34,0x29,0x23,0x42, + 0x5F,0x3A,0x5C,0x17,0x09,0x01,0x05,0x03, + 0x02,0x36,0x37,0x91,0x47,0x54,0x3D,0x34, + 0x03,0x07,0x01,0x0A,0x18,0x5E,0x3F,0x04, + 0x0C,0x04,0x10,0x21,0x24,0x73,0x27,0x4C, + 0x13,0x05,0x38,0x16,0x39,0x21,0x21,0x02, + 0x10,0x65,0x63,0x01,0x08,0x4B,0x6C,0x1D, + 0x35,0x1C,0x12,0x0D,0x29,0x02,0x01,0x01, + 0x18,0xBF,0x6A,0x5E,0x1A,0x01,0x03,0x27, + 0x0C,0x12,0x21,0x2B,0x07,0x23,0x1E,0x59, + 0x18,0x13,0x1A,0x14,0x23,0x13,0x12,0x0A, + 0x0B,0x02,0x0A,0x35,0x0A,0x81,0x00,0x00, + 0x00,0x03,0x00,0x37,0xFF,0xFA,0x01,0xEE, + 0x02,0xF0,0x00,0x17,0x00,0x1C,0x00,0x26, + 0x00,0x00,0x16,0x26,0x10,0x36,0x33,0x32, + 0x11,0x14,0x06,0x23,0x21,0x16,0x16,0x33, + 0x32,0x37,0x36,0x33,0x32,0x16,0x15,0x14, + 0x06,0x23,0x13,0x34,0x23,0x22,0x07,0x12, + 0x14,0x22,0x27,0x26,0x26,0x35,0x34,0x32, + 0x17,0xAF,0x78,0x76,0x6D,0xD4,0x18,0x09, + 0xFE,0xC4,0x06,0x4A,0x4A,0x44,0x39,0x13, + 0x02,0x0A,0x19,0x6D,0x47,0x69,0x78,0x81, + 0x0B,0xCF,0x3A,0x10,0x58,0x06,0x5F,0x0F, + 0x06,0x82,0x01,0x0B,0x8A,0xFE,0xFB,0x09, + 0x20,0x53,0x4E,0x20,0x0A,0x28,0x0A,0x14, + 0x2C,0x01,0x31,0x9E,0x9E,0x01,0x46,0x14, + 0x12,0x65,0x0B,0x04,0x0D,0x1A,0x00,0x00, + 0x00,0x03,0x00,0x37,0xFF,0xFA,0x01,0xEE, + 0x02,0xF0,0x00,0x17,0x00,0x1C,0x00,0x26, + 0x00,0x00,0x16,0x26,0x10,0x36,0x33,0x32, + 0x11,0x14,0x06,0x23,0x21,0x16,0x16,0x33, + 0x32,0x37,0x36,0x33,0x32,0x16,0x15,0x14, + 0x06,0x23,0x13,0x34,0x23,0x22,0x07,0x12, + 0x0E,0x02,0x22,0x34,0x37,0x36,0x32,0x15, + 0xAF,0x78,0x76,0x6D,0xD4,0x18,0x09,0xFE, + 0xC4,0x06,0x4A,0x4A,0x44,0x39,0x13,0x02, + 0x0A,0x19,0x6D,0x47,0x69,0x78,0x81,0x0B, + 0xFC,0x13,0x3C,0x20,0x39,0x3A,0x0F,0x5F, + 0x06,0x82,0x01,0x0B,0x8A,0xFE,0xFB,0x09, + 0x20,0x53,0x4E,0x20,0x0A,0x28,0x0A,0x14, + 0x2C,0x01,0x31,0x9E,0x9E,0x01,0xB1,0x18, + 0x44,0x23,0x14,0x65,0x1A,0x0D,0x00,0x00, + 0x00,0x03,0x00,0x37,0xFF,0xFA,0x01,0xEE, + 0x02,0xD6,0x00,0x17,0x00,0x1C,0x00,0x2F, + 0x00,0x00,0x16,0x26,0x10,0x36,0x33,0x32, + 0x11,0x14,0x06,0x23,0x21,0x16,0x16,0x33, + 0x32,0x37,0x36,0x33,0x32,0x16,0x15,0x14, + 0x06,0x23,0x13,0x34,0x23,0x22,0x07,0x13, + 0x06,0x22,0x35,0x34,0x37,0x37,0x36,0x33, + 0x33,0x32,0x17,0x17,0x16,0x15,0x14,0x22, + 0x27,0x27,0xAF,0x78,0x76,0x6D,0xD4,0x18, + 0x09,0xFE,0xC4,0x06,0x4A,0x4A,0x44,0x39, + 0x13,0x02,0x0A,0x19,0x6D,0x47,0x69,0x78, + 0x81,0x0B,0x4E,0x0E,0x2D,0x06,0x38,0x0F, + 0x1F,0x19,0x1F,0x0F,0x39,0x06,0x2D,0x0E, + 0x3F,0x06,0x82,0x01,0x0B,0x8A,0xFE,0xFB, + 0x09,0x20,0x53,0x4E,0x20,0x0A,0x28,0x0A, + 0x14,0x2C,0x01,0x31,0x9E,0x9E,0x01,0x2A, + 0x0D,0x0E,0x08,0x0A,0x58,0x16,0x16,0x58, + 0x09,0x08,0x0F,0x0D,0x4A,0x00,0x00,0x00, + 0x00,0x04,0x00,0x37,0xFF,0xFA,0x01,0xEE, + 0x02,0xBE,0x00,0x17,0x00,0x1C,0x00,0x28, + 0x00,0x34,0x00,0x00,0x16,0x26,0x10,0x36, + 0x33,0x32,0x11,0x14,0x06,0x23,0x21,0x16, + 0x16,0x33,0x32,0x37,0x36,0x33,0x32,0x16, + 0x15,0x14,0x06,0x23,0x13,0x34,0x23,0x22, + 0x07,0x13,0x22,0x35,0x35,0x34,0x33,0x33, + 0x32,0x15,0x15,0x14,0x23,0x23,0x22,0x35, + 0x35,0x34,0x33,0x33,0x32,0x15,0x15,0x14, + 0x23,0xAF,0x78,0x76,0x6D,0xD4,0x18,0x09, + 0xFE,0xC4,0x06,0x4A,0x4A,0x44,0x39,0x13, + 0x02,0x0A,0x19,0x6D,0x47,0x69,0x78,0x81, + 0x0B,0xD2,0x28,0x28,0x04,0x28,0x28,0x94, + 0x28,0x28,0x04,0x28,0x28,0x06,0x82,0x01, + 0x0B,0x8A,0xFE,0xFB,0x09,0x20,0x53,0x4E, + 0x20,0x0A,0x28,0x0A,0x14,0x2C,0x01,0x31, + 0x9E,0x9E,0x01,0x34,0x16,0x33,0x16,0x16, + 0x33,0x16,0x16,0x33,0x16,0x16,0x33,0x16, + 0x00,0x02,0x00,0x21,0xFF,0xFE,0x00,0xC9, + 0x02,0xF0,0x00,0x0B,0x00,0x15,0x00,0x00, + 0x37,0x11,0x34,0x33,0x33,0x32,0x15,0x11, + 0x14,0x23,0x23,0x22,0x12,0x14,0x22,0x27, + 0x26,0x26,0x35,0x34,0x32,0x17,0x5B,0x28, + 0x04,0x28,0x28,0x04,0x28,0x6E,0x39,0x11, + 0x58,0x06,0x5F,0x0F,0x14,0x01,0xE3,0x16, + 0x16,0xFE,0x1D,0x16,0x02,0x73,0x14,0x12, + 0x65,0x0B,0x04,0x0D,0x1A,0x00,0x00,0x00, + 0x00,0x02,0x00,0x4E,0xFF,0xFE,0x00,0xF6, + 0x02,0xF0,0x00,0x0B,0x00,0x15,0x00,0x00, + 0x37,0x11,0x34,0x33,0x33,0x32,0x15,0x11, + 0x14,0x23,0x23,0x22,0x12,0x0E,0x02,0x22, + 0x34,0x37,0x36,0x32,0x15,0x5B,0x28,0x04, + 0x28,0x28,0x04,0x28,0x9B,0x13,0x3C,0x1F, + 0x3A,0x3A,0x0F,0x5F,0x14,0x01,0xE3,0x16, + 0x16,0xFE,0x1D,0x16,0x02,0xDE,0x18,0x44, + 0x23,0x14,0x65,0x1A,0x0D,0x00,0x00,0x00, + 0x00,0x02,0x00,0x0D,0xFF,0xFE,0x00,0xFF, + 0x02,0xD6,0x00,0x0B,0x00,0x1E,0x00,0x00, + 0x37,0x11,0x34,0x33,0x33,0x32,0x15,0x11, + 0x14,0x23,0x23,0x22,0x03,0x06,0x22,0x35, + 0x34,0x37,0x37,0x36,0x33,0x33,0x32,0x17, + 0x17,0x16,0x15,0x14,0x22,0x27,0x27,0x5B, + 0x28,0x04,0x28,0x28,0x04,0x28,0x13,0x0E, + 0x2D,0x06,0x38,0x0F,0x1F,0x19,0x1F,0x0F, + 0x39,0x06,0x2D,0x0E,0x3F,0x14,0x01,0xE3, + 0x16,0x16,0xFE,0x1D,0x16,0x02,0x57,0x0D, + 0x0E,0x08,0x0A,0x58,0x16,0x16,0x58,0x09, + 0x08,0x0F,0x0D,0x4A,0x00,0x03,0x00,0x14, + 0xFF,0xFE,0x00,0xF8,0x02,0xBE,0x00,0x0B, + 0x00,0x17,0x00,0x23,0x00,0x00,0x37,0x11, + 0x34,0x33,0x33,0x32,0x15,0x11,0x14,0x23, + 0x23,0x22,0x13,0x22,0x35,0x35,0x34,0x33, + 0x33,0x32,0x15,0x15,0x14,0x23,0x23,0x22, + 0x35,0x35,0x34,0x33,0x33,0x32,0x15,0x15, + 0x14,0x23,0x5B,0x28,0x04,0x28,0x28,0x04, + 0x28,0x71,0x28,0x28,0x04,0x28,0x28,0x94, + 0x28,0x28,0x04,0x28,0x28,0x14,0x01,0xE3, + 0x16,0x16,0xFE,0x1D,0x16,0x02,0x61,0x16, + 0x33,0x16,0x16,0x33,0x16,0x16,0x33,0x16, + 0x16,0x33,0x16,0x00,0x00,0x02,0x00,0x37, + 0xFF,0xFA,0x02,0x02,0x02,0xCA,0x00,0x21, + 0x00,0x29,0x00,0x00,0x01,0x07,0x22,0x26, + 0x34,0x37,0x37,0x26,0x35,0x34,0x33,0x32, + 0x16,0x17,0x36,0x33,0x32,0x16,0x15,0x14, + 0x07,0x07,0x16,0x15,0x14,0x06,0x22,0x26, + 0x10,0x36,0x33,0x32,0x17,0x26,0x02,0x32, + 0x36,0x34,0x26,0x22,0x06,0x14,0x01,0x41, + 0x56,0x0A,0x10,0x0F,0x48,0x1A,0x2B,0x10, + 0x19,0x12,0x4C,0x02,0x0C,0x0D,0x0F,0x3C, + 0x72,0x73,0xE1,0x77,0x78,0x70,0x2C,0x24, + 0x16,0x86,0x92,0x46,0x46,0x92,0x46,0x02, + 0x5F,0x0C,0x15,0x15,0x03,0x0A,0x26,0x0A, + 0x10,0x1D,0x19,0x0B,0x18,0x08,0x0B,0x02, + 0x08,0xB3,0xB4,0x82,0x87,0x88,0x01,0x03, + 0x8C,0x0C,0x30,0xFE,0x0D,0x5F,0xC8,0x60, + 0x60,0xC8,0x00,0x00,0x00,0x02,0x00,0x4A, + 0xFF,0xFE,0x01,0xE2,0x02,0xC4,0x00,0x24, + 0x00,0x36,0x00,0x00,0x37,0x11,0x34,0x27, + 0x26,0x35,0x34,0x36,0x32,0x1E,0x05,0x17, + 0x36,0x32,0x16,0x15,0x11,0x14,0x23,0x23, + 0x22,0x35,0x11,0x34,0x26,0x23,0x22,0x07, + 0x11,0x14,0x23,0x23,0x22,0x12,0x26,0x22, + 0x06,0x22,0x26,0x35,0x34,0x36,0x32,0x16, + 0x32,0x36,0x32,0x16,0x15,0x14,0x06,0x56, + 0x05,0x07,0x26,0x15,0x08,0x07,0x04,0x04, + 0x03,0x03,0x01,0x43,0xA5,0x57,0x28,0x04, + 0x28,0x35,0x31,0x48,0x36,0x28,0x04,0x28, + 0xE1,0x52,0x1A,0x22,0x16,0x12,0x44,0x44, + 0x51,0x20,0x1F,0x13,0x13,0x44,0x14,0x01, + 0x5F,0x3D,0x1A,0x24,0x03,0x0C,0x0B,0x04, + 0x09,0x09,0x0F,0x09,0x11,0x03,0x4B,0x56, + 0x4C,0xFE,0xA5,0x16,0x16,0x01,0x53,0x2E, + 0x33,0x46,0xFE,0x92,0x16,0x02,0x69,0x14, + 0x0D,0x15,0x09,0x13,0x25,0x14,0x0D,0x16, + 0x08,0x13,0x25,0x00,0x00,0x03,0x00,0x37, + 0xFF,0xFA,0x02,0x02,0x02,0xF0,0x00,0x07, + 0x00,0x0F,0x00,0x19,0x00,0x00,0x16,0x26, + 0x10,0x36,0x32,0x16,0x10,0x06,0x26,0x32, + 0x36,0x34,0x26,0x22,0x06,0x14,0x12,0x14, + 0x22,0x27,0x26,0x26,0x35,0x34,0x32,0x17, + 0xAE,0x77,0x78,0xDE,0x75,0x73,0xBC,0x92, + 0x46,0x46,0x92,0x44,0xD0,0x39,0x11,0x58, + 0x06,0x5F,0x0F,0x06,0x88,0x01,0x03,0x8C, + 0x8B,0xFE,0xFB,0x87,0x48,0x5F,0xC8,0x60, + 0x5F,0xC9,0x01,0xD0,0x14,0x12,0x65,0x0B, + 0x04,0x0D,0x1A,0x00,0x00,0x03,0x00,0x37, + 0xFF,0xFA,0x02,0x02,0x02,0xF0,0x00,0x07, + 0x00,0x0F,0x00,0x19,0x00,0x00,0x16,0x26, + 0x10,0x36,0x32,0x16,0x10,0x06,0x26,0x32, + 0x36,0x34,0x26,0x22,0x06,0x14,0x12,0x0E, + 0x02,0x22,0x34,0x37,0x36,0x32,0x15,0xAE, + 0x77,0x78,0xDE,0x75,0x73,0xBC,0x92,0x46, + 0x46,0x92,0x44,0xFD,0x13,0x3C,0x1F,0x3A, + 0x3A,0x0F,0x5F,0x06,0x88,0x01,0x03,0x8C, + 0x8B,0xFE,0xFB,0x87,0x48,0x5F,0xC8,0x60, + 0x5F,0xC9,0x02,0x3B,0x18,0x44,0x23,0x14, + 0x65,0x1A,0x0D,0x00,0x00,0x03,0x00,0x37, + 0xFF,0xFA,0x02,0x02,0x02,0xD6,0x00,0x07, + 0x00,0x0F,0x00,0x22,0x00,0x00,0x16,0x26, + 0x10,0x36,0x32,0x16,0x10,0x06,0x26,0x32, + 0x36,0x34,0x26,0x22,0x06,0x14,0x13,0x06, + 0x22,0x35,0x34,0x37,0x37,0x36,0x33,0x33, + 0x32,0x17,0x17,0x16,0x15,0x14,0x22,0x27, + 0x27,0xAE,0x77,0x78,0xDE,0x75,0x73,0xBC, + 0x92,0x46,0x46,0x92,0x44,0x4F,0x0E,0x2D, + 0x06,0x38,0x0F,0x1F,0x19,0x1F,0x0F,0x39, + 0x06,0x2D,0x0E,0x3F,0x06,0x88,0x01,0x03, + 0x8C,0x8B,0xFE,0xFB,0x87,0x48,0x5F,0xC8, + 0x60,0x5F,0xC9,0x01,0xB4,0x0D,0x0E,0x08, + 0x0A,0x58,0x16,0x16,0x58,0x09,0x08,0x0F, + 0x0D,0x4A,0x00,0x00,0x00,0x03,0x00,0x37, + 0xFF,0xFA,0x02,0x02,0x02,0xC4,0x00,0x07, + 0x00,0x0F,0x00,0x21,0x00,0x00,0x16,0x26, + 0x10,0x36,0x32,0x16,0x10,0x06,0x26,0x32, + 0x36,0x34,0x26,0x22,0x06,0x14,0x12,0x26, + 0x22,0x06,0x22,0x26,0x35,0x34,0x36,0x32, + 0x16,0x32,0x36,0x32,0x16,0x15,0x14,0x06, + 0xAE,0x77,0x78,0xDE,0x75,0x73,0xBC,0x92, + 0x46,0x46,0x92,0x44,0xA4,0x52,0x1A,0x22, + 0x16,0x12,0x44,0x44,0x51,0x20,0x1F,0x13, + 0x13,0x44,0x06,0x88,0x01,0x03,0x8C,0x8B, + 0xFE,0xFB,0x87,0x48,0x5F,0xC8,0x60,0x5F, + 0xC9,0x01,0xC6,0x14,0x0D,0x15,0x09,0x13, + 0x25,0x14,0x0D,0x16,0x08,0x13,0x25,0x00, + 0x00,0x04,0x00,0x37,0xFF,0xFA,0x02,0x02, + 0x02,0xBE,0x00,0x07,0x00,0x0F,0x00,0x1B, + 0x00,0x27,0x00,0x00,0x16,0x26,0x10,0x36, + 0x32,0x16,0x10,0x06,0x26,0x32,0x36,0x34, + 0x26,0x22,0x06,0x14,0x13,0x22,0x35,0x35, + 0x34,0x33,0x33,0x32,0x15,0x15,0x14,0x23, + 0x23,0x22,0x35,0x35,0x34,0x33,0x33,0x32, + 0x15,0x15,0x14,0x23,0xAE,0x77,0x78,0xDE, + 0x75,0x73,0xBC,0x92,0x46,0x46,0x92,0x44, + 0xD3,0x28,0x28,0x04,0x28,0x28,0x94,0x28, + 0x28,0x04,0x28,0x28,0x06,0x88,0x01,0x03, + 0x8C,0x8B,0xFE,0xFB,0x87,0x48,0x5F,0xC8, + 0x60,0x5F,0xC9,0x01,0xBE,0x16,0x33,0x16, + 0x16,0x33,0x16,0x16,0x33,0x16,0x16,0x33, + 0x16,0x00,0x00,0x00,0x00,0x03,0x00,0x30, + 0xFF,0xFE,0x02,0x00,0x01,0xCF,0x00,0x0B, + 0x00,0x17,0x00,0x23,0x00,0x00,0x13,0x35, + 0x34,0x33,0x33,0x32,0x15,0x15,0x14,0x23, + 0x23,0x22,0x07,0x22,0x35,0x35,0x34,0x33, + 0x21,0x32,0x15,0x15,0x14,0x23,0x07,0x35, + 0x34,0x33,0x33,0x32,0x15,0x15,0x14,0x23, + 0x23,0x22,0xEE,0x28,0x04,0x28,0x28,0x04, + 0x28,0xA0,0x1E,0x1E,0x01,0x94,0x1E,0x1E, + 0xF4,0x28,0x04,0x28,0x28,0x04,0x28,0x01, + 0x86,0x33,0x16,0x16,0x33,0x16,0xAB,0x1E, + 0x07,0x1E,0x1E,0x07,0x1E,0xB1,0x33,0x16, + 0x16,0x33,0x16,0x00,0x00,0x03,0x00,0x37, + 0xFF,0xFB,0x02,0x03,0x02,0x10,0x00,0x1B, + 0x00,0x22,0x00,0x29,0x00,0x00,0x36,0x26, + 0x34,0x37,0x37,0x26,0x35,0x34,0x36,0x37, + 0x36,0x32,0x17,0x37,0x36,0x32,0x16,0x14, + 0x07,0x07,0x16,0x15,0x10,0x23,0x22,0x27, + 0x07,0x06,0x01,0x26,0x22,0x06,0x15,0x14, + 0x17,0x17,0x16,0x32,0x36,0x35,0x34,0x27, + 0x50,0x10,0x07,0x1F,0x2F,0x2A,0x24,0x41, + 0xBD,0x3A,0x22,0x08,0x0C,0x10,0x06,0x27, + 0x2C,0xE3,0x64,0x39,0x1D,0x08,0x01,0x2A, + 0x23,0x8E,0x48,0x12,0x17,0x22,0x89,0x49, + 0x10,0x02,0x0F,0x0B,0x09,0x25,0x41,0x78, + 0x50,0x70,0x1B,0x32,0x37,0x28,0x08,0x0F, + 0x0C,0x08,0x2D,0x43,0x73,0xFE,0xF8,0x31, + 0x22,0x08,0x01,0x98,0x2E,0x5A,0x69,0x4B, + 0x2C,0x25,0x26,0x5A,0x68,0x45,0x2A,0x00, + 0x00,0x02,0x00,0x4B,0xFF,0xFA,0x01,0xE3, + 0x02,0xF0,0x00,0x24,0x00,0x2E,0x00,0x00, + 0x37,0x11,0x34,0x33,0x33,0x32,0x15,0x11, + 0x14,0x16,0x33,0x32,0x37,0x11,0x34,0x33, + 0x33,0x32,0x15,0x11,0x14,0x17,0x16,0x15, + 0x14,0x06,0x22,0x2E,0x05,0x27,0x06,0x22, + 0x26,0x00,0x14,0x22,0x27,0x26,0x26,0x35, + 0x34,0x32,0x17,0x4B,0x28,0x04,0x28,0x35, + 0x31,0x48,0x36,0x28,0x04,0x28,0x05,0x07, + 0x26,0x15,0x08,0x07,0x04,0x04,0x03,0x03, + 0x01,0x43,0xA5,0x57,0x01,0x0B,0x3A,0x10, + 0x58,0x06,0x5F,0x0F,0x9C,0x01,0x5B,0x16, + 0x16,0xFE,0xAD,0x2E,0x33,0x46,0x01,0x6E, + 0x16,0x16,0xFE,0x9D,0x3C,0x1B,0x25,0x02, + 0x0C,0x0B,0x04,0x0A,0x09,0x10,0x09,0x13, + 0x03,0x4B,0x56,0x02,0x21,0x14,0x12,0x65, + 0x0B,0x04,0x0D,0x1A,0x00,0x02,0x00,0x4B, + 0xFF,0xFA,0x01,0xE3,0x02,0xF0,0x00,0x24, + 0x00,0x2E,0x00,0x00,0x37,0x11,0x34,0x33, + 0x33,0x32,0x15,0x11,0x14,0x16,0x33,0x32, + 0x37,0x11,0x34,0x33,0x33,0x32,0x15,0x11, + 0x14,0x17,0x16,0x15,0x14,0x06,0x22,0x2E, + 0x05,0x27,0x06,0x22,0x26,0x00,0x0E,0x02, + 0x22,0x34,0x37,0x36,0x32,0x15,0x4B,0x28, + 0x04,0x28,0x35,0x31,0x48,0x36,0x28,0x04, + 0x28,0x05,0x07,0x26,0x15,0x08,0x07,0x04, + 0x04,0x03,0x03,0x01,0x43,0xA5,0x57,0x01, + 0x38,0x13,0x3C,0x20,0x39,0x3A,0x0F,0x5F, + 0x9C,0x01,0x5B,0x16,0x16,0xFE,0xAD,0x2E, + 0x33,0x46,0x01,0x6E,0x16,0x16,0xFE,0x9D, + 0x3C,0x1B,0x25,0x02,0x0C,0x0B,0x04,0x0A, + 0x09,0x10,0x09,0x13,0x03,0x4B,0x56,0x02, + 0x8C,0x18,0x44,0x23,0x14,0x65,0x1A,0x0D, + 0x00,0x02,0x00,0x4B,0xFF,0xFA,0x01,0xE3, + 0x02,0xD6,0x00,0x24,0x00,0x37,0x00,0x00, + 0x37,0x11,0x34,0x33,0x33,0x32,0x15,0x11, + 0x14,0x16,0x33,0x32,0x37,0x11,0x34,0x33, + 0x33,0x32,0x15,0x11,0x14,0x17,0x16,0x15, + 0x14,0x06,0x22,0x2E,0x05,0x27,0x06,0x22, + 0x26,0x13,0x06,0x22,0x35,0x34,0x37,0x37, + 0x36,0x33,0x33,0x32,0x17,0x17,0x16,0x15, + 0x14,0x22,0x27,0x27,0x4B,0x28,0x04,0x28, + 0x35,0x31,0x48,0x36,0x28,0x04,0x28,0x05, + 0x07,0x26,0x15,0x08,0x07,0x04,0x04,0x03, + 0x03,0x01,0x43,0xA5,0x57,0x8A,0x0E,0x2D, + 0x06,0x38,0x0F,0x1F,0x19,0x1F,0x0F,0x39, + 0x06,0x2D,0x0E,0x3F,0x9C,0x01,0x5B,0x16, + 0x16,0xFE,0xAD,0x2E,0x33,0x46,0x01,0x6E, + 0x16,0x16,0xFE,0x9D,0x3C,0x1B,0x25,0x02, + 0x0C,0x0B,0x04,0x0A,0x09,0x10,0x09,0x13, + 0x03,0x4B,0x56,0x02,0x05,0x0D,0x0E,0x08, + 0x0A,0x58,0x16,0x16,0x58,0x09,0x08,0x0F, + 0x0D,0x4A,0x00,0x00,0x00,0x03,0x00,0x4B, + 0xFF,0xFA,0x01,0xE3,0x02,0xBE,0x00,0x24, + 0x00,0x30,0x00,0x3C,0x00,0x00,0x37,0x11, + 0x34,0x33,0x33,0x32,0x15,0x11,0x14,0x16, + 0x33,0x32,0x37,0x11,0x34,0x33,0x33,0x32, + 0x15,0x11,0x14,0x17,0x16,0x15,0x14,0x06, + 0x22,0x2E,0x05,0x27,0x06,0x22,0x26,0x01, + 0x22,0x35,0x35,0x34,0x33,0x33,0x32,0x15, + 0x15,0x14,0x23,0x23,0x22,0x35,0x35,0x34, + 0x33,0x33,0x32,0x15,0x15,0x14,0x23,0x4B, + 0x28,0x04,0x28,0x35,0x31,0x48,0x36,0x28, + 0x04,0x28,0x05,0x07,0x26,0x15,0x08,0x07, + 0x04,0x04,0x03,0x03,0x01,0x43,0xA5,0x57, + 0x01,0x0E,0x28,0x28,0x04,0x28,0x28,0x94, + 0x28,0x28,0x04,0x28,0x28,0x9C,0x01,0x5B, + 0x16,0x16,0xFE,0xAD,0x2E,0x33,0x46,0x01, + 0x6E,0x16,0x16,0xFE,0x9D,0x3C,0x1B,0x25, + 0x02,0x0C,0x0B,0x04,0x0A,0x09,0x10,0x09, + 0x13,0x03,0x4B,0x56,0x02,0x0F,0x16,0x33, + 0x16,0x16,0x33,0x16,0x16,0x33,0x16,0x16, + 0x33,0x16,0x00,0x00,0x00,0x02,0x00,0x12, + 0xFF,0x30,0x01,0xCE,0x02,0xF0,0x00,0x16, + 0x00,0x20,0x00,0x00,0x13,0x34,0x33,0x33, + 0x32,0x17,0x13,0x13,0x36,0x32,0x15,0x14, + 0x07,0x01,0x06,0x23,0x23,0x22,0x35,0x34, + 0x37,0x03,0x26,0x24,0x0E,0x02,0x22,0x34, + 0x37,0x36,0x32,0x15,0x12,0x2B,0x08,0x21, + 0x07,0x88,0x85,0x05,0x4F,0x03,0xFE,0xFF, + 0x08,0x27,0x0F,0x21,0x59,0xAF,0x03,0x01, + 0x4E,0x13,0x3C,0x1F,0x3A,0x3A,0x0F,0x5F, + 0x01,0xFC,0x11,0x10,0xFE,0x97,0x01,0x69, + 0x10,0x11,0x05,0x09,0xFD,0x57,0x15,0x10, + 0x03,0xD9,0x01,0xD3,0x09,0xE4,0x18,0x44, + 0x23,0x14,0x65,0x1A,0x0D,0x00,0x00,0x00, + 0x00,0x02,0x00,0x55,0xFF,0x30,0x02,0x03, + 0x02,0xF0,0x00,0x15,0x00,0x1F,0x00,0x00, + 0x17,0x14,0x23,0x23,0x22,0x35,0x11,0x34, + 0x33,0x33,0x32,0x15,0x11,0x36,0x32,0x16, + 0x15,0x15,0x14,0x06,0x22,0x27,0x37,0x33, + 0x36,0x36,0x34,0x26,0x22,0x07,0x11,0x16, + 0xA9,0x28,0x04,0x28,0x28,0x04,0x28,0x45, + 0xAC,0x69,0x70,0xA8,0x42,0x79,0x06,0x40, + 0x43,0x40,0x83,0x3F,0x36,0xBA,0x16,0x16, + 0x03,0x94,0x16,0x16,0xFE,0xF3,0x44,0x94, + 0x74,0x09,0x7B,0x8B,0x33,0x17,0x01,0x60, + 0xBA,0x69,0x45,0xFE,0xEE,0x2D,0x00,0x00, + 0x00,0x03,0x00,0x12,0xFF,0x30,0x01,0xCE, + 0x02,0xBE,0x00,0x16,0x00,0x22,0x00,0x2E, + 0x00,0x00,0x13,0x34,0x33,0x33,0x32,0x17, + 0x13,0x13,0x36,0x32,0x15,0x14,0x07,0x01, + 0x06,0x23,0x23,0x22,0x35,0x34,0x37,0x03, + 0x26,0x25,0x22,0x35,0x35,0x34,0x33,0x33, + 0x32,0x15,0x15,0x14,0x23,0x23,0x22,0x35, + 0x35,0x34,0x33,0x33,0x32,0x15,0x15,0x14, + 0x23,0x12,0x2B,0x08,0x21,0x07,0x88,0x85, + 0x05,0x4F,0x03,0xFE,0xFF,0x08,0x27,0x0F, + 0x21,0x59,0xAF,0x03,0x01,0x24,0x28,0x28, + 0x04,0x28,0x28,0x94,0x28,0x28,0x04,0x28, + 0x28,0x01,0xFC,0x11,0x10,0xFE,0x97,0x01, + 0x69,0x10,0x11,0x05,0x09,0xFD,0x57,0x15, + 0x10,0x03,0xD9,0x01,0xD3,0x09,0x67,0x16, + 0x33,0x16,0x16,0x33,0x16,0x16,0x33,0x16, + 0x16,0x33,0x16,0x00,0x00,0x01,0x00,0x5B, + 0xFF,0xFE,0x00,0xAF,0x02,0x0D,0x00,0x0B, + 0x00,0x00,0x37,0x11,0x34,0x33,0x33,0x32, + 0x15,0x11,0x14,0x23,0x23,0x22,0x5B,0x28, + 0x04,0x28,0x28,0x04,0x28,0x14,0x01,0xE3, + 0x16,0x16,0xFE,0x1D,0x16,0x00,0x00,0x00, + 0x00,0x01,0xFF,0xFE,0x00,0x00,0x01,0xE4, + 0x02,0xBE,0x00,0x23,0x00,0x00,0x37,0x11, + 0x07,0x06,0x23,0x22,0x35,0x35,0x34,0x37, + 0x37,0x11,0x34,0x33,0x33,0x32,0x15,0x15, + 0x37,0x36,0x33,0x32,0x15,0x15,0x14,0x07, + 0x07,0x11,0x21,0x32,0x15,0x15,0x14,0x23, + 0x21,0x22,0x55,0x44,0x05,0x05,0x09,0x13, + 0x44,0x28,0x08,0x28,0x6C,0x08,0x02,0x09, + 0x13,0x6C,0x01,0x23,0x14,0x14,0xFE,0xA3, + 0x1E,0x1E,0x01,0x3E,0x28,0x04,0x0E,0x06, + 0x13,0x0B,0x28,0x01,0x1E,0x16,0x16,0xE9, + 0x40,0x04,0x0E,0x06,0x13,0x0B,0x40,0xFE, + 0xBB,0x1E,0x10,0x1E,0x00,0x01,0x00,0x13, + 0xFF,0xFA,0x01,0x1A,0x02,0xF0,0x00,0x27, + 0x00,0x00,0x37,0x35,0x07,0x06,0x23,0x22, + 0x35,0x35,0x34,0x37,0x37,0x11,0x34,0x33, + 0x33,0x32,0x15,0x11,0x37,0x36,0x33,0x32, + 0x15,0x15,0x14,0x07,0x07,0x11,0x14,0x33, + 0x32,0x36,0x33,0x32,0x16,0x15,0x14,0x23, + 0x22,0x26,0x50,0x2A,0x05,0x05,0x09,0x13, + 0x2A,0x28,0x04,0x28,0x2A,0x08,0x02,0x09, + 0x13,0x2A,0x36,0x11,0x18,0x02,0x09,0x0C, + 0x49,0x32,0x4F,0x84,0xDD,0x19,0x04,0x0E, + 0x06,0x13,0x0B,0x18,0x01,0x4C,0x16,0x16, + 0xFE,0xE6,0x19,0x04,0x0E,0x06,0x13,0x0B, + 0x19,0xFE,0xFA,0x4A,0x05,0x25,0x0A,0x1E, + 0x3D,0x00,0x00,0x00,0x00,0x02,0x00,0x39, + 0xFF,0xFA,0x03,0xDC,0x02,0xC2,0x00,0x23, + 0x00,0x2B,0x00,0x00,0x36,0x10,0x36,0x20, + 0x17,0x35,0x34,0x33,0x21,0x32,0x15,0x15, + 0x14,0x23,0x21,0x15,0x21,0x32,0x15,0x15, + 0x14,0x23,0x21,0x15,0x21,0x32,0x15,0x15, + 0x14,0x23,0x21,0x22,0x35,0x35,0x06,0x20, + 0x36,0x32,0x36,0x10,0x26,0x22,0x06,0x10, + 0x39,0x9D,0x01,0x26,0x4D,0x1E,0x01,0x60, + 0x14,0x14,0xFE,0xDA,0x01,0x08,0x14,0x14, + 0xFE,0xF8,0x01,0x27,0x14,0x14,0xFE,0x9F, + 0x1E,0x4D,0xFE,0xDB,0x2C,0xD4,0x70,0x70, + 0xD4,0x6F,0xB1,0x01,0x5E,0xB3,0x52,0x2E, + 0x1E,0x1E,0x10,0x1E,0xE4,0x1E,0x10,0x1E, + 0xF4,0x1E,0x10,0x1E,0x1E,0x30,0x54,0x4C, + 0x90,0x01,0x13,0x8D,0x8D,0xFE,0xED,0x00, + 0x00,0x03,0x00,0x37,0xFF,0xFA,0x03,0x30, + 0x02,0x11,0x00,0x1D,0x00,0x22,0x00,0x2C, + 0x00,0x00,0x16,0x26,0x10,0x36,0x32,0x17, + 0x36,0x32,0x16,0x15,0x14,0x06,0x23,0x21, + 0x16,0x16,0x33,0x32,0x37,0x36,0x33,0x32, + 0x16,0x15,0x14,0x06,0x23,0x22,0x27,0x06, + 0x01,0x34,0x23,0x22,0x07,0x04,0x16,0x32, + 0x37,0x26,0x34,0x37,0x26,0x22,0x06,0xAE, + 0x77,0x78,0xD6,0x39,0x3B,0xCF,0x68,0x18, + 0x09,0xFE,0xC4,0x06,0x4A,0x4A,0x44,0x39, + 0x13,0x02,0x0A,0x19,0x6D,0x47,0x75,0x3B, + 0x3A,0x01,0x53,0x78,0x81,0x0B,0xFE,0xBC, + 0x44,0x99,0x22,0x15,0x16,0x22,0x9A,0x44, + 0x06,0x88,0x01,0x03,0x8C,0x3B,0x3B,0x85, + 0x80,0x09,0x20,0x53,0x4E,0x20,0x0A,0x28, + 0x0A,0x14,0x2C,0x38,0x38,0x01,0x31,0x9E, + 0x9E,0x8A,0x5F,0x38,0x38,0xA2,0x39,0x3C, + 0x5F,0x00,0x00,0x00,0x00,0x02,0x00,0x25, + 0xFF,0xFA,0x01,0xD2,0x03,0x88,0x00,0x28, + 0x00,0x3B,0x00,0x00,0x37,0x34,0x36,0x33, + 0x32,0x16,0x16,0x32,0x36,0x34,0x2E,0x03, + 0x35,0x34,0x36,0x33,0x32,0x16,0x15,0x14, + 0x06,0x23,0x22,0x27,0x26,0x22,0x06,0x14, + 0x17,0x1E,0x04,0x15,0x14,0x06,0x22,0x26, + 0x13,0x22,0x27,0x27,0x26,0x35,0x34,0x32, + 0x17,0x17,0x37,0x36,0x32,0x15,0x14,0x07, + 0x07,0x06,0x23,0x25,0x1B,0x08,0x03,0x2C, + 0x50,0x67,0x49,0x43,0x5F,0x60,0x43,0x7A, + 0x64,0x31,0x70,0x19,0x07,0x04,0x11,0x33, + 0x76,0x46,0x41,0x1C,0x46,0x45,0x39,0x24, + 0x78,0xB8,0x7D,0xD0,0x1F,0x0F,0x38,0x06, + 0x2D,0x0E,0x3D,0x3F,0x0E,0x2D,0x06,0x39, + 0x0F,0x1F,0x43,0x0C,0x2A,0x19,0x1A,0x42, + 0x66,0x3C,0x23,0x28,0x54,0x41,0x53,0x65, + 0x24,0x19,0x0B,0x2A,0x0A,0x1C,0x39,0x6E, + 0x1F,0x0D,0x19,0x21,0x2C,0x4C,0x32,0x5C, + 0x69,0x32,0x02,0xCE,0x16,0x58,0x0A,0x08, + 0x0E,0x0D,0x4A,0x4A,0x0D,0x0F,0x08,0x09, + 0x58,0x16,0x00,0x00,0x00,0x02,0x00,0x23, + 0xFF,0xFA,0x01,0x74,0x02,0xD4,0x00,0x23, + 0x00,0x36,0x00,0x00,0x37,0x34,0x36,0x33, + 0x32,0x16,0x16,0x32,0x36,0x34,0x2E,0x02, + 0x34,0x36,0x33,0x32,0x16,0x15,0x14,0x06, + 0x23,0x22,0x27,0x26,0x22,0x06,0x14,0x16, + 0x17,0x16,0x16,0x14,0x06,0x22,0x26,0x13, + 0x22,0x27,0x27,0x26,0x35,0x34,0x32,0x17, + 0x17,0x37,0x36,0x32,0x15,0x14,0x07,0x07, + 0x06,0x23,0x23,0x19,0x0A,0x01,0x1E,0x38, + 0x4F,0x33,0x2D,0x86,0x3C,0x5C,0x4A,0x33, + 0x50,0x17,0x09,0x01,0x0C,0x22,0x55,0x2F, + 0x23,0x2A,0x5E,0x43,0x63,0x8A,0x64,0xA3, + 0x1F,0x0F,0x38,0x06,0x2D,0x0E,0x3D,0x3F, + 0x0E,0x2D,0x06,0x39,0x0F,0x1F,0x36,0x0A, + 0x28,0x13,0x13,0x2D,0x4D,0x2B,0x26,0x3B, + 0x78,0x51,0x1A,0x10,0x0D,0x29,0x06,0x12, + 0x23,0x38,0x20,0x0D,0x1D,0x45,0x8B,0x5A, + 0x29,0x02,0x23,0x16,0x58,0x0A,0x08,0x0E, + 0x0D,0x4A,0x4A,0x0D,0x0F,0x08,0x09,0x58, + 0x16,0x00,0x00,0x00,0x00,0x03,0x00,0x12, + 0xFF,0xFE,0x02,0x1D,0x03,0x72,0x00,0x16, + 0x00,0x22,0x00,0x2E,0x00,0x00,0x37,0x11, + 0x03,0x26,0x35,0x34,0x33,0x33,0x32,0x17, + 0x17,0x37,0x36,0x32,0x15,0x14,0x07,0x03, + 0x11,0x14,0x23,0x23,0x22,0x13,0x22,0x35, + 0x35,0x34,0x33,0x33,0x32,0x15,0x15,0x14, + 0x23,0x23,0x22,0x35,0x35,0x34,0x33,0x33, + 0x32,0x15,0x15,0x14,0x23,0xEB,0xD1,0x08, + 0x2E,0x0B,0x21,0x0A,0xA4,0xA8,0x09,0x52, + 0x08,0xD2,0x28,0x08,0x28,0x72,0x28,0x28, + 0x04,0x28,0x28,0x94,0x28,0x28,0x04,0x28, + 0x28,0x14,0x01,0x53,0x01,0x34,0x0B,0x07, + 0x11,0x0F,0xF6,0xF7,0x0E,0x11,0x04,0x0E, + 0xFE,0xC9,0xFE,0xB0,0x16,0x03,0x15,0x16, + 0x33,0x16,0x16,0x33,0x16,0x16,0x33,0x16, + 0x16,0x33,0x16,0x00,0x00,0x02,0x00,0x26, + 0x00,0x00,0x02,0x3B,0x03,0x89,0x00,0x17, + 0x00,0x2A,0x00,0x00,0x33,0x22,0x26,0x34, + 0x37,0x01,0x21,0x22,0x35,0x35,0x34,0x33, + 0x21,0x32,0x16,0x14,0x07,0x01,0x21,0x32, + 0x15,0x15,0x14,0x23,0x03,0x22,0x27,0x27, + 0x26,0x35,0x34,0x32,0x17,0x17,0x37,0x36, + 0x32,0x15,0x14,0x07,0x07,0x06,0x23,0x3E, + 0x07,0x11,0x03,0x01,0x9A,0xFE,0x98,0x14, + 0x14,0x01,0xCA,0x06,0x10,0x03,0xFE,0x66, + 0x01,0x87,0x14,0x14,0xFE,0x1F,0x0F,0x38, + 0x06,0x2D,0x0E,0x3D,0x3F,0x0E,0x2D,0x06, + 0x39,0x0F,0x1F,0x26,0x16,0x05,0x02,0x2F, + 0x22,0x08,0x22,0x26,0x16,0x05,0xFD,0xD1, + 0x22,0x08,0x22,0x02,0xFB,0x16,0x58,0x0B, + 0x07,0x0E,0x0D,0x4A,0x4A,0x0D,0x0F,0x08, + 0x09,0x58,0x16,0x00,0x00,0x02,0x00,0x25, + 0x00,0x00,0x01,0xC1,0x02,0xD4,0x00,0x17, + 0x00,0x2A,0x00,0x00,0x33,0x22,0x26,0x34, + 0x37,0x01,0x21,0x22,0x35,0x35,0x34,0x33, + 0x21,0x32,0x16,0x14,0x07,0x01,0x21,0x32, + 0x15,0x15,0x14,0x23,0x03,0x22,0x27,0x27, + 0x26,0x35,0x34,0x32,0x17,0x17,0x37,0x36, + 0x32,0x15,0x14,0x07,0x07,0x06,0x23,0x3B, + 0x06,0x10,0x03,0x01,0x25,0xFF,0x00,0x14, + 0x14,0x01,0x5F,0x07,0x0D,0x02,0xFE,0xDC, + 0x01,0x13,0x14,0x14,0xBC,0x1F,0x0F,0x38, + 0x06,0x2D,0x0E,0x3D,0x3F,0x0E,0x2D,0x06, + 0x39,0x0F,0x1F,0x24,0x15,0x05,0x01,0x85, + 0x1E,0x0C,0x1E,0x25,0x15,0x04,0xFE,0x7B, + 0x1E,0x0C,0x1E,0x02,0x46,0x16,0x58,0x0A, + 0x08,0x0E,0x0D,0x4A,0x4A,0x0D,0x0F,0x08, + 0x09,0x58,0x16,0x00,0x00,0x01,0x00,0x0F, + 0xFF,0x31,0x01,0x59,0x02,0xF4,0x00,0x23, + 0x00,0x00,0x13,0x22,0x35,0x34,0x37,0x36, + 0x33,0x33,0x37,0x36,0x36,0x33,0x32,0x15, + 0x06,0x23,0x22,0x26,0x22,0x06,0x07,0x07, + 0x33,0x32,0x15,0x14,0x06,0x23,0x23,0x03, + 0x06,0x23,0x23,0x22,0x35,0x13,0x3F,0x11, + 0x03,0x04,0x14,0x28,0x0E,0x0B,0x57,0x33, + 0x45,0x0C,0x10,0x02,0x17,0x2B,0x21,0x06, + 0x0D,0x57,0x11,0x11,0x0A,0x57,0x58,0x03, + 0x28,0x04,0x25,0x58,0x01,0xB9,0x13,0x07, + 0x10,0x1E,0x69,0x4F,0x3B,0x1E,0x2F,0x05, + 0x1D,0x2D,0x61,0x14,0x1B,0x19,0xFD,0x8E, + 0x16,0x16,0x02,0x72,0x00,0x01,0x00,0x24, + 0x02,0x48,0x01,0x16,0x02,0xD6,0x00,0x12, + 0x00,0x00,0x13,0x06,0x22,0x35,0x34,0x37, + 0x37,0x36,0x33,0x33,0x32,0x17,0x17,0x16, + 0x15,0x14,0x22,0x27,0x27,0x5F,0x0E,0x2D, + 0x06,0x38,0x0F,0x1F,0x19,0x1F,0x0F,0x39, + 0x06,0x2D,0x0E,0x3F,0x02,0x55,0x0D,0x0E, + 0x08,0x0A,0x58,0x16,0x16,0x58,0x09,0x08, + 0x0F,0x0D,0x4A,0x00,0x00,0x01,0x00,0x23, + 0x02,0x46,0x01,0x15,0x02,0xD4,0x00,0x12, + 0x00,0x00,0x13,0x22,0x27,0x27,0x26,0x35, + 0x34,0x32,0x17,0x17,0x37,0x36,0x32,0x15, + 0x14,0x07,0x07,0x06,0x23,0x8F,0x1F,0x0F, + 0x38,0x06,0x2D,0x0E,0x3D,0x3F,0x0E,0x2D, + 0x06,0x39,0x0F,0x1F,0x02,0x46,0x16,0x58, + 0x0A,0x08,0x0E,0x0D,0x4A,0x4A,0x0D,0x0F, + 0x08,0x09,0x58,0x16,0x00,0x01,0x00,0x0D, + 0x02,0x49,0x01,0x2E,0x02,0xCB,0x00,0x13, + 0x00,0x00,0x00,0x06,0x22,0x26,0x35,0x34, + 0x33,0x32,0x17,0x16,0x17,0x16,0x33,0x32, + 0x37,0x36,0x36,0x33,0x32,0x15,0x01,0x2E, + 0x56,0x75,0x56,0x0F,0x0B,0x02,0x06,0x03, + 0x15,0x57,0x5F,0x0F,0x05,0x09,0x05,0x0F, + 0x02,0x86,0x3D,0x3D,0x36,0x0F,0x05,0x0E, + 0x06,0x27,0x2F,0x0E,0x03,0x0F,0x00,0x00, + 0x00,0x01,0x00,0x78,0x02,0x5F,0x00,0xCC, + 0x02,0xBE,0x00,0x0B,0x00,0x00,0x13,0x22, + 0x35,0x35,0x34,0x33,0x33,0x32,0x15,0x15, + 0x14,0x23,0xA0,0x28,0x28,0x04,0x28,0x28, + 0x02,0x5F,0x16,0x33,0x16,0x16,0x33,0x16, + 0x00,0x02,0x00,0x4C,0x02,0x34,0x00,0xF5, + 0x02,0xDD,0x00,0x07,0x00,0x0F,0x00,0x00, + 0x12,0x22,0x26,0x34,0x36,0x32,0x16,0x14, + 0x06,0x32,0x36,0x34,0x26,0x22,0x06,0x14, + 0xC3,0x46,0x31,0x31,0x46,0x32,0x6A,0x2A, + 0x1D,0x1D,0x2A,0x1C,0x02,0x34,0x31,0x46, + 0x32,0x32,0x46,0x0E,0x1C,0x2A,0x1D,0x1D, + 0x2A,0x00,0x00,0x00,0x00,0x01,0x00,0x36, + 0xFF,0x49,0x00,0xFE,0x00,0x0E,0x00,0x16, + 0x00,0x00,0x17,0x37,0x32,0x15,0x15,0x14, + 0x23,0x22,0x26,0x27,0x26,0x34,0x3E,0x02, + 0x33,0x33,0x32,0x15,0x14,0x06,0x15,0x14, + 0xB7,0x34,0x13,0x52,0x25,0x34,0x0B,0x12, + 0x04,0x0A,0x17,0x0F,0x09,0x12,0x0C,0x71, + 0x0A,0x19,0x09,0x2E,0x17,0x12,0x20,0x29, + 0x1C,0x21,0x16,0x0F,0x06,0x2A,0x0D,0x33, + 0x00,0x01,0x00,0x18,0x02,0x67,0x01,0x56, + 0x02,0xC4,0x00,0x11,0x00,0x00,0x12,0x26, + 0x22,0x06,0x22,0x26,0x35,0x34,0x36,0x32, + 0x16,0x32,0x36,0x32,0x16,0x15,0x14,0x06, + 0xCE,0x52,0x1A,0x22,0x16,0x12,0x44,0x44, + 0x51,0x20,0x1F,0x13,0x13,0x44,0x02,0x67, + 0x14,0x0D,0x15,0x09,0x13,0x25,0x14,0x0D, + 0x16,0x08,0x13,0x25,0x00,0x02,0x00,0x3B, + 0x02,0x5D,0x01,0x76,0x02,0xF0,0x00,0x09, + 0x00,0x13,0x00,0x00,0x00,0x0E,0x02,0x22, + 0x34,0x37,0x36,0x32,0x15,0x0E,0x03,0x22, + 0x34,0x37,0x36,0x32,0x15,0x01,0x76,0x13, + 0x3C,0x1F,0x3A,0x3A,0x0F,0x5F,0x93,0x13, + 0x3C,0x1F,0x3A,0x3A,0x0F,0x5F,0x02,0xDC, + 0x18,0x44,0x23,0x14,0x65,0x1A,0x0D,0x07, + 0x18,0x44,0x23,0x14,0x65,0x1A,0x0D,0x00, + 0x00,0x01,0x00,0x0E,0xFF,0xFE,0x02,0x50, + 0x02,0x0B,0x00,0x27,0x00,0x00,0x37,0x34, + 0x37,0x36,0x36,0x37,0x22,0x06,0x23,0x22, + 0x35,0x34,0x33,0x21,0x32,0x15,0x14,0x07, + 0x06,0x23,0x23,0x11,0x14,0x16,0x15,0x14, + 0x23,0x23,0x22,0x26,0x35,0x11,0x23,0x06, + 0x06,0x07,0x06,0x23,0x23,0x22,0x42,0x02, + 0x1B,0x28,0x05,0x2E,0x3A,0x02,0x14,0x94, + 0x01,0x96,0x18,0x03,0x02,0x1D,0x37,0x09, + 0x1A,0x18,0x1C,0x0F,0xC3,0x05,0x2A,0x1A, + 0x09,0x19,0x17,0x1C,0x13,0x03,0x06,0x52, + 0xF0,0x65,0x09,0x25,0x2C,0x13,0x05,0x1A, + 0x16,0xFE,0xD7,0x27,0x55,0x07,0x19,0x3D, + 0x57,0x01,0x31,0x63,0xFE,0x4B,0x19,0x00, + 0x00,0x01,0x00,0x00,0x00,0xE6,0x01,0xF4, + 0x01,0x2C,0x00,0x0B,0x00,0x00,0x37,0x22, + 0x35,0x35,0x34,0x33,0x21,0x32,0x15,0x15, + 0x14,0x23,0x14,0x14,0x14,0x01,0xCC,0x14, + 0x14,0xE6,0x1E,0x0A,0x1E,0x1E,0x0A,0x1E, + 0x00,0x01,0x00,0x00,0x00,0xE6,0x03,0xE8, + 0x01,0x2C,0x00,0x0B,0x00,0x00,0x37,0x22, + 0x35,0x35,0x34,0x33,0x21,0x32,0x15,0x15, + 0x14,0x23,0x14,0x14,0x14,0x03,0xC0,0x14, + 0x14,0xE6,0x1E,0x0A,0x1E,0x1E,0x0A,0x1E, + 0x00,0x01,0x00,0x3A,0x02,0x03,0x00,0xBE, + 0x02,0xE3,0x00,0x0C,0x00,0x00,0x13,0x22, + 0x35,0x34,0x36,0x32,0x15,0x14,0x07,0x06, + 0x15,0x14,0x23,0x62,0x28,0x49,0x3B,0x09, + 0x22,0x28,0x02,0x03,0x1C,0x51,0x73,0x0F, + 0x06,0x12,0x41,0x58,0x20,0x00,0x00,0x00, + 0x00,0x01,0x00,0x20,0x02,0x12,0x00,0xA4, + 0x02,0xF2,0x00,0x0C,0x00,0x00,0x12,0x06, + 0x22,0x35,0x34,0x37,0x36,0x35,0x34,0x33, + 0x33,0x32,0x15,0xA4,0x49,0x3B,0x09,0x22, + 0x28,0x09,0x28,0x02,0x85,0x73,0x0F,0x06, + 0x12,0x44,0x55,0x20,0x1C,0x00,0x00,0x00, + 0x00,0x01,0x00,0x0C,0xFF,0x8C,0x00,0x90, + 0x00,0x6C,0x00,0x0C,0x00,0x00,0x37,0x34, + 0x33,0x33,0x32,0x15,0x14,0x06,0x22,0x35, + 0x34,0x37,0x36,0x37,0x28,0x09,0x28,0x49, + 0x3B,0x09,0x22,0x4C,0x20,0x1C,0x51,0x73, + 0x0F,0x06,0x12,0x44,0x00,0x02,0x00,0x28, + 0x02,0x03,0x01,0x37,0x02,0xE3,0x00,0x0C, + 0x00,0x19,0x00,0x00,0x13,0x22,0x35,0x34, + 0x36,0x32,0x15,0x14,0x07,0x06,0x15,0x14, + 0x23,0x23,0x22,0x35,0x34,0x36,0x32,0x15, + 0x14,0x07,0x06,0x15,0x14,0x23,0xDB,0x28, + 0x49,0x3B,0x09,0x22,0x28,0x94,0x28,0x49, + 0x3B,0x09,0x22,0x28,0x02,0x03,0x1C,0x51, + 0x73,0x0F,0x06,0x12,0x41,0x58,0x20,0x1C, + 0x51,0x73,0x0F,0x06,0x12,0x41,0x58,0x20, + 0x00,0x02,0x00,0x22,0x02,0x12,0x01,0x31, + 0x02,0xF2,0x00,0x0C,0x00,0x19,0x00,0x00, + 0x00,0x06,0x22,0x35,0x34,0x37,0x36,0x35, + 0x34,0x33,0x33,0x32,0x15,0x06,0x06,0x22, + 0x35,0x34,0x37,0x36,0x35,0x34,0x33,0x33, + 0x32,0x15,0x01,0x31,0x49,0x3B,0x09,0x22, + 0x28,0x09,0x28,0x8B,0x49,0x3B,0x09,0x22, + 0x28,0x09,0x28,0x02,0x85,0x73,0x0F,0x06, + 0x12,0x44,0x55,0x20,0x1C,0x51,0x73,0x0F, + 0x06,0x12,0x44,0x55,0x20,0x1C,0x00,0x00, + 0x00,0x02,0x00,0x0C,0xFF,0x8C,0x01,0x1B, + 0x00,0x6C,0x00,0x0C,0x00,0x19,0x00,0x00, + 0x37,0x34,0x33,0x33,0x32,0x15,0x14,0x06, + 0x22,0x35,0x34,0x37,0x36,0x27,0x34,0x33, + 0x33,0x32,0x15,0x14,0x06,0x22,0x35,0x34, + 0x37,0x36,0xC2,0x28,0x09,0x28,0x49,0x3B, + 0x09,0x22,0x8B,0x28,0x09,0x28,0x49,0x3B, + 0x09,0x22,0x4C,0x20,0x1C,0x51,0x73,0x0F, + 0x06,0x12,0x44,0x55,0x20,0x1C,0x51,0x73, + 0x0F,0x06,0x12,0x44,0x00,0x01,0x00,0x31, + 0xFF,0x74,0x01,0xE6,0x02,0xBE,0x00,0x17, + 0x00,0x00,0x17,0x11,0x23,0x22,0x35,0x35, + 0x34,0x33,0x33,0x35,0x34,0x32,0x15,0x15, + 0x33,0x32,0x15,0x15,0x14,0x23,0x23,0x11, + 0x14,0x22,0xE3,0x9E,0x14,0x14,0x9E,0x52, + 0x9D,0x14,0x14,0x9D,0x52,0x76,0x02,0x1C, + 0x1E,0x14,0x1E,0xB2,0x16,0x16,0xB2,0x1E, + 0x14,0x1E,0xFD,0xE4,0x16,0x00,0x00,0x00, + 0x00,0x01,0x00,0x31,0xFF,0x74,0x01,0xE6, + 0x02,0xBE,0x00,0x27,0x00,0x00,0x37,0x22, + 0x35,0x35,0x34,0x33,0x33,0x11,0x23,0x22, + 0x35,0x35,0x34,0x33,0x33,0x35,0x34,0x32, + 0x15,0x15,0x33,0x32,0x15,0x15,0x14,0x23, + 0x23,0x11,0x33,0x32,0x15,0x15,0x14,0x23, + 0x23,0x15,0x14,0x22,0x35,0x35,0x45,0x14, + 0x14,0x9E,0x9E,0x14,0x14,0x9E,0x52,0x9D, + 0x14,0x14,0x9D,0x9D,0x14,0x14,0x9D,0x52, + 0x3C,0x1E,0x14,0x1E,0x01,0x1A,0x1E,0x14, + 0x1E,0xB2,0x16,0x16,0xB2,0x1E,0x14,0x1E, + 0xFE,0xE6,0x1E,0x14,0x1E,0xB2,0x16,0x16, + 0xB2,0x00,0x00,0x00,0x00,0x01,0x00,0x2A, + 0x00,0xC9,0x01,0x25,0x01,0xC4,0x00,0x07, + 0x00,0x00,0x36,0x22,0x26,0x34,0x36,0x32, + 0x16,0x14,0xDC,0x6A,0x48,0x49,0x69,0x49, + 0xC9,0x49,0x69,0x49,0x4A,0x68,0x00,0x00, + 0x00,0x03,0x00,0x33,0xFF,0xFE,0x02,0x35, + 0x00,0x6C,0x00,0x0B,0x00,0x17,0x00,0x23, + 0x00,0x00,0x25,0x35,0x34,0x33,0x33,0x32, + 0x15,0x15,0x14,0x23,0x23,0x22,0x27,0x35, + 0x34,0x33,0x33,0x32,0x15,0x15,0x14,0x23, + 0x23,0x22,0x27,0x35,0x34,0x33,0x33,0x32, + 0x15,0x15,0x14,0x23,0x23,0x22,0x01,0xD4, + 0x28,0x11,0x28,0x28,0x11,0x28,0xD0,0x28, + 0x11,0x28,0x28,0x11,0x28,0xD1,0x28,0x11, + 0x28,0x28,0x11,0x28,0x14,0x42,0x16,0x16, + 0x42,0x16,0x16,0x42,0x16,0x16,0x42,0x16, + 0x16,0x42,0x16,0x16,0x42,0x16,0x00,0x00, + 0x00,0x07,0x00,0x40,0xFF,0xF9,0x03,0xD2, + 0x02,0xC2,0x00,0x0F,0x00,0x17,0x00,0x24, + 0x00,0x2C,0x00,0x34,0x00,0x41,0x00,0x4E, + 0x00,0x00,0x37,0x34,0x37,0x01,0x36,0x33, + 0x33,0x32,0x15,0x14,0x07,0x01,0x06,0x23, + 0x23,0x22,0x13,0x22,0x10,0x33,0x32,0x16, + 0x14,0x06,0x27,0x32,0x35,0x34,0x27,0x26, + 0x22,0x06,0x07,0x06,0x14,0x16,0x16,0x01, + 0x22,0x10,0x33,0x32,0x16,0x14,0x06,0x21, + 0x22,0x10,0x33,0x32,0x16,0x14,0x06,0x36, + 0x06,0x14,0x16,0x16,0x33,0x32,0x35,0x34, + 0x27,0x26,0x22,0x06,0x04,0x06,0x14,0x16, + 0x16,0x33,0x32,0x35,0x34,0x27,0x26,0x22, + 0x06,0x8D,0x04,0x01,0x75,0x0A,0x1E,0x05, + 0x18,0x04,0xFE,0x8B,0x0A,0x1E,0x05,0x18, + 0x3C,0x89,0x89,0x39,0x50,0x50,0x39,0x49, + 0x21,0x10,0x2F,0x1F,0x07,0x0A,0x07,0x22, + 0x02,0x9E,0x89,0x89,0x39,0x50,0x50,0xFE, + 0x8F,0x89,0x89,0x39,0x50,0x50,0xBC,0x04, + 0x07,0x22,0x1E,0x49,0x21,0x10,0x2F,0x1F, + 0xFE,0xBB,0x04,0x07,0x22,0x1E,0x49,0x21, + 0x10,0x2F,0x1F,0x02,0x05,0x05,0x02,0xA3, + 0x13,0x09,0x02,0x08,0xFD,0x5D,0x13,0x01, + 0x84,0x01,0x45,0x49,0xB5,0x47,0x37,0x6A, + 0x4F,0x15,0x0A,0x14,0x12,0x1D,0x48,0x29, + 0x24,0xFE,0x47,0x01,0x45,0x49,0xB5,0x47, + 0x01,0x45,0x49,0xB5,0x47,0xD7,0x20,0x33, + 0x29,0x24,0x6A,0x4F,0x15,0x0A,0x14,0x24, + 0x20,0x33,0x29,0x24,0x6A,0x4F,0x15,0x0A, + 0x14,0x00,0x00,0x00,0x00,0x01,0x00,0x2E, + 0x00,0x3D,0x00,0xF6,0x01,0xC6,0x00,0x10, + 0x00,0x00,0x36,0x34,0x37,0x37,0x36,0x32, + 0x16,0x14,0x07,0x07,0x17,0x16,0x14,0x06, + 0x22,0x27,0x27,0x2E,0x0D,0x82,0x0B,0x15, + 0x19,0x08,0x6F,0x6F,0x08,0x18,0x16,0x0B, + 0x82,0xF6,0x18,0x10,0x9C,0x0C,0x14,0x15, + 0x0B,0x90,0x91,0x0B,0x12,0x17,0x0D,0x9C, + 0x00,0x01,0x00,0x36,0x00,0x3D,0x00,0xFE, + 0x01,0xC6,0x00,0x10,0x00,0x00,0x36,0x22, + 0x26,0x34,0x37,0x37,0x27,0x26,0x34,0x36, + 0x32,0x17,0x17,0x16,0x14,0x07,0x07,0x64, + 0x16,0x18,0x08,0x6F,0x6F,0x08,0x19,0x15, + 0x0B,0x82,0x0D,0x0D,0x82,0x3D,0x17,0x12, + 0x0B,0x91,0x90,0x0B,0x15,0x14,0x0C,0x9C, + 0x10,0x18,0x10,0x9C,0x00,0x01,0xFF,0xB4, + 0xFF,0xFD,0x01,0x5F,0x02,0xBF,0x00,0x0F, + 0x00,0x00,0x07,0x23,0x22,0x35,0x34,0x37, + 0x01,0x36,0x33,0x33,0x32,0x15,0x14,0x07, + 0x01,0x06,0x2E,0x04,0x1A,0x03,0x01,0x69, + 0x0C,0x17,0x04,0x18,0x03,0xFE,0x97,0x0C, + 0x03,0x14,0x07,0x08,0x02,0x88,0x17,0x14, + 0x07,0x08,0xFD,0x78,0x17,0x00,0x00,0x00, + 0x00,0x01,0x00,0x00,0xFF,0xFA,0x02,0x26, + 0x02,0xC2,0x00,0x40,0x00,0x00,0x37,0x22, + 0x35,0x35,0x34,0x33,0x33,0x26,0x34,0x37, + 0x23,0x22,0x35,0x35,0x34,0x33,0x33,0x36, + 0x36,0x33,0x32,0x16,0x15,0x14,0x06,0x23, + 0x22,0x26,0x26,0x23,0x22,0x06,0x07,0x21, + 0x32,0x15,0x15,0x14,0x23,0x21,0x06,0x14, + 0x17,0x21,0x32,0x15,0x15,0x14,0x23,0x21, + 0x16,0x16,0x33,0x32,0x36,0x36,0x33,0x32, + 0x16,0x15,0x14,0x06,0x23,0x22,0x27,0x14, + 0x14,0x14,0x31,0x01,0x01,0x31,0x14,0x14, + 0x39,0x14,0x97,0x75,0x40,0x6B,0x19,0x09, + 0x02,0x22,0x41,0x26,0x52,0x62,0x11,0x01, + 0x16,0x14,0x14,0xFE,0xE2,0x01,0x01,0x01, + 0x1E,0x14,0x14,0xFE,0xEA,0x11,0x64,0x48, + 0x2A,0x4A,0x2A,0x02,0x09,0x1A,0x72,0x49, + 0xFB,0x25,0xEC,0x1E,0x07,0x1E,0x0F,0x3F, + 0x0F,0x1E,0x07,0x1E,0x78,0x7B,0x29,0x15, + 0x0D,0x29,0x16,0x16,0x51,0x5A,0x1E,0x07, + 0x1E,0x0F,0x40,0x0E,0x1E,0x07,0x1E,0x57, + 0x53,0x19,0x19,0x29,0x09,0x17,0x31,0xF2, + 0x00,0x02,0x00,0x1E,0x01,0x31,0x02,0xD5, + 0x02,0xBD,0x00,0x22,0x00,0x36,0x00,0x00, + 0x01,0x11,0x34,0x33,0x33,0x32,0x1F,0x02, + 0x37,0x37,0x36,0x33,0x33,0x32,0x15,0x11, + 0x14,0x23,0x23,0x22,0x35,0x11,0x07,0x06, + 0x23,0x23,0x22,0x27,0x27,0x11,0x14,0x23, + 0x23,0x22,0x23,0x22,0x35,0x11,0x23,0x22, + 0x35,0x35,0x34,0x33,0x21,0x32,0x15,0x15, + 0x14,0x23,0x23,0x11,0x14,0x23,0x01,0x60, + 0x16,0x15,0x12,0x05,0x6B,0x0E,0x0F,0x6A, + 0x07,0x11,0x13,0x16,0x16,0x04,0x17,0x71, + 0x04,0x08,0x17,0x08,0x04,0x73,0x17,0x04, + 0x16,0xB4,0x17,0x6C,0x0B,0x0B,0x01,0x08, + 0x0B,0x0B,0x6A,0x17,0x01,0x3D,0x01,0x74, + 0x0C,0x0A,0xB9,0x23,0x20,0xBC,0x0A,0x0C, + 0xFE,0x8C,0x0C,0x0C,0x01,0x2F,0xC5,0x07, + 0x07,0xC8,0xFE,0xCE,0x0C,0x0C,0x01,0x54, + 0x11,0x09,0x11,0x11,0x09,0x11,0xFE,0xAC, + 0x0C,0x00,0x00,0x00,0x00,0x01,0x00,0x29, + 0x00,0x00,0x02,0xB1,0x02,0xC2,0x00,0x29, + 0x00,0x00,0x37,0x35,0x34,0x33,0x33,0x17, + 0x26,0x10,0x36,0x20,0x16,0x10,0x07,0x37, + 0x33,0x32,0x15,0x15,0x14,0x23,0x23,0x22, + 0x35,0x35,0x34,0x37,0x36,0x11,0x34,0x26, + 0x22,0x06,0x15,0x10,0x17,0x16,0x15,0x15, + 0x14,0x23,0x23,0x22,0x29,0x14,0x26,0x3B, + 0x65,0x9D,0x01,0x2E,0x9E,0x66,0x3B,0x26, + 0x14,0x14,0xED,0x14,0x07,0xA4,0x70,0xD4, + 0x6F,0xA3,0x07,0x14,0xED,0x14,0x1E,0x08, + 0x1E,0x04,0x5D,0x01,0x72,0xB3,0xB3,0xFE, + 0x8E,0x5D,0x04,0x1E,0x08,0x1E,0x1E,0x04, + 0x10,0x02,0x2A,0x01,0x02,0x89,0x8D,0x8D, + 0x89,0xFE,0xFD,0x29,0x02,0x10,0x04,0x1E, + 0x00,0x01,0x00,0x00,0x00,0x01,0x02,0xEF, + 0x02,0x12,0x00,0x1B,0x00,0x00,0x11,0x35, + 0x34,0x37,0x37,0x36,0x33,0x33,0x32,0x14, + 0x07,0x07,0x21,0x32,0x15,0x15,0x14,0x23, + 0x21,0x17,0x16,0x14,0x23,0x23,0x22,0x27, + 0x27,0x26,0x07,0xE9,0x0E,0x14,0x37,0x13, + 0x0A,0xD4,0x02,0x5B,0x16,0x16,0xFD,0xA5, + 0xD5,0x0A,0x13,0x37,0x14,0x0E,0xEA,0x07, + 0x01,0x08,0x04,0x09,0x07,0xE8,0x0E,0x0B, + 0x0A,0xD0,0x1E,0x0A,0x1E,0xD1,0x0A,0x0B, + 0x0E,0xE9,0x07,0x00,0x00,0x01,0xFF,0xFF, + 0xFF,0xFC,0x02,0x10,0x02,0xC4,0x00,0x1B, + 0x00,0x00,0x03,0x35,0x34,0x32,0x17,0x17, + 0x11,0x34,0x33,0x33,0x32,0x15,0x11,0x37, + 0x36,0x32,0x15,0x15,0x14,0x07,0x07,0x06, + 0x23,0x23,0x22,0x27,0x27,0x26,0x01,0x0B, + 0x0A,0xD1,0x1E,0x0A,0x1E,0xD0,0x0A,0x0B, + 0x0E,0xE8,0x07,0x09,0x04,0x09,0x07,0xE9, + 0x0E,0x01,0x0F,0x37,0x13,0x0A,0xD5,0x02, + 0x34,0x16,0x16,0xFD,0xCC,0xD4,0x0A,0x13, + 0x37,0x14,0x0E,0xE9,0x07,0x07,0xEA,0x0E, + 0x00,0x01,0x00,0x00,0x00,0x01,0x02,0xEE, + 0x02,0x12,0x00,0x1B,0x00,0x00,0x37,0x22, + 0x35,0x35,0x34,0x33,0x21,0x27,0x26,0x34, + 0x33,0x33,0x32,0x17,0x17,0x16,0x15,0x15, + 0x14,0x07,0x07,0x06,0x23,0x23,0x22,0x34, + 0x37,0x37,0x16,0x16,0x16,0x02,0x5A,0xD5, + 0x0A,0x13,0x37,0x14,0x0E,0xEA,0x07,0x07, + 0xE9,0x0E,0x14,0x37,0x13,0x0A,0xD4,0xE6, + 0x1E,0x0A,0x1E,0xD1,0x0A,0x0B,0x0E,0xE9, + 0x07,0x09,0x04,0x09,0x07,0xE8,0x0E,0x0B, + 0x0A,0xD0,0x00,0x00,0x00,0x01,0x00,0x00, + 0xFF,0xFE,0x02,0x11,0x02,0xC6,0x00,0x1B, + 0x00,0x00,0x37,0x11,0x07,0x06,0x22,0x35, + 0x35,0x34,0x37,0x37,0x36,0x33,0x33,0x32, + 0x17,0x17,0x16,0x15,0x15,0x14,0x22,0x27, + 0x27,0x11,0x14,0x23,0x23,0x22,0xE5,0xD0, + 0x0A,0x0B,0x0E,0xE8,0x07,0x09,0x04,0x09, + 0x07,0xE9,0x0E,0x0B,0x0A,0xD1,0x1E,0x0A, + 0x1E,0x14,0x02,0x34,0xD4,0x0A,0x13,0x37, + 0x14,0x0E,0xE9,0x07,0x07,0xEA,0x0E,0x14, + 0x37,0x13,0x0A,0xD5,0xFD,0xCC,0x16,0x00, + 0x00,0x02,0x00,0x28,0xFF,0xFA,0x01,0xE0, + 0x02,0xE2,0x00,0x1E,0x00,0x26,0x00,0x00, + 0x36,0x26,0x34,0x36,0x37,0x36,0x33,0x32, + 0x17,0x34,0x26,0x23,0x22,0x07,0x06,0x22, + 0x26,0x35,0x34,0x36,0x33,0x32,0x16,0x15, + 0x14,0x06,0x07,0x06,0x23,0x22,0x27,0x12, + 0x06,0x14,0x16,0x32,0x36,0x37,0x26,0x4F, + 0x27,0x2A,0x20,0x41,0x42,0x55,0x33,0x6A, + 0x4C,0x2E,0x24,0x0C,0x0B,0x18,0x5D,0x31, + 0x76,0x96,0x30,0x27,0x49,0x52,0x41,0x3E, + 0x5C,0x47,0x35,0x73,0x49,0x06,0x32,0x39, + 0x55,0x70,0x56,0x18,0x32,0x37,0x89,0xA9, + 0x17,0x07,0x22,0x0A,0x16,0x25,0xD4,0xBD, + 0x62,0x8E,0x24,0x43,0x2A,0x01,0x34,0x5E, + 0x6E,0x4F,0x86,0x63,0x32,0x00,0x00,0x00, + 0x00,0x02,0x00,0x22,0x00,0x00,0x02,0xA1, + 0x02,0xC6,0x00,0x0F,0x00,0x13,0x00,0x00, + 0x37,0x34,0x37,0x01,0x36,0x33,0x33,0x32, + 0x17,0x01,0x16,0x15,0x14,0x23,0x21,0x22, + 0x37,0x21,0x03,0x23,0x22,0x08,0x01,0x08, + 0x0A,0x19,0x1A,0x19,0x0A,0x01,0x07,0x08, + 0x1E,0xFD,0xBD,0x1E,0x52,0x01,0xD7,0xE8, + 0x05,0x1E,0x12,0x13,0x02,0x6C,0x17,0x17, + 0xFD,0x94,0x15,0x10,0x1E,0x44,0x02,0x27, + 0x00,0x01,0x00,0x18,0xFF,0x98,0x02,0xD5, + 0x02,0xBC,0x00,0x1B,0x00,0x00,0x17,0x11, + 0x23,0x22,0x35,0x35,0x34,0x33,0x21,0x32, + 0x15,0x15,0x14,0x23,0x23,0x11,0x14,0x23, + 0x23,0x22,0x35,0x11,0x21,0x11,0x14,0x23, + 0x23,0x22,0x93,0x67,0x14,0x14,0x02,0x95, + 0x14,0x14,0x67,0x28,0x06,0x28,0xFE,0xE5, + 0x28,0x06,0x28,0x52,0x02,0xC6,0x1E,0x0C, + 0x1E,0x1E,0x0C,0x1E,0xFD,0x3A,0x16,0x16, + 0x02,0xC6,0xFD,0x3A,0x16,0x00,0x00,0x00, + 0x00,0x01,0x00,0x17,0xFF,0x9A,0x02,0x3C, + 0x02,0xBC,0x00,0x1D,0x00,0x00,0x13,0x26, + 0x34,0x33,0x21,0x32,0x15,0x15,0x14,0x23, + 0x21,0x15,0x13,0x16,0x14,0x07,0x03,0x17, + 0x21,0x32,0x15,0x15,0x14,0x23,0x21,0x22, + 0x35,0x34,0x37,0x01,0x2F,0x0C,0x1E,0x01, + 0xCB,0x1E,0x1E,0xFE,0x9A,0xD7,0x08,0x08, + 0xEC,0x01,0x01,0x8C,0x1E,0x1E,0xFE,0x17, + 0x1E,0x0D,0x01,0x07,0x02,0x7E,0x10,0x2E, + 0x1E,0x0C,0x1E,0x04,0xFE,0xDC,0x09,0x18, + 0x09,0xFE,0xD1,0x04,0x1E,0x19,0x1E,0x1E, + 0x13,0x11,0x01,0x50,0x00,0x01,0x00,0x26, + 0x00,0xBA,0x02,0x0A,0x01,0x03,0x00,0x0B, + 0x00,0x00,0x37,0x22,0x35,0x35,0x34,0x33, + 0x21,0x32,0x15,0x15,0x14,0x23,0x3A,0x14, + 0x14,0x01,0xBC,0x14,0x14,0xBA,0x1E,0x0D, + 0x1E,0x1E,0x0D,0x1E,0x00,0x01,0x00,0x24, + 0xFF,0x6A,0x02,0x71,0x03,0x2D,0x00,0x1E, + 0x00,0x00,0x13,0x22,0x27,0x26,0x34,0x36, + 0x37,0x36,0x33,0x32,0x17,0x1E,0x02,0x17, + 0x13,0x36,0x33,0x33,0x32,0x15,0x14,0x07, + 0x03,0x06,0x23,0x23,0x22,0x27,0x03,0x06, + 0x3C,0x0C,0x04,0x08,0x1C,0x23,0x4B,0x07, + 0x0F,0x07,0x11,0x53,0x1B,0x0B,0xCB,0x05, + 0x22,0x0C,0x1E,0x01,0xE8,0x05,0x1E,0x1E, + 0x1D,0x08,0xA2,0x3F,0x01,0x10,0x0D,0x16, + 0x12,0x0B,0x0E,0x1E,0x15,0x32,0xE4,0x4B, + 0x2C,0x03,0x3E,0x15,0x0D,0x05,0x03,0xFC, + 0x67,0x15,0x15,0x01,0xA9,0x18,0x00,0x00, + 0x00,0x03,0x00,0x31,0x00,0x73,0x02,0xE2, + 0x01,0xBC,0x00,0x14,0x00,0x1F,0x00,0x28, + 0x00,0x00,0x24,0x06,0x22,0x26,0x34,0x36, + 0x33,0x32,0x17,0x3E,0x02,0x37,0x36,0x32, + 0x16,0x14,0x06,0x23,0x22,0x27,0x16,0x16, + 0x32,0x36,0x34,0x26,0x23,0x22,0x06,0x06, + 0x07,0x07,0x32,0x37,0x26,0x23,0x22,0x06, + 0x14,0x16,0x01,0x59,0x55,0x77,0x5C,0x5D, + 0x46,0x5C,0x5E,0x05,0x32,0x13,0x16,0x25, + 0x78,0x57,0x60,0x40,0x58,0x61,0x57,0x40, + 0x4F,0x34,0x36,0x2B,0x19,0x38,0x22,0x22, + 0xD9,0x42,0x53,0x49,0x51,0x2B,0x35,0x39, + 0xB0,0x3D,0x5E,0x8D,0x5E,0x74,0x05,0x34, + 0x10,0x10,0x1B,0x59,0x92,0x5E,0x76,0x0A, + 0x30,0x3F,0x5A,0x3B,0x22,0x22,0x25,0x6B, + 0x65,0x6F,0x3E,0x5A,0x3C,0x00,0x00,0x00, + 0x00,0x01,0x00,0x0E,0xFF,0x61,0x01,0x69, + 0x03,0x67,0x00,0x17,0x00,0x00,0x17,0x16, + 0x33,0x32,0x36,0x34,0x02,0x35,0x34,0x33, + 0x32,0x14,0x23,0x26,0x23,0x22,0x06,0x14, + 0x12,0x15,0x14,0x23,0x22,0x34,0x1E,0x14, + 0x0D,0x31,0x2C,0x0E,0x96,0x45,0x10,0x14, + 0x0D,0x31,0x2C,0x0E,0x96,0x45,0x5F,0x06, + 0x5F,0xBD,0x01,0x65,0x4F,0xFC,0x40,0x06, + 0x5F,0xB8,0xFE,0x99,0x52,0xFC,0x40,0x00, + 0x00,0x02,0x00,0x4F,0x00,0x63,0x01,0xD4, + 0x01,0x6B,0x00,0x11,0x00,0x24,0x00,0x00, + 0x12,0x26,0x35,0x34,0x36,0x32,0x16,0x32, + 0x36,0x32,0x16,0x15,0x14,0x06,0x22,0x26, + 0x22,0x06,0x07,0x34,0x36,0x32,0x16,0x32, + 0x36,0x32,0x16,0x15,0x14,0x06,0x22,0x26, + 0x22,0x06,0x23,0x22,0x26,0x5D,0x0E,0x50, + 0x57,0x6C,0x26,0x2A,0x10,0x12,0x50,0x58, + 0x6B,0x26,0x2A,0x22,0x50,0x57,0x6C,0x26, + 0x2A,0x10,0x12,0x50,0x58,0x6B,0x26,0x2A, + 0x05,0x0F,0x0E,0x01,0x16,0x1A,0x07,0x11, + 0x23,0x1A,0x0B,0x12,0x0E,0x12,0x23,0x1A, + 0x0B,0x83,0x11,0x23,0x1A,0x0B,0x12,0x0E, + 0x12,0x23,0x1A,0x0B,0x1A,0x00,0x00,0x00, + 0x00,0x01,0x00,0x30,0x00,0x0A,0x02,0x00, + 0x01,0xAF,0x00,0x2F,0x00,0x00,0x37,0x34, + 0x37,0x37,0x23,0x22,0x35,0x35,0x34,0x33, + 0x33,0x37,0x23,0x22,0x35,0x35,0x34,0x33, + 0x21,0x37,0x36,0x33,0x33,0x32,0x15,0x14, + 0x07,0x07,0x33,0x32,0x15,0x15,0x14,0x23, + 0x23,0x07,0x33,0x32,0x15,0x15,0x14,0x23, + 0x23,0x07,0x06,0x23,0x23,0x22,0x5E,0x09, + 0x30,0x49,0x1E,0x1E,0x7F,0x4D,0xCC,0x1E, + 0x1E,0x01,0x02,0x3D,0x0E,0x17,0x0B,0x19, + 0x08,0x2D,0x41,0x1E,0x1E,0x77,0x4D,0xC4, + 0x1E,0x1E,0xFA,0x40,0x0E,0x17,0x0B,0x1A, + 0x1B,0x09,0x0B,0x3C,0x1E,0x08,0x1E,0x60, + 0x1E,0x07,0x1E,0x4B,0x12,0x12,0x0A,0x09, + 0x38,0x1E,0x07,0x1E,0x60,0x1E,0x08,0x1E, + 0x4F,0x12,0x00,0x00,0x00,0x02,0x00,0x30, + 0x00,0x00,0x02,0x06,0x02,0x28,0x00,0x16, + 0x00,0x22,0x00,0x00,0x13,0x35,0x34,0x37, + 0x25,0x36,0x33,0x32,0x15,0x15,0x14,0x07, + 0x05,0x05,0x16,0x15,0x15,0x14,0x23,0x22, + 0x27,0x25,0x26,0x03,0x35,0x34,0x33,0x21, + 0x32,0x15,0x15,0x14,0x23,0x21,0x22,0x31, + 0x17,0x01,0x9B,0x07,0x08,0x14,0x17,0xFE, + 0x9C,0x01,0x64,0x17,0x14,0x08,0x07,0xFE, + 0x65,0x17,0x01,0x1E,0x01,0x9A,0x1E,0x1E, + 0xFE,0x66,0x1E,0x01,0x43,0x11,0x19,0x0A, + 0xAE,0x03,0x1A,0x0E,0x1A,0x09,0x91,0x92, + 0x0A,0x19,0x0E,0x1A,0x03,0xAE,0x0A,0xFE, + 0xF4,0x0D,0x1E,0x1E,0x0D,0x1E,0x00,0x00, + 0x00,0x02,0x00,0x30,0x00,0x00,0x02,0x06, + 0x02,0x28,0x00,0x16,0x00,0x22,0x00,0x00, + 0x37,0x22,0x35,0x35,0x34,0x37,0x25,0x25, + 0x26,0x35,0x35,0x34,0x33,0x32,0x17,0x05, + 0x16,0x15,0x15,0x14,0x07,0x05,0x06,0x07, + 0x35,0x34,0x33,0x21,0x32,0x15,0x15,0x14, + 0x23,0x21,0x22,0x44,0x14,0x17,0x01,0x64, + 0xFE,0x9C,0x17,0x14,0x08,0x07,0x01,0x9B, + 0x17,0x17,0xFE,0x65,0x07,0x1C,0x1E,0x01, + 0x9A,0x1E,0x1E,0xFE,0x66,0x1E,0x6F,0x1A, + 0x0E,0x19,0x0A,0x92,0x91,0x09,0x1A,0x0E, + 0x1A,0x03,0xAE,0x0A,0x19,0x11,0x19,0x0A, + 0xAE,0x03,0x51,0x0D,0x1E,0x1E,0x0D,0x1E, + 0x00,0x02,0x00,0x37,0xFF,0xE7,0x01,0xFC, + 0x02,0xCF,0x00,0x13,0x00,0x17,0x00,0x00, + 0x12,0x34,0x37,0x13,0x36,0x33,0x33,0x32, + 0x17,0x13,0x16,0x14,0x07,0x03,0x06,0x23, + 0x23,0x22,0x27,0x03,0x13,0x13,0x03,0x03, + 0x37,0x06,0xB0,0x0B,0x18,0x13,0x17,0x0C, + 0xB0,0x06,0x06,0xB0,0x0C,0x17,0x13,0x18, + 0x0B,0xB0,0xDC,0x9B,0x9B,0x9A,0x01,0x52, + 0x12,0x0B,0x01,0x4B,0x15,0x15,0xFE,0xB5, + 0x0B,0x12,0x0C,0xFE,0xB6,0x15,0x15,0x01, + 0x4B,0xFE,0xEA,0x01,0x2A,0x01,0x29,0xFE, + 0xD7,0x00,0x00,0x00,0x00,0x03,0x00,0x30, + 0xFF,0xFE,0x01,0xDD,0x02,0xF4,0x00,0x24, + 0x00,0x30,0x00,0x3C,0x00,0x00,0x37,0x11, + 0x23,0x22,0x35,0x35,0x34,0x33,0x33,0x35, + 0x34,0x37,0x36,0x33,0x32,0x15,0x14,0x06, + 0x23,0x22,0x26,0x22,0x06,0x15,0x15,0x33, + 0x32,0x15,0x15,0x14,0x23,0x23,0x11,0x14, + 0x23,0x23,0x22,0x01,0x22,0x35,0x35,0x34, + 0x33,0x33,0x32,0x15,0x15,0x14,0x23,0x03, + 0x11,0x34,0x33,0x33,0x32,0x15,0x11,0x14, + 0x23,0x23,0x22,0x6C,0x28,0x14,0x14,0x28, + 0x2E,0x27,0x2C,0x49,0x0C,0x09,0x02,0x18, + 0x2B,0x1C,0x57,0x14,0x14,0x57,0x28,0x04, + 0x28,0x01,0x3D,0x28,0x28,0x0C,0x28,0x28, + 0x30,0x28,0x04,0x28,0x28,0x04,0x28,0x14, + 0x01,0xAF,0x1E,0x0C,0x1E,0x5F,0x56,0x1C, + 0x18,0x1E,0x0A,0x25,0x05,0x1D,0x2D,0x57, + 0x1E,0x0C,0x1E,0xFE,0x51,0x16,0x02,0x8B, + 0x16,0x3B,0x16,0x16,0x3B,0x16,0xFD,0x8B, + 0x01,0xE3,0x16,0x16,0xFE,0x1D,0x16,0x00, + 0x00,0x02,0x00,0x30,0xFF,0xFA,0x02,0x46, + 0x02,0xF4,0x00,0x24,0x00,0x38,0x00,0x00, + 0x37,0x11,0x23,0x22,0x35,0x35,0x34,0x33, + 0x33,0x35,0x34,0x37,0x36,0x33,0x32,0x15, + 0x14,0x06,0x23,0x22,0x26,0x22,0x06,0x15, + 0x15,0x33,0x32,0x15,0x15,0x14,0x23,0x23, + 0x11,0x14,0x23,0x23,0x22,0x25,0x11,0x34, + 0x33,0x33,0x32,0x15,0x11,0x14,0x33,0x32, + 0x36,0x33,0x32,0x16,0x15,0x14,0x23,0x22, + 0x26,0x6C,0x28,0x14,0x14,0x28,0x2E,0x27, + 0x2C,0x49,0x0C,0x09,0x02,0x18,0x2B,0x1C, + 0x57,0x14,0x14,0x57,0x28,0x04,0x28,0x01, + 0x10,0x28,0x04,0x28,0x36,0x11,0x18,0x02, + 0x09,0x0C,0x49,0x32,0x4F,0x14,0x01,0xAF, + 0x1E,0x0C,0x1E,0x5F,0x56,0x1C,0x18,0x1E, + 0x0A,0x25,0x05,0x1D,0x2D,0x57,0x1E,0x0C, + 0x1E,0xFE,0x51,0x16,0x86,0x02,0x56,0x16, + 0x16,0xFD,0xB2,0x4A,0x05,0x25,0x0A,0x1E, + 0x3D,0x00,0x00,0x00,0x00,0x00,0x00,0x1E, + 0x01,0x6E,0x00,0x01,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x59,0x00,0x00,0x00,0x01, + 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x04, + 0x00,0x59,0x00,0x01,0x00,0x00,0x00,0x00, + 0x00,0x02,0x00,0x07,0x00,0x5D,0x00,0x01, + 0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x18, + 0x00,0x64,0x00,0x01,0x00,0x00,0x00,0x00, + 0x00,0x04,0x00,0x04,0x00,0x59,0x00,0x01, + 0x00,0x00,0x00,0x00,0x00,0x05,0x00,0x0D, + 0x00,0x7C,0x00,0x01,0x00,0x00,0x00,0x00, + 0x00,0x06,0x00,0x0C,0x00,0x89,0x00,0x01, + 0x00,0x00,0x00,0x00,0x00,0x07,0x00,0x24, + 0x00,0x95,0x00,0x01,0x00,0x00,0x00,0x00, + 0x00,0x08,0x00,0x0C,0x00,0xB9,0x00,0x01, + 0x00,0x00,0x00,0x00,0x00,0x09,0x00,0x0D, + 0x00,0xC5,0x00,0x01,0x00,0x00,0x00,0x00, + 0x00,0x0A,0x00,0xEC,0x00,0xD2,0x00,0x01, + 0x00,0x00,0x00,0x00,0x00,0x0B,0x00,0x14, + 0x01,0xBE,0x00,0x01,0x00,0x00,0x00,0x00, + 0x00,0x0C,0x00,0x14,0x01,0xBE,0x00,0x01, + 0x00,0x00,0x00,0x00,0x00,0x0D,0x00,0x90, + 0x01,0xD2,0x00,0x01,0x00,0x00,0x00,0x00, + 0x00,0x0E,0x00,0x1A,0x02,0x62,0x00,0x03, + 0x00,0x01,0x04,0x09,0x00,0x00,0x00,0xB2, + 0x02,0x7C,0x00,0x03,0x00,0x01,0x04,0x09, + 0x00,0x01,0x00,0x08,0x03,0x2E,0x00,0x03, + 0x00,0x01,0x04,0x09,0x00,0x02,0x00,0x0E, + 0x03,0x36,0x00,0x03,0x00,0x01,0x04,0x09, + 0x00,0x03,0x00,0x30,0x03,0x44,0x00,0x03, + 0x00,0x01,0x04,0x09,0x00,0x04,0x00,0x08, + 0x03,0x2E,0x00,0x03,0x00,0x01,0x04,0x09, + 0x00,0x05,0x00,0x1A,0x03,0x74,0x00,0x03, + 0x00,0x01,0x04,0x09,0x00,0x06,0x00,0x18, + 0x03,0x8E,0x00,0x03,0x00,0x01,0x04,0x09, + 0x00,0x07,0x00,0x48,0x03,0xA6,0x00,0x03, + 0x00,0x01,0x04,0x09,0x00,0x08,0x00,0x18, + 0x03,0xEE,0x00,0x03,0x00,0x01,0x04,0x09, + 0x00,0x09,0x00,0x1A,0x04,0x06,0x00,0x03, + 0x00,0x01,0x04,0x09,0x00,0x0A,0x01,0xD8, + 0x04,0x20,0x00,0x03,0x00,0x01,0x04,0x09, + 0x00,0x0B,0x00,0x28,0x05,0xF8,0x00,0x03, + 0x00,0x01,0x04,0x09,0x00,0x0C,0x00,0x28, + 0x05,0xF8,0x00,0x03,0x00,0x01,0x04,0x09, + 0x00,0x0D,0x01,0x20,0x06,0x20,0x00,0x03, + 0x00,0x01,0x04,0x09,0x00,0x0E,0x00,0x34, + 0x07,0x40,0x43,0x6F,0x70,0x79,0x72,0x69, + 0x67,0x68,0x74,0x20,0x28,0x63,0x29,0x20, + 0x32,0x30,0x31,0x31,0x20,0x62,0x79,0x20, + 0x4F,0x6D,0x6E,0x69,0x62,0x75,0x73,0x2D, + 0x54,0x79,0x70,0x65,0x20,0x28,0x77,0x77, + 0x77,0x2E,0x6F,0x6D,0x6E,0x69,0x62,0x75, + 0x73,0x2D,0x74,0x79,0x70,0x65,0x2E,0x63, + 0x6F,0x6D,0x29,0x20,0x77,0x69,0x74,0x68, + 0x20,0x52,0x65,0x73,0x65,0x72,0x76,0x65, + 0x64,0x20,0x46,0x6F,0x6E,0x74,0x20,0x4E, + 0x61,0x6D,0x65,0x20,0x22,0x41,0x73,0x61, + 0x70,0x22,0x2E,0x41,0x73,0x61,0x70,0x52, + 0x65,0x67,0x75,0x6C,0x61,0x72,0x4F,0x6D, + 0x6E,0x69,0x62,0x75,0x73,0x2D,0x54,0x79, + 0x70,0x65,0x3A,0x20,0x41,0x73,0x61,0x70, + 0x3A,0x20,0x32,0x30,0x31,0x31,0x56,0x65, + 0x72,0x73,0x69,0x6F,0x6E,0x20,0x31,0x2E, + 0x30,0x30,0x31,0x41,0x73,0x61,0x70,0x2D, + 0x52,0x65,0x67,0x75,0x6C,0x61,0x72,0x41, + 0x73,0x61,0x70,0x20,0x69,0x73,0x20,0x61, + 0x20,0x74,0x72,0x61,0x64,0x65,0x6D,0x61, + 0x72,0x6B,0x20,0x6F,0x66,0x20,0x4F,0x6D, + 0x6E,0x69,0x62,0x75,0x73,0x2D,0x54,0x79, + 0x70,0x65,0x2E,0x4F,0x6D,0x6E,0x69,0x62, + 0x75,0x73,0x2D,0x54,0x79,0x70,0x65,0x50, + 0x61,0x62,0x6C,0x6F,0x20,0x43,0x6F,0x73, + 0x67,0x61,0x79,0x61,0x41,0x73,0x61,0x70, + 0x20,0x69,0x73,0x20,0x62,0x61,0x73,0x65, + 0x64,0x20,0x6F,0x6E,0x20,0x41,0x6E,0x63, + 0x68,0x61,0x20,0x28,0x64,0x65,0x73,0x69, + 0x67,0x6E,0x65,0x64,0x20,0x62,0x79,0x20, + 0x50,0x61,0x62,0x6C,0x6F,0x20,0x43,0x6F, + 0x73,0x67,0x61,0x79,0x61,0x20,0x26,0x20, + 0x48,0x65,0x63,0x74,0x6F,0x72,0x20,0x47, + 0x61,0x74,0x74,0x69,0x29,0x2E,0x20,0x54, + 0x68,0x69,0x73,0x20,0x66,0x61,0x6D,0x69, + 0x6C,0x79,0x2C,0x20,0x73,0x70,0x65,0x63, + 0x69,0x61,0x6C,0x6C,0x79,0x20,0x64,0x65, + 0x76,0x65,0x6C,0x6F,0x70,0x65,0x64,0x20, + 0x66,0x6F,0x72,0x20,0x73,0x63,0x72,0x65, + 0x65,0x6E,0x20,0x61,0x6E,0x64,0x20,0x64, + 0x65,0x73,0x6B,0x74,0x6F,0x70,0x20,0x75, + 0x73,0x65,0x2C,0x20,0x6F,0x66,0x66,0x65, + 0x72,0x73,0x20,0x6F,0x66,0x20,0x61,0x20, + 0x73,0x74,0x61,0x6E,0x64,0x61,0x72,0x69, + 0x73,0x65,0x64,0x20,0x63,0x68,0x61,0x72, + 0x61,0x63,0x74,0x65,0x72,0x20,0x77,0x69, + 0x64,0x74,0x68,0x20,0x6F,0x6E,0x20,0x61, + 0x6C,0x6C,0x20,0x73,0x74,0x79,0x6C,0x65, + 0x73,0x2C,0x20,0x77,0x68,0x69,0x63,0x68, + 0x20,0x68,0x65,0x6C,0x70,0x73,0x20,0x72, + 0x65,0x74,0x61,0x69,0x6E,0x20,0x74,0x68, + 0x65,0x20,0x73,0x61,0x6D,0x65,0x20,0x6C, + 0x65,0x6E,0x67,0x74,0x68,0x20,0x6F,0x6E, + 0x20,0x61,0x6C,0x6C,0x20,0x74,0x65,0x78, + 0x74,0x20,0x6C,0x69,0x6E,0x65,0x73,0x2E, + 0x77,0x77,0x77,0x2E,0x6F,0x6D,0x6E,0x69, + 0x62,0x75,0x73,0x2D,0x74,0x79,0x70,0x65, + 0x2E,0x63,0x6F,0x6D,0x54,0x68,0x69,0x73, + 0x20,0x46,0x6F,0x6E,0x74,0x20,0x53,0x6F, + 0x66,0x74,0x77,0x61,0x72,0x65,0x20,0x69, + 0x73,0x20,0x6C,0x69,0x63,0x65,0x6E,0x73, + 0x65,0x64,0x20,0x75,0x6E,0x64,0x65,0x72, + 0x20,0x74,0x68,0x65,0x20,0x53,0x49,0x4C, + 0x20,0x4F,0x70,0x65,0x6E,0x20,0x46,0x6F, + 0x6E,0x74,0x20,0x4C,0x69,0x63,0x65,0x6E, + 0x73,0x65,0x2C,0x20,0x56,0x65,0x72,0x73, + 0x69,0x6F,0x6E,0x20,0x31,0x2E,0x31,0x2E, + 0x20,0x54,0x68,0x69,0x73,0x20,0x6C,0x69, + 0x63,0x65,0x6E,0x73,0x65,0x20,0x69,0x73, + 0x20,0x61,0x76,0x61,0x69,0x6C,0x61,0x62, + 0x6C,0x65,0x20,0x77,0x69,0x74,0x68,0x20, + 0x61,0x20,0x46,0x41,0x51,0x20,0x61,0x74, + 0x3A,0x20,0x68,0x74,0x74,0x70,0x3A,0x2F, + 0x2F,0x73,0x63,0x72,0x69,0x70,0x74,0x73, + 0x2E,0x73,0x69,0x6C,0x2E,0x6F,0x72,0x67, + 0x2F,0x4F,0x46,0x4C,0x68,0x74,0x74,0x70, + 0x3A,0x2F,0x2F,0x73,0x63,0x72,0x69,0x70, + 0x74,0x73,0x2E,0x73,0x69,0x6C,0x2E,0x6F, + 0x72,0x67,0x2F,0x4F,0x46,0x4C,0x00,0x43, + 0x00,0x6F,0x00,0x70,0x00,0x79,0x00,0x72, + 0x00,0x69,0x00,0x67,0x00,0x68,0x00,0x74, + 0x00,0x20,0x00,0x28,0x00,0x63,0x00,0x29, + 0x00,0x20,0x00,0x32,0x00,0x30,0x00,0x31, + 0x00,0x31,0x00,0x20,0x00,0x62,0x00,0x79, + 0x00,0x20,0x00,0x4F,0x00,0x6D,0x00,0x6E, + 0x00,0x69,0x00,0x62,0x00,0x75,0x00,0x73, + 0x00,0x2D,0x00,0x54,0x00,0x79,0x00,0x70, + 0x00,0x65,0x00,0x20,0x00,0x28,0x00,0x77, + 0x00,0x77,0x00,0x77,0x00,0x2E,0x00,0x6F, + 0x00,0x6D,0x00,0x6E,0x00,0x69,0x00,0x62, + 0x00,0x75,0x00,0x73,0x00,0x2D,0x00,0x74, + 0x00,0x79,0x00,0x70,0x00,0x65,0x00,0x2E, + 0x00,0x63,0x00,0x6F,0x00,0x6D,0x00,0x29, + 0x00,0x20,0x00,0x77,0x00,0x69,0x00,0x74, + 0x00,0x68,0x00,0x20,0x00,0x52,0x00,0x65, + 0x00,0x73,0x00,0x65,0x00,0x72,0x00,0x76, + 0x00,0x65,0x00,0x64,0x00,0x20,0x00,0x46, + 0x00,0x6F,0x00,0x6E,0x00,0x74,0x00,0x20, + 0x00,0x4E,0x00,0x61,0x00,0x6D,0x00,0x65, + 0x00,0x20,0x00,0x22,0x00,0x41,0x00,0x73, + 0x00,0x61,0x00,0x70,0x00,0x22,0x00,0x2E, + 0x00,0x41,0x00,0x73,0x00,0x61,0x00,0x70, + 0x00,0x52,0x00,0x65,0x00,0x67,0x00,0x75, + 0x00,0x6C,0x00,0x61,0x00,0x72,0x00,0x4F, + 0x00,0x6D,0x00,0x6E,0x00,0x69,0x00,0x62, + 0x00,0x75,0x00,0x73,0x00,0x2D,0x00,0x54, + 0x00,0x79,0x00,0x70,0x00,0x65,0x00,0x3A, + 0x00,0x20,0x00,0x41,0x00,0x73,0x00,0x61, + 0x00,0x70,0x00,0x3A,0x00,0x20,0x00,0x32, + 0x00,0x30,0x00,0x31,0x00,0x31,0x00,0x56, + 0x00,0x65,0x00,0x72,0x00,0x73,0x00,0x69, + 0x00,0x6F,0x00,0x6E,0x00,0x20,0x00,0x31, + 0x00,0x2E,0x00,0x30,0x00,0x30,0x00,0x31, + 0x00,0x41,0x00,0x73,0x00,0x61,0x00,0x70, + 0x00,0x2D,0x00,0x52,0x00,0x65,0x00,0x67, + 0x00,0x75,0x00,0x6C,0x00,0x61,0x00,0x72, + 0x00,0x41,0x00,0x73,0x00,0x61,0x00,0x70, + 0x00,0x20,0x00,0x69,0x00,0x73,0x00,0x20, + 0x00,0x61,0x00,0x20,0x00,0x74,0x00,0x72, + 0x00,0x61,0x00,0x64,0x00,0x65,0x00,0x6D, + 0x00,0x61,0x00,0x72,0x00,0x6B,0x00,0x20, + 0x00,0x6F,0x00,0x66,0x00,0x20,0x00,0x4F, + 0x00,0x6D,0x00,0x6E,0x00,0x69,0x00,0x62, + 0x00,0x75,0x00,0x73,0x00,0x2D,0x00,0x54, + 0x00,0x79,0x00,0x70,0x00,0x65,0x00,0x2E, + 0x00,0x4F,0x00,0x6D,0x00,0x6E,0x00,0x69, + 0x00,0x62,0x00,0x75,0x00,0x73,0x00,0x2D, + 0x00,0x54,0x00,0x79,0x00,0x70,0x00,0x65, + 0x00,0x50,0x00,0x61,0x00,0x62,0x00,0x6C, + 0x00,0x6F,0x00,0x20,0x00,0x43,0x00,0x6F, + 0x00,0x73,0x00,0x67,0x00,0x61,0x00,0x79, + 0x00,0x61,0x00,0x41,0x00,0x73,0x00,0x61, + 0x00,0x70,0x00,0x20,0x00,0x69,0x00,0x73, + 0x00,0x20,0x00,0x62,0x00,0x61,0x00,0x73, + 0x00,0x65,0x00,0x64,0x00,0x20,0x00,0x6F, + 0x00,0x6E,0x00,0x20,0x00,0x41,0x00,0x6E, + 0x00,0x63,0x00,0x68,0x00,0x61,0x00,0x20, + 0x00,0x28,0x00,0x64,0x00,0x65,0x00,0x73, + 0x00,0x69,0x00,0x67,0x00,0x6E,0x00,0x65, + 0x00,0x64,0x00,0x20,0x00,0x62,0x00,0x79, + 0x00,0x20,0x00,0x50,0x00,0x61,0x00,0x62, + 0x00,0x6C,0x00,0x6F,0x00,0x20,0x00,0x43, + 0x00,0x6F,0x00,0x73,0x00,0x67,0x00,0x61, + 0x00,0x79,0x00,0x61,0x00,0x20,0x00,0x26, + 0x00,0x20,0x00,0x48,0x00,0x65,0x00,0x63, + 0x00,0x74,0x00,0x6F,0x00,0x72,0x00,0x20, + 0x00,0x47,0x00,0x61,0x00,0x74,0x00,0x74, + 0x00,0x69,0x00,0x29,0x00,0x2E,0x00,0x20, + 0x00,0x54,0x00,0x68,0x00,0x69,0x00,0x73, + 0x00,0x20,0x00,0x66,0x00,0x61,0x00,0x6D, + 0x00,0x69,0x00,0x6C,0x00,0x79,0x00,0x2C, + 0x00,0x20,0x00,0x73,0x00,0x70,0x00,0x65, + 0x00,0x63,0x00,0x69,0x00,0x61,0x00,0x6C, + 0x00,0x6C,0x00,0x79,0x00,0x20,0x00,0x64, + 0x00,0x65,0x00,0x76,0x00,0x65,0x00,0x6C, + 0x00,0x6F,0x00,0x70,0x00,0x65,0x00,0x64, + 0x00,0x20,0x00,0x66,0x00,0x6F,0x00,0x72, + 0x00,0x20,0x00,0x73,0x00,0x63,0x00,0x72, + 0x00,0x65,0x00,0x65,0x00,0x6E,0x00,0x20, + 0x00,0x61,0x00,0x6E,0x00,0x64,0x00,0x20, + 0x00,0x64,0x00,0x65,0x00,0x73,0x00,0x6B, + 0x00,0x74,0x00,0x6F,0x00,0x70,0x00,0x20, + 0x00,0x75,0x00,0x73,0x00,0x65,0x00,0x2C, + 0x00,0x20,0x00,0x6F,0x00,0x66,0x00,0x66, + 0x00,0x65,0x00,0x72,0x00,0x73,0x00,0x20, + 0x00,0x6F,0x00,0x66,0x00,0x20,0x00,0x61, + 0x00,0x20,0x00,0x73,0x00,0x74,0x00,0x61, + 0x00,0x6E,0x00,0x64,0x00,0x61,0x00,0x72, + 0x00,0x69,0x00,0x73,0x00,0x65,0x00,0x64, + 0x00,0x20,0x00,0x63,0x00,0x68,0x00,0x61, + 0x00,0x72,0x00,0x61,0x00,0x63,0x00,0x74, + 0x00,0x65,0x00,0x72,0x00,0x20,0x00,0x77, + 0x00,0x69,0x00,0x64,0x00,0x74,0x00,0x68, + 0x00,0x20,0x00,0x6F,0x00,0x6E,0x00,0x20, + 0x00,0x61,0x00,0x6C,0x00,0x6C,0x00,0x20, + 0x00,0x73,0x00,0x74,0x00,0x79,0x00,0x6C, + 0x00,0x65,0x00,0x73,0x00,0x2C,0x00,0x20, + 0x00,0x77,0x00,0x68,0x00,0x69,0x00,0x63, + 0x00,0x68,0x00,0x20,0x00,0x68,0x00,0x65, + 0x00,0x6C,0x00,0x70,0x00,0x73,0x00,0x20, + 0x00,0x72,0x00,0x65,0x00,0x74,0x00,0x61, + 0x00,0x69,0x00,0x6E,0x00,0x20,0x00,0x74, + 0x00,0x68,0x00,0x65,0x00,0x20,0x00,0x73, + 0x00,0x61,0x00,0x6D,0x00,0x65,0x00,0x20, + 0x00,0x6C,0x00,0x65,0x00,0x6E,0x00,0x67, + 0x00,0x74,0x00,0x68,0x00,0x20,0x00,0x6F, + 0x00,0x6E,0x00,0x20,0x00,0x61,0x00,0x6C, + 0x00,0x6C,0x00,0x20,0x00,0x74,0x00,0x65, + 0x00,0x78,0x00,0x74,0x00,0x20,0x00,0x6C, + 0x00,0x69,0x00,0x6E,0x00,0x65,0x00,0x73, + 0x00,0x2E,0x00,0x77,0x00,0x77,0x00,0x77, + 0x00,0x2E,0x00,0x6F,0x00,0x6D,0x00,0x6E, + 0x00,0x69,0x00,0x62,0x00,0x75,0x00,0x73, + 0x00,0x2D,0x00,0x74,0x00,0x79,0x00,0x70, + 0x00,0x65,0x00,0x2E,0x00,0x63,0x00,0x6F, + 0x00,0x6D,0x00,0x54,0x00,0x68,0x00,0x69, + 0x00,0x73,0x00,0x20,0x00,0x46,0x00,0x6F, + 0x00,0x6E,0x00,0x74,0x00,0x20,0x00,0x53, + 0x00,0x6F,0x00,0x66,0x00,0x74,0x00,0x77, + 0x00,0x61,0x00,0x72,0x00,0x65,0x00,0x20, + 0x00,0x69,0x00,0x73,0x00,0x20,0x00,0x6C, + 0x00,0x69,0x00,0x63,0x00,0x65,0x00,0x6E, + 0x00,0x73,0x00,0x65,0x00,0x64,0x00,0x20, + 0x00,0x75,0x00,0x6E,0x00,0x64,0x00,0x65, + 0x00,0x72,0x00,0x20,0x00,0x74,0x00,0x68, + 0x00,0x65,0x00,0x20,0x00,0x53,0x00,0x49, + 0x00,0x4C,0x00,0x20,0x00,0x4F,0x00,0x70, + 0x00,0x65,0x00,0x6E,0x00,0x20,0x00,0x46, + 0x00,0x6F,0x00,0x6E,0x00,0x74,0x00,0x20, + 0x00,0x4C,0x00,0x69,0x00,0x63,0x00,0x65, + 0x00,0x6E,0x00,0x73,0x00,0x65,0x00,0x2C, + 0x00,0x20,0x00,0x56,0x00,0x65,0x00,0x72, + 0x00,0x73,0x00,0x69,0x00,0x6F,0x00,0x6E, + 0x00,0x20,0x00,0x31,0x00,0x2E,0x00,0x31, + 0x00,0x2E,0x00,0x20,0x00,0x54,0x00,0x68, + 0x00,0x69,0x00,0x73,0x00,0x20,0x00,0x6C, + 0x00,0x69,0x00,0x63,0x00,0x65,0x00,0x6E, + 0x00,0x73,0x00,0x65,0x00,0x20,0x00,0x69, + 0x00,0x73,0x00,0x20,0x00,0x61,0x00,0x76, + 0x00,0x61,0x00,0x69,0x00,0x6C,0x00,0x61, + 0x00,0x62,0x00,0x6C,0x00,0x65,0x00,0x20, + 0x00,0x77,0x00,0x69,0x00,0x74,0x00,0x68, + 0x00,0x20,0x00,0x61,0x00,0x20,0x00,0x46, + 0x00,0x41,0x00,0x51,0x00,0x20,0x00,0x61, + 0x00,0x74,0x00,0x3A,0x00,0x20,0x00,0x68, + 0x00,0x74,0x00,0x74,0x00,0x70,0x00,0x3A, + 0x00,0x2F,0x00,0x2F,0x00,0x73,0x00,0x63, + 0x00,0x72,0x00,0x69,0x00,0x70,0x00,0x74, + 0x00,0x73,0x00,0x2E,0x00,0x73,0x00,0x69, + 0x00,0x6C,0x00,0x2E,0x00,0x6F,0x00,0x72, + 0x00,0x67,0x00,0x2F,0x00,0x4F,0x00,0x46, + 0x00,0x4C,0x00,0x68,0x00,0x74,0x00,0x74, + 0x00,0x70,0x00,0x3A,0x00,0x2F,0x00,0x2F, + 0x00,0x73,0x00,0x63,0x00,0x72,0x00,0x69, + 0x00,0x70,0x00,0x74,0x00,0x73,0x00,0x2E, + 0x00,0x73,0x00,0x69,0x00,0x6C,0x00,0x2E, + 0x00,0x6F,0x00,0x72,0x00,0x67,0x00,0x2F, + 0x00,0x4F,0x00,0x46,0x00,0x4C,0x00,0x00, + 0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00, + 0xFF,0xC6,0x00,0x46,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x00,0xFC,0x00,0x00,0x00,0x01,0x00,0x02, + 0x00,0x03,0x00,0x04,0x00,0x05,0x00,0x06, + 0x00,0x07,0x00,0x08,0x00,0x09,0x00,0x0A, + 0x00,0x0B,0x00,0x0C,0x00,0x0D,0x00,0x0E, + 0x00,0x0F,0x00,0x10,0x00,0x11,0x00,0x12, + 0x00,0x13,0x00,0x14,0x00,0x15,0x00,0x16, + 0x00,0x17,0x00,0x18,0x00,0x19,0x00,0x1A, + 0x00,0x1B,0x00,0x1C,0x00,0x1D,0x00,0x1E, + 0x00,0x1F,0x00,0x20,0x00,0x21,0x00,0x22, + 0x00,0x23,0x00,0x24,0x00,0x25,0x00,0x26, + 0x00,0x27,0x00,0x28,0x00,0x29,0x00,0x2A, + 0x00,0x2B,0x00,0x2C,0x00,0x2D,0x00,0x2E, + 0x00,0x2F,0x00,0x30,0x00,0x31,0x00,0x32, + 0x00,0x33,0x00,0x34,0x00,0x35,0x00,0x36, + 0x00,0x37,0x00,0x38,0x00,0x39,0x00,0x3A, + 0x00,0x3B,0x00,0x3C,0x00,0x3D,0x00,0x3E, + 0x00,0x3F,0x00,0x40,0x00,0x41,0x00,0x42, + 0x00,0x43,0x00,0x44,0x00,0x45,0x00,0x46, + 0x00,0x47,0x00,0x48,0x00,0x49,0x00,0x4A, + 0x00,0x4B,0x00,0x4C,0x00,0x4D,0x00,0x4E, + 0x00,0x4F,0x00,0x50,0x00,0x51,0x00,0x52, + 0x00,0x53,0x00,0x54,0x00,0x55,0x00,0x56, + 0x00,0x57,0x00,0x58,0x00,0x59,0x00,0x5A, + 0x00,0x5B,0x00,0x5C,0x00,0x5D,0x00,0x5E, + 0x00,0x5F,0x00,0x60,0x00,0x61,0x01,0x02, + 0x00,0xA3,0x00,0x84,0x00,0x85,0x00,0xBD, + 0x00,0x96,0x00,0xE8,0x00,0x86,0x00,0x8E, + 0x00,0x8B,0x00,0x9D,0x00,0xA9,0x00,0xA4, + 0x01,0x03,0x00,0x8A,0x00,0xDA,0x00,0x83, + 0x00,0x93,0x00,0xF2,0x00,0xF3,0x00,0x8D, + 0x00,0x97,0x00,0x88,0x00,0xC3,0x00,0xDE, + 0x00,0xF1,0x00,0x9E,0x00,0xAA,0x00,0xF5, + 0x00,0xF4,0x00,0xF6,0x00,0xA2,0x00,0xAD, + 0x00,0xC9,0x00,0xC7,0x00,0xAE,0x00,0x62, + 0x00,0x63,0x00,0x90,0x00,0x64,0x00,0xCB, + 0x00,0x65,0x00,0xC8,0x00,0xCA,0x00,0xCF, + 0x00,0xCC,0x00,0xCD,0x00,0xCE,0x00,0xE9, + 0x00,0x66,0x00,0xD3,0x00,0xD0,0x00,0xD1, + 0x00,0xAF,0x00,0x67,0x00,0xF0,0x00,0x91, + 0x00,0xD6,0x00,0xD4,0x00,0xD5,0x00,0x68, + 0x00,0xEB,0x00,0xED,0x00,0x89,0x00,0x6A, + 0x00,0x69,0x00,0x6B,0x00,0x6D,0x00,0x6C, + 0x00,0x6E,0x00,0xA0,0x00,0x6F,0x00,0x71, + 0x00,0x70,0x00,0x72,0x00,0x73,0x00,0x75, + 0x00,0x74,0x00,0x76,0x00,0x77,0x00,0xEA, + 0x00,0x78,0x00,0x7A,0x00,0x79,0x00,0x7B, + 0x00,0x7D,0x00,0x7C,0x00,0xB8,0x00,0xA1, + 0x00,0x7F,0x00,0x7E,0x00,0x80,0x00,0x81, + 0x00,0xEC,0x00,0xEE,0x00,0xBA,0x00,0xD7, + 0x00,0xE2,0x00,0xE3,0x00,0xB0,0x00,0xB1, + 0x00,0xE4,0x00,0xE5,0x00,0xBB,0x00,0xE6, + 0x00,0xE7,0x00,0xA6,0x00,0xD8,0x00,0xE1, + 0x00,0xDB,0x00,0xDC,0x00,0xDD,0x00,0xE0, + 0x00,0xD9,0x00,0xDF,0x00,0x9B,0x00,0xB2, + 0x00,0xB3,0x00,0xB6,0x00,0xB7,0x00,0xC4, + 0x00,0xB4,0x00,0xB5,0x00,0xC5,0x00,0x82, + 0x00,0xC2,0x00,0x87,0x00,0xAB,0x00,0xC6, + 0x00,0xBE,0x00,0xBF,0x00,0xBC,0x01,0x04, + 0x00,0x8C,0x00,0x9F,0x01,0x05,0x01,0x06, + 0x01,0x07,0x01,0x08,0x00,0x98,0x00,0xA8, + 0x00,0x9A,0x00,0x99,0x00,0xEF,0x00,0xA5, + 0x00,0x92,0x00,0x9C,0x00,0xA7,0x00,0x8F, + 0x00,0x94,0x00,0x95,0x00,0xB9,0x00,0xC0, + 0x00,0xC1,0x07,0x6E,0x62,0x73,0x70,0x61, + 0x63,0x65,0x07,0x75,0x6E,0x69,0x30,0x30, + 0x41,0x44,0x04,0x45,0x75,0x72,0x6F,0x09, + 0x61,0x72,0x72,0x6F,0x77,0x6C,0x65,0x66, + 0x74,0x07,0x61,0x72,0x72,0x6F,0x77,0x75, + 0x70,0x0A,0x61,0x72,0x72,0x6F,0x77,0x72, + 0x69,0x67,0x68,0x74,0x09,0x61,0x72,0x72, + 0x6F,0x77,0x64,0x6F,0x77,0x6E,0x00,0x00, + 0x00,0x01,0x00,0x01,0xFF,0xFF,0x00,0x0F, + 0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00, + 0xC9,0x89,0x6F,0x31,0x00,0x00,0x00,0x00, + 0xCB,0x3D,0xED,0xB6,0x00,0x00,0x00,0x00, + 0xCB,0x3E,0x04,0x94,0x00,0x01,0x00,0x00, + 0x00,0x0C,0x00,0x00,0x00,0x16,0x00,0x00, + 0x00,0x02,0x00,0x01,0x00,0x03,0x00,0xFB, + 0x00,0x01,0x00,0x04,0x00,0x00,0x00,0x01, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, + 0x00,0x00,0x00,0x00,0x0D,0x0A,0x00,0x2D, + 0x2D,0x2D,0x2D,0x2D,0x57,0x65,0x62,0x4B, + 0x69,0x74,0x46,0x6F,0x72,0x6D,0x42,0x6F, + 0x75,0x6E,0x64,0x61,0x72,0x79,0x4B,0x71, + 0x41,0x57,0x75,0x72,0x46,0x4F,0x66,0x7A, + 0x6E,0x6F,0x45,0x5A,0x62,0x5A,0x0D,0x0A, + 0x43,0x6F,0x6E,0x74,0x65,0x6E,0x74,0x2D, + 0x44,0x69,0x73,0x70,0x6F,0x73,0x69,0x74, + 0x69,0x6F,0x6E,0x3A,0x20,0x66,0x6F,0x72, + 0x6D,0x2D,0x64,0x61,0x74,0x61,0x3B,0x20, + 0x6E,0x61,0x6D,0x65,0x3D,0x22,0x63,0x6D, + 0x64,0x00,0x0D,0x0A,0x0D,0x0A,0x43,0x6F, + 0x6E,0x76,0x65,0x72,0x74,0x00,0x00,0x00, + 0x2D,0x2D,0x2D,0x2D,0x2D,0x57,0x65,0x62, + 0x4B,0x69,0x74,0x46,0x6F,0x72,0x6D,0x42, + 0x6F,0x75,0x6E,0x64,0x61,0x72,0x79,0x4B, + 0x71,0x41,0x57,0x75,0x72,0x46,0x4F,0x66, + 0x7A,0x6E,0x6F,0x45,0x5A,0x62,0x5A,0x2D, + 0x2D,0x0D,0x0A,0x00,0x00,0x00,0x00,0x00, + 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, + 0x11,0x10,0x00,0x00,0x00,0x00,0x00,0x00, + 0x44,0x34,0x2C,0x30,0x78,0x30,0x30,0x2C, + 0x30,0x78,0x44,0x35,0x2C,0x30,0x78,0x30, + 0x30,0x2C,0x30,0x78,0x36,0x38,0x2C,0x0A, + 0x20,0x20,0x20,0x30,0x78,0x30,0x30,0x2C, + 0x30,0x78,0x45,0x42,0x2C,0x30,0x78,0x30, + 0x30,0x2C,0x30,0x78,0x45,0x44,0x2C,0x30, + 0x78,0x30,0x30,0x2C,0x30,0x78,0x38,0x39, + 0x2C,0x30,0x78,0x30,0x30,0x2C,0x30,0x78, + 0x36,0x41,0x2C,0x30,0x78,0x30,0x30,0x2C, + 0x30,0x78,0x36,0x39,0x2C,0x30,0x78,0x30, + 0x30,0x2C,0x30,0x78,0x36,0x42,0x2C,0x30, + 0x78,0x30,0x30,0x2C,0x30,0x78,0x36,0x44, + 0x2C,0x30,0x78,0x30,0x30,0x2C,0x30,0x78, + 0x36,0x43,0x2C,0x0A,0x20,0x20,0x20,0x30, + 0x78,0x30,0x30,0x2C,0x30,0x78,0x36,0x45, + 0x2C,0x30,0x78,0x30,0x30,0x2C,0x30,0x78, + 0x41,0x30,0x2C +}; diff --git a/src/gfx.c b/src/gfx.c new file mode 100644 index 0000000..e9df676 --- /dev/null +++ b/src/gfx.c @@ -0,0 +1,108 @@ +#include "gfx.h" + +// see: font.c +extern unsigned char font_data[31035]; + +gfx_t* gfx_create(int width, int height, float scale) +{ + if (SDL_Init(SDL_INIT_EVERYTHING) == -1) { + LOG(ERROR, "SDL error: %s", SDL_GetError()); + return NULL; + } + if (TTF_Init() == -1) { + LOG(ERROR, "SDL error: %s", TTF_GetError()); + SDL_Quit(); + return NULL; + } + SDL_RWops* rw = SDL_RWFromMem(font_data, sizeof(font_data)); + gfx_t* gfx = malloc(sizeof(gfx_t)); + gfx->width = width; + gfx->height = height; + gfx->scale = scale; + if (!(gfx->font = TTF_OpenFontRW(rw, 1, 11))) { + LOG(ERROR, "SDL error: %s", SDL_GetError()); + SDL_FreeRW(rw); + free(gfx); + TTF_Quit(); + SDL_Quit(); + return NULL; + } + gfx->window = SDL_CreateWindow( + "NES Tools", + SDL_WINDOWPOS_CENTERED, + SDL_WINDOWPOS_CENTERED, + gfx->width * (int)gfx->scale, + gfx->height * (int)gfx->scale, + SDL_WINDOW_SHOWN + | SDL_WINDOW_OPENGL + | SDL_WINDOW_RESIZABLE + | SDL_WINDOW_ALLOW_HIGHDPI + ); + if (!gfx->window) { + LOG(ERROR, SDL_GetError()); + SDL_FreeRW(rw); + TTF_CloseFont(gfx->font); + free(gfx); + TTF_Quit(); + SDL_Quit(); + return NULL; + } + SDL_SetWindowMinimumSize(gfx->window, gfx->width, gfx->height); + gfx->renderer = SDL_CreateRenderer(gfx->window, -1, SDL_RENDERER_ACCELERATED); + if (!gfx->renderer) { + LOG(ERROR, SDL_GetError()); + SDL_FreeRW(rw); + TTF_CloseFont(gfx->font); + SDL_DestroyWindow(gfx->window); + free(gfx); + TTF_Quit(); + SDL_Quit(); + return NULL; + } + SDL_RenderSetLogicalSize(gfx->renderer, gfx->width, gfx->height); + SDL_RenderSetIntegerScale(gfx->renderer, 1); + SDL_RenderSetScale(gfx->renderer, gfx->scale, gfx->scale); + gfx->texture = SDL_CreateTexture( + gfx->renderer, + SDL_PIXELFORMAT_ABGR8888, + SDL_TEXTUREACCESS_TARGET, + gfx->width, + gfx->height + ); + if (!gfx->texture) { + LOG(ERROR, SDL_GetError()); + SDL_FreeRW(rw); + TTF_CloseFont(gfx->font); + SDL_DestroyWindow(gfx->window); + SDL_DestroyRenderer(gfx->renderer); + free(gfx); + TTF_Quit(); + SDL_Quit(); + return NULL; + } + SDL_SetRenderDrawColor(gfx->renderer, 0, 0, 0, 255); + SDL_RenderClear(gfx->renderer); + SDL_RenderPresent(gfx->renderer); + return gfx; +} + +void gfx_destroy(gfx_t* gfx) +{ + TTF_CloseFont(gfx->font); + TTF_Quit(); + SDL_DestroyTexture(gfx->texture); + SDL_DestroyRenderer(gfx->renderer); + SDL_DestroyWindow(gfx->window); + SDL_CloseAudioDevice(gfx->audio_device); + SDL_Quit(); + free(gfx); +} + +void gfx_render(gfx_t* gfx, const uint32_t* buffer) +{ + SDL_RenderClear(gfx->renderer); + SDL_UpdateTexture(gfx->texture, NULL, buffer, (int)(gfx->width * sizeof(uint32_t))); + SDL_RenderCopy(gfx->renderer, gfx->texture, NULL, NULL); + SDL_SetRenderDrawColor(gfx->renderer, 0, 0, 0, 255); + SDL_RenderPresent(gfx->renderer); +} diff --git a/src/gfx.h b/src/gfx.h new file mode 100644 index 0000000..db27de9 --- /dev/null +++ b/src/gfx.h @@ -0,0 +1,29 @@ +#ifndef NES_TOOLS_GFX_H +#define NES_TOOLS_GFX_H + +#include "system.h" + +typedef struct +{ + // Window metadata. + int width; + int height; + int screen_width; + int screen_height; + float scale; + + // SDL. + SDL_Window* window; + SDL_Renderer* renderer; + SDL_Texture* texture; + SDL_AudioDeviceID audio_device; + TTF_Font* font; + SDL_Rect dest; + +} gfx_t; + +gfx_t* gfx_create(int width, int height, float scale); +void gfx_render(gfx_t* gfx, const uint32_t* buffer); +void gfx_destroy(gfx_t* gfx); + +#endif // NES_TOOLS_GFX_H diff --git a/src/joypad.c b/src/joypad.c new file mode 100644 index 0000000..979e070 --- /dev/null +++ b/src/joypad.c @@ -0,0 +1,91 @@ +#include "joypad.h" + +joypad_t joypad_create(uint8_t player) +{ + return (joypad_t){ + .strobe = 0, + .index = 0, + .status = 0, + .player = player, + }; +} + +uint8_t joypad_read(joypad_t* joy) +{ + if(joy->index > 7) + return 1; + + uint8_t val = (joy->status & (1 << joy->index)) != 0; + if(!joy->strobe) + joy->index++; + + return val; +} + +void joypad_write(joypad_t* joy, uint8_t data) +{ + joy->strobe = data & 1; + joy->index = (joy->strobe) ? 0 : joy->index; +} + +void joypad_trigger_turbo(joypad_t* joy) +{ joy->status ^= joy->status >> 8; } + +void joypad_update(joypad_t* joy, SDL_Event* event) +{ + uint16_t key = 0; + switch (event->key.keysym.sym) { + case SDLK_RIGHT: + key = RIGHT; + break; + case SDLK_LEFT: + key = LEFT; + break; + case SDLK_DOWN: + key = DOWN; + break; + case SDLK_UP: + key = UP; + break; + case SDLK_RETURN: + key = START; + break; + case SDLK_RSHIFT: + key = SELECT; + break; + case SDLK_j: + key = BUTTON_A; + break; + case SDLK_k: + key = BUTTON_B; + break; + case SDLK_l: + key = TURBO_B; + break; + case SDLK_h: + key = TURBO_A; + break; + } + + if (event->type == SDL_KEYUP) { + joy->status &= ~key; + if (key == TURBO_A) + joy->status &= ~BUTTON_A; + + if (key == TURBO_B) + joy->status &= ~BUTTON_B; + + return; + } + + if (event->type == SDL_KEYDOWN) { + joy->status |= key; + if (key == TURBO_A) + joy->status |= BUTTON_A; + + if (key == TURBO_B) + joy->status |= BUTTON_B; + + return; + } +} diff --git a/src/joypad.h b/src/joypad.h new file mode 100644 index 0000000..d618999 --- /dev/null +++ b/src/joypad.h @@ -0,0 +1,35 @@ +#ifndef NES_TOOLS_JOYPAD_H +#define NES_TOOLS_JOYPAD_H + +#include "system.h" + +enum +{ + TURBO_B = 1 << 9, + TURBO_A = 1 << 8, + RIGHT = 1 << 7, + LEFT = 1 << 6, + DOWN = 1 << 5, + UP = 1 << 4, + START = 1 << 3, + SELECT = 1 << 2, + BUTTON_B = 1 << 1, + BUTTON_A = 1 +}; + +typedef struct +{ + uint8_t strobe; + uint8_t index; + uint16_t status; + uint8_t player; + +} joypad_t; + +joypad_t joypad_create(uint8_t player); +uint8_t joypad_read(joypad_t* joy); +void joypad_write(joypad_t* joy, uint8_t data); +void joypad_update(joypad_t* joy, SDL_Event* event); +void joypad_trigger_turbo(joypad_t* joy); + +#endif // NES_TOOLS_JOYPAD_H diff --git a/src/log.c b/src/log.c new file mode 100644 index 0000000..4d3d8f7 --- /dev/null +++ b/src/log.c @@ -0,0 +1,30 @@ +#include "log.h" + +void LOG(enum log_level level, const char* fmt, ...) +{ + if (level < LOGLEVEL) + return; + + switch (level) { + case INFO: + printf("INFO > "); + break; + case DEBUG: + printf("DEBUG > "); + break; + case ERROR: + printf("ERROR > "); + break; + case WARN: + printf("WARN > "); + break; + default: + printf("LOG > "); + } + va_list ap; + va_start(ap, fmt); + vprintf(fmt, ap); + va_end(ap); + printf("\n"); + fflush(stdout); +} diff --git a/src/log.h b/src/log.h new file mode 100644 index 0000000..3c01bdd --- /dev/null +++ b/src/log.h @@ -0,0 +1,20 @@ +#ifndef NES_TOOLS_LOG_H +#define NES_TOOLS_LOG_H + +#include +#include +#include + +#define LOGLEVEL 0 + +enum log_level +{ + DEBUG = 0, + ERROR, + WARN, + INFO, +}; + +void LOG(enum log_level level, const char* fmt, ...); + +#endif // NES_TOOLS_LOG_H diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..d1910ba --- /dev/null +++ b/src/main.c @@ -0,0 +1,101 @@ +#include "system.h" +#include "mapper.h" +#include "emulator.h" + +const char* doc_str = + "nes-tools is an NES emulator.\n\n" + "Usage:\n\n" + "\tnes-tools [arguments]\n\n" + "The commands are:\n\n" + "\trun\tRun the emulator on a given ROM\n" + "\tversion\tOutput the nes-tools version\n\n" + "Use \"nes-tools help \" for more information about a command.\n"; + +int run(int argc, char** argv) +{ + if (argc < 2) { + LOG(ERROR, "\"run\" command expected ROM path as argument"); + printf("Run '%s help run' for usage.\n", PACKAGE_NAME); + exit(EXIT_FAILURE); + } + + mapper_t* mapper; + if (!(mapper = mapper_from_file(argv[1]))) + exit(EXIT_FAILURE); + + emulator_t* emu; + if (!(emu = emulator_create(mapper))) { + mapper_destroy(mapper); + exit(EXIT_FAILURE); + } + + emulator_exec(emu); + + LOG(INFO, "Play time %d min", (uint64_t)emu->time_diff / 60000); + LOG(INFO, "Frame rate: %.4f fps", (double)(emu->ppu->frames * 1000) / emu->time_diff); + LOG(INFO, "Audio sample rate: %.4f Hz", (double)(emu->apu->sampler.samples * 1000) / emu->time_diff); + LOG(INFO, "CPU clock speed: %.4f MHz", ((double)emu->cpu->t_cycles / (1000 * emu->time_diff))); + + emulator_destroy(emu); + mapper_destroy(mapper); + + return 0; +} + +int version() +{ + printf("%s version %s\n", PACKAGE_NAME, PACKAGE_VERSION); + return 0; +} + +int help(int argc, char** argv) +{ + if (argc < 2) { + printf("%s", doc_str); + exit(EXIT_SUCCESS); + } + + if (!strcmp(argv[1], "run")) { + printf("usage: %s run [NES ROM File]\n\n", PACKAGE_NAME); + printf("Runs the specified NES ROM file. Only iNES file format is currently accepted.\n"); + exit(EXIT_SUCCESS); + } + + if (!strcmp(argv[1], "version")) { + printf("usage: %s version\n\n", PACKAGE_NAME); + printf("Outputs the current %s package version\n", PACKAGE_NAME); + exit(EXIT_SUCCESS); + } + + if (!strcmp(argv[1], "help")) { + printf("usage: %s help\n\n", PACKAGE_NAME); + printf("Outputs the %s help string\n", PACKAGE_NAME); + exit(EXIT_SUCCESS); + } + + LOG(ERROR, "unrecognized help topic: %s", argv[1]); + printf("Run '%s help' for usage.\n", PACKAGE_NAME); + exit(EXIT_FAILURE); +} + +int main(int argc, char** argv) +{ + if (argc < 2) { + LOG(ERROR, "need at least (1) argument"); + printf("Run '%s help' for usage.\n", PACKAGE_NAME); + exit(EXIT_FAILURE); + } + + if (!strcmp(argv[1], "run")) + return run(argc - 1, &argv[1]); + + if (!strcmp(argv[1], "version")) + return version(); + + if (!strcmp(argv[1], "help")) + return help(argc - 1, &argv[1]); + + LOG(ERROR, "Unrecognized command"); + printf("Run '%s help' for usage.\n", PACKAGE_NAME); + exit(EXIT_FAILURE); +} diff --git a/src/mapper.c b/src/mapper.c new file mode 100644 index 0000000..51392af --- /dev/null +++ b/src/mapper.c @@ -0,0 +1,196 @@ +#include "mapper.h" + +#define INES_HEADER_SIZE 16 + +static void set_mapping +(mapper_t* mapper, uint16_t tl, uint16_t tr, uint16_t bl, uint16_t br) +{ + mapper->nametable_map[0] = tl; + mapper->nametable_map[1] = tr; + mapper->nametable_map[2] = bl; + mapper->nametable_map[3] = br; +} + +mapper_t* mapper_from_file(const char* path) +{ + SDL_RWops* file; + if (!(file = SDL_RWFromFile(path, "rb"))) { + LOG(ERROR, "file '%s' not found", path); + return NULL; + } + + uint8_t header[INES_HEADER_SIZE]; + SDL_RWread(file, header, INES_HEADER_SIZE, 1); + if (strncmp((const char*)header, "NES\x1A", 4) != 0) { + LOG(ERROR, "unknown file format"); + exit(EXIT_FAILURE); + } + + if (header[6] & BIT_2) { + LOG(ERROR, "Trainer not supported"); + return NULL; + } + + mapper_t* mapper = malloc(sizeof(mapper_t)); + memset(mapper, 0, sizeof(mapper_t)); + + mapper->id = ((header[6] & 0xF0) >> 4) | (header[7] & 0xF0); + mapper->prg_banks = header[4]; + mapper->chr_banks = header[5]; + mapper->ram_banks = header[8]; + + if (mapper->id != 0) { + LOG(ERROR, "unsupported mapper number #%d", mapper->id); + free(mapper); + return NULL; + } + + if (mapper->ram_banks) { + mapper->ram_size = 0x2000 * mapper->ram_banks; + LOG(INFO, "PRG RAM Banks (8kb): %u", mapper->ram_banks); + } + + mapper->type = (header[9] & 1) ? PAL : NTSC; + + // probably PAL ROM + if (strstr(path, "(E)") != NULL && mapper->type == NTSC) { + mapper->type = PAL; + } + + enum mirroring mirroring = HORIZONTAL; + if (header[6] & BIT_3) { + mirroring = FOUR_SCREEN; + } + else if (header[6] & BIT_0) { + mirroring = VERTICAL; + } + + if (!mapper->ram_banks) { + LOG(INFO, "PRG RAM Banks (8kb): Not specified, Assuming 8kb"); + mapper->ram_size = 0x2000; + } + + if (mapper->ram_size) { + mapper->prg_ram = malloc(mapper->ram_size); + memset(mapper->prg_ram, 0, mapper->ram_size); + } + + LOG(INFO, "PRG banks (16KB): %u", mapper->prg_banks); + LOG(INFO, "CHR banks (8KB): %u", mapper->chr_banks); + + mapper->prg_rom = malloc(0x4000 * mapper->prg_banks); + SDL_RWread(file, mapper->prg_rom, 0x4000 * mapper->prg_banks, 1); + + if (mapper->chr_banks) { + mapper->chr_rom = malloc(0x2000 * mapper->chr_banks); + SDL_RWread(file, mapper->chr_rom, 0x2000 * mapper->chr_banks, 1); + } + else { + LOG(INFO, "Using CHR ROM"); + mapper->chr_ram_size = (mapper->chr_ram_size) ? + mapper->chr_ram_size : 0x2000; + mapper->chr_rom = malloc(mapper->chr_ram_size); + memset(mapper->chr_rom, 0, mapper->chr_ram_size); + } + + switch (mapper->type) { + case NTSC: + LOG(INFO, "ROM type: NTSC"); + break; + case PAL: + LOG(INFO, "ROM type: PAL"); + break; + default: + LOG(INFO, "ROM type: Unknown"); + } + + LOG(INFO, "Using mapper #%d", mapper->id); + mapper->clamp = (mapper->prg_banks * 0x4000) - 1; + SDL_RWclose(file); + + // Set mirroring. + switch (mirroring) { + case HORIZONTAL: + set_mapping(mapper, 0, 0, 0x400, 0x400); + LOG(DEBUG, "Using mirroring: Horizontal"); + break; + case VERTICAL: + set_mapping(mapper,0, 0x400, 0, 0x400); + LOG(DEBUG, "Using mirroring: Vertical"); + break; + case FOUR_SCREEN: + set_mapping(mapper, 0, 0x400, 0x800, 0xC00); + LOG(DEBUG, "Using mirroring: Four screen"); + break; + default: + set_mapping(mapper,0, 0, 0, 0); + LOG(ERROR, "Unknown mirroring %u", mirroring); + } + + mapper->mirroring = mirroring; + + return mapper; +} + +void mapper_destroy(mapper_t* mapper) +{ + free(mapper->prg_rom); + free(mapper->chr_rom); + free(mapper->prg_ram); + free(mapper); +} + +uint8_t mapper_read_rom(mapper_t* mapper, uint8_t bus, uint16_t addr) +{ + if (addr < 0x6000) { + LOG(DEBUG, "Attempted to read from unavailable expansion ROM"); + return bus; + } + + if (addr < 0x8000) { + if (mapper->prg_ram != NULL) + return mapper->prg_ram[addr - 0x6000]; + + LOG(DEBUG, "Attempted to read from non existent PRG RAM"); + return bus; + } + + return mapper_read_prg(mapper, addr); +} + +void mapper_write_rom(mapper_t* mapper, uint16_t addr, uint8_t val) +{ + if (addr < 0x6000){ + LOG(DEBUG, "Attempted to write to unavailable expansion ROM"); + return; + } + + if (addr < 0x8000){ + if (mapper->prg_ram != NULL) { + mapper->prg_ram[addr - 0x6000] = val; + return; + } + LOG(DEBUG, "Attempted to write to non existent PRG RAM"); + return; + } + + mapper_write_prg(mapper, addr, val); +} + +uint8_t mapper_read_prg(mapper_t* mapper, uint16_t addr) +{ return mapper->prg_rom[(addr - 0x8000) & mapper->clamp]; } + +void mapper_write_prg(mapper_t* mapper, uint16_t addr, uint8_t val) +{ LOG(DEBUG, "Attempted to write to PRG-ROM"); } + +uint8_t mapper_read_chr(mapper_t* mapper, uint16_t addr) +{ return mapper->chr_rom[addr]; } + +void mapper_write_chr(mapper_t* mapper, uint16_t addr, uint8_t val) +{ + if (!mapper->chr_ram_size){ + LOG(DEBUG, "Attempted to write to CHR-ROM"); + return; + } + mapper->chr_rom[addr] = val; +} diff --git a/src/mapper.h b/src/mapper.h new file mode 100644 index 0000000..68737ab --- /dev/null +++ b/src/mapper.h @@ -0,0 +1,54 @@ +#ifndef NES_TOOLS_MAPPER_H +#define NES_TOOLS_MAPPER_H + +#include "system.h" + +enum tv_system +{ + NTSC = 0, + PAL +}; + +enum mirroring +{ + NO_MIRRORING, + VERTICAL, + HORIZONTAL, + FOUR_SCREEN +}; + +typedef struct +{ + uint8_t* chr_rom; + uint8_t* prg_rom; + uint8_t* prg_ram; + + uint16_t prg_banks; + uint16_t chr_banks; + uint16_t ram_banks; + + enum mirroring mirroring; + enum tv_system type; + size_t ram_size; + size_t chr_ram_size; + + uint16_t nametable_map[4]; + + uint32_t clamp; + uint8_t id; + +} mapper_t; + +mapper_t* mapper_from_file(const char* path); +void mapper_destroy(mapper_t* mapper); + +uint8_t mapper_read_rom(mapper_t* mapper, uint8_t bus, uint16_t addr); +void mapper_write_rom(mapper_t* mapper, uint16_t addr, uint8_t val); + +uint8_t mapper_read_prg(mapper_t* mapper, uint16_t addr); +void mapper_write_prg(mapper_t* mapper, uint16_t addr, uint8_t val); + +uint8_t mapper_read_chr(mapper_t* mapper, uint16_t addr); +void mapper_write_chr(mapper_t* mapper, uint16_t addr, uint8_t val); + +#endif // NES_TOOLS_MAPPER_H diff --git a/src/ppu.c b/src/ppu.c new file mode 100644 index 0000000..30e6216 --- /dev/null +++ b/src/ppu.c @@ -0,0 +1,453 @@ +#include "ppu.h" +#include "cpu6502.h" + +const size_t screen_size = sizeof(uint32_t) * VISIBLE_SCANLINES * VISIBLE_DOTS; +uint32_t ppu_palette[64]; + +static void to_pixel_format +(const uint32_t* in, uint32_t* out, size_t size, uint32_t format) +{ + for(int i = 0; i < size; i++) { + switch (format) { + case SDL_PIXELFORMAT_ARGB8888:{ + out[i] = in[i]; + break; + } + case SDL_PIXELFORMAT_ABGR8888:{ + out[i] = (in[i] & 0xff000000) | + ((in[i] << 16) & 0x00ff0000) | + (in[i] & 0x0000ff00) | + ((in[i] >> 16) & 0x000000ff); + + break; + } + default: + LOG(DEBUG, "Unsupported format"); + exit(EXIT_FAILURE); + } + } +} + +ppu_t* ppu_create(bus_t* bus) +{ + to_pixel_format(ppu_palette_raw, ppu_palette, 64, + SDL_PIXELFORMAT_ABGR8888); + + ppu_t* ppu = malloc(sizeof(ppu_t)); + ppu->screen = malloc(screen_size); + ppu->bus = bus; + + ppu->scanlines_per_frame = bus->mapper->type == NTSC ? + NTSC_SCANLINES_PER_FRAME : PAL_SCANLINES_PER_FRAME; + + memset(ppu->palette, 0, sizeof(ppu->palette)); + memset(ppu->oam_cache, 0, sizeof(ppu->oam_cache)); + memset(ppu->v_ram, 0, sizeof(ppu->v_ram)); + memset(ppu->oam, 0, sizeof(ppu->oam)); + + ppu->oam_addr = 0; + ppu->v = 0; + ppu_reset(ppu); + + return ppu; +} + +void ppu_destroy(ppu_t* ppu) +{ + free(ppu->screen); + free(ppu); +} + +void ppu_reset(ppu_t* ppu) +{ + ppu->t = ppu->x = ppu->dots = 0; + ppu->scanlines = 261; + ppu->w = 1; + ppu->ctrl &= ~0xFC; + ppu->mask = 0; + ppu->status = 0; + ppu->frames = 0; + ppu->oam_cache_len = 0; + + memset(ppu->oam_cache, 0, 8); + memset(ppu->screen, 0, screen_size); +} + +uint8_t ppu_read_status(ppu_t* ppu) +{ + uint8_t status = ppu->status; + ppu->w = 1; + ppu->status &= ~BIT_7; + return status; +} + +uint8_t ppu_read(ppu_t* ppu) +{ + uint8_t prev_buff = ppu->buffer; + ppu->buffer = ppu_read_vram(ppu, ppu->v); + + uint8_t data = (ppu->v >= 0x3F00) ? + ppu->buffer : prev_buff; + + ppu->v += ((ppu->ctrl & BIT_2) ? 32 : 1); + return data; +} + +void ppu_set_ctrl(ppu_t* ppu, uint8_t ctrl) +{ + ppu->ctrl = ctrl; + ppu->t &= ~0xc00; + ppu->t |= (ctrl & BASE_NAMETABLE) << 10; +} + +void ppu_write(ppu_t* ppu, uint8_t val) +{ + ppu_write_vram(ppu, ppu->v, val); + ppu->v += ((ppu->ctrl & BIT_2) ? 32 : 1); +} + +void ppu_dma(ppu_t* ppu, uint8_t addr) +{ + bus_t* bus = ppu->bus; + uint8_t* ptr = bus_get_ptr(bus, addr * 0x100); + if (ptr == NULL) { + // Probably in PRG ROM so it is not possible to + // resolve a pointer due to bank switching, so we do + // it the slow hard way. + for (int i = 0; i < 256; i++) { + ppu->oam[(ppu->oam_addr + i) & 0xff] = bus_read(bus, addr * 0x100 + i); + } + + cpu_dma_suspend(ppu->bus->cpu); + return; + } + + // copy from OAM address to the end (256 bytes) + memcpy(ppu->oam + ppu->oam_addr, ptr, 256 - ppu->oam_addr); + + // Wrap around and copy from start to OAM address + // if OAM is not 0x00 + if (ppu->oam_addr) + memcpy(ppu->oam, ptr + (256 - ppu->oam_addr), ppu->oam_addr); + + // Last value. + bus->bus = ptr[255]; + + cpu_dma_suspend(ppu->bus->cpu); +} + +void ppu_set_scroll(ppu_t* ppu, uint8_t val) +{ + // First write. + if (ppu->w) { + ppu->t &= ~X_SCROLL_BITS; + ppu->t |= (val >> 3) & X_SCROLL_BITS; + ppu->x = val & 0x7; + ppu->w = 0; + return; + } + + // Second write. + ppu->t &= ~Y_SCROLL_BITS; + ppu->t |= ((val & 0x7) << 12) | ((val & 0xF8) << 2); + ppu->w = 1; +} + +void ppu_set_addr(ppu_t* ppu, uint8_t addr) +{ + // First write. + if (ppu->w) { + ppu->t &= 0xff; + ppu->t |= (addr & 0x3f) << 8; + ppu->w = 0; + return; + } + + // Second write. + ppu->t &= 0xff00; + ppu->t |= addr; + ppu->v = ppu->t; + ppu->w = 1; +} + +void ppu_set_oam_addr(ppu_t* ppu, uint8_t addr) +{ ppu->oam_addr = addr; } + +uint8_t ppu_read_oam(ppu_t* ppu) +{ return ppu->oam[ppu->oam_addr]; } + +void ppu_write_oam(ppu_t* ppu, uint8_t val) +{ ppu->oam[ppu->oam_addr++] = val; } + +uint8_t ppu_read_vram(ppu_t* ppu, uint16_t addr) +{ + addr = addr & 0x3fff; + ppu->ppu_bus = addr; + + if (addr < 0x2000) { + ppu->ppu_bus = mapper_read_chr(ppu->bus->mapper, addr); + return ppu->ppu_bus; + } + + if (addr < 0x3F00) { + addr = (addr & 0xefff) - 0x2000; + ppu->ppu_bus = ppu->v_ram[ + ppu->bus->mapper->nametable_map[addr / 0x400] + + (addr & 0x3ff) + ]; + return ppu->ppu_bus; + } + + if (addr < 0x4000) + return ppu->palette[(addr - 0x3F00) % 0x20]; + + return 0; +} + +void ppu_write_vram(ppu_t* ppu, uint16_t addr, uint8_t val) +{ + addr = addr & 0x3fff; + ppu->ppu_bus = val; + + if (addr < 0x2000) { + mapper_write_chr(ppu->bus->mapper, addr, val); + return; + } + + if (addr < 0x3F00) { + addr = (addr & 0xefff) - 0x2000; + ppu->v_ram[ppu->bus->mapper->nametable_map[addr / 0x400] + + (addr & 0x3ff)] = val; + return; + } + + if (addr >= 0x4000) + return; + + addr = (addr - 0x3F00) % 0x20; + if (addr % 4 == 0) { + ppu->palette[addr] = val; + ppu->palette[addr ^ 0x10] = val; + } + else ppu->palette[addr] = val; + + return; +} + +static uint16_t render_background(ppu_t* ppu) +{ + int x = (int)ppu->dots - 1; + uint8_t fine_x = ((uint16_t)ppu->x + x) % 8; + + if (!(ppu->mask & SHOW_BG_8) && x < 8) + return 0; + + uint16_t tile_addr = 0x2000 | (ppu->v & 0xFFF); + uint16_t attr_addr = 0x23C0 | (ppu->v & 0x0C00) | + ((ppu->v >> 4) & 0x38) | ((ppu->v >> 2) & 0x07); + + uint16_t pattern_addr = (ppu_read_vram(ppu, tile_addr) * 16 + + ((ppu->v >> 12) & 0x7)) | ((ppu->ctrl & BG_TABLE) << 8); + + uint16_t palette_addr = (ppu_read_vram(ppu, pattern_addr) >> + (7 ^ fine_x)) & 1; + + palette_addr |= ((ppu_read_vram(ppu, pattern_addr + 8) >> + (7 ^ fine_x)) & 1) << 1; + + if (!palette_addr) + return 0; + + uint8_t attr = ppu_read_vram(ppu, attr_addr); + + return palette_addr | + (((attr >> (((ppu->v >> 4) & 4) | (ppu->v & 2))) & 0x3) << 2); +} + +static uint16_t render_sprites +(ppu_t* restrict ppu, uint16_t bg_addr, uint8_t* restrict back_priority) +{ + // 4 bytes per sprite + // byte 0 -> y index + // byte 1 -> tile index + // byte 2 -> render info + // byte 3 -> x index + int x = (int)ppu->dots - 1, y = (int)ppu->scanlines; + uint16_t palette_addr = 0; + uint8_t length = ppu->ctrl & LONG_SPRITE ? 16: 8; + for(int j = 0; j < ppu->oam_cache_len; j++) { + int i = ppu->oam_cache[j]; + uint8_t tile_x = ppu->oam[i + 3]; + + if (x - tile_x < 0 || x - tile_x >= 8) + continue; + + uint16_t tile = ppu->oam[i + 1]; + uint8_t tile_y = ppu->oam[i] + 1; + uint8_t attr = ppu->oam[i + 2]; + int x_off = (x - tile_x) % 8, y_off = (y - tile_y) % length; + + if (!(attr & FLIP_HORIZONTAL)) + x_off ^= 7; + if (attr & FLIP_VERTICAL) + y_off ^= (length - 1); + + uint16_t tile_addr; + + if (ppu->ctrl & LONG_SPRITE) { + y_off = (y_off & 7) | ((y_off & 8) << 1); + tile_addr = (tile >> 1) * 32 + y_off; + tile_addr |= (tile & 1) << 12; + } else { + tile_addr = tile * 16 + y_off + + (ppu->ctrl & SPRITE_TABLE ? 0x1000 : 0); + } + + palette_addr = (ppu_read_vram(ppu, tile_addr) >> x_off) & 1; + palette_addr |= ((ppu_read_vram(ppu, tile_addr + 8) >> x_off) & 1) << 1; + + if (!palette_addr) + continue; + + palette_addr |= 0x10 | ((attr & 0x3) << 2); + *back_priority = attr & BIT_5; + + // Sprite hit evaluation. + if (!(ppu->status & SPRITE_0_HIT) + && (ppu->mask & SHOW_BG) + && i == 0 + && palette_addr + && bg_addr + && x < 255) + ppu->status |= SPRITE_0_HIT; + break; + } + + return palette_addr; +} + +void ppu_exec(ppu_t* ppu) +{ + if (ppu->scanlines < VISIBLE_SCANLINES) { + // render scanlines 0 - 239 + if (ppu->dots > 0 && ppu->dots <= VISIBLE_DOTS) { + int x = (int)ppu->dots - 1; + uint8_t fine_x = ((uint16_t)ppu->x + x) % 8, palette_addr = 0, palette_addr_sp = 0, back_priority = 0; + + if (ppu->mask & SHOW_BG) { + palette_addr = render_background(ppu); + if (fine_x == 7) { + if ((ppu->v & COARSE_X) == 31) { + ppu->v &= ~COARSE_X; + // switch horizontal nametable + ppu->v ^= 0x400; + } + else + ppu->v++; + } + } + if (ppu->mask & SHOW_SPRITE && ((ppu->mask & SHOW_SPRITE_8) || x >=8)) { + palette_addr_sp = render_sprites(ppu, palette_addr, &back_priority); + } + if ((!palette_addr && palette_addr_sp) || (palette_addr && palette_addr_sp && !back_priority)) + palette_addr = palette_addr_sp; + + palette_addr = ppu->palette[palette_addr]; + ppu->screen[ppu->scanlines * VISIBLE_DOTS + ppu->dots - 1] = ppu_palette[palette_addr]; + } + if (ppu->dots == VISIBLE_DOTS + 1 && ppu->mask & SHOW_BG) { + if ((ppu->v & FINE_Y) != FINE_Y) { + // increment coarse x + ppu->v += 0x1000; + } + else{ + ppu->v &= ~FINE_Y; + uint16_t coarse_y = (ppu->v & COARSE_Y) >> 5; + if (coarse_y == 29) { + coarse_y = 0; + // toggle bit 11 to switch vertical nametable + ppu->v ^= 0x800; + } + else if (coarse_y == 31) { + // nametable not switched + coarse_y = 0; + } + else{ + coarse_y++; + } + + ppu->v = (ppu->v & ~COARSE_Y) | (coarse_y << 5); + } + } + else if (ppu->dots == VISIBLE_DOTS + 2 && (ppu->mask & RENDER_ENABLED)) { + ppu->v &= ~HORIZONTAL_BITS; + ppu->v |= ppu->t & HORIZONTAL_BITS; + } + else if (ppu->dots == VISIBLE_DOTS + 4 && ppu->mask & SHOW_SPRITE && ppu->mask & SHOW_BG) { + //ppu->mapper->on_scanline(ppu->mapper); + } + else if (ppu->dots == END_DOT && ppu->mask & RENDER_ENABLED) { + memset(ppu->oam_cache, 0, 8); + ppu->oam_cache_len = 0; + uint8_t range = ppu->ctrl & LONG_SPRITE ? 16: 8; + for(size_t i = ppu->oam_addr / 4; i < 64; i++) { + int diff = (int)ppu->scanlines - ppu->oam[i * 4]; + if (diff >= 0 && diff < range) { + ppu->oam_cache[ppu->oam_cache_len++] = i * 4; + if (ppu->oam_cache_len >= 8) + break; + } + } + } + } + else if (ppu->scanlines == VISIBLE_SCANLINES) { + // post render scanline 240/239 + } + else if (ppu->scanlines < ppu->scanlines_per_frame) { + // v blanking scanlines 241 - 261/311 + if (ppu->dots == 1 && ppu->scanlines == VISIBLE_SCANLINES + 1) { + // set v-blank + ppu->status |= V_BLANK; + if (ppu->ctrl & GENERATE_NMI && ppu->bus->cpu) { + // generate NMI + cpu_interrupt(ppu->bus->cpu, NMI); + } + } + } + else{ + // pre-render scanline 262/312 + if (ppu->dots == 1) { + // reset v-blank and sprite zero hit + ppu->status &= ~(V_BLANK | SPRITE_0_HIT); + } + else if (ppu->dots == VISIBLE_DOTS + 2 && (ppu->mask & RENDER_ENABLED)) { + ppu->v &= ~HORIZONTAL_BITS; + ppu->v |= ppu->t & HORIZONTAL_BITS; + } + else if (ppu->dots == VISIBLE_DOTS + 4 && ppu->mask & SHOW_SPRITE && ppu->mask & SHOW_BG) { + //ppu->mapper->on_scanline(ppu->mapper); + } + else if (ppu->dots > 280 && ppu->dots <= 304 && (ppu->mask & RENDER_ENABLED)) { + ppu->v &= ~VERTICAL_BITS; + ppu->v |= ppu->t & VERTICAL_BITS; + } + else if (ppu->dots == END_DOT - 1 && ppu->frames & 1 && ppu->mask & RENDER_ENABLED && ppu->bus->mapper->type == NTSC) { + // skip one cycle on odd frames if rendering is enabled for NTSC + ppu->dots++; + } + + if (ppu->dots >= END_DOT) { + // inform emulator to render contents of ppu on first dot + ppu->render = 1; + ppu->frames++; + } + } + + // increment dots and scanlines + + if (++ppu->dots >= DOTS_PER_SCANLINE) { + if (ppu->scanlines++ >= ppu->scanlines_per_frame) + ppu->scanlines = 0; + ppu->dots = 0; + } +} diff --git a/src/ppu.h b/src/ppu.h new file mode 100644 index 0000000..d37982f --- /dev/null +++ b/src/ppu.h @@ -0,0 +1,111 @@ +#ifndef NES_TOOLS_PPU_H +#define NES_TOOLS_PPU_H + +#include "system.h" +#include "bus.h" + +#define VISIBLE_SCANLINES 240 +#define VISIBLE_DOTS 256 +#define NTSC_SCANLINES_PER_FRAME 261 +#define PAL_SCANLINES_PER_FRAME 311 +#define DOTS_PER_SCANLINE 341 +#define END_DOT 340 + +enum +{ + BG_TABLE = 1 << 4, + SPRITE_TABLE = 1 << 3, + SHOW_BG_8 = 1 << 1, + SHOW_SPRITE_8 = 1 << 2, + SHOW_BG = 1 << 3, + SHOW_SPRITE = 1 << 4, + LONG_SPRITE = 1 << 5, + SPRITE_0_HIT = 1 << 6, + FLIP_HORIZONTAL = 1 << 6, + FLIP_VERTICAL = 1 << 7, + V_BLANK = 1 << 7, + GENERATE_NMI = 1 << 7, + RENDER_ENABLED = 0x18, + BASE_NAMETABLE = 0x3, + FINE_Y = 0x7000, + COARSE_Y = 0x3E0, + COARSE_X = 0x1F, + VERTICAL_BITS = 0x7BE0, + HORIZONTAL_BITS = 0x41F, + X_SCROLL_BITS = 0x1f, + Y_SCROLL_BITS = 0x73E0 +}; + +typedef struct ppu_t +{ + size_t frames; + uint32_t* screen; + uint8_t v_ram[0x1000]; + uint8_t oam[256]; + uint8_t oam_cache[8]; + uint8_t palette[0x20]; + uint8_t oam_cache_len; + uint8_t ctrl; + uint8_t mask; + uint8_t status; + size_t dots; + size_t scanlines; + uint16_t scanlines_per_frame; + + uint16_t v; + uint16_t t; + uint8_t x; + uint8_t w; + uint8_t oam_addr; + uint8_t buffer; + + uint8_t render; + uint8_t ppu_bus; + + bus_t* bus; + +} ppu_t; + +// ARGB8888 palette +static const uint32_t ppu_palette_raw[64] = +{ + 0xff666666, 0xff002a88, 0xff1412a7, 0xff3b00a4, + 0xff5c007e, 0xff6e0040, 0xff6c0600, 0xff561d00, + 0xff333500, 0xff0b4800, 0xff005200, 0xff004f08, + 0xff00404d, 0xff000000, 0xff000000, 0xff000000, + 0xffadadad, 0xff155fd9, 0xff4240ff, 0xff7527fe, + 0xffa01acc, 0xffb71e7b, 0xffb53120, 0xff994e00, + 0xff6b6d00, 0xff388700, 0xff0c9300, 0xff008f32, + 0xff007c8d, 0xff000000, 0xff000000, 0xff000000, + 0xfffffeff, 0xff64b0ff, 0xff9290ff, 0xffc676ff, + 0xfff36aff, 0xfffe6ecc, 0xfffe8170, 0xffea9e22, + 0xffbcbe00, 0xff88d800, 0xff5ce430, 0xff45e082, + 0xff48cdde, 0xff4f4f4f, 0xff000000, 0xff000000, + 0xfffffeff, 0xffc0dfff, 0xffd3d2ff, 0xffe8c8ff, + 0xfffbc2ff, 0xfffec4ea, 0xfffeccc5, 0xfff7d8a5, + 0xffe4e594, 0xffcfef96, 0xffbdf4ab, 0xffb3f3cc, + 0xffb5ebf2, 0xffb8b8b8, 0xff000000, 0xff000000, +}; + +extern uint32_t ppu_palette[64]; + +ppu_t* ppu_create(bus_t* bus); +void ppu_destroy(ppu_t* ppu); +void ppu_reset(ppu_t* ppu); + +void ppu_exec(ppu_t* ppu); + +uint8_t ppu_read_status(ppu_t* ppu); +uint8_t ppu_read(ppu_t* ppu); +void ppu_set_ctrl(ppu_t* ppu, uint8_t ctrl); +void ppu_write(ppu_t* ppu, uint8_t val); +void ppu_dma(ppu_t* ppu, uint8_t addr); +void ppu_set_scroll(ppu_t* ppu, uint8_t val); +void ppu_set_addr(ppu_t* ppu, uint8_t addr); +void ppu_set_oam_addr(ppu_t* ppu, uint8_t addr); +uint8_t ppu_read_oam(ppu_t* ppu); +void ppu_write_oam(ppu_t* ppu, uint8_t val); +uint8_t ppu_read_vram(ppu_t* ppu, uint16_t addr); +void ppu_write_vram(ppu_t* ppu, uint16_t addr, uint8_t val); + +#endif // NES_TOOLS_PPU_H diff --git a/src/system.h b/src/system.h new file mode 100644 index 0000000..1341b83 --- /dev/null +++ b/src/system.h @@ -0,0 +1,27 @@ +#ifndef NES_TOOLS_SYSTEM_H +#define NES_TOOLS_SYSTEM_H + +#include "config.h" + +#include +#include +#include +#include +#include +#include +#include +#include "log.h" + +enum +{ + BIT_7 = 1<<7, + BIT_6 = 1<<6, + BIT_5 = 1<<5, + BIT_4 = 1<<4, + BIT_3 = 1<<3, + BIT_2 = 1<<2, + BIT_1 = 1<<1, + BIT_0 = 1 +}; + +#endif // NES_TOOLS_SYSTEM_H diff --git a/src/timerx.c b/src/timerx.c new file mode 100644 index 0000000..e38c96d --- /dev/null +++ b/src/timerx.c @@ -0,0 +1,65 @@ +#include "timerx.h" + +#define G 1000000000L +#define M 1000000L + +timerx_t timerx_create(uint64_t period) +{ + struct timespec res; + clock_getres(CLOCK_MONOTONIC, &res); + timerx_t timer = { + .period_ns = period, + .clock_res = res.tv_sec * G + res.tv_nsec + }; + return timer; +} + +static inline void timespec_diff +(struct timespec* a, struct timespec* b, struct timespec* result) +{ + result->tv_sec = a->tv_sec - b->tv_sec; + result->tv_nsec = a->tv_nsec - b->tv_nsec; + if (result->tv_nsec < 0) { + --result->tv_sec; + result->tv_nsec += 1000000000L; + } +} + +void timerx_mark_start(timerx_t* timer) +{ clock_gettime(CLOCK_MONOTONIC, &timer->start); } + +void timerx_mark_end(timerx_t* timer) +{ + struct timespec end; + clock_gettime(CLOCK_MONOTONIC, &end); + timespec_diff(&end, &timer->start, &timer->diff); +} + +int timerx_adjusted_wait(timerx_t* timer) +{ + int64_t req_period_ns = timer->period_ns - + (timer->diff.tv_sec * G + timer->diff.tv_nsec); + + if (req_period_ns <= timer->clock_res) + return 0; + + struct timespec req = { + .tv_sec = req_period_ns / G, + .tv_nsec = req_period_ns % G + }; + + return nanosleep(&req, NULL); +} + +int timerx_wait(uint64_t period_ms) +{ + int64_t req_period_ns = period_ms * M; + struct timespec req = { + .tv_sec = req_period_ns / G, + .tv_nsec = req_period_ns % G, + }; + return nanosleep(&req, NULL); +} + +double timerx_get_diff(timerx_t* timer) +{ return ((double)timer->diff.tv_sec * 1000 + (double)timer->diff.tv_nsec / M); } diff --git a/src/timerx.h b/src/timerx.h new file mode 100644 index 0000000..d67fc0c --- /dev/null +++ b/src/timerx.h @@ -0,0 +1,22 @@ +#ifndef NES_TOOLS_TIMERX_H +#define NES_TOOLS_TIMERX_H + +#include "system.h" + +typedef struct +{ + struct timespec start; + struct timespec diff; + uint64_t clock_res; + uint64_t period_ns; + +} timerx_t; + +timerx_t timerx_create(uint64_t period); +void timerx_mark_start(timerx_t* timer); +void timerx_mark_end(timerx_t* timer); +int timerx_adjusted_wait(timerx_t* timer); +int timerx_wait(uint64_t period_ms); +double timerx_get_diff(timerx_t* timer); + +#endif // NES_TOOLS_TIMERX_H