(declare (block) (standard-bindings) (extended-bindings))
(begin
  (declare (not safe))
  (define std/actor/rpc/proto/message#rpc-proto-connect-hello '12)
  (define std/actor/rpc/proto/message#rpc-proto-connect-accept '1)
  (define std/actor/rpc/proto/message#rpc-proto-connect-reject '2)
  (define std/actor/rpc/proto/message#rpc-proto-challenge '3)
  (define std/actor/rpc/proto/message#rpc-proto-response '4)
  (define std/actor/rpc/proto/message#rpc-proto-key-exchange '5)
  (define std/actor/rpc/proto/message#rpc-proto-keep-alive '6)
  (define std/actor/rpc/proto/message#rpc-proto-message '7)
  (define std/actor/rpc/proto/message#rpc-proto-message-raw '0)
  (define std/actor/rpc/proto/message#rpc-proto-message-call '1)
  (define std/actor/rpc/proto/message#rpc-proto-message-value '2)
  (define std/actor/rpc/proto/message#rpc-proto-message-error '3)
  (define std/actor/rpc/proto/message#rpc-proto-message-event '4)
  (define std/actor/rpc/proto/message#rpc-proto-message-stream '5)
  (define std/actor/rpc/proto/message#rpc-proto-message-yield '6)
  (define std/actor/rpc/proto/message#rpc-proto-message-end '7)
  (define std/actor/rpc/proto/message#rpc-proto-message-continue '8)
  (define std/actor/rpc/proto/message#rpc-proto-message-close '9)
  (define std/actor/rpc/proto/message#rpc-proto-message-abort '10)
  (define std/actor/rpc/proto/message#rpc-proto-message-sync '11)
  (define std/actor/rpc/proto/message#rpc-proto-message-max-length
    (expt '2 '20))
  (define std/actor/rpc/proto/message#rpc-proto-null '0)
  (define std/actor/rpc/proto/message#rpc-proto-cookie '1)
  (define std/actor/rpc/proto/message#rpc-proto-cipher '2)
  (define std/actor/rpc/proto/message#rpc-proto-cookie-cipher '3)
  (define std/actor/rpc/proto/message#rpc-proto-marshal-message
    (lambda (_msg203446_ _proto203447_)
      (let ((_outp203449_
             (std/net/bio/buffer#open-serializer-output-buffer__0)))
        (std/actor/rpc/proto/message#rpc-proto-write-message
         _msg203446_
         _outp203449_
         _proto203447_)
        _outp203449_)))
  (define std/actor/rpc/proto/message#rpc-proto-write-message
    (lambda (_msg203177_ _buffer203178_ _proto203179_)
      (let* ((_msg203180203188_ _msg203177_)
             (_E203182203192_
              (lambda () (error '"No clause matching" _msg203180203188_)))
             (_K203183203430_
              (lambda (_dest203195_ _content203196_)
                (if _proto203179_
                    (std/actor/xdr#current-xdr-type-registry
                     (##direct-structure-ref
                      _proto203179_
                      '3
                      std/actor/proto#!protocol::t
                      '#f))
                    (std/actor/xdr#current-xdr-type-registry
                     std/actor/xdr#+xdr-default-type-registry+))
                (if (##structure-instance-of?
                     _content203196_
                     'std/actor/proto#!rpc::t)
                    (let* ((_content203197203239_ _content203196_)
                           (_else203209203247_
                            (lambda ()
                              (std/actor/proto#raise-rpc-io-error
                               'rpc-proto-write-message
                               '"unknown rpc message type"
                               _content203196_))))
                      (let ((_K203235203417_
                             (lambda (_k203414_ _e203415_)
                               (std/net/bio/output#bio-write-u8
                                std/actor/rpc/proto/message#rpc-proto-message-call
                                _buffer203178_)
                               (std/actor/rpc/base#xdr-write-uuid
                                _dest203195_
                                _buffer203178_)
                               (std/actor/xdr#xdr-write-uint
                                _k203414_
                                _buffer203178_)
                               (std/actor/xdr#xdr-write
                                _e203415_
                                _buffer203178_)))
                            (_K203232203398_
                             (lambda (_k203395_ _e203396_)
                               (std/net/bio/output#bio-write-u8
                                std/actor/rpc/proto/message#rpc-proto-message-value
                                _buffer203178_)
                               (std/actor/rpc/base#xdr-write-uuid
                                _dest203195_
                                _buffer203178_)
                               (std/actor/xdr#xdr-write-uint
                                _k203395_
                                _buffer203178_)
                               (std/actor/xdr#xdr-write
                                _e203396_
                                _buffer203178_)))
                            (_K203229203378_
                             (lambda (_k203375_ _e203376_)
                               (std/net/bio/output#bio-write-u8
                                std/actor/rpc/proto/message#rpc-proto-message-error
                                _buffer203178_)
                               (std/actor/rpc/base#xdr-write-uuid
                                _dest203195_
                                _buffer203178_)
                               (std/actor/xdr#xdr-write-uint
                                _k203375_
                                _buffer203178_)
                               (std/actor/xdr#xdr-write
                                _e203376_
                                _buffer203178_)))
                            (_K203227203363_
                             (lambda (_e203361_)
                               (std/net/bio/output#bio-write-u8
                                std/actor/rpc/proto/message#rpc-proto-message-event
                                _buffer203178_)
                               (std/actor/rpc/base#xdr-write-uuid
                                _dest203195_
                                _buffer203178_)
                               (std/actor/xdr#xdr-write
                                _e203361_
                                _buffer203178_)))
                            (_K203224203344_
                             (lambda (_k203341_ _e203342_)
                               (std/net/bio/output#bio-write-u8
                                std/actor/rpc/proto/message#rpc-proto-message-stream
                                _buffer203178_)
                               (std/actor/rpc/base#xdr-write-uuid
                                _dest203195_
                                _buffer203178_)
                               (std/actor/xdr#xdr-write-uint
                                _k203341_
                                _buffer203178_)
                               (std/actor/xdr#xdr-write
                                _e203342_
                                _buffer203178_)))
                            (_K203221203324_
                             (lambda (_k203321_ _e203322_)
                               (std/net/bio/output#bio-write-u8
                                std/actor/rpc/proto/message#rpc-proto-message-yield
                                _buffer203178_)
                               (std/actor/rpc/base#xdr-write-uuid
                                _dest203195_
                                _buffer203178_)
                               (std/actor/xdr#xdr-write-uint
                                _k203321_
                                _buffer203178_)
                               (std/actor/xdr#xdr-write
                                _e203322_
                                _buffer203178_)))
                            (_K203219203309_
                             (lambda (_k203307_)
                               (std/net/bio/output#bio-write-u8
                                std/actor/rpc/proto/message#rpc-proto-message-end
                                _buffer203178_)
                               (std/actor/rpc/base#xdr-write-uuid
                                _dest203195_
                                _buffer203178_)
                               (std/actor/xdr#xdr-write-uint
                                _k203307_
                                _buffer203178_)))
                            (_K203217203295_
                             (lambda (_k203293_)
                               (std/net/bio/output#bio-write-u8
                                std/actor/rpc/proto/message#rpc-proto-message-continue
                                _buffer203178_)
                               (std/actor/rpc/base#xdr-write-uuid
                                _dest203195_
                                _buffer203178_)
                               (std/actor/xdr#xdr-write-uint
                                _k203293_
                                _buffer203178_)))
                            (_K203215203281_
                             (lambda (_k203279_)
                               (std/net/bio/output#bio-write-u8
                                std/actor/rpc/proto/message#rpc-proto-message-close
                                _buffer203178_)
                               (std/actor/rpc/base#xdr-write-uuid
                                _dest203195_
                                _buffer203178_)
                               (std/actor/xdr#xdr-write-uint
                                _k203279_
                                _buffer203178_)))
                            (_K203213203267_
                             (lambda (_k203265_)
                               (std/net/bio/output#bio-write-u8
                                std/actor/rpc/proto/message#rpc-proto-message-abort
                                _buffer203178_)
                               (std/actor/rpc/base#xdr-write-uuid
                                _dest203195_
                                _buffer203178_)
                               (std/actor/xdr#xdr-write-uint
                                _k203265_
                                _buffer203178_)))
                            (_K203211203253_
                             (lambda (_k203251_)
                               (std/net/bio/output#bio-write-u8
                                std/actor/rpc/proto/message#rpc-proto-message-sync
                                _buffer203178_)
                               (std/actor/rpc/base#xdr-write-uuid
                                _dest203195_
                                _buffer203178_)
                               (std/actor/xdr#xdr-write-uint
                                _k203251_
                                _buffer203178_))))
                        (let* ((_try-match203208203261_
                                (lambda ()
                                  (if (##structure-direct-instance-of?
                                       _content203197203239_
                                       'std/actor/proto#!sync::t)
                                      (let* ((_e203212203256_
                                              (##vector-ref
                                               _content203197203239_
                                               '1))
                                             (_k203259_ _e203212203256_))
                                        (_K203211203253_ _k203259_))
                                      (_else203209203247_))))
                               (_try-match203207203275_
                                (lambda ()
                                  (if (##structure-direct-instance-of?
                                       _content203197203239_
                                       'std/actor/proto#!abort::t)
                                      (let* ((_e203214203270_
                                              (##vector-ref
                                               _content203197203239_
                                               '1))
                                             (_k203273_ _e203214203270_))
                                        (_K203213203267_ _k203273_))
                                      (_try-match203208203261_))))
                               (_try-match203206203289_
                                (lambda ()
                                  (if (##structure-direct-instance-of?
                                       _content203197203239_
                                       'std/actor/proto#!close::t)
                                      (let* ((_e203216203284_
                                              (##vector-ref
                                               _content203197203239_
                                               '1))
                                             (_k203287_ _e203216203284_))
                                        (_K203215203281_ _k203287_))
                                      (_try-match203207203275_))))
                               (_try-match203205203303_
                                (lambda ()
                                  (if (##structure-direct-instance-of?
                                       _content203197203239_
                                       'std/actor/proto#!continue::t)
                                      (let* ((_e203218203298_
                                              (##vector-ref
                                               _content203197203239_
                                               '1))
                                             (_k203301_ _e203218203298_))
                                        (_K203217203295_ _k203301_))
                                      (_try-match203206203289_))))
                               (_try-match203204203317_
                                (lambda ()
                                  (if (##structure-direct-instance-of?
                                       _content203197203239_
                                       'std/actor/proto#!end::t)
                                      (let* ((_e203220203312_
                                              (##vector-ref
                                               _content203197203239_
                                               '1))
                                             (_k203315_ _e203220203312_))
                                        (_K203219203309_ _k203315_))
                                      (_try-match203205203303_))))
                               (_try-match203203203337_
                                (lambda ()
                                  (if (##structure-direct-instance-of?
                                       _content203197203239_
                                       'std/actor/proto#!yield::t)
                                      (let* ((_e203222203327_
                                              (##vector-ref
                                               _content203197203239_
                                               '1))
                                             (_e203223203332_
                                              (##vector-ref
                                               _content203197203239_
                                               '2)))
                                        (let ((_e203330_ _e203222203327_)
                                              (_k203335_ _e203223203332_))
                                          (_K203221203324_
                                           _k203335_
                                           _e203330_)))
                                      (_try-match203204203317_))))
                               (_try-match203202203357_
                                (lambda ()
                                  (if (##structure-direct-instance-of?
                                       _content203197203239_
                                       'std/actor/proto#!stream::t)
                                      (let* ((_e203225203347_
                                              (##vector-ref
                                               _content203197203239_
                                               '1))
                                             (_e203226203352_
                                              (##vector-ref
                                               _content203197203239_
                                               '2)))
                                        (let ((_e203350_ _e203225203347_)
                                              (_k203355_ _e203226203352_))
                                          (_K203224203344_
                                           _k203355_
                                           _e203350_)))
                                      (_try-match203203203337_))))
                               (_try-match203201203371_
                                (lambda ()
                                  (if (##structure-direct-instance-of?
                                       _content203197203239_
                                       'std/actor/proto#!event::t)
                                      (let* ((_e203228203366_
                                              (##vector-ref
                                               _content203197203239_
                                               '1))
                                             (_e203369_ _e203228203366_))
                                        (_K203227203363_ _e203369_))
                                      (_try-match203202203357_))))
                               (_try-match203200203391_
                                (lambda ()
                                  (if (##structure-direct-instance-of?
                                       _content203197203239_
                                       'std/actor/proto#!error::t)
                                      (let* ((_e203230203381_
                                              (##vector-ref
                                               _content203197203239_
                                               '1))
                                             (_e203231203386_
                                              (##vector-ref
                                               _content203197203239_
                                               '2)))
                                        (let ((_e203384_ _e203230203381_)
                                              (_k203389_ _e203231203386_))
                                          (_K203229203378_
                                           _k203389_
                                           _e203384_)))
                                      (_try-match203201203371_))))
                               (_try-match203199203411_
                                (lambda ()
                                  (if (##structure-direct-instance-of?
                                       _content203197203239_
                                       'std/actor/proto#!value::t)
                                      (let* ((_e203233203401_
                                              (##vector-ref
                                               _content203197203239_
                                               '1))
                                             (_e203234203406_
                                              (##vector-ref
                                               _content203197203239_
                                               '2)))
                                        (let ((_e203404_ _e203233203401_)
                                              (_k203409_ _e203234203406_))
                                          (_K203232203398_
                                           _k203409_
                                           _e203404_)))
                                      (_try-match203200203391_)))))
                          (if (##structure-direct-instance-of?
                               _content203197203239_
                               'std/actor/proto#!call::t)
                              (let* ((_e203236203420_
                                      (##vector-ref _content203197203239_ '1))
                                     (_e203237203425_
                                      (##vector-ref _content203197203239_ '2)))
                                (let ((_e203423_ _e203236203420_)
                                      (_k203428_ _e203237203425_))
                                  (_K203235203417_ _k203428_ _e203423_)))
                              (_try-match203199203411_)))))
                    (begin
                      (std/net/bio/output#bio-write-u8
                       std/actor/rpc/proto/message#rpc-proto-message-raw
                       _buffer203178_)
                      (std/actor/xdr#xdr-write
                       _content203196_
                       _buffer203178_))))))
        (if (##structure-direct-instance-of?
             _msg203180203188_
             'std/actor/message#message::t)
            (let* ((_e203184203433_ (##vector-ref _msg203180203188_ '1))
                   (_content203436_ _e203184203433_)
                   (_e203185203438_ (##vector-ref _msg203180203188_ '2))
                   (_e203186203441_ (##vector-ref _msg203180203188_ '3))
                   (_dest203444_ _e203186203441_))
              (_K203183203430_ _dest203444_ _content203436_))
            (_E203182203192_)))))
  (define std/actor/rpc/proto/message#rpc-proto-read-envelope
    (lambda (_buffer203150_)
      (let* ((_type203152_ (std/net/bio/input#bio-read-u8 _buffer203150_))
             (_dest203154_ (std/actor/rpc/base#xdr-read-uuid _buffer203150_)))
        (##structure
         std/actor/message#message::t
         (if (eq? _type203152_
                  std/actor/rpc/proto/message#rpc-proto-message-call)
             (let ((_k203157_ (std/actor/xdr#xdr-read-uint _buffer203150_)))
               (##structure std/actor/proto#!call::t '#!void _k203157_))
             (if (eq? _type203152_
                      std/actor/rpc/proto/message#rpc-proto-message-value)
                 (let ((_k203159_
                        (std/actor/xdr#xdr-read-uint _buffer203150_)))
                   (##structure std/actor/proto#!value::t '#!void _k203159_))
                 (if (eq? _type203152_
                          std/actor/rpc/proto/message#rpc-proto-message-error)
                     (let ((_k203161_
                            (std/actor/xdr#xdr-read-uint _buffer203150_)))
                       (##structure
                        std/actor/proto#!error::t
                        '#!void
                        _k203161_))
                     (if (eq? _type203152_
                              std/actor/rpc/proto/message#rpc-proto-message-event)
                         (##structure std/actor/proto#!event::t '#!void)
                         (if (eq? _type203152_
                                  std/actor/rpc/proto/message#rpc-proto-message-raw)
                             '#!void
                             (if (eq? _type203152_
                                      std/actor/rpc/proto/message#rpc-proto-message-stream)
                                 (let ((_k203163_
                                        (std/actor/xdr#xdr-read-uint
                                         _buffer203150_)))
                                   (##structure
                                    std/actor/proto#!stream::t
                                    '#!void
                                    _k203163_))
                                 (if (eq? _type203152_
                                          std/actor/rpc/proto/message#rpc-proto-message-yield)
                                     (let ((_k203165_
                                            (std/actor/xdr#xdr-read-uint
                                             _buffer203150_)))
                                       (##structure
                                        std/actor/proto#!yield::t
                                        '#!void
                                        _k203165_))
                                     (if (eq? _type203152_
                                              std/actor/rpc/proto/message#rpc-proto-message-end)
                                         (let ((_k203167_
                                                (std/actor/xdr#xdr-read-uint
                                                 _buffer203150_)))
                                           (##structure
                                            std/actor/proto#!end::t
                                            _k203167_))
                                         (if (eq? _type203152_
                                                  std/actor/rpc/proto/message#rpc-proto-message-continue)
                                             (let ((_k203169_
                                                    (std/actor/xdr#xdr-read-uint
                                                     _buffer203150_)))
                                               (##structure
                                                std/actor/proto#!continue::t
                                                _k203169_))
                                             (if (eq? _type203152_
                                                      std/actor/rpc/proto/message#rpc-proto-message-close)
                                                 (let ((_k203171_
                                                        (std/actor/xdr#xdr-read-uint
                                                         _buffer203150_)))
                                                   (##structure
                                                    std/actor/proto#!close::t
                                                    _k203171_))
                                                 (if (eq? _type203152_
                                                          std/actor/rpc/proto/message#rpc-proto-message-abort)
                                                     (let ((_k203173_
                                                            (std/actor/xdr#xdr-read-uint
                                                             _buffer203150_)))
                                                       (##structure
                                                        std/actor/proto#!abort::t
                                                        _k203173_))
                                                     (if (eq? _type203152_
                                                              std/actor/rpc/proto/message#rpc-proto-message-sync)
                                                         (let ((_k203175_
                                                                (std/actor/xdr#xdr-read-uint
;;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
                         _buffer203150_)))
                   (##structure std/actor/proto#!sync::t _k203175_))
                 (std/actor/proto#raise-rpc-io-error
                  'rpc-proto-read-message
                  '"unmarshal error; unexpected message type"
                  _type203152_)))))))))))))
;;>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
         '#!void
         _dest203154_
         '#f))))
  (define std/actor/rpc/proto/message#rpc-proto-read-payload!
    (lambda (_msg203083_ _buffer203084_ _proto203085_)
      (std/actor/xdr#current-xdr-type-registry
       (##direct-structure-ref
        _proto203085_
        '3
        std/actor/proto#!protocol::t
        '#f))
      (let* ((_value203087_
              (##direct-structure-ref
               _msg203083_
               '1
               std/actor/message#message::t
               '#f))
             (_value203088203098_ _value203087_)
             (_else203092203106_ (lambda () '#!void)))
        (let ((_K203096203135_
               (lambda ()
                 (let ((_payload203133_
                        (std/actor/xdr#xdr-read _buffer203084_)))
                   (##vector-set! _value203087_ '1 _payload203133_))))
              (_K203095203126_
               (lambda ()
                 (let* ((_payload203121_
                         (std/actor/xdr#xdr-read _buffer203084_))
                        (_e203123_
                         (if (string? _payload203121_)
                             (make-struct-instance
                              std/actor/proto#remote-error::t
                              'rpc
                              _payload203121_)
                             _payload203121_)))
                   (##vector-set! _value203087_ '1 _e203123_))))
              (_K203094203113_
               (lambda ()
                 (let ((_payload203111_
                        (std/actor/xdr#xdr-read _buffer203084_)))
                   (##direct-structure-set!
                    _msg203083_
                    _payload203111_
                    '1
                    std/actor/message#message::t
                    '#f)))))
          (let* ((_try-match203091203116_
                  (lambda ()
                    (if (eq? _value203088203098_ '#!void)
                        (_K203094203113_)
                        '#!void)))
                 (_try-match203090203129_
                  (lambda ()
                    (if (##structure-direct-instance-of?
                         _value203088203098_
                         'std/actor/proto#!error::t)
                        (_K203095203126_)
                        (_try-match203091203116_)))))
            (if (or (##structure-direct-instance-of?
                     _value203088203098_
                     'std/actor/proto#!call::t)
                    (##structure-direct-instance-of?
                     _value203088203098_
                     'std/actor/proto#!value::t)
                    (##structure-direct-instance-of?
                     _value203088203098_
                     'std/actor/proto#!event::t)
                    (##structure-direct-instance-of?
                     _value203088203098_
                     'std/actor/proto#!stream::t)
                    (##structure-direct-instance-of?
                     _value203088203098_
                     'std/actor/proto#!yield::t))
                (_K203096203135_)
                (_try-match203090203129_))))))))
