HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/asm.cpython-38.pyc
U

G�
\c�@sJdZddlZddlmZmZmZmZmZmZddl	m
Z
mZddlm
Z
ddlmZmZmZmZmZmZmZmZmZddd	d
ddd
ddddgZGdd�de�Zdd�ZGdd�de�ZGdd	�d	e�ZGdd
�d
e�ZGdd�de�ZGdd�de�ZGdd
�d
e�Z Gdd�de�Z!Gdd�de�Z"Gdd�de�Z#Gdd�de�Z$dS)z�
    pygments.lexers.asm
    ~~~~~~~~~~~~~~~~~~~

    Lexers for assembly languages.

    :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�
RegexLexer�include�bygroups�using�words�DelegatingLexer)�CppLexer�CLexer)�DLexer)	�Text�Name�Number�String�Comment�Punctuation�Other�Keyword�Operator�GasLexer�ObjdumpLexer�
DObjdumpLexer�CppObjdumpLexer�
CObjdumpLexer�
HsailLexer�	LlvmLexer�	NasmLexer�NasmObjdumpLexer�	TasmLexer�	Ca65Lexerc@s�eZdZdZdZddgZddgZdgZdZd	Z	d
e	de	dZ
d
Zed�e
de
jfde
e
jdfde
jfe
e
jdfdefge
e
jfeefde
e
jfeejfdedfdedfed�ed�gde
deejeee
je�fde
dedeejeee
jeeje�fe
e
jfeejfde
e
jfdeejfdejfdedfdedfed�ed�gdefd efdefgd!efgd"�Zd#d$�Zd%S)&rz'
    For Gas (AT&T) assembly code.
    ZGASZgas�asm�*.sz*.Sz
text/x-gasz
"(\\"|[^"])*"z[\w$.@-]z
(?:[a-zA-Z$_]z*|\.z+)z(?:0[xX][a-zA-Z0-9]+|\d+)�
whitespace�:z\.�directive-argszlock|rep(n?z)?|data\d+�instruction-args�[\r\n]+�@�#popz	[;#].*?\n�punctuationz([a-z0-9]+)( )(<)(z)(>)z)([-+])(�%�$z
$'(.|\\')'�\n�\s+z[-*,.()\[\]!:]+)�rootr#r$r!r(cCs,t�d|tj�rdSt�d|tj�r(dSdS)Nz^\.(text|data|section)Tz^\.\w+g�������?)�re�match�M)�text�r2�5/usr/lib/python3/dist-packages/pygments/lexers/asm.py�analyse_text_szGasLexer.analyse_textN)�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenames�	mimetypes�string�char�
identifierZnumberrr�LabelZ	Attribute�Functionr�Constantrr
�Integerrr�Hexr�Variable�Char�tokensr4r2r2r2r3rsn
�	�
��������6cCsRd}ddttjttt�fdtttjt�fd|dttjtttjttjt�fd|dttjtttjt�fd|d	||d
tttjttjtt	|��fd|d	||dtttjttjtt�fd|d	||dtttjttj�fd
tfd|d|dtttjttj
ttjttj�fd|dtttjttj
ttj�fdtfgiS)z;
    Common objdump lexer tokens to wrap an ASM lexer.
    z[0-9A-Za-z]r-z(.*?)(:)( +file format )(.*?)$z"(Disassembly of section )(.*?)(:)$�(z++)( )(<)(.*?)([-+])(0[xX][A-Za-z0-9]+)(>:)$z+)( )(<)(.*?)(>:)$z( *)(z+:)(\t)((?:z )+)( *	)([a-zA-Z].*?)$z )+)( *)(.*?)$z )+)$z	\t\.\.\.$z	(\t\t\t)(z +:)( )([^\t]+)(\t)(.*?)([-+])(0xz+)$z+:)( )([^\t]+)(\t)(.*?)$z[^\n]+\n)
rrr@rrrr
rDrArZPropertyrBr)Z	asm_lexerZhex_rer2r2r3�_objdump_lexer_tokensfs^��
��
��������
����rIc@s.eZdZdZdZdgZdgZdgZee	�Z
dS)rz)
    For the output of 'objdump -dr'
    Zobjdumpz	*.objdumpztext/x-objdumpN)r5r6r7r8r9r:r;r<rIrrGr2r2r2r3r�scs6eZdZdZdZdgZdgZdgZ�fdd�Z�Z	S)rz=
    For the output of 'objdump -Sr on compiled D files'
    z	d-objdumpz*.d-objdumpztext/x-d-objdumpcstt|�jttf|�dS�N)�superr�__init__r
