+
    Ki  c                   s   ^ RI t ^ RIHt  ! R R4      t ! R R]4      t ! R R]4      t ! R	 R
]4      t ! R R]4      t ! R R]4      t ! R R]4      t	 ! R R]4      t
 ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R ]4      t ! R! R"]4      t]t ! R# R$4      tR# )%    N)BytesIOc                   s0   a  ] tR t^t o ]R 4       tRtV tR# )PrimativeTypec                s    \        4       hN)NotImplementedErrordata   &H/usr/lib/python3.14/site-packages/lutris/util/amazon/protobuf_decoder.pydecodeZPrimativeType.decode   s    !##     N)__name__
__module____qualname____firstlineno__staticmethodr	   __static_attributes____classdictcell____classdict__   @r   r   r      s     $ $r
   r   c                   s4   a  ] tR t^t o ^t]R 4       tRtV tR# )type_doublec                8    \         P                  ! R V 4      w  pV# )z<dstructunpackr   Zval   & r   r	   Ztype_double.decode        tT*
r
   r   N	r   r   r   r   	wire_typer   r	   r   r   r   r   r   r   r           I r
   r   c                   s4   a  ] tR t^&t o ^t]R 4       tRtV tR# )
type_floatc                r   )z<fr   r   r   r   r	   Ztype_float.decode)   r   r
   r   Nr   r   r   r   r!   r!   &   r    r
   r!   c                   s4   a  ] tR t^0t o ^ t]R 4       tRtV tR# )
type_int32c                sD    \         P                  V ^ 4      p\        V4      # i    Messagesigned_to_longintr   r   r   r	   Ztype_int32.decode3        $$T2.3xr
   r   Nr   r   r   r   r"   r"   0        I r
   r"   c                   s4   a  ] tR t^:t o ^ t]R 4       tRtV tR# )
type_int64c                sD    \         P                  V ^@4      p\        V4      # i@   r$   r   r   r   r	   Ztype_int64.decode=   r(   r
   r   Nr   r   r   r   r*   r*   :   r)   r
   r*   c                   s4   a  ] tR t^Dt o ^ t]R 4       tRtV tR# )type_uint32c                    \        V 4      # r   r'   r   r   r   r	   Ztype_uint32.decodeG        4yr
   r   Nr   r   r   r   r,   r,   D        I r
   r,   c                   s4   a  ] tR t^Mt o ^ t]R 4       tRtV tR# )type_uint64c                r-   r   r.   r   r   r   r	   Ztype_uint64.decodeP   r/   r
   r   Nr   r   r   r   r1   r1   M   r0   r
   r1   c                   s4   a  ] tR t^Vt o ^ t]R 4       tRtV tR# )type_sint32c                sn    \         P                  V ^ 4      p\         P                  V4      p\        V4      # r#   r%   r&   zigzag_to_longr'   r   r   r   r	   Ztype_sint32.decodeY   /     $$T2.$$S)3xr
   r   Nr   r   r   r   r2   r2   V        I r
   r2   c                   s4   a  ] tR t^at o ^ t]R 4       tRtV tR# )type_sint64c                sn    \         P                  V ^@4      p\         P                  V4      p\        V4      # r+   r3   r   r   r   r	   Ztype_sint64.decoded   r5   r
   r   Nr   r   r   r   r7   r7   a   r6   r
   r7   c                   s4   a  ] tR t^lt o ^t]R 4       tRtV tR# )type_fixed32c                J    \         P                  ! R V 4      w  p\        V4      # )z<Ir   r   r'   r   r   r   r	   Ztype_fixed32.decodeo        tT*3xr
   r   Nr   r   r   r   r8   r8   l   r)   r
   r8   c                   s4   a  ] tR t^vt o ^t]R 4       tRtV tR# )type_fixed64c                r9   )z<Qr:   r   r   r   r	   Ztype_fixed64.decodey   r;   r
   r   Nr   r   r   r   r<   r<   v   r)   r
   r<   c                   s4   a  ] tR t^t o ^t]R 4       tRtV tR# )type_sfixed32c                r9   )z<ir:   r   r   r   r	   Ztype_sfixed32.decode   r;   r
   r   Nr   r   r   r   r=   r=      r)   r
   r=   c                   s4   a  ] tR t^t o ^t]R 4       tRtV tR# )type_sfixed64c                r9   )z<qr:   r   r   r   r	   Ztype_sfixed64.decode   r;   r
   r   Nr   r   r   r   r>   r>      r)   r
   r>   c                   s4   a  ] tR t^t o ^ t]R 4       tRtV tR# )	type_boolc                s    V ^ 8g  # r    r   r   r   r   r	   Ztype_bool.decode   s     qyr
   r   Nr   r   r   r   r?   r?      r0   r
   r?   c                   s4   a  ] tR t^t o ^t]R 4       tRtV tR# )type_stringc                    V # r   r   r   r   r   r	   Ztype_string.decode   	     r
   r   Nr   r   r   r   rA   rA           I r
   rA   c                   s4   a  ] tR t^t o ^t]R 4       tRtV tR# )
