(declare (block) (standard-bindings) (extended-bindings))
(begin
  (declare (not safe))
  (define std/net/bio/input#input-buffer::t
    (make-struct-type
     'std/net/bio/input#input-buffer::t
     '#f
     '5
     'input-buffer
     '()
     '#f
     '(e rlo rhi fill read)))
  (define std/net/bio/input#input-buffer?
    (make-struct-predicate std/net/bio/input#input-buffer::t))
  (define std/net/bio/input#make-input-buffer
    (lambda _$args119086_
      (apply make-struct-instance
             std/net/bio/input#input-buffer::t
             _$args119086_)))
  (define std/net/bio/input#input-buffer-e
    (make-struct-field-accessor std/net/bio/input#input-buffer::t '0))
  (define std/net/bio/input#input-buffer-rlo
    (make-struct-field-accessor std/net/bio/input#input-buffer::t '1))
  (define std/net/bio/input#input-buffer-rhi
    (make-struct-field-accessor std/net/bio/input#input-buffer::t '2))
  (define std/net/bio/input#input-buffer-fill
    (make-struct-field-accessor std/net/bio/input#input-buffer::t '3))
  (define std/net/bio/input#input-buffer-read
    (make-struct-field-accessor std/net/bio/input#input-buffer::t '4))
  (define std/net/bio/input#input-buffer-e-set!
    (make-struct-field-mutator std/net/bio/input#input-buffer::t '0))
  (define std/net/bio/input#input-buffer-rlo-set!
    (make-struct-field-mutator std/net/bio/input#input-buffer::t '1))
  (define std/net/bio/input#input-buffer-rhi-set!
    (make-struct-field-mutator std/net/bio/input#input-buffer::t '2))
  (define std/net/bio/input#input-buffer-fill-set!
    (make-struct-field-mutator std/net/bio/input#input-buffer::t '3))
  (define std/net/bio/input#input-buffer-read-set!
    (make-struct-field-mutator std/net/bio/input#input-buffer::t '4))
  (define std/net/bio/input#&input-buffer-e
    (make-struct-field-unchecked-accessor
     std/net/bio/input#input-buffer::t
     '0))
  (define std/net/bio/input#&input-buffer-rlo
    (make-struct-field-unchecked-accessor
     std/net/bio/input#input-buffer::t
     '1))
  (define std/net/bio/input#&input-buffer-rhi
    (make-struct-field-unchecked-accessor
     std/net/bio/input#input-buffer::t
     '2))
  (define std/net/bio/input#&input-buffer-fill
    (make-struct-field-unchecked-accessor
     std/net/bio/input#input-buffer::t
     '3))
  (define std/net/bio/input#&input-buffer-read
    (make-struct-field-unchecked-accessor
     std/net/bio/input#input-buffer::t
     '4))
  (define std/net/bio/input#&input-buffer-e-set!
    (make-struct-field-unchecked-mutator std/net/bio/input#input-buffer::t '0))
  (define std/net/bio/input#&input-buffer-rlo-set!
    (make-struct-field-unchecked-mutator std/net/bio/input#input-buffer::t '1))
  (define std/net/bio/input#&input-buffer-rhi-set!
    (make-struct-field-unchecked-mutator std/net/bio/input#input-buffer::t '2))
  (define std/net/bio/input#&input-buffer-fill-set!
    (make-struct-field-unchecked-mutator std/net/bio/input#input-buffer::t '3))
  (define std/net/bio/input#&input-buffer-read-set!
    (make-struct-field-unchecked-mutator std/net/bio/input#input-buffer::t '4))
  (define std/net/bio/input#bio-input-fill!
    (lambda (_buf119083_ _need119084_)
      ((##unchecked-structure-ref
        _buf119083_
        '4
        std/net/bio/input#input-buffer::t
        '#f)
       _buf119083_
       _need119084_)))
  (define std/net/bio/input#bio-input-read
    (lambda (_bytes119078_ _start119079_ _end119080_ _buf119081_)
      ((##unchecked-structure-ref
        _buf119081_
        '5
        std/net/bio/input#input-buffer::t
        '#f)
       _bytes119078_
       _start119079_
       _end119080_
       _buf119081_)))
  (define std/net/bio/input#bio-read-u8
    (lambda (_buf119064_)
      (let ((_rlo119066_
             (##unchecked-structure-ref
              _buf119064_
              '2
              std/net/bio/input#input-buffer::t
              '#f))
            (_rhi119067_
             (##unchecked-structure-ref
              _buf119064_
              '3
              std/net/bio/input#input-buffer::t
              '#f)))
        (if (##fx< _rlo119066_ _rhi119067_)
            (let ((_u8119069_
                   (##u8vector-ref
                    (##unchecked-structure-ref
                     _buf119064_
                     '1
                     std/net/bio/input#input-buffer::t
                     '#f)
                    _rlo119066_)))
              (##unchecked-structure-set!
               _buf119064_
               (##fx+ _rlo119066_ '1)
               '2
               std/net/bio/input#input-buffer::t
               '#f)
              _u8119069_)
            (let ((_rd119071_
                   (std/net/bio/input#bio-input-fill! _buf119064_ '1)))
              (if (##fxzero? _rd119071_)
                  (eof-object)
                  (let* ((_rlo119073_
                          (##unchecked-structure-ref
                           _buf119064_
                           '2
                           std/net/bio/input#input-buffer::t
                           '#f))
                         (_u8119075_
                          (##u8vector-ref
                           (##unchecked-structure-ref
                            _buf119064_
                            '1
                            std/net/bio/input#input-buffer::t
                            '#f)
                           _rlo119073_)))
                    (##unchecked-structure-set!
                     _buf119064_
                     (##fx+ _rlo119073_ '1)
                     '2
                     std/net/bio/input#input-buffer::t
                     '#f)
                    _u8119075_)))))))
  (define std/net/bio/input#bio-peek-u8
    (lambda (_buf119055_)
      (let ((_rlo119057_
             (##unchecked-structure-ref
              _buf119055_
              '2
              std/net/bio/input#input-buffer::t
              '#f))
            (_rhi119058_
             (##unchecked-structure-ref
              _buf119055_
              '3
              std/net/bio/input#input-buffer::t
              '#f)))
        (if (##fx< _rlo119057_ _rhi119058_)
            (##u8vector-ref
             (##unchecked-structure-ref
              _buf119055_
              '1
              std/net/bio/input#input-buffer::t
              '#f)
             _rlo119057_)
            (let ((_rd119060_
                   (std/net/bio/input#bio-input-fill! _buf119055_ '1)))
              (if (##fxzero? _rd119060_)
                  (eof-object)
                  (let ((_rlo119062_
                         (##unchecked-structure-ref
                          _buf119055_
                          '2
                          std/net/bio/input#input-buffer::t
                          '#f)))
                    (##u8vector-ref
                     (##unchecked-structure-ref
                      _buf119055_
                      '1
                      std/net/bio/input#input-buffer::t
                      '#f)
                     _rlo119062_))))))))
  (define std/net/bio/input#bio-read-subu8vector
    (lambda (_bytes119032_ _start119033_ _end119034_ _buf119035_)
      (let* ((_rlo119037_
              (##unchecked-structure-ref
               _buf119035_
               '2
               std/net/bio/input#input-buffer::t
               '#f))
             (_rhi119039_
              (##unchecked-structure-ref
               _buf119035_
               '3
               std/net/bio/input#input-buffer::t
               '#f))
             (_need119041_ (##fx- _end119034_ _start119033_))
             (_rlo+need119043_ (##fx+ _rlo119037_ _need119041_)))
        (if (##fx<= _rlo+need119043_ _rhi119039_)
            (begin
              (##subu8vector-move!
               (##unchecked-structure-ref
                _buf119035_
                '1
                std/net/bio/input#input-buffer::t
                '#f)
               _rlo119037_
               _rlo+need119043_
               _bytes119032_
               _start119033_)
              (##unchecked-structure-set!
               _buf119035_
               _rlo+need119043_
               '2
               std/net/bio/input#input-buffer::t
               '#f)
              _need119041_)
            (if (##fx< _rlo119037_ _rhi119039_)
                (begin
                  (##subu8vector-move!
                   (##unchecked-structure-ref
                    _buf119035_
                    '1
                    std/net/bio/input#input-buffer::t
                    '#f)
                   _rlo119037_
                   _rhi119039_
                   _bytes119032_
                   _start119033_)
                  (##unchecked-structure-set!
                   _buf119035_
                   _rhi119039_
                   '2
                   std/net/bio/input#input-buffer::t
                   '#f)
                  (let* ((_have119046_ (##fx- _rhi119039_ _rlo119037_))
                         (_need119048_ (##fx- _need119041_ _have119046_)))
                    (if (##fx< _need119048_
                               (##u8vector-length
                                (##unchecked-structure-ref
                                 _buf119035_
                                 '1
                                 std/net/bio/input#input-buffer::t
                                 '#f)))
                        (let ((_rd119051_
                               (std/net/bio/input#bio-input-fill!
                                _buf119035_
                                _need119048_)))
                          (if (##fx> _rd119051_ '0)
                              (##fx+ _have119046_
                                     (std/net/bio/input#bio-read-subu8vector
                                      _bytes119032_
                                      (##fx+ _start119033_ _have119046_)
                                      _end119034_
                                      _buf119035_))
                              _have119046_))
                        (##fx+ _have119046_
                               (std/net/bio/input#bio-input-read
                                _bytes119032_
                                (##fx+ _start119033_ _have119046_)
                                _end119034_
                                _buf119035_)))))
                (if (##fx< _need119041_
                           (##u8vector-length
                            (##unchecked-structure-ref
                             _buf119035_
                             '1
                             std/net/bio/input#input-buffer::t
                             '#f)))
                    (let ((_rd119053_
                           (std/net/bio/input#bio-input-fill!
                            _buf119035_
                            _need119041_)))
                      (if (##fx> _rd119053_ '0)
                          (std/net/bio/input#bio-read-subu8vector
                           _bytes119032_
                           _start119033_
                           _end119034_
                           _buf119035_)
                          '0))
                    (std/net/bio/input#bio-input-read
                     _bytes119032_
                     _start119033_
                     _end119034_
                     _buf119035_)))))))
  (define std/net/bio/input#bio-read-subu8vector*__%
    (lambda (_bytes118993_ _start118994_ _end118995_ _buf118996_ _need118997_)
      (let* ((_rlo118999_
              (##unchecked-structure-ref
               _buf118996_
               '2
               std/net/bio/input#input-buffer::t
               '#f))
             (_rhi119001_
              (##unchecked-structure-ref
               _buf118996_
               '3
               std/net/bio/input#input-buffer::t
               '#f))
             (_have119003_ (##fx- _rhi119001_ _rlo118999_))
             (_want119005_ (##fx- _end118995_ _start118994_))
             (_need119007_ (##fxmin _want119005_ _need118997_))
             (_copy119009_ (##fxmin _want119005_ _have119003_)))
        (if (##fx> _copy119009_ '0)
            (let ((_rlo+copy119012_ (##fx+ _rlo118999_ _copy119009_)))
              (##subu8vector-move!
               (##unchecked-structure-ref
                _buf118996_
                '1
                std/net/bio/input#input-buffer::t
                '#f)
               _rlo118999_
               _rlo+copy119012_
               _bytes118993_
               _start118994_)
              (##unchecked-structure-set!
               _buf118996_
               _rlo+copy119012_
               '2
               std/net/bio/input#input-buffer::t
               '#f))
            '#!void)
        (if (##fx>= _copy119009_ _need119007_)
            _copy119009_
            (let ((_rd119014_
                   (std/net/bio/input#bio-input-fill! _buf118996_ '1)))
              (if (##fx> _rd119014_ '0)
                  (std/net/bio/input#bio-read-subu8vector*__%
                   _bytes118993_
                   (##fx+ _start118994_ _copy119009_)
                   _end118995_
                   _buf118996_
                   (##fx- _need119007_ _copy119009_))
                  _copy119009_))))))
  (define std/net/bio/input#bio-read-subu8vector*__0
    (lambda (_bytes119019_ _start119020_ _end119021_ _buf119022_)
      (let ((_need119024_ '0))
        (std/net/bio/input#bio-read-subu8vector*__%
         _bytes119019_
         _start119020_
         _end119021_
         _buf119022_
         _need119024_))))
  (define std/net/bio/input#bio-read-subu8vector*
    (lambda _g119089_
      (let ((_g119088_ (length _g119089_)))
        (cond ((##fx= _g119088_ 4)
               (apply std/net/bio/input#bio-read-subu8vector*__0 _g119089_))
              ((##fx= _g119088_ 5)
               (apply std/net/bio/input#bio-read-subu8vector*__% _g119089_))
              (else
               (##raise-wrong-number-of-arguments-exception
                std/net/bio/input#bio-read-subu8vector*
                _g119089_))))))
  (define std/net/bio/input#bio-read-subu8vector-unbuffered
    (lambda (_bytes118976_ _start118977_ _end118978_ _buf118979_)
      (let* ((_need118981_ (##fx- _end118978_ _start118977_))
             (_rlo118983_
              (##unchecked-structure-ref
               _buf118979_
               '2
               std/net/bio/input#input-buffer::t
               '#f))
             (_rhi118985_
              (##unchecked-structure-ref
               _buf118979_
               '3
               std/net/bio/input#input-buffer::t
               '#f))
             (_rlo+need118987_ (##fx+ _rlo118983_ _need118981_)))
        (if (##fx<= _rlo+need118987_ _rhi118985_)
            (begin
              (##subu8vector-move!
               (##unchecked-structure-ref
                _buf118979_
                '1
                std/net/bio/input#input-buffer::t
                '#f)
               _rlo118983_
               _rlo+need118987_
               _bytes118976_
               _start118977_)
              (##unchecked-structure-set!
               _buf118979_
               _rlo+need118987_
               '2
               std/net/bio/input#input-buffer::t
               '#f)
              _need118981_)
            (if (##fx< _rlo118983_ _rhi118985_)
                (let ((_have118990_ (##fx- _rhi118985_ _rlo118983_)))
                  (##subu8vector-move!
                   (##unchecked-structure-ref
                    _buf118979_
                    '1
                    std/net/bio/input#input-buffer::t
                    '#f)
                   _rlo118983_
                   _rhi118985_
                   _bytes118976_
                   _start118977_)
                  (##unchecked-structure-set!
                   _buf118979_
                   _rhi118985_
                   '2
                   std/net/bio/input#input-buffer::t
                   '#f)
                  (##fx+ _have118990_
                         (std/net/bio/input#bio-input-read
                          _bytes118976_
                          (##fx+ _start118977_ _have118990_)
                          _end118978_
                          _buf118979_)))
                (std/net/bio/input#bio-input-read
                 _bytes118976_
                 _start118977_
                 _end118978_
                 _buf118979_))))))
  (define std/net/bio/input#bio-read-bytes
    (lambda (_bytes118968_ _buf118969_)
      (let* ((_len118971_ (u8vector-length _bytes118968_))
             (_rd118973_
              (std/net/bio/input#bio-read-subu8vector
               _bytes118968_
               '0
               _len118971_
               _buf118969_)))
        (if (##fx= _rd118973_ _len118971_)
            '#!void
            (std/error#raise-io-error
             'bio-read-bytes
             '"premature end of input"
             _buf118969_
             _rd118973_
             _len118971_)))))
  (define std/net/bio/input#bio-read-bytes-unbuffered
    (lambda (_bytes118960_ _buf118961_)
      (let* ((_len118963_ (u8vector-length _bytes118960_))
             (_rd118965_
              (std/net/bio/input#bio-read-subu8vector-unbuffered
               _bytes118960_
               '0
               _len118963_
               _buf118961_)))
        (if (##fx= _rd118965_ _len118963_)
            '#!void
            (std/error#raise-io-error
             'bio-read-bytes
             '"premature end of input"
             _buf118961_
             _rd118965_
             _len118963_)))))
  (define std/net/bio/input#bio-read-u32
    (lambda (_buf118939_)
      (let* ((_rlo118941_
              (##unchecked-structure-ref
               _buf118939_
               '2
               std/net/bio/input#input-buffer::t
               '#f))
             (_rhi118943_
              (##unchecked-structure-ref
               _buf118939_
               '3
               std/net/bio/input#input-buffer::t
               '#f))
             (_rlo+4118945_ (##fx+ _rlo118941_ '4)))
        (if (##fx<= _rlo+4118945_ _rhi118943_)
            (let ((_u32118948_
                   (std/net/bio/input#bio-get-u32
                    (##unchecked-structure-ref
                     _buf118939_
                     '1
                     std/net/bio/input#input-buffer::t
                     '#f)
                    _rlo118941_)))
              (##unchecked-structure-set!
               _buf118939_
               _rlo+4118945_
               '2
               std/net/bio/input#input-buffer::t
               '#f)
              _u32118948_)
            (let* ((_g119090_
                    (std/net/bio/input#bio-input-fill! _buf118939_ '4))
                   (_rlo118951_
                    (##unchecked-structure-ref
                     _buf118939_
                     '2
                     std/net/bio/input#input-buffer::t
                     '#f))
                   (_rhi118953_
                    (##unchecked-structure-ref
                     _buf118939_
                     '3
                     std/net/bio/input#input-buffer::t
                     '#f))
                   (_rlo+4118955_ (##fx+ _rlo118951_ '4)))
              (if (##fx<= _rlo+4118955_ _rhi118953_)
                  (let ((_u32118958_
                         (std/net/bio/input#bio-get-u32
                          (##unchecked-structure-ref
                           _buf118939_
                           '1
                           std/net/bio/input#input-buffer::t
                           '#f)
                          _rlo118951_)))
                    (##unchecked-structure-set!
                     _buf118939_
                     _rlo+4118955_
                     '2
                     std/net/bio/input#input-buffer::t
                     '#f)
                    _u32118958_)
                  (std/error#raise-io-error
                   'bio-read-u32
                   '"Premature end of input"
                   _buf118939_
                   _rlo118951_
                   _rhi118953_)))))))
  (define std/net/bio/input#bio-get-u32
    (lambda (_u8v118931_ _start118932_)
      (let ((_$e118934_
             (##fxarithmetic-shift-left?
              (##u8vector-ref _u8v118931_ _start118932_)
              '24)))
        (if _$e118934_
            ((lambda (_bits118937_)
               (##fxior _bits118937_
                        (##fxarithmetic-shift-left
                         (##u8vector-ref _u8v118931_ (##fx+ _start118932_ '1))
                         '16)
                        (##fxarithmetic-shift-left
                         (##u8vector-ref _u8v118931_ (##fx+ _start118932_ '2))
                         '8)
                        (##u8vector-ref _u8v118931_ (##fx+ _start118932_ '3))))
             _$e118934_)
            (bitwise-ior
             (arithmetic-shift (##u8vector-ref _u8v118931_ _start118932_) '24)
             (##fxarithmetic-shift-left
              (##u8vector-ref _u8v118931_ (##fx+ _start118932_ '1))
              '16)
             (##fxarithmetic-shift-left
              (##u8vector-ref _u8v118931_ (##fx+ _start118932_ '2))
              '8)
             (##u8vector-ref _u8v118931_ (##fx+ _start118932_ '3)))))))
  (define std/net/bio/input#2^31 (expt '2 '31))
  (define std/net/bio/input#2^32 (expt '2 '32))
  (define std/net/bio/input#bio-read-s32
    (lambda (_buf118927_)
      (let ((_u32118929_ (std/net/bio/input#bio-read-u32 _buf118927_)))
        (if (> _u32118929_ std/net/bio/input#2^31)
            (- _u32118929_ std/net/bio/input#2^32)
            _u32118929_))))
  (define std/net/bio/input#bio-read-u16
    (lambda (_buf118906_)
      (let* ((_rlo118908_
              (##unchecked-structure-ref
               _buf118906_
               '2
               std/net/bio/input#input-buffer::t
               '#f))
             (_rhi118910_
              (##unchecked-structure-ref
               _buf118906_
               '3
               std/net/bio/input#input-buffer::t
               '#f))
             (_rlo+2118912_ (##fx+ _rlo118908_ '2)))
        (if (##fx<= _rlo+2118912_ _rhi118910_)
            (let ((_u16118915_
                   (std/net/bio/input#bio-get-u16
                    (##unchecked-structure-ref
                     _buf118906_
                     '1
                     std/net/bio/input#input-buffer::t
                     '#f)
                    _rlo118908_)))
              (##unchecked-structure-set!
               _buf118906_
               _rlo+2118912_
               '2
               std/net/bio/input#input-buffer::t
               '#f)
              _u16118915_)
            (let* ((_g119091_
                    (std/net/bio/input#bio-input-fill! _buf118906_ '2))
                   (_rlo118918_
                    (##unchecked-structure-ref
                     _buf118906_
                     '2
                     std/net/bio/input#input-buffer::t
                     '#f))
                   (_rhi118920_
                    (##unchecked-structure-ref
                     _buf118906_
                     '3
                     std/net/bio/input#input-buffer::t
                     '#f))
                   (_rlo+2118922_ (##fx+ _rlo118918_ '2)))
              (if (##fx<= _rlo+2118922_ _rhi118920_)
                  (let ((_u16118925_
                         (std/net/bio/input#bio-get-u16
                          (##unchecked-structure-ref
                           _buf118906_
                           '1
                           std/net/bio/input#input-buffer::t
                           '#f)
                          _rlo118918_)))
                    (##unchecked-structure-set!
                     _buf118906_
                     _rlo+2118922_
                     '2
                     std/net/bio/input#input-buffer::t
                     '#f)
                    _u16118925_)
                  (std/error#raise-io-error
                   'bio-read-u16
                   '"Premature end of input"
                   _buf118906_
                   _rlo118918_
                   _rhi118920_)))))))
  (define std/net/bio/input#bio-get-u16
    (lambda (_u8v118903_ _start118904_)
      (##fxior (##fxarithmetic-shift-left
                (##u8vector-ref _u8v118903_ _start118904_)
                '8)
               (##u8vector-ref _u8v118903_ (##fx+ _start118904_ '1)))))
  (define std/net/bio/input#2^15 (expt '2 '15))
  (define std/net/bio/input#2^16 (expt '2 '16))
  (define std/net/bio/input#bio-read-s16
    (lambda (_buf118899_)
      (let ((_u16118901_ (std/net/bio/input#bio-read-u16 _buf118899_)))
        (if (##fx> _u16118901_ std/net/bio/input#2^15)
            (##fx- _u16118901_ std/net/bio/input#2^16)
            _u16118901_))))
  (define std/net/bio/input#bio-read-char
    (lambda (_buf118866_)
      (letrec ((_fill+recur!118868_
                (lambda (_need118895_)
                  (let ((_rd118897_
                         (std/net/bio/input#bio-input-fill!
                          _buf118866_
                          _need118895_)))
                    (if (##fxzero? _rd118897_)
                        (std/error#raise-io-error
                         'bio-read-char
                         '"Incomplete character"
                         _buf118866_)
                        (std/net/bio/input#bio-read-char _buf118866_)))))
               (_get-byte118869_
                (lambda (_i118893_)
                  (##u8vector-ref
                   (##unchecked-structure-ref
                    _buf118866_
                    '1
                    std/net/bio/input#input-buffer::t
                    '#f)
                   _i118893_))))
        (let ((_rlo118871_
               (##unchecked-structure-ref
                _buf118866_
                '2
                std/net/bio/input#input-buffer::t
                '#f))
              (_rhi118872_
               (##unchecked-structure-ref
                _buf118866_
                '3
                std/net/bio/input#input-buffer::t
                '#f)))
          (if (##fx< _rlo118871_ _rhi118872_)
              (let ((_byte118874_ (_get-byte118869_ _rlo118871_)))
                (if (##fx<= _byte118874_ '127)
                    (begin
                      (##unchecked-structure-set!
                       _buf118866_
                       (##fx+ _rlo118871_ '1)
                       '2
                       std/net/bio/input#input-buffer::t
                       '#f)
                      (##integer->char _byte118874_))
                    (if (##fx<= _byte118874_ '223)
                        (let ((_rlo+1118876_ (##fx+ _rlo118871_ '1)))
                          (if (##fx< _rlo+1118876_ _rhi118872_)
                              (let ((_byte2118878_
                                     (_get-byte118869_ _rlo+1118876_)))
                                (##unchecked-structure-set!
                                 _buf118866_
                                 (##fx+ _rlo118871_ '2)
                                 '2
                                 std/net/bio/input#input-buffer::t
                                 '#f)
                                (##integer->char
                                 (##fxior (##fxarithmetic-shift-left
                                           (##fxand _byte118874_ '31)
                                           '6)
                                          (##fxand _byte2118878_ '63))))
                              (_fill+recur!118868_ '2)))
                        (if (##fx<= _byte118874_ '239)
                            (let ((_rlo+2118880_ (##fx+ _rlo118871_ '2)))
                              (if (##fx< _rlo+2118880_ _rhi118872_)
                                  (let ((_byte2118882_
                                         (_get-byte118869_
                                          (##fx+ _rlo118871_ '1)))
                                        (_byte3118883_
                                         (_get-byte118869_ _rlo+2118880_)))
                                    (##unchecked-structure-set!
                                     _buf118866_
                                     (##fx+ _rlo118871_ '3)
                                     '2
                                     std/net/bio/input#input-buffer::t
                                     '#f)
                                    (##integer->char
                                     (##fxior (##fxarithmetic-shift-left
                                               (##fxand _byte118874_ '15)
                                               '12)
                                              (##fxarithmetic-shift-left
                                               (##fxand _byte2118882_ '63)
                                               '6)
                                              (##fxand _byte3118883_ '63))))
                                  (_fill+recur!118868_ '3)))
                            (if (##fx<= _byte118874_ '244)
                                (let ((_rlo+3118885_ (##fx+ _rlo118871_ '3)))
                                  (if (##fx< _rlo+3118885_ _rhi118872_)
                                      (let ((_byte2118887_
                                             (_get-byte118869_
                                              (##fx+ _rlo118871_ '1)))
                                            (_byte3118888_
                                             (_get-byte118869_
                                              (##fx+ _rlo118871_ '2)))
                                            (_byte4118889_
                                             (_get-byte118869_ _rlo+3118885_)))
                                        (##unchecked-structure-set!
                                         _buf118866_
                                         (##integer->char
                                          (##fxior (##fxarithmetic-shift-left
                                                    (##fxand _byte118874_ '7)
                                                    '18)
                                                   (##fxarithmetic-shift-left
                                                    (##fxand _byte2118887_ '63)
                                                    '12)
                                                   (##fxarithmetic-shift-left
                                                    (##fxand _byte3118888_ '63)
                                                    '6)
                                                   (##fxand _byte4118889_
                                                            '63)))
                                         '2
                                         std/net/bio/input#input-buffer::t
                                         '#f))
                                      (_fill+recur!118868_ '4)))
                                (begin
                                  (##unchecked-structure-set!
                                   _buf118866_
                                   (##fx+ _rlo118871_ '1)
                                   '2
                                   std/net/bio/input#input-buffer::t
                                   '#f)
                                  '#\xfffd))))))
              (let ((_rd118891_
                     (std/net/bio/input#bio-input-fill! _buf118866_ '1)))
                (if (##fxzero? _rd118891_)
                    (eof-object)
                    (std/net/bio/input#bio-read-char _buf118866_))))))))
  (define std/net/bio/input#bio-read-substring
    (lambda (_str118854_ _start118855_ _end118856_ _buf118857_)
      (let _lp118859_ ((_i118861_ _start118855_) (_count118862_ '0))
        (if (##fx< _i118861_ _end118856_)
            (let ((_char118864_ (std/net/bio/input#bio-read-char _str118854_)))
              (if (eof-object? _char118864_)
                  _count118862_
                  (begin
                    (##string-set! _str118854_ _i118861_ _char118864_)
                    (_lp118859_
                     (##fx+ _start118855_ '1)
                     (##fx+ _count118862_ '1)))))
            _count118862_))))
  (define std/net/bio/input#bio-read-string
    (lambda (_str118844_ _start118845_ _end118846_ _buf118847_)
      (let* ((_len118849_ (string-length _str118844_))
             (_rd118851_
              (std/net/bio/input#bio-read-substring
               _str118844_
               '0
               _len118849_
               _buf118847_)))
        (if (##fx= _rd118851_ _len118849_)
            '#!void
            (std/error#raise-io-error
             'bio-read-string
             '"premature end of input"
             _buf118847_
             _rd118851_
             _len118849_)))))
  (define std/net/bio/input#bio-read-line__%
    (lambda (_buf118800_ _sep118801_ _include-sep?118802_ _maxchars118803_)
      (let _lp118805_ ((_chars118807_ '()) (_count118808_ '0))
        (if (or (not _maxchars118803_) (##fx< _count118808_ _maxchars118803_))
            (let ((_char118813_ (std/net/bio/input#bio-read-char _buf118800_)))
              (if (eof-object? _char118813_)
                  (if (null? _chars118807_)
                      (eof-object)
                      (list->string (std/srfi/1#reverse! _chars118807_)))
                  (if (eq? _char118813_ _sep118801_)
                      (list->string
                       (std/srfi/1#reverse!
                        (if _include-sep?118802_
                            (cons _sep118801_ _chars118807_)
                            _chars118807_)))
                      (_lp118805_
                       (cons _char118813_ _chars118807_)
                       (##fx+ _count118808_ '1)))))
            (list->string (std/srfi/1#reverse! _chars118807_))))))
  (define std/net/bio/input#bio-read-line__0
    (lambda (_buf118818_)
      (let* ((_sep118820_ '#\newline)
             (_include-sep?118822_ '#f)
             (_maxchars118824_ '#f))
        (std/net/bio/input#bio-read-line__%
         _buf118818_
         _sep118820_
         _include-sep?118822_
         _maxchars118824_))))
  (define std/net/bio/input#bio-read-line__1
    (lambda (_buf118826_ _sep118827_)
      (let* ((_include-sep?118829_ '#f) (_maxchars118831_ '#f))
        (std/net/bio/input#bio-read-line__%
         _buf118826_
         _sep118827_
         _include-sep?118829_
         _maxchars118831_))))
  (define std/net/bio/input#bio-read-line__2
    (lambda (_buf118833_ _sep118834_ _include-sep?118835_)
      (let ((_maxchars118837_ '#f))
        (std/net/bio/input#bio-read-line__%
         _buf118833_
         _sep118834_
         _include-sep?118835_
         _maxchars118837_))))
  (define std/net/bio/input#bio-read-line
    (lambda _g119093_
      (let ((_g119092_ (length _g119093_)))
        (cond ((##fx= _g119092_ 1)
               (apply std/net/bio/input#bio-read-line__0 _g119093_))
              ((##fx= _g119092_ 2)
               (apply std/net/bio/input#bio-read-line__1 _g119093_))
              ((##fx= _g119092_ 3)
               (apply std/net/bio/input#bio-read-line__2 _g119093_))
              ((##fx= _g119092_ 4)
               (apply std/net/bio/input#bio-read-line__% _g119093_))
              (else
               (##raise-wrong-number-of-arguments-exception
                std/net/bio/input#bio-read-line
                _g119093_))))))
  (define std/net/bio/input#bio-input-utf8-decode
    (lambda (_count118787_ _buf118788_)
      (let* ((_rlo118790_
              (##unchecked-structure-ref
               _buf118788_
               '2
               std/net/bio/input#input-buffer::t
               '#f))
             (_rhi118792_
              (##unchecked-structure-ref
               _buf118788_
               '3
               std/net/bio/input#input-buffer::t
               '#f))
             (_rlo+count118794_ (##fx+ _rlo118790_ _count118787_)))
        (if (##fx<= _rlo+count118794_ _rhi118792_)
            (let ((_str118797_
                   (std/text/utf8#utf8-decode
                    (##unchecked-structure-ref
                     _buf118788_
                     '1
                     std/net/bio/input#input-buffer::t
                     '#f)
                    _rlo118790_
                    _rlo+count118794_)))
              (##unchecked-structure-set!
               _buf118788_
               _rlo+count118794_
               '2
               std/net/bio/input#input-buffer::t
               '#f)
              _str118797_)
            (std/error#raise-io-error
             'bio-input-utf8-decode
             '"not enough bytes"
             _buf118788_
             _count118787_)))))
  (define std/net/bio/input#bio-input-skip
    (lambda (_count118767_ _buf118768_)
      (let _lp118770_ ((_count118772_ _count118767_))
        (let* ((_rlo118774_
                (##unchecked-structure-ref
                 _buf118768_
                 '2
                 std/net/bio/input#input-buffer::t
                 '#f))
               (_rhi118776_
                (##unchecked-structure-ref
                 _buf118768_
                 '3
                 std/net/bio/input#input-buffer::t
                 '#f))
               (_have118778_ (##fx- _rhi118776_ _rlo118774_)))
          (if (##fx< _have118778_ _count118772_)
              (let ((_need118781_ (##fx- _count118772_ _have118778_)))
                (##unchecked-structure-set!
                 _buf118768_
                 _rhi118776_
                 '2
                 std/net/bio/input#input-buffer::t
                 '#f)
                (let ((_rd118783_
                       (std/net/bio/input#bio-input-fill!
                        _buf118768_
                        _need118781_)))
                  (if (##fxzero? _rd118783_)
                      (std/error#raise-io-error
                       'bio-input-skip
                       '"premature end of input"
                       _buf118768_
                       _count118772_)
                      (_lp118770_ _need118781_))))
              (let ((_rlo+count118785_ (##fx+ _rlo118774_ _count118772_)))
                (##unchecked-structure-set!
                 _buf118768_
                 _rlo+count118785_
                 '2
                 std/net/bio/input#input-buffer::t
                 '#f)))))))
  (define std/net/bio/input#bio-input-count
    (lambda (_buf118762_)
      (let ((_rlo118764_
             (##unchecked-structure-ref
              _buf118762_
              '2
              std/net/bio/input#input-buffer::t
              '#f))
            (_rhi118765_
             (##unchecked-structure-ref
              _buf118762_
              '3
              std/net/bio/input#input-buffer::t
              '#f)))
        (##fx- _rhi118765_ _rlo118764_)))))