r��selfZoptions��	__class__r2r3rL�szDObjdumpLexer.__init__�
r5r6r7r8r9r:r;r<rL�
__classcell__r2r2rOr3r�scs>eZdZdZdZdddgZdddgZdgZ�fd	d
�Z�Z	S)rz?
    For the output of 'objdump -Sr on compiled C++ files'
    zcpp-objdumpzc++-objdumbzcxx-objdumpz
*.cpp-objdumpz
*.c++-objdumpz
*.cxx-objdumpztext/x-cpp-objdumpcstt|�jttf|�dSrJ)rKrrLrrrMrOr2r3rL�szCppObjdumpLexer.__init__rQr2r2rOr3r�s

cs6eZdZdZdZdgZdgZdgZ�fdd�Z�Z	S)rz=
    For the output of 'objdump -Sr on compiled C files'
    z	c-objdumpz*.c-objdumpztext/x-c-objdumpcstt|�jttf|�dSrJ)rKrrLr	rrMrOr2r3rL�szCObjdumpLexer.__init__rQr2r2rOr3r�sc@s\eZdZdZdZddgZdgZdgZdZdZ	d	Z
d
e
dZdZd
Z
dZdZdZdZdZdZed�ed�eefde	dejfeejjfed�de	ejjfde	ejfeejfdejfeejfeejfdejfdefgde fgde!j"fd e!j#fgd!ee$j%fd"e$fe&d#d$d%�e$fee$fee$fd&ed'e
de$fd(e$fd)e$fe&d*�e$fd+e$fg
d,�Z'd-S).rz=
    For HSAIL assembly code.

    .. versionadded:: 2.2
    ZHSAILZhsailZhsaz*.hsailztext/x-hsail�"[^"]*?"z[a-zA-Z_][\w.]*�[0-9]+z(\$(c|s|d|q)�)z(align\(\d+\))z(width\((\d+|all)\))z(alloc\(agent\))z ((_ftz)?(_up|_down|_zero|_near))z�_(u8x4|s8x4|u16x2|s16x2|u8x8|s8x8|u16x4|s16x4|u32x2|s32x2|u8x16|s8x16|u16x8|s16x8|u32x4|s32x4|u64x2|s64x2|f16x2|f16x4|f16x8|f32x2|f32x4|f64x2|u8|s8|u16|s16|u32|s32|u64|s64|b128|b8|b16|b32|b64|b1|f16|f32|f64|roimg|woimg|rwimg|samp|sig32|sig64)z ((\d+\.)|(\d*\.\d+))[eE][+-]?\d+zL0[xX](([0-9a-fA-F]+\.[0-9a-fA-F]*)|([0-9a-fA-F]*\.[0-9a-fA-F]+))[pP][+-]?\d+z?0((h|H)[0-9a-fA-F]{4}|(f|F)[0-9a-fA-F]{8}|(d|D)[0-9a-fA-F]{16})r!�commentsr&z:?�keyword�&r)�0[xX][a-fA-F0-9]+�\d+z[=<>{}\[\]()*.,:;!]|x\b�(\n|\s)+z	/\*.*?\*/z//.*?\nZkernargz+\$(full|base|small|large|default|zero|near))�module�	extensionZpragma�progZindirectZ	signatureZdeclZkernelZfunctionZenablebreakexceptionsZenabledetectexceptionsZmaxdynamicgroupsizeZmaxflatgridsizeZmaxflatworkgroupsizeZrequireddimZrequiredgridsizeZrequiredworkgroupsizeZrequirenopartialworkgroups�\b��suffixz_(�|�_kernargz(nop|imagefence)\b)�ZcleardetectexceptZclockZcuidZ	debugtrapZdimZgetdetectexceptZgroupbaseptrZkernargbaseptrZlaneidZmaxcuidZ	maxwaveidZpacketidZsetdetectexceptZwaveidZworkitemflatabsidZworkitemflatidZnullptr�absZbitrevZcurrentworkgroupsizeZcurrentworkitemflatidZfractZncos�negZnexp2Znlog2ZnrcpZnrsqrtZnsinZnsqrtZ