type_bytesc                rB   r   r   r   r   r   r	   Ztype_bytes.decode   rC   r
   r   Nr   r   r   r   rE   rE      rD   r
   rE   c                   s~   a  ] tR t^t o ]R 4       t]R 4       t]R 4       t]R 4       tR t	V 3R lR lt
R tR	tV tR
# )r%   c                s    ^ p^ p \        V P                  ^4      4      pW^,          V^,          ,          ,          pV^,          ^ 8X  d    V# V^,          pKT  r@   )Zordread)streamZresiZcs   &   r   read_varintZMessage.read_varint   sT    FKKN#AGQ''C3w!|
 FAr
   c                s    V R8  d$   V R,          p V ^V,          ^,
          ( ,          p V # V ^V,          ^,
          ,          p V # )z4converts a previously read signed varint into a longl    l            r   )xZbitss   &&r   r&   ZMessage.signed_to_long   sK     !!LAAI?##A  !t)q Ar
   c                sR    V ^,          '       g
   V ^,	          # V ^,	          R,          # )i   ir   )rJ   r   r   r4   ZMessage.zigzag_to_long   s"    3ww6MQ2r
   c                s   \         P                  V 4      pV^,	          pV^,          pV^ 8X  d   \         P                  V 4      pMV^8X  d   V P                  ^4      pMkV^8X  d(   \         P                  V 4      pV P                  V4      pM=VR9   d   \        R4      hV^8X  d   V P                  ^4      pM\	        RV,          4      hW#V3# )   zgroups are deprecatedzunknown wire type (%d))rK   i   )r%   rI   rF   r   	TypeError)rG   Zvarfield_numberr   r   Zlengths   &     r   read_tagZMessage.read_tag   s    !!&)ax!G	>&&v.D!^;;q>D!^((0F;;v&D& %&=>>!^;;q>D4y@AA..r
   c                sf    \        V P                  4       F  w  r#V^,          V8X  g   K  Vu # 	  R# )rK   N)Z	enumerate
__lookup__)selfZ_id_rH   s   &&  r   	lookup_idZMessage.lookup_id   s'    doo.DAts{ /r
   c                s    < V ^8  d   QhRS[ /# )i   s)Zbytes)Zformatr   s   "r   Z__annotate__ZMessage.__annotate__   s     1 1 1r
   c                s   \        V4      pVP                  4       \        V4      8  d   V P                  V4      w  r4pV P	                  V4      pV'       g   KM  Vw  rxr\        V\        4      '       d   VP                  V4      p
M:\        V\        4      '       d   V! 4       p
V
P                  V4       M\        R 4      hVR8X  d6   \        W	4      f   \        W	. 4       \        W	4      P                  V
4       K  \        W	V
4       K  R# )z9field type must be a subclass of PrimativeType or MessageZrepeatedN)r   ZtellZlenrN   rR   Z
issubclassr   r	   r%   rL   ZgetattrZsetattrZappend)rP   rS   ZfrM   rQ   r   ZfieldZfield_multiplicityZ
field_typeZ
field_nameZvalues   &&         r   r	   ZMessage.decode   s    AJffhQ$(MM!$4!LTNN<0E<A9J*m44"))$/J00"T" [\\!Z/4,4 Db1)007%0-  r
   c                s    R # r   r   )rP   r   r   rO   ZMessage.__lookup__  s    r
   r   N)r   r   r   r   r   rI   r&   r4   rN   rR   r	   rO   r   r   r   r   r   r%   r%      sl     	 	    
 / /(
1 14 r
   r%   )r   Zior   r   r   r!   r"   r*   r,   r1   r2   r7   r8   r<   r=   r>   r?   rA   rE   Z	type_enumr%   r   r
   r   <module>rT      s     ($ $-    - - - - = = M M  -   	U Ur
   