
    #)dii              
       $   d Z dZedk    rddlZddlZddlZdZdZdZdZ	dZ
	  ej        ej        dd         dg d          \  ZZeD ]\  ZZed	v r ee            ej        d           &ed
v r ee            ej        d           Fedv r&	  eed          dz  Z[#   ej        d          xY wedv rh	 e                    d          Zed         dk    r eed         d          Zed         dk    r eed         d          Z	#   ej        d          xY wedv r#	  eed          Z
#   ej        d          xY wedk    re	dk    re
dk    r ej        d          es ej        d           ee          dk    r ej        d          nY# ej        $ rL  ej                    d         Zd ee          z   Z ee            ee            ej        d           Y nw xY wed         Zej                            e          s dez  Z ee            ej        d            ee          dk    r	ed         Znddlm Z   e j!                    Zddlm"Z"  ej         e"eeee	e
e                     dS dS )z0Intel HEX file format hex2bin convertor utility.z2.3.0__main__    Na  Hex2Bin convertor utility.
Usage:
    python hex2bin.py [options] INFILE [OUTFILE]

Arguments:
    INFILE      name of hex file for processing.
    OUTFILE     name of output file. If omitted then output
                will be writing to stdout.

Options:
    -h, --help              this help message.
    -v, --version           version info.
    -p, --pad=FF            pad byte for empty spaces (ascii hex value).
    -r, --range=START:END   specify address range for writing output
                            (ascii hex value).
                            Range can be in form 'START:' or ':END'.
    -l, --length=NNNN,
    -s, --size=NNNN         size of output (decimal value).
   z
hvp:r:l:s:)helpversionzpad=zrange=zlength=zsize=)z-hz--help)z-vz	--version)z-pz--pad      zBad pad value)z-rz--range: zBad range value(s))z-lz--lenghtz-sz--size
   zBad size valuez0Cannot specify START:END and SIZE simultaneouslyzHex file is not specified   zToo many argumentszERROR: zERROR: File not found: %s)compat)hex2bin)#__doc__VERSION__name__getoptossysusagepadstartendsizeargvoptsargsoaprintexitintGetoptErrorsplitllenexc_infomsgstrtxtfinpathisfilefoutintelhexr   get_binary_stdoutr        [/var/www/menimich/repos/protonApp/venv/lib/python3.11/site-packages/../../../bin/hex2bin.py<module>r3      s  H 7 6
zMMMIIIJJJE( CE
CD."V]38ABB<#7 #7 #78 8
d  	? 	?DAq$$$e)))go%%>#a**u,CC>,&,_==='''CAtrzz #AaD"trzz!c!A$mmC,&,-ABBB888?3q"::DD?,&,-=>>>	 9 D==SD[[TT\\$&$%WXXX 	B$&$%@AAA3t99q==$&$%9:::     clnnQC c


e q'C7>># )C/c



s4yyA~~Aw 	$#####'v'))      CHWWS$sD#6677777y s]   A0F" B$#F" $B66F" >ADF" D""F" *D76F" 7E		AF" "AG87G8