gridgroupsZgridsize�notZsqrtZworkgroupidZ
workgroupsizeZ
workitemabsidZ
workitemidZceilZfloorZrint�trunc�addZbitmaskZborrowZcarryZcopysignZdivZrem�sub�shlZshr�and�or�xorZunpackhiZunpacklo�max�minZfmaZmadZ
bitextractZ	bitselectZshuffleZcmovZbitalignZ	bytealignZlerpZnfma�mulZmulhiZmul24hiZmul24Zmad24Zmad24hiZ	bitinsertZcombine�expandZldaZmovZpackZunpackZpackcvtZ	unpackcvtZsadZsementpZftosZstofZcmpZld�st�_eqZ_neZ_ltZ_leZ_gtZ_geZ_equZ_neuZ_ltuZ_leuZ_gtuZ_geuZ_numZ_nanZ_seqZ_sneZ_sltZ_sleZ_sgtZ_sgeZ_snumZ_snanZ_sequZ_sneuZ_sltuZ_sleuZ_sgtuZ_sgeu�atomicZ_ldZ_stZ_casZ_addZ_andZ_exchZ_maxZ_minZ_orZ_subZ_wrapdecZ_wrapincZ_xor�retZcvtZ	_readonlyrcZ_global�brZcbrZsbrZ_scacqZ_screlZ_scarZ_rlxZ_waveZ_wgZ_agentZ_systemZldimageZstimageZ_v2Z_v3Z_v4Z_1dZ_2dZ_3dZ_1daZ_2daZ_1dbZ_2ddepthZ	_2dadepthZ_widthZ_heightZ_depthZ_arrayZ
_channelorderZ_channeltypeZquerysamplerZ_coordZ_filterZ_addressingZbarrierZwavebarrierZinitfbarZjoinfbarZwaitfbarZ
arrivefbarZ	leavefbarZreleasefbarZldfZactivelaneidZactivelanecountZactivelanemaskZactivelanepermute�callZscallZicall�allocaZpacketcompletionsigZaddqueuewriteindexZcasqueuewriteindexZldqueuereadindexZstqueuereadindex�readonly�global�private�groupZspill�argZ_upiZ_downiZ_zeroiZ_neariZ_upi_satZ
_downi_satZ
_zeroi_satZ
_neari_satZ_supiZ_sdowniZ_szeroiZ_sneariZ	_supi_satZ_sdowni_satZ_szeroi_satZ_sneari_satZ_ppZ_psZ_spZ_ssZ_sZ_pZ_pp_satZ_ps_satZ_sp_satZ_ss_satZ_s_satZ_p_sat�	i[1-9]\d*)r-r!rVrWN)(r5r6r7r8r9r:r;r<r=r?Zregister_number�registerZ	alignQualZ	widthQualZ	allocQualZroundingModZdatatypeMod�floatZhexfloatZ	ieeefloatrrrr@rE�	Anonymous�Globalr
rD�FloatrCrrrZ	Multiline�Singler�TyperrGr2r2r2r3r�sn

�����	%�(��c@s�eZdZdZdZdgZdgZdgZdZdedZ	e
d	�e	d
ejfe
d�de	ej
fd
e	ej
jfdej
jfdej
jfdej
jfde	ej
fdej
jfdeefdefdefdefgdefdefgeddd�efed�ejfdefgd�ZdS) rz!
    For LLVM assembly code.
    ZLLVMZllvmz*.llztext/x-llvmrSz([-a-zA-Z$._][\w\-$.]*|rUr!z\s*:rWr)r&z%\d+z@\d+z#\d+�!z!\d+zc?rYz,-?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?z[=<>{}\[\]()*.,!]|x\br[�;.*?\n(Zbegin�end�trueZfalseZdeclareZdefinerzZconstantr{Zlinker_privateZinternalZavailable_externallyZlinkonceZlinkonce_odrZweakZweak_odrZ	appendingZ	dllimportZ	dllexport�common�defaultZhiddenZ	protectedZextern_weakZexternalZthread_localZzeroinitializerZundefZnull�to�tail�targetZtripleZ
datalayoutZvolatileZnuwZnswZnnanZninfZnszZarcpZfast�exactZinboundsZalignZ	addrspaceZsection�aliasr\rZ
sideeffect�gcZdbgZlinker_private_weakZ
attributesZblockaddressZinitialexecZlocaldynamicZ	localexec�prefixZunnamed_addrZcccZfastccZcoldccZ
x86_stdcallccZx86_fastcallccZ
arm_apcsccZarm_aapcsccZarm_aapcs_vfpccZ
ptx_deviceZ
ptx_kernelZintel_ocl_biccZ
msp430_intrccZ	spir_funcZspir_kernelZ
x86_64_sysvccZx86_64_win64ccZx86_thiscallccZcc�cZsignextZzeroextZinregZsretZnounwindZnoreturnZnoaliasZ	nocaptureZbyvalZnestZreadnoneryZ
inlinehintZnoinlineZalwaysinlineZoptsizeZsspZsspreqZ	noredzoneZnoimplicitfloatZnakedZbuiltinZcoldZ	nobuiltinZnoduplicateZnonlazybindZoptnoneZ
returns_twiceZsanitize_addressZsanitize_memoryZsanitize_threadZ	sspstrongZuwtableZreturned�typeZopaque�eq�neZsltZsgtZsleZsgeZultZugtZuleZugeZoeqZoneZoltZogtZoleZoge�ordZunoZueqZune�xZacq_rel�acquireZ
alignstackrtZcatchZcleanup�filterZinteldialectrnro�	monotonicZnandZpersonality�releaseZseq_cstZsinglethreadZumaxZuminZ	unorderedZxchgrhZfaddriZfsubrpZfmulZudivZsdivZfdivZuremZsremZfremrjZlshrZashrrkrlrmZicmpZfcmpZphirwrgZzextZsextZfptruncZfpextZuitofpZsitofpZfptouiZfptosiZinttoptrZptrtointZbitcastZ
addrspacecastZselectZva_argrurvZswitchZinvokeZunwindZunreachableZ
indirectbrZ
landingpadZresumeZmallocrxZfree�loadZstoreZ
getelementptrZextractelementZ
insertelementZ
shufflevectorZ	getresultZextractvalueZinsertvalueZ	atomicrmwZcmpxchgZfenceZ	allocsizeZ	amdgpu_csZ	amdgpu_gsZ
amdgpu_kernelZ	amdgpu_psZ	amdgpu_vs�anyZanyregccZ
argmemonlyZ
avr_intrccZavr_signalccZcallerZcatchpadZcatchretZcatchswitchZ
cleanuppadZ
cleanupretZcomdatZ
convergentZcxx_fast_tlsccZdeplibsZdereferenceableZdereferenceable_or_nullZdistinctZ
exactmatchZexternally_initialized�fromZghcccZhhvm_cccZhhvmccZifuncZinaccessiblemem_or_argmemonlyZinaccessiblememonlyZinallocaZ	jumptableZlargestZlocal_unnamed_addrZminsizeZmusttailZnoduplicatesZnoneZnonnullZ	norecurseZnotailZpreserve_allccZpreserve_mostccZprologueZ	safestackZsamesizeZsource_filenameZswiftccZ
swifterrorZ	swiftselfZwebkit_jsccZwithinZ	writeonlyZ
x86_intrccZx86_vectorcallccr_r`)
ZvoidZhalfr�ZdoubleZx86_fp80Zfp128Z	ppc_fp128ZlabelZmetadata�tokenr~)r-r!rWN)r5r6r7r8r9r:r;r<r=r?rrr@rEr�r�rr
rrrrrr�rGr2r2r2r3rQsH




��1�1�4���c
@szeZdZdZdZdgZddgZdgZdZdZ	d	Z
d
ZdZedeZ
d
ZdZdZdZdZdZejejBZdejdfed�edejfdeeejej ej �dfeedfeej dfeej!dfde"fgee#fe	e$j%fe
e$j&fee$j'fe
e$j(fee$j)fed�eej*feej+fde"dfed�gdejfdej,dfdejdfgde"fde"fd ej,fgd!e-fd"e.fd#ejfee.j/feej0fgd$�Z1d%S)&rz)
    For Nasm (Intel) assembly code.
    ZNASMZnasm�*.asm�*.ASMztext/x-nasmz[a-z$._?][\w$.?#@~]*�,(?:0x[0-9a-f]+|$0[0-9a-f]*|[0-9]+[0-9a-f]*h)�[0-7]+q�[01]+brT�\.e?�/"(\\"|[^"\n])*"|'(\\'|[^'\n])*'|`(\\`|[^`\n])*`�(?:res|d)[bwdqt]|times�or[0-9][0-5]?[bwd]|[a-d][lh]|[er]?[a-d]x|[er]?[sb]p|[er]?[sd]i|[c-gs]s|st[0-7]|mm[0-7]|cr[0-4]|dr[0-367]|tr[3-7]�seg|wrt|strict�byte|[dq]?wordz�BITS|USE16|USE32|SECTION|SEGMENT|ABSOLUTE|EXTERN|GLOBAL|ORG|ALIGN|STRUC|ENDSTRUC|COMMON|CPU|GROUP|UPPERCASE|IMPORT|EXPORT|LIBRARY|MODULE�^\s*%�preprocr!r"z(%s)(\s+)(equ)r$r%r(r'�[^;\n]+r�r+�[ \t]+�;.*�[,():\[\]]+z[&|^<>+*/%~-]+�[$]+�r-r$r�r!r(N)2r5r6r7r8r9r:r;r<r?�hexn�octn�binn�decn�floatnr=�declkwr�wordopr��
directivesr.�
IGNORECASE�	MULTILINE�flagsr�Preprocrrr@rrBr�DeclarationrArrr
rD�Oct�Binr�rC�BuiltinrEr�rr�Wordr�rGr2r2r2r3r�sr
�

�
�

����c@s.eZdZdZdZdgZdgZdgZee	�Z
dS)rzM
    For the output of 'objdump -d -M intel'.

    .. versionadded:: 2.0
    zobjdump-nasmz*.objdump-intelztext/x-nasm-objdumpN)r5r6r7r8r9r:r;r<rIrrGr2r2r2r3rsc@s�eZdZdZdZdgZdddgZdgZdZd	Z	d
Z
dZdZed
eZ
dZdZdZdZdZdZdZejejBZdejdfed�edejfeedfdeefeej ej!ej!�dfeej!dfeej"dfde#fgee$fe	e%j&fe
e%j'fee%j(fe
e%j)fee%j*fed�eej+feej,fdee#ej-e#�fde#dfed�gdejfd ej-dfd!ejdfgd"e#fd#e#fd$e#fd%ej-fgd&e.fd'e/fd(ej fee/j0feej1fgd)�Z2d*S)+rz3
    For Tasm (Turbo Assembler) assembly code.
    ZTASMZtasmr�r�z*.tasmztext/x-tasmz[@a-z$._?][\w$.?#@~]*r�r�r�rTr�r�r�r�r�r�z�BITS|USE16|USE32|SECTION|SEGMENT|ABSOLUTE|EXTERN|GLOBAL|ORG|ALIGN|STRUC|ENDSTRUC|ENDS|COMMON|CPU|GROUP|UPPERCASE|INCLUDE|EXPORT|LIBRARY|MODULE|PROC|ENDP|USES|ARG|DATASEG|UDATASEG|END|IDEAL|P386|MODEL|ASSUME|CODESEG|SIZEzdb|dd|dw|T[A-Z][a-z]+r�r�r!r"r$z
(%s)(\s+)(%s)r%r(z(\\\s*)(;.*)([\r\n])r'r�r�r+z[\n\r]z\\[\n\r]r�r�r�z[&|^<>+*=/%~-]+r�r�N)3r5r6r7r8r9r:r;r<r?r�r�r�r�r�r=r�rr�r�r�Zdatatyper.r�r�r�rr�rrr@rrrBr�rArrr
rDr�r�r�rCr�rEr�rrr�r�rGr2r2r2r3rsx


�

�
�

����c@s�eZdZdZdZdgZdgZejZ	dde
jfdefde
jfd	efd
ejfdefdefd
ejfdejfdejfdejfdefde
fg
iZdd�ZdS)rz@
    For ca65 assembler sources.

    .. versionadded:: 1.6
    zca65 assemblerZca65r r-r�r,z[a-z_.@$][\w.@$]*:z�((ld|st)[axy]|(in|de)[cxy]|asl|lsr|ro[lr]|adc|sbc|cmp|cp[xy]|cl[cvdi]|se[cdi]|jmp|jsr|bne|beq|bpl|bmi|bvc|bvs|bcc|bcs|p[lh][ap]|rt[is]|brk|nop|ta[xy]|t[xy]a|txs|tsx|and|ora|eor|bit)\bz\.\w+z[-+~*/^&|!<>=]z	"[^"\n]*.z	'[^'\n]*.z\$[0-9a-f]+|[0-9a-f]+h\brZz%[01]+z
[#,.:()=\[\]]z[a-z_.@$][\w.@$]*cCst�d|tj�rdSdS)Nz^\s*;g�������?)r.r/r�)rNr1r2r2r3r4�szCa65Lexer.analyse_textN)r5r6r7r8r9r:r;r.r�r�rr�rrr@rZPseudorrrFr
rDrCr�rrGr4r2r2r2r3r_s0���)%r8r.Zpygments.lexerrrrrrrZpygments.lexers.c_cpprr	Zpygments.lexers.dr
Zpygments.tokenrrr
rrrrrr�__all__rrIrrrrrrrrrrr2r2r2r3�<module>s6
 ,�L1


gIP