max_stars_repo_path stringlengths 4 261 | max_stars_repo_name stringlengths 6 106 | max_stars_count int64 0 38.8k | id stringlengths 1 6 | text stringlengths 7 1.05M |
|---|---|---|---|---|
win32/VC10/Win32/libxml2_Release/SAX2.asm | txwizard/libxml2_x64_and_ARM | 0 | 174276 | <reponame>txwizard/libxml2_x64_and_ARM
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27027.1
TITLE C:\Users\DAG\Documents\_Clients\CodeProject Authors Group\Windows on ARM\libxml2\libxml2-2.9.9\SAX2.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM _xmlMalloc:DWORD
COMM _xmlMallocAtomic:DWORD
COMM _xmlRealloc:DWORD
COMM _xmlFree:DWORD
COMM _xmlMemStrdup:DWORD
COMM _xmlIsBaseCharGroup:BYTE:010H
COMM _xmlIsCharGroup:BYTE:010H
COMM _xmlIsCombiningGroup:BYTE:010H
COMM _xmlIsDigitGroup:BYTE:010H
COMM _xmlIsExtenderGroup:BYTE:010H
COMM _xmlIsIdeographicGroup:BYTE:010H
COMM _xmlIsPubidChar_tab:BYTE:0100H
COMM _xmlParserMaxDepth:DWORD
COMM _xmlXPathNAN:QWORD
COMM _xmlXPathPINF:QWORD
COMM _xmlXPathNINF:QWORD
COMM _forbiddenExp:DWORD
COMM _emptyExp:DWORD
_DATA ENDS
msvcjmc SEGMENT
__188180DA_corecrt_math@h DB 01H
__2CC6E67D_corecrt_stdio_config@h DB 01H
__05476D76_corecrt_wstdio@h DB 01H
__A452D4A0_stdio@h DB 01H
__4384A2D9_corecrt_memcpy_s@h DB 01H
__4E51A221_corecrt_wstring@h DB 01H
__2140C079_string@h DB 01H
__A8525CDE_sax2@c DB 01H
msvcjmc ENDS
PUBLIC _xmlSAX2GetPublicId
PUBLIC _xmlSAX2GetSystemId
PUBLIC _xmlSAX2SetDocumentLocator
PUBLIC _xmlSAX2GetLineNumber
PUBLIC _xmlSAX2GetColumnNumber
PUBLIC _xmlSAX2IsStandalone
PUBLIC _xmlSAX2HasInternalSubset
PUBLIC _xmlSAX2HasExternalSubset
PUBLIC _xmlSAX2InternalSubset
PUBLIC _xmlSAX2ExternalSubset
PUBLIC _xmlSAX2GetEntity
PUBLIC _xmlSAX2GetParameterEntity
PUBLIC _xmlSAX2ResolveEntity
PUBLIC _xmlSAX2EntityDecl
PUBLIC _xmlSAX2AttributeDecl
PUBLIC _xmlSAX2ElementDecl
PUBLIC _xmlSAX2NotationDecl
PUBLIC _xmlSAX2UnparsedEntityDecl
PUBLIC _xmlSAX2StartDocument
PUBLIC _xmlSAX2EndDocument
PUBLIC _xmlSAX2StartElement
PUBLIC _xmlSAX2EndElement
PUBLIC _xmlSAX2StartElementNs
PUBLIC _xmlSAX2EndElementNs
PUBLIC _xmlSAX2Reference
PUBLIC _xmlSAX2Characters
PUBLIC _xmlSAX2IgnorableWhitespace
PUBLIC _xmlSAX2ProcessingInstruction
PUBLIC _xmlSAX2Comment
PUBLIC _xmlSAX2CDataBlock
PUBLIC _xmlSAXDefaultVersion
PUBLIC _xmlSAXVersion
PUBLIC _xmlSAX2InitDefaultSAXHandler
PUBLIC _xmlSAX2InitHtmlDefaultSAXHandler
PUBLIC _htmlDefaultSAXHandlerInit
PUBLIC _xmlSAX2InitDocbDefaultSAXHandler
PUBLIC _docbDefaultSAXHandlerInit
PUBLIC _xmlDefaultSAXHandlerInit
PUBLIC __JustMyCode_Default
PUBLIC ??_C@_0P@PCJPAHLM@out?5of?5memory?6@ ; `string'
PUBLIC ??_C@_0BG@CKPEJCG@xmlSAX2InternalSubset@ ; `string'
PUBLIC ??_C@_0BG@NJCKJHBI@xmlSAX2ExternalSubset@ ; `string'
PUBLIC ??_C@_0EE@PPDHKGIC@Entity?$CI?$CFs?$CJ?5document?5marked?5stan@ ; `string'
PUBLIC ??_C@_0BO@LDENBHGA@Failure?5to?5process?5entity?5?$CFs?6@ ; `string'
PUBLIC ??_C@_0DD@GCBFDMPE@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@ ; `string'
PUBLIC ??_C@_0DD@ECLLADNP@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@ ; `string'
PUBLIC ??_C@_0DG@EGJGBEOC@SAX?4xmlSAX2EntityDecl?$CI?$CFs?$CJ?5calle@ ; `string'
PUBLIC ??_C@_06IMLNHOMM@xml?3id@ ; `string'
PUBLIC ??_C@_0CG@DOFEKNB@xml?3id?5?3?5attribute?5type?5should?5@ ; `string'
PUBLIC ??_C@_0DJ@CKOJIFJI@SAX?4xmlSAX2AttributeDecl?$CI?$CFs?$CJ?5ca@ ; `string'
PUBLIC ??_C@_0DH@FINDFGFC@SAX?4xmlSAX2ElementDecl?$CI?$CFs?$CJ?5call@ ; `string'
PUBLIC ??_C@_0DM@OMFMKHI@SAX?4xmlSAX2NotationDecl?$CI?$CFs?$CJ?5ext@ ; `string'
PUBLIC ??_C@_0DI@MAMMGJDO@SAX?4xmlSAX2NotationDecl?$CI?$CFs?$CJ?5cal@ ; `string'
PUBLIC ??_C@_0DO@IABCNOGI@SAX?4xmlSAX2UnparsedEntityDecl?$CI?$CF@ ; `string'
PUBLIC ??_C@_0BF@BOIPPPAK@xmlSAX2StartDocument@ ; `string'
PUBLIC ??_C@_05PPEFOGKI@xmlns@ ; `string'
PUBLIC ??_C@_0CE@IJLGNIDG@invalid?5namespace?5declaration?5?8@ ; `string'
PUBLIC ??_C@_0CL@HKIDFKGE@Avoid?5attribute?5ending?5with?5?8?3?8@ ; `string'
PUBLIC ??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@ ; `string'
PUBLIC ??_C@_0BL@KIHPGOD@xmlns?3?5?$CFs?5not?5a?5valid?5URI?6@ ; `string'
PUBLIC ??_C@_0BP@JFBGAFGI@xmlns?3?5URI?5?$CFs?5is?5not?5absolute?6@ ; `string'
PUBLIC ??_C@_0CE@LNIJHMCD@Empty?5namespace?5name?5for?5prefix@ ; `string'
PUBLIC ??_C@_0BO@MNIAHAOJ@xmlns?3?$CFs?3?5?$CFs?5not?5a?5valid?5URI?6@ ; `string'
PUBLIC ??_C@_0CC@FFFCEDOK@xmlns?3?$CFs?3?5URI?5?$CFs?5is?5not?5absolut@ ; `string'
PUBLIC ??_C@_0DE@HNKDFNKM@Namespace?5prefix?5?$CFs?5of?5attribut@ ; `string'
PUBLIC ??_C@_0BO@PGCJKKMF@Attribute?5?$CFs?5in?5?$CFs?5redefined?6@ ; `string'
PUBLIC ??_C@_0CO@CCGEJOB@xml?3id?5?3?5attribute?5value?5?$CFs?5is?5@ ; `string'
PUBLIC ??_C@_01JLIPDDHJ@?3@ ; `string'
PUBLIC ??_C@_0DP@KFNFGALP@standalone?3?5attribute?5?$CFs?5on?5?$CFs?5@ ; `string'
PUBLIC ??_C@_0CC@LPGBEFAE@Validation?5failed?3?5no?5DTD?5found@ ; `string'
PUBLIC ??_C@_0CE@HAGAOPBB@Namespace?5prefix?5?$CFs?5is?5not?5defi@ ; `string'
PUBLIC ??_C@_0BC@IJLHKBBO@xmlSAX2Characters@ ; `string'
PUBLIC ??_C@_0BA@DNIHONAO@xmlSAX2TextNode@ ; `string'
PUBLIC ??_C@_0BD@HFPHEGLL@xmlSAX2AttributeNs@ ; `string'
PUBLIC ??_C@_0BG@CNBDKEMA@xmlSAX2StartElementNs@ ; `string'
PUBLIC ??_C@_03PJHHNEEI@xml@ ; `string'
PUBLIC ??_C@_0CD@HMPDFDML@Namespace?5prefix?5?$CFs?5was?5not?5fou@ ; `string'
PUBLIC ??_C@_0CI@JKKHNIFK@Namespace?5default?5prefix?5was?5no@ ; `string'
PUBLIC ??_C@_0CL@EDPCIJGK@xmlSAX2Characters?3?5xmlStrdup?5re@ ; `string'
PUBLIC ??_C@_0CC@PCIHKIPC@xmlSAX2Characters?3?5huge?5text?5no@ ; `string'
PUBLIC ??_C@_0CF@EADJOGLP@xmlSAX2Characters?5overflow?5prev@ ; `string'
EXTRN _xmlStrdup:PROC
EXTRN _xmlStrndup:PROC
EXTRN _xmlStrchr:PROC
EXTRN _xmlStrEqual:PROC
EXTRN _xmlStrlen:PROC
EXTRN _xmlStrcat:PROC
EXTRN _xmlDictReference:PROC
EXTRN _xmlDictLookup:PROC
EXTRN _xmlDictQLookup:PROC
EXTRN _xmlDictOwns:PROC
EXTRN _xmlValidateNCName:PROC
EXTRN _xmlBuildQName:PROC
EXTRN _xmlCreateIntSubset:PROC
EXTRN _xmlNewDtd:PROC
EXTRN _xmlGetIntSubset:PROC
EXTRN _xmlFreeDtd:PROC
EXTRN _xmlNewNs:PROC
EXTRN _xmlNewDoc:PROC
EXTRN _xmlNewNsProp:PROC
EXTRN _xmlNewNsPropEatName:PROC
EXTRN _xmlNewDocNode:PROC
EXTRN _xmlNewDocNodeEatName:PROC
EXTRN _xmlNewDocText:PROC
EXTRN _xmlNewDocPI:PROC
EXTRN _xmlNewDocComment:PROC
EXTRN _xmlNewCDataBlock:PROC
EXTRN _xmlNewCharRef:PROC
EXTRN _xmlNewReference:PROC
EXTRN _xmlGetLastChild:PROC
EXTRN _xmlAddChild:PROC
EXTRN _xmlAddChildList:PROC
EXTRN _xmlAddSibling:PROC
EXTRN _xmlUnlinkNode:PROC
EXTRN _xmlTextConcat:PROC
EXTRN _xmlFreeNode:PROC
EXTRN _xmlSearchNs:PROC
EXTRN _xmlSetNs:PROC
EXTRN _xmlStringGetNodeList:PROC
EXTRN _xmlStringLenGetNodeList:PROC
EXTRN _xmlParserError:PROC
EXTRN _xmlParserWarning:PROC
EXTRN ___xmlRaiseError:PROC
EXTRN _xmlAddNotationDecl:PROC
EXTRN _xmlAddElementDecl:PROC
EXTRN _xmlFreeEnumeration:PROC
EXTRN _xmlAddAttributeDecl:PROC
EXTRN _xmlAddID:PROC
EXTRN _xmlIsID:PROC
EXTRN _xmlAddRef:PROC
EXTRN _xmlIsRef:PROC
EXTRN _xmlValidateRoot:PROC
EXTRN _xmlValidateElementDecl:PROC
EXTRN _xmlValidNormalizeAttributeValue:PROC
EXTRN _xmlValidCtxtNormalizeAttributeValue:PROC
EXTRN _xmlValidateAttributeDecl:PROC
EXTRN _xmlValidateNotationDecl:PROC
EXTRN _xmlValidateDtdFinal:PROC
EXTRN _xmlValidateOneElement:PROC
EXTRN _xmlValidateOneAttribute:PROC
EXTRN _xmlValidateOneNamespace:PROC
EXTRN _xmlValidateDocumentFinal:PROC
EXTRN _xmlGetDtdQAttrDesc:PROC
EXTRN _xmlGetDtdQElementDesc:PROC
EXTRN _xmlAddDocEntity:PROC
EXTRN _xmlAddDtdEntity:PROC
EXTRN _xmlGetPredefinedEntity:PROC
EXTRN _xmlGetDocEntity:PROC
EXTRN _xmlGetParameterEntity:PROC
EXTRN _xmlDetectCharEncoding:PROC
EXTRN _xmlParseCtxtExternalEntity:PROC
EXTRN _xmlParserAddNodeInfo:PROC
EXTRN _xmlLoadExternalEntity:PROC
EXTRN ___docbDefaultSAXHandler:PROC
EXTRN ___htmlDefaultSAXHandler:PROC
EXTRN ___xmlDefaultSAXHandler:PROC
EXTRN ___xmlRegisterNodeDefaultValue:PROC
EXTRN _xmlSwitchEncoding:PROC
EXTRN _xmlPushInput:PROC
EXTRN _xmlPopInput:PROC
EXTRN _xmlFreeInputStream:PROC
EXTRN _xmlSplitQName:PROC
EXTRN _xmlParseExternalSubset:PROC
EXTRN _xmlStringDecodeEntities:PROC
EXTRN _xmlStringLenDecodeEntities:PROC
EXTRN _nodePush:PROC
EXTRN _nodePop:PROC
EXTRN _xmlErrMemory:PROC
EXTRN _xmlBuildURI:PROC
EXTRN _xmlParseURI:PROC
EXTRN _xmlFreeURI:PROC
EXTRN _xmlCanonicPath:PROC
EXTRN _xmlPathToURI:PROC
EXTRN _htmlNewDocNoDtD:PROC
EXTRN _htmlIsBooleanAttr:PROC
EXTRN @__CheckForDebuggerJustMyCode@4:PROC
EXTRN _memcpy:PROC
EXTRN _memset:PROC
EXTRN ___xmlRegisterCallbacks:DWORD
EXTRN _xmlStringText:BYTE
_DATA SEGMENT
_xmlSAX2DefaultVersionValue DD 02H
_DATA ENDS
; COMDAT ??_C@_0CF@EADJOGLP@xmlSAX2Characters?5overflow?5prev@
CONST SEGMENT
??_C@_0CF@EADJOGLP@xmlSAX2Characters?5overflow?5prev@ DB 'xmlSAX2Characte'
DB 'rs overflow prevented', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CC@PCIHKIPC@xmlSAX2Characters?3?5huge?5text?5no@
CONST SEGMENT
??_C@_0CC@PCIHKIPC@xmlSAX2Characters?3?5huge?5text?5no@ DB 'xmlSAX2Charac'
DB 'ters: huge text node', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CL@EDPCIJGK@xmlSAX2Characters?3?5xmlStrdup?5re@
CONST SEGMENT
??_C@_0CL@EDPCIJGK@xmlSAX2Characters?3?5xmlStrdup?5re@ DB 'xmlSAX2Charact'
DB 'ers: xmlStrdup returned NULL', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CI@JKKHNIFK@Namespace?5default?5prefix?5was?5no@
CONST SEGMENT
??_C@_0CI@JKKHNIFK@Namespace?5default?5prefix?5was?5no@ DB 'Namespace def'
DB 'ault prefix was not found', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CD@HMPDFDML@Namespace?5prefix?5?$CFs?5was?5not?5fou@
CONST SEGMENT
??_C@_0CD@HMPDFDML@Namespace?5prefix?5?$CFs?5was?5not?5fou@ DB 'Namespace'
DB ' prefix %s was not found', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_03PJHHNEEI@xml@
CONST SEGMENT
??_C@_03PJHHNEEI@xml@ DB 'xml', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BG@CNBDKEMA@xmlSAX2StartElementNs@
CONST SEGMENT
??_C@_0BG@CNBDKEMA@xmlSAX2StartElementNs@ DB 'xmlSAX2StartElementNs', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BD@HFPHEGLL@xmlSAX2AttributeNs@
CONST SEGMENT
??_C@_0BD@HFPHEGLL@xmlSAX2AttributeNs@ DB 'xmlSAX2AttributeNs', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BA@DNIHONAO@xmlSAX2TextNode@
CONST SEGMENT
??_C@_0BA@DNIHONAO@xmlSAX2TextNode@ DB 'xmlSAX2TextNode', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BC@IJLHKBBO@xmlSAX2Characters@
CONST SEGMENT
??_C@_0BC@IJLHKBBO@xmlSAX2Characters@ DB 'xmlSAX2Characters', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CE@HAGAOPBB@Namespace?5prefix?5?$CFs?5is?5not?5defi@
CONST SEGMENT
??_C@_0CE@HAGAOPBB@Namespace?5prefix?5?$CFs?5is?5not?5defi@ DB 'Namespace'
DB ' prefix %s is not defined', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CC@LPGBEFAE@Validation?5failed?3?5no?5DTD?5found@
CONST SEGMENT
??_C@_0CC@LPGBEFAE@Validation?5failed?3?5no?5DTD?5found@ DB 'Validation f'
DB 'ailed: no DTD found !', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0DP@KFNFGALP@standalone?3?5attribute?5?$CFs?5on?5?$CFs?5@
CONST SEGMENT
??_C@_0DP@KFNFGALP@standalone?3?5attribute?5?$CFs?5on?5?$CFs?5@ DB 'stand'
DB 'alone: attribute %s on %s defaulted from external subset', 0aH
DB 00H ; `string'
CONST ENDS
; COMDAT ??_C@_01JLIPDDHJ@?3@
CONST SEGMENT
??_C@_01JLIPDDHJ@?3@ DB ':', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CO@CCGEJOB@xml?3id?5?3?5attribute?5value?5?$CFs?5is?5@
CONST SEGMENT
??_C@_0CO@CCGEJOB@xml?3id?5?3?5attribute?5value?5?$CFs?5is?5@ DB 'xml:id '
DB ': attribute value %s is not an NCName', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BO@PGCJKKMF@Attribute?5?$CFs?5in?5?$CFs?5redefined?6@
CONST SEGMENT
??_C@_0BO@PGCJKKMF@Attribute?5?$CFs?5in?5?$CFs?5redefined?6@ DB 'Attribut'
DB 'e %s in %s redefined', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0DE@HNKDFNKM@Namespace?5prefix?5?$CFs?5of?5attribut@
CONST SEGMENT
??_C@_0DE@HNKDFNKM@Namespace?5prefix?5?$CFs?5of?5attribut@ DB 'Namespace '
DB 'prefix %s of attribute %s is not defined', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CC@FFFCEDOK@xmlns?3?$CFs?3?5URI?5?$CFs?5is?5not?5absolut@
CONST SEGMENT
??_C@_0CC@FFFCEDOK@xmlns?3?$CFs?3?5URI?5?$CFs?5is?5not?5absolut@ DB 'xmln'
DB 's:%s: URI %s is not absolute', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BO@MNIAHAOJ@xmlns?3?$CFs?3?5?$CFs?5not?5a?5valid?5URI?6@
CONST SEGMENT
??_C@_0BO@MNIAHAOJ@xmlns?3?$CFs?3?5?$CFs?5not?5a?5valid?5URI?6@ DB 'xmlns'
DB ':%s: %s not a valid URI', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CE@LNIJHMCD@Empty?5namespace?5name?5for?5prefix@
CONST SEGMENT
??_C@_0CE@LNIJHMCD@Empty?5namespace?5name?5for?5prefix@ DB 'Empty namespa'
DB 'ce name for prefix %s', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BP@JFBGAFGI@xmlns?3?5URI?5?$CFs?5is?5not?5absolute?6@
CONST SEGMENT
??_C@_0BP@JFBGAFGI@xmlns?3?5URI?5?$CFs?5is?5not?5absolute?6@ DB 'xmlns: U'
DB 'RI %s is not absolute', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BL@KIHPGOD@xmlns?3?5?$CFs?5not?5a?5valid?5URI?6@
CONST SEGMENT
??_C@_0BL@KIHPGOD@xmlns?3?5?$CFs?5not?5a?5valid?5URI?6@ DB 'xmlns: %s not'
DB ' a valid URI', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@
CONST SEGMENT
??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@ DB 'xmlSAX2StartElement', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CL@HKIDFKGE@Avoid?5attribute?5ending?5with?5?8?3?8@
CONST SEGMENT
??_C@_0CL@HKIDFKGE@Avoid?5attribute?5ending?5with?5?8?3?8@ DB 'Avoid attr'
DB 'ibute ending with '':'' like ''%s''', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CE@IJLGNIDG@invalid?5namespace?5declaration?5?8@
CONST SEGMENT
??_C@_0CE@IJLGNIDG@invalid?5namespace?5declaration?5?8@ DB 'invalid names'
DB 'pace declaration ''%s''', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_05PPEFOGKI@xmlns@
CONST SEGMENT
??_C@_05PPEFOGKI@xmlns@ DB 'xmlns', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BF@BOIPPPAK@xmlSAX2StartDocument@
CONST SEGMENT
??_C@_0BF@BOIPPPAK@xmlSAX2StartDocument@ DB 'xmlSAX2StartDocument', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0DO@IABCNOGI@SAX?4xmlSAX2UnparsedEntityDecl?$CI?$CF@
CONST SEGMENT
??_C@_0DO@IABCNOGI@SAX?4xmlSAX2UnparsedEntityDecl?$CI?$CF@ DB 'SAX.xmlSAX'
DB '2UnparsedEntityDecl(%s) called while not in subset', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0DI@MAMMGJDO@SAX?4xmlSAX2NotationDecl?$CI?$CFs?$CJ?5cal@
CONST SEGMENT
??_C@_0DI@MAMMGJDO@SAX?4xmlSAX2NotationDecl?$CI?$CFs?$CJ?5cal@ DB 'SAX.xm'
DB 'lSAX2NotationDecl(%s) called while not in subset', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0DM@OMFMKHI@SAX?4xmlSAX2NotationDecl?$CI?$CFs?$CJ?5ext@
CONST SEGMENT
??_C@_0DM@OMFMKHI@SAX?4xmlSAX2NotationDecl?$CI?$CFs?$CJ?5ext@ DB 'SAX.xml'
DB 'SAX2NotationDecl(%s) externalID or PublicID missing', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0DH@FINDFGFC@SAX?4xmlSAX2ElementDecl?$CI?$CFs?$CJ?5call@
CONST SEGMENT
??_C@_0DH@FINDFGFC@SAX?4xmlSAX2ElementDecl?$CI?$CFs?$CJ?5call@ DB 'SAX.xm'
DB 'lSAX2ElementDecl(%s) called while not in subset', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0DJ@CKOJIFJI@SAX?4xmlSAX2AttributeDecl?$CI?$CFs?$CJ?5ca@
CONST SEGMENT
??_C@_0DJ@CKOJIFJI@SAX?4xmlSAX2AttributeDecl?$CI?$CFs?$CJ?5ca@ DB 'SAX.xm'
DB 'lSAX2AttributeDecl(%s) called while not in subset', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0CG@DOFEKNB@xml?3id?5?3?5attribute?5type?5should?5@
CONST SEGMENT
??_C@_0CG@DOFEKNB@xml?3id?5?3?5attribute?5type?5should?5@ DB 'xml:id : at'
DB 'tribute type should be ID', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_06IMLNHOMM@xml?3id@
CONST SEGMENT
??_C@_06IMLNHOMM@xml?3id@ DB 'xml:id', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0DG@EGJGBEOC@SAX?4xmlSAX2EntityDecl?$CI?$CFs?$CJ?5calle@
CONST SEGMENT
??_C@_0DG@EGJGBEOC@SAX?4xmlSAX2EntityDecl?$CI?$CFs?$CJ?5calle@ DB 'SAX.xm'
DB 'lSAX2EntityDecl(%s) called while not in subset', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0DD@ECLLADNP@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@
CONST SEGMENT
??_C@_0DD@ECLLADNP@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@ DB 'Enti'
DB 'ty(%s) already defined in the external subset', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0DD@GCBFDMPE@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@
CONST SEGMENT
??_C@_0DD@GCBFDMPE@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@ DB 'Enti'
DB 'ty(%s) already defined in the internal subset', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BO@LDENBHGA@Failure?5to?5process?5entity?5?$CFs?6@
CONST SEGMENT
??_C@_0BO@LDENBHGA@Failure?5to?5process?5entity?5?$CFs?6@ DB 'Failure to '
DB 'process entity %s', 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0EE@PPDHKGIC@Entity?$CI?$CFs?$CJ?5document?5marked?5stan@
CONST SEGMENT
??_C@_0EE@PPDHKGIC@Entity?$CI?$CFs?$CJ?5document?5marked?5stan@ DB 'Entit'
DB 'y(%s) document marked standalone but requires external subset'
DB 0aH, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BG@NJCKJHBI@xmlSAX2ExternalSubset@
CONST SEGMENT
??_C@_0BG@NJCKJHBI@xmlSAX2ExternalSubset@ DB 'xmlSAX2ExternalSubset', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BG@CKPEJCG@xmlSAX2InternalSubset@
CONST SEGMENT
??_C@_0BG@CKPEJCG@xmlSAX2InternalSubset@ DB 'xmlSAX2InternalSubset', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0P@PCJPAHLM@out?5of?5memory?6@
CONST SEGMENT
??_C@_0P@PCJPAHLM@out?5of?5memory?6@ DB 'out of memory', 0aH, 00H ; `string'
CONST ENDS
; Function compile flags: /Odt
; COMDAT __JustMyCode_Default
_TEXT SEGMENT
__JustMyCode_Default PROC ; COMDAT
push ebp
mov ebp, esp
pop ebp
ret 0
__JustMyCode_Default ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2AttributeNs
_TEXT SEGMENT
_fn$1 = -52 ; size = 50
tv962 = 8 ; size = 4
_fullname$1$ = 8 ; size = 4
_namespace$1$ = 8 ; size = 4
_ctxt$ = 8 ; size = 4
_localname$ = 12 ; size = 4
_nvalnorm$1$ = 16 ; size = 4
_prefix$ = 16 ; size = 4
_value$ = 20 ; size = 4
_valueend$ = 24 ; size = 4
_xmlSAX2AttributeNs PROC ; COMDAT
; 1983 : {
push ebp
mov ebp, esp
sub esp, 52 ; 00000034H
push ebx
push esi
mov esi, DWORD PTR _ctxt$[ebp]
mov ecx, OFFSET __A8525CDE_sax2@c
push edi
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _prefix$[ebp]
xor ecx, ecx
mov DWORD PTR _namespace$1$[ebp], ecx
test eax, eax
je SHORT $LN6@xmlSAX2Att
; 1984 : xmlAttrPtr ret;
; 1985 : xmlNsPtr namespace = NULL;
; 1986 : xmlChar *dup = NULL;
; 1987 :
; 1988 : /*
; 1989 : * Note: if prefix == NULL, the attribute is not in the default namespace
; 1990 : */
; 1991 : if (prefix != NULL)
; 1992 : namespace = xmlSearchNs(ctxt->myDoc, ctxt->node, prefix);
push eax
push DWORD PTR [esi+52]
push DWORD PTR [esi+8]
call _xmlSearchNs
add esp, 12 ; 0000000cH
mov DWORD PTR _namespace$1$[ebp], eax
mov ecx, eax
$LN6@xmlSAX2Att:
; 1993 :
; 1994 : /*
; 1995 : * allocate the node
; 1996 : */
; 1997 : if (ctxt->freeAttrs != NULL) {
mov edi, DWORD PTR [esi+380]
test edi, edi
je $LN7@xmlSAX2Att
; 1998 : ret = ctxt->freeAttrs;
; 1999 : ctxt->freeAttrs = ret->next;
mov eax, DWORD PTR [edi+24]
; 2000 : ctxt->freeAttrsNr--;
dec DWORD PTR [esi+376]
; 2001 : memset(ret, 0, sizeof(xmlAttr));
push 48 ; 00000030H
push 0
push edi
mov DWORD PTR [esi+380], eax
call _memset
; 2002 : ret->type = XML_ATTRIBUTE_NODE;
mov DWORD PTR [edi+4], 2
add esp, 12 ; 0000000cH
; 2003 :
; 2004 : ret->parent = ctxt->node;
mov eax, DWORD PTR [esi+52]
mov DWORD PTR [edi+20], eax
; 2005 : ret->doc = ctxt->myDoc;
mov eax, DWORD PTR [esi+8]
mov DWORD PTR [edi+32], eax
; 2006 : ret->ns = namespace;
mov eax, DWORD PTR _namespace$1$[ebp]
mov DWORD PTR [edi+36], eax
; 2007 :
; 2008 : if (ctxt->dictNames)
cmp DWORD PTR [esi+364], 0
mov eax, DWORD PTR _localname$[ebp]
jne SHORT $LN10@xmlSAX2Att
; 2009 : ret->name = localname;
; 2010 : else
; 2011 : ret->name = xmlStrdup(localname);
push eax
call _xmlStrdup
add esp, 4
$LN10@xmlSAX2Att:
; 2012 :
; 2013 : /* link at the end to preserv order, TODO speed up with a last */
; 2014 : if (ctxt->node->properties == NULL) {
mov DWORD PTR [edi+8], eax
mov ecx, DWORD PTR [esi+52]
mov eax, DWORD PTR [ecx+44]
test eax, eax
jne SHORT $LN11@xmlSAX2Att
; 2015 : ctxt->node->properties = ret;
mov DWORD PTR [ecx+44], edi
; 2016 : } else {
jmp SHORT $LN12@xmlSAX2Att
$LN11@xmlSAX2Att:
; 2017 : xmlAttrPtr prev = ctxt->node->properties;
; 2018 :
; 2019 : while (prev->next != NULL) prev = prev->next;
mov ecx, DWORD PTR [eax+24]
test ecx, ecx
je SHORT $LN3@xmlSAX2Att
$LL2@xmlSAX2Att:
mov eax, ecx
mov ecx, DWORD PTR [eax+24]
test ecx, ecx
jne SHORT $LL2@xmlSAX2Att
$LN3@xmlSAX2Att:
; 2020 : prev->next = ret;
mov DWORD PTR [eax+24], edi
; 2021 : ret->prev = prev;
mov DWORD PTR [edi+28], eax
$LN12@xmlSAX2Att:
; 2022 : }
; 2023 :
; 2024 : if ((__xmlRegisterCallbacks) && (xmlRegisterNodeDefaultValue))
cmp DWORD PTR ___xmlRegisterCallbacks, 0
je SHORT $LN16@xmlSAX2Att
call ___xmlRegisterNodeDefaultValue
cmp DWORD PTR [eax], 0
je SHORT $LN16@xmlSAX2Att
; 2025 : xmlRegisterNodeDefaultValue((xmlNodePtr)ret);
call ___xmlRegisterNodeDefaultValue
push edi
mov eax, DWORD PTR [eax]
call eax
add esp, 4
$LN16@xmlSAX2Att:
; 2034 : return;
; 2035 : }
; 2036 : }
; 2037 :
; 2038 : if ((ctxt->replaceEntities == 0) && (!ctxt->html)) {
cmp DWORD PTR [esi+16], 0
jne $LN77@xmlSAX2Att
cmp DWORD PTR [esi+32], 0
jne $LN77@xmlSAX2Att
; 2039 : xmlNodePtr tmp;
; 2040 :
; 2041 : /*
; 2042 : * We know that if there is an entity reference, then
; 2043 : * the string has been dup'ed and terminates with 0
; 2044 : * otherwise with ' or "
; 2045 : */
; 2046 : if (*valueend != 0) {
mov ebx, DWORD PTR _valueend$[ebp]
mov ecx, ebx
mov eax, DWORD PTR _value$[ebp]
sub ecx, eax
push ecx
push eax
cmp BYTE PTR [ebx], 0
je SHORT $LN19@xmlSAX2Att
; 2047 : tmp = xmlSAX2TextNode(ctxt, value, valueend - value);
push esi
call _xmlSAX2TextNode
; 2048 : ret->children = tmp;
; 2049 : ret->last = tmp;
; 2050 : if (tmp != NULL) {
mov edx, DWORD PTR _value$[ebp]
add esp, 12 ; 0000000cH
mov DWORD PTR [edi+12], eax
mov DWORD PTR [edi+16], eax
test eax, eax
je $LN24@xmlSAX2Att
; 2051 : tmp->doc = ret->doc;
mov ecx, DWORD PTR [edi+32]
mov DWORD PTR [eax+32], ecx
; 2052 : tmp->parent = (xmlNodePtr) ret;
mov DWORD PTR [eax+20], edi
; 2053 : }
; 2054 : } else {
jmp $LN24@xmlSAX2Att
$LN7@xmlSAX2Att:
; 2026 : } else {
; 2027 : if (ctxt->dictNames)
cmp DWORD PTR [esi+364], 0
mov edx, DWORD PTR [esi+52]
push 0
je SHORT $LN14@xmlSAX2Att
; 2028 : ret = xmlNewNsPropEatName(ctxt->node, namespace,
mov ebx, DWORD PTR _localname$[ebp]
push ebx
push ecx
push edx
call _xmlNewNsPropEatName
jmp SHORT $LN84@xmlSAX2Att
$LN14@xmlSAX2Att:
; 2029 : (xmlChar *) localname, NULL);
; 2030 : else
; 2031 : ret = xmlNewNsProp(ctxt->node, namespace, localname, NULL);
mov eax, DWORD PTR _localname$[ebp]
push eax
push ecx
push edx
call _xmlNewNsProp
$LN84@xmlSAX2Att:
; 2032 : if (ret == NULL) {
mov edi, eax
add esp, 16 ; 00000010H
test edi, edi
jne SHORT $LN16@xmlSAX2Att
; 2033 : xmlErrMemory(ctxt, "xmlSAX2AttributeNs");
push OFFSET ??_C@_0BD@HFPHEGLL@xmlSAX2AttributeNs@
push esi
call _xmlErrMemory
add esp, 8
pop edi
; 2188 : }
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN19@xmlSAX2Att:
; 2055 : ret->children = xmlStringLenGetNodeList(ctxt->myDoc, value,
push DWORD PTR [esi+8]
call _xmlStringLenGetNodeList
mov ecx, eax
add esp, 12 ; 0000000cH
mov DWORD PTR [edi+12], ecx
; 2056 : valueend - value);
; 2057 : tmp = ret->children;
; 2058 : while (tmp != NULL) {
test ecx, ecx
je SHORT $LN83@xmlSAX2Att
npad 5
$LL4@xmlSAX2Att:
; 2059 : tmp->doc = ret->doc;
mov eax, DWORD PTR [edi+32]
mov DWORD PTR [ecx+32], eax
; 2060 : tmp->parent = (xmlNodePtr) ret;
; 2061 : if (tmp->next == NULL)
mov eax, DWORD PTR [ecx+24]
mov DWORD PTR [ecx+20], edi
test eax, eax
jne SHORT $LN76@xmlSAX2Att
; 2062 : ret->last = tmp;
mov DWORD PTR [edi+16], ecx
mov eax, DWORD PTR [ecx+24]
$LN76@xmlSAX2Att:
; 2063 : tmp = tmp->next;
mov ecx, eax
test eax, eax
jne SHORT $LL4@xmlSAX2Att
; 2064 : }
; 2065 : }
jmp SHORT $LN83@xmlSAX2Att
$LN77@xmlSAX2Att:
; 2066 : } else if (value != NULL) {
mov edx, DWORD PTR _value$[ebp]
mov ebx, DWORD PTR _valueend$[ebp]
test edx, edx
je SHORT $LN24@xmlSAX2Att
; 2067 : xmlNodePtr tmp;
; 2068 :
; 2069 : tmp = xmlSAX2TextNode(ctxt, value, valueend - value);
mov eax, ebx
sub eax, edx
push eax
push edx
push esi
call _xmlSAX2TextNode
add esp, 12 ; 0000000cH
; 2070 : ret->children = tmp;
mov DWORD PTR [edi+12], eax
; 2071 : ret->last = tmp;
mov DWORD PTR [edi+16], eax
; 2072 : if (tmp != NULL) {
test eax, eax
je SHORT $LN83@xmlSAX2Att
; 2073 : tmp->doc = ret->doc;
mov ecx, DWORD PTR [edi+32]
mov DWORD PTR [eax+32], ecx
; 2074 : tmp->parent = (xmlNodePtr) ret;
mov DWORD PTR [eax+20], edi
$LN83@xmlSAX2Att:
; 2075 : }
; 2076 : }
; 2077 :
; 2078 : #ifdef LIBXML_VALID_ENABLED
; 2079 : if ((!ctxt->html) && ctxt->validate && ctxt->wellFormed &&
; 2080 : ctxt->myDoc && ctxt->myDoc->intSubset) {
mov edx, DWORD PTR _value$[ebp]
$LN24@xmlSAX2Att:
cmp DWORD PTR [esi+32], 0
jne $LN25@xmlSAX2Att
cmp DWORD PTR [esi+104], 0
je $LN25@xmlSAX2Att
cmp DWORD PTR [esi+12], 0
je $LN25@xmlSAX2Att
mov eax, DWORD PTR [esi+8]
test eax, eax
je $LN25@xmlSAX2Att
cmp DWORD PTR [eax+44], 0
je $LN25@xmlSAX2Att
; 2081 : /*
; 2082 : * If we don't substitute entities, the validation should be
; 2083 : * done on a value with replaced entities anyway.
; 2084 : */
; 2085 : if (!ctxt->replaceEntities) {
cmp DWORD PTR [esi+16], 0
jne $LN27@xmlSAX2Att
; 1949 : in = str;
mov ecx, edx
; 1950 : while (in < end)
cmp edx, ebx
jae SHORT $LN54@xmlSAX2Att
$LL53@xmlSAX2Att:
; 1951 : if (*in++ == '&')
mov al, BYTE PTR [ecx]
inc ecx
cmp al, 38 ; 00000026H
je SHORT $decode$87
; 1950 : while (in < end)
cmp ecx, ebx
jb SHORT $LL53@xmlSAX2Att
$LN54@xmlSAX2Att:
; 1952 : goto decode;
; 1953 : return(NULL);
mov eax, ebx
sub eax, edx
; 2086 : dup = xmlSAX2DecodeAttrEntities(ctxt, value, valueend);
; 2087 : if (dup == NULL) {
jmp $LN72@xmlSAX2Att
$decode$87:
; 1955 : ctxt->depth++;
inc DWORD PTR [esi+248]
; 1956 : ret = xmlStringLenDecodeEntities(ctxt, str, end - str,
sub ebx, edx
push 0
push 0
push 0
push 1
push ebx
push edx
push esi
mov DWORD PTR tv962[ebp], ebx
call _xmlStringLenDecodeEntities
; 1957 : XML_SUBSTITUTE_REF, 0,0,0);
; 1958 : ctxt->depth--;
dec DWORD PTR [esi+248]
mov ebx, eax
add esp, 28 ; 0000001cH
; 2086 : dup = xmlSAX2DecodeAttrEntities(ctxt, value, valueend);
; 2087 : if (dup == NULL) {
test ebx, ebx
je $LN79@xmlSAX2Att
; 2103 : /*
; 2104 : * dup now contains a string of the flattened attribute
; 2105 : * content with entities substitued. Check if we need to
; 2106 : * apply an extra layer of normalization.
; 2107 : * It need to be done twice ... it's an extra burden related
; 2108 : * to the ability to keep references in attributes
; 2109 : */
; 2110 : if (ctxt->attsSpecial != NULL) {
cmp DWORD PTR [esi+352], 0
je SHORT $LN37@xmlSAX2Att
; 2111 : xmlChar *nvalnorm;
; 2112 : xmlChar fn[50];
; 2113 : xmlChar *fullname;
; 2114 :
; 2115 : fullname = xmlBuildQName(localname, prefix, fn, 50);
push 50 ; 00000032H
lea eax, DWORD PTR _fn$1[ebp]
push eax
mov eax, DWORD PTR _prefix$[ebp]
push eax
push DWORD PTR _localname$[ebp]
call _xmlBuildQName
add esp, 16 ; 00000010H
mov DWORD PTR _fullname$1$[ebp], eax
; 2116 : if (fullname != NULL) {
test eax, eax
je SHORT $LN37@xmlSAX2Att
; 2117 : ctxt->vctxt.valid = 1;
; 2118 : nvalnorm = xmlValidCtxtNormalizeAttributeValue(
push ebx
push eax
push DWORD PTR [esi+52]
lea eax, DWORD PTR [esi+108]
mov DWORD PTR [esi+144], 1
push DWORD PTR [esi+8]
push eax
call _xmlValidCtxtNormalizeAttributeValue
add esp, 20 ; 00000014H
mov DWORD PTR _nvalnorm$1$[ebp], eax
; 2119 : &ctxt->vctxt, ctxt->myDoc,
; 2120 : ctxt->node, fullname, dup);
; 2121 : if (ctxt->vctxt.valid != 1)
cmp DWORD PTR [esi+144], 1
je SHORT $LN78@xmlSAX2Att
; 2122 : ctxt->valid = 0;
mov DWORD PTR [esi+100], 0
$LN78@xmlSAX2Att:
; 2123 :
; 2124 : if ((fullname != fn) && (fullname != localname))
mov eax, DWORD PTR _fullname$1$[ebp]
lea ecx, DWORD PTR _fn$1[ebp]
cmp eax, ecx
je SHORT $LN36@xmlSAX2Att
cmp eax, DWORD PTR _localname$[ebp]
je SHORT $LN36@xmlSAX2Att
; 2125 : xmlFree(fullname);
push eax
call DWORD PTR _xmlFree
add esp, 4
$LN36@xmlSAX2Att:
; 2126 : if (nvalnorm != NULL) {
cmp DWORD PTR _nvalnorm$1$[ebp], 0
je SHORT $LN37@xmlSAX2Att
; 2127 : xmlFree(dup);
push ebx
call DWORD PTR _xmlFree
; 2128 : dup = nvalnorm;
mov ebx, DWORD PTR _nvalnorm$1$[ebp]
add esp, 4
$LN37@xmlSAX2Att:
; 2129 : }
; 2130 : }
; 2131 : }
; 2132 :
; 2133 : ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt,
push ebx
push edi
push DWORD PTR [esi+52]
lea eax, DWORD PTR [esi+108]
push DWORD PTR [esi+8]
push eax
call _xmlValidateOneAttribute
add esp, 20 ; 00000014H
and DWORD PTR [esi+100], eax
; 2134 : ctxt->myDoc, ctxt->node, ret, dup);
; 2135 : }
; 2136 : } else {
jmp $LN48@xmlSAX2Att
$LN79@xmlSAX2Att:
; 2086 : dup = xmlSAX2DecodeAttrEntities(ctxt, value, valueend);
; 2087 : if (dup == NULL) {
mov ebx, DWORD PTR _valueend$[ebp]
mov edx, DWORD PTR _value$[ebp]
mov eax, DWORD PTR tv962[ebp]
$LN72@xmlSAX2Att:
; 2088 : if (*valueend == 0) {
cmp BYTE PTR [ebx], 0
lea ecx, DWORD PTR [esi+108]
jne SHORT $LN31@xmlSAX2Att
; 2089 : ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt,
push edx
push edi
push DWORD PTR [esi+52]
push DWORD PTR [esi+8]
push ecx
call _xmlValidateOneAttribute
add esp, 20 ; 00000014H
and DWORD PTR [esi+100], eax
pop edi
; 2188 : }
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN31@xmlSAX2Att:
; 2090 : ctxt->myDoc, ctxt->node, ret, value);
; 2091 : } else {
; 2092 : /*
; 2093 : * That should already be normalized.
; 2094 : * cheaper to finally allocate here than duplicate
; 2095 : * entry points in the full validation code
; 2096 : */
; 2097 : dup = xmlStrndup(value, valueend - value);
push eax
push edx
call _xmlStrndup
mov ebx, eax
; 2098 :
; 2099 : ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt,
lea eax, DWORD PTR [esi+108]
push ebx
push edi
push DWORD PTR [esi+52]
push DWORD PTR [esi+8]
push eax
call _xmlValidateOneAttribute
add esp, 28 ; 0000001cH
and DWORD PTR [esi+100], eax
; 2100 : ctxt->myDoc, ctxt->node, ret, dup);
; 2101 : }
; 2102 : } else {
jmp $LN48@xmlSAX2Att
$LN27@xmlSAX2Att:
; 2137 : /*
; 2138 : * if entities already have been substitued, then
; 2139 : * the attribute as passed is already normalized
; 2140 : */
; 2141 : dup = xmlStrndup(value, valueend - value);
sub ebx, edx
push ebx
push edx
call _xmlStrndup
mov ebx, eax
; 2142 :
; 2143 : ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt,
lea eax, DWORD PTR [esi+108]
push ebx
push edi
push DWORD PTR [esi+52]
push DWORD PTR [esi+8]
push eax
call _xmlValidateOneAttribute
add esp, 28 ; 0000001cH
and DWORD PTR [esi+100], eax
; 2144 : ctxt->myDoc, ctxt->node, ret, dup);
; 2145 : }
; 2146 : } else
jmp $LN48@xmlSAX2Att
$LN25@xmlSAX2Att:
; 2147 : #endif /* LIBXML_VALID_ENABLED */
; 2148 : if (((ctxt->loadsubset & XML_SKIP_IDS) == 0) &&
test BYTE PTR [esi+276], 8
jne $LN50@xmlSAX2Att
cmp DWORD PTR [esi+16], 0
jne SHORT $LN71@xmlSAX2Att
cmp DWORD PTR [esi+96], 2
jne SHORT $LN39@xmlSAX2Att
; 2188 : }
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN71@xmlSAX2Att:
; 2147 : #endif /* LIBXML_VALID_ENABLED */
; 2148 : if (((ctxt->loadsubset & XML_SKIP_IDS) == 0) &&
cmp DWORD PTR [esi+216], 0
jne $LN50@xmlSAX2Att
$LN39@xmlSAX2Att:
; 2149 : (((ctxt->replaceEntities == 0) && (ctxt->external != 2)) ||
; 2150 : ((ctxt->replaceEntities != 0) && (ctxt->inSubset == 0)))) {
; 2151 : /*
; 2152 : * when validating, the ID registration is done at the attribute
; 2153 : * validation level. Otherwise we have to do specific handling here.
; 2154 : */
; 2155 : if ((prefix == ctxt->str_xml) &&
; 2156 : (localname[0] == 'i') && (localname[1] == 'd') &&
mov eax, DWORD PTR _prefix$[ebp]
cmp eax, DWORD PTR [esi+312]
jne SHORT $LN41@xmlSAX2Att
mov eax, DWORD PTR _localname$[ebp]
cmp BYTE PTR [eax], 105 ; 00000069H
jne SHORT $LN41@xmlSAX2Att
cmp BYTE PTR [eax+1], 100 ; 00000064H
jne SHORT $LN41@xmlSAX2Att
cmp BYTE PTR [eax+2], 0
jne SHORT $LN41@xmlSAX2Att
; 2157 : (localname[2] == 0)) {
; 2158 : /*
; 2159 : * Add the xml:id value
; 2160 : *
; 2161 : * Open issue: normalization of the value.
; 2162 : */
; 2163 : if (dup == NULL)
; 2164 : dup = xmlStrndup(value, valueend - value);
sub ebx, edx
push ebx
push edx
call _xmlStrndup
mov ebx, eax
; 2165 : #if defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_DOCB_ENABLED) || defined(LIBXML_LEGACY_ENABLED)
; 2166 : #ifdef LIBXML_VALID_ENABLED
; 2167 : if (xmlValidateNCName(dup, 1) != 0) {
push 1
push ebx
call _xmlValidateNCName
add esp, 16 ; 00000010H
test eax, eax
je SHORT $LN44@xmlSAX2Att
; 2168 : xmlErrValid(ctxt, XML_DTD_XMLID_VALUE,
push 0
push ebx
push OFFSET ??_C@_0CO@CCGEJOB@xml?3id?5?3?5attribute?5value?5?$CFs?5is?5@
push 539 ; 0000021bH
push esi
call _xmlErrValid
add esp, 20 ; 00000014H
$LN44@xmlSAX2Att:
; 2169 : "xml:id : attribute value %s is not an NCName\n",
; 2170 : (const char *) dup, NULL);
; 2171 : }
; 2172 : #endif
; 2173 : #endif
; 2174 : xmlAddID(&ctxt->vctxt, ctxt->myDoc, dup, ret);
push edi
push ebx
push DWORD PTR [esi+8]
lea eax, DWORD PTR [esi+108]
push eax
call _xmlAddID
add esp, 16 ; 00000010H
jmp SHORT $LN48@xmlSAX2Att
$LN41@xmlSAX2Att:
; 2175 : } else if (xmlIsID(ctxt->myDoc, ctxt->node, ret)) {
push edi
push DWORD PTR [esi+52]
push DWORD PTR [esi+8]
call _xmlIsID
add esp, 12 ; 0000000cH
test eax, eax
je SHORT $LN45@xmlSAX2Att
; 2176 : /* might be worth duplicate entry points and not copy */
; 2177 : if (dup == NULL)
; 2178 : dup = xmlStrndup(value, valueend - value);
mov eax, DWORD PTR _value$[ebp]
sub ebx, eax
push ebx
push eax
call _xmlStrndup
mov ebx, eax
; 2179 : xmlAddID(&ctxt->vctxt, ctxt->myDoc, dup, ret);
lea eax, DWORD PTR [esi+108]
push edi
push ebx
push DWORD PTR [esi+8]
push eax
call _xmlAddID
jmp SHORT $LN85@xmlSAX2Att
$LN45@xmlSAX2Att:
; 2180 : } else if (xmlIsRef(ctxt->myDoc, ctxt->node, ret)) {
push edi
push DWORD PTR [esi+52]
push DWORD PTR [esi+8]
call _xmlIsRef
add esp, 12 ; 0000000cH
test eax, eax
je SHORT $LN50@xmlSAX2Att
; 2181 : if (dup == NULL)
; 2182 : dup = xmlStrndup(value, valueend - value);
mov eax, DWORD PTR _value$[ebp]
sub ebx, eax
push ebx
push eax
call _xmlStrndup
mov ebx, eax
; 2183 : xmlAddRef(&ctxt->vctxt, ctxt->myDoc, dup, ret);
lea eax, DWORD PTR [esi+108]
push edi
push ebx
push DWORD PTR [esi+8]
push eax
call _xmlAddRef
$LN85@xmlSAX2Att:
; 2184 : }
; 2185 : }
; 2186 : if (dup != NULL)
add esp, 24 ; 00000018H
$LN48@xmlSAX2Att:
test ebx, ebx
je SHORT $LN50@xmlSAX2Att
; 2187 : xmlFree(dup);
push ebx
call DWORD PTR _xmlFree
add esp, 4
$LN50@xmlSAX2Att:
; 2188 : }
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
_xmlSAX2AttributeNs ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2DecodeAttrEntities
_TEXT SEGMENT
_ctxt$ = 8 ; size = 4
_str$ = 12 ; size = 4
_end$ = 16 ; size = 4
_xmlSAX2DecodeAttrEntities PROC ; COMDAT
; 1945 : const xmlChar *end) {
push ebp
mov ebp, esp
push edi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov edi, DWORD PTR _str$[ebp]
mov eax, edi
mov edx, DWORD PTR _end$[ebp]
cmp edi, edx
jae SHORT $LN3@xmlSAX2Dec
npad 6
$LL2@xmlSAX2Dec:
; 1951 : if (*in++ == '&')
mov cl, BYTE PTR [eax]
inc eax
cmp cl, 38 ; 00000026H
je SHORT $decode$11
; 1946 : const xmlChar *in;
; 1947 : xmlChar *ret;
; 1948 :
; 1949 : in = str;
; 1950 : while (in < end)
cmp eax, edx
jb SHORT $LL2@xmlSAX2Dec
$LN3@xmlSAX2Dec:
; 1952 : goto decode;
; 1953 : return(NULL);
xor eax, eax
pop edi
; 1960 : }
pop ebp
ret 0
$decode$11:
push esi
; 1954 : decode:
; 1955 : ctxt->depth++;
mov esi, DWORD PTR _ctxt$[ebp]
; 1956 : ret = xmlStringLenDecodeEntities(ctxt, str, end - str,
sub edx, edi
push 0
push 0
push 0
inc DWORD PTR [esi+248]
push 1
push edx
push edi
push esi
call _xmlStringLenDecodeEntities
add esp, 28 ; 0000001cH
; 1957 : XML_SUBSTITUTE_REF, 0,0,0);
; 1958 : ctxt->depth--;
dec DWORD PTR [esi+248]
; 1959 : return(ret);
pop esi
pop edi
; 1960 : }
pop ebp
ret 0
_xmlSAX2DecodeAttrEntities ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2TextNode
_TEXT SEGMENT
_intern$1$ = 8 ; size = 4
_ctxt$ = 8 ; size = 4
_str$ = 12 ; size = 4
_len$ = 16 ; size = 4
_xmlSAX2TextNode PROC ; COMDAT
; 1855 : xmlSAX2TextNode(xmlParserCtxtPtr ctxt, const xmlChar *str, int len) {
push ebp
mov ebp, esp
push esi
push edi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov edi, DWORD PTR _ctxt$[ebp]
mov esi, DWORD PTR [edi+372]
test esi, esi
je SHORT $LN5@xmlSAX2Tex
; 1856 : xmlNodePtr ret;
; 1857 : const xmlChar *intern = NULL;
; 1858 :
; 1859 : /*
; 1860 : * Allocate
; 1861 : */
; 1862 : if (ctxt->freeElems != NULL) {
; 1863 : ret = ctxt->freeElems;
; 1864 : ctxt->freeElems = ret->next;
; 1865 : ctxt->freeElemsNr--;
mov eax, DWORD PTR [esi+24]
dec DWORD PTR [edi+368]
mov DWORD PTR [edi+372], eax
; 1866 : } else {
jmp SHORT $LN6@xmlSAX2Tex
$LN5@xmlSAX2Tex:
; 1867 : ret = (xmlNodePtr) xmlMalloc(sizeof(xmlNode));
push 60 ; 0000003cH
call DWORD PTR _xmlMalloc
add esp, 4
mov esi, eax
$LN6@xmlSAX2Tex:
; 1868 : }
; 1869 : if (ret == NULL) {
test esi, esi
jne SHORT $LN7@xmlSAX2Tex
; 1870 : xmlErrMemory(ctxt, "xmlSAX2Characters");
push OFFSET ??_C@_0BC@IJLHKBBO@xmlSAX2Characters@
push edi
call _xmlErrMemory
add esp, 8
; 1871 : return(NULL);
xor eax, eax
pop edi
; 1930 : }
pop esi
pop ebp
ret 0
$LN7@xmlSAX2Tex:
push ebx
; 1872 : }
; 1873 : memset(ret, 0, sizeof(xmlNode));
push 60 ; 0000003cH
push 0
push esi
call _memset
; 1874 : /*
; 1875 : * intern the formatting blanks found between tags, or the
; 1876 : * very short strings
; 1877 : */
; 1878 : if (ctxt->dictNames) {
mov ebx, DWORD PTR _len$[ebp]
add esp, 12 ; 0000000cH
cmp DWORD PTR [edi+364], 0
mov edx, DWORD PTR _str$[ebp]
je $LN39@xmlSAX2Tex
; 1879 : xmlChar cur = str[len];
mov cl, BYTE PTR [edx+ebx]
; 1880 :
; 1881 : if ((len < (int) (2 * sizeof(void *))) &&
cmp ebx, 8
jge SHORT $LN9@xmlSAX2Tex
test DWORD PTR [edi+360], 65536 ; 00010000H
je SHORT $LN9@xmlSAX2Tex
; 1882 : (ctxt->options & XML_PARSE_COMPACT)) {
; 1883 : /* store the string in the node overriding properties and nsDef */
; 1884 : xmlChar *tmp = (xmlChar *) &(ret->properties);
; 1885 : memcpy(tmp, str, len);
push ebx
lea eax, DWORD PTR [esi+44]
push edx
push eax
mov DWORD PTR _intern$1$[ebp], eax
call _memcpy
; 1886 : tmp[len] = 0;
mov eax, DWORD PTR _intern$1$[ebp]
add esp, 12 ; 0000000cH
; 1887 : intern = tmp;
mov edx, DWORD PTR _str$[ebp]
mov BYTE PTR [eax+ebx], 0
jmp SHORT $skip$43
$LN9@xmlSAX2Tex:
; 1888 : } else if ((len <= 3) && ((cur == '"') || (cur == '\'') ||
cmp ebx, 3
jg SHORT $LN11@xmlSAX2Tex
cmp cl, 34 ; 00000022H
je SHORT $LN13@xmlSAX2Tex
cmp cl, 39 ; 00000027H
je SHORT $LN13@xmlSAX2Tex
cmp cl, 60 ; 0000003cH
jne SHORT $LN11@xmlSAX2Tex
cmp BYTE PTR [edx+ebx+1], 33 ; 00000021H
je SHORT $LN11@xmlSAX2Tex
$LN13@xmlSAX2Tex:
; 1897 : }
; 1898 : intern = xmlDictLookup(ctxt->dict, str, len);
; 1899 : }
; 1900 : }
; 1901 : skip:
; 1902 : ret->type = XML_TEXT_NODE;
push ebx
push edx
push DWORD PTR [edi+296]
call _xmlDictLookup
mov edx, DWORD PTR _str$[ebp]
add esp, 12 ; 0000000cH
jmp SHORT $skip$43
$LN11@xmlSAX2Tex:
; 1889 : ((cur == '<') && (str[len + 1] != '!')))) {
; 1890 : intern = xmlDictLookup(ctxt->dict, str, len);
; 1891 : } else if (IS_BLANK_CH(*str) && (len < 60) && (cur == '<') &&
mov al, BYTE PTR [edx]
cmp al, 32 ; 00000020H
je SHORT $LN15@xmlSAX2Tex
cmp al, 9
jb SHORT $LN16@xmlSAX2Tex
cmp al, 10 ; 0000000aH
jbe SHORT $LN15@xmlSAX2Tex
$LN16@xmlSAX2Tex:
cmp al, 13 ; 0000000dH
jne SHORT $LN39@xmlSAX2Tex
$LN15@xmlSAX2Tex:
cmp ebx, 60 ; 0000003cH
jge SHORT $LN39@xmlSAX2Tex
cmp cl, 60 ; 0000003cH
jne SHORT $LN39@xmlSAX2Tex
cmp BYTE PTR [edx+ebx+1], 33 ; 00000021H
je SHORT $LN39@xmlSAX2Tex
; 1892 : (str[len + 1] != '!')) {
; 1893 : int i;
; 1894 :
; 1895 : for (i = 1;i < len;i++) {
mov ecx, 1
cmp ebx, ecx
jle SHORT $LN13@xmlSAX2Tex
$LL4@xmlSAX2Tex:
; 1896 : if (!IS_BLANK_CH(str[i])) goto skip;
mov al, BYTE PTR [ecx+edx]
cmp al, 32 ; 00000020H
je SHORT $LN2@xmlSAX2Tex
cmp al, 9
jb SHORT $LN18@xmlSAX2Tex
cmp al, 10 ; 0000000aH
jbe SHORT $LN2@xmlSAX2Tex
$LN18@xmlSAX2Tex:
cmp al, 13 ; 0000000dH
jne SHORT $LN39@xmlSAX2Tex
$LN2@xmlSAX2Tex:
; 1892 : (str[len + 1] != '!')) {
; 1893 : int i;
; 1894 :
; 1895 : for (i = 1;i < len;i++) {
inc ecx
cmp ecx, ebx
jl SHORT $LL4@xmlSAX2Tex
; 1874 : /*
; 1875 : * intern the formatting blanks found between tags, or the
; 1876 : * very short strings
; 1877 : */
; 1878 : if (ctxt->dictNames) {
jmp SHORT $LN13@xmlSAX2Tex
$LN39@xmlSAX2Tex:
; 1897 : }
; 1898 : intern = xmlDictLookup(ctxt->dict, str, len);
; 1899 : }
; 1900 : }
; 1901 : skip:
; 1902 : ret->type = XML_TEXT_NODE;
xor eax, eax
$skip$43:
mov DWORD PTR [esi+4], 3
; 1903 :
; 1904 : ret->name = xmlStringText;
mov DWORD PTR [esi+8], OFFSET _xmlStringText
; 1905 : if (intern == NULL) {
test eax, eax
jne SHORT $LN19@xmlSAX2Tex
; 1906 : ret->content = xmlStrndup(str, len);
push ebx
push edx
call _xmlStrndup
add esp, 8
mov DWORD PTR [esi+40], eax
; 1907 : if (ret->content == NULL) {
test eax, eax
jne SHORT $LN20@xmlSAX2Tex
; 1908 : xmlSAX2ErrMemory(ctxt, "xmlSAX2TextNode");
push OFFSET ??_C@_0BA@DNIHONAO@xmlSAX2TextNode@
push edi
call _xmlSAX2ErrMemory
; 1909 : xmlFree(ret);
push esi
call DWORD PTR _xmlFree
add esp, 12 ; 0000000cH
; 1910 : return(NULL);
xor eax, eax
pop ebx
pop edi
; 1930 : }
pop esi
pop ebp
ret 0
$LN19@xmlSAX2Tex:
; 1911 : }
; 1912 : } else
; 1913 : ret->content = (xmlChar *) intern;
mov DWORD PTR [esi+40], eax
$LN20@xmlSAX2Tex:
; 1914 :
; 1915 : if (ctxt->linenumbers) {
cmp DWORD PTR [edi+280], 0
je SHORT $LN26@xmlSAX2Tex
; 1916 : if (ctxt->input != NULL) {
mov eax, DWORD PTR [edi+36]
test eax, eax
je SHORT $LN26@xmlSAX2Tex
; 1917 : if (ctxt->input->line < 65535)
mov eax, DWORD PTR [eax+28]
cmp eax, 65535 ; 0000ffffH
jge SHORT $LN24@xmlSAX2Tex
; 1918 : ret->line = (short) ctxt->input->line;
mov WORD PTR [esi+56], ax
jmp SHORT $LN26@xmlSAX2Tex
$LN24@xmlSAX2Tex:
; 1919 : else {
; 1920 : ret->line = 65535;
mov eax, 65535 ; 0000ffffH
mov WORD PTR [esi+56], ax
; 1921 : if (ctxt->options & XML_PARSE_BIG_LINES)
test DWORD PTR [edi+360], 4194304 ; 00400000H
je SHORT $LN26@xmlSAX2Tex
; 1922 : ret->psvi = (void *) (ptrdiff_t) ctxt->input->line;
mov eax, DWORD PTR [edi+36]
mov eax, DWORD PTR [eax+28]
mov DWORD PTR [esi+52], eax
$LN26@xmlSAX2Tex:
; 1923 : }
; 1924 : }
; 1925 : }
; 1926 :
; 1927 : if ((__xmlRegisterCallbacks) && (xmlRegisterNodeDefaultValue))
cmp DWORD PTR ___xmlRegisterCallbacks, 0
je SHORT $LN27@xmlSAX2Tex
call ___xmlRegisterNodeDefaultValue
cmp DWORD PTR [eax], 0
je SHORT $LN27@xmlSAX2Tex
; 1928 : xmlRegisterNodeDefaultValue(ret);
call ___xmlRegisterNodeDefaultValue
push esi
mov eax, DWORD PTR [eax]
call eax
add esp, 4
$LN27@xmlSAX2Tex:
; 1929 : return(ret);
pop ebx
pop edi
mov eax, esi
; 1930 : }
pop esi
pop ebp
ret 0
_xmlSAX2TextNode ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlCheckDefaultedAttributes
_TEXT SEGMENT
_fn$1 = -64 ; size = 50
_internal$1$ = -12 ; size = 4
_elemDecl$1$ = -8 ; size = 4
_fulln$1$ = -4 ; size = 4
_fulln$3$ = -4 ; size = 4
_ctxt$ = 8 ; size = 4
_name$ = 12 ; size = 4
_prefix$ = 16 ; size = 4
_atts$ = 20 ; size = 4
_xmlCheckDefaultedAttributes PROC ; COMDAT
; 1437 : const xmlChar *prefix, const xmlChar **atts) {
push ebp
mov ebp, esp
sub esp, 64 ; 00000040H
push ebx
push esi
push edi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov edi, DWORD PTR _ctxt$[ebp]
mov ebx, DWORD PTR _prefix$[ebp]
mov esi, DWORD PTR _name$[ebp]
push ebx
mov eax, DWORD PTR [edi+8]
push esi
mov DWORD PTR _internal$1$[ebp], 1
push DWORD PTR [eax+44]
call _xmlGetDtdQElementDesc
add esp, 12 ; 0000000cH
mov DWORD PTR _elemDecl$1$[ebp], eax
test eax, eax
jne SHORT $process_external_subset$110
; 1438 : xmlElementPtr elemDecl;
; 1439 : const xmlChar *att;
; 1440 : int internal = 1;
; 1441 : int i;
; 1442 :
; 1443 : elemDecl = xmlGetDtdQElementDesc(ctxt->myDoc->intSubset, name, prefix);
; 1444 : if (elemDecl == NULL) {
; 1445 : elemDecl = xmlGetDtdQElementDesc(ctxt->myDoc->extSubset, name, prefix);
mov eax, DWORD PTR [edi+8]
push ebx
push esi
push DWORD PTR [eax+48]
call _xmlGetDtdQElementDesc
add esp, 12 ; 0000000cH
mov DWORD PTR _elemDecl$1$[ebp], eax
; 1446 : internal = 0;
mov DWORD PTR _internal$1$[ebp], 0
; 1447 : }
; 1448 :
; 1449 : process_external_subset:
; 1450 :
; 1451 : if (elemDecl != NULL) {
test eax, eax
je $LN87@xmlCheckDe
npad 4
$process_external_subset$110:
; 1452 : xmlAttributePtr attr = elemDecl->attributes;
mov ebx, DWORD PTR [eax+44]
; 1453 : /*
; 1454 : * Check against defaulted attributes from the external subset
; 1455 : * if the document is stamped as standalone
; 1456 : */
; 1457 : if ((ctxt->myDoc->standalone == 1) &&
; 1458 : (ctxt->myDoc->extSubset != NULL) &&
mov eax, DWORD PTR [edi+8]
cmp DWORD PTR [eax+40], 1
jne $LN86@xmlCheckDe
cmp DWORD PTR [eax+48], 0
je $LN86@xmlCheckDe
cmp DWORD PTR [edi+104], 0
je $LN86@xmlCheckDe
; 1459 : (ctxt->validate)) {
; 1460 : while (attr != NULL) {
test ebx, ebx
je $LN86@xmlCheckDe
npad 4
$LL2@xmlCheckDe:
; 1461 : if ((attr->defaultValue != NULL) &&
; 1462 : (xmlGetDtdQAttrDesc(ctxt->myDoc->extSubset,
; 1463 : attr->elem, attr->name,
; 1464 : attr->prefix) == attr) &&
cmp DWORD PTR [ebx+48], 0
je $LN13@xmlCheckDe
push DWORD PTR [ebx+56]
mov eax, DWORD PTR [edi+8]
push DWORD PTR [ebx+8]
push DWORD PTR [ebx+60]
push DWORD PTR [eax+48]
call _xmlGetDtdQAttrDesc
add esp, 16 ; 00000010H
cmp eax, ebx
jne $LN13@xmlCheckDe
push DWORD PTR [ebx+56]
mov eax, DWORD PTR [edi+8]
push DWORD PTR [ebx+8]
push DWORD PTR [ebx+60]
push DWORD PTR [eax+44]
call _xmlGetDtdQAttrDesc
add esp, 16 ; 00000010H
test eax, eax
jne $LN13@xmlCheckDe
; 1465 : (xmlGetDtdQAttrDesc(ctxt->myDoc->intSubset,
; 1466 : attr->elem, attr->name,
; 1467 : attr->prefix) == NULL)) {
; 1468 : xmlChar *fulln;
; 1469 :
; 1470 : if (attr->prefix != NULL) {
mov eax, DWORD PTR [ebx+56]
test eax, eax
je SHORT $LN14@xmlCheckDe
; 1471 : fulln = xmlStrdup(attr->prefix);
push eax
call _xmlStrdup
; 1472 : fulln = xmlStrcat(fulln, BAD_CAST ":");
push OFFSET ??_C@_01JLIPDDHJ@?3@
push eax
call _xmlStrcat
; 1473 : fulln = xmlStrcat(fulln, attr->name);
push DWORD PTR [ebx+8]
push eax
call _xmlStrcat
add esp, 20 ; 00000014H
; 1474 : } else {
jmp SHORT $LN106@xmlCheckDe
$LN14@xmlCheckDe:
; 1475 : fulln = xmlStrdup(attr->name);
push DWORD PTR [ebx+8]
call _xmlStrdup
add esp, 4
$LN106@xmlCheckDe:
; 1476 : }
; 1477 : if (fulln == NULL) {
mov DWORD PTR _fulln$3$[ebp], eax
test eax, eax
je SHORT $LN40@xmlCheckDe
; 1479 : break;
; 1480 : }
; 1481 :
; 1482 : /*
; 1483 : * Check that the attribute is not declared in the
; 1484 : * serialization
; 1485 : */
; 1486 : att = NULL;
; 1487 : if (atts != NULL) {
mov ecx, DWORD PTR _atts$[ebp]
test ecx, ecx
je SHORT $LN59@xmlCheckDe
; 1488 : i = 0;
; 1489 : att = atts[i];
mov esi, DWORD PTR [ecx]
; 1490 : while (att != NULL) {
test esi, esi
je SHORT $LN59@xmlCheckDe
; 1488 : i = 0;
; 1489 : att = atts[i];
mov edi, ecx
npad 1
$LL4@xmlCheckDe:
; 1491 : if (xmlStrEqual(att, fulln))
push eax
push esi
call _xmlStrEqual
add esp, 8
test eax, eax
jne SHORT $LN39@xmlCheckDe
; 1492 : break;
; 1493 : i += 2;
; 1494 : att = atts[i];
mov esi, DWORD PTR [edi+8]
add edi, 8
mov eax, DWORD PTR _fulln$3$[ebp]
test esi, esi
jne SHORT $LL4@xmlCheckDe
; 1495 : }
; 1496 : }
; 1497 : if (att == NULL) {
jmp SHORT $LN107@xmlCheckDe
$LN39@xmlCheckDe:
test esi, esi
jne SHORT $LN100@xmlCheckDe
$LN107@xmlCheckDe:
; 1498 : xmlErrValid(ctxt, XML_DTD_STANDALONE_DEFAULTED,
mov edi, DWORD PTR _ctxt$[ebp]
mov eax, DWORD PTR _fulln$3$[ebp]
$LN59@xmlCheckDe:
push DWORD PTR [ebx+60]
push eax
push OFFSET ??_C@_0DP@KFNFGALP@standalone?3?5attribute?5?$CFs?5on?5?$CFs?5@
push 538 ; 0000021aH
push edi
call _xmlErrValid
add esp, 20 ; 00000014H
jmp SHORT $LN19@xmlCheckDe
$LN100@xmlCheckDe:
; 1495 : }
; 1496 : }
; 1497 : if (att == NULL) {
mov edi, DWORD PTR _ctxt$[ebp]
$LN19@xmlCheckDe:
; 1499 : "standalone: attribute %s on %s defaulted from external subset\n",
; 1500 : (const char *)fulln,
; 1501 : (const char *)attr->elem);
; 1502 : }
; 1503 : xmlFree(fulln);
push DWORD PTR _fulln$3$[ebp]
call DWORD PTR _xmlFree
add esp, 4
$LN13@xmlCheckDe:
; 1504 : }
; 1505 : attr = attr->nexth;
mov ebx, DWORD PTR [ebx+36]
test ebx, ebx
jne $LL2@xmlCheckDe
; 1459 : (ctxt->validate)) {
; 1460 : while (attr != NULL) {
jmp SHORT $LN86@xmlCheckDe
$LN40@xmlCheckDe:
; 1478 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElement");
push OFFSET ??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@
push edi
call _xmlSAX2ErrMemory
add esp, 8
$LN86@xmlCheckDe:
; 1506 : }
; 1507 : }
; 1508 :
; 1509 : /*
; 1510 : * Actually insert defaulted values when needed
; 1511 : */
; 1512 : attr = elemDecl->attributes;
mov edi, DWORD PTR _elemDecl$1$[ebp]
mov edi, DWORD PTR [edi+44]
; 1513 : while (attr != NULL) {
test edi, edi
je $LN7@xmlCheckDe
npad 8
$LL6@xmlCheckDe:
; 1514 : /*
; 1515 : * Make sure that attributes redefinition occuring in the
; 1516 : * internal subset are not overriden by definitions in the
; 1517 : * external subset.
; 1518 : */
; 1519 : if (attr->defaultValue != NULL) {
cmp DWORD PTR [edi+48], 0
je $LN31@xmlCheckDe
; 1520 : /*
; 1521 : * the element should be instantiated in the tree if:
; 1522 : * - this is a namespace prefix
; 1523 : * - the user required for completion in the tree
; 1524 : * like XSLT
; 1525 : * - there isn't already an attribute definition
; 1526 : * in the internal subset overriding it.
; 1527 : */
; 1528 : if (((attr->prefix != NULL) &&
; 1529 : (xmlStrEqual(attr->prefix, BAD_CAST "xmlns"))) ||
; 1530 : ((attr->prefix == NULL) &&
; 1531 : (xmlStrEqual(attr->name, BAD_CAST "xmlns"))) ||
mov eax, DWORD PTR [edi+56]
test eax, eax
je SHORT $LN23@xmlCheckDe
push OFFSET ??_C@_05PPEFOGKI@xmlns@
push eax
call _xmlStrEqual
add esp, 8
test eax, eax
jne SHORT $LN99@xmlCheckDe
$LN23@xmlCheckDe:
cmp DWORD PTR [edi+56], 0
jne SHORT $LN24@xmlCheckDe
push OFFSET ??_C@_05PPEFOGKI@xmlns@
push DWORD PTR [edi+8]
call _xmlStrEqual
add esp, 8
test eax, eax
jne SHORT $LN99@xmlCheckDe
$LN24@xmlCheckDe:
mov eax, DWORD PTR _ctxt$[ebp]
test BYTE PTR [eax+276], 4
je $LN31@xmlCheckDe
jmp SHORT $LN22@xmlCheckDe
$LN99@xmlCheckDe:
; 1532 : (ctxt->loadsubset & XML_COMPLETE_ATTRS)) {
; 1533 : xmlAttributePtr tst;
; 1534 :
; 1535 : tst = xmlGetDtdQAttrDesc(ctxt->myDoc->intSubset,
mov eax, DWORD PTR _ctxt$[ebp]
$LN22@xmlCheckDe:
push DWORD PTR [edi+56]
mov eax, DWORD PTR [eax+8]
push DWORD PTR [edi+8]
push DWORD PTR [edi+60]
push DWORD PTR [eax+44]
call _xmlGetDtdQAttrDesc
add esp, 16 ; 00000010H
; 1536 : attr->elem, attr->name,
; 1537 : attr->prefix);
; 1538 : if ((tst == attr) || (tst == NULL)) {
cmp eax, edi
je SHORT $LN26@xmlCheckDe
test eax, eax
jne SHORT $LN31@xmlCheckDe
$LN26@xmlCheckDe:
; 1539 : xmlChar fn[50];
; 1540 : xmlChar *fulln;
; 1541 :
; 1542 : fulln = xmlBuildQName(attr->name, attr->prefix, fn, 50);
push 50 ; 00000032H
lea eax, DWORD PTR _fn$1[ebp]
push eax
push DWORD PTR [edi+56]
push DWORD PTR [edi+8]
call _xmlBuildQName
add esp, 16 ; 00000010H
mov DWORD PTR _fulln$1$[ebp], eax
; 1543 : if (fulln == NULL) {
test eax, eax
je $LN42@xmlCheckDe
; 1545 : return;
; 1546 : }
; 1547 :
; 1548 : /*
; 1549 : * Check that the attribute is not declared in the
; 1550 : * serialization
; 1551 : */
; 1552 : att = NULL;
; 1553 : if (atts != NULL) {
mov ecx, DWORD PTR _atts$[ebp]
test ecx, ecx
je SHORT $LN58@xmlCheckDe
; 1554 : i = 0;
; 1555 : att = atts[i];
mov esi, DWORD PTR [ecx]
; 1556 : while (att != NULL) {
test esi, esi
je SHORT $LN58@xmlCheckDe
; 1554 : i = 0;
; 1555 : att = atts[i];
mov ebx, ecx
npad 1
$LL8@xmlCheckDe:
; 1557 : if (xmlStrEqual(att, fulln))
push eax
push esi
call _xmlStrEqual
add esp, 8
test eax, eax
jne SHORT $LN41@xmlCheckDe
; 1558 : break;
; 1559 : i += 2;
; 1560 : att = atts[i];
mov esi, DWORD PTR [ebx+8]
add ebx, 8
mov eax, DWORD PTR _fulln$1$[ebp]
test esi, esi
jne SHORT $LL8@xmlCheckDe
; 1561 : }
; 1562 : }
; 1563 : if (att == NULL) {
jmp SHORT $LN108@xmlCheckDe
$LN41@xmlCheckDe:
test esi, esi
jne SHORT $LN30@xmlCheckDe
$LN108@xmlCheckDe:
; 1564 : xmlSAX2AttributeInternal(ctxt, fulln,
mov eax, DWORD PTR _fulln$1$[ebp]
$LN58@xmlCheckDe:
push DWORD PTR _prefix$[ebp]
push DWORD PTR [edi+48]
push eax
push DWORD PTR _ctxt$[ebp]
call _xmlSAX2AttributeInternal
add esp, 16 ; 00000010H
$LN30@xmlCheckDe:
; 1565 : attr->defaultValue, prefix);
; 1566 : }
; 1567 : if ((fulln != fn) && (fulln != attr->name))
mov eax, DWORD PTR _fulln$1$[ebp]
lea ecx, DWORD PTR _fn$1[ebp]
cmp eax, ecx
je SHORT $LN31@xmlCheckDe
cmp eax, DWORD PTR [edi+8]
je SHORT $LN31@xmlCheckDe
; 1568 : xmlFree(fulln);
push eax
call DWORD PTR _xmlFree
add esp, 4
$LN31@xmlCheckDe:
; 1569 : }
; 1570 : }
; 1571 : }
; 1572 : attr = attr->nexth;
mov edi, DWORD PTR [edi+36]
test edi, edi
jne $LL6@xmlCheckDe
$LN7@xmlCheckDe:
; 1573 : }
; 1574 : if (internal == 1) {
cmp DWORD PTR _internal$1$[ebp], 1
jne SHORT $LN87@xmlCheckDe
; 1575 : elemDecl = xmlGetDtdQElementDesc(ctxt->myDoc->extSubset,
mov edi, DWORD PTR _ctxt$[ebp]
push DWORD PTR _prefix$[ebp]
push DWORD PTR _name$[ebp]
mov eax, DWORD PTR [edi+8]
push DWORD PTR [eax+48]
call _xmlGetDtdQElementDesc
add esp, 12 ; 0000000cH
mov DWORD PTR _elemDecl$1$[ebp], eax
; 1576 : name, prefix);
; 1577 : internal = 0;
mov DWORD PTR _internal$1$[ebp], 0
test eax, eax
jne $process_external_subset$110
; 1578 : goto process_external_subset;
; 1579 : }
; 1580 : }
; 1581 : }
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN42@xmlCheckDe:
; 1544 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElement");
push OFFSET ??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@
push DWORD PTR _ctxt$[ebp]
call _xmlSAX2ErrMemory
add esp, 8
$LN87@xmlCheckDe:
; 1578 : goto process_external_subset;
; 1579 : }
; 1580 : }
; 1581 : }
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
_xmlCheckDefaultedAttributes ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2AttributeInternal
_TEXT SEGMENT
_nvalnorm$1$ = -12 ; size = 4
_nsret$1$ = -12 ; size = 4
_uri$1$ = -12 ; size = 4
_uri$1$ = -12 ; size = 4
_nval$1$ = -8 ; size = 4
_ns$ = -4 ; size = 4
_val$1$ = 8 ; size = 4
_val$1$ = 8 ; size = 4
_val$1$ = 8 ; size = 4
_namespace$1$ = 8 ; size = 4
_ctx$ = 8 ; size = 4
_fullname$ = 12 ; size = 4
_value$ = 16 ; size = 4
_prefix$ = 20 ; size = 4
_xmlSAX2AttributeInternal PROC ; COMDAT
; 1098 : {
push ebp
mov ebp, esp
sub esp, 12 ; 0000000cH
mov ecx, OFFSET __A8525CDE_sax2@c
push ebx
push esi
push edi
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
mov ebx, DWORD PTR _fullname$[ebp]
cmp DWORD PTR [esi+32], 0
je SHORT $LN6@xmlSAX2Att
; 1099 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 1100 : xmlAttrPtr ret;
; 1101 : xmlChar *name;
; 1102 : xmlChar *ns;
; 1103 : xmlChar *nval;
; 1104 : xmlNsPtr namespace;
; 1105 :
; 1106 : if (ctxt->html) {
; 1107 : name = xmlStrdup(fullname);
push ebx
call _xmlStrdup
add esp, 4
; 1108 : ns = NULL;
mov DWORD PTR _ns$[ebp], 0
; 1109 : namespace = NULL;
; 1110 : } else {
jmp SHORT $LN103@xmlSAX2Att
$LN6@xmlSAX2Att:
; 1111 : /*
; 1112 : * Split the full name into a namespace prefix and the tag name
; 1113 : */
; 1114 : name = xmlSplitQName(ctxt, fullname, &ns);
lea eax, DWORD PTR _ns$[ebp]
push eax
push ebx
push esi
call _xmlSplitQName
mov edi, eax
add esp, 12 ; 0000000cH
; 1115 : if ((name != NULL) && (name[0] == 0)) {
test edi, edi
je $LN92@xmlSAX2Att
cmp BYTE PTR [edi], 0
jne SHORT $LN8@xmlSAX2Att
; 1116 : if (xmlStrEqual(ns, BAD_CAST "xmlns")) {
push OFFSET ??_C@_05PPEFOGKI@xmlns@
push DWORD PTR _ns$[ebp]
call _xmlStrEqual
add esp, 8
push 0
push ebx
test eax, eax
je SHORT $LN9@xmlSAX2Att
; 1117 : xmlNsErrMsg(ctxt, XML_ERR_NS_DECL_ERROR,
push OFFSET ??_C@_0CE@IJLGNIDG@invalid?5namespace?5declaration?5?8@
push 35 ; 00000023H
push esi
call _xmlNsErrMsg
; 1118 : "invalid namespace declaration '%s'\n",
; 1119 : fullname, NULL);
; 1120 : } else {
jmp SHORT $LN104@xmlSAX2Att
$LN9@xmlSAX2Att:
; 1121 : xmlNsWarnMsg(ctxt, XML_WAR_NS_COLUMN,
push OFFSET ??_C@_0CL@HKIDFKGE@Avoid?5attribute?5ending?5with?5?8?3?8@
push 106 ; 0000006aH
push esi
call _xmlNsWarnMsg
$LN104@xmlSAX2Att:
; 1122 : "Avoid attribute ending with ':' like '%s'\n",
; 1123 : fullname, NULL);
; 1124 : }
; 1125 : if (ns != NULL)
mov eax, DWORD PTR _ns$[ebp]
add esp, 20 ; 00000014H
test eax, eax
je SHORT $LN11@xmlSAX2Att
; 1126 : xmlFree(ns);
push eax
call DWORD PTR _xmlFree
add esp, 4
$LN11@xmlSAX2Att:
; 1127 : ns = NULL;
; 1128 : xmlFree(name);
push edi
mov DWORD PTR _ns$[ebp], 0
call DWORD PTR _xmlFree
; 1129 : name = xmlStrdup(fullname);
push ebx
call _xmlStrdup
add esp, 8
$LN103@xmlSAX2Att:
; 1130 : }
; 1131 : }
; 1132 : if (name == NULL) {
mov edi, eax
$LN8@xmlSAX2Att:
test edi, edi
je $LN92@xmlSAX2Att
; 1134 : if (ns != NULL)
; 1135 : xmlFree(ns);
; 1136 : return;
; 1137 : }
; 1138 :
; 1139 : #ifdef LIBXML_HTML_ENABLED
; 1140 : if ((ctxt->html) &&
; 1141 : (value == NULL) && (htmlIsBooleanAttr(fullname))) {
cmp DWORD PTR [esi+32], 0
mov ebx, DWORD PTR _value$[ebp]
je SHORT $LN14@xmlSAX2Att
test ebx, ebx
jne SHORT $LN14@xmlSAX2Att
push DWORD PTR _fullname$[ebp]
call _htmlIsBooleanAttr
add esp, 4
test eax, eax
je SHORT $LN14@xmlSAX2Att
; 1142 : nval = xmlStrdup(fullname);
push DWORD PTR _fullname$[ebp]
call _xmlStrdup
mov ecx, eax
add esp, 4
mov DWORD PTR _nval$1$[ebp], ecx
; 1143 : value = (const xmlChar *) nval;
mov ebx, ecx
mov DWORD PTR _value$[ebp], ecx
; 1144 : } else
jmp SHORT $LN17@xmlSAX2Att
$LN14@xmlSAX2Att:
; 1145 : #endif
; 1146 : {
; 1147 : #ifdef LIBXML_VALID_ENABLED
; 1148 : /*
; 1149 : * Do the last stage of the attribute normalization
; 1150 : * Needed for HTML too:
; 1151 : * http://www.w3.org/TR/html4/types.html#h-6.2
; 1152 : */
; 1153 : ctxt->vctxt.valid = 1;
; 1154 : nval = xmlValidCtxtNormalizeAttributeValue(&ctxt->vctxt,
push ebx
push DWORD PTR _fullname$[ebp]
lea eax, DWORD PTR [esi+108]
mov DWORD PTR [esi+144], 1
push DWORD PTR [esi+52]
push DWORD PTR [esi+8]
push eax
call _xmlValidCtxtNormalizeAttributeValue
add esp, 20 ; 00000014H
mov ecx, eax
; 1155 : ctxt->myDoc, ctxt->node,
; 1156 : fullname, value);
; 1157 : if (ctxt->vctxt.valid != 1) {
cmp DWORD PTR [esi+144], 1
mov DWORD PTR _nval$1$[ebp], ecx
je SHORT $LN16@xmlSAX2Att
; 1158 : ctxt->valid = 0;
mov DWORD PTR [esi+100], 0
$LN16@xmlSAX2Att:
; 1159 : }
; 1160 : if (nval != NULL)
test ecx, ecx
cmovne ebx, ecx
mov DWORD PTR _value$[ebp], ebx
$LN17@xmlSAX2Att:
; 1161 : value = nval;
; 1162 : #else
; 1163 : nval = NULL;
; 1164 : #endif /* LIBXML_VALID_ENABLED */
; 1165 : }
; 1166 :
; 1167 : /*
; 1168 : * Check whether it's a namespace definition
; 1169 : */
; 1170 : if ((!ctxt->html) && (ns == NULL) &&
; 1171 : (name[0] == 'x') && (name[1] == 'm') && (name[2] == 'l') &&
; 1172 : (name[3] == 'n') && (name[4] == 's') && (name[5] == 0)) {
cmp DWORD PTR [esi+32], 0
mov eax, DWORD PTR _ns$[ebp]
jne $LN34@xmlSAX2Att
test eax, eax
jne $LN93@xmlSAX2Att
cmp BYTE PTR [edi], 120 ; 00000078H
jne $LN49@xmlSAX2Att
cmp BYTE PTR [edi+1], 109 ; 0000006dH
jne $LN49@xmlSAX2Att
cmp BYTE PTR [edi+2], 108 ; 0000006cH
jne $LN49@xmlSAX2Att
cmp BYTE PTR [edi+3], 110 ; 0000006eH
jne $LN49@xmlSAX2Att
cmp BYTE PTR [edi+4], 115 ; 00000073H
jne $LN49@xmlSAX2Att
cmp BYTE PTR [edi+5], al
jne $LN49@xmlSAX2Att
; 1173 : xmlNsPtr nsret;
; 1174 : xmlChar *val;
; 1175 :
; 1176 : if (!ctxt->replaceEntities) {
cmp DWORD PTR [esi+16], eax
jne SHORT $LN19@xmlSAX2Att
; 1177 : ctxt->depth++;
inc DWORD PTR [esi+248]
; 1178 : val = xmlStringDecodeEntities(ctxt, value, XML_SUBSTITUTE_REF,
push eax
push eax
push eax
push 1
push ebx
push esi
call _xmlStringDecodeEntities
; 1179 : 0,0,0);
; 1180 : ctxt->depth--;
dec DWORD PTR [esi+248]
add esp, 24 ; 00000018H
mov DWORD PTR _val$1$[ebp], eax
; 1181 : if (val == NULL) {
test eax, eax
jne SHORT $LN20@xmlSAX2Att
; 1182 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElement");
push OFFSET ??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@
push esi
call _xmlSAX2ErrMemory
; 1183 : if (name != NULL)
; 1184 : xmlFree(name);
push edi
call DWORD PTR _xmlFree
; 1185 : if (nval != NULL)
mov eax, DWORD PTR _nval$1$[ebp]
add esp, 12 ; 0000000cH
; 1186 : xmlFree(nval);
; 1187 : return;
jmp $LN106@xmlSAX2Att
$LN19@xmlSAX2Att:
; 1188 : }
; 1189 : } else {
; 1190 : val = (xmlChar *) value;
mov eax, ebx
mov DWORD PTR _val$1$[ebp], ebx
$LN20@xmlSAX2Att:
; 1191 : }
; 1192 :
; 1193 : if (val[0] != 0) {
cmp BYTE PTR [eax], 0
je SHORT $LN26@xmlSAX2Att
; 1194 : xmlURIPtr uri;
; 1195 :
; 1196 : uri = xmlParseURI((const char *)val);
push eax
call _xmlParseURI
add esp, 4
mov DWORD PTR _uri$1$[ebp], eax
; 1197 : if (uri == NULL) {
test eax, eax
jne SHORT $LN25@xmlSAX2Att
; 1198 : if ((ctxt->sax != NULL) && (ctxt->sax->warning != NULL))
mov eax, DWORD PTR [esi]
test eax, eax
je SHORT $LN99@xmlSAX2Att
mov eax, DWORD PTR [eax+84]
test eax, eax
je SHORT $LN99@xmlSAX2Att
; 1199 : ctxt->sax->warning(ctxt->userData,
push DWORD PTR _val$1$[ebp]
push OFFSET ??_C@_0BL@KIHPGOD@xmlns?3?5?$CFs?5not?5a?5valid?5URI?6@
push DWORD PTR [esi+4]
call eax
add esp, 12 ; 0000000cH
; 1200 : "xmlns: %s not a valid URI\n", val);
; 1201 : } else {
jmp SHORT $LN99@xmlSAX2Att
$LN25@xmlSAX2Att:
; 1202 : if (uri->scheme == NULL) {
cmp DWORD PTR [eax], 0
jne SHORT $LN29@xmlSAX2Att
; 1203 : if ((ctxt->sax != NULL) && (ctxt->sax->warning != NULL))
mov ecx, DWORD PTR [esi]
test ecx, ecx
je SHORT $LN29@xmlSAX2Att
mov ecx, DWORD PTR [ecx+84]
test ecx, ecx
je SHORT $LN29@xmlSAX2Att
; 1204 : ctxt->sax->warning(ctxt->userData,
push DWORD PTR _val$1$[ebp]
push OFFSET ??_C@_0BP@JFBGAFGI@xmlns?3?5URI?5?$CFs?5is?5not?5absolute?6@
push DWORD PTR [esi+4]
call ecx
mov eax, DWORD PTR _uri$1$[ebp]
add esp, 12 ; 0000000cH
$LN29@xmlSAX2Att:
; 1205 : "xmlns: URI %s is not absolute\n", val);
; 1206 : }
; 1207 : xmlFreeURI(uri);
push eax
call _xmlFreeURI
add esp, 4
$LN99@xmlSAX2Att:
; 1208 : }
; 1209 : }
; 1210 :
; 1211 : /* a default namespace definition */
; 1212 : nsret = xmlNewNs(ctxt->node, val, NULL);
mov eax, DWORD PTR _val$1$[ebp]
$LN26@xmlSAX2Att:
push 0
push eax
push DWORD PTR [esi+52]
call _xmlNewNs
mov ecx, eax
add esp, 12 ; 0000000cH
; 1213 :
; 1214 : #ifdef LIBXML_VALID_ENABLED
; 1215 : /*
; 1216 : * Validate also for namespace decls, they are attributes from
; 1217 : * an XML-1.0 perspective
; 1218 : */
; 1219 : if (nsret != NULL && ctxt->validate && ctxt->wellFormed &&
; 1220 : ctxt->myDoc && ctxt->myDoc->intSubset)
test ecx, ecx
je SHORT $LN30@xmlSAX2Att
cmp DWORD PTR [esi+104], 0
je SHORT $LN30@xmlSAX2Att
cmp DWORD PTR [esi+12], 0
je SHORT $LN30@xmlSAX2Att
mov eax, DWORD PTR [esi+8]
test eax, eax
je SHORT $LN30@xmlSAX2Att
cmp DWORD PTR [eax+44], 0
je SHORT $LN30@xmlSAX2Att
; 1221 : ctxt->valid &= xmlValidateOneNamespace(&ctxt->vctxt, ctxt->myDoc,
push DWORD PTR _val$1$[ebp]
push ecx
push DWORD PTR _prefix$[ebp]
push DWORD PTR [esi+52]
push eax
lea eax, DWORD PTR [esi+108]
push eax
call _xmlValidateOneNamespace
add esp, 24 ; 00000018H
and DWORD PTR [esi+100], eax
$LN30@xmlSAX2Att:
; 1222 : ctxt->node, prefix, nsret, val);
; 1223 : #endif /* LIBXML_VALID_ENABLED */
; 1224 : if (name != NULL)
; 1225 : xmlFree(name);
push edi
call DWORD PTR _xmlFree
; 1226 : if (nval != NULL)
mov eax, DWORD PTR _nval$1$[ebp]
add esp, 4
test eax, eax
je SHORT $LN32@xmlSAX2Att
; 1227 : xmlFree(nval);
push eax
call DWORD PTR _xmlFree
add esp, 4
$LN32@xmlSAX2Att:
; 1228 : if (val != value)
mov eax, DWORD PTR _val$1$[ebp]
cmp eax, ebx
; 1229 : xmlFree(val);
; 1230 : return;
jmp $LN105@xmlSAX2Att
$LN93@xmlSAX2Att:
; 1231 : }
; 1232 : if ((!ctxt->html) &&
; 1233 : (ns != NULL) && (ns[0] == 'x') && (ns[1] == 'm') && (ns[2] == 'l') &&
; 1234 : (ns[3] == 'n') && (ns[4] == 's') && (ns[5] == 0)) {
cmp BYTE PTR [eax], 120 ; 00000078H
jne $LN34@xmlSAX2Att
cmp BYTE PTR [eax+1], 109 ; 0000006dH
jne $LN34@xmlSAX2Att
cmp BYTE PTR [eax+2], 108 ; 0000006cH
jne $LN34@xmlSAX2Att
cmp BYTE PTR [eax+3], 110 ; 0000006eH
jne $LN34@xmlSAX2Att
cmp BYTE PTR [eax+4], 115 ; 00000073H
jne $LN34@xmlSAX2Att
cmp BYTE PTR [eax+5], 0
jne $LN34@xmlSAX2Att
; 1235 : xmlNsPtr nsret;
; 1236 : xmlChar *val;
; 1237 :
; 1238 : if (!ctxt->replaceEntities) {
cmp DWORD PTR [esi+16], 0
jne SHORT $LN35@xmlSAX2Att
; 1239 : ctxt->depth++;
inc DWORD PTR [esi+248]
; 1240 : val = xmlStringDecodeEntities(ctxt, value, XML_SUBSTITUTE_REF,
push 0
push 0
push 0
push 1
push ebx
push esi
call _xmlStringDecodeEntities
; 1241 : 0,0,0);
; 1242 : ctxt->depth--;
dec DWORD PTR [esi+248]
add esp, 24 ; 00000018H
mov DWORD PTR _val$1$[ebp], eax
; 1243 : if (val == NULL) {
test eax, eax
jne SHORT $LN36@xmlSAX2Att
; 1244 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElement");
push OFFSET ??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@
push esi
call _xmlSAX2ErrMemory
; 1245 : xmlFree(ns);
push DWORD PTR _ns$[ebp]
call DWORD PTR _xmlFree
; 1246 : if (name != NULL)
; 1247 : xmlFree(name);
push edi
call DWORD PTR _xmlFree
; 1248 : if (nval != NULL)
mov eax, DWORD PTR _nval$1$[ebp]
add esp, 16 ; 00000010H
; 1249 : xmlFree(nval);
; 1250 : return;
jmp $LN106@xmlSAX2Att
$LN35@xmlSAX2Att:
; 1251 : }
; 1252 : } else {
; 1253 : val = (xmlChar *) value;
mov eax, ebx
mov DWORD PTR _val$1$[ebp], ebx
$LN36@xmlSAX2Att:
; 1254 : }
; 1255 :
; 1256 : if (val[0] == 0) {
cmp BYTE PTR [eax], 0
jne SHORT $LN40@xmlSAX2Att
; 1257 : xmlNsErrMsg(ctxt, XML_NS_ERR_EMPTY,
push 0
push edi
push OFFSET ??_C@_0CE@LNIJHMCD@Empty?5namespace?5name?5for?5prefix@
push 204 ; 000000ccH
push esi
call _xmlNsErrMsg
mov eax, DWORD PTR _val$1$[ebp]
add esp, 20 ; 00000014H
$LN40@xmlSAX2Att:
; 1258 : "Empty namespace name for prefix %s\n", name, NULL);
; 1259 : }
; 1260 : if ((ctxt->pedantic != 0) && (val[0] != 0)) {
cmp DWORD PTR [esi+268], 0
je SHORT $LN43@xmlSAX2Att
cmp BYTE PTR [eax], 0
je SHORT $LN43@xmlSAX2Att
; 1261 : xmlURIPtr uri;
; 1262 :
; 1263 : uri = xmlParseURI((const char *)val);
push eax
call _xmlParseURI
add esp, 4
mov DWORD PTR _uri$1$[ebp], eax
; 1264 : if (uri == NULL) {
test eax, eax
jne SHORT $LN42@xmlSAX2Att
; 1265 : xmlNsWarnMsg(ctxt, XML_WAR_NS_URI,
push ebx
push edi
push OFFSET ??_C@_0BO@MNIAHAOJ@xmlns?3?$CFs?3?5?$CFs?5not?5a?5valid?5URI?6@
push 99 ; 00000063H
push esi
call _xmlNsWarnMsg
add esp, 20 ; 00000014H
; 1266 : "xmlns:%s: %s not a valid URI\n", name, value);
; 1267 : } else {
jmp SHORT $LN43@xmlSAX2Att
$LN42@xmlSAX2Att:
; 1268 : if (uri->scheme == NULL) {
cmp DWORD PTR [eax], 0
jne SHORT $LN44@xmlSAX2Att
; 1269 : xmlNsWarnMsg(ctxt, XML_WAR_NS_URI_RELATIVE,
push ebx
push edi
push OFFSET ??_C@_0CC@FFFCEDOK@xmlns?3?$CFs?3?5URI?5?$CFs?5is?5not?5absolut@
push 100 ; 00000064H
push esi
call _xmlNsWarnMsg
mov eax, DWORD PTR _uri$1$[ebp]
add esp, 20 ; 00000014H
$LN44@xmlSAX2Att:
; 1270 : "xmlns:%s: URI %s is not absolute\n", name, value);
; 1271 : }
; 1272 : xmlFreeURI(uri);
push eax
call _xmlFreeURI
add esp, 4
$LN43@xmlSAX2Att:
; 1273 : }
; 1274 : }
; 1275 :
; 1276 : /* a standard namespace definition */
; 1277 : nsret = xmlNewNs(ctxt->node, val, name);
push edi
push DWORD PTR _val$1$[ebp]
push DWORD PTR [esi+52]
call _xmlNewNs
; 1278 : xmlFree(ns);
push DWORD PTR _ns$[ebp]
mov DWORD PTR _nsret$1$[ebp], eax
call DWORD PTR _xmlFree
; 1279 : #ifdef LIBXML_VALID_ENABLED
; 1280 : /*
; 1281 : * Validate also for namespace decls, they are attributes from
; 1282 : * an XML-1.0 perspective
; 1283 : */
; 1284 : if (nsret != NULL && ctxt->validate && ctxt->wellFormed &&
; 1285 : ctxt->myDoc && ctxt->myDoc->intSubset)
mov ecx, DWORD PTR _nsret$1$[ebp]
add esp, 16 ; 00000010H
test ecx, ecx
je SHORT $LN45@xmlSAX2Att
cmp DWORD PTR [esi+104], 0
je SHORT $LN45@xmlSAX2Att
cmp DWORD PTR [esi+12], 0
je SHORT $LN45@xmlSAX2Att
mov eax, DWORD PTR [esi+8]
test eax, eax
je SHORT $LN45@xmlSAX2Att
cmp DWORD PTR [eax+44], 0
je SHORT $LN45@xmlSAX2Att
; 1286 : ctxt->valid &= xmlValidateOneNamespace(&ctxt->vctxt, ctxt->myDoc,
push ebx
push ecx
push DWORD PTR _prefix$[ebp]
push DWORD PTR [esi+52]
push eax
lea eax, DWORD PTR [esi+108]
push eax
call _xmlValidateOneNamespace
add esp, 24 ; 00000018H
and DWORD PTR [esi+100], eax
$LN45@xmlSAX2Att:
; 1287 : ctxt->node, prefix, nsret, value);
; 1288 : #endif /* LIBXML_VALID_ENABLED */
; 1289 : if (name != NULL)
; 1290 : xmlFree(name);
push edi
call DWORD PTR _xmlFree
; 1291 : if (nval != NULL)
mov eax, DWORD PTR _nval$1$[ebp]
add esp, 4
test eax, eax
je $LN32@xmlSAX2Att
; 1292 : xmlFree(nval);
push eax
call DWORD PTR _xmlFree
; 1293 : if (val != value)
mov eax, DWORD PTR _val$1$[ebp]
add esp, 4
cmp eax, ebx
; 1294 : xmlFree(val);
; 1295 : return;
jmp $LN105@xmlSAX2Att
$LN34@xmlSAX2Att:
; 1296 : }
; 1297 :
; 1298 : if (ns != NULL) {
test eax, eax
je $LN49@xmlSAX2Att
; 1299 : namespace = xmlSearchNs(ctxt->myDoc, ctxt->node, ns);
push eax
push DWORD PTR [esi+52]
push DWORD PTR [esi+8]
call _xmlSearchNs
add esp, 12 ; 0000000cH
mov DWORD PTR _namespace$1$[ebp], eax
; 1300 :
; 1301 : if (namespace == NULL) {
test eax, eax
jne SHORT $LN51@xmlSAX2Att
; 1302 : xmlNsErrMsg(ctxt, XML_NS_ERR_UNDEFINED_NAMESPACE,
push edi
push DWORD PTR _ns$[ebp]
push OFFSET ??_C@_0DE@HNKDFNKM@Namespace?5prefix?5?$CFs?5of?5attribut@
push 201 ; 000000c9H
push esi
call _xmlNsErrMsg
add esp, 20 ; 00000014H
$LN100@xmlSAX2Att:
; 1329 : }
; 1330 :
; 1331 : /* !!!!!! <a toto:arg="" xmlns:toto="http://toto.com"> */
; 1332 : ret = xmlNewNsPropEatName(ctxt->node, namespace, name, NULL);
mov eax, DWORD PTR _namespace$1$[ebp]
$LN50@xmlSAX2Att:
push 0
push edi
push eax
push DWORD PTR [esi+52]
call _xmlNewNsPropEatName
mov ebx, eax
add esp, 16 ; 00000010H
; 1333 :
; 1334 : if (ret != NULL) {
test ebx, ebx
je $LN96@xmlSAX2Att
; 1335 : if ((ctxt->replaceEntities == 0) && (!ctxt->html)) {
cmp DWORD PTR [esi+16], 0
jne $LN59@xmlSAX2Att
cmp DWORD PTR [esi+32], 0
jne $LN59@xmlSAX2Att
; 1336 : xmlNodePtr tmp;
; 1337 :
; 1338 : ret->children = xmlStringGetNodeList(ctxt->myDoc, value);
mov edi, DWORD PTR _value$[ebp]
push edi
push DWORD PTR [esi+8]
call _xmlStringGetNodeList
add esp, 8
mov DWORD PTR [ebx+12], eax
; 1339 : tmp = ret->children;
; 1340 : while (tmp != NULL) {
test eax, eax
je $LN63@xmlSAX2Att
npad 2
$LL4@xmlSAX2Att:
; 1341 : tmp->parent = (xmlNodePtr) ret;
; 1342 : if (tmp->next == NULL)
mov ecx, DWORD PTR [eax+24]
mov DWORD PTR [eax+20], ebx
test ecx, ecx
jne SHORT $LN94@xmlSAX2Att
; 1343 : ret->last = tmp;
mov DWORD PTR [ebx+16], eax
mov ecx, DWORD PTR [eax+24]
$LN94@xmlSAX2Att:
; 1344 : tmp = tmp->next;
mov eax, ecx
test ecx, ecx
jne SHORT $LL4@xmlSAX2Att
; 1345 : }
; 1346 : } else if (value != NULL) {
jmp $LN63@xmlSAX2Att
$LN51@xmlSAX2Att:
; 1303 : "Namespace prefix %s of attribute %s is not defined\n",
; 1304 : ns, name);
; 1305 : } else {
; 1306 : xmlAttrPtr prop;
; 1307 :
; 1308 : prop = ctxt->node->properties;
mov eax, DWORD PTR [esi+52]
mov ebx, DWORD PTR [eax+44]
; 1309 : while (prop != NULL) {
test ebx, ebx
je SHORT $LN100@xmlSAX2Att
$LL2@xmlSAX2Att:
; 1310 : if (prop->ns != NULL) {
cmp DWORD PTR [ebx+36], 0
je SHORT $LN54@xmlSAX2Att
; 1311 : if ((xmlStrEqual(name, prop->name)) &&
push DWORD PTR [ebx+8]
push edi
call _xmlStrEqual
add esp, 8
test eax, eax
je SHORT $LN54@xmlSAX2Att
mov eax, DWORD PTR [ebx+36]
mov ecx, DWORD PTR _namespace$1$[ebp]
cmp ecx, eax
je SHORT $LN55@xmlSAX2Att
push DWORD PTR [eax+8]
push DWORD PTR [ecx+8]
call _xmlStrEqual
add esp, 8
test eax, eax
jne SHORT $LN101@xmlSAX2Att
$LN54@xmlSAX2Att:
; 1322 : }
; 1323 : }
; 1324 : prop = prop->next;
mov ebx, DWORD PTR [ebx+24]
test ebx, ebx
jne SHORT $LL2@xmlSAX2Att
; 1309 : while (prop != NULL) {
jmp $LN100@xmlSAX2Att
$LN101@xmlSAX2Att:
; 1311 : if ((xmlStrEqual(name, prop->name)) &&
mov ecx, DWORD PTR _namespace$1$[ebp]
$LN55@xmlSAX2Att:
; 1312 : ((namespace == prop->ns) ||
; 1313 : (xmlStrEqual(namespace->href, prop->ns->href)))) {
; 1314 : xmlNsErrMsg(ctxt, XML_ERR_ATTRIBUTE_REDEFINED,
push DWORD PTR [ecx+8]
push edi
push OFFSET ??_C@_0BO@PGCJKKMF@Attribute?5?$CFs?5in?5?$CFs?5redefined?6@
push 42 ; 0000002aH
push esi
call _xmlNsErrMsg
add esp, 20 ; 00000014H
; 1315 : "Attribute %s in %s redefined\n",
; 1316 : name, namespace->href);
; 1317 : ctxt->wellFormed = 0;
mov DWORD PTR [esi+12], 0
; 1318 : if (ctxt->recovery == 0) ctxt->disableSAX = 1;
cmp DWORD PTR [esi+288], 0
jne SHORT $LN56@xmlSAX2Att
mov DWORD PTR [esi+212], 1
$LN56@xmlSAX2Att:
; 1319 : if (name != NULL)
; 1320 : xmlFree(name);
push edi
call DWORD PTR _xmlFree
add esp, 4
; 1321 : goto error;
jmp $error$109
$LN49@xmlSAX2Att:
; 1325 : }
; 1326 : }
; 1327 : } else {
; 1328 : namespace = NULL;
xor eax, eax
jmp $LN50@xmlSAX2Att
$LN59@xmlSAX2Att:
; 1345 : }
; 1346 : } else if (value != NULL) {
mov edi, DWORD PTR _value$[ebp]
test edi, edi
je SHORT $LN63@xmlSAX2Att
; 1347 : ret->children = xmlNewDocText(ctxt->myDoc, value);
push edi
push DWORD PTR [esi+8]
call _xmlNewDocText
add esp, 8
mov DWORD PTR [ebx+12], eax
; 1348 : ret->last = ret->children;
mov DWORD PTR [ebx+16], eax
; 1349 : if (ret->children != NULL)
test eax, eax
je SHORT $LN63@xmlSAX2Att
; 1350 : ret->children->parent = (xmlNodePtr) ret;
mov DWORD PTR [eax+20], ebx
jmp SHORT $LN63@xmlSAX2Att
$LN96@xmlSAX2Att:
; 1333 :
; 1334 : if (ret != NULL) {
mov edi, DWORD PTR _value$[ebp]
$LN63@xmlSAX2Att:
; 1351 : }
; 1352 : }
; 1353 :
; 1354 : #ifdef LIBXML_VALID_ENABLED
; 1355 : if ((!ctxt->html) && ctxt->validate && ctxt->wellFormed &&
; 1356 : ctxt->myDoc && ctxt->myDoc->intSubset) {
cmp DWORD PTR [esi+32], 0
jne $LN64@xmlSAX2Att
cmp DWORD PTR [esi+104], 0
je $LN64@xmlSAX2Att
cmp DWORD PTR [esi+12], 0
je $LN64@xmlSAX2Att
mov eax, DWORD PTR [esi+8]
test eax, eax
je $LN64@xmlSAX2Att
cmp DWORD PTR [eax+44], 0
je $LN64@xmlSAX2Att
; 1357 :
; 1358 : /*
; 1359 : * If we don't substitute entities, the validation should be
; 1360 : * done on a value with replaced entities anyway.
; 1361 : */
; 1362 : if (!ctxt->replaceEntities) {
cmp DWORD PTR [esi+16], 0
jne $LN66@xmlSAX2Att
; 1363 : xmlChar *val;
; 1364 :
; 1365 : ctxt->depth++;
inc DWORD PTR [esi+248]
; 1366 : val = xmlStringDecodeEntities(ctxt, value, XML_SUBSTITUTE_REF,
push 0
push 0
push 0
push 1
push edi
push esi
call _xmlStringDecodeEntities
; 1367 : 0,0,0);
; 1368 : ctxt->depth--;
dec DWORD PTR [esi+248]
add esp, 24 ; 00000018H
mov ecx, DWORD PTR [esi+52]
mov edx, DWORD PTR [esi+8]
mov DWORD PTR _val$1$[ebp], eax
; 1369 :
; 1370 : if (val == NULL)
test eax, eax
jne SHORT $LN68@xmlSAX2Att
; 1371 : ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt,
push edi
push ebx
push ecx
push edx
lea eax, DWORD PTR [esi+108]
push eax
call _xmlValidateOneAttribute
add esp, 20 ; 00000014H
and DWORD PTR [esi+100], eax
jmp $error$109
$LN68@xmlSAX2Att:
; 1372 : ctxt->myDoc, ctxt->node, ret, value);
; 1373 : else {
; 1374 : xmlChar *nvalnorm;
; 1375 :
; 1376 : /*
; 1377 : * Do the last stage of the attribute normalization
; 1378 : * It need to be done twice ... it's an extra burden related
; 1379 : * to the ability to keep xmlSAX2References in attributes
; 1380 : */
; 1381 : nvalnorm = xmlValidNormalizeAttributeValue(ctxt->myDoc,
push eax
push DWORD PTR _fullname$[ebp]
push ecx
push edx
call _xmlValidNormalizeAttributeValue
; 1382 : ctxt->node, fullname, val);
; 1383 : if (nvalnorm != NULL) {
mov edi, DWORD PTR _val$1$[ebp]
add esp, 16 ; 00000010H
mov DWORD PTR _nvalnorm$1$[ebp], eax
test eax, eax
je SHORT $LN70@xmlSAX2Att
; 1384 : xmlFree(val);
push edi
call DWORD PTR _xmlFree
; 1385 : val = nvalnorm;
mov edi, DWORD PTR _nvalnorm$1$[ebp]
add esp, 4
$LN70@xmlSAX2Att:
; 1386 : }
; 1387 :
; 1388 : ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt,
push edi
push ebx
push DWORD PTR [esi+52]
lea eax, DWORD PTR [esi+108]
push DWORD PTR [esi+8]
push eax
call _xmlValidateOneAttribute
and DWORD PTR [esi+100], eax
; 1389 : ctxt->myDoc, ctxt->node, ret, val);
; 1390 : xmlFree(val);
push edi
call DWORD PTR _xmlFree
add esp, 24 ; 00000018H
; 1391 : }
; 1392 : } else {
jmp $error$109
$LN66@xmlSAX2Att:
; 1393 : ctxt->valid &= xmlValidateOneAttribute(&ctxt->vctxt, ctxt->myDoc,
push edi
push ebx
push DWORD PTR [esi+52]
push eax
lea eax, DWORD PTR [esi+108]
push eax
call _xmlValidateOneAttribute
add esp, 20 ; 00000014H
and DWORD PTR [esi+100], eax
; 1394 : ctxt->node, ret, value);
; 1395 : }
; 1396 : } else
jmp $error$109
$LN64@xmlSAX2Att:
; 1397 : #endif /* LIBXML_VALID_ENABLED */
; 1398 : if (((ctxt->loadsubset & XML_SKIP_IDS) == 0) &&
test BYTE PTR [esi+276], 8
jne $error$109
cmp DWORD PTR [esi+16], 0
jne SHORT $LN91@xmlSAX2Att
cmp DWORD PTR [esi+96], 2
jne SHORT $LN72@xmlSAX2Att
jmp $error$109
$LN91@xmlSAX2Att:
cmp DWORD PTR [esi+216], 0
jne $error$109
$LN72@xmlSAX2Att:
; 1399 : (((ctxt->replaceEntities == 0) && (ctxt->external != 2)) ||
; 1400 : ((ctxt->replaceEntities != 0) && (ctxt->inSubset == 0)))) {
; 1401 : /*
; 1402 : * when validating, the ID registration is done at the attribute
; 1403 : * validation level. Otherwise we have to do specific handling here.
; 1404 : */
; 1405 : if (xmlStrEqual(fullname, BAD_CAST "xml:id")) {
push OFFSET ??_C@_06IMLNHOMM@xml?3id@
push DWORD PTR _fullname$[ebp]
call _xmlStrEqual
add esp, 8
test eax, eax
je SHORT $LN74@xmlSAX2Att
; 1406 : /*
; 1407 : * Add the xml:id value
; 1408 : *
; 1409 : * Open issue: normalization of the value.
; 1410 : */
; 1411 : if (xmlValidateNCName(value, 1) != 0) {
push 1
push edi
call _xmlValidateNCName
add esp, 8
test eax, eax
je SHORT $LN76@xmlSAX2Att
; 1412 : xmlErrValid(ctxt, XML_DTD_XMLID_VALUE,
push 0
push edi
push OFFSET ??_C@_0CO@CCGEJOB@xml?3id?5?3?5attribute?5value?5?$CFs?5is?5@
push 539 ; 0000021bH
push esi
call _xmlErrValid
add esp, 20 ; 00000014H
$LN76@xmlSAX2Att:
; 1413 : "xml:id : attribute value %s is not an NCName\n",
; 1414 : (const char *) value, NULL);
; 1415 : }
; 1416 : xmlAddID(&ctxt->vctxt, ctxt->myDoc, value, ret);
push ebx
push edi
push DWORD PTR [esi+8]
lea eax, DWORD PTR [esi+108]
push eax
call _xmlAddID
jmp SHORT $LN107@xmlSAX2Att
$LN74@xmlSAX2Att:
; 1417 : } else if (xmlIsID(ctxt->myDoc, ctxt->node, ret))
push ebx
push DWORD PTR [esi+52]
push DWORD PTR [esi+8]
call _xmlIsID
mov ecx, DWORD PTR [esi+8]
add esp, 12 ; 0000000cH
push ebx
test eax, eax
je SHORT $LN77@xmlSAX2Att
; 1418 : xmlAddID(&ctxt->vctxt, ctxt->myDoc, value, ret);
push edi
push ecx
lea eax, DWORD PTR [esi+108]
push eax
call _xmlAddID
jmp SHORT $LN107@xmlSAX2Att
$LN77@xmlSAX2Att:
; 1419 : else if (xmlIsRef(ctxt->myDoc, ctxt->node, ret))
push DWORD PTR [esi+52]
push ecx
call _xmlIsRef
add esp, 12 ; 0000000cH
test eax, eax
je SHORT $error$109
; 1420 : xmlAddRef(&ctxt->vctxt, ctxt->myDoc, value, ret);
push ebx
push edi
push DWORD PTR [esi+8]
lea eax, DWORD PTR [esi+108]
push eax
call _xmlAddRef
$LN107@xmlSAX2Att:
; 1421 : }
; 1422 :
; 1423 : error:
; 1424 : if (nval != NULL)
add esp, 16 ; 00000010H
$error$109:
mov eax, DWORD PTR _nval$1$[ebp]
test eax, eax
je SHORT $LN80@xmlSAX2Att
; 1425 : xmlFree(nval);
push eax
call DWORD PTR _xmlFree
add esp, 4
; 1426 : if (ns != NULL)
; 1427 : xmlFree(ns);
jmp SHORT $LN80@xmlSAX2Att
$LN92@xmlSAX2Att:
; 1133 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElement");
push OFFSET ??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@
push esi
call _xmlSAX2ErrMemory
add esp, 8
$LN80@xmlSAX2Att:
; 1428 : }
mov eax, DWORD PTR _ns$[ebp]
$LN106@xmlSAX2Att:
test eax, eax
$LN105@xmlSAX2Att:
je SHORT $LN81@xmlSAX2Att
push eax
call DWORD PTR _xmlFree
add esp, 4
$LN81@xmlSAX2Att:
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
_xmlSAX2AttributeInternal ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlNsWarnMsg
_TEXT SEGMENT
_ctxt$ = 8 ; size = 4
_error$ = 12 ; size = 4
_msg$ = 16 ; size = 4
_str1$ = 20 ; size = 4
_str2$ = 24 ; size = 4
_xmlNsWarnMsg PROC ; COMDAT
; 220 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov edx, DWORD PTR _ctxt$[ebp]
mov esi, DWORD PTR _error$[ebp]
test edx, edx
je SHORT $LN3@xmlNsWarnM
; 221 : if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
cmp DWORD PTR [edx+212], 0
je SHORT $LN2@xmlNsWarnM
cmp DWORD PTR [edx+172], -1
je SHORT $LN1@xmlNsWarnM
$LN2@xmlNsWarnM:
; 222 : (ctxt->instate == XML_PARSER_EOF))
; 223 : return;
; 224 : if (ctxt != NULL)
; 225 : ctxt->errNo = error;
mov DWORD PTR [edx+84], esi
$LN3@xmlNsWarnM:
; 226 : __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_NAMESPACE, error,
mov ecx, DWORD PTR _str2$[ebp]
mov eax, DWORD PTR _str1$[ebp]
push ecx
push eax
push DWORD PTR _msg$[ebp]
push 0
push 0
push 0
push ecx
push eax
push 0
push 0
push 1
push esi
push 3
push 0
push edx
push 0
push 0
push 0
call ___xmlRaiseError
add esp, 72 ; 00000048H
$LN1@xmlNsWarnM:
pop esi
; 227 : XML_ERR_WARNING, NULL, 0,
; 228 : (const char *) str1, (const char *) str2,
; 229 : NULL, 0, 0, msg, str1, str2);
; 230 : }
pop ebp
ret 0
_xmlNsWarnMsg ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlNsErrMsg
_TEXT SEGMENT
_ctxt$ = 8 ; size = 4
_error$ = 12 ; size = 4
_msg$ = 16 ; size = 4
_str1$ = 20 ; size = 4
_str2$ = 24 ; size = 4
_xmlNsErrMsg PROC ; COMDAT
; 196 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov edx, DWORD PTR _ctxt$[ebp]
mov esi, DWORD PTR _error$[ebp]
test edx, edx
je SHORT $LN3@xmlNsErrMs
; 197 : if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
cmp DWORD PTR [edx+212], 0
je SHORT $LN2@xmlNsErrMs
cmp DWORD PTR [edx+172], -1
je SHORT $LN1@xmlNsErrMs
$LN2@xmlNsErrMs:
; 198 : (ctxt->instate == XML_PARSER_EOF))
; 199 : return;
; 200 : if (ctxt != NULL)
; 201 : ctxt->errNo = error;
mov DWORD PTR [edx+84], esi
$LN3@xmlNsErrMs:
; 202 : __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_NAMESPACE, error,
mov ecx, DWORD PTR _str2$[ebp]
mov eax, DWORD PTR _str1$[ebp]
push ecx
push eax
push DWORD PTR _msg$[ebp]
push 0
push 0
push 0
push ecx
push eax
push 0
push 0
push 2
push esi
push 3
push 0
push edx
push 0
push 0
push 0
call ___xmlRaiseError
add esp, 72 ; 00000048H
$LN1@xmlNsErrMs:
pop esi
; 203 : XML_ERR_ERROR, NULL, 0,
; 204 : (const char *) str1, (const char *) str2,
; 205 : NULL, 0, 0, msg, str1, str2);
; 206 : }
pop ebp
ret 0
_xmlNsErrMsg ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlWarnMsg
_TEXT SEGMENT
_ctxt$ = 8 ; size = 4
_error$ = 12 ; size = 4
_msg$ = 16 ; size = 4
_str1$ = 20 ; size = 4
_xmlWarnMsg PROC ; COMDAT
; 171 : {
push ebp
mov ebp, esp
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov ecx, DWORD PTR _ctxt$[ebp]
mov edx, DWORD PTR _error$[ebp]
test ecx, ecx
je SHORT $LN3@xmlWarnMsg
; 172 : if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
cmp DWORD PTR [ecx+212], 0
je SHORT $LN2@xmlWarnMsg
cmp DWORD PTR [ecx+172], -1
je SHORT $LN1@xmlWarnMsg
$LN2@xmlWarnMsg:
; 173 : (ctxt->instate == XML_PARSER_EOF))
; 174 : return;
; 175 : if (ctxt != NULL)
; 176 : ctxt->errNo = error;
mov DWORD PTR [ecx+84], edx
$LN3@xmlWarnMsg:
; 177 : __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER, error,
mov eax, DWORD PTR _str1$[ebp]
push eax
push DWORD PTR _msg$[ebp]
push 0
push 0
push 0
push 0
push eax
push 0
push 0
push 1
push edx
push 1
push 0
push ecx
push 0
push 0
push 0
call ___xmlRaiseError
add esp, 68 ; 00000044H
$LN1@xmlWarnMsg:
; 178 : XML_ERR_WARNING, NULL, 0,
; 179 : (const char *) str1, NULL,
; 180 : NULL, 0, 0, msg, str1);
; 181 : }
pop ebp
ret 0
_xmlWarnMsg ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlFatalErrMsg
_TEXT SEGMENT
_ctxt$ = 8 ; size = 4
_error$ = 12 ; size = 4
_msg$ = 16 ; size = 4
_str1$ = 20 ; size = 4
_str2$ = 24 ; size = 4
_xmlFatalErrMsg PROC ; COMDAT
; 140 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctxt$[ebp]
mov edx, DWORD PTR _error$[ebp]
test esi, esi
je SHORT $LN3@xmlFatalEr
; 141 : if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
cmp DWORD PTR [esi+212], 0
je SHORT $LN2@xmlFatalEr
cmp DWORD PTR [esi+172], -1
je SHORT $LN5@xmlFatalEr
$LN2@xmlFatalEr:
; 142 : (ctxt->instate == XML_PARSER_EOF))
; 143 : return;
; 144 : if (ctxt != NULL)
; 145 : ctxt->errNo = error;
mov DWORD PTR [esi+84], edx
$LN3@xmlFatalEr:
; 146 : __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER, error,
mov ecx, DWORD PTR _str2$[ebp]
mov eax, DWORD PTR _str1$[ebp]
push ecx
push eax
push DWORD PTR _msg$[ebp]
push 0
push 0
push 0
push ecx
push eax
push 0
push 0
push 3
push edx
push 1
push 0
push esi
push 0
push 0
push 0
call ___xmlRaiseError
add esp, 72 ; 00000048H
; 147 : XML_ERR_FATAL, NULL, 0,
; 148 : (const char *) str1, (const char *) str2,
; 149 : NULL, 0, 0, msg, str1, str2);
; 150 : if (ctxt != NULL) {
test esi, esi
je SHORT $LN5@xmlFatalEr
; 151 : ctxt->wellFormed = 0;
; 152 : ctxt->valid = 0;
; 153 : if (ctxt->recovery == 0)
cmp DWORD PTR [esi+288], 0
mov DWORD PTR [esi+12], 0
mov DWORD PTR [esi+100], 0
jne SHORT $LN5@xmlFatalEr
; 154 : ctxt->disableSAX = 1;
mov DWORD PTR [esi+212], 1
$LN5@xmlFatalEr:
pop esi
; 155 : }
; 156 : }
pop ebp
ret 0
_xmlFatalErrMsg ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlErrValid
_TEXT SEGMENT
_ctxt$ = 8 ; size = 4
_error$ = 12 ; size = 4
_msg$ = 16 ; size = 4
_str1$ = 20 ; size = 4
_str2$ = 24 ; size = 4
_xmlErrValid PROC ; COMDAT
; 100 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctxt$[ebp]
xor edx, edx
test esi, esi
je SHORT $LN3@xmlErrVali
; 101 : xmlStructuredErrorFunc schannel = NULL;
; 102 :
; 103 : if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
cmp DWORD PTR [esi+212], edx
je SHORT $LN2@xmlErrVali
cmp DWORD PTR [esi+172], -1
je $LN4@xmlErrVali
$LN2@xmlErrVali:
; 104 : (ctxt->instate == XML_PARSER_EOF))
; 105 : return;
; 106 : if (ctxt != NULL) {
; 107 : ctxt->errNo = error;
; 108 : if ((ctxt->sax != NULL) && (ctxt->sax->initialized == XML_SAX2_MAGIC))
mov eax, DWORD PTR [esi]
push edi
mov edi, DWORD PTR _error$[ebp]
mov DWORD PTR [esi+84], edi
test eax, eax
je SHORT $LN5@xmlErrVali
cmp DWORD PTR [eax+108], -554844497 ; deedbeafH
jne SHORT $LN5@xmlErrVali
; 109 : schannel = ctxt->sax->serror;
mov edx, DWORD PTR [eax+124]
$LN5@xmlErrVali:
; 110 : __xmlRaiseError(schannel,
mov ecx, DWORD PTR _str2$[ebp]
mov eax, DWORD PTR _str1$[ebp]
push ecx
push eax
push DWORD PTR _msg$[ebp]
push 0
push 0
push 0
push ecx
push eax
push 0
push 0
push 2
push edi
push 4
push 0
push esi
push DWORD PTR [esi+108]
push DWORD PTR [esi+112]
push edx
call ___xmlRaiseError
add esp, 72 ; 00000048H
; 111 : ctxt->vctxt.error, ctxt->vctxt.userData,
; 112 : ctxt, NULL, XML_FROM_DTD, error,
; 113 : XML_ERR_ERROR, NULL, 0, (const char *) str1,
; 114 : (const char *) str2, NULL, 0, 0,
; 115 : msg, (const char *) str1, (const char *) str2);
; 116 : ctxt->valid = 0;
mov DWORD PTR [esi+100], 0
pop edi
pop esi
; 119 : NULL, NULL,
; 120 : ctxt, NULL, XML_FROM_DTD, error,
; 121 : XML_ERR_ERROR, NULL, 0, (const char *) str1,
; 122 : (const char *) str2, NULL, 0, 0,
; 123 : msg, (const char *) str1, (const char *) str2);
; 124 : }
; 125 : }
pop ebp
ret 0
$LN3@xmlErrVali:
; 117 : } else {
; 118 : __xmlRaiseError(schannel,
mov ecx, DWORD PTR _str2$[ebp]
mov eax, DWORD PTR _str1$[ebp]
push ecx
push eax
push DWORD PTR _msg$[ebp]
push 0
push 0
push 0
push ecx
push eax
push 0
push 0
push 2
push DWORD PTR _error$[ebp]
push 4
push 0
push 0
push 0
push 0
push 0
call ___xmlRaiseError
add esp, 72 ; 00000048H
$LN4@xmlErrVali:
pop esi
; 119 : NULL, NULL,
; 120 : ctxt, NULL, XML_FROM_DTD, error,
; 121 : XML_ERR_ERROR, NULL, 0, (const char *) str1,
; 122 : (const char *) str2, NULL, 0, 0,
; 123 : msg, (const char *) str1, (const char *) str2);
; 124 : }
; 125 : }
pop ebp
ret 0
_xmlErrValid ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2ErrMemory
_TEXT SEGMENT
_ctxt$ = 8 ; size = 4
_msg$ = 12 ; size = 4
_xmlSAX2ErrMemory PROC ; COMDAT
; 60 : xmlSAX2ErrMemory(xmlParserCtxtPtr ctxt, const char *msg) {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctxt$[ebp]
xor ecx, ecx
test esi, esi
je SHORT $LN2@xmlSAX2Err
; 61 : xmlStructuredErrorFunc schannel = NULL;
; 62 : const char *str1 = "out of memory\n";
; 63 :
; 64 : if (ctxt != NULL) {
; 65 : ctxt->errNo = XML_ERR_NO_MEMORY;
mov eax, DWORD PTR [esi]
mov DWORD PTR [esi+84], 2
; 66 : if ((ctxt->sax != NULL) && (ctxt->sax->initialized == XML_SAX2_MAGIC))
test eax, eax
je SHORT $LN4@xmlSAX2Err
cmp DWORD PTR [eax+108], -554844497 ; deedbeafH
jne SHORT $LN4@xmlSAX2Err
; 67 : schannel = ctxt->sax->serror;
mov ecx, DWORD PTR [eax+124]
$LN4@xmlSAX2Err:
; 68 : __xmlRaiseError(schannel,
push 0
push OFFSET ??_C@_0P@PCJPAHLM@out?5of?5memory?6@
push DWORD PTR _msg$[ebp]
push 0
push 0
push 0
push 0
push OFFSET ??_C@_0P@PCJPAHLM@out?5of?5memory?6@
push 0
push 0
push 2
push 2
push 1
push 0
push esi
push DWORD PTR [esi+108]
push DWORD PTR [esi+112]
push ecx
call ___xmlRaiseError
; 79 : NULL, NULL,
; 80 : ctxt, NULL, XML_FROM_PARSER, XML_ERR_NO_MEMORY,
; 81 : XML_ERR_ERROR, NULL, 0, (const char *) str1,
; 82 : NULL, NULL, 0, 0,
; 83 : msg, (const char *) str1, NULL);
; 84 : }
; 85 : }
add esp, 72 ; 00000048H
mov DWORD PTR [esi+84], 2
mov DWORD PTR [esi+172], -1
mov DWORD PTR [esi+212], 1
pop esi
pop ebp
ret 0
$LN2@xmlSAX2Err:
; 69 : ctxt->vctxt.error, ctxt->vctxt.userData,
; 70 : ctxt, NULL, XML_FROM_PARSER, XML_ERR_NO_MEMORY,
; 71 : XML_ERR_ERROR, NULL, 0, (const char *) str1,
; 72 : NULL, NULL, 0, 0,
; 73 : msg, (const char *) str1, NULL);
; 74 : ctxt->errNo = XML_ERR_NO_MEMORY;
; 75 : ctxt->instate = XML_PARSER_EOF;
; 76 : ctxt->disableSAX = 1;
; 77 : } else {
; 78 : __xmlRaiseError(schannel,
push 0
push OFFSET ??_C@_0P@PCJPAHLM@out?5of?5memory?6@
push DWORD PTR _msg$[ebp]
push 0
push 0
push 0
push 0
push OFFSET ??_C@_0P@PCJPAHLM@out?5of?5memory?6@
push 0
push 0
push 2
push 2
push 1
push 0
push 0
push 0
push 0
push 0
call ___xmlRaiseError
; 79 : NULL, NULL,
; 80 : ctxt, NULL, XML_FROM_PARSER, XML_ERR_NO_MEMORY,
; 81 : XML_ERR_ERROR, NULL, 0, (const char *) str1,
; 82 : NULL, NULL, 0, 0,
; 83 : msg, (const char *) str1, NULL);
; 84 : }
; 85 : }
add esp, 72 ; 00000048H
pop esi
pop ebp
ret 0
_xmlSAX2ErrMemory ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlDefaultSAXHandlerInit
_TEXT SEGMENT
_xmlDefaultSAXHandlerInit PROC ; COMDAT
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
push 1
call ___xmlDefaultSAXHandler
push eax
call _xmlSAXVersion
add esp, 8
ret 0
_xmlDefaultSAXHandlerInit ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _docbDefaultSAXHandlerInit
_TEXT SEGMENT
_docbDefaultSAXHandlerInit PROC ; COMDAT
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
call ___docbDefaultSAXHandler
push eax
call _xmlSAX2InitDocbDefaultSAXHandler
pop ecx
ret 0
_docbDefaultSAXHandlerInit ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2InitDocbDefaultSAXHandler
_TEXT SEGMENT
_hdlr$ = 8 ; size = 4
_xmlSAX2InitDocbDefaultSAXHandler PROC ; COMDAT
; 3014 : {
push ebp
mov ebp, esp
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _hdlr$[ebp]
test eax, eax
je $LN3@xmlSAX2Ini
; 3015 : if ((hdlr == NULL) || (hdlr->initialized != 0))
cmp DWORD PTR [eax+108], 0
jne $LN3@xmlSAX2Ini
; 3016 : return;
; 3017 :
; 3018 : hdlr->internalSubset = xmlSAX2InternalSubset;
mov DWORD PTR [eax], OFFSET _xmlSAX2InternalSubset
; 3019 : hdlr->externalSubset = NULL;
mov DWORD PTR [eax+104], 0
; 3020 : hdlr->isStandalone = xmlSAX2IsStandalone;
mov DWORD PTR [eax+4], OFFSET _xmlSAX2IsStandalone
; 3021 : hdlr->hasInternalSubset = xmlSAX2HasInternalSubset;
mov DWORD PTR [eax+8], OFFSET _xmlSAX2HasInternalSubset
; 3022 : hdlr->hasExternalSubset = xmlSAX2HasExternalSubset;
mov DWORD PTR [eax+12], OFFSET _xmlSAX2HasExternalSubset
; 3023 : hdlr->resolveEntity = xmlSAX2ResolveEntity;
mov DWORD PTR [eax+16], OFFSET _xmlSAX2ResolveEntity
; 3024 : hdlr->getEntity = xmlSAX2GetEntity;
mov DWORD PTR [eax+20], OFFSET _xmlSAX2GetEntity
; 3025 : hdlr->getParameterEntity = NULL;
mov DWORD PTR [eax+96], 0
; 3026 : hdlr->entityDecl = xmlSAX2EntityDecl;
mov DWORD PTR [eax+24], OFFSET _xmlSAX2EntityDecl
; 3027 : hdlr->attributeDecl = NULL;
mov DWORD PTR [eax+32], 0
; 3028 : hdlr->elementDecl = NULL;
mov DWORD PTR [eax+36], 0
; 3029 : hdlr->notationDecl = NULL;
mov DWORD PTR [eax+28], 0
; 3030 : hdlr->unparsedEntityDecl = NULL;
mov DWORD PTR [eax+40], 0
; 3031 : hdlr->setDocumentLocator = xmlSAX2SetDocumentLocator;
mov DWORD PTR [eax+44], OFFSET _xmlSAX2SetDocumentLocator
; 3032 : hdlr->startDocument = xmlSAX2StartDocument;
mov DWORD PTR [eax+48], OFFSET _xmlSAX2StartDocument
; 3033 : hdlr->endDocument = xmlSAX2EndDocument;
mov DWORD PTR [eax+52], OFFSET _xmlSAX2EndDocument
; 3034 : hdlr->startElement = xmlSAX2StartElement;
mov DWORD PTR [eax+56], OFFSET _xmlSAX2StartElement
; 3035 : hdlr->endElement = xmlSAX2EndElement;
mov DWORD PTR [eax+60], OFFSET _xmlSAX2EndElement
; 3036 : hdlr->reference = xmlSAX2Reference;
mov DWORD PTR [eax+64], OFFSET _xmlSAX2Reference
; 3037 : hdlr->characters = xmlSAX2Characters;
mov DWORD PTR [eax+68], OFFSET _xmlSAX2Characters
; 3038 : hdlr->cdataBlock = NULL;
mov DWORD PTR [eax+100], 0
; 3039 : hdlr->ignorableWhitespace = xmlSAX2IgnorableWhitespace;
mov DWORD PTR [eax+72], OFFSET _xmlSAX2IgnorableWhitespace
; 3040 : hdlr->processingInstruction = NULL;
mov DWORD PTR [eax+76], 0
; 3041 : hdlr->comment = xmlSAX2Comment;
mov DWORD PTR [eax+80], OFFSET _xmlSAX2Comment
; 3042 : hdlr->warning = xmlParserWarning;
mov DWORD PTR [eax+84], OFFSET _xmlParserWarning
; 3043 : hdlr->error = xmlParserError;
mov DWORD PTR [eax+88], OFFSET _xmlParserError
; 3044 : hdlr->fatalError = xmlParserError;
mov DWORD PTR [eax+92], OFFSET _xmlParserError
; 3045 :
; 3046 : hdlr->initialized = 1;
mov DWORD PTR [eax+108], 1
$LN3@xmlSAX2Ini:
; 3047 : }
pop ebp
ret 0
_xmlSAX2InitDocbDefaultSAXHandler ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _htmlDefaultSAXHandlerInit
_TEXT SEGMENT
_htmlDefaultSAXHandlerInit PROC ; COMDAT
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
call ___htmlDefaultSAXHandler
push eax
call _xmlSAX2InitHtmlDefaultSAXHandler
pop ecx
ret 0
_htmlDefaultSAXHandlerInit ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2InitHtmlDefaultSAXHandler
_TEXT SEGMENT
_hdlr$ = 8 ; size = 4
_xmlSAX2InitHtmlDefaultSAXHandler PROC ; COMDAT
; 2956 : {
push ebp
mov ebp, esp
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _hdlr$[ebp]
test eax, eax
je $LN3@xmlSAX2Ini
; 2957 : if ((hdlr == NULL) || (hdlr->initialized != 0))
cmp DWORD PTR [eax+108], 0
jne $LN3@xmlSAX2Ini
; 2958 : return;
; 2959 :
; 2960 : hdlr->internalSubset = xmlSAX2InternalSubset;
mov DWORD PTR [eax], OFFSET _xmlSAX2InternalSubset
; 2961 : hdlr->externalSubset = NULL;
mov DWORD PTR [eax+104], 0
; 2962 : hdlr->isStandalone = NULL;
mov DWORD PTR [eax+4], 0
; 2963 : hdlr->hasInternalSubset = NULL;
mov DWORD PTR [eax+8], 0
; 2964 : hdlr->hasExternalSubset = NULL;
mov DWORD PTR [eax+12], 0
; 2965 : hdlr->resolveEntity = NULL;
mov DWORD PTR [eax+16], 0
; 2966 : hdlr->getEntity = xmlSAX2GetEntity;
mov DWORD PTR [eax+20], OFFSET _xmlSAX2GetEntity
; 2967 : hdlr->getParameterEntity = NULL;
mov DWORD PTR [eax+96], 0
; 2968 : hdlr->entityDecl = NULL;
mov DWORD PTR [eax+24], 0
; 2969 : hdlr->attributeDecl = NULL;
mov DWORD PTR [eax+32], 0
; 2970 : hdlr->elementDecl = NULL;
mov DWORD PTR [eax+36], 0
; 2971 : hdlr->notationDecl = NULL;
mov DWORD PTR [eax+28], 0
; 2972 : hdlr->unparsedEntityDecl = NULL;
mov DWORD PTR [eax+40], 0
; 2973 : hdlr->setDocumentLocator = xmlSAX2SetDocumentLocator;
mov DWORD PTR [eax+44], OFFSET _xmlSAX2SetDocumentLocator
; 2974 : hdlr->startDocument = xmlSAX2StartDocument;
mov DWORD PTR [eax+48], OFFSET _xmlSAX2StartDocument
; 2975 : hdlr->endDocument = xmlSAX2EndDocument;
mov DWORD PTR [eax+52], OFFSET _xmlSAX2EndDocument
; 2976 : hdlr->startElement = xmlSAX2StartElement;
mov DWORD PTR [eax+56], OFFSET _xmlSAX2StartElement
; 2977 : hdlr->endElement = xmlSAX2EndElement;
mov DWORD PTR [eax+60], OFFSET _xmlSAX2EndElement
; 2978 : hdlr->reference = NULL;
mov DWORD PTR [eax+64], 0
; 2979 : hdlr->characters = xmlSAX2Characters;
mov DWORD PTR [eax+68], OFFSET _xmlSAX2Characters
; 2980 : hdlr->cdataBlock = xmlSAX2CDataBlock;
mov DWORD PTR [eax+100], OFFSET _xmlSAX2CDataBlock
; 2981 : hdlr->ignorableWhitespace = xmlSAX2IgnorableWhitespace;
mov DWORD PTR [eax+72], OFFSET _xmlSAX2IgnorableWhitespace
; 2982 : hdlr->processingInstruction = xmlSAX2ProcessingInstruction;
mov DWORD PTR [eax+76], OFFSET _xmlSAX2ProcessingInstruction
; 2983 : hdlr->comment = xmlSAX2Comment;
mov DWORD PTR [eax+80], OFFSET _xmlSAX2Comment
; 2984 : hdlr->warning = xmlParserWarning;
mov DWORD PTR [eax+84], OFFSET _xmlParserWarning
; 2985 : hdlr->error = xmlParserError;
mov DWORD PTR [eax+88], OFFSET _xmlParserError
; 2986 : hdlr->fatalError = xmlParserError;
mov DWORD PTR [eax+92], OFFSET _xmlParserError
; 2987 :
; 2988 : hdlr->initialized = 1;
mov DWORD PTR [eax+108], 1
$LN3@xmlSAX2Ini:
; 2989 : }
pop ebp
ret 0
_xmlSAX2InitHtmlDefaultSAXHandler ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2InitDefaultSAXHandler
_TEXT SEGMENT
_hdlr$ = 8 ; size = 4
_warning$ = 12 ; size = 4
_xmlSAX2InitDefaultSAXHandler PROC ; COMDAT
; 2922 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _hdlr$[ebp]
test esi, esi
je SHORT $LN4@xmlSAX2Ini
; 2923 : if ((hdlr == NULL) || (hdlr->initialized != 0))
cmp DWORD PTR [esi+108], 0
jne SHORT $LN4@xmlSAX2Ini
; 2924 : return;
; 2925 :
; 2926 : xmlSAXVersion(hdlr, xmlSAX2DefaultVersionValue);
push DWORD PTR _xmlSAX2DefaultVersionValue
push esi
call _xmlSAXVersion
; 2927 : if (warning == 0)
xor ecx, ecx
add esp, 8
cmp DWORD PTR _warning$[ebp], ecx
mov eax, OFFSET _xmlParserWarning
cmove eax, ecx
mov DWORD PTR [esi+84], eax
$LN4@xmlSAX2Ini:
pop esi
; 2928 : hdlr->warning = NULL;
; 2929 : else
; 2930 : hdlr->warning = xmlParserWarning;
; 2931 : }
pop ebp
ret 0
_xmlSAX2InitDefaultSAXHandler ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAXVersion
_TEXT SEGMENT
_hdlr$ = 8 ; size = 4
_version$ = 12 ; size = 4
_xmlSAXVersion PROC ; COMDAT
; 2867 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _hdlr$[ebp]
test eax, eax
je $LN5@xmlSAXVers
; 2868 : if (hdlr == NULL) return(-1);
; 2869 : if (version == 2) {
mov ecx, DWORD PTR _version$[ebp]
cmp ecx, 2
jne SHORT $LN3@xmlSAXVers
; 2870 : hdlr->startElement = NULL;
; 2871 : hdlr->endElement = NULL;
; 2872 : hdlr->startElementNs = xmlSAX2StartElementNs;
; 2873 : hdlr->endElementNs = xmlSAX2EndElementNs;
; 2874 : hdlr->serror = NULL;
; 2875 : hdlr->initialized = XML_SAX2_MAGIC;
xor edx, edx
mov DWORD PTR [eax+116], OFFSET _xmlSAX2StartElementNs
mov DWORD PTR [eax+120], OFFSET _xmlSAX2EndElementNs
mov ecx, -554844497 ; deedbeafH
mov DWORD PTR [eax+124], 0
xor esi, esi
jmp SHORT $LN6@xmlSAXVers
$LN3@xmlSAXVers:
; 2876 : #ifdef LIBXML_SAX1_ENABLED
; 2877 : } else if (version == 1) {
cmp ecx, 1
jne $LN5@xmlSAXVers
; 2878 : hdlr->startElement = xmlSAX2StartElement;
; 2879 : hdlr->endElement = xmlSAX2EndElement;
; 2880 : hdlr->initialized = 1;
mov edx, OFFSET _xmlSAX2EndElement
mov esi, OFFSET _xmlSAX2StartElement
$LN6@xmlSAXVers:
; 2884 : hdlr->internalSubset = xmlSAX2InternalSubset;
mov DWORD PTR [eax+56], esi
mov DWORD PTR [eax+60], edx
mov DWORD PTR [eax+108], ecx
mov DWORD PTR [eax], OFFSET _xmlSAX2InternalSubset
; 2885 : hdlr->externalSubset = xmlSAX2ExternalSubset;
mov DWORD PTR [eax+104], OFFSET _xmlSAX2ExternalSubset
; 2886 : hdlr->isStandalone = xmlSAX2IsStandalone;
mov DWORD PTR [eax+4], OFFSET _xmlSAX2IsStandalone
; 2887 : hdlr->hasInternalSubset = xmlSAX2HasInternalSubset;
mov DWORD PTR [eax+8], OFFSET _xmlSAX2HasInternalSubset
; 2888 : hdlr->hasExternalSubset = xmlSAX2HasExternalSubset;
mov DWORD PTR [eax+12], OFFSET _xmlSAX2HasExternalSubset
; 2889 : hdlr->resolveEntity = xmlSAX2ResolveEntity;
mov DWORD PTR [eax+16], OFFSET _xmlSAX2ResolveEntity
; 2890 : hdlr->getEntity = xmlSAX2GetEntity;
mov DWORD PTR [eax+20], OFFSET _xmlSAX2GetEntity
; 2891 : hdlr->getParameterEntity = xmlSAX2GetParameterEntity;
mov DWORD PTR [eax+96], OFFSET _xmlSAX2GetParameterEntity
; 2892 : hdlr->entityDecl = xmlSAX2EntityDecl;
mov DWORD PTR [eax+24], OFFSET _xmlSAX2EntityDecl
; 2893 : hdlr->attributeDecl = xmlSAX2AttributeDecl;
mov DWORD PTR [eax+32], OFFSET _xmlSAX2AttributeDecl
; 2894 : hdlr->elementDecl = xmlSAX2ElementDecl;
mov DWORD PTR [eax+36], OFFSET _xmlSAX2ElementDecl
; 2895 : hdlr->notationDecl = xmlSAX2NotationDecl;
mov DWORD PTR [eax+28], OFFSET _xmlSAX2NotationDecl
; 2896 : hdlr->unparsedEntityDecl = xmlSAX2UnparsedEntityDecl;
mov DWORD PTR [eax+40], OFFSET _xmlSAX2UnparsedEntityDecl
; 2897 : hdlr->setDocumentLocator = xmlSAX2SetDocumentLocator;
mov DWORD PTR [eax+44], OFFSET _xmlSAX2SetDocumentLocator
; 2898 : hdlr->startDocument = xmlSAX2StartDocument;
mov DWORD PTR [eax+48], OFFSET _xmlSAX2StartDocument
; 2899 : hdlr->endDocument = xmlSAX2EndDocument;
mov DWORD PTR [eax+52], OFFSET _xmlSAX2EndDocument
; 2900 : hdlr->reference = xmlSAX2Reference;
mov DWORD PTR [eax+64], OFFSET _xmlSAX2Reference
; 2901 : hdlr->characters = xmlSAX2Characters;
mov DWORD PTR [eax+68], OFFSET _xmlSAX2Characters
; 2902 : hdlr->cdataBlock = xmlSAX2CDataBlock;
mov DWORD PTR [eax+100], OFFSET _xmlSAX2CDataBlock
; 2903 : hdlr->ignorableWhitespace = xmlSAX2Characters;
mov DWORD PTR [eax+72], OFFSET _xmlSAX2Characters
; 2904 : hdlr->processingInstruction = xmlSAX2ProcessingInstruction;
mov DWORD PTR [eax+76], OFFSET _xmlSAX2ProcessingInstruction
; 2905 : hdlr->comment = xmlSAX2Comment;
mov DWORD PTR [eax+80], OFFSET _xmlSAX2Comment
; 2906 : hdlr->warning = xmlParserWarning;
mov DWORD PTR [eax+84], OFFSET _xmlParserWarning
; 2907 : hdlr->error = xmlParserError;
mov DWORD PTR [eax+88], OFFSET _xmlParserError
; 2908 : hdlr->fatalError = xmlParserError;
mov DWORD PTR [eax+92], OFFSET _xmlParserError
; 2909 :
; 2910 : return(0);
xor eax, eax
pop esi
; 2911 : }
pop ebp
ret 0
$LN5@xmlSAXVers:
; 2881 : #endif /* LIBXML_SAX1_ENABLED */
; 2882 : } else
; 2883 : return(-1);
or eax, -1
pop esi
; 2911 : }
pop ebp
ret 0
_xmlSAXVersion ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAXDefaultVersion
_TEXT SEGMENT
_version$ = 8 ; size = 4
_xmlSAXDefaultVersion PROC ; COMDAT
; 2846 : {
push ebp
mov ebp, esp
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _version$[ebp]
mov ecx, DWORD PTR _xmlSAX2DefaultVersionValue
cmp eax, 1
je SHORT $LN2@xmlSAXDefa
; 2847 : int ret = xmlSAX2DefaultVersionValue;
; 2848 :
; 2849 : if ((version != 1) && (version != 2))
cmp eax, 2
je SHORT $LN2@xmlSAXDefa
; 2850 : return(-1);
or eax, -1
; 2853 : }
pop ebp
ret 0
$LN2@xmlSAXDefa:
; 2851 : xmlSAX2DefaultVersionValue = version;
mov DWORD PTR _xmlSAX2DefaultVersionValue, eax
; 2852 : return(ret);
mov eax, ecx
; 2853 : }
pop ebp
ret 0
_xmlSAXDefaultVersion ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2CDataBlock
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_value$ = 12 ; size = 4
_len$ = 16 ; size = 4
_xmlSAX2CDataBlock PROC ; COMDAT
; 2805 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
test esi, esi
je SHORT $LN5@xmlSAX2CDa
; 2806 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 2807 : xmlNodePtr ret, lastChild;
; 2808 :
; 2809 : if (ctx == NULL) return;
; 2810 : #ifdef DEBUG_SAX
; 2811 : xmlGenericError(xmlGenericErrorContext,
; 2812 : "SAX.pcdata(%.10s, %d)\n", value, len);
; 2813 : #endif
; 2814 : lastChild = xmlGetLastChild(ctxt->node);
push DWORD PTR [esi+52]
call _xmlGetLastChild
add esp, 4
; 2815 : #ifdef DEBUG_SAX_TREE
; 2816 : xmlGenericError(xmlGenericErrorContext,
; 2817 : "add chars to %s \n", ctxt->node->name);
; 2818 : #endif
; 2819 : if ((lastChild != NULL) &&
test eax, eax
je SHORT $LN3@xmlSAX2CDa
cmp DWORD PTR [eax+4], 4
jne SHORT $LN3@xmlSAX2CDa
pop esi
; 2820 : (lastChild->type == XML_CDATA_SECTION_NODE)) {
; 2821 : xmlTextConcat(lastChild, value, len);
mov DWORD PTR _ctx$[ebp], eax
; 2826 : }
; 2827 : }
pop ebp
; 2820 : (lastChild->type == XML_CDATA_SECTION_NODE)) {
; 2821 : xmlTextConcat(lastChild, value, len);
jmp _xmlTextConcat
$LN3@xmlSAX2CDa:
push edi
; 2822 : } else {
; 2823 : ret = xmlNewCDataBlock(ctxt->myDoc, value, len);
push DWORD PTR _len$[ebp]
push DWORD PTR _value$[ebp]
push DWORD PTR [esi+8]
call _xmlNewCDataBlock
mov edi, eax
; 2824 : if (xmlAddChild(ctxt->node, ret) == NULL)
push edi
push DWORD PTR [esi+52]
call _xmlAddChild
add esp, 20 ; 00000014H
test eax, eax
jne SHORT $LN7@xmlSAX2CDa
; 2825 : xmlFreeNode(ret);
push edi
call _xmlFreeNode
add esp, 4
$LN7@xmlSAX2CDa:
pop edi
$LN5@xmlSAX2CDa:
pop esi
; 2826 : }
; 2827 : }
pop ebp
ret 0
_xmlSAX2CDataBlock ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2Comment
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_value$ = 12 ; size = 4
_xmlSAX2Comment PROC ; COMDAT
; 2743 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
test esi, esi
je $LN13@xmlSAX2Com
; 2744 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 2745 : xmlNodePtr ret;
; 2746 : xmlNodePtr parent;
; 2747 :
; 2748 : if (ctx == NULL) return;
; 2749 : parent = ctxt->node;
; 2750 : #ifdef DEBUG_SAX
; 2751 : xmlGenericError(xmlGenericErrorContext, "SAX.xmlSAX2Comment(%s)\n", value);
; 2752 : #endif
; 2753 : ret = xmlNewDocComment(ctxt->myDoc, value);
push edi
push DWORD PTR _value$[ebp]
mov edi, DWORD PTR [esi+52]
push DWORD PTR [esi+8]
call _xmlNewDocComment
add esp, 8
; 2754 : if (ret == NULL) return;
test eax, eax
je SHORT $LN15@xmlSAX2Com
; 2755 : if (ctxt->linenumbers) {
cmp DWORD PTR [esi+280], 0
je SHORT $LN7@xmlSAX2Com
; 2756 : if (ctxt->input != NULL) {
mov ecx, DWORD PTR [esi+36]
test ecx, ecx
je SHORT $LN7@xmlSAX2Com
; 2757 : if (ctxt->input->line < 65535)
mov ecx, DWORD PTR [ecx+28]
cmp ecx, 65535 ; 0000ffffH
jl SHORT $LN16@xmlSAX2Com
; 2758 : ret->line = (short) ctxt->input->line;
; 2759 : else
; 2760 : ret->line = 65535;
mov ecx, 65535 ; 0000ffffH
$LN16@xmlSAX2Com:
; 2761 : }
; 2762 : }
; 2763 :
; 2764 : if (ctxt->inSubset == 1) {
mov WORD PTR [eax+56], cx
$LN7@xmlSAX2Com:
mov ecx, DWORD PTR [esi+216]
push eax
cmp ecx, 1
jne SHORT $LN8@xmlSAX2Com
; 2765 : xmlAddChild((xmlNodePtr) ctxt->myDoc->intSubset, ret);
mov eax, DWORD PTR [esi+8]
push DWORD PTR [eax+44]
$LN18@xmlSAX2Com:
; 2780 : #ifdef DEBUG_SAX_TREE
; 2781 : xmlGenericError(xmlGenericErrorContext,
; 2782 : "adding xmlSAX2Comment child to %s\n", parent->name);
; 2783 : #endif
; 2784 : xmlAddChild(parent, ret);
; 2785 : } else {
; 2786 : #ifdef DEBUG_SAX_TREE
; 2787 : xmlGenericError(xmlGenericErrorContext,
; 2788 : "adding xmlSAX2Comment sibling to ");
; 2789 : xmlDebugDumpOneNode(stderr, parent, 0);
; 2790 : #endif
; 2791 : xmlAddSibling(parent, ret);
call _xmlAddChild
add esp, 8
pop edi
pop esi
; 2792 : }
; 2793 : }
pop ebp
ret 0
$LN8@xmlSAX2Com:
; 2766 : return;
; 2767 : } else if (ctxt->inSubset == 2) {
cmp ecx, 2
jne SHORT $LN10@xmlSAX2Com
; 2768 : xmlAddChild((xmlNodePtr) ctxt->myDoc->extSubset, ret);
mov eax, DWORD PTR [esi+8]
push DWORD PTR [eax+48]
call _xmlAddChild
; 2780 : #ifdef DEBUG_SAX_TREE
; 2781 : xmlGenericError(xmlGenericErrorContext,
; 2782 : "adding xmlSAX2Comment child to %s\n", parent->name);
; 2783 : #endif
; 2784 : xmlAddChild(parent, ret);
; 2785 : } else {
; 2786 : #ifdef DEBUG_SAX_TREE
; 2787 : xmlGenericError(xmlGenericErrorContext,
; 2788 : "adding xmlSAX2Comment sibling to ");
; 2789 : xmlDebugDumpOneNode(stderr, parent, 0);
; 2790 : #endif
; 2791 : xmlAddSibling(parent, ret);
add esp, 8
pop edi
pop esi
; 2792 : }
; 2793 : }
pop ebp
ret 0
$LN10@xmlSAX2Com:
; 2769 : return;
; 2770 : }
; 2771 : if (parent == NULL) {
test edi, edi
jne SHORT $LN11@xmlSAX2Com
; 2772 : #ifdef DEBUG_SAX_TREE
; 2773 : xmlGenericError(xmlGenericErrorContext,
; 2774 : "Setting xmlSAX2Comment as root\n");
; 2775 : #endif
; 2776 : xmlAddChild((xmlNodePtr) ctxt->myDoc, (xmlNodePtr) ret);
push DWORD PTR [esi+8]
call _xmlAddChild
; 2780 : #ifdef DEBUG_SAX_TREE
; 2781 : xmlGenericError(xmlGenericErrorContext,
; 2782 : "adding xmlSAX2Comment child to %s\n", parent->name);
; 2783 : #endif
; 2784 : xmlAddChild(parent, ret);
; 2785 : } else {
; 2786 : #ifdef DEBUG_SAX_TREE
; 2787 : xmlGenericError(xmlGenericErrorContext,
; 2788 : "adding xmlSAX2Comment sibling to ");
; 2789 : xmlDebugDumpOneNode(stderr, parent, 0);
; 2790 : #endif
; 2791 : xmlAddSibling(parent, ret);
add esp, 8
pop edi
pop esi
; 2792 : }
; 2793 : }
pop ebp
ret 0
$LN11@xmlSAX2Com:
; 2777 : return;
; 2778 : }
; 2779 : if (parent->type == XML_ELEMENT_NODE) {
cmp DWORD PTR [edi+4], 1
push edi
je SHORT $LN18@xmlSAX2Com
; 2780 : #ifdef DEBUG_SAX_TREE
; 2781 : xmlGenericError(xmlGenericErrorContext,
; 2782 : "adding xmlSAX2Comment child to %s\n", parent->name);
; 2783 : #endif
; 2784 : xmlAddChild(parent, ret);
; 2785 : } else {
; 2786 : #ifdef DEBUG_SAX_TREE
; 2787 : xmlGenericError(xmlGenericErrorContext,
; 2788 : "adding xmlSAX2Comment sibling to ");
; 2789 : xmlDebugDumpOneNode(stderr, parent, 0);
; 2790 : #endif
; 2791 : xmlAddSibling(parent, ret);
call _xmlAddSibling
add esp, 8
$LN15@xmlSAX2Com:
pop edi
$LN13@xmlSAX2Com:
pop esi
; 2792 : }
; 2793 : }
pop ebp
ret 0
_xmlSAX2Comment ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2ProcessingInstruction
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_target$ = 12 ; size = 4
_data$ = 16 ; size = 4
_xmlSAX2ProcessingInstruction PROC ; COMDAT
; 2680 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
test esi, esi
je $LN13@xmlSAX2Pro
; 2681 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 2682 : xmlNodePtr ret;
; 2683 : xmlNodePtr parent;
; 2684 :
; 2685 : if (ctx == NULL) return;
; 2686 : parent = ctxt->node;
; 2687 : #ifdef DEBUG_SAX
; 2688 : xmlGenericError(xmlGenericErrorContext,
; 2689 : "SAX.xmlSAX2ProcessingInstruction(%s, %s)\n", target, data);
; 2690 : #endif
; 2691 :
; 2692 : ret = xmlNewDocPI(ctxt->myDoc, target, data);
push edi
push DWORD PTR _data$[ebp]
mov edi, DWORD PTR [esi+52]
push DWORD PTR _target$[ebp]
push DWORD PTR [esi+8]
call _xmlNewDocPI
add esp, 12 ; 0000000cH
; 2693 : if (ret == NULL) return;
test eax, eax
je SHORT $LN15@xmlSAX2Pro
; 2694 :
; 2695 : if (ctxt->linenumbers) {
cmp DWORD PTR [esi+280], 0
je SHORT $LN7@xmlSAX2Pro
; 2696 : if (ctxt->input != NULL) {
mov ecx, DWORD PTR [esi+36]
test ecx, ecx
je SHORT $LN7@xmlSAX2Pro
; 2697 : if (ctxt->input->line < 65535)
mov ecx, DWORD PTR [ecx+28]
cmp ecx, 65535 ; 0000ffffH
jl SHORT $LN16@xmlSAX2Pro
; 2698 : ret->line = (short) ctxt->input->line;
; 2699 : else
; 2700 : ret->line = 65535;
mov ecx, 65535 ; 0000ffffH
$LN16@xmlSAX2Pro:
; 2701 : }
; 2702 : }
; 2703 : if (ctxt->inSubset == 1) {
mov WORD PTR [eax+56], cx
$LN7@xmlSAX2Pro:
mov ecx, DWORD PTR [esi+216]
push eax
cmp ecx, 1
jne SHORT $LN8@xmlSAX2Pro
; 2704 : xmlAddChild((xmlNodePtr) ctxt->myDoc->intSubset, ret);
mov eax, DWORD PTR [esi+8]
push DWORD PTR [eax+44]
$LN18@xmlSAX2Pro:
; 2719 : #ifdef DEBUG_SAX_TREE
; 2720 : xmlGenericError(xmlGenericErrorContext,
; 2721 : "adding PI %s child to %s\n", target, parent->name);
; 2722 : #endif
; 2723 : xmlAddChild(parent, ret);
; 2724 : } else {
; 2725 : #ifdef DEBUG_SAX_TREE
; 2726 : xmlGenericError(xmlGenericErrorContext,
; 2727 : "adding PI %s sibling to ", target);
; 2728 : xmlDebugDumpOneNode(stderr, parent, 0);
; 2729 : #endif
; 2730 : xmlAddSibling(parent, ret);
call _xmlAddChild
add esp, 8
pop edi
pop esi
; 2731 : }
; 2732 : }
pop ebp
ret 0
$LN8@xmlSAX2Pro:
; 2705 : return;
; 2706 : } else if (ctxt->inSubset == 2) {
cmp ecx, 2
jne SHORT $LN10@xmlSAX2Pro
; 2707 : xmlAddChild((xmlNodePtr) ctxt->myDoc->extSubset, ret);
mov eax, DWORD PTR [esi+8]
push DWORD PTR [eax+48]
call _xmlAddChild
; 2719 : #ifdef DEBUG_SAX_TREE
; 2720 : xmlGenericError(xmlGenericErrorContext,
; 2721 : "adding PI %s child to %s\n", target, parent->name);
; 2722 : #endif
; 2723 : xmlAddChild(parent, ret);
; 2724 : } else {
; 2725 : #ifdef DEBUG_SAX_TREE
; 2726 : xmlGenericError(xmlGenericErrorContext,
; 2727 : "adding PI %s sibling to ", target);
; 2728 : xmlDebugDumpOneNode(stderr, parent, 0);
; 2729 : #endif
; 2730 : xmlAddSibling(parent, ret);
add esp, 8
pop edi
pop esi
; 2731 : }
; 2732 : }
pop ebp
ret 0
$LN10@xmlSAX2Pro:
; 2708 : return;
; 2709 : }
; 2710 : if (parent == NULL) {
test edi, edi
jne SHORT $LN11@xmlSAX2Pro
; 2711 : #ifdef DEBUG_SAX_TREE
; 2712 : xmlGenericError(xmlGenericErrorContext,
; 2713 : "Setting PI %s as root\n", target);
; 2714 : #endif
; 2715 : xmlAddChild((xmlNodePtr) ctxt->myDoc, (xmlNodePtr) ret);
push DWORD PTR [esi+8]
call _xmlAddChild
; 2719 : #ifdef DEBUG_SAX_TREE
; 2720 : xmlGenericError(xmlGenericErrorContext,
; 2721 : "adding PI %s child to %s\n", target, parent->name);
; 2722 : #endif
; 2723 : xmlAddChild(parent, ret);
; 2724 : } else {
; 2725 : #ifdef DEBUG_SAX_TREE
; 2726 : xmlGenericError(xmlGenericErrorContext,
; 2727 : "adding PI %s sibling to ", target);
; 2728 : xmlDebugDumpOneNode(stderr, parent, 0);
; 2729 : #endif
; 2730 : xmlAddSibling(parent, ret);
add esp, 8
pop edi
pop esi
; 2731 : }
; 2732 : }
pop ebp
ret 0
$LN11@xmlSAX2Pro:
; 2716 : return;
; 2717 : }
; 2718 : if (parent->type == XML_ELEMENT_NODE) {
cmp DWORD PTR [edi+4], 1
push edi
je SHORT $LN18@xmlSAX2Pro
; 2719 : #ifdef DEBUG_SAX_TREE
; 2720 : xmlGenericError(xmlGenericErrorContext,
; 2721 : "adding PI %s child to %s\n", target, parent->name);
; 2722 : #endif
; 2723 : xmlAddChild(parent, ret);
; 2724 : } else {
; 2725 : #ifdef DEBUG_SAX_TREE
; 2726 : xmlGenericError(xmlGenericErrorContext,
; 2727 : "adding PI %s sibling to ", target);
; 2728 : xmlDebugDumpOneNode(stderr, parent, 0);
; 2729 : #endif
; 2730 : xmlAddSibling(parent, ret);
call _xmlAddSibling
add esp, 8
$LN15@xmlSAX2Pro:
pop edi
$LN13@xmlSAX2Pro:
pop esi
; 2731 : }
; 2732 : }
pop ebp
ret 0
_xmlSAX2ProcessingInstruction ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2IgnorableWhitespace
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_ch$ = 12 ; size = 4
_len$ = 16 ; size = 4
_xmlSAX2IgnorableWhitespace PROC ; COMDAT
mov ecx, OFFSET __A8525CDE_sax2@c
jmp @__CheckForDebuggerJustMyCode@4
_xmlSAX2IgnorableWhitespace ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2Characters
_TEXT SEGMENT
tv605 = 8 ; size = 4
_ctx$ = 8 ; size = 4
_ch$ = 12 ; size = 4
_len$ = 16 ; size = 4
_xmlSAX2Characters PROC ; COMDAT
; 2533 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
test esi, esi
je $LN24@xmlSAX2Cha
; 2534 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 2535 : xmlNodePtr lastChild;
; 2536 :
; 2537 : if (ctx == NULL) return;
; 2538 : #ifdef DEBUG_SAX
; 2539 : xmlGenericError(xmlGenericErrorContext,
; 2540 : "SAX.xmlSAX2Characters(%.30s, %d)\n", ch, len);
; 2541 : #endif
; 2542 : /*
; 2543 : * Handle the data if any. If there is no child
; 2544 : * add it as content, otherwise if the last child is text,
; 2545 : * concatenate it, else create a new node of type text.
; 2546 : */
; 2547 :
; 2548 : if (ctxt->node == NULL) {
push edi
mov edi, DWORD PTR [esi+52]
test edi, edi
je $LN30@xmlSAX2Cha
; 2549 : #ifdef DEBUG_SAX_TREE
; 2550 : xmlGenericError(xmlGenericErrorContext,
; 2551 : "add chars: ctxt->node == NULL !\n");
; 2552 : #endif
; 2553 : return;
; 2554 : }
; 2555 : lastChild = ctxt->node->last;
mov edi, DWORD PTR [edi+16]
push ebx
; 2556 : #ifdef DEBUG_SAX_TREE
; 2557 : xmlGenericError(xmlGenericErrorContext,
; 2558 : "add chars to %s \n", ctxt->node->name);
; 2559 : #endif
; 2560 :
; 2561 : /*
; 2562 : * Here we needed an accelerator mechanism in case of very large
; 2563 : * elements. Use an attribute in the structure !!!
; 2564 : */
; 2565 : if (lastChild == NULL) {
test edi, edi
jne SHORT $LN4@xmlSAX2Cha
; 2566 : lastChild = xmlSAX2TextNode(ctxt, ch, len);
mov edi, DWORD PTR _len$[ebp]
push edi
push DWORD PTR _ch$[ebp]
push esi
call _xmlSAX2TextNode
mov edx, eax
add esp, 12 ; 0000000cH
; 2567 : if (lastChild != NULL) {
test edx, edx
je $LN29@xmlSAX2Cha
; 2568 : ctxt->node->children = lastChild;
mov ecx, DWORD PTR [esi+52]
pop ebx
mov DWORD PTR [ecx+12], edx
; 2569 : ctxt->node->last = lastChild;
mov ecx, DWORD PTR [esi+52]
mov DWORD PTR [ecx+16], edx
; 2570 : lastChild->parent = ctxt->node;
mov ecx, DWORD PTR [esi+52]
mov DWORD PTR [edx+20], ecx
; 2571 : lastChild->doc = ctxt->node->doc;
mov eax, DWORD PTR [esi+52]
mov eax, DWORD PTR [eax+32]
mov DWORD PTR [edx+32], eax
; 2642 : ctxt->nodelen = len;
; 2643 : ctxt->nodemem = len + 1;
lea eax, DWORD PTR [edi+1]
mov DWORD PTR [esi+260], edi
pop edi
mov DWORD PTR [esi+264], eax
pop esi
; 2644 : }
; 2645 : }
; 2646 : }
; 2647 : }
; 2648 : }
pop ebp
ret 0
$LN4@xmlSAX2Cha:
; 2572 : ctxt->nodelen = len;
; 2573 : ctxt->nodemem = len + 1;
; 2574 : } else {
; 2575 : xmlSAX2ErrMemory(ctxt, "xmlSAX2Characters");
; 2576 : return;
; 2577 : }
; 2578 : } else {
; 2579 : int coalesceText = (lastChild != NULL) &&
cmp DWORD PTR [edi+4], 3
jne $LN19@xmlSAX2Cha
cmp DWORD PTR [edi+8], OFFSET _xmlStringText
jne $LN19@xmlSAX2Cha
; 2580 : (lastChild->type == XML_TEXT_NODE) &&
; 2581 : (lastChild->name == xmlStringText);
; 2582 : if ((coalesceText) && (ctxt->nodemem != 0)) {
mov edx, DWORD PTR [esi+264]
test edx, edx
je $LN8@xmlSAX2Cha
; 2583 : /*
; 2584 : * The whole point of maintaining nodelen and nodemem,
; 2585 : * xmlTextConcat is too costly, i.e. compute length,
; 2586 : * reallocate a new buffer, move data, append ch. Here
; 2587 : * We try to minimaze realloc() uses and avoid copying
; 2588 : * and recomputing length over and over.
; 2589 : */
; 2590 : if (lastChild->content == (xmlChar *)&(lastChild->properties)) {
mov ecx, DWORD PTR [edi+40]
lea ebx, DWORD PTR [edi+44]
cmp ecx, ebx
jne SHORT $LN10@xmlSAX2Cha
; 2591 : lastChild->content = xmlStrdup(lastChild->content);
push ecx
call _xmlStrdup
; 2592 : lastChild->properties = NULL;
mov DWORD PTR [ebx], 0
jmp SHORT $LN33@xmlSAX2Cha
$LN10@xmlSAX2Cha:
; 2593 : } else if ((ctxt->nodemem == ctxt->nodelen + 1) &&
mov eax, DWORD PTR [esi+260]
inc eax
cmp edx, eax
jne SHORT $LN12@xmlSAX2Cha
push ecx
push DWORD PTR [esi+296]
call _xmlDictOwns
add esp, 8
test eax, eax
je SHORT $LN12@xmlSAX2Cha
; 2594 : (xmlDictOwns(ctxt->dict, lastChild->content))) {
; 2595 : lastChild->content = xmlStrdup(lastChild->content);
push DWORD PTR [edi+40]
call _xmlStrdup
$LN33@xmlSAX2Cha:
; 2596 : }
; 2597 : if (lastChild->content == NULL) {
mov DWORD PTR [edi+40], eax
add esp, 4
$LN12@xmlSAX2Cha:
mov ecx, DWORD PTR [edi+40]
test ecx, ecx
jne SHORT $LN13@xmlSAX2Cha
; 2598 : xmlSAX2ErrMemory(ctxt, "xmlSAX2Characters: xmlStrdup returned NULL");
push OFFSET ??_C@_0CL@EDPCIJGK@xmlSAX2Characters?3?5xmlStrdup?5re@
push esi
call _xmlSAX2ErrMemory
add esp, 8
pop ebx
pop edi
pop esi
; 2644 : }
; 2645 : }
; 2646 : }
; 2647 : }
; 2648 : }
pop ebp
ret 0
$LN13@xmlSAX2Cha:
; 2599 : return;
; 2600 : }
; 2601 : if (((size_t)ctxt->nodelen + (size_t)len > XML_MAX_TEXT_LENGTH) &&
mov edx, DWORD PTR [esi+260]
mov ebx, DWORD PTR _len$[ebp]
lea eax, DWORD PTR [edx+ebx]
cmp eax, 10000000 ; 00989680H
jbe SHORT $LN14@xmlSAX2Cha
test DWORD PTR [esi+360], 524288 ; 00080000H
jne SHORT $LN14@xmlSAX2Cha
; 2602 : ((ctxt->options & XML_PARSE_HUGE) == 0)) {
; 2603 : xmlSAX2ErrMemory(ctxt, "xmlSAX2Characters: huge text node");
push OFFSET ??_C@_0CC@PCIHKIPC@xmlSAX2Characters?3?5huge?5text?5no@
push esi
call _xmlSAX2ErrMemory
add esp, 8
pop ebx
pop edi
pop esi
; 2644 : }
; 2645 : }
; 2646 : }
; 2647 : }
; 2648 : }
pop ebp
ret 0
$LN14@xmlSAX2Cha:
; 2604 : return;
; 2605 : }
; 2606 : if ((size_t)ctxt->nodelen > SIZE_T_MAX - (size_t)len ||
mov eax, ebx
not eax
cmp edx, eax
ja $LN16@xmlSAX2Cha
mov eax, DWORD PTR [esi+264]
add eax, ebx
mov DWORD PTR tv605[ebp], eax
cmp eax, 2147483647 ; 7fffffffH
ja SHORT $LN16@xmlSAX2Cha
; 2609 : return;
; 2610 : }
; 2611 : if (ctxt->nodelen + len >= ctxt->nodemem) {
lea eax, DWORD PTR [edx+ebx]
cmp eax, DWORD PTR [esi+264]
jl SHORT $LN17@xmlSAX2Cha
; 2612 : xmlChar *newbuf;
; 2613 : size_t size;
; 2614 :
; 2615 : size = ctxt->nodemem + len;
; 2616 : size *= 2;
mov eax, DWORD PTR tv605[ebp]
add eax, eax
; 2617 : newbuf = (xmlChar *) xmlRealloc(lastChild->content,size);
push eax
push ecx
call DWORD PTR _xmlRealloc
mov ecx, eax
add esp, 8
; 2618 : if (newbuf == NULL) {
test ecx, ecx
jne SHORT $LN18@xmlSAX2Cha
$LN29@xmlSAX2Cha:
; 2619 : xmlSAX2ErrMemory(ctxt, "xmlSAX2Characters");
push OFFSET ??_C@_0BC@IJLHKBBO@xmlSAX2Characters@
push esi
call _xmlSAX2ErrMemory
add esp, 8
pop ebx
pop edi
pop esi
; 2644 : }
; 2645 : }
; 2646 : }
; 2647 : }
; 2648 : }
pop ebp
ret 0
$LN18@xmlSAX2Cha:
; 2620 : return;
; 2621 : }
; 2622 : ctxt->nodemem = size;
mov edx, DWORD PTR tv605[ebp]
lea eax, DWORD PTR [edx+edx]
mov DWORD PTR [esi+264], eax
; 2623 : lastChild->content = newbuf;
mov DWORD PTR [edi+40], ecx
mov edx, DWORD PTR [esi+260]
$LN17@xmlSAX2Cha:
; 2624 : }
; 2625 : memcpy(&lastChild->content[ctxt->nodelen], ch, len);
push ebx
push DWORD PTR _ch$[ebp]
lea eax, DWORD PTR [ecx+edx]
push eax
call _memcpy
add esp, 12 ; 0000000cH
; 2626 : ctxt->nodelen += len;
add DWORD PTR [esi+260], ebx
mov ecx, DWORD PTR [esi+260]
; 2627 : lastChild->content[ctxt->nodelen] = 0;
mov eax, DWORD PTR [edi+40]
pop ebx
pop edi
mov BYTE PTR [ecx+eax], 0
pop esi
; 2644 : }
; 2645 : }
; 2646 : }
; 2647 : }
; 2648 : }
pop ebp
ret 0
$LN16@xmlSAX2Cha:
; 2607 : (size_t)ctxt->nodemem + (size_t)len > SIZE_T_MAX / 2) {
; 2608 : xmlSAX2ErrMemory(ctxt, "xmlSAX2Characters overflow prevented");
push OFFSET ??_C@_0CF@EADJOGLP@xmlSAX2Characters?5overflow?5prev@
push esi
call _xmlSAX2ErrMemory
add esp, 8
pop ebx
pop edi
pop esi
; 2644 : }
; 2645 : }
; 2646 : }
; 2647 : }
; 2648 : }
pop ebp
ret 0
$LN8@xmlSAX2Cha:
; 2628 : } else if (coalesceText) {
; 2629 : if (xmlTextConcat(lastChild, ch, len)) {
push DWORD PTR _len$[ebp]
push DWORD PTR _ch$[ebp]
push edi
call _xmlTextConcat
add esp, 12 ; 0000000cH
test eax, eax
je SHORT $LN21@xmlSAX2Cha
; 2630 : xmlSAX2ErrMemory(ctxt, "xmlSAX2Characters");
push OFFSET ??_C@_0BC@IJLHKBBO@xmlSAX2Characters@
push esi
call _xmlSAX2ErrMemory
add esp, 8
$LN21@xmlSAX2Cha:
; 2631 : }
; 2632 : if (ctxt->node->children != NULL) {
mov eax, DWORD PTR [esi+52]
cmp DWORD PTR [eax+12], 0
je SHORT $LN31@xmlSAX2Cha
; 2633 : ctxt->nodelen = xmlStrlen(lastChild->content);
push DWORD PTR [edi+40]
call _xmlStrlen
add esp, 4
mov DWORD PTR [esi+260], eax
; 2634 : ctxt->nodemem = ctxt->nodelen + 1;
inc eax
; 2642 : ctxt->nodelen = len;
; 2643 : ctxt->nodemem = len + 1;
mov DWORD PTR [esi+264], eax
pop ebx
pop edi
pop esi
; 2644 : }
; 2645 : }
; 2646 : }
; 2647 : }
; 2648 : }
pop ebp
ret 0
$LN19@xmlSAX2Cha:
; 2635 : }
; 2636 : } else {
; 2637 : /* Mixed content, first time */
; 2638 : lastChild = xmlSAX2TextNode(ctxt, ch, len);
mov edi, DWORD PTR _len$[ebp]
push edi
push DWORD PTR _ch$[ebp]
push esi
call _xmlSAX2TextNode
add esp, 12 ; 0000000cH
; 2639 : if (lastChild != NULL) {
test eax, eax
je SHORT $LN31@xmlSAX2Cha
; 2640 : xmlAddChild(ctxt->node, lastChild);
push eax
push DWORD PTR [esi+52]
call _xmlAddChild
; 2641 : if (ctxt->node->children != NULL) {
mov eax, DWORD PTR [esi+52]
add esp, 8
cmp DWORD PTR [eax+12], 0
je SHORT $LN31@xmlSAX2Cha
; 2642 : ctxt->nodelen = len;
; 2643 : ctxt->nodemem = len + 1;
lea eax, DWORD PTR [edi+1]
mov DWORD PTR [esi+260], edi
mov DWORD PTR [esi+264], eax
$LN31@xmlSAX2Cha:
pop ebx
$LN30@xmlSAX2Cha:
pop edi
$LN24@xmlSAX2Cha:
pop esi
; 2644 : }
; 2645 : }
; 2646 : }
; 2647 : }
; 2648 : }
pop ebp
ret 0
_xmlSAX2Characters ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2Reference
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_name$ = 12 ; size = 4
_xmlSAX2Reference PROC ; COMDAT
; 2501 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
test esi, esi
je SHORT $LN5@xmlSAX2Ref
; 2502 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 2503 : xmlNodePtr ret;
; 2504 :
; 2505 : if (ctx == NULL) return;
; 2506 : #ifdef DEBUG_SAX
; 2507 : xmlGenericError(xmlGenericErrorContext,
; 2508 : "SAX.xmlSAX2Reference(%s)\n", name);
; 2509 : #endif
; 2510 : if (name[0] == '#')
mov eax, DWORD PTR _name$[ebp]
mov ecx, DWORD PTR [esi+8]
push edi
push eax
cmp BYTE PTR [eax], 35 ; 00000023H
push ecx
jne SHORT $LN3@xmlSAX2Ref
; 2511 : ret = xmlNewCharRef(ctxt->myDoc, name);
call _xmlNewCharRef
jmp SHORT $LN8@xmlSAX2Ref
$LN3@xmlSAX2Ref:
; 2512 : else
; 2513 : ret = xmlNewReference(ctxt->myDoc, name);
call _xmlNewReference
$LN8@xmlSAX2Ref:
; 2514 : #ifdef DEBUG_SAX_TREE
; 2515 : xmlGenericError(xmlGenericErrorContext,
; 2516 : "add xmlSAX2Reference %s to %s \n", name, ctxt->node->name);
; 2517 : #endif
; 2518 : if (xmlAddChild(ctxt->node, ret) == NULL) {
add esp, 8
mov edi, eax
push edi
push DWORD PTR [esi+52]
call _xmlAddChild
add esp, 8
test eax, eax
jne SHORT $LN7@xmlSAX2Ref
; 2519 : xmlFreeNode(ret);
push edi
call _xmlFreeNode
add esp, 4
$LN7@xmlSAX2Ref:
pop edi
$LN5@xmlSAX2Ref:
pop esi
; 2520 : }
; 2521 : }
pop ebp
ret 0
_xmlSAX2Reference ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2EndElementNs
_TEXT SEGMENT
_node_info$ = -20 ; size = 20
_ctx$ = 8 ; size = 4
_localname$ = 12 ; size = 4
_prefix$ = 16 ; size = 4
_URI$ = 20 ; size = 4
_xmlSAX2EndElementNs PROC ; COMDAT
; 2464 : {
push ebp
mov ebp, esp
sub esp, 20 ; 00000014H
mov ecx, OFFSET __A8525CDE_sax2@c
push esi
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
test esi, esi
je SHORT $LN1@xmlSAX2End
; 2465 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 2466 : xmlParserNodeInfo node_info;
; 2467 : xmlNodePtr cur;
; 2468 :
; 2469 : if (ctx == NULL) return;
; 2470 : cur = ctxt->node;
cmp DWORD PTR [esi+68], 0
push edi
mov edi, DWORD PTR [esi+52]
; 2471 : /* Capture end position and add node */
; 2472 : if ((ctxt->record_info) && (cur != NULL)) {
je SHORT $LN3@xmlSAX2End
test edi, edi
je SHORT $LN3@xmlSAX2End
; 2473 : node_info.end_pos = ctxt->input->cur - ctxt->input->base;
mov ecx, DWORD PTR [esi+36]
mov eax, DWORD PTR [ecx+16]
sub eax, DWORD PTR [ecx+12]
mov DWORD PTR _node_info$[ebp+12], eax
; 2474 : node_info.end_line = ctxt->input->line;
mov eax, DWORD PTR [ecx+28]
mov DWORD PTR _node_info$[ebp+16], eax
; 2475 : node_info.node = cur;
; 2476 : xmlParserAddNodeInfo(ctxt, &node_info);
lea eax, DWORD PTR _node_info$[ebp]
push eax
push esi
mov DWORD PTR _node_info$[ebp], edi
call _xmlParserAddNodeInfo
add esp, 8
$LN3@xmlSAX2End:
; 2477 : }
; 2478 : ctxt->nodemem = -1;
; 2479 :
; 2480 : #ifdef LIBXML_VALID_ENABLED
; 2481 : if (ctxt->validate && ctxt->wellFormed &&
; 2482 : ctxt->myDoc && ctxt->myDoc->intSubset)
cmp DWORD PTR [esi+104], 0
mov DWORD PTR [esi+264], -1
je SHORT $LN4@xmlSAX2End
cmp DWORD PTR [esi+12], 0
je SHORT $LN4@xmlSAX2End
mov eax, DWORD PTR [esi+8]
test eax, eax
je SHORT $LN4@xmlSAX2End
cmp DWORD PTR [eax+44], 0
je SHORT $LN4@xmlSAX2End
; 2483 : ctxt->valid &= xmlValidateOneElement(&ctxt->vctxt, ctxt->myDoc, cur);
push edi
push eax
lea eax, DWORD PTR [esi+108]
push eax
call _xmlValidateOneElement
add esp, 12 ; 0000000cH
and DWORD PTR [esi+100], eax
$LN4@xmlSAX2End:
; 2484 : #endif /* LIBXML_VALID_ENABLED */
; 2485 :
; 2486 : /*
; 2487 : * end of parsing of this node.
; 2488 : */
; 2489 : nodePop(ctxt);
push esi
call _nodePop
add esp, 4
pop edi
$LN1@xmlSAX2End:
pop esi
; 2490 : }
mov esp, ebp
pop ebp
ret 0
_xmlSAX2EndElementNs ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2StartElementNs
_TEXT SEGMENT
_i$1$ = -12 ; size = 4
$T1 = -8 ; size = 4
_uri$1$ = -8 ; size = 4
_last$1$ = -4 ; size = 4
_parent$1$ = 8 ; size = 4
_nb_attributes$1$ = 8 ; size = 4
_ctx$ = 8 ; size = 4
_localname$ = 12 ; size = 4
_prefix$ = 16 ; size = 4
_URI$ = 20 ; size = 4
_nb_namespaces$ = 24 ; size = 4
_namespaces$ = 28 ; size = 4
_nb_attributes$ = 32 ; size = 4
_nb_defaulted$ = 36 ; size = 4
_attributes$ = 40 ; size = 4
_xmlSAX2StartElementNs PROC ; COMDAT
; 2217 : {
push ebp
mov ebp, esp
sub esp, 12 ; 0000000cH
push esi
mov esi, DWORD PTR _ctx$[ebp]
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
xor eax, eax
mov DWORD PTR _last$1$[ebp], 0
mov DWORD PTR $T1[ebp], eax
test esi, esi
je $LN56@xmlSAX2Sta
; 2218 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 2219 : xmlNodePtr ret;
; 2220 : xmlNodePtr parent;
; 2221 : xmlNsPtr last = NULL, ns;
; 2222 : const xmlChar *uri, *pref;
; 2223 : xmlChar *lname = NULL;
; 2224 : int i, j;
; 2225 :
; 2226 : if (ctx == NULL) return;
; 2227 : parent = ctxt->node;
cmp DWORD PTR [esi+104], 0
mov eax, DWORD PTR [esi+52]
mov DWORD PTR _parent$1$[ebp], eax
; 2228 : /*
; 2229 : * First check on validity:
; 2230 : */
; 2231 : if (ctxt->validate && (ctxt->myDoc->extSubset == NULL) &&
je SHORT $LN9@xmlSAX2Sta
mov eax, DWORD PTR [esi+8]
cmp DWORD PTR [eax+48], 0
jne SHORT $LN9@xmlSAX2Sta
mov eax, DWORD PTR [eax+44]
test eax, eax
je SHORT $LN10@xmlSAX2Sta
cmp DWORD PTR [eax+36], 0
jne SHORT $LN9@xmlSAX2Sta
cmp DWORD PTR [eax+40], 0
jne SHORT $LN9@xmlSAX2Sta
cmp DWORD PTR [eax+44], 0
jne SHORT $LN9@xmlSAX2Sta
cmp DWORD PTR [eax+48], 0
jne SHORT $LN9@xmlSAX2Sta
$LN10@xmlSAX2Sta:
; 2232 : ((ctxt->myDoc->intSubset == NULL) ||
; 2233 : ((ctxt->myDoc->intSubset->notations == NULL) &&
; 2234 : (ctxt->myDoc->intSubset->elements == NULL) &&
; 2235 : (ctxt->myDoc->intSubset->attributes == NULL) &&
; 2236 : (ctxt->myDoc->intSubset->entities == NULL)))) {
; 2237 : xmlErrValid(ctxt, XML_DTD_NO_DTD,
push 0
push 0
push OFFSET ??_C@_0CC@LPGBEFAE@Validation?5failed?3?5no?5DTD?5found@
push 522 ; 0000020aH
push esi
call _xmlErrValid
add esp, 20 ; 00000014H
; 2238 : "Validation failed: no DTD found !", NULL, NULL);
; 2239 : ctxt->validate = 0;
mov DWORD PTR [esi+104], 0
$LN9@xmlSAX2Sta:
; 2240 : }
; 2241 :
; 2242 : /*
; 2243 : * Take care of the rare case of an undefined namespace prefix
; 2244 : */
; 2245 : if ((prefix != NULL) && (URI == NULL)) {
mov eax, DWORD PTR _prefix$[ebp]
mov ecx, DWORD PTR _URI$[ebp]
push ebx
test eax, eax
je SHORT $LN72@xmlSAX2Sta
test ecx, ecx
jne SHORT $LN72@xmlSAX2Sta
; 2246 : if (ctxt->dictNames) {
mov ebx, DWORD PTR _localname$[ebp]
cmp DWORD PTR [esi+364], ecx
je SHORT $LN12@xmlSAX2Sta
; 2247 : const xmlChar *fullname;
; 2248 :
; 2249 : fullname = xmlDictQLookup(ctxt->dict, prefix, localname);
push ebx
push eax
push DWORD PTR [esi+296]
call _xmlDictQLookup
add esp, 12 ; 0000000cH
; 2250 : if (fullname != NULL)
test eax, eax
je SHORT $LN75@xmlSAX2Sta
; 2251 : localname = fullname;
mov ebx, eax
; 2252 : } else {
jmp SHORT $LN75@xmlSAX2Sta
$LN12@xmlSAX2Sta:
; 2253 : lname = xmlBuildQName(localname, prefix, NULL, 0);
push 0
push 0
push eax
push ebx
call _xmlBuildQName
add esp, 16 ; 00000010H
mov DWORD PTR $T1[ebp], eax
jmp SHORT $LN13@xmlSAX2Sta
$LN72@xmlSAX2Sta:
; 2240 : }
; 2241 :
; 2242 : /*
; 2243 : * Take care of the rare case of an undefined namespace prefix
; 2244 : */
; 2245 : if ((prefix != NULL) && (URI == NULL)) {
mov ebx, DWORD PTR _localname$[ebp]
$LN75@xmlSAX2Sta:
; 2254 : }
; 2255 : }
; 2256 : /*
; 2257 : * allocate the node
; 2258 : */
; 2259 : if (ctxt->freeElems != NULL) {
xor eax, eax
$LN13@xmlSAX2Sta:
push edi
mov edi, DWORD PTR [esi+372]
test edi, edi
je SHORT $LN15@xmlSAX2Sta
; 2260 : ret = ctxt->freeElems;
; 2261 : ctxt->freeElems = ret->next;
mov eax, DWORD PTR [edi+24]
; 2262 : ctxt->freeElemsNr--;
dec DWORD PTR [esi+368]
; 2263 : memset(ret, 0, sizeof(xmlNode));
push 60 ; 0000003cH
push 0
push edi
mov DWORD PTR [esi+372], eax
call _memset
; 2264 : ret->doc = ctxt->myDoc;
mov eax, DWORD PTR [esi+8]
add esp, 12 ; 0000000cH
mov DWORD PTR [edi+32], eax
; 2265 : ret->type = XML_ELEMENT_NODE;
mov DWORD PTR [edi+4], 1
; 2266 :
; 2267 : if (ctxt->dictNames)
cmp DWORD PTR [esi+364], 0
je SHORT $LN17@xmlSAX2Sta
; 2268 : ret->name = localname;
mov DWORD PTR [edi+8], ebx
jmp SHORT $LN21@xmlSAX2Sta
$LN17@xmlSAX2Sta:
; 2269 : else {
; 2270 : if (lname == NULL)
mov eax, DWORD PTR $T1[ebp]
test eax, eax
jne SHORT $LN19@xmlSAX2Sta
; 2271 : ret->name = xmlStrdup(localname);
push ebx
call _xmlStrdup
add esp, 4
$LN19@xmlSAX2Sta:
; 2272 : else
; 2273 : ret->name = lname;
; 2274 : if (ret->name == NULL) {
mov DWORD PTR [edi+8], eax
test eax, eax
je $LN71@xmlSAX2Sta
$LN21@xmlSAX2Sta:
; 2275 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElementNs");
; 2276 : return;
; 2277 : }
; 2278 : }
; 2279 : if ((__xmlRegisterCallbacks) && (xmlRegisterNodeDefaultValue))
cmp DWORD PTR ___xmlRegisterCallbacks, 0
je SHORT $LN27@xmlSAX2Sta
call ___xmlRegisterNodeDefaultValue
cmp DWORD PTR [eax], 0
je SHORT $LN27@xmlSAX2Sta
; 2280 : xmlRegisterNodeDefaultValue(ret);
call ___xmlRegisterNodeDefaultValue
push edi
mov eax, DWORD PTR [eax]
call eax
add esp, 4
; 2281 : } else {
jmp SHORT $LN27@xmlSAX2Sta
$LN15@xmlSAX2Sta:
; 2282 : if (ctxt->dictNames)
cmp DWORD PTR [esi+364], 0
mov ecx, DWORD PTR [esi+8]
push 0
je SHORT $LN23@xmlSAX2Sta
; 2283 : ret = xmlNewDocNodeEatName(ctxt->myDoc, NULL,
push ebx
jmp SHORT $LN79@xmlSAX2Sta
$LN23@xmlSAX2Sta:
; 2284 : (xmlChar *) localname, NULL);
; 2285 : else if (lname == NULL)
test eax, eax
jne SHORT $LN25@xmlSAX2Sta
; 2286 : ret = xmlNewDocNode(ctxt->myDoc, NULL, localname, NULL);
push ebx
push eax
push ecx
call _xmlNewDocNode
jmp SHORT $LN80@xmlSAX2Sta
$LN25@xmlSAX2Sta:
; 2287 : else
; 2288 : ret = xmlNewDocNodeEatName(ctxt->myDoc, NULL,
push eax
$LN79@xmlSAX2Sta:
; 2289 : (xmlChar *) lname, NULL);
; 2290 : if (ret == NULL) {
push 0
push ecx
call _xmlNewDocNodeEatName
$LN80@xmlSAX2Sta:
mov edi, eax
add esp, 16 ; 00000010H
test edi, edi
je $LN71@xmlSAX2Sta
$LN27@xmlSAX2Sta:
; 2291 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElementNs");
; 2292 : return;
; 2293 : }
; 2294 : }
; 2295 : if (ctxt->linenumbers) {
cmp DWORD PTR [esi+280], 0
je SHORT $LN31@xmlSAX2Sta
; 2296 : if (ctxt->input != NULL) {
mov eax, DWORD PTR [esi+36]
test eax, eax
je SHORT $LN31@xmlSAX2Sta
; 2297 : if (ctxt->input->line < 65535)
mov eax, DWORD PTR [eax+28]
cmp eax, 65535 ; 0000ffffH
jl SHORT $LN81@xmlSAX2Sta
; 2298 : ret->line = (short) ctxt->input->line;
; 2299 : else
; 2300 : ret->line = 65535;
mov eax, 65535 ; 0000ffffH
$LN81@xmlSAX2Sta:
; 2301 : }
; 2302 : }
; 2303 :
; 2304 : if (parent == NULL) {
mov WORD PTR [edi+56], ax
$LN31@xmlSAX2Sta:
cmp DWORD PTR _parent$1$[ebp], 0
jne SHORT $LN32@xmlSAX2Sta
; 2305 : xmlAddChild((xmlNodePtr) ctxt->myDoc, (xmlNodePtr) ret);
push edi
push DWORD PTR [esi+8]
call _xmlAddChild
add esp, 8
$LN32@xmlSAX2Sta:
; 2306 : }
; 2307 : /*
; 2308 : * Build the namespace list
; 2309 : */
; 2310 : for (i = 0,j = 0;j < nb_namespaces;j++) {
xor ecx, ecx
cmp DWORD PTR _nb_namespaces$[ebp], ecx
jle $LN3@xmlSAX2Sta
npad 8
$LL4@xmlSAX2Sta:
; 2311 : pref = namespaces[i++];
mov eax, DWORD PTR _namespaces$[ebp]
mov ebx, DWORD PTR [eax+ecx*4]
; 2312 : uri = namespaces[i++];
mov eax, DWORD PTR [eax+ecx*4+4]
add ecx, 2
; 2313 : ns = xmlNewNs(NULL, uri, pref);
push ebx
push eax
push 0
mov DWORD PTR _uri$1$[ebp], eax
mov DWORD PTR _i$1$[ebp], ecx
call _xmlNewNs
add esp, 12 ; 0000000cH
; 2314 : if (ns != NULL) {
test eax, eax
je SHORT $LN2@xmlSAX2Sta
; 2315 : if (last == NULL) {
mov ecx, DWORD PTR _last$1$[ebp]
mov DWORD PTR _last$1$[ebp], eax
test ecx, ecx
jne SHORT $LN35@xmlSAX2Sta
; 2316 : ret->nsDef = last = ns;
mov DWORD PTR [edi+48], eax
; 2317 : } else {
jmp SHORT $LN36@xmlSAX2Sta
$LN35@xmlSAX2Sta:
; 2318 : last->next = ns;
mov DWORD PTR [ecx], eax
$LN36@xmlSAX2Sta:
; 2319 : last = ns;
; 2320 : }
; 2321 : if ((URI != NULL) && (prefix == pref))
cmp DWORD PTR _URI$[ebp], 0
mov edx, DWORD PTR _prefix$[ebp]
je SHORT $LN37@xmlSAX2Sta
cmp edx, ebx
jne SHORT $LN37@xmlSAX2Sta
; 2322 : ret->ns = ns;
mov DWORD PTR [edi+36], eax
$LN37@xmlSAX2Sta:
; 2323 : } else {
; 2324 : /*
; 2325 : * any out of memory error would already have been raised
; 2326 : * but we can't be guaranteed it's the actual error due to the
; 2327 : * API, best is to skip in this case
; 2328 : */
; 2329 : continue;
; 2330 : }
; 2331 : #ifdef LIBXML_VALID_ENABLED
; 2332 : if ((!ctxt->html) && ctxt->validate && ctxt->wellFormed &&
; 2333 : ctxt->myDoc && ctxt->myDoc->intSubset) {
cmp DWORD PTR [esi+32], 0
jne SHORT $LN2@xmlSAX2Sta
cmp DWORD PTR [esi+104], 0
je SHORT $LN2@xmlSAX2Sta
cmp DWORD PTR [esi+12], 0
je SHORT $LN2@xmlSAX2Sta
mov ecx, DWORD PTR [esi+8]
test ecx, ecx
je SHORT $LN2@xmlSAX2Sta
cmp DWORD PTR [ecx+44], 0
je SHORT $LN2@xmlSAX2Sta
; 2334 : ctxt->valid &= xmlValidateOneNamespace(&ctxt->vctxt, ctxt->myDoc,
push DWORD PTR _uri$1$[ebp]
push eax
push edx
push edi
push ecx
lea eax, DWORD PTR [esi+108]
push eax
call _xmlValidateOneNamespace
add esp, 24 ; 00000018H
and DWORD PTR [esi+100], eax
$LN2@xmlSAX2Sta:
; 2306 : }
; 2307 : /*
; 2308 : * Build the namespace list
; 2309 : */
; 2310 : for (i = 0,j = 0;j < nb_namespaces;j++) {
sub DWORD PTR _nb_namespaces$[ebp], 1
mov ecx, DWORD PTR _i$1$[ebp]
jne $LL4@xmlSAX2Sta
$LN3@xmlSAX2Sta:
; 2335 : ret, prefix, ns, uri);
; 2336 : }
; 2337 : #endif /* LIBXML_VALID_ENABLED */
; 2338 : }
; 2339 : ctxt->nodemem = -1;
; 2340 :
; 2341 : /*
; 2342 : * We are parsing a new node.
; 2343 : */
; 2344 : if (nodePush(ctxt, ret) < 0) {
push edi
push esi
mov DWORD PTR [esi+264], -1
call _nodePush
add esp, 8
test eax, eax
jns SHORT $LN39@xmlSAX2Sta
; 2345 : xmlUnlinkNode(ret);
push edi
call _xmlUnlinkNode
; 2346 : xmlFreeNode(ret);
push edi
call _xmlFreeNode
; 2380 :
; 2381 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElementNs");
add esp, 8
pop edi
pop ebx
pop esi
; 2445 : }
; 2446 : #endif /* LIBXML_VALID_ENABLED */
; 2447 : }
mov esp, ebp
pop ebp
ret 0
$LN39@xmlSAX2Sta:
; 2347 : return;
; 2348 : }
; 2349 :
; 2350 : /*
; 2351 : * Link the child element
; 2352 : */
; 2353 : if (parent != NULL) {
mov ecx, DWORD PTR _parent$1$[ebp]
test ecx, ecx
je SHORT $LN42@xmlSAX2Sta
; 2354 : if (parent->type == XML_ELEMENT_NODE) {
cmp DWORD PTR [ecx+4], 1
push edi
push ecx
jne SHORT $LN41@xmlSAX2Sta
; 2355 : xmlAddChild(parent, ret);
call _xmlAddChild
; 2356 : } else {
jmp SHORT $LN83@xmlSAX2Sta
$LN41@xmlSAX2Sta:
; 2357 : xmlAddSibling(parent, ret);
call _xmlAddSibling
$LN83@xmlSAX2Sta:
; 2358 : }
; 2359 : }
; 2360 :
; 2361 : /*
; 2362 : * Insert the defaulted attributes from the DTD only if requested:
; 2363 : */
; 2364 : if ((nb_defaulted != 0) &&
mov ecx, DWORD PTR _parent$1$[ebp]
add esp, 8
$LN42@xmlSAX2Sta:
mov eax, DWORD PTR _nb_defaulted$[ebp]
test eax, eax
je SHORT $LN73@xmlSAX2Sta
test BYTE PTR [esi+276], 4
jne SHORT $LN73@xmlSAX2Sta
; 2365 : ((ctxt->loadsubset & XML_COMPLETE_ATTRS) == 0))
; 2366 : nb_attributes -= nb_defaulted;
mov ebx, DWORD PTR _nb_attributes$[ebp]
sub ebx, eax
jmp SHORT $LN84@xmlSAX2Sta
$LN73@xmlSAX2Sta:
; 2358 : }
; 2359 : }
; 2360 :
; 2361 : /*
; 2362 : * Insert the defaulted attributes from the DTD only if requested:
; 2363 : */
; 2364 : if ((nb_defaulted != 0) &&
mov ebx, DWORD PTR _nb_attributes$[ebp]
$LN84@xmlSAX2Sta:
; 2367 :
; 2368 : /*
; 2369 : * Search the namespace if it wasn't already found
; 2370 : * Note that, if prefix is NULL, this searches for the default Ns
; 2371 : */
; 2372 : if ((URI != NULL) && (ret->ns == NULL)) {
cmp DWORD PTR _URI$[ebp], 0
mov DWORD PTR _nb_attributes$1$[ebp], ebx
je $LN49@xmlSAX2Sta
cmp DWORD PTR [edi+36], 0
jne SHORT $LN49@xmlSAX2Sta
; 2373 : ret->ns = xmlSearchNs(ctxt->myDoc, parent, prefix);
push DWORD PTR _prefix$[ebp]
push ecx
push DWORD PTR [esi+8]
call _xmlSearchNs
add esp, 12 ; 0000000cH
mov DWORD PTR [edi+36], eax
; 2374 : if ((ret->ns == NULL) && (xmlStrEqual(prefix, BAD_CAST "xml"))) {
test eax, eax
jne SHORT $LN45@xmlSAX2Sta
push OFFSET ??_C@_03PJHHNEEI@xml@
push DWORD PTR _prefix$[ebp]
call _xmlStrEqual
add esp, 8
test eax, eax
je SHORT $LN45@xmlSAX2Sta
; 2375 : ret->ns = xmlSearchNs(ctxt->myDoc, ret, prefix);
push DWORD PTR _prefix$[ebp]
push edi
push DWORD PTR [esi+8]
call _xmlSearchNs
add esp, 12 ; 0000000cH
mov DWORD PTR [edi+36], eax
$LN45@xmlSAX2Sta:
; 2376 : }
; 2377 : if (ret->ns == NULL) {
cmp DWORD PTR [edi+36], 0
jne SHORT $LN49@xmlSAX2Sta
; 2378 : ns = xmlNewNs(ret, NULL, prefix);
push DWORD PTR _prefix$[ebp]
push 0
push edi
call _xmlNewNs
add esp, 12 ; 0000000cH
; 2379 : if (ns == NULL) {
test eax, eax
je $LN71@xmlSAX2Sta
; 2382 : return;
; 2383 : }
; 2384 : if (prefix != NULL)
mov eax, DWORD PTR _prefix$[ebp]
push 0
test eax, eax
je SHORT $LN48@xmlSAX2Sta
; 2385 : xmlNsWarnMsg(ctxt, XML_NS_ERR_UNDEFINED_NAMESPACE,
push eax
push OFFSET ??_C@_0CD@HMPDFDML@Namespace?5prefix?5?$CFs?5was?5not?5fou@
jmp SHORT $LN85@xmlSAX2Sta
$LN48@xmlSAX2Sta:
; 2386 : "Namespace prefix %s was not found\n",
; 2387 : prefix, NULL);
; 2388 : else
; 2389 : xmlNsWarnMsg(ctxt, XML_NS_ERR_UNDEFINED_NAMESPACE,
push 0
push OFFSET ??_C@_0CI@JKKHNIFK@Namespace?5default?5prefix?5was?5no@
$LN85@xmlSAX2Sta:
; 2390 : "Namespace default prefix was not found\n",
; 2391 : NULL, NULL);
; 2392 : }
; 2393 : }
; 2394 :
; 2395 : /*
; 2396 : * process all the other attributes
; 2397 : */
; 2398 : if (nb_attributes > 0) {
push 201 ; 000000c9H
push esi
call _xmlNsWarnMsg
add esp, 20 ; 00000014H
$LN49@xmlSAX2Sta:
test ebx, ebx
jle $LN6@xmlSAX2Sta
; 2399 : for (j = 0,i = 0;i < nb_attributes;i++,j+=5) {
mov edi, DWORD PTR _attributes$[ebp]
add edi, 16 ; 00000010H
npad 2
$LL7@xmlSAX2Sta:
; 2400 : /*
; 2401 : * Handle the rare case of an undefined atribute prefix
; 2402 : */
; 2403 : if ((attributes[j+1] != NULL) && (attributes[j+2] == NULL)) {
mov eax, DWORD PTR [edi-12]
test eax, eax
je SHORT $LN55@xmlSAX2Sta
cmp DWORD PTR [edi-8], 0
jne SHORT $LN55@xmlSAX2Sta
; 2404 : if (ctxt->dictNames) {
cmp DWORD PTR [esi+364], 0
mov ecx, DWORD PTR [edi-16]
je SHORT $LN52@xmlSAX2Sta
; 2405 : const xmlChar *fullname;
; 2406 :
; 2407 : fullname = xmlDictQLookup(ctxt->dict, attributes[j+1],
push ecx
push eax
push DWORD PTR [esi+296]
call _xmlDictQLookup
add esp, 12 ; 0000000cH
; 2408 : attributes[j]);
; 2409 : if (fullname != NULL) {
test eax, eax
je SHORT $LN55@xmlSAX2Sta
; 2410 : xmlSAX2AttributeNs(ctxt, fullname, NULL,
push DWORD PTR [edi]
push DWORD PTR [edi-4]
push 0
push eax
; 2411 : attributes[j+3], attributes[j+4]);
; 2412 : continue;
jmp SHORT $LN86@xmlSAX2Sta
$LN52@xmlSAX2Sta:
; 2413 : }
; 2414 : } else {
; 2415 : lname = xmlBuildQName(attributes[j], attributes[j+1],
push 0
push 0
push eax
push ecx
call _xmlBuildQName
mov ebx, eax
add esp, 16 ; 00000010H
; 2416 : NULL, 0);
; 2417 : if (lname != NULL) {
test ebx, ebx
je SHORT $LN74@xmlSAX2Sta
; 2418 : xmlSAX2AttributeNs(ctxt, lname, NULL,
push DWORD PTR [edi]
push DWORD PTR [edi-4]
push 0
push ebx
push esi
call _xmlSAX2AttributeNs
; 2419 : attributes[j+3], attributes[j+4]);
; 2420 : xmlFree(lname);
push ebx
call DWORD PTR _xmlFree
; 2421 : continue;
mov ebx, DWORD PTR _nb_attributes$1$[ebp]
add esp, 24 ; 00000018H
jmp SHORT $LN5@xmlSAX2Sta
$LN74@xmlSAX2Sta:
; 2416 : NULL, 0);
; 2417 : if (lname != NULL) {
mov ebx, DWORD PTR _nb_attributes$1$[ebp]
$LN55@xmlSAX2Sta:
; 2422 : }
; 2423 : }
; 2424 : }
; 2425 : xmlSAX2AttributeNs(ctxt, attributes[j], attributes[j+1],
push DWORD PTR [edi]
push DWORD PTR [edi-4]
push DWORD PTR [edi-12]
push DWORD PTR [edi-16]
$LN86@xmlSAX2Sta:
; 2399 : for (j = 0,i = 0;i < nb_attributes;i++,j+=5) {
push esi
call _xmlSAX2AttributeNs
add esp, 20 ; 00000014H
$LN5@xmlSAX2Sta:
add edi, 20 ; 00000014H
sub ebx, 1
mov DWORD PTR _nb_attributes$1$[ebp], ebx
jne $LL7@xmlSAX2Sta
$LN6@xmlSAX2Sta:
; 2426 : attributes[j+3], attributes[j+4]);
; 2427 : }
; 2428 : }
; 2429 :
; 2430 : #ifdef LIBXML_VALID_ENABLED
; 2431 : /*
; 2432 : * If it's the Document root, finish the DTD validation and
; 2433 : * check the document root element for validity
; 2434 : */
; 2435 : if ((ctxt->validate) && (ctxt->vctxt.finishDtd == XML_CTXT_FINISH_DTD_0)) {
cmp DWORD PTR [esi+104], 0
je SHORT $LN78@xmlSAX2Sta
cmp DWORD PTR [esi+136], -1412623820 ; abcd1234H
jne SHORT $LN78@xmlSAX2Sta
; 2436 : int chk;
; 2437 :
; 2438 : chk = xmlValidateDtdFinal(&ctxt->vctxt, ctxt->myDoc);
push DWORD PTR [esi+8]
lea edi, DWORD PTR [esi+108]
push edi
call _xmlValidateDtdFinal
add esp, 8
; 2439 : if (chk <= 0)
test eax, eax
jg SHORT $LN87@xmlSAX2Sta
; 2440 : ctxt->valid = 0;
mov DWORD PTR [esi+100], 0
$LN87@xmlSAX2Sta:
; 2441 : if (chk < 0)
jns SHORT $LN58@xmlSAX2Sta
; 2442 : ctxt->wellFormed = 0;
mov DWORD PTR [esi+12], 0
$LN58@xmlSAX2Sta:
; 2443 : ctxt->valid &= xmlValidateRoot(&ctxt->vctxt, ctxt->myDoc);
push DWORD PTR [esi+8]
push edi
call _xmlValidateRoot
add esp, 8
; 2444 : ctxt->vctxt.finishDtd = XML_CTXT_FINISH_DTD_1;
mov DWORD PTR [esi+136], -1412623819 ; abcd1235H
and DWORD PTR [esi+100], eax
pop edi
pop ebx
pop esi
; 2445 : }
; 2446 : #endif /* LIBXML_VALID_ENABLED */
; 2447 : }
mov esp, ebp
pop ebp
ret 0
$LN71@xmlSAX2Sta:
; 2380 :
; 2381 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElementNs");
push OFFSET ??_C@_0BG@CNBDKEMA@xmlSAX2StartElementNs@
push esi
call _xmlSAX2ErrMemory
add esp, 8
$LN78@xmlSAX2Sta:
pop edi
pop ebx
$LN56@xmlSAX2Sta:
pop esi
; 2445 : }
; 2446 : #endif /* LIBXML_VALID_ENABLED */
; 2447 : }
mov esp, ebp
pop ebp
ret 0
_xmlSAX2StartElementNs ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2EndElement
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_name$ = 12 ; size = 4
_xmlSAX2EndElement PROC ; COMDAT
; 1804 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
test esi, esi
je $LN1@xmlSAX2End
; 1805 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 1806 : xmlNodePtr cur;
; 1807 :
; 1808 : if (ctx == NULL) return;
; 1809 : cur = ctxt->node;
push edi
mov edi, DWORD PTR [esi+52]
; 1810 : #ifdef DEBUG_SAX
; 1811 : if (name == NULL)
; 1812 : xmlGenericError(xmlGenericErrorContext, "SAX.xmlSAX2EndElement(NULL)\n");
; 1813 : else
; 1814 : xmlGenericError(xmlGenericErrorContext, "SAX.xmlSAX2EndElement(%s)\n", name);
; 1815 : #endif
; 1816 :
; 1817 : /* Capture end position and add node */
; 1818 : if (cur != NULL && ctxt->record_info) {
test edi, edi
je SHORT $LN3@xmlSAX2End
cmp DWORD PTR [esi+68], 0
je SHORT $LN3@xmlSAX2End
; 1819 : ctxt->nodeInfo->end_pos = ctxt->input->cur - ctxt->input->base;
mov eax, DWORD PTR [esi+36]
mov ecx, DWORD PTR [eax+16]
sub ecx, DWORD PTR [eax+12]
mov eax, DWORD PTR [esi+448]
mov DWORD PTR [eax+12], ecx
; 1820 : ctxt->nodeInfo->end_line = ctxt->input->line;
mov eax, DWORD PTR [esi+36]
mov ecx, DWORD PTR [esi+448]
mov eax, DWORD PTR [eax+28]
mov DWORD PTR [ecx+16], eax
; 1821 : ctxt->nodeInfo->node = cur;
mov eax, DWORD PTR [esi+448]
mov DWORD PTR [eax], edi
; 1822 : xmlParserAddNodeInfo(ctxt, ctxt->nodeInfo);
push DWORD PTR [esi+448]
push esi
call _xmlParserAddNodeInfo
add esp, 8
$LN3@xmlSAX2End:
; 1823 : }
; 1824 : ctxt->nodemem = -1;
; 1825 :
; 1826 : #ifdef LIBXML_VALID_ENABLED
; 1827 : if (ctxt->validate && ctxt->wellFormed &&
; 1828 : ctxt->myDoc && ctxt->myDoc->intSubset)
cmp DWORD PTR [esi+104], 0
mov DWORD PTR [esi+264], -1
je SHORT $LN4@xmlSAX2End
cmp DWORD PTR [esi+12], 0
je SHORT $LN4@xmlSAX2End
mov eax, DWORD PTR [esi+8]
test eax, eax
je SHORT $LN4@xmlSAX2End
cmp DWORD PTR [eax+44], 0
je SHORT $LN4@xmlSAX2End
; 1829 : ctxt->valid &= xmlValidateOneElement(&ctxt->vctxt, ctxt->myDoc,
push edi
push eax
lea eax, DWORD PTR [esi+108]
push eax
call _xmlValidateOneElement
add esp, 12 ; 0000000cH
and DWORD PTR [esi+100], eax
$LN4@xmlSAX2End:
; 1830 : cur);
; 1831 : #endif /* LIBXML_VALID_ENABLED */
; 1832 :
; 1833 :
; 1834 : /*
; 1835 : * end of parsing of this node.
; 1836 : */
; 1837 : #ifdef DEBUG_SAX_TREE
; 1838 : xmlGenericError(xmlGenericErrorContext, "popping(%s)\n", cur->name);
; 1839 : #endif
; 1840 : nodePop(ctxt);
push esi
call _nodePop
add esp, 4
pop edi
$LN1@xmlSAX2End:
pop esi
; 1841 : }
pop ebp
ret 0
_xmlSAX2EndElement ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2StartElement
_TEXT SEGMENT
_name$1$ = -8 ; size = 4
_prefix$ = -4 ; size = 4
_parent$1$ = 8 ; size = 4
_ctx$ = 8 ; size = 4
_fullname$ = 12 ; size = 4
_atts$ = 16 ; size = 4
_xmlSAX2StartElement PROC ; COMDAT
; 1593 : {
push ebp
mov ebp, esp
sub esp, 8
mov ecx, OFFSET __A8525CDE_sax2@c
push esi
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
test esi, esi
je $LN9@xmlSAX2Sta
; 1594 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 1595 : xmlNodePtr ret;
; 1596 : xmlNodePtr parent;
; 1597 : xmlNsPtr ns;
; 1598 : xmlChar *name;
; 1599 : xmlChar *prefix;
; 1600 : const xmlChar *att;
; 1601 : const xmlChar *value;
; 1602 : int i;
; 1603 :
; 1604 : if ((ctx == NULL) || (fullname == NULL) || (ctxt->myDoc == NULL)) return;
push edi
mov edi, DWORD PTR _fullname$[ebp]
test edi, edi
je $LN64@xmlSAX2Sta
mov eax, DWORD PTR [esi+8]
test eax, eax
je $LN64@xmlSAX2Sta
; 1605 : parent = ctxt->node;
; 1606 : #ifdef DEBUG_SAX
; 1607 : xmlGenericError(xmlGenericErrorContext,
; 1608 : "SAX.xmlSAX2StartElement(%s)\n", fullname);
; 1609 : #endif
; 1610 :
; 1611 : /*
; 1612 : * First check on validity:
; 1613 : */
; 1614 : if (ctxt->validate && (ctxt->myDoc->extSubset == NULL) &&
cmp DWORD PTR [esi+104], 0
mov ecx, DWORD PTR [esi+52]
mov DWORD PTR _parent$1$[ebp], ecx
je SHORT $LN10@xmlSAX2Sta
cmp DWORD PTR [eax+48], 0
jne SHORT $LN10@xmlSAX2Sta
mov eax, DWORD PTR [eax+44]
test eax, eax
je SHORT $LN11@xmlSAX2Sta
cmp DWORD PTR [eax+36], 0
jne SHORT $LN10@xmlSAX2Sta
cmp DWORD PTR [eax+40], 0
jne SHORT $LN10@xmlSAX2Sta
cmp DWORD PTR [eax+44], 0
jne SHORT $LN10@xmlSAX2Sta
cmp DWORD PTR [eax+48], 0
jne SHORT $LN10@xmlSAX2Sta
$LN11@xmlSAX2Sta:
; 1615 : ((ctxt->myDoc->intSubset == NULL) ||
; 1616 : ((ctxt->myDoc->intSubset->notations == NULL) &&
; 1617 : (ctxt->myDoc->intSubset->elements == NULL) &&
; 1618 : (ctxt->myDoc->intSubset->attributes == NULL) &&
; 1619 : (ctxt->myDoc->intSubset->entities == NULL)))) {
; 1620 : xmlErrValid(ctxt, XML_ERR_NO_DTD,
push 0
push 0
push OFFSET ??_C@_0CC@LPGBEFAE@Validation?5failed?3?5no?5DTD?5found@
push 94 ; 0000005eH
push esi
call _xmlErrValid
add esp, 20 ; 00000014H
; 1621 : "Validation failed: no DTD found !", NULL, NULL);
; 1622 : ctxt->validate = 0;
mov DWORD PTR [esi+104], 0
$LN10@xmlSAX2Sta:
; 1623 : }
; 1624 :
; 1625 :
; 1626 : /*
; 1627 : * Split the full name into a namespace prefix and the tag name
; 1628 : */
; 1629 : name = xmlSplitQName(ctxt, fullname, &prefix);
push ebx
lea eax, DWORD PTR _prefix$[ebp]
push eax
push edi
push esi
call _xmlSplitQName
; 1630 :
; 1631 :
; 1632 : /*
; 1633 : * Note : the namespace resolution is deferred until the end of the
; 1634 : * attributes parsing, since local namespace can be defined as
; 1635 : * an attribute at this level.
; 1636 : */
; 1637 : ret = xmlNewDocNodeEatName(ctxt->myDoc, NULL, name, NULL);
push 0
push eax
push 0
push DWORD PTR [esi+8]
mov DWORD PTR _name$1$[ebp], eax
call _xmlNewDocNodeEatName
mov ebx, eax
add esp, 28 ; 0000001cH
; 1638 : if (ret == NULL) {
test ebx, ebx
jne SHORT $LN12@xmlSAX2Sta
; 1639 : if (prefix != NULL)
mov eax, DWORD PTR _prefix$[ebp]
test eax, eax
je SHORT $LN13@xmlSAX2Sta
; 1640 : xmlFree(prefix);
push eax
call DWORD PTR _xmlFree
add esp, 4
$LN13@xmlSAX2Sta:
; 1641 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElement");
push OFFSET ??_C@_0BE@NLCCMPDP@xmlSAX2StartElement@
push esi
call _xmlSAX2ErrMemory
add esp, 8
pop ebx
pop edi
pop esi
; 1792 :
; 1793 : }
mov esp, ebp
pop ebp
ret 0
$LN12@xmlSAX2Sta:
; 1642 : return;
; 1643 : }
; 1644 : if (ctxt->myDoc->children == NULL) {
mov eax, DWORD PTR [esi+8]
mov ecx, DWORD PTR [eax+12]
test ecx, ecx
jne SHORT $LN14@xmlSAX2Sta
; 1645 : #ifdef DEBUG_SAX_TREE
; 1646 : xmlGenericError(xmlGenericErrorContext, "Setting %s as root\n", name);
; 1647 : #endif
; 1648 : xmlAddChild((xmlNodePtr) ctxt->myDoc, (xmlNodePtr) ret);
push ebx
push eax
call _xmlAddChild
mov edi, DWORD PTR _parent$1$[ebp]
add esp, 8
jmp SHORT $LN16@xmlSAX2Sta
$LN14@xmlSAX2Sta:
; 1649 : } else if (parent == NULL) {
mov edi, DWORD PTR _parent$1$[ebp]
test edi, edi
cmove edi, ecx
mov DWORD PTR _parent$1$[ebp], edi
$LN16@xmlSAX2Sta:
; 1650 : parent = ctxt->myDoc->children;
; 1651 : }
; 1652 : ctxt->nodemem = -1;
; 1653 : if (ctxt->linenumbers) {
cmp DWORD PTR [esi+280], 0
mov DWORD PTR [esi+264], -1
je SHORT $LN20@xmlSAX2Sta
; 1654 : if (ctxt->input != NULL) {
mov eax, DWORD PTR [esi+36]
test eax, eax
je SHORT $LN20@xmlSAX2Sta
; 1655 : if (ctxt->input->line < 65535)
mov eax, DWORD PTR [eax+28]
cmp eax, 65535 ; 0000ffffH
jl SHORT $LN66@xmlSAX2Sta
; 1656 : ret->line = (short) ctxt->input->line;
; 1657 : else
; 1658 : ret->line = 65535;
mov eax, 65535 ; 0000ffffH
$LN66@xmlSAX2Sta:
; 1659 : }
; 1660 : }
; 1661 :
; 1662 : /*
; 1663 : * We are parsing a new node.
; 1664 : */
; 1665 : #ifdef DEBUG_SAX_TREE
; 1666 : xmlGenericError(xmlGenericErrorContext, "pushing(%s)\n", name);
; 1667 : #endif
; 1668 : if (nodePush(ctxt, ret) < 0) {
mov WORD PTR [ebx+56], ax
$LN20@xmlSAX2Sta:
push ebx
push esi
call _nodePush
add esp, 8
test eax, eax
jns SHORT $LN21@xmlSAX2Sta
; 1669 : xmlUnlinkNode(ret);
push ebx
call _xmlUnlinkNode
; 1670 : xmlFreeNode(ret);
push ebx
call _xmlFreeNode
add esp, 8
pop ebx
pop edi
pop esi
; 1792 :
; 1793 : }
mov esp, ebp
pop ebp
ret 0
$LN21@xmlSAX2Sta:
; 1671 : return;
; 1672 : }
; 1673 :
; 1674 : /*
; 1675 : * Link the child element
; 1676 : */
; 1677 : if (parent != NULL) {
test edi, edi
je SHORT $LN24@xmlSAX2Sta
; 1678 : if (parent->type == XML_ELEMENT_NODE) {
cmp DWORD PTR [edi+4], 1
push ebx
push edi
jne SHORT $LN23@xmlSAX2Sta
; 1679 : #ifdef DEBUG_SAX_TREE
; 1680 : xmlGenericError(xmlGenericErrorContext,
; 1681 : "adding child %s to %s\n", name, parent->name);
; 1682 : #endif
; 1683 : xmlAddChild(parent, ret);
call _xmlAddChild
; 1684 : } else {
jmp SHORT $LN67@xmlSAX2Sta
$LN23@xmlSAX2Sta:
; 1685 : #ifdef DEBUG_SAX_TREE
; 1686 : xmlGenericError(xmlGenericErrorContext,
; 1687 : "adding sibling %s to ", name);
; 1688 : xmlDebugDumpOneNode(stderr, parent, 0);
; 1689 : #endif
; 1690 : xmlAddSibling(parent, ret);
call _xmlAddSibling
$LN67@xmlSAX2Sta:
; 1691 : }
; 1692 : }
; 1693 :
; 1694 : /*
; 1695 : * Insert all the defaulted attributes from the DTD especially namespaces
; 1696 : */
; 1697 : if ((!ctxt->html) &&
add esp, 8
$LN24@xmlSAX2Sta:
cmp DWORD PTR [esi+32], 0
jne SHORT $LN63@xmlSAX2Sta
mov eax, DWORD PTR [esi+8]
cmp DWORD PTR [eax+44], 0
jne SHORT $LN26@xmlSAX2Sta
cmp DWORD PTR [eax+48], 0
je SHORT $LN63@xmlSAX2Sta
$LN26@xmlSAX2Sta:
; 1698 : ((ctxt->myDoc->intSubset != NULL) ||
; 1699 : (ctxt->myDoc->extSubset != NULL))) {
; 1700 : xmlCheckDefaultedAttributes(ctxt, name, prefix, atts);
mov edi, DWORD PTR _atts$[ebp]
push edi
push DWORD PTR _prefix$[ebp]
push DWORD PTR _name$1$[ebp]
push esi
call _xmlCheckDefaultedAttributes
add esp, 16 ; 00000010H
jmp SHORT $LN25@xmlSAX2Sta
$LN63@xmlSAX2Sta:
; 1701 : }
; 1702 :
; 1703 : /*
; 1704 : * process all the attributes whose name start with "xmlns"
; 1705 : */
; 1706 : if (atts != NULL) {
mov edi, DWORD PTR _atts$[ebp]
$LN25@xmlSAX2Sta:
test edi, edi
je SHORT $LN60@xmlSAX2Sta
; 1709 : value = atts[i++];
; 1710 : if (!ctxt->html) {
cmp DWORD PTR [esi+32], 0
mov ecx, DWORD PTR [edi+4]
jne SHORT $LN60@xmlSAX2Sta
; 1711 : while ((att != NULL) && (value != NULL)) {
mov eax, DWORD PTR [edi]
test eax, eax
je SHORT $LN60@xmlSAX2Sta
; 1707 : i = 0;
; 1708 : att = atts[i++];
add edi, 8
npad 3
$LL2@xmlSAX2Sta:
; 1711 : while ((att != NULL) && (value != NULL)) {
test ecx, ecx
je SHORT $LN60@xmlSAX2Sta
; 1712 : if ((att[0] == 'x') && (att[1] == 'm') && (att[2] == 'l') &&
; 1713 : (att[3] == 'n') && (att[4] == 's'))
cmp BYTE PTR [eax], 120 ; 00000078H
jne SHORT $LN29@xmlSAX2Sta
cmp BYTE PTR [eax+1], 109 ; 0000006dH
jne SHORT $LN29@xmlSAX2Sta
cmp BYTE PTR [eax+2], 108 ; 0000006cH
jne SHORT $LN29@xmlSAX2Sta
cmp BYTE PTR [eax+3], 110 ; 0000006eH
jne SHORT $LN29@xmlSAX2Sta
cmp BYTE PTR [eax+4], 115 ; 00000073H
jne SHORT $LN29@xmlSAX2Sta
; 1714 : xmlSAX2AttributeInternal(ctxt, att, value, prefix);
push DWORD PTR _prefix$[ebp]
push ecx
push eax
push esi
call _xmlSAX2AttributeInternal
add esp, 16 ; 00000010H
$LN29@xmlSAX2Sta:
; 1715 :
; 1716 : att = atts[i++];
mov eax, DWORD PTR [edi]
; 1717 : value = atts[i++];
mov ecx, DWORD PTR [edi+4]
add edi, 8
test eax, eax
jne SHORT $LL2@xmlSAX2Sta
$LN60@xmlSAX2Sta:
; 1718 : }
; 1719 : }
; 1720 : }
; 1721 :
; 1722 : /*
; 1723 : * Search the namespace, note that since the attributes have been
; 1724 : * processed, the local namespaces are available.
; 1725 : */
; 1726 : ns = xmlSearchNs(ctxt->myDoc, ret, prefix);
push DWORD PTR _prefix$[ebp]
push ebx
push DWORD PTR [esi+8]
call _xmlSearchNs
mov edi, eax
add esp, 12 ; 0000000cH
; 1727 : if ((ns == NULL) && (parent != NULL))
test edi, edi
jne SHORT $LN30@xmlSAX2Sta
mov ecx, DWORD PTR _parent$1$[ebp]
test ecx, ecx
je SHORT $LN30@xmlSAX2Sta
; 1728 : ns = xmlSearchNs(ctxt->myDoc, parent, prefix);
push DWORD PTR _prefix$[ebp]
push ecx
push DWORD PTR [esi+8]
call _xmlSearchNs
add esp, 12 ; 0000000cH
mov edi, eax
$LN30@xmlSAX2Sta:
; 1729 : if ((prefix != NULL) && (ns == NULL)) {
mov eax, DWORD PTR _prefix$[ebp]
test eax, eax
je SHORT $LN31@xmlSAX2Sta
test edi, edi
jne SHORT $LN57@xmlSAX2Sta
; 1730 : ns = xmlNewNs(ret, NULL, prefix);
push eax
push edi
push ebx
call _xmlNewNs
; 1731 : xmlNsWarnMsg(ctxt, XML_NS_ERR_UNDEFINED_NAMESPACE,
push 0
push DWORD PTR _prefix$[ebp]
mov edi, eax
push OFFSET ??_C@_0CE@HAGAOPBB@Namespace?5prefix?5?$CFs?5is?5not?5defi@
push 201 ; 000000c9H
push esi
call _xmlNsWarnMsg
add esp, 32 ; 00000020H
$LN31@xmlSAX2Sta:
; 1732 : "Namespace prefix %s is not defined\n",
; 1733 : prefix, NULL);
; 1734 : }
; 1735 :
; 1736 : /*
; 1737 : * set the namespace node, making sure that if the default namspace
; 1738 : * is unbound on a parent we simply kee it NULL
; 1739 : */
; 1740 : if ((ns != NULL) && (ns->href != NULL) &&
test edi, edi
je SHORT $LN32@xmlSAX2Sta
$LN57@xmlSAX2Sta:
mov eax, DWORD PTR [edi+8]
test eax, eax
je SHORT $LN32@xmlSAX2Sta
cmp BYTE PTR [eax], 0
jne SHORT $LN33@xmlSAX2Sta
cmp DWORD PTR [edi+12], 0
je SHORT $LN32@xmlSAX2Sta
$LN33@xmlSAX2Sta:
; 1741 : ((ns->href[0] != 0) || (ns->prefix != NULL)))
; 1742 : xmlSetNs(ret, ns);
push edi
push ebx
call _xmlSetNs
add esp, 8
$LN32@xmlSAX2Sta:
; 1743 :
; 1744 : /*
; 1745 : * process all the other attributes
; 1746 : */
; 1747 : if (atts != NULL) {
mov edx, DWORD PTR _atts$[ebp]
test edx, edx
je SHORT $LN61@xmlSAX2Sta
; 1748 : i = 0;
; 1749 : att = atts[i++];
mov eax, DWORD PTR [edx]
; 1750 : value = atts[i++];
mov ecx, DWORD PTR [edx+4]
; 1752 : while (att != NULL) {
test eax, eax
je SHORT $LN61@xmlSAX2Sta
; 1751 : if (ctxt->html) {
cmp DWORD PTR [esi+32], 0
lea edi, DWORD PTR [edx+8]
je SHORT $LL6@xmlSAX2Sta
npad 2
$LL4@xmlSAX2Sta:
; 1753 : xmlSAX2AttributeInternal(ctxt, att, value, NULL);
push 0
push ecx
push eax
push esi
call _xmlSAX2AttributeInternal
; 1754 : att = atts[i++];
mov eax, DWORD PTR [edi]
; 1755 : value = atts[i++];
lea edi, DWORD PTR [edi+8]
mov ecx, DWORD PTR [edi-4]
add esp, 16 ; 00000010H
test eax, eax
jne SHORT $LL4@xmlSAX2Sta
; 1756 : }
; 1757 : } else {
jmp SHORT $LN61@xmlSAX2Sta
npad 5
$LL6@xmlSAX2Sta:
; 1758 : while ((att != NULL) && (value != NULL)) {
test ecx, ecx
je SHORT $LN61@xmlSAX2Sta
; 1759 : if ((att[0] != 'x') || (att[1] != 'm') || (att[2] != 'l') ||
; 1760 : (att[3] != 'n') || (att[4] != 's'))
cmp BYTE PTR [eax], 120 ; 00000078H
jne SHORT $LN38@xmlSAX2Sta
cmp BYTE PTR [eax+1], 109 ; 0000006dH
jne SHORT $LN38@xmlSAX2Sta
cmp BYTE PTR [eax+2], 108 ; 0000006cH
jne SHORT $LN38@xmlSAX2Sta
cmp BYTE PTR [eax+3], 110 ; 0000006eH
jne SHORT $LN38@xmlSAX2Sta
cmp BYTE PTR [eax+4], 115 ; 00000073H
je SHORT $LN37@xmlSAX2Sta
$LN38@xmlSAX2Sta:
; 1761 : xmlSAX2AttributeInternal(ctxt, att, value, NULL);
push 0
push ecx
push eax
push esi
call _xmlSAX2AttributeInternal
add esp, 16 ; 00000010H
$LN37@xmlSAX2Sta:
; 1762 :
; 1763 : /*
; 1764 : * Next ones
; 1765 : */
; 1766 : att = atts[i++];
mov eax, DWORD PTR [edi]
; 1767 : value = atts[i++];
mov ecx, DWORD PTR [edi+4]
add edi, 8
test eax, eax
jne SHORT $LL6@xmlSAX2Sta
$LN61@xmlSAX2Sta:
; 1768 : }
; 1769 : }
; 1770 : }
; 1771 :
; 1772 : #ifdef LIBXML_VALID_ENABLED
; 1773 : /*
; 1774 : * If it's the Document root, finish the DTD validation and
; 1775 : * check the document root element for validity
; 1776 : */
; 1777 : if ((ctxt->validate) && (ctxt->vctxt.finishDtd == XML_CTXT_FINISH_DTD_0)) {
cmp DWORD PTR [esi+104], 0
je SHORT $LN39@xmlSAX2Sta
cmp DWORD PTR [esi+136], -1412623820 ; abcd1234H
jne SHORT $LN39@xmlSAX2Sta
; 1778 : int chk;
; 1779 :
; 1780 : chk = xmlValidateDtdFinal(&ctxt->vctxt, ctxt->myDoc);
push DWORD PTR [esi+8]
lea edi, DWORD PTR [esi+108]
push edi
call _xmlValidateDtdFinal
add esp, 8
; 1781 : if (chk <= 0)
test eax, eax
jg SHORT $LN68@xmlSAX2Sta
; 1782 : ctxt->valid = 0;
mov DWORD PTR [esi+100], 0
$LN68@xmlSAX2Sta:
; 1783 : if (chk < 0)
jns SHORT $LN41@xmlSAX2Sta
; 1784 : ctxt->wellFormed = 0;
mov DWORD PTR [esi+12], 0
$LN41@xmlSAX2Sta:
; 1785 : ctxt->valid &= xmlValidateRoot(&ctxt->vctxt, ctxt->myDoc);
push DWORD PTR [esi+8]
push edi
call _xmlValidateRoot
add esp, 8
; 1786 : ctxt->vctxt.finishDtd = XML_CTXT_FINISH_DTD_1;
mov DWORD PTR [esi+136], -1412623819 ; abcd1235H
and DWORD PTR [esi+100], eax
$LN39@xmlSAX2Sta:
; 1787 : }
; 1788 : #endif /* LIBXML_VALID_ENABLED */
; 1789 :
; 1790 : if (prefix != NULL)
mov eax, DWORD PTR _prefix$[ebp]
test eax, eax
je SHORT $LN65@xmlSAX2Sta
; 1791 : xmlFree(prefix);
push eax
call DWORD PTR _xmlFree
add esp, 4
$LN65@xmlSAX2Sta:
pop ebx
$LN64@xmlSAX2Sta:
pop edi
$LN9@xmlSAX2Sta:
pop esi
; 1792 :
; 1793 : }
mov esp, ebp
pop ebp
ret 0
_xmlSAX2StartElement ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2EndDocument
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_xmlSAX2EndDocument PROC ; COMDAT
; 1049 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
test esi, esi
je $LN6@xmlSAX2End
; 1050 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 1051 : #ifdef DEBUG_SAX
; 1052 : xmlGenericError(xmlGenericErrorContext,
; 1053 : "SAX.xmlSAX2EndDocument()\n");
; 1054 : #endif
; 1055 : if (ctx == NULL) return;
; 1056 : #ifdef LIBXML_VALID_ENABLED
; 1057 : if (ctxt->validate && ctxt->wellFormed &&
; 1058 : ctxt->myDoc && ctxt->myDoc->intSubset)
cmp DWORD PTR [esi+104], 0
je SHORT $LN3@xmlSAX2End
cmp DWORD PTR [esi+12], 0
je SHORT $LN3@xmlSAX2End
mov eax, DWORD PTR [esi+8]
test eax, eax
je SHORT $LN3@xmlSAX2End
cmp DWORD PTR [eax+44], 0
je SHORT $LN3@xmlSAX2End
; 1059 : ctxt->valid &= xmlValidateDocumentFinal(&ctxt->vctxt, ctxt->myDoc);
push eax
lea eax, DWORD PTR [esi+108]
push eax
call _xmlValidateDocumentFinal
add esp, 8
and DWORD PTR [esi+100], eax
$LN3@xmlSAX2End:
; 1060 : #endif /* LIBXML_VALID_ENABLED */
; 1061 :
; 1062 : /*
; 1063 : * Grab the encoding if it was added on-the-fly
; 1064 : */
; 1065 : if ((ctxt->encoding != NULL) && (ctxt->myDoc != NULL) &&
mov ecx, DWORD PTR [esi+24]
test ecx, ecx
je SHORT $LN4@xmlSAX2End
mov eax, DWORD PTR [esi+8]
test eax, eax
je SHORT $LN4@xmlSAX2End
cmp DWORD PTR [eax+60], 0
jne SHORT $LN4@xmlSAX2End
; 1066 : (ctxt->myDoc->encoding == NULL)) {
; 1067 : ctxt->myDoc->encoding = ctxt->encoding;
mov DWORD PTR [eax+60], ecx
; 1068 : ctxt->encoding = NULL;
mov DWORD PTR [esi+24], 0
$LN4@xmlSAX2End:
; 1069 : }
; 1070 : if ((ctxt->inputTab != NULL) &&
; 1071 : (ctxt->inputNr > 0) && (ctxt->inputTab[0] != NULL) &&
; 1072 : (ctxt->inputTab[0]->encoding != NULL) && (ctxt->myDoc != NULL) &&
mov eax, DWORD PTR [esi+48]
test eax, eax
je SHORT $LN5@xmlSAX2End
cmp DWORD PTR [esi+40], 0
jle SHORT $LN5@xmlSAX2End
mov eax, DWORD PTR [eax]
test eax, eax
je SHORT $LN5@xmlSAX2End
mov eax, DWORD PTR [eax+44]
test eax, eax
je SHORT $LN5@xmlSAX2End
mov ecx, DWORD PTR [esi+8]
test ecx, ecx
je SHORT $LN5@xmlSAX2End
cmp DWORD PTR [ecx+60], 0
jne SHORT $LN5@xmlSAX2End
; 1073 : (ctxt->myDoc->encoding == NULL)) {
; 1074 : ctxt->myDoc->encoding = xmlStrdup(ctxt->inputTab[0]->encoding);
push eax
call _xmlStrdup
mov ecx, DWORD PTR [esi+8]
add esp, 4
mov DWORD PTR [ecx+60], eax
$LN5@xmlSAX2End:
; 1075 : }
; 1076 : if ((ctxt->charset != XML_CHAR_ENCODING_NONE) && (ctxt->myDoc != NULL) &&
mov ecx, DWORD PTR [esi+256]
test ecx, ecx
je SHORT $LN6@xmlSAX2End
mov eax, DWORD PTR [esi+8]
test eax, eax
je SHORT $LN6@xmlSAX2End
cmp DWORD PTR [eax+76], 0
jne SHORT $LN6@xmlSAX2End
; 1077 : (ctxt->myDoc->charset == XML_CHAR_ENCODING_NONE)) {
; 1078 : ctxt->myDoc->charset = ctxt->charset;
mov DWORD PTR [eax+76], ecx
$LN6@xmlSAX2End:
pop esi
; 1079 : }
; 1080 : }
pop ebp
ret 0
_xmlSAX2EndDocument ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2StartDocument
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_xmlSAX2StartDocument PROC ; COMDAT
; 984 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
test esi, esi
je $LN14@xmlSAX2Sta
; 985 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 986 : xmlDocPtr doc;
; 987 :
; 988 : if (ctx == NULL) return;
; 989 :
; 990 : #ifdef DEBUG_SAX
; 991 : xmlGenericError(xmlGenericErrorContext,
; 992 : "SAX.xmlSAX2StartDocument()\n");
; 993 : #endif
; 994 : if (ctxt->html) {
cmp DWORD PTR [esi+32], 0
push edi
je SHORT $LN3@xmlSAX2Sta
; 995 : #ifdef LIBXML_HTML_ENABLED
; 996 : if (ctxt->myDoc == NULL)
mov eax, DWORD PTR [esi+8]
test eax, eax
jne SHORT $LN18@xmlSAX2Sta
; 997 : ctxt->myDoc = htmlNewDocNoDtD(NULL, NULL);
push eax
push eax
call _htmlNewDocNoDtD
add esp, 8
mov DWORD PTR [esi+8], eax
; 998 : if (ctxt->myDoc == NULL) {
test eax, eax
je $LN7@xmlSAX2Sta
$LN18@xmlSAX2Sta:
; 999 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartDocument");
; 1000 : return;
; 1001 : }
; 1002 : ctxt->myDoc->properties = XML_DOC_HTML;
mov DWORD PTR [eax+92], 128 ; 00000080H
; 1003 : ctxt->myDoc->parseFlags = ctxt->options;
mov ecx, DWORD PTR [esi+8]
mov eax, DWORD PTR [esi+360]
mov DWORD PTR [ecx+88], eax
; 1004 : #else
; 1005 : xmlGenericError(xmlGenericErrorContext,
; 1006 : "libxml2 built without HTML support\n");
; 1007 : ctxt->errNo = XML_ERR_INTERNAL_ERROR;
; 1008 : ctxt->instate = XML_PARSER_EOF;
; 1009 : ctxt->disableSAX = 1;
; 1010 : return;
; 1011 : #endif
; 1012 : } else {
jmp SHORT $LN12@xmlSAX2Sta
$LN3@xmlSAX2Sta:
; 1013 : doc = ctxt->myDoc = xmlNewDoc(ctxt->version);
push DWORD PTR [esi+20]
call _xmlNewDoc
mov edi, eax
add esp, 4
mov DWORD PTR [esi+8], edi
; 1014 : if (doc != NULL) {
test edi, edi
je $LN7@xmlSAX2Sta
; 1015 : doc->properties = 0;
mov DWORD PTR [edi+92], 0
; 1016 : if (ctxt->options & XML_PARSE_OLD10)
mov eax, DWORD PTR [esi+360]
test eax, 131072 ; 00020000H
je SHORT $LN9@xmlSAX2Sta
; 1017 : doc->properties |= XML_DOC_OLD10;
mov DWORD PTR [edi+92], 4
mov eax, DWORD PTR [esi+360]
$LN9@xmlSAX2Sta:
; 1018 : doc->parseFlags = ctxt->options;
mov DWORD PTR [edi+88], eax
; 1019 : if (ctxt->encoding != NULL)
mov eax, DWORD PTR [esi+24]
test eax, eax
je SHORT $LN10@xmlSAX2Sta
; 1020 : doc->encoding = xmlStrdup(ctxt->encoding);
push eax
call _xmlStrdup
add esp, 4
jmp SHORT $LN11@xmlSAX2Sta
$LN10@xmlSAX2Sta:
; 1021 : else
; 1022 : doc->encoding = NULL;
xor eax, eax
$LN11@xmlSAX2Sta:
; 1023 : doc->standalone = ctxt->standalone;
mov DWORD PTR [edi+60], eax
mov eax, DWORD PTR [esi+28]
mov DWORD PTR [edi+40], eax
; 1026 : return;
; 1027 : }
; 1028 : if ((ctxt->dictNames) && (doc != NULL)) {
cmp DWORD PTR [esi+364], 0
je SHORT $LN12@xmlSAX2Sta
; 1029 : doc->dict = ctxt->dict;
mov eax, DWORD PTR [esi+296]
; 1030 : xmlDictReference(doc->dict);
push eax
mov DWORD PTR [edi+80], eax
call _xmlDictReference
add esp, 4
$LN12@xmlSAX2Sta:
; 1031 : }
; 1032 : }
; 1033 : if ((ctxt->myDoc != NULL) && (ctxt->myDoc->URL == NULL) &&
; 1034 : (ctxt->input != NULL) && (ctxt->input->filename != NULL)) {
mov eax, DWORD PTR [esi+8]
test eax, eax
je SHORT $LN16@xmlSAX2Sta
cmp DWORD PTR [eax+72], 0
jne SHORT $LN16@xmlSAX2Sta
mov eax, DWORD PTR [esi+36]
test eax, eax
je SHORT $LN16@xmlSAX2Sta
mov eax, DWORD PTR [eax+4]
test eax, eax
je SHORT $LN16@xmlSAX2Sta
; 1035 : ctxt->myDoc->URL = xmlPathToURI((const xmlChar *)ctxt->input->filename);
push eax
call _xmlPathToURI
mov ecx, DWORD PTR [esi+8]
add esp, 4
mov DWORD PTR [ecx+72], eax
; 1036 : if (ctxt->myDoc->URL == NULL)
mov eax, DWORD PTR [esi+8]
cmp DWORD PTR [eax+72], 0
jne SHORT $LN16@xmlSAX2Sta
$LN7@xmlSAX2Sta:
; 1024 : } else {
; 1025 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartDocument");
push OFFSET ??_C@_0BF@BOIPPPAK@xmlSAX2StartDocument@
push esi
call _xmlSAX2ErrMemory
add esp, 8
$LN16@xmlSAX2Sta:
pop edi
$LN14@xmlSAX2Sta:
pop esi
; 1037 : xmlSAX2ErrMemory(ctxt, "xmlSAX2StartDocument");
; 1038 : }
; 1039 : }
pop ebp
ret 0
_xmlSAX2StartDocument ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2UnparsedEntityDecl
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_name$ = 12 ; size = 4
_publicId$ = 16 ; size = 4
_systemId$ = 20 ; size = 4
_notationName$ = 24 ; size = 4
_xmlSAX2UnparsedEntityDecl PROC ; COMDAT
; 902 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
test esi, esi
je $LN10@xmlSAX2Unp
; 903 : xmlEntityPtr ent;
; 904 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 905 : if (ctx == NULL) return;
; 906 : #ifdef DEBUG_SAX
; 907 : xmlGenericError(xmlGenericErrorContext,
; 908 : "SAX.xmlSAX2UnparsedEntityDecl(%s, %s, %s, %s)\n",
; 909 : name, publicId, systemId, notationName);
; 910 : #endif
; 911 : if (ctxt->inSubset == 1) {
mov eax, DWORD PTR [esi+216]
push ebx
push edi
cmp eax, 1
jne SHORT $LN3@xmlSAX2Unp
; 912 : ent = xmlAddDocEntity(ctxt->myDoc, name,
push DWORD PTR _notationName$[ebp]
mov edi, DWORD PTR _systemId$[ebp]
push edi
push DWORD PTR _publicId$[ebp]
push 3
push DWORD PTR _name$[ebp]
push DWORD PTR [esi+8]
call _xmlAddDocEntity
mov ebx, eax
add esp, 24 ; 00000018H
; 913 : XML_EXTERNAL_GENERAL_UNPARSED_ENTITY,
; 914 : publicId, systemId, notationName);
; 915 : if ((ent == NULL) && (ctxt->pedantic) &&
; 916 : (ctxt->sax != NULL) && (ctxt->sax->warning != NULL))
test ebx, ebx
jne $LN16@xmlSAX2Unp
cmp DWORD PTR [esi+268], eax
je $LN20@xmlSAX2Unp
mov eax, DWORD PTR [esi]
test eax, eax
je $LN20@xmlSAX2Unp
mov eax, DWORD PTR [eax+84]
test eax, eax
je $LN20@xmlSAX2Unp
; 917 : ctxt->sax->warning(ctxt->userData,
push DWORD PTR _name$[ebp]
push OFFSET ??_C@_0DD@GCBFDMPE@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@
; 938 : "Entity(%s) already defined in the external subset\n", name);
; 939 : if ((ent != NULL) && (ent->URI == NULL) && (systemId != NULL)) {
; 940 : xmlChar *URI;
; 941 : const char *base = NULL;
; 942 :
; 943 : if (ctxt->input != NULL)
; 944 : base = ctxt->input->filename;
; 945 : if (base == NULL)
; 946 : base = ctxt->directory;
push DWORD PTR [esi+4]
call eax
add esp, 12 ; 0000000cH
pop edi
pop ebx
pop esi
; 953 : "SAX.xmlSAX2UnparsedEntityDecl(%s) called while not in subset\n",
; 954 : name, NULL);
; 955 : }
; 956 : }
pop ebp
ret 0
$LN3@xmlSAX2Unp:
; 918 : "Entity(%s) already defined in the internal subset\n", name);
; 919 : if ((ent != NULL) && (ent->URI == NULL) && (systemId != NULL)) {
; 920 : xmlChar *URI;
; 921 : const char *base = NULL;
; 922 :
; 923 : if (ctxt->input != NULL)
; 924 : base = ctxt->input->filename;
; 925 : if (base == NULL)
; 926 : base = ctxt->directory;
; 927 :
; 928 : URI = xmlBuildURI(systemId, (const xmlChar *) base);
; 929 : ent->URI = URI;
; 930 : }
; 931 : } else if (ctxt->inSubset == 2) {
cmp eax, 2
jne SHORT $LN9@xmlSAX2Unp
; 932 : ent = xmlAddDtdEntity(ctxt->myDoc, name,
push DWORD PTR _notationName$[ebp]
mov edi, DWORD PTR _systemId$[ebp]
push edi
push DWORD PTR _publicId$[ebp]
push 3
push DWORD PTR _name$[ebp]
push DWORD PTR [esi+8]
call _xmlAddDtdEntity
mov ebx, eax
add esp, 24 ; 00000018H
; 933 : XML_EXTERNAL_GENERAL_UNPARSED_ENTITY,
; 934 : publicId, systemId, notationName);
; 935 : if ((ent == NULL) && (ctxt->pedantic) &&
; 936 : (ctxt->sax != NULL) && (ctxt->sax->warning != NULL))
test ebx, ebx
jne SHORT $LN16@xmlSAX2Unp
cmp DWORD PTR [esi+268], eax
je SHORT $LN20@xmlSAX2Unp
mov eax, DWORD PTR [esi]
test eax, eax
je SHORT $LN20@xmlSAX2Unp
mov eax, DWORD PTR [eax+84]
test eax, eax
je SHORT $LN20@xmlSAX2Unp
; 937 : ctxt->sax->warning(ctxt->userData,
push DWORD PTR _name$[ebp]
push OFFSET ??_C@_0DD@ECLLADNP@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@
; 938 : "Entity(%s) already defined in the external subset\n", name);
; 939 : if ((ent != NULL) && (ent->URI == NULL) && (systemId != NULL)) {
; 940 : xmlChar *URI;
; 941 : const char *base = NULL;
; 942 :
; 943 : if (ctxt->input != NULL)
; 944 : base = ctxt->input->filename;
; 945 : if (base == NULL)
; 946 : base = ctxt->directory;
push DWORD PTR [esi+4]
call eax
add esp, 12 ; 0000000cH
pop edi
pop ebx
pop esi
; 953 : "SAX.xmlSAX2UnparsedEntityDecl(%s) called while not in subset\n",
; 954 : name, NULL);
; 955 : }
; 956 : }
pop ebp
ret 0
$LN16@xmlSAX2Unp:
; 938 : "Entity(%s) already defined in the external subset\n", name);
; 939 : if ((ent != NULL) && (ent->URI == NULL) && (systemId != NULL)) {
; 940 : xmlChar *URI;
; 941 : const char *base = NULL;
; 942 :
; 943 : if (ctxt->input != NULL)
; 944 : base = ctxt->input->filename;
; 945 : if (base == NULL)
; 946 : base = ctxt->directory;
cmp DWORD PTR [ebx+64], 0
jne SHORT $LN20@xmlSAX2Unp
test edi, edi
je SHORT $LN20@xmlSAX2Unp
mov eax, DWORD PTR [esi+36]
test eax, eax
je SHORT $LN19@xmlSAX2Unp
mov eax, DWORD PTR [eax+4]
test eax, eax
jne SHORT $LN14@xmlSAX2Unp
$LN19@xmlSAX2Unp:
mov eax, DWORD PTR [esi+180]
$LN14@xmlSAX2Unp:
; 947 :
; 948 : URI = xmlBuildURI(systemId, (const xmlChar *) base);
push eax
push edi
call _xmlBuildURI
add esp, 8
; 949 : ent->URI = URI;
mov DWORD PTR [ebx+64], eax
pop edi
pop ebx
pop esi
; 953 : "SAX.xmlSAX2UnparsedEntityDecl(%s) called while not in subset\n",
; 954 : name, NULL);
; 955 : }
; 956 : }
pop ebp
ret 0
$LN9@xmlSAX2Unp:
; 950 : }
; 951 : } else {
; 952 : xmlFatalErrMsg(ctxt, XML_ERR_INTERNAL_ERROR,
push 0
push DWORD PTR _name$[ebp]
push OFFSET ??_C@_0DO@IABCNOGI@SAX?4xmlSAX2UnparsedEntityDecl?$CI?$CF@
push 1
push esi
call _xmlFatalErrMsg
add esp, 20 ; 00000014H
$LN20@xmlSAX2Unp:
pop edi
pop ebx
$LN10@xmlSAX2Unp:
pop esi
; 953 : "SAX.xmlSAX2UnparsedEntityDecl(%s) called while not in subset\n",
; 954 : name, NULL);
; 955 : }
; 956 : }
pop ebp
ret 0
_xmlSAX2UnparsedEntityDecl ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2NotationDecl
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_name$ = 12 ; size = 4
_publicId$ = 16 ; size = 4
_systemId$ = 20 ; size = 4
_xmlSAX2NotationDecl PROC ; COMDAT
; 850 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
test esi, esi
je $LN3@xmlSAX2Not
; 851 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 852 : xmlNotationPtr nota = NULL;
; 853 :
; 854 : if ((ctxt == NULL) || (ctxt->myDoc == NULL))
mov eax, DWORD PTR [esi+8]
test eax, eax
je SHORT $LN3@xmlSAX2Not
; 855 : return;
; 856 :
; 857 : #ifdef DEBUG_SAX
; 858 : xmlGenericError(xmlGenericErrorContext,
; 859 : "SAX.xmlSAX2NotationDecl(%s, %s, %s)\n", name, publicId, systemId);
; 860 : #endif
; 861 :
; 862 : if ((publicId == NULL) && (systemId == NULL)) {
cmp DWORD PTR _publicId$[ebp], 0
mov edx, DWORD PTR _systemId$[ebp]
jne SHORT $LN4@xmlSAX2Not
test edx, edx
jne SHORT $LN4@xmlSAX2Not
; 863 : xmlFatalErrMsg(ctxt, XML_ERR_NOTATION_PROCESSING,
push edx
push DWORD PTR _name$[ebp]
push OFFSET ??_C@_0DM@OMFMKHI@SAX?4xmlSAX2NotationDecl?$CI?$CFs?$CJ?5ext@
push 105 ; 00000069H
push esi
call _xmlFatalErrMsg
add esp, 20 ; 00000014H
pop esi
; 884 : nota);
; 885 : #endif /* LIBXML_VALID_ENABLED */
; 886 : }
pop ebp
ret 0
$LN4@xmlSAX2Not:
; 864 : "SAX.xmlSAX2NotationDecl(%s) externalID or PublicID missing\n",
; 865 : name, NULL);
; 866 : return;
; 867 : } else if (ctxt->inSubset == 1)
mov ecx, DWORD PTR [esi+216]
cmp ecx, 1
jne SHORT $LN6@xmlSAX2Not
; 868 : nota = xmlAddNotationDecl(&ctxt->vctxt, ctxt->myDoc->intSubset, name,
mov eax, DWORD PTR [eax+44]
jmp SHORT $LN9@xmlSAX2Not
$LN6@xmlSAX2Not:
; 869 : publicId, systemId);
; 870 : else if (ctxt->inSubset == 2)
cmp ecx, 2
jne SHORT $LN8@xmlSAX2Not
; 871 : nota = xmlAddNotationDecl(&ctxt->vctxt, ctxt->myDoc->extSubset, name,
mov eax, DWORD PTR [eax+48]
$LN9@xmlSAX2Not:
push ebx
; 875 : "SAX.xmlSAX2NotationDecl(%s) called while not in subset\n",
; 876 : name, NULL);
; 877 : return;
; 878 : }
; 879 : #ifdef LIBXML_VALID_ENABLED
; 880 : if (nota == NULL) ctxt->valid = 0;
push edx
push DWORD PTR _publicId$[ebp]
lea ebx, DWORD PTR [esi+108]
push DWORD PTR _name$[ebp]
push eax
push ebx
call _xmlAddNotationDecl
mov ecx, eax
add esp, 20 ; 00000014H
test ecx, ecx
jne SHORT $LN14@xmlSAX2Not
mov DWORD PTR [esi+100], eax
$LN14@xmlSAX2Not:
; 881 : if ((ctxt->validate) && (ctxt->wellFormed) &&
cmp DWORD PTR [esi+104], 0
je SHORT $LN15@xmlSAX2Not
cmp DWORD PTR [esi+12], 0
je SHORT $LN15@xmlSAX2Not
mov eax, DWORD PTR [esi+8]
cmp DWORD PTR [eax+44], 0
je SHORT $LN15@xmlSAX2Not
; 882 : (ctxt->myDoc->intSubset != NULL))
; 883 : ctxt->valid &= xmlValidateNotationDecl(&ctxt->vctxt, ctxt->myDoc,
push ecx
push eax
push ebx
call _xmlValidateNotationDecl
add esp, 12 ; 0000000cH
and DWORD PTR [esi+100], eax
$LN15@xmlSAX2Not:
pop ebx
$LN3@xmlSAX2Not:
pop esi
; 884 : nota);
; 885 : #endif /* LIBXML_VALID_ENABLED */
; 886 : }
pop ebp
ret 0
$LN8@xmlSAX2Not:
; 872 : publicId, systemId);
; 873 : else {
; 874 : xmlFatalErrMsg(ctxt, XML_ERR_NOTATION_PROCESSING,
push 0
push DWORD PTR _name$[ebp]
push OFFSET ??_C@_0DI@MAMMGJDO@SAX?4xmlSAX2NotationDecl?$CI?$CFs?$CJ?5cal@
push 105 ; 00000069H
push esi
call _xmlFatalErrMsg
add esp, 20 ; 00000014H
pop esi
; 884 : nota);
; 885 : #endif /* LIBXML_VALID_ENABLED */
; 886 : }
pop ebp
ret 0
_xmlSAX2NotationDecl ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2ElementDecl
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_name$ = 12 ; size = 4
_type$ = 16 ; size = 4
_content$ = 20 ; size = 4
_xmlSAX2ElementDecl PROC ; COMDAT
; 804 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
test esi, esi
je SHORT $LN3@xmlSAX2Ele
; 805 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 806 : xmlElementPtr elem = NULL;
; 807 :
; 808 : if ((ctxt == NULL) || (ctxt->myDoc == NULL))
mov eax, DWORD PTR [esi+8]
test eax, eax
je SHORT $LN3@xmlSAX2Ele
; 809 : return;
; 810 :
; 811 : #ifdef DEBUG_SAX
; 812 : xmlGenericError(xmlGenericErrorContext,
; 813 : "SAX.xmlSAX2ElementDecl(%s, %d, ...)\n", name, type);
; 814 : #endif
; 815 :
; 816 : if (ctxt->inSubset == 1)
mov ecx, DWORD PTR [esi+216]
cmp ecx, 1
jne SHORT $LN4@xmlSAX2Ele
; 817 : elem = xmlAddElementDecl(&ctxt->vctxt, ctxt->myDoc->intSubset,
mov eax, DWORD PTR [eax+44]
jmp SHORT $LN7@xmlSAX2Ele
$LN4@xmlSAX2Ele:
; 818 : name, (xmlElementTypeVal) type, content);
; 819 : else if (ctxt->inSubset == 2)
cmp ecx, 2
jne SHORT $LN6@xmlSAX2Ele
; 820 : elem = xmlAddElementDecl(&ctxt->vctxt, ctxt->myDoc->extSubset,
mov eax, DWORD PTR [eax+48]
$LN7@xmlSAX2Ele:
push edi
; 824 : "SAX.xmlSAX2ElementDecl(%s) called while not in subset\n",
; 825 : name, NULL);
; 826 : return;
; 827 : }
; 828 : #ifdef LIBXML_VALID_ENABLED
; 829 : if (elem == NULL)
push DWORD PTR _content$[ebp]
lea edi, DWORD PTR [esi+108]
push DWORD PTR _type$[ebp]
push DWORD PTR _name$[ebp]
push eax
push edi
call _xmlAddElementDecl
mov ecx, eax
add esp, 20 ; 00000014H
test ecx, ecx
jne SHORT $LN12@xmlSAX2Ele
; 830 : ctxt->valid = 0;
mov DWORD PTR [esi+100], eax
$LN12@xmlSAX2Ele:
; 831 : if (ctxt->validate && ctxt->wellFormed &&
; 832 : ctxt->myDoc && ctxt->myDoc->intSubset)
cmp DWORD PTR [esi+104], 0
je SHORT $LN13@xmlSAX2Ele
cmp DWORD PTR [esi+12], 0
je SHORT $LN13@xmlSAX2Ele
mov eax, DWORD PTR [esi+8]
test eax, eax
je SHORT $LN13@xmlSAX2Ele
cmp DWORD PTR [eax+44], 0
je SHORT $LN13@xmlSAX2Ele
; 833 : ctxt->valid &=
push ecx
push eax
push edi
call _xmlValidateElementDecl
add esp, 12 ; 0000000cH
and DWORD PTR [esi+100], eax
$LN13@xmlSAX2Ele:
pop edi
$LN3@xmlSAX2Ele:
pop esi
; 834 : xmlValidateElementDecl(&ctxt->vctxt, ctxt->myDoc, elem);
; 835 : #endif /* LIBXML_VALID_ENABLED */
; 836 : }
pop ebp
ret 0
$LN6@xmlSAX2Ele:
; 821 : name, (xmlElementTypeVal) type, content);
; 822 : else {
; 823 : xmlFatalErrMsg(ctxt, XML_ERR_INTERNAL_ERROR,
push 0
push DWORD PTR _name$[ebp]
push OFFSET ??_C@_0DH@FINDFGFC@SAX?4xmlSAX2ElementDecl?$CI?$CFs?$CJ?5call@
push 1
push esi
call _xmlFatalErrMsg
add esp, 20 ; 00000014H
pop esi
; 834 : xmlValidateElementDecl(&ctxt->vctxt, ctxt->myDoc, elem);
; 835 : #endif /* LIBXML_VALID_ENABLED */
; 836 : }
pop ebp
ret 0
_xmlSAX2ElementDecl ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2AttributeDecl
_TEXT SEGMENT
_prefix$ = -4 ; size = 4
_ctx$ = 8 ; size = 4
_elem$ = 12 ; size = 4
_fullname$ = 16 ; size = 4
_type$ = 20 ; size = 4
_def$ = 24 ; size = 4
_defaultValue$ = 28 ; size = 4
_tree$ = 32 ; size = 4
_xmlSAX2AttributeDecl PROC ; COMDAT
; 737 : {
push ebp
mov ebp, esp
push ecx
push edi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov edi, DWORD PTR _ctx$[ebp]
mov DWORD PTR _prefix$[ebp], 0
test edi, edi
je $LN3@xmlSAX2Att
; 738 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 739 : xmlAttributePtr attr;
; 740 : xmlChar *name = NULL, *prefix = NULL;
; 741 :
; 742 : if ((ctxt == NULL) || (ctxt->myDoc == NULL))
cmp DWORD PTR [edi+8], 0
je $LN3@xmlSAX2Att
; 743 : return;
; 744 :
; 745 : #ifdef DEBUG_SAX
; 746 : xmlGenericError(xmlGenericErrorContext,
; 747 : "SAX.xmlSAX2AttributeDecl(%s, %s, %d, %d, %s, ...)\n",
; 748 : elem, fullname, type, def, defaultValue);
; 749 : #endif
; 750 : if ((xmlStrEqual(fullname, BAD_CAST "xml:id")) &&
push ebx
mov ebx, DWORD PTR _fullname$[ebp]
push esi
push OFFSET ??_C@_06IMLNHOMM@xml?3id@
push ebx
call _xmlStrEqual
add esp, 8
test eax, eax
je SHORT $LN4@xmlSAX2Att
cmp DWORD PTR _type$[ebp], 2
je SHORT $LN4@xmlSAX2Att
; 751 : (type != XML_ATTRIBUTE_ID)) {
; 752 : /*
; 753 : * Raise the error but keep the validity flag
; 754 : */
; 755 : int tmp = ctxt->valid;
mov esi, DWORD PTR [edi+100]
; 756 : xmlErrValid(ctxt, XML_DTD_XMLID_TYPE,
push 0
push 0
push OFFSET ??_C@_0CG@DOFEKNB@xml?3id?5?3?5attribute?5type?5should?5@
push 540 ; 0000021cH
push edi
call _xmlErrValid
add esp, 20 ; 00000014H
; 757 : "xml:id : attribute type should be ID\n", NULL, NULL);
; 758 : ctxt->valid = tmp;
mov DWORD PTR [edi+100], esi
$LN4@xmlSAX2Att:
; 759 : }
; 760 : /* TODO: optimize name/prefix allocation */
; 761 : name = xmlSplitQName(ctxt, fullname, &prefix);
lea eax, DWORD PTR _prefix$[ebp]
push eax
push ebx
push edi
call _xmlSplitQName
mov esi, eax
; 762 : ctxt->vctxt.valid = 1;
mov DWORD PTR [edi+144], 1
; 763 : if (ctxt->inSubset == 1)
mov eax, DWORD PTR [edi+216]
add esp, 12 ; 0000000cH
cmp eax, 1
jne SHORT $LN5@xmlSAX2Att
; 764 : attr = xmlAddAttributeDecl(&ctxt->vctxt, ctxt->myDoc->intSubset, elem,
push DWORD PTR _tree$[ebp]
mov eax, DWORD PTR _type$[ebp]
push DWORD PTR _defaultValue$[ebp]
push DWORD PTR _def$[ebp]
push eax
push DWORD PTR _prefix$[ebp]
mov eax, DWORD PTR [edi+8]
push esi
push DWORD PTR _elem$[ebp]
push DWORD PTR [eax+44]
jmp SHORT $LN18@xmlSAX2Att
$LN5@xmlSAX2Att:
; 765 : name, prefix, (xmlAttributeType) type,
; 766 : (xmlAttributeDefault) def, defaultValue, tree);
; 767 : else if (ctxt->inSubset == 2)
cmp eax, 2
jne $LN7@xmlSAX2Att
; 768 : attr = xmlAddAttributeDecl(&ctxt->vctxt, ctxt->myDoc->extSubset, elem,
push DWORD PTR _tree$[ebp]
mov eax, DWORD PTR _type$[ebp]
push DWORD PTR _defaultValue$[ebp]
push DWORD PTR _def$[ebp]
push eax
push DWORD PTR _prefix$[ebp]
mov eax, DWORD PTR [edi+8]
push esi
push DWORD PTR _elem$[ebp]
push DWORD PTR [eax+48]
$LN18@xmlSAX2Att:
; 776 : return;
; 777 : }
; 778 : #ifdef LIBXML_VALID_ENABLED
; 779 : if (ctxt->vctxt.valid == 0)
lea ebx, DWORD PTR [edi+108]
push ebx
call _xmlAddAttributeDecl
add esp, 36 ; 00000024H
mov ecx, eax
cmp DWORD PTR [edi+144], 0
jne SHORT $LN15@xmlSAX2Att
; 780 : ctxt->valid = 0;
mov DWORD PTR [edi+100], 0
$LN15@xmlSAX2Att:
; 781 : if ((attr != NULL) && (ctxt->validate) && (ctxt->wellFormed) &&
test ecx, ecx
je SHORT $LN10@xmlSAX2Att
cmp DWORD PTR [edi+104], 0
je SHORT $LN10@xmlSAX2Att
cmp DWORD PTR [edi+12], 0
je SHORT $LN10@xmlSAX2Att
mov eax, DWORD PTR [edi+8]
cmp DWORD PTR [eax+44], 0
je SHORT $LN10@xmlSAX2Att
; 782 : (ctxt->myDoc->intSubset != NULL))
; 783 : ctxt->valid &= xmlValidateAttributeDecl(&ctxt->vctxt, ctxt->myDoc,
push ecx
push eax
push ebx
call _xmlValidateAttributeDecl
add esp, 12 ; 0000000cH
and DWORD PTR [edi+100], eax
$LN10@xmlSAX2Att:
; 784 : attr);
; 785 : #endif /* LIBXML_VALID_ENABLED */
; 786 : if (prefix != NULL)
mov eax, DWORD PTR _prefix$[ebp]
test eax, eax
je SHORT $LN11@xmlSAX2Att
; 787 : xmlFree(prefix);
push eax
call DWORD PTR _xmlFree
add esp, 4
$LN11@xmlSAX2Att:
; 788 : if (name != NULL)
test esi, esi
je SHORT $LN16@xmlSAX2Att
; 789 : xmlFree(name);
push esi
call DWORD PTR _xmlFree
add esp, 4
pop esi
pop ebx
pop edi
; 790 : }
mov esp, ebp
pop ebp
ret 0
$LN7@xmlSAX2Att:
; 769 : name, prefix, (xmlAttributeType) type,
; 770 : (xmlAttributeDefault) def, defaultValue, tree);
; 771 : else {
; 772 : xmlFatalErrMsg(ctxt, XML_ERR_INTERNAL_ERROR,
push 0
push esi
push OFFSET ??_C@_0DJ@CKOJIFJI@SAX?4xmlSAX2AttributeDecl?$CI?$CFs?$CJ?5ca@
push 1
push edi
call _xmlFatalErrMsg
; 773 : "SAX.xmlSAX2AttributeDecl(%s) called while not in subset\n",
; 774 : name, NULL);
; 775 : xmlFreeEnumeration(tree);
push DWORD PTR _tree$[ebp]
call _xmlFreeEnumeration
add esp, 24 ; 00000018H
$LN16@xmlSAX2Att:
pop esi
pop ebx
$LN3@xmlSAX2Att:
pop edi
; 790 : }
mov esp, ebp
pop ebp
ret 0
_xmlSAX2AttributeDecl ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2EntityDecl
_TEXT SEGMENT
_ent$1$ = 8 ; size = 4
_ctx$ = 8 ; size = 4
_name$ = 12 ; size = 4
_type$ = 16 ; size = 4
_publicId$ = 20 ; size = 4
_systemId$ = 24 ; size = 4
_content$ = 28 ; size = 4
_xmlSAX2EntityDecl PROC ; COMDAT
; 666 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
test esi, esi
je $LN10@xmlSAX2Ent
; 667 : xmlEntityPtr ent;
; 668 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 669 :
; 670 : if (ctx == NULL) return;
; 671 : #ifdef DEBUG_SAX
; 672 : xmlGenericError(xmlGenericErrorContext,
; 673 : "SAX.xmlSAX2EntityDecl(%s, %d, %s, %s, %s)\n",
; 674 : name, type, publicId, systemId, content);
; 675 : #endif
; 676 : if (ctxt->inSubset == 1) {
mov eax, DWORD PTR [esi+216]
push ebx
push edi
cmp eax, 1
jne $LN3@xmlSAX2Ent
; 677 : ent = xmlAddDocEntity(ctxt->myDoc, name, type, publicId,
push DWORD PTR _content$[ebp]
mov ebx, DWORD PTR _systemId$[ebp]
mov edi, DWORD PTR _name$[ebp]
push ebx
push DWORD PTR _publicId$[ebp]
push DWORD PTR _type$[ebp]
push edi
push DWORD PTR [esi+8]
call _xmlAddDocEntity
add esp, 24 ; 00000018H
mov DWORD PTR _ent$1$[ebp], eax
; 678 : systemId, content);
; 679 : if ((ent == NULL) && (ctxt->pedantic))
test eax, eax
jne SHORT $LN21@xmlSAX2Ent
cmp DWORD PTR [esi+268], eax
je $LN24@xmlSAX2Ent
; 172 : if ((ctxt != NULL) && (ctxt->disableSAX != 0) &&
cmp DWORD PTR [esi+212], eax
je SHORT $LN17@xmlSAX2Ent
cmp DWORD PTR [esi+172], -1
je $LN24@xmlSAX2Ent
$LN17@xmlSAX2Ent:
; 173 : (ctxt->instate == XML_PARSER_EOF))
; 174 : return;
; 175 : if (ctxt != NULL)
; 176 : ctxt->errNo = error;
; 177 : __xmlRaiseError(NULL, NULL, NULL, ctxt, NULL, XML_FROM_PARSER, error,
push edi
push OFFSET ??_C@_0DD@GCBFDMPE@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 1
push 107 ; 0000006bH
push 1
push 0
push esi
push 0
push 0
push 0
mov DWORD PTR [esi+84], 107 ; 0000006bH
call ___xmlRaiseError
add esp, 68 ; 00000044H
pop edi
pop ebx
pop esi
; 716 : "SAX.xmlSAX2EntityDecl(%s) called while not in subset\n",
; 717 : name, NULL);
; 718 : }
; 719 : }
pop ebp
ret 0
$LN21@xmlSAX2Ent:
; 680 : xmlWarnMsg(ctxt, XML_WAR_ENTITY_REDEFINED,
; 681 : "Entity(%s) already defined in the internal subset\n",
; 682 : name);
; 683 : if ((ent != NULL) && (ent->URI == NULL) && (systemId != NULL)) {
cmp DWORD PTR [eax+64], 0
jne $LN24@xmlSAX2Ent
test ebx, ebx
je $LN24@xmlSAX2Ent
; 684 : xmlChar *URI;
; 685 : const char *base = NULL;
; 686 :
; 687 : if (ctxt->input != NULL)
mov eax, DWORD PTR [esi+36]
test eax, eax
je SHORT $LN22@xmlSAX2Ent
; 688 : base = ctxt->input->filename;
mov eax, DWORD PTR [eax+4]
; 689 : if (base == NULL)
test eax, eax
jne SHORT $LN8@xmlSAX2Ent
$LN22@xmlSAX2Ent:
; 690 : base = ctxt->directory;
mov eax, DWORD PTR [esi+180]
$LN8@xmlSAX2Ent:
; 691 :
; 692 : URI = xmlBuildURI(systemId, (const xmlChar *) base);
push eax
push ebx
call _xmlBuildURI
; 693 : ent->URI = URI;
mov ecx, DWORD PTR _ent$1$[ebp]
add esp, 8
pop edi
pop ebx
mov DWORD PTR [ecx+64], eax
pop esi
; 716 : "SAX.xmlSAX2EntityDecl(%s) called while not in subset\n",
; 717 : name, NULL);
; 718 : }
; 719 : }
pop ebp
ret 0
$LN3@xmlSAX2Ent:
; 694 : }
; 695 : } else if (ctxt->inSubset == 2) {
cmp eax, 2
jne SHORT $LN9@xmlSAX2Ent
; 696 : ent = xmlAddDtdEntity(ctxt->myDoc, name, type, publicId,
push DWORD PTR _content$[ebp]
mov edi, DWORD PTR _systemId$[ebp]
push edi
push DWORD PTR _publicId$[ebp]
push DWORD PTR _type$[ebp]
push DWORD PTR _name$[ebp]
push DWORD PTR [esi+8]
call _xmlAddDtdEntity
mov ebx, eax
add esp, 24 ; 00000018H
; 697 : systemId, content);
; 698 : if ((ent == NULL) && (ctxt->pedantic) &&
; 699 : (ctxt->sax != NULL) && (ctxt->sax->warning != NULL))
test ebx, ebx
jne SHORT $LN20@xmlSAX2Ent
cmp DWORD PTR [esi+268], eax
je SHORT $LN24@xmlSAX2Ent
mov eax, DWORD PTR [esi]
test eax, eax
je SHORT $LN24@xmlSAX2Ent
mov eax, DWORD PTR [eax+84]
test eax, eax
je SHORT $LN24@xmlSAX2Ent
; 700 : ctxt->sax->warning(ctxt->userData,
push DWORD PTR _name$[ebp]
push OFFSET ??_C@_0DD@ECLLADNP@Entity?$CI?$CFs?$CJ?5already?5defined?5in?5t@
push DWORD PTR [esi+4]
call eax
add esp, 12 ; 0000000cH
pop edi
pop ebx
pop esi
; 716 : "SAX.xmlSAX2EntityDecl(%s) called while not in subset\n",
; 717 : name, NULL);
; 718 : }
; 719 : }
pop ebp
ret 0
$LN20@xmlSAX2Ent:
; 701 : "Entity(%s) already defined in the external subset\n", name);
; 702 : if ((ent != NULL) && (ent->URI == NULL) && (systemId != NULL)) {
cmp DWORD PTR [ebx+64], 0
jne SHORT $LN24@xmlSAX2Ent
test edi, edi
je SHORT $LN24@xmlSAX2Ent
; 703 : xmlChar *URI;
; 704 : const char *base = NULL;
; 705 :
; 706 : if (ctxt->input != NULL)
mov eax, DWORD PTR [esi+36]
test eax, eax
je SHORT $LN23@xmlSAX2Ent
; 707 : base = ctxt->input->filename;
mov eax, DWORD PTR [eax+4]
; 708 : if (base == NULL)
test eax, eax
jne SHORT $LN14@xmlSAX2Ent
$LN23@xmlSAX2Ent:
; 709 : base = ctxt->directory;
mov eax, DWORD PTR [esi+180]
$LN14@xmlSAX2Ent:
; 710 :
; 711 : URI = xmlBuildURI(systemId, (const xmlChar *) base);
push eax
push edi
call _xmlBuildURI
add esp, 8
; 712 : ent->URI = URI;
mov DWORD PTR [ebx+64], eax
pop edi
pop ebx
pop esi
; 716 : "SAX.xmlSAX2EntityDecl(%s) called while not in subset\n",
; 717 : name, NULL);
; 718 : }
; 719 : }
pop ebp
ret 0
$LN9@xmlSAX2Ent:
; 713 : }
; 714 : } else {
; 715 : xmlFatalErrMsg(ctxt, XML_ERR_ENTITY_PROCESSING,
push 0
push DWORD PTR _name$[ebp]
push OFFSET ??_C@_0DG@EGJGBEOC@SAX?4xmlSAX2EntityDecl?$CI?$CFs?$CJ?5calle@
push 104 ; 00000068H
push esi
call _xmlFatalErrMsg
add esp, 20 ; 00000014H
$LN24@xmlSAX2Ent:
pop edi
pop ebx
$LN10@xmlSAX2Ent:
pop esi
; 716 : "SAX.xmlSAX2EntityDecl(%s) called while not in subset\n",
; 717 : name, NULL);
; 718 : }
; 719 : }
pop ebp
ret 0
_xmlSAX2EntityDecl ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2ResolveEntity
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_publicId$ = 12 ; size = 4
_systemId$ = 16 ; size = 4
_xmlSAX2ResolveEntity PROC ; COMDAT
; 520 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
test esi, esi
jne SHORT $LN2@xmlSAX2Res
; 521 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 522 : xmlParserInputPtr ret;
; 523 : xmlChar *URI;
; 524 : const char *base = NULL;
; 525 :
; 526 : if (ctx == NULL) return(NULL);
xor eax, eax
pop esi
; 544 : }
pop ebp
ret 0
$LN2@xmlSAX2Res:
; 527 : if (ctxt->input != NULL)
mov eax, DWORD PTR [esi+36]
test eax, eax
je SHORT $LN7@xmlSAX2Res
; 528 : base = ctxt->input->filename;
mov eax, DWORD PTR [eax+4]
; 529 : if (base == NULL)
test eax, eax
jne SHORT $LN4@xmlSAX2Res
$LN7@xmlSAX2Res:
; 530 : base = ctxt->directory;
mov eax, DWORD PTR [esi+180]
$LN4@xmlSAX2Res:
push edi
; 531 :
; 532 : URI = xmlBuildURI(systemId, (const xmlChar *) base);
push eax
push DWORD PTR _systemId$[ebp]
call _xmlBuildURI
; 533 :
; 534 : #ifdef DEBUG_SAX
; 535 : xmlGenericError(xmlGenericErrorContext,
; 536 : "SAX.xmlSAX2ResolveEntity(%s, %s)\n", publicId, systemId);
; 537 : #endif
; 538 :
; 539 : ret = xmlLoadExternalEntity((const char *) URI,
push esi
push DWORD PTR _publicId$[ebp]
mov edi, eax
push edi
call _xmlLoadExternalEntity
add esp, 20 ; 00000014H
mov esi, eax
; 540 : (const char *) publicId, ctxt);
; 541 : if (URI != NULL)
test edi, edi
je SHORT $LN5@xmlSAX2Res
; 542 : xmlFree(URI);
push edi
call DWORD PTR _xmlFree
add esp, 4
$LN5@xmlSAX2Res:
; 543 : return(ret);
pop edi
mov eax, esi
pop esi
; 544 : }
pop ebp
ret 0
_xmlSAX2ResolveEntity ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2GetParameterEntity
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_name$ = 12 ; size = 4
_xmlSAX2GetParameterEntity PROC ; COMDAT
; 637 : {
push ebp
mov ebp, esp
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _ctx$[ebp]
test eax, eax
jne SHORT $LN2@xmlSAX2Get
; 648 : return(ret);
; 649 : }
pop ebp
ret 0
$LN2@xmlSAX2Get:
; 638 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 639 : xmlEntityPtr ret;
; 640 :
; 641 : if (ctx == NULL) return(NULL);
; 642 : #ifdef DEBUG_SAX
; 643 : xmlGenericError(xmlGenericErrorContext,
; 644 : "SAX.xmlSAX2GetParameterEntity(%s)\n", name);
; 645 : #endif
; 646 :
; 647 : ret = xmlGetParameterEntity(ctxt->myDoc, name);
push DWORD PTR _name$[ebp]
push DWORD PTR [eax+8]
call _xmlGetParameterEntity
add esp, 8
; 648 : return(ret);
; 649 : }
pop ebp
ret 0
_xmlSAX2GetParameterEntity ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2GetEntity
_TEXT SEGMENT
_oldnbent$1$ = -4 ; size = 4
_children$1 = 8 ; size = 4
_ctx$ = 8 ; size = 4
_name$ = 12 ; size = 4
_xmlSAX2GetEntity PROC ; COMDAT
; 557 : {
push ebp
mov ebp, esp
push ecx
push edi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov edi, DWORD PTR _ctx$[ebp]
test edi, edi
jne SHORT $LN2@xmlSAX2Get
; 558 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 559 : xmlEntityPtr ret = NULL;
; 560 :
; 561 : if (ctx == NULL) return(NULL);
xor eax, eax
pop edi
; 624 : }
mov esp, ebp
pop ebp
ret 0
$LN2@xmlSAX2Get:
; 562 : #ifdef DEBUG_SAX
; 563 : xmlGenericError(xmlGenericErrorContext,
; 564 : "SAX.xmlSAX2GetEntity(%s)\n", name);
; 565 : #endif
; 566 :
; 567 : if (ctxt->inSubset == 0) {
cmp DWORD PTR [edi+216], 0
push ebx
mov ebx, DWORD PTR _name$[ebp]
jne SHORT $LN20@xmlSAX2Get
; 568 : ret = xmlGetPredefinedEntity(name);
push ebx
call _xmlGetPredefinedEntity
add esp, 4
; 569 : if (ret != NULL)
test eax, eax
jne $LN21@xmlSAX2Get
$LN20@xmlSAX2Get:
; 570 : return(ret);
; 571 : }
; 572 : if ((ctxt->myDoc != NULL) && (ctxt->myDoc->standalone == 1)) {
mov eax, DWORD PTR [edi+8]
push esi
test eax, eax
je SHORT $LN5@xmlSAX2Get
cmp DWORD PTR [eax+40], 1
jne SHORT $LN5@xmlSAX2Get
; 573 : if (ctxt->inSubset == 2) {
cmp DWORD PTR [edi+216], 2
push ebx
jne SHORT $LN7@xmlSAX2Get
; 574 : ctxt->myDoc->standalone = 0;
mov DWORD PTR [eax+40], 0
; 575 : ret = xmlGetDocEntity(ctxt->myDoc, name);
push DWORD PTR [edi+8]
call _xmlGetDocEntity
; 576 : ctxt->myDoc->standalone = 1;
mov ecx, DWORD PTR [edi+8]
mov DWORD PTR [ecx+40], 1
; 577 : } else {
jmp SHORT $LN23@xmlSAX2Get
$LN7@xmlSAX2Get:
; 578 : ret = xmlGetDocEntity(ctxt->myDoc, name);
push eax
call _xmlGetDocEntity
mov esi, eax
add esp, 8
; 579 : if (ret == NULL) {
test esi, esi
jne SHORT $LN19@xmlSAX2Get
; 580 : ctxt->myDoc->standalone = 0;
mov eax, DWORD PTR [edi+8]
; 581 : ret = xmlGetDocEntity(ctxt->myDoc, name);
push ebx
mov DWORD PTR [eax+40], esi
push DWORD PTR [edi+8]
call _xmlGetDocEntity
mov esi, eax
add esp, 8
; 582 : if (ret != NULL) {
test esi, esi
je SHORT $LN10@xmlSAX2Get
; 583 : xmlFatalErrMsg(ctxt, XML_ERR_NOT_STANDALONE,
push 0
push ebx
push OFFSET ??_C@_0EE@PPDHKGIC@Entity?$CI?$CFs?$CJ?5document?5marked?5stan@
push 103 ; 00000067H
push edi
call _xmlFatalErrMsg
add esp, 20 ; 00000014H
$LN10@xmlSAX2Get:
; 584 : "Entity(%s) document marked standalone but requires external subset\n",
; 585 : name, NULL);
; 586 : }
; 587 : ctxt->myDoc->standalone = 1;
mov eax, DWORD PTR [edi+8]
mov DWORD PTR [eax+40], 1
; 588 : }
; 589 : }
; 590 : } else {
jmp SHORT $LN6@xmlSAX2Get
$LN5@xmlSAX2Get:
; 591 : ret = xmlGetDocEntity(ctxt->myDoc, name);
push ebx
push eax
call _xmlGetDocEntity
$LN23@xmlSAX2Get:
; 592 : }
; 593 : if ((ret != NULL) &&
; 594 : ((ctxt->validate) || (ctxt->replaceEntities)) &&
; 595 : (ret->children == NULL) &&
mov esi, eax
add esp, 8
$LN6@xmlSAX2Get:
test esi, esi
je SHORT $LN16@xmlSAX2Get
$LN19@xmlSAX2Get:
cmp DWORD PTR [edi+104], 0
jne SHORT $LN12@xmlSAX2Get
cmp DWORD PTR [edi+16], 0
je SHORT $LN16@xmlSAX2Get
$LN12@xmlSAX2Get:
cmp DWORD PTR [esi+12], 0
jne SHORT $LN16@xmlSAX2Get
cmp DWORD PTR [esi+48], 2
jne SHORT $LN16@xmlSAX2Get
; 596 : (ret->etype == XML_EXTERNAL_GENERAL_PARSED_ENTITY)) {
; 597 : int val;
; 598 :
; 599 : /*
; 600 : * for validation purposes we really need to fetch and
; 601 : * parse the external entity
; 602 : */
; 603 : xmlNodePtr children;
; 604 : unsigned long oldnbent = ctxt->nbentities;
mov eax, DWORD PTR [edi+440]
mov DWORD PTR _oldnbent$1$[ebp], eax
; 605 :
; 606 : val = xmlParseCtxtExternalEntity(ctxt, ret->URI,
lea eax, DWORD PTR _children$1[ebp]
push eax
push DWORD PTR [esi+52]
push DWORD PTR [esi+64]
push edi
call _xmlParseCtxtExternalEntity
add esp, 16 ; 00000010H
; 607 : ret->ExternalID, &children);
; 608 : if (val == 0) {
test eax, eax
jne SHORT $LN13@xmlSAX2Get
; 609 : xmlAddChildList((xmlNodePtr) ret, children);
push DWORD PTR _children$1[ebp]
push esi
call _xmlAddChildList
add esp, 8
; 615 : }
; 616 : ret->owner = 1;
mov DWORD PTR [esi+68], 1
; 617 : if (ret->checked == 0) {
cmp DWORD PTR [esi+72], 0
jne SHORT $LN16@xmlSAX2Get
; 618 : ret->checked = (ctxt->nbentities - oldnbent + 1) * 2;
mov eax, DWORD PTR [edi+440]
sub eax, DWORD PTR _oldnbent$1$[ebp]
lea eax, DWORD PTR [eax*2+2]
mov DWORD PTR [esi+72], eax
; 619 : if ((ret->content != NULL) && (xmlStrchr(ret->content, '<')))
mov eax, DWORD PTR [esi+40]
test eax, eax
je SHORT $LN16@xmlSAX2Get
push 60 ; 0000003cH
push eax
call _xmlStrchr
add esp, 8
test eax, eax
je SHORT $LN16@xmlSAX2Get
; 620 : ret->checked |= 1;
or DWORD PTR [esi+72], 1
$LN16@xmlSAX2Get:
; 621 : }
; 622 : }
; 623 : return(ret);
mov eax, esi
pop esi
$LN21@xmlSAX2Get:
pop ebx
pop edi
; 624 : }
mov esp, ebp
pop ebp
ret 0
$LN13@xmlSAX2Get:
; 610 : } else {
; 611 : xmlFatalErrMsg(ctxt, XML_ERR_ENTITY_PROCESSING,
push 0
push ebx
push OFFSET ??_C@_0BO@LDENBHGA@Failure?5to?5process?5entity?5?$CFs?6@
push 104 ; 00000068H
push edi
call _xmlFatalErrMsg
add esp, 20 ; 00000014H
; 612 : "Failure to process entity %s\n", name, NULL);
; 613 : ctxt->validate = 0;
mov DWORD PTR [edi+104], 0
; 614 : return(NULL);
xor eax, eax
pop esi
pop ebx
pop edi
; 624 : }
mov esp, ebp
pop ebp
ret 0
_xmlSAX2GetEntity ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2ExternalSubset
_TEXT SEGMENT
_oldencoding$1$ = -20 ; size = 4
_oldcharset$1$ = -16 ; size = 4
_oldinputTab$1$ = -12 ; size = 4
_oldinputMax$1$ = -8 ; size = 4
_oldinputNr$1$ = -4 ; size = 4
_oldinput$1$ = 8 ; size = 4
_ctx$ = 8 ; size = 4
_name$ = 12 ; size = 4
_ExternalID$ = 16 ; size = 4
_SystemID$ = 20 ; size = 4
_xmlSAX2ExternalSubset PROC ; COMDAT
; 394 : {
push ebp
mov ebp, esp
sub esp, 20 ; 00000014H
mov ecx, OFFSET __A8525CDE_sax2@c
push esi
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
test esi, esi
je $LN5@xmlSAX2Ext
; 395 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 396 : if (ctx == NULL) return;
; 397 : #ifdef DEBUG_SAX
; 398 : xmlGenericError(xmlGenericErrorContext,
; 399 : "SAX.xmlSAX2ExternalSubset(%s, %s, %s)\n",
; 400 : name, ExternalID, SystemID);
; 401 : #endif
; 402 : if (((ExternalID != NULL) || (SystemID != NULL)) &&
mov ecx, DWORD PTR _ExternalID$[ebp]
push ebx
mov ebx, DWORD PTR _SystemID$[ebp]
test ecx, ecx
jne SHORT $LN6@xmlSAX2Ext
test ebx, ebx
je $LN20@xmlSAX2Ext
$LN6@xmlSAX2Ext:
cmp DWORD PTR [esi+104], 0
jne SHORT $LN7@xmlSAX2Ext
cmp DWORD PTR [esi+276], 0
je $LN20@xmlSAX2Ext
$LN7@xmlSAX2Ext:
cmp DWORD PTR [esi+12], 0
je $LN20@xmlSAX2Ext
cmp DWORD PTR [esi+8], 0
je $LN20@xmlSAX2Ext
; 403 : (((ctxt->validate) || (ctxt->loadsubset != 0)) &&
; 404 : (ctxt->wellFormed && ctxt->myDoc))) {
; 405 : /*
; 406 : * Try to fetch and parse the external subset.
; 407 : */
; 408 : xmlParserInputPtr oldinput;
; 409 : int oldinputNr;
; 410 : int oldinputMax;
; 411 : xmlParserInputPtr *oldinputTab;
; 412 : xmlParserInputPtr input = NULL;
; 413 : xmlCharEncoding enc;
; 414 : int oldcharset;
; 415 : const xmlChar *oldencoding;
; 416 :
; 417 : /*
; 418 : * Ask the Entity resolver to load the damn thing
; 419 : */
; 420 : if ((ctxt->sax != NULL) && (ctxt->sax->resolveEntity != NULL))
mov eax, DWORD PTR [esi]
test eax, eax
je $LN20@xmlSAX2Ext
mov eax, DWORD PTR [eax+16]
test eax, eax
je $LN20@xmlSAX2Ext
; 421 : input = ctxt->sax->resolveEntity(ctxt->userData, ExternalID,
push edi
push ebx
push ecx
push DWORD PTR [esi+4]
call eax
mov edi, eax
add esp, 12 ; 0000000cH
; 422 : SystemID);
; 423 : if (input == NULL) {
test edi, edi
je $LN21@xmlSAX2Ext
; 424 : return;
; 425 : }
; 426 :
; 427 : xmlNewDtd(ctxt->myDoc, name, ExternalID, SystemID);
push ebx
push DWORD PTR _ExternalID$[ebp]
push DWORD PTR _name$[ebp]
push DWORD PTR [esi+8]
call _xmlNewDtd
; 428 :
; 429 : /*
; 430 : * make sure we won't destroy the main document context
; 431 : */
; 432 : oldinput = ctxt->input;
mov eax, DWORD PTR [esi+36]
mov DWORD PTR _oldinput$1$[ebp], eax
; 433 : oldinputNr = ctxt->inputNr;
mov eax, DWORD PTR [esi+40]
mov DWORD PTR _oldinputNr$1$[ebp], eax
; 434 : oldinputMax = ctxt->inputMax;
mov eax, DWORD PTR [esi+44]
mov DWORD PTR _oldinputMax$1$[ebp], eax
; 435 : oldinputTab = ctxt->inputTab;
mov eax, DWORD PTR [esi+48]
mov DWORD PTR _oldinputTab$1$[ebp], eax
; 436 : oldcharset = ctxt->charset;
mov eax, DWORD PTR [esi+256]
mov DWORD PTR _oldcharset$1$[ebp], eax
; 437 : oldencoding = ctxt->encoding;
mov eax, DWORD PTR [esi+24]
; 438 : ctxt->encoding = NULL;
; 439 :
; 440 : ctxt->inputTab = (xmlParserInputPtr *)
push 20 ; 00000014H
mov DWORD PTR _oldencoding$1$[ebp], eax
mov DWORD PTR [esi+24], 0
call DWORD PTR _xmlMalloc
add esp, 20 ; 00000014H
mov DWORD PTR [esi+48], eax
; 441 : xmlMalloc(5 * sizeof(xmlParserInputPtr));
; 442 : if (ctxt->inputTab == NULL) {
test eax, eax
jne SHORT $LN10@xmlSAX2Ext
; 443 : xmlSAX2ErrMemory(ctxt, "xmlSAX2ExternalSubset");
push OFFSET ??_C@_0BG@NJCKJHBI@xmlSAX2ExternalSubset@
push esi
call _xmlSAX2ErrMemory
; 444 : ctxt->input = oldinput;
mov eax, DWORD PTR _oldinput$1$[ebp]
add esp, 8
mov DWORD PTR [esi+36], eax
; 445 : ctxt->inputNr = oldinputNr;
mov eax, DWORD PTR _oldinputNr$1$[ebp]
mov DWORD PTR [esi+40], eax
; 446 : ctxt->inputMax = oldinputMax;
mov eax, DWORD PTR _oldinputMax$1$[ebp]
mov DWORD PTR [esi+44], eax
; 447 : ctxt->inputTab = oldinputTab;
mov eax, DWORD PTR _oldinputTab$1$[ebp]
mov DWORD PTR [esi+48], eax
; 448 : ctxt->charset = oldcharset;
mov eax, DWORD PTR _oldcharset$1$[ebp]
pop edi
mov DWORD PTR [esi+256], eax
; 499 : ctxt->encoding = oldencoding;
mov eax, DWORD PTR _oldencoding$1$[ebp]
pop ebx
mov DWORD PTR [esi+24], eax
pop esi
; 500 : /* ctxt->wellFormed = oldwellFormed; */
; 501 : }
; 502 : }
mov esp, ebp
pop ebp
ret 0
$LN10@xmlSAX2Ext:
; 449 : ctxt->encoding = oldencoding;
; 450 : return;
; 451 : }
; 452 : ctxt->inputNr = 0;
; 453 : ctxt->inputMax = 5;
; 454 : ctxt->input = NULL;
; 455 : xmlPushInput(ctxt, input);
push edi
push esi
mov DWORD PTR [esi+40], 0
mov DWORD PTR [esi+44], 5
mov DWORD PTR [esi+36], 0
call _xmlPushInput
; 456 :
; 457 : /*
; 458 : * On the fly encoding conversion if needed
; 459 : */
; 460 : if (ctxt->input->length >= 4) {
mov eax, DWORD PTR [esi+36]
add esp, 8
cmp DWORD PTR [eax+24], 4
jl SHORT $LN11@xmlSAX2Ext
; 461 : enc = xmlDetectCharEncoding(ctxt->input->cur, 4);
push 4
push DWORD PTR [eax+16]
call _xmlDetectCharEncoding
; 462 : xmlSwitchEncoding(ctxt, enc);
push eax
push esi
call _xmlSwitchEncoding
add esp, 16 ; 00000010H
$LN11@xmlSAX2Ext:
; 463 : }
; 464 :
; 465 : if (input->filename == NULL)
cmp DWORD PTR [edi+4], 0
jne SHORT $LN12@xmlSAX2Ext
; 466 : input->filename = (char *) xmlCanonicPath(SystemID);
push ebx
call _xmlCanonicPath
add esp, 4
mov DWORD PTR [edi+4], eax
$LN12@xmlSAX2Ext:
; 467 : input->line = 1;
mov DWORD PTR [edi+28], 1
; 468 : input->col = 1;
mov DWORD PTR [edi+32], 1
; 469 : input->base = ctxt->input->cur;
mov eax, DWORD PTR [esi+36]
; 470 : input->cur = ctxt->input->cur;
; 471 : input->free = NULL;
; 472 :
; 473 : /*
; 474 : * let's parse that entity knowing it's an external subset.
; 475 : */
; 476 : xmlParseExternalSubset(ctxt, ExternalID, SystemID);
push ebx
push DWORD PTR _ExternalID$[ebp]
mov eax, DWORD PTR [eax+16]
mov DWORD PTR [edi+12], eax
mov eax, DWORD PTR [esi+36]
push esi
mov eax, DWORD PTR [eax+16]
mov DWORD PTR [edi+16], eax
mov DWORD PTR [edi+40], 0
call _xmlParseExternalSubset
add esp, 12 ; 0000000cH
; 477 :
; 478 : /*
; 479 : * Free up the external entities
; 480 : */
; 481 :
; 482 : while (ctxt->inputNr > 1)
cmp DWORD PTR [esi+40], 1
jle SHORT $LN3@xmlSAX2Ext
$LL2@xmlSAX2Ext:
; 483 : xmlPopInput(ctxt);
push esi
call _xmlPopInput
add esp, 4
cmp DWORD PTR [esi+40], 1
jg SHORT $LL2@xmlSAX2Ext
$LN3@xmlSAX2Ext:
; 484 : xmlFreeInputStream(ctxt->input);
push DWORD PTR [esi+36]
call _xmlFreeInputStream
; 485 : xmlFree(ctxt->inputTab);
push DWORD PTR [esi+48]
call DWORD PTR _xmlFree
; 486 :
; 487 : /*
; 488 : * Restore the parsing context of the main entity
; 489 : */
; 490 : ctxt->input = oldinput;
mov eax, DWORD PTR _oldinput$1$[ebp]
add esp, 8
; 491 : ctxt->inputNr = oldinputNr;
; 492 : ctxt->inputMax = oldinputMax;
; 493 : ctxt->inputTab = oldinputTab;
; 494 : ctxt->charset = oldcharset;
; 495 : if ((ctxt->encoding != NULL) &&
mov ecx, DWORD PTR [esi+24]
mov DWORD PTR [esi+36], eax
mov eax, DWORD PTR _oldinputNr$1$[ebp]
mov DWORD PTR [esi+40], eax
mov eax, DWORD PTR _oldinputMax$1$[ebp]
mov DWORD PTR [esi+44], eax
mov eax, DWORD PTR _oldinputTab$1$[ebp]
mov DWORD PTR [esi+48], eax
mov eax, DWORD PTR _oldcharset$1$[ebp]
mov DWORD PTR [esi+256], eax
test ecx, ecx
je SHORT $LN13@xmlSAX2Ext
mov eax, DWORD PTR [esi+296]
test eax, eax
je SHORT $LN14@xmlSAX2Ext
push ecx
push eax
call _xmlDictOwns
add esp, 8
test eax, eax
jne SHORT $LN13@xmlSAX2Ext
$LN14@xmlSAX2Ext:
; 496 : ((ctxt->dict == NULL) ||
; 497 : (!xmlDictOwns(ctxt->dict, ctxt->encoding))))
; 498 : xmlFree((xmlChar *) ctxt->encoding);
push DWORD PTR [esi+24]
call DWORD PTR _xmlFree
add esp, 4
$LN13@xmlSAX2Ext:
; 499 : ctxt->encoding = oldencoding;
mov eax, DWORD PTR _oldencoding$1$[ebp]
mov DWORD PTR [esi+24], eax
$LN21@xmlSAX2Ext:
pop edi
$LN20@xmlSAX2Ext:
pop ebx
$LN5@xmlSAX2Ext:
pop esi
; 500 : /* ctxt->wellFormed = oldwellFormed; */
; 501 : }
; 502 : }
mov esp, ebp
pop ebp
ret 0
_xmlSAX2ExternalSubset ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2InternalSubset
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_name$ = 12 ; size = 4
_ExternalID$ = 16 ; size = 4
_SystemID$ = 20 ; size = 4
_xmlSAX2InternalSubset PROC ; COMDAT
; 356 : {
push ebp
mov ebp, esp
push esi
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov esi, DWORD PTR _ctx$[ebp]
test esi, esi
je SHORT $LN6@xmlSAX2Int
; 357 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 358 : xmlDtdPtr dtd;
; 359 : if (ctx == NULL) return;
; 360 : #ifdef DEBUG_SAX
; 361 : xmlGenericError(xmlGenericErrorContext,
; 362 : "SAX.xmlSAX2InternalSubset(%s, %s, %s)\n",
; 363 : name, ExternalID, SystemID);
; 364 : #endif
; 365 :
; 366 : if (ctxt->myDoc == NULL)
mov eax, DWORD PTR [esi+8]
test eax, eax
je SHORT $LN6@xmlSAX2Int
; 367 : return;
; 368 : dtd = xmlGetIntSubset(ctxt->myDoc);
push edi
push eax
call _xmlGetIntSubset
mov edi, eax
add esp, 4
; 369 : if (dtd != NULL) {
test edi, edi
je SHORT $LN4@xmlSAX2Int
; 370 : if (ctxt->html)
cmp DWORD PTR [esi+32], 0
jne SHORT $LN8@xmlSAX2Int
; 371 : return;
; 372 : xmlUnlinkNode((xmlNodePtr) dtd);
push edi
call _xmlUnlinkNode
; 373 : xmlFreeDtd(dtd);
push edi
call _xmlFreeDtd
; 374 : ctxt->myDoc->intSubset = NULL;
mov eax, DWORD PTR [esi+8]
add esp, 8
mov DWORD PTR [eax+44], 0
$LN4@xmlSAX2Int:
; 375 : }
; 376 : ctxt->myDoc->intSubset =
push DWORD PTR _SystemID$[ebp]
push DWORD PTR _ExternalID$[ebp]
push DWORD PTR _name$[ebp]
push DWORD PTR [esi+8]
call _xmlCreateIntSubset
mov ecx, DWORD PTR [esi+8]
add esp, 16 ; 00000010H
mov DWORD PTR [ecx+44], eax
; 377 : xmlCreateIntSubset(ctxt->myDoc, name, ExternalID, SystemID);
; 378 : if (ctxt->myDoc->intSubset == NULL)
mov eax, DWORD PTR [esi+8]
cmp DWORD PTR [eax+44], 0
jne SHORT $LN8@xmlSAX2Int
; 379 : xmlSAX2ErrMemory(ctxt, "xmlSAX2InternalSubset");
push OFFSET ??_C@_0BG@CKPEJCG@xmlSAX2InternalSubset@
push esi
call _xmlSAX2ErrMemory
add esp, 8
$LN8@xmlSAX2Int:
pop edi
$LN6@xmlSAX2Int:
pop esi
; 380 : }
pop ebp
ret 0
_xmlSAX2InternalSubset ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2HasExternalSubset
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_xmlSAX2HasExternalSubset PROC ; COMDAT
; 338 : {
push ebp
mov ebp, esp
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _ctx$[ebp]
test eax, eax
je SHORT $LN3@xmlSAX2Has
; 339 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 340 : if ((ctxt == NULL) || (ctxt->myDoc == NULL)) return(0);
mov ecx, DWORD PTR [eax+8]
test ecx, ecx
je SHORT $LN3@xmlSAX2Has
; 341 : return(ctxt->myDoc->extSubset != NULL);
xor eax, eax
cmp DWORD PTR [ecx+48], eax
setne al
; 342 : }
pop ebp
ret 0
$LN3@xmlSAX2Has:
; 339 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 340 : if ((ctxt == NULL) || (ctxt->myDoc == NULL)) return(0);
xor eax, eax
; 342 : }
pop ebp
ret 0
_xmlSAX2HasExternalSubset ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2HasInternalSubset
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_xmlSAX2HasInternalSubset PROC ; COMDAT
; 322 : {
push ebp
mov ebp, esp
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _ctx$[ebp]
test eax, eax
je SHORT $LN3@xmlSAX2Has
; 323 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 324 : if ((ctxt == NULL) || (ctxt->myDoc == NULL)) return(0);
mov ecx, DWORD PTR [eax+8]
test ecx, ecx
je SHORT $LN3@xmlSAX2Has
; 325 : return(ctxt->myDoc->intSubset != NULL);
xor eax, eax
cmp DWORD PTR [ecx+44], eax
setne al
; 326 : }
pop ebp
ret 0
$LN3@xmlSAX2Has:
; 323 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 324 : if ((ctxt == NULL) || (ctxt->myDoc == NULL)) return(0);
xor eax, eax
; 326 : }
pop ebp
ret 0
_xmlSAX2HasInternalSubset ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2IsStandalone
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_xmlSAX2IsStandalone PROC ; COMDAT
; 306 : {
push ebp
mov ebp, esp
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _ctx$[ebp]
test eax, eax
je SHORT $LN3@xmlSAX2IsS
; 307 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 308 : if ((ctx == NULL) || (ctxt->myDoc == NULL)) return(0);
mov ecx, DWORD PTR [eax+8]
test ecx, ecx
je SHORT $LN3@xmlSAX2IsS
; 309 : return(ctxt->myDoc->standalone == 1);
xor eax, eax
cmp DWORD PTR [ecx+40], 1
sete al
; 310 : }
pop ebp
ret 0
$LN3@xmlSAX2IsS:
; 307 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 308 : if ((ctx == NULL) || (ctxt->myDoc == NULL)) return(0);
xor eax, eax
; 310 : }
pop ebp
ret 0
_xmlSAX2IsStandalone ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2GetColumnNumber
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_xmlSAX2GetColumnNumber PROC ; COMDAT
; 290 : {
push ebp
mov ebp, esp
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _ctx$[ebp]
test eax, eax
je SHORT $LN3@xmlSAX2Get
; 291 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 292 : if ((ctx == NULL) || (ctxt->input == NULL)) return(0);
mov eax, DWORD PTR [eax+36]
test eax, eax
je SHORT $LN3@xmlSAX2Get
; 293 : return(ctxt->input->col);
mov eax, DWORD PTR [eax+32]
; 294 : }
pop ebp
ret 0
$LN3@xmlSAX2Get:
; 291 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 292 : if ((ctx == NULL) || (ctxt->input == NULL)) return(0);
xor eax, eax
; 294 : }
pop ebp
ret 0
_xmlSAX2GetColumnNumber ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2GetLineNumber
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_xmlSAX2GetLineNumber PROC ; COMDAT
; 274 : {
push ebp
mov ebp, esp
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _ctx$[ebp]
test eax, eax
je SHORT $LN3@xmlSAX2Get
; 275 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 276 : if ((ctx == NULL) || (ctxt->input == NULL)) return(0);
mov eax, DWORD PTR [eax+36]
test eax, eax
je SHORT $LN3@xmlSAX2Get
; 277 : return(ctxt->input->line);
mov eax, DWORD PTR [eax+28]
; 278 : }
pop ebp
ret 0
$LN3@xmlSAX2Get:
; 275 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 276 : if ((ctx == NULL) || (ctxt->input == NULL)) return(0);
xor eax, eax
; 278 : }
pop ebp
ret 0
_xmlSAX2GetLineNumber ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2SetDocumentLocator
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_loc$ = 12 ; size = 4
_xmlSAX2SetDocumentLocator PROC ; COMDAT
mov ecx, OFFSET __A8525CDE_sax2@c
jmp @__CheckForDebuggerJustMyCode@4
_xmlSAX2SetDocumentLocator ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2GetSystemId
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_xmlSAX2GetSystemId PROC ; COMDAT
; 258 : {
push ebp
mov ebp, esp
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
mov eax, DWORD PTR _ctx$[ebp]
test eax, eax
je SHORT $LN3@xmlSAX2Get
; 259 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 260 : if ((ctx == NULL) || (ctxt->input == NULL)) return(NULL);
mov eax, DWORD PTR [eax+36]
test eax, eax
je SHORT $LN3@xmlSAX2Get
; 261 : return((const xmlChar *) ctxt->input->filename);
mov eax, DWORD PTR [eax+4]
; 262 : }
pop ebp
ret 0
$LN3@xmlSAX2Get:
; 259 : xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) ctx;
; 260 : if ((ctx == NULL) || (ctxt->input == NULL)) return(NULL);
xor eax, eax
; 262 : }
pop ebp
ret 0
_xmlSAX2GetSystemId ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\sax2.c
; COMDAT _xmlSAX2GetPublicId
_TEXT SEGMENT
_ctx$ = 8 ; size = 4
_xmlSAX2GetPublicId PROC ; COMDAT
mov ecx, OFFSET __A8525CDE_sax2@c
call @__CheckForDebuggerJustMyCode@4
xor eax, eax
ret 0
_xmlSAX2GetPublicId ENDP
_TEXT ENDS
END
|
programs/oeis/130/A130249.asm | neoneye/loda | 22 | 80252 | ; A130249: Maximal index k of a Jacobsthal number such that A001045(k)<=n (the 'lower' Jacobsthal inverse).
; 0,2,2,3,3,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8
mul $0,6
lpb $0
div $0,2
sub $0,1
add $1,1
lpe
mov $0,$1
|
src/natools-smaz_tools.adb | faelys/natools | 0 | 29472 | ------------------------------------------------------------------------------
-- Copyright (c) 2016, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose with or without fee is hereby granted, provided that the above --
-- copyright notice and this permission notice appear in all copies. --
-- --
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF --
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR --
-- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES --
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN --
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF --
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --
------------------------------------------------------------------------------
with Ada.Unchecked_Deallocation;
package body Natools.Smaz_Tools is
package Sx renames Natools.S_Expressions;
function Build_Node
(Map : Dictionary_Maps.Map;
Empty_Value : Natural)
return Trie_Node;
procedure Set_Map
(Map : in out Dictionary_Maps.Map;
List : in String_Lists.List);
-- Set Map contents to match List by index number
procedure Free is new Ada.Unchecked_Deallocation
(Trie_Node, Trie_Node_Access);
------------------------------
-- Local Helper Subprograms --
------------------------------
function Build_Node
(Map : Dictionary_Maps.Map;
Empty_Value : Natural)
return Trie_Node
is
function First_Character (S : String) return Character
is (S (S'First));
function Is_Current (Cursor : Dictionary_Maps.Cursor; C : Character)
return Boolean
is (Dictionary_Maps.Has_Element (Cursor)
and then First_Character (Dictionary_Maps.Key (Cursor)) = C);
function Suffix (S : String) return String;
function Suffix (S : String) return String is
begin
return S (S'First + 1 .. S'Last);
end Suffix;
use type Ada.Containers.Count_Type;
Cursor : Dictionary_Maps.Cursor;
Result : Trie_Node
:= (Ada.Finalization.Controlled with
Is_Leaf => False,
Index => Empty_Value,
Children => (others => null));
begin
pragma Assert (Dictionary_Maps.Length (Map) >= 1);
Cursor := Dictionary_Maps.Find (Map, "");
if Dictionary_Maps.Has_Element (Cursor) then
Result.Index := Dictionary_Maps.Element (Cursor);
end if;
for C in Character'Range loop
Cursor := Dictionary_Maps.Ceiling (Map, (1 => C));
if Is_Current (Cursor, C) then
if not Is_Current (Dictionary_Maps.Next (Cursor), C)
and then Dictionary_Maps.Key (Cursor) = (1 => C)
then
Result.Children (C)
:= new Trie_Node'(Ada.Finalization.Controlled with
Is_Leaf => True,
Index => Dictionary_Maps.Element (Cursor));
else
declare
New_Map : Dictionary_Maps.Map;
begin
loop
Dictionary_Maps.Insert
(New_Map,
Suffix (Dictionary_Maps.Key (Cursor)),
Dictionary_Maps.Element (Cursor));
Dictionary_Maps.Next (Cursor);
exit when not Is_Current (Cursor, C);
end loop;
Result.Children (C)
:= new Trie_Node'(Build_Node (New_Map, Empty_Value));
end;
end if;
end if;
end loop;
return Result;
end Build_Node;
function Dummy_Hash (Value : String) return Natural is
pragma Unreferenced (Value);
begin
raise Program_Error with "Dummy_Hash called";
return 0;
end Dummy_Hash;
procedure Set_Map
(Map : in out Dictionary_Maps.Map;
List : in String_Lists.List)
is
I : Natural := 0;
begin
Dictionary_Maps.Clear (Map);
for S of List loop
Dictionary_Maps.Insert (Map, S, I);
I := I + 1;
end loop;
end Set_Map;
----------------------
-- Public Interface --
----------------------
procedure Read_List
(List : out String_Lists.List;
Descriptor : in out S_Expressions.Descriptor'Class)
is
use type Sx.Events.Event;
Event : Sx.Events.Event := Descriptor.Current_Event;
begin
String_Lists.Clear (List);
if Event = Sx.Events.Open_List then
Descriptor.Next (Event);
end if;
Read_Loop :
loop
case Event is
when Sx.Events.Add_Atom =>
String_Lists.Append
(List, Sx.To_String (Descriptor.Current_Atom));
when Sx.Events.Open_List =>
Descriptor.Close_Current_List;
when Sx.Events.End_Of_Input | Sx.Events.Error
| Sx.Events.Close_List =>
exit Read_Loop;
end case;
Descriptor.Next (Event);
end loop Read_Loop;
end Read_List;
---------------------------------
-- Dynamic Dictionary Searches --
---------------------------------
overriding procedure Adjust (Node : in out Trie_Node) is
begin
if not Node.Is_Leaf then
for C in Node.Children'Range loop
if Node.Children (C) /= null then
Node.Children (C) := new Trie_Node'(Node.Children (C).all);
end if;
end loop;
end if;
end Adjust;
overriding procedure Finalize (Node : in out Trie_Node) is
begin
if not Node.Is_Leaf then
for C in Node.Children'Range loop
Free (Node.Children (C));
end loop;
end if;
end Finalize;
procedure Initialize
(Trie : out Search_Trie;
List : in String_Lists.List)
is
Map : Dictionary_Maps.Map;
Not_Found : constant Natural := Natural (String_Lists.Length (List));
begin
Set_Map (Map, List);
Trie := (Not_Found => Not_Found,
Root => Build_Node (Map, Not_Found));
end Initialize;
function Linear_Search (Value : String) return Natural is
Result : Natural := 0;
begin
for S of List_For_Linear_Search loop
exit when S = Value;
Result := Result + 1;
end loop;
return Result;
end Linear_Search;
function Map_Search (Value : String) return Natural is
Cursor : constant Dictionary_Maps.Cursor
:= Dictionary_Maps.Find (Search_Map, Value);
begin
if Dictionary_Maps.Has_Element (Cursor) then
return Natural (Dictionary_Maps.Element (Cursor));
else
return Natural (Dictionary_Maps.Length (Search_Map));
end if;
end Map_Search;
function Search (Trie : in Search_Trie; Value : in String) return Natural is
Index : Positive := Value'First;
Position : Trie_Node_Access;
begin
if Value'Length = 0 then
return Trie.Not_Found;
end if;
Position := Trie.Root.Children (Value (Index));
loop
if Position = null then
return Trie.Not_Found;
end if;
Index := Index + 1;
if Index not in Value'Range then
return Position.Index;
elsif Position.Is_Leaf then
return Trie.Not_Found;
end if;
Position := Position.Children (Value (Index));
end loop;
end Search;
procedure Set_Dictionary_For_Map_Search (List : in String_Lists.List) is
begin
Set_Map (Search_Map, List);
end Set_Dictionary_For_Map_Search;
procedure Set_Dictionary_For_Trie_Search (List : in String_Lists.List) is
begin
Initialize (Trie_For_Search, List);
end Set_Dictionary_For_Trie_Search;
function Trie_Search (Value : String) return Natural is
begin
return Search (Trie_For_Search, Value);
end Trie_Search;
-------------------
-- Word Counting --
-------------------
procedure Add_Substrings
(Counter : in out Word_Counter;
Phrase : in String;
Min_Size : in Positive;
Max_Size : in Positive) is
begin
for First in Phrase'First .. Phrase'Last - Min_Size + 1 loop
for Last in First + Min_Size - 1
.. Natural'Min (First + Max_Size - 1, Phrase'Last)
loop
Add_Word (Counter, Phrase (First .. Last));
end loop;
end loop;
end Add_Substrings;
procedure Add_Word
(Counter : in out Word_Counter;
Word : in String;
Count : in String_Count := 1)
is
procedure Update
(Key : in String; Element : in out String_Count);
procedure Update
(Key : in String; Element : in out String_Count)
is
pragma Unreferenced (Key);
begin
Element := Element + Count;
end Update;
Cursor : constant Word_Maps.Cursor := Word_Maps.Find (Counter.Map, Word);
begin
if Word_Maps.Has_Element (Cursor) then
Word_Maps.Update_Element (Counter.Map, Cursor, Update'Access);
else
Word_Maps.Insert (Counter.Map, Word, Count);
end if;
end Add_Word;
procedure Add_Words
(Counter : in out Word_Counter;
Phrase : in String;
Min_Size : in Positive;
Max_Size : in Positive)
is
subtype Word_Part is Character with Static_Predicate
=> Word_Part in '0' .. '9' | 'A' .. 'Z' | 'a' .. 'z'
| Character'Val (128) .. Character'Val (255);
I, First, Next : Positive;
begin
if Max_Size < Min_Size then
return;
end if;
I := Phrase'First;
Main_Loop :
while I in Phrase'Range loop
Skip_Non_Word :
while I in Phrase'Range and then Phrase (I) not in Word_Part loop
I := I + 1;
end loop Skip_Non_Word;
exit Main_Loop when I not in Phrase'Range;
First := I;
Skip_Word :
while I in Phrase'Range and then Phrase (I) in Word_Part loop
I := I + 1;
end loop Skip_Word;
Next := I;
if Next - First in Min_Size .. Max_Size then
Add_Word (Counter, Phrase (First .. Next - 1));
end if;
end loop Main_Loop;
end Add_Words;
procedure Filter_By_Count
(Counter : in out Word_Counter;
Threshold_Count : in String_Count)
is
Position, Next : Word_Maps.Cursor;
begin
Position := Word_Maps.First (Counter.Map);
while Word_Maps.Has_Element (Position) loop
Next := Word_Maps.Next (Position);
if Word_Maps.Element (Position) < Threshold_Count then
Word_Maps.Delete (Counter.Map, Position);
end if;
Position := Next;
end loop;
pragma Assert (for all Count of Counter.Map => Count >= Threshold_Count);
end Filter_By_Count;
function Simple_Dictionary
(Counter : in Word_Counter;
Word_Count : in Natural;
Method : in Methods.Enum := Methods.Encoded)
return String_Lists.List
is
use type Ada.Containers.Count_Type;
Target_Count : constant Ada.Containers.Count_Type
:= Ada.Containers.Count_Type (Word_Count);
Set : Scored_Word_Sets.Set;
Result : String_Lists.List;
begin
for Cursor in Word_Maps.Iterate (Counter.Map) loop
Scored_Word_Sets.Include (Set, To_Scored_Word (Cursor, Method));
if Scored_Word_Sets.Length (Set) > Target_Count then
Scored_Word_Sets.Delete_Last (Set);
end if;
end loop;
for Cursor in Scored_Word_Sets.Iterate (Set) loop
Result.Append (Scored_Word_Sets.Element (Cursor).Word);
end loop;
return Result;
end Simple_Dictionary;
procedure Simple_Dictionary_And_Pending
(Counter : in Word_Counter;
Word_Count : in Natural;
Selected : out String_Lists.List;
Pending : out String_Lists.List;
Method : in Methods.Enum := Methods.Encoded;
Max_Pending_Count : in Ada.Containers.Count_Type
:= Ada.Containers.Count_Type'Last)
is
use type Ada.Containers.Count_Type;
Target_Count : constant Ada.Containers.Count_Type
:= Ada.Containers.Count_Type (Word_Count);
Set : Scored_Word_Sets.Set;
begin
for Cursor in Word_Maps.Iterate (Counter.Map) loop
Scored_Word_Sets.Insert (Set, To_Scored_Word (Cursor, Method));
end loop;
Selected := String_Lists.Empty_List;
Pending := String_Lists.Empty_List;
for Cursor in Scored_Word_Sets.Iterate (Set) loop
if String_Lists.Length (Selected) < Target_Count then
Selected.Append (Scored_Word_Sets.Element (Cursor).Word);
else
Pending.Append (Scored_Word_Sets.Element (Cursor).Word);
exit when String_Lists.Length (Selected) >= Max_Pending_Count;
end if;
end loop;
end Simple_Dictionary_And_Pending;
function To_Scored_Word
(Cursor : in Word_Maps.Cursor;
Method : in Methods.Enum)
return Scored_Word
is
Word : constant String := Word_Maps.Key (Cursor);
begin
return Scored_Word'
(Size => Word'Length,
Word => Word,
Score => Score (Word_Maps.Element (Cursor), Word'Length, Method));
end To_Scored_Word;
end Natools.Smaz_Tools;
|
source/sjlj/s-unbase.adb | ytomino/drake | 33 | 29299 | <reponame>ytomino/drake<gh_stars>10-100
-- for SjLj
pragma Check_Policy (Trace => Ignore);
with System.Address_To_Constant_Access_Conversions;
separate (System.Unwind.Backtrace)
package body Separated is
pragma Suppress (All_Checks);
-- Note: In SjLj mode, Unwind_Backtrace does not work.
procedure main
with Import, Convention => C;
type Address_Access is access constant Address;
for Address_Access'Storage_Size use 0;
package AA_Conv is
new Address_To_Constant_Access_Conversions (Address, Address_Access);
function builtin_frame_address (A1 : Natural) return Address_Access
with Import,
Convention => Intrinsic, External_Name => "__builtin_frame_address";
Parent_Offset : constant := 0; -- [BP + x] = Parent's BP
Return_Offset : constant := Standard'Address_Size / Standard'Storage_Unit;
Call_Length : constant := 0; -- follow Unwind_Backtrace
-- 1 + Standard'Address_Size / Standard'Storage_Unit; -- call instruction
Caller_In_main : constant := 160; -- >= 120 in unoptimized 32bit code
procedure Backtrace (
Item : aliased out Tracebacks_Array;
Last : out Natural;
Exclude_Min : Address;
Exclude_Max : Address)
is
BP : Address;
IP : Address;
begin
pragma Check (Trace, Ada.Debug.Put ("start"));
BP := AA_Conv.To_Address (builtin_frame_address (0));
Last := Tracebacks_Array'First - 1;
loop
IP := AA_Conv.To_Pointer (BP + Return_Offset).all - Call_Length;
if IP >= Exclude_Min and then IP <= Exclude_Max then
Last := Tracebacks_Array'First - 1; -- reset
pragma Check (Trace, Ada.Debug.Put ("exclude"));
else
Last := Last + 1;
Item (Last) := IP;
pragma Check (Trace, Ada.Debug.Put ("fill"));
exit when Last >= Tracebacks_Array'Last;
end if;
exit when IP >= main'Code_Address
and then IP < main'Code_Address + Caller_In_main;
BP := AA_Conv.To_Pointer (BP).all + Parent_Offset;
exit when BP = 0; -- dirty handling in thread
end loop;
pragma Check (Trace, Ada.Debug.Put ("end"));
end Backtrace;
end Separated;
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_42.asm | ljhsiun2/medusa | 9 | 177842 | <filename>Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_42.asm<gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r8
push %r9
push %rbp
push %rcx
lea addresses_WT_ht+0x1053b, %r8
clflush (%r8)
nop
sub %r15, %r15
movb $0x61, (%r8)
nop
nop
nop
nop
and $31127, %rcx
lea addresses_WT_ht+0x15cfb, %rbp
clflush (%rbp)
nop
nop
nop
nop
xor $47124, %r13
movl $0x61626364, (%rbp)
inc %r15
lea addresses_D_ht+0x8d7b, %r8
nop
nop
nop
nop
dec %r11
movl $0x61626364, (%r8)
nop
nop
nop
nop
mfence
lea addresses_A_ht+0x9d3b, %r13
clflush (%r13)
nop
nop
nop
nop
dec %r9
movb $0x61, (%r13)
nop
nop
nop
nop
cmp $32464, %rcx
lea addresses_A_ht+0x273b, %r11
nop
nop
nop
nop
dec %r13
mov $0x6162636465666768, %r9
movq %r9, %xmm7
vmovups %ymm7, (%r11)
xor %r13, %r13
lea addresses_UC_ht+0x9b, %rbp
nop
nop
nop
nop
and $11575, %r9
mov $0x6162636465666768, %r15
movq %r15, %xmm7
vmovups %ymm7, (%rbp)
nop
nop
nop
nop
add %r8, %r8
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r15
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r15
push %r8
push %rbp
push %rcx
push %rdx
// Load
lea addresses_A+0x4023, %r11
nop
nop
sub %rcx, %rcx
mov (%r11), %bp
nop
nop
nop
nop
cmp $43500, %rbp
// Store
lea addresses_A+0x10e23, %r8
nop
nop
nop
nop
nop
and $28657, %r11
mov $0x5152535455565758, %rcx
movq %rcx, (%r8)
sub $38288, %r8
// Store
lea addresses_RW+0x1009b, %rdx
nop
nop
nop
nop
and %r13, %r13
mov $0x5152535455565758, %r11
movq %r11, %xmm6
vmovups %ymm6, (%rdx)
nop
nop
cmp %rbp, %rbp
// Store
lea addresses_US+0x1b43b, %rdx
inc %r13
mov $0x5152535455565758, %r15
movq %r15, %xmm3
movups %xmm3, (%rdx)
nop
sub $11717, %rbp
// Faulty Load
lea addresses_RW+0x1dd3b, %rdx
nop
nop
nop
cmp $2299, %rbp
mov (%rdx), %r11
lea oracles, %rcx
and $0xff, %r11
shlq $12, %r11
mov (%rcx,%r11,1), %r11
pop %rdx
pop %rcx
pop %rbp
pop %r8
pop %r15
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 3}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 5}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 6}}
[Faulty Load]
{'src': {'type': 'addresses_RW', 'AVXalign': False, 'size': 8, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 5}}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
|
core/utils/fxsr.asm | JartC0ding/horizon | 4 | 174346 | [bits 64]
[global fxsave_if_supported]
fxsave_if_supported:
mov rax, 1
cpuid
and edx, 1 <<24 ; check for FXSR
test edx, edx
je .exit
fxsave [rdi]
.exit:
ret
[global fxrstor_if_supported]
fxrstor_if_supported:
mov rax, 1
cpuid
and edx, 1 << 24 ; check for FXSR
test edx, edx
je .exit
fxrstor [rdi]
.exit:
ret
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_3_1779.asm | ljhsiun2/medusa | 9 | 4228 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x10c3d, %rdi
nop
cmp %r9, %r9
movw $0x6162, (%rdi)
nop
nop
nop
nop
sub $12001, %r10
lea addresses_WC_ht+0x151dd, %rsi
lea addresses_normal_ht+0x9bdd, %rdi
xor %r13, %r13
mov $32, %rcx
rep movsb
xor %r10, %r10
lea addresses_WC_ht+0x1e1dd, %rsi
lea addresses_A_ht+0xfedd, %rdi
nop
dec %r15
mov $25, %rcx
rep movsq
sub %rsi, %rsi
lea addresses_A_ht+0x31d, %r9
cmp %r15, %r15
mov (%r9), %cx
nop
nop
nop
nop
cmp %rdi, %rdi
lea addresses_normal_ht+0x4227, %rsi
lea addresses_A_ht+0x16063, %rdi
dec %r15
mov $63, %rcx
rep movsb
nop
dec %r9
lea addresses_UC_ht+0x15d5d, %rsi
lea addresses_normal_ht+0x123dd, %rdi
nop
nop
add %r13, %r13
mov $91, %rcx
rep movsw
nop
nop
and %r13, %r13
lea addresses_UC_ht+0x16774, %r12
xor %rsi, %rsi
mov $0x6162636465666768, %rcx
movq %rcx, %xmm3
and $0xffffffffffffffc0, %r12
vmovntdq %ymm3, (%r12)
and %rdi, %rdi
lea addresses_WT_ht+0x67dd, %rsi
lea addresses_WC_ht+0x5fbb, %rdi
nop
nop
nop
xor $20446, %r9
mov $21, %rcx
rep movsl
add $33428, %r10
lea addresses_WT_ht+0x4a9f, %r10
nop
nop
nop
nop
and %rdi, %rdi
mov (%r10), %r12d
nop
xor $63464, %r13
lea addresses_normal_ht+0x1279d, %r9
clflush (%r9)
nop
nop
nop
nop
nop
inc %rdi
mov $0x6162636465666768, %r13
movq %r13, (%r9)
nop
nop
nop
and $64317, %rdi
lea addresses_normal_ht+0xb1fd, %rsi
lea addresses_A_ht+0xddd, %rdi
nop
nop
nop
cmp $17805, %r10
mov $54, %rcx
rep movsw
nop
nop
nop
sub $61050, %r9
lea addresses_normal_ht+0x5c2f, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
inc %r9
mov (%rdi), %r13w
nop
dec %r15
lea addresses_UC_ht+0x169dd, %rdi
nop
cmp %r10, %r10
movb $0x61, (%rdi)
nop
nop
nop
nop
nop
cmp %rdi, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r15
pop %r13
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_PSE+0x19bdd, %r9
nop
nop
nop
add %rdx, %rdx
movb $0x51, (%r9)
nop
nop
nop
nop
sub $50198, %rax
// REPMOV
lea addresses_PSE+0x1a7f0, %rsi
lea addresses_normal+0x65dd, %rdi
nop
nop
nop
nop
add $63415, %r12
mov $44, %rcx
rep movsw
nop
nop
sub $36883, %r9
// Store
lea addresses_RW+0x1d795, %r9
nop
nop
nop
nop
nop
xor %rdx, %rdx
mov $0x5152535455565758, %r12
movq %r12, %xmm5
vmovups %ymm5, (%r9)
nop
nop
nop
and $34709, %rdi
// Faulty Load
lea addresses_normal+0x10ddd, %rbp
cmp %r12, %r12
mov (%rbp), %rsi
lea oracles, %rdx
and $0xff, %rsi
shlq $12, %rsi
mov (%rdx,%rsi,1), %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_PSE', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal', 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': True}, 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': True, 'NT': True, 'congruent': 9, 'same': False}}
{'34': 3}
34 34 34
*/
|
oeis/308/A308046.asm | neoneye/loda-programs | 11 | 174164 | ; A308046: a(n) = 2*nextprime(n - 1) - 2*n, where nextprime(n) is the smallest prime > n.
; 2,0,0,2,0,2,0,6,4,2,0,2,0,6,4,2,0,2,0,6,4,2,0,10,8,6,4,2,0,2,0,10,8,6,4,2,0,6,4,2,0,2,0,6,4,2,0,10,8,6,4,2,0,10,8,6,4,2,0,2,0,10,8,6,4,2,0,6,4,2,0,2,0,10,8,6,4,2,0,6,4,2,0,10
mov $2,$0
seq $0,151800 ; Least prime > n (version 2 of the "next prime" function).
sub $0,$2
sub $0,1
mul $0,2
|
programs/oeis/213/A213496.asm | karttu/loda | 0 | 171133 | <reponame>karttu/loda<filename>programs/oeis/213/A213496.asm
; A213496: Number of (w,x,y) with all terms in {0,...,n} and x != max(|w-x|,|x-y|)
; 0,4,13,41,82,158,255,403,580,824,1105,1469,1878,2386,2947,3623,4360,5228,6165,7249,8410,9734,11143,12731,14412,16288,18265,20453,22750,25274,27915,30799,33808,37076,40477,44153,47970,52078,56335
mov $5,$0
mul $0,2
mov $1,$0
lpb $0,1
add $1,3
div $1,4
mov $3,$0
mov $0,$4
add $3,1
mul $1,$3
lpe
mov $2,$5
mul $2,$5
mul $2,$5
add $1,$2
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/volatile13.ads | best08618/asylo | 7 | 24393 | package Volatile13 is
type Index_Map (Length : Natural) is record
Map : String (1 .. Length);
end record;
type Index_Map_Access is access all Index_Map;
pragma Volatile (Index_Map_Access);
type Shared_String (Size : Natural) is limited record
Length : Natural := 0;
Index_Map : Index_Map_Access := null;
end record;
Shared_Empty : Shared_String := (Size => 64, others => <>);
procedure Compute_Index_Map (Self : Shared_String);
end Volatile13;
|
fiat-amd64/206.96_ratio08479_seed4366091815975477_mul_p384.asm | dderjoel/fiat-crypto | 491 | 83451 | <gh_stars>100-1000
SECTION .text
GLOBAL mul_p384
mul_p384:
sub rsp, 0x3a8 ; last 0x30 (6) for Caller - save regs
mov [ rsp + 0x378 ], rbx; saving to stack
mov [ rsp + 0x380 ], rbp; saving to stack
mov [ rsp + 0x388 ], r12; saving to stack
mov [ rsp + 0x390 ], r13; saving to stack
mov [ rsp + 0x398 ], r14; saving to stack
mov [ rsp + 0x3a0 ], r15; saving to stack
mov rax, [ rsi + 0x0 ]; load m64 x6 to register64
mov r10, rdx; preserving value of arg2 into a new reg
mov rdx, [ rdx + 0x0 ]; saving arg2[0] in rdx.
mulx r11, rbx, rax; x18, x17<- x6 * arg2[0]
mov rbp, 0x100000001 ; moving imm to reg
mov rdx, rbx; x17 to rdx
mulx rbx, r12, rbp; _, x30<- x17 * 0x100000001
mov rbx, rdx; preserving value of x17 into a new reg
mov rdx, [ r10 + 0x8 ]; saving arg2[1] in rdx.
mulx r13, r14, rax; x16, x15<- x6 * arg2[1]
xor r15, r15
adox r14, r11
mov rcx, 0xffffffff ; moving imm to reg
mov rdx, rcx; 0xffffffff to rdx
mulx rcx, r8, r12; x43, x42<- x30 * 0xffffffff
mov r9, 0xffffffff00000000 ; moving imm to reg
xchg rdx, r12; x30, swapping with 0xffffffff, which is currently in rdx
mulx r11, r15, r9; x41, x40<- x30 * 0xffffffff00000000
adcx r15, rcx
mov rcx, [ rsi + 0x8 ]; load m64 x1 to register64
xchg rdx, rcx; x1, swapping with x30, which is currently in rdx
mulx rbp, r9, [ r10 + 0x0 ]; x80, x79<- x1 * arg2[0]
seto r12b; spill OF x20 to reg (r12)
mov [ rsp + 0x0 ], rdi; spilling out1 to mem
mov rdi, -0x2 ; moving imm to reg
inc rdi; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1)
adox r8, rbx
adox r15, r14
setc r8b; spill CF x45 to reg (r8)
clc;
adcx r9, r15
mov rbx, 0x100000001 ; moving imm to reg
xchg rdx, r9; x92, swapping with x1, which is currently in rdx
mulx r14, r15, rbx; _, x106<- x92 * 0x100000001
xchg rdx, rax; x6, swapping with x92, which is currently in rdx
mulx r14, rdi, [ r10 + 0x10 ]; x14, x13<- x6 * arg2[2]
mov rbx, rdx; preserving value of x6 into a new reg
mov rdx, [ r10 + 0x8 ]; saving arg2[1] in rdx.
mov [ rsp + 0x8 ], r14; spilling x14 to mem
mov [ rsp + 0x10 ], rbp; spilling x80 to mem
mulx r14, rbp, r9; x78, x77<- x1 * arg2[1]
mov [ rsp + 0x18 ], r14; spilling x78 to mem
mov r14, 0xffffffff ; moving imm to reg
mov rdx, r14; 0xffffffff to rdx
mov [ rsp + 0x20 ], rbp; spilling x77 to mem
mulx r14, rbp, r15; x119, x118<- x106 * 0xffffffff
setc dl; spill CF x93 to reg (rdx)
clc;
adcx rbp, rax
mov rbp, 0xfffffffffffffffe ; moving imm to reg
xchg rdx, rcx; x30, swapping with x93, which is currently in rdx
mov [ rsp + 0x28 ], r14; spilling x119 to mem
mulx rax, r14, rbp; x39, x38<- x30 * 0xfffffffffffffffe
seto bpl; spill OF x58 to reg (rbp)
mov byte [ rsp + 0x30 ], cl; spilling byte x93 to mem
mov rcx, 0x0 ; moving imm to reg
dec rcx; OF<-0x0, preserve CF (debug: state 4 (thanks Paul))
movzx r12, r12b
adox r12, rcx; loading flag
adox r13, rdi
setc r12b; spill CF x132 to reg (r12)
clc;
movzx r8, r8b
adcx r8, rcx; loading flag
adcx r11, r14
setc r8b; spill CF x47 to reg (r8)
clc;
movzx rbp, bpl
adcx rbp, rcx; loading flag
adcx r13, r11
mov rbp, 0xffffffffffffffff ; moving imm to reg
mulx rdi, r14, rbp; x37, x36<- x30 * 0xffffffffffffffff
mov r11, [ rsp + 0x10 ]; load m64 x80 to register64
setc cl; spill CF x60 to reg (rcx)
clc;
adcx r11, [ rsp + 0x20 ]
mov [ rsp + 0x38 ], rsi; spilling arg1 to mem
mov byte [ rsp + 0x40 ], r12b; spilling byte x132 to mem
mulx rsi, r12, rbp; x35, x34<- x30 * 0xffffffffffffffff
mov rbp, rdx; preserving value of x30 into a new reg
mov rdx, [ r10 + 0x18 ]; saving arg2[3] in rdx.
mov [ rsp + 0x48 ], rsi; spilling x35 to mem
mov byte [ rsp + 0x50 ], cl; spilling byte x60 to mem
mulx rsi, rcx, rbx; x12, x11<- x6 * arg2[3]
mov rdx, r9; x1 to rdx
mov [ rsp + 0x58 ], rsi; spilling x12 to mem
mulx r9, rsi, [ r10 + 0x10 ]; x76, x75<- x1 * arg2[2]
mov [ rsp + 0x60 ], r9; spilling x76 to mem
mov r9, [ rsp + 0x18 ]; x83, copying x78 here, cause x78 is needed in a reg for other than x83, namely all: , x83--x84, size: 1
adcx r9, rsi
mov rsi, [ rsp + 0x8 ]; x23, copying x14 here, cause x14 is needed in a reg for other than x23, namely all: , x23--x24, size: 1
adox rsi, rcx
seto cl; spill OF x24 to reg (rcx)
mov [ rsp + 0x68 ], r9; spilling x83 to mem
mov r9, -0x1 ; moving imm to reg
inc r9; OF<-0x0, preserve CF (debug: state 5 (thanks Paul))
mov r9, -0x1 ; moving imm to reg
movzx r8, r8b
adox r8, r9; loading flag
adox rax, r14
mov r8, rdx; preserving value of x1 into a new reg
mov rdx, [ r10 + 0x20 ]; saving arg2[4] in rdx.
mulx r14, r9, rbx; x10, x9<- x6 * arg2[4]
mov [ rsp + 0x70 ], r14; spilling x10 to mem
setc r14b; spill CF x84 to reg (r14)
mov [ rsp + 0x78 ], rax; spilling x48 to mem
movzx rax, byte [ rsp + 0x30 ]; load byte memx93 to register64
clc;
mov [ rsp + 0x80 ], rsi; spilling x23 to mem
mov rsi, -0x1 ; moving imm to reg
adcx rax, rsi; loading flag
adcx r13, r11
adox r12, rdi
mov rax, 0xffffffff00000000 ; moving imm to reg
mov rdx, r15; x106 to rdx
mulx r15, rdi, rax; x117, x116<- x106 * 0xffffffff00000000
setc r11b; spill CF x95 to reg (r11)
clc;
movzx rcx, cl
adcx rcx, rsi; loading flag
adcx r9, [ rsp + 0x58 ]
setc cl; spill CF x26 to reg (rcx)
clc;
adcx rdi, [ rsp + 0x28 ]
mov rsi, 0xfffffffffffffffe ; moving imm to reg
mov byte [ rsp + 0x88 ], cl; spilling byte x26 to mem
mulx rax, rcx, rsi; x115, x114<- x106 * 0xfffffffffffffffe
mov rsi, 0xffffffffffffffff ; moving imm to reg
mov [ rsp + 0x90 ], rax; spilling x115 to mem
mov byte [ rsp + 0x98 ], r14b; spilling byte x84 to mem
mulx rax, r14, rsi; x113, x112<- x106 * 0xffffffffffffffff
adcx rcx, r15
mov r15, [ rsp + 0x78 ]; load m64 x48 to register64
setc sil; spill CF x123 to reg (rsi)
mov [ rsp + 0xa0 ], rax; spilling x113 to mem
movzx rax, byte [ rsp + 0x50 ]; load byte memx60 to register64
clc;
mov [ rsp + 0xa8 ], r14; spilling x112 to mem
mov r14, -0x1 ; moving imm to reg
adcx rax, r14; loading flag
adcx r15, [ rsp + 0x80 ]
adcx r12, r9
mov rax, rdx; preserving value of x106 into a new reg
mov rdx, [ r10 + 0x18 ]; saving arg2[3] in rdx.
mulx r9, r14, r8; x74, x73<- x1 * arg2[3]
mov [ rsp + 0xb0 ], r12; spilling x63 to mem
setc r12b; spill CF x64 to reg (r12)
mov [ rsp + 0xb8 ], r9; spilling x74 to mem
movzx r9, byte [ rsp + 0x40 ]; load byte memx132 to register64
clc;
mov byte [ rsp + 0xc0 ], sil; spilling byte x123 to mem
mov rsi, -0x1 ; moving imm to reg
adcx r9, rsi; loading flag
adcx r13, rdi
seto r9b; spill OF x51 to reg (r9)
inc rsi; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
mov rdi, -0x1 ; moving imm to reg
movzx r11, r11b
adox r11, rdi; loading flag
adox r15, [ rsp + 0x68 ]
mov r11, 0xffffffffffffffff ; moving imm to reg
mov rdx, r11; 0xffffffffffffffff to rdx
mulx rbp, r11, rbp; x33, x32<- x30 * 0xffffffffffffffff
adcx rcx, r15
seto r15b; spill OF x97 to reg (r15)
movzx rsi, byte [ rsp + 0x98 ]; load byte memx84 to register64
inc rdi; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
mov rdi, -0x1 ; moving imm to reg
adox rsi, rdi; loading flag
adox r14, [ rsp + 0x60 ]
mov rsi, rdx; preserving value of 0xffffffffffffffff into a new reg
mov rdx, [ r10 + 0x20 ]; saving arg2[4] in rdx.
mov [ rsp + 0xc8 ], rcx; spilling x135 to mem
mulx rdi, rcx, r8; x72, x71<- x1 * arg2[4]
mov rdx, rax; x106 to rdx
mov [ rsp + 0xd0 ], r13; spilling x133 to mem
mulx rax, r13, rsi; x111, x110<- x106 * 0xffffffffffffffff
mov rsi, [ rsp + 0xa8 ]; load m64 x112 to register64
mov [ rsp + 0xd8 ], rdi; spilling x72 to mem
setc dil; spill CF x136 to reg (rdi)
mov [ rsp + 0xe0 ], rax; spilling x111 to mem
movzx rax, byte [ rsp + 0xc0 ]; load byte memx123 to register64
clc;
mov [ rsp + 0xe8 ], rbp; spilling x33 to mem
mov rbp, -0x1 ; moving imm to reg
adcx rax, rbp; loading flag
adcx rsi, [ rsp + 0x90 ]
mov rax, [ rsp + 0xb8 ]; x87, copying x74 here, cause x74 is needed in a reg for other than x87, namely all: , x87--x88, size: 1
adox rax, rcx
mov rcx, [ rsp + 0xa0 ]; x126, copying x113 here, cause x113 is needed in a reg for other than x126, namely all: , x126--x127, size: 1
adcx rcx, r13
seto r13b; spill OF x88 to reg (r13)
inc rbp; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
mov rbp, -0x1 ; moving imm to reg
movzx r9, r9b
adox r9, rbp; loading flag
adox r11, [ rsp + 0x48 ]
seto r9b; spill OF x53 to reg (r9)
inc rbp; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
mov rbp, -0x1 ; moving imm to reg
movzx r15, r15b
adox r15, rbp; loading flag
adox r14, [ rsp + 0xb0 ]
xchg rdx, rbx; x6, swapping with x106, which is currently in rdx
mulx rdx, r15, [ r10 + 0x28 ]; x8, x7<- x6 * arg2[5]
setc bpl; spill CF x127 to reg (rbp)
clc;
mov byte [ rsp + 0xf0 ], r13b; spilling byte x88 to mem
mov r13, -0x1 ; moving imm to reg
movzx rdi, dil
adcx rdi, r13; loading flag
adcx r14, rsi
setc dil; spill CF x138 to reg (rdi)
movzx rsi, byte [ rsp + 0x88 ]; load byte memx26 to register64
clc;
adcx rsi, r13; loading flag
adcx r15, [ rsp + 0x70 ]
setc sil; spill CF x28 to reg (rsi)
clc;
movzx r12, r12b
adcx r12, r13; loading flag
adcx r15, r11
mov r12, 0xffffffffffffffff ; moving imm to reg
xchg rdx, rbx; x106, swapping with x8, which is currently in rdx
mulx rdx, r11, r12; x109, x108<- x106 * 0xffffffffffffffff
adox rax, r15
movzx r15, r9b; x54, copying x53 here, cause x53 is needed in a reg for other than x54, namely all: , x54, size: 1
mov r13, [ rsp + 0xe8 ]; load m64 x33 to register64
lea r15, [ r15 + r13 ]; r8/64 + m8
movzx r13, sil; x29, copying x28 here, cause x28 is needed in a reg for other than x29, namely all: , x29, size: 1
lea r13, [ r13 + rbx ]
setc r9b; spill CF x66 to reg (r9)
clc;
mov rbx, -0x1 ; moving imm to reg
movzx rbp, bpl
adcx rbp, rbx; loading flag
adcx r11, [ rsp + 0xe0 ]
mov rbp, rdx; preserving value of x109 into a new reg
mov rdx, [ r10 + 0x28 ]; saving arg2[5] in rdx.
mulx r8, rsi, r8; x70, x69<- x1 * arg2[5]
seto bl; spill OF x101 to reg (rbx)
mov r12, -0x1 ; moving imm to reg
inc r12; OF<-0x0, preserve CF (debug: state 5 (thanks Paul))
mov r12, -0x1 ; moving imm to reg
movzx rdi, dil
adox rdi, r12; loading flag
adox rax, rcx
setc cl; spill CF x129 to reg (rcx)
clc;
movzx r9, r9b
adcx r9, r12; loading flag
adcx r13, r15
seto dil; spill OF x140 to reg (rdi)
movzx r9, byte [ rsp + 0xf0 ]; load byte memx88 to register64
inc r12; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
mov r15, -0x1 ; moving imm to reg
adox r9, r15; loading flag
adox rsi, [ rsp + 0xd8 ]
adox r8, r12
mov r9, [ rsp + 0x38 ]; load m64 arg1 to register64
mov r12, [ r9 + 0x10 ]; load m64 x2 to register64
mov rdx, r12; x2 to rdx
mulx r12, r15, [ r10 + 0x0 ]; x157, x156<- x2 * arg2[0]
mov [ rsp + 0xf8 ], rax; spilling x139 to mem
mov rax, 0x0 ; moving imm to reg
dec rax; OF<-0x0, preserve CF (debug: state 4 (thanks Paul))
movzx rbx, bl
adox rbx, rax; loading flag
adox r13, rsi
setc bl; spill CF x68 to reg (rbx)
clc;
movzx rdi, dil
adcx rdi, rax; loading flag
adcx r13, r11
seto r11b; spill OF x103 to reg (r11)
inc rax; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
adox r15, [ rsp + 0xd0 ]
mov rdi, [ r9 + 0x18 ]; load m64 x3 to register64
seto sil; spill OF x170 to reg (rsi)
dec rax; OF<-0x0, preserve CF (debug: state 3 (y: 0, n: -1))
movzx rbx, bl
movzx r11, r11b
adox r11, rax; loading flag
adox r8, rbx
mulx rbx, r11, [ r10 + 0x8 ]; x155, x154<- x2 * arg2[1]
mov rax, 0x100000001 ; moving imm to reg
xchg rdx, r15; x169, swapping with x2, which is currently in rdx
mov [ rsp + 0x100 ], r13; spilling x141 to mem
mov [ rsp + 0x108 ], r14; spilling x137 to mem
mulx r13, r14, rax; _, x183<- x169 * 0x100000001
movzx r13, cl; x130, copying x129 here, cause x129 is needed in a reg for other than x130, namely all: , x130, size: 1
lea r13, [ r13 + rbp ]
mov rbp, 0xffffffff ; moving imm to reg
xchg rdx, rbp; 0xffffffff, swapping with x169, which is currently in rdx
mulx rcx, rax, r14; x196, x195<- x183 * 0xffffffff
adcx r13, r8
mov r8, rdx; preserving value of 0xffffffff into a new reg
mov rdx, [ r10 + 0x18 ]; saving arg2[3] in rdx.
mov [ rsp + 0x110 ], r13; spilling x143 to mem
mov [ rsp + 0x118 ], rbx; spilling x155 to mem
mulx r13, rbx, r15; x151, x150<- x2 * arg2[3]
mov r8, 0xffffffff00000000 ; moving imm to reg
mov rdx, r8; 0xffffffff00000000 to rdx
mov [ rsp + 0x120 ], r13; spilling x151 to mem
mulx r8, r13, r14; x194, x193<- x183 * 0xffffffff00000000
seto dl; spill OF x145 to reg (rdx)
adc dl, 0x0
movzx rdx, dl
adox rax, rbp
adcx r13, rcx
setc al; spill CF x198 to reg (rax)
clc;
adcx r11, r12
setc r12b; spill CF x159 to reg (r12)
clc;
mov rbp, -0x1 ; moving imm to reg
movzx rsi, sil
adcx rsi, rbp; loading flag
adcx r11, [ rsp + 0xc8 ]
xchg rdx, rdi; x3, swapping with x145, which is currently in rdx
mulx rsi, rcx, [ r10 + 0x0 ]; x234, x233<- x3 * arg2[0]
adox r13, r11
setc r11b; spill CF x172 to reg (r11)
clc;
adcx rcx, r13
mov r13, 0x100000001 ; moving imm to reg
xchg rdx, rcx; x246, swapping with x3, which is currently in rdx
mov byte [ rsp + 0x128 ], dil; spilling byte x145 to mem
mulx rbp, rdi, r13; _, x260<- x246 * 0x100000001
mov rbp, rdx; preserving value of x246 into a new reg
mov rdx, [ r10 + 0x10 ]; saving arg2[2] in rdx.
mov [ rsp + 0x130 ], rsi; spilling x234 to mem
mulx r13, rsi, r15; x153, x152<- x2 * arg2[2]
mov [ rsp + 0x138 ], rdi; spilling x260 to mem
seto dil; spill OF x211 to reg (rdi)
mov byte [ rsp + 0x140 ], r11b; spilling byte x172 to mem
mov r11, -0x1 ; moving imm to reg
inc r11; OF<-0x0, preserve CF (debug: state 5 (thanks Paul))
mov r11, -0x1 ; moving imm to reg
movzx r12, r12b
adox r12, r11; loading flag
adox rsi, [ rsp + 0x118 ]
mov r12, 0xffffffffffffffff ; moving imm to reg
mov rdx, r14; x183 to rdx
mulx r14, r11, r12; x190, x189<- x183 * 0xffffffffffffffff
adox rbx, r13
mov r13, rdx; preserving value of x183 into a new reg
mov rdx, [ r10 + 0x8 ]; saving arg2[1] in rdx.
mov [ rsp + 0x148 ], r14; spilling x190 to mem
mulx r12, r14, rcx; x232, x231<- x3 * arg2[1]
mov [ rsp + 0x150 ], r12; spilling x232 to mem
mov r12, 0xfffffffffffffffe ; moving imm to reg
mov rdx, r12; 0xfffffffffffffffe to rdx
mov [ rsp + 0x158 ], r11; spilling x189 to mem
mulx r12, r11, r13; x192, x191<- x183 * 0xfffffffffffffffe
seto dl; spill OF x163 to reg (rdx)
mov [ rsp + 0x160 ], r12; spilling x192 to mem
mov r12, 0x0 ; moving imm to reg
dec r12; OF<-0x0, preserve CF (debug: state 4 (thanks Paul))
movzx rax, al
adox rax, r12; loading flag
adox r8, r11
setc al; spill CF x247 to reg (rax)
movzx r11, byte [ rsp + 0x140 ]; load byte memx172 to register64
clc;
adcx r11, r12; loading flag
adcx rsi, [ rsp + 0x108 ]
mov r11, [ rsp + 0xf8 ]; x175, copying x139 here, cause x139 is needed in a reg for other than x175, namely all: , x175--x176, size: 1
adcx r11, rbx
xchg rdx, r15; x2, swapping with x163, which is currently in rdx
mulx rbx, r12, [ r10 + 0x20 ]; x149, x148<- x2 * arg2[4]
mov [ rsp + 0x168 ], rbx; spilling x149 to mem
mov rbx, 0xffffffff ; moving imm to reg
mov [ rsp + 0x170 ], r11; spilling x175 to mem
mov r11, rdx; preserving value of x2 into a new reg
mov rdx, [ rsp + 0x138 ]; saving x260 in rdx.
mov [ rsp + 0x178 ], r12; spilling x148 to mem
mov byte [ rsp + 0x180 ], r15b; spilling byte x163 to mem
mulx r12, r15, rbx; x273, x272<- x260 * 0xffffffff
setc bl; spill CF x176 to reg (rbx)
clc;
adcx r15, rbp
seto r15b; spill OF x200 to reg (r15)
mov rbp, 0x0 ; moving imm to reg
dec rbp; OF<-0x0, preserve CF (debug: state 4 (thanks Paul))
movzx rdi, dil
adox rdi, rbp; loading flag
adox rsi, r8
seto dil; spill OF x213 to reg (rdi)
inc rbp; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
adox r14, [ rsp + 0x130 ]
seto r8b; spill OF x236 to reg (r8)
dec rbp; OF<-0x0, preserve CF (debug: state 3 (y: 0, n: -1))
movzx rax, al
adox rax, rbp; loading flag
adox rsi, r14
xchg rdx, rcx; x3, swapping with x260, which is currently in rdx
mulx rax, r14, [ r10 + 0x10 ]; x230, x229<- x3 * arg2[2]
mov rbp, 0xffffffff00000000 ; moving imm to reg
xchg rdx, rcx; x260, swapping with x3, which is currently in rdx
mov [ rsp + 0x188 ], rax; spilling x230 to mem
mov byte [ rsp + 0x190 ], dil; spilling byte x213 to mem
mulx rax, rdi, rbp; x271, x270<- x260 * 0xffffffff00000000
seto bpl; spill OF x249 to reg (rbp)
mov [ rsp + 0x198 ], r14; spilling x229 to mem
mov r14, -0x2 ; moving imm to reg
inc r14; OF<-0x0, preserve CF (debug: 6; load -2, increase it, save as -1)
adox rdi, r12
mov r12, 0xfffffffffffffffe ; moving imm to reg
mov byte [ rsp + 0x1a0 ], bpl; spilling byte x249 to mem
mulx r14, rbp, r12; x269, x268<- x260 * 0xfffffffffffffffe
mov r12, 0xffffffffffffffff ; moving imm to reg
xchg rdx, r13; x183, swapping with x260, which is currently in rdx
mov [ rsp + 0x1a8 ], r14; spilling x269 to mem
mov byte [ rsp + 0x1b0 ], r8b; spilling byte x236 to mem
mulx r14, r8, r12; x188, x187<- x183 * 0xffffffffffffffff
adox rbp, rax
adcx rdi, rsi
mov rsi, [ rsp + 0x120 ]; load m64 x151 to register64
setc al; spill CF x288 to reg (rax)
movzx r12, byte [ rsp + 0x180 ]; load byte memx163 to register64
clc;
mov [ rsp + 0x1b8 ], rdi; spilling x287 to mem
mov rdi, -0x1 ; moving imm to reg
adcx r12, rdi; loading flag
adcx rsi, [ rsp + 0x178 ]
mov r12, [ rsp + 0x158 ]; load m64 x189 to register64
seto dil; spill OF x277 to reg (rdi)
mov [ rsp + 0x1c0 ], r14; spilling x188 to mem
mov r14, -0x1 ; moving imm to reg
inc r14; OF<-0x0, preserve CF (debug: state 5 (thanks Paul))
mov r14, -0x1 ; moving imm to reg
movzx r15, r15b
adox r15, r14; loading flag
adox r12, [ rsp + 0x160 ]
seto r15b; spill OF x202 to reg (r15)
inc r14; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
mov r14, -0x1 ; moving imm to reg
movzx rbx, bl
adox rbx, r14; loading flag
adox rsi, [ rsp + 0x100 ]
mov rbx, [ rsp + 0x150 ]; load m64 x232 to register64
seto r14b; spill OF x178 to reg (r14)
mov byte [ rsp + 0x1c8 ], dil; spilling byte x277 to mem
movzx rdi, byte [ rsp + 0x1b0 ]; load byte memx236 to register64
mov [ rsp + 0x1d0 ], rbp; spilling x276 to mem
mov rbp, -0x1 ; moving imm to reg
inc rbp; OF<-0x0, preserve CF (debug: state 5 (thanks Paul))
mov rbp, -0x1 ; moving imm to reg
adox rdi, rbp; loading flag
adox rbx, [ rsp + 0x198 ]
seto dil; spill OF x238 to reg (rdi)
inc rbp; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
mov rbp, -0x1 ; moving imm to reg
movzx r15, r15b
adox r15, rbp; loading flag
adox r8, [ rsp + 0x148 ]
setc r15b; spill CF x165 to reg (r15)
movzx rbp, byte [ rsp + 0x190 ]; load byte memx213 to register64
clc;
mov byte [ rsp + 0x1d8 ], r14b; spilling byte x178 to mem
mov r14, -0x1 ; moving imm to reg
adcx rbp, r14; loading flag
adcx r12, [ rsp + 0x170 ]
adcx r8, rsi
mov rbp, rdx; preserving value of x183 into a new reg
mov rdx, [ r10 + 0x18 ]; saving arg2[3] in rdx.
mulx rsi, r14, rcx; x228, x227<- x3 * arg2[3]
mov [ rsp + 0x1e0 ], rsi; spilling x228 to mem
setc sil; spill CF x217 to reg (rsi)
mov [ rsp + 0x1e8 ], r8; spilling x216 to mem
movzx r8, byte [ rsp + 0x1a0 ]; load byte memx249 to register64
clc;
mov byte [ rsp + 0x1f0 ], r15b; spilling byte x165 to mem
mov r15, -0x1 ; moving imm to reg
adcx r8, r15; loading flag
adcx r12, rbx
mov rdx, [ r10 + 0x28 ]; arg2[5] to rdx
mulx r11, r8, r11; x147, x146<- x2 * arg2[5]
seto bl; spill OF x204 to reg (rbx)
inc r15; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
mov r15, -0x1 ; moving imm to reg
movzx rax, al
adox rax, r15; loading flag
adox r12, [ rsp + 0x1d0 ]
seto al; spill OF x290 to reg (rax)
inc r15; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
mov r15, -0x1 ; moving imm to reg
movzx rdi, dil
adox rdi, r15; loading flag
adox r14, [ rsp + 0x188 ]
mov rdi, 0xffffffffffffffff ; moving imm to reg
mov rdx, r13; x260 to rdx
mulx r13, r15, rdi; x267, x266<- x260 * 0xffffffffffffffff
mov [ rsp + 0x1f8 ], r12; spilling x289 to mem
mov byte [ rsp + 0x200 ], sil; spilling byte x217 to mem
mulx r12, rsi, rdi; x265, x264<- x260 * 0xffffffffffffffff
xchg rdx, rbp; x183, swapping with x260, which is currently in rdx
mov [ rsp + 0x208 ], r12; spilling x265 to mem
mulx rdx, r12, rdi; x186, x185<- x183 * 0xffffffffffffffff
setc dil; spill CF x251 to reg (rdi)
clc;
mov [ rsp + 0x210 ], rdx; spilling x186 to mem
mov rdx, -0x1 ; moving imm to reg
movzx rbx, bl
adcx rbx, rdx; loading flag
adcx r12, [ rsp + 0x1c0 ]
setc bl; spill CF x206 to reg (rbx)
movzx rdx, byte [ rsp + 0x1f0 ]; load byte memx165 to register64
clc;
mov [ rsp + 0x218 ], r12; spilling x205 to mem
mov r12, -0x1 ; moving imm to reg
adcx rdx, r12; loading flag
adcx r8, [ rsp + 0x168 ]
mov rdx, 0x0 ; moving imm to reg
adcx r11, rdx
clc;
movzx rdi, dil
adcx rdi, r12; loading flag
adcx r14, [ rsp + 0x1e8 ]
setc dil; spill CF x253 to reg (rdi)
movzx rdx, byte [ rsp + 0x1d8 ]; load byte memx178 to register64
clc;
adcx rdx, r12; loading flag
adcx r8, [ rsp + 0x110 ]
seto dl; spill OF x240 to reg (rdx)
movzx r12, byte [ rsp + 0x1c8 ]; load byte memx277 to register64
mov byte [ rsp + 0x220 ], dil; spilling byte x253 to mem
mov rdi, 0x0 ; moving imm to reg
dec rdi; OF<-0x0, preserve CF (debug: state 4 (thanks Paul))
adox r12, rdi; loading flag
adox r15, [ rsp + 0x1a8 ]
xchg rdx, rcx; x3, swapping with x240, which is currently in rdx
mulx r12, rdi, [ r10 + 0x28 ]; x224, x223<- x3 * arg2[5]
adox rsi, r13
seto r13b; spill OF x281 to reg (r13)
mov [ rsp + 0x228 ], r12; spilling x224 to mem
mov r12, -0x1 ; moving imm to reg
inc r12; OF<-0x0, preserve CF (debug: state 5 (thanks Paul))
mov r12, -0x1 ; moving imm to reg
movzx rax, al
adox rax, r12; loading flag
adox r14, r15
mov rax, [ r9 + 0x28 ]; load m64 x5 to register64
mulx rdx, r15, [ r10 + 0x20 ]; x226, x225<- x3 * arg2[4]
movzx r12, byte [ rsp + 0x128 ]; x181, copying x145 here, cause x145 is needed in a reg for other than x181, namely all: , x181--x182, size: 1
adcx r12, r11
setc r11b; spill CF x182 to reg (r11)
clc;
mov [ rsp + 0x230 ], r14; spilling x291 to mem
mov r14, -0x1 ; moving imm to reg
movzx rcx, cl
adcx rcx, r14; loading flag
adcx r15, [ rsp + 0x1e0 ]
xchg rdx, rax; x5, swapping with x226, which is currently in rdx
mulx rcx, r14, [ r10 + 0x8 ]; x386, x385<- x5 * arg2[1]
adcx rdi, rax
movzx rax, bl; x207, copying x206 here, cause x206 is needed in a reg for other than x207, namely all: , x207, size: 1
mov [ rsp + 0x238 ], rcx; spilling x386 to mem
mov rcx, [ rsp + 0x210 ]; load m64 x186 to register64
lea rax, [ rax + rcx ]; r8/64 + m8
setc cl; spill CF x244 to reg (rcx)
movzx rbx, byte [ rsp + 0x200 ]; load byte memx217 to register64
clc;
mov [ rsp + 0x240 ], r14; spilling x385 to mem
mov r14, -0x1 ; moving imm to reg
adcx rbx, r14; loading flag
adcx r8, [ rsp + 0x218 ]
setc bl; spill CF x219 to reg (rbx)
movzx r14, byte [ rsp + 0x220 ]; load byte memx253 to register64
clc;
mov byte [ rsp + 0x248 ], r13b; spilling byte x281 to mem
mov r13, -0x1 ; moving imm to reg
adcx r14, r13; loading flag
adcx r8, r15
mulx r14, r15, [ r10 + 0x10 ]; x384, x383<- x5 * arg2[2]
seto r13b; spill OF x292 to reg (r13)
mov [ rsp + 0x250 ], r14; spilling x384 to mem
mov r14, -0x1 ; moving imm to reg
inc r14; OF<-0x0, preserve CF (debug: state 5 (thanks Paul))
mov r14, -0x1 ; moving imm to reg
movzx rbx, bl
adox rbx, r14; loading flag
adox r12, rax
mov rax, 0xffffffffffffffff ; moving imm to reg
xchg rdx, rbp; x260, swapping with x5, which is currently in rdx
mulx rdx, rbx, rax; x263, x262<- x260 * 0xffffffffffffffff
movzx r14, r11b; x222, copying x182 here, cause x182 is needed in a reg for other than x222, namely all: , x222, size: 1
mov rax, 0x0 ; moving imm to reg
adox r14, rax
adcx rdi, r12
dec rax; OF<-0x0, preserve CF (debug: state 3 (y: 0, n: -1))
movzx r13, r13b
adox r13, rax; loading flag
adox r8, rsi
mov rsi, rdx; preserving value of x263 into a new reg
mov rdx, [ r10 + 0x0 ]; saving arg2[0] in rdx.
mulx r13, r11, rbp; x388, x387<- x5 * arg2[0]
mov rdx, [ r10 + 0x20 ]; arg2[4] to rdx
mulx r12, rax, rbp; x380, x379<- x5 * arg2[4]
mov [ rsp + 0x258 ], r8; spilling x293 to mem
movzx r8, cl; x245, copying x244 here, cause x244 is needed in a reg for other than x245, namely all: , x245, size: 1
mov [ rsp + 0x260 ], r11; spilling x387 to mem
mov r11, [ rsp + 0x228 ]; load m64 x224 to register64
lea r8, [ r8 + r11 ]; r8/64 + m8
adcx r8, r14
mov r11, [ r9 + 0x20 ]; load m64 x4 to register64
setc cl; spill CF x259 to reg (rcx)
movzx r14, byte [ rsp + 0x248 ]; load byte memx281 to register64
clc;
mov [ rsp + 0x268 ], r8; spilling x258 to mem
mov r8, -0x1 ; moving imm to reg
adcx r14, r8; loading flag
adcx rbx, [ rsp + 0x208 ]
mov r14, 0x0 ; moving imm to reg
adcx rsi, r14
mov rdx, [ r10 + 0x18 ]; arg2[3] to rdx
mulx r14, r8, rbp; x382, x381<- x5 * arg2[3]
adox rbx, rdi
clc;
adcx r13, [ rsp + 0x240 ]
mov rdi, [ rsp + 0x238 ]; x391, copying x386 here, cause x386 is needed in a reg for other than x391, namely all: , x391--x392, size: 1
adcx rdi, r15
mov r15, [ rsp + 0x250 ]; x393, copying x384 here, cause x384 is needed in a reg for other than x393, namely all: , x393--x394, size: 1
adcx r15, r8
adcx rax, r14
mov rdx, r11; x4 to rdx
mulx r11, r14, [ r10 + 0x0 ]; x311, x310<- x4 * arg2[0]
mov r8, rdx; preserving value of x4 into a new reg
mov rdx, [ r10 + 0x28 ]; saving arg2[5] in rdx.
mov [ rsp + 0x270 ], rax; spilling x395 to mem
mulx rbp, rax, rbp; x378, x377<- x5 * arg2[5]
adcx rax, r12
mov r12, [ rsp + 0x268 ]; x297, copying x258 here, cause x258 is needed in a reg for other than x297, namely all: , x297--x298, size: 1
adox r12, rsi
mov rsi, 0x0 ; moving imm to reg
adcx rbp, rsi
clc;
adcx r14, [ rsp + 0x1b8 ]
mov rdx, [ r10 + 0x10 ]; arg2[2] to rdx
mov [ rsp + 0x278 ], rbp; spilling x399 to mem
mulx rsi, rbp, r8; x307, x306<- x4 * arg2[2]
mov [ rsp + 0x280 ], rax; spilling x397 to mem
mov rax, 0x100000001 ; moving imm to reg
mov rdx, r14; x323 to rdx
mov [ rsp + 0x288 ], r15; spilling x393 to mem
mulx r14, r15, rax; _, x337<- x323 * 0x100000001
xchg rdx, r8; x4, swapping with x323, which is currently in rdx
mulx r14, rax, [ r10 + 0x8 ]; x309, x308<- x4 * arg2[1]
mov [ rsp + 0x290 ], r12; spilling x297 to mem
mov [ rsp + 0x298 ], rbx; spilling x295 to mem
mulx r12, rbx, [ r10 + 0x18 ]; x305, x304<- x4 * arg2[3]
mov [ rsp + 0x2a0 ], r12; spilling x305 to mem
movzx r12, cl; x299, copying x259 here, cause x259 is needed in a reg for other than x299, namely all: , x299, size: 1
mov [ rsp + 0x2a8 ], rdi; spilling x391 to mem
mov rdi, 0x0 ; moving imm to reg
adox r12, rdi
mov rcx, -0x3 ; moving imm to reg
inc rcx; OF<-0x0, preserve CF (debug 7; load -3, increase it, save it as -2). #last resort
adox rax, r11
mov r11, 0xffffffff ; moving imm to reg
xchg rdx, r15; x337, swapping with x4, which is currently in rdx
mulx rdi, rcx, r11; x350, x349<- x337 * 0xffffffff
mov r11, 0xffffffffffffffff ; moving imm to reg
mov [ rsp + 0x2b0 ], r12; spilling x299 to mem
mov [ rsp + 0x2b8 ], r13; spilling x389 to mem
mulx r12, r13, r11; x344, x343<- x337 * 0xffffffffffffffff
mov r11, [ rsp + 0x1f8 ]; x325, copying x289 here, cause x289 is needed in a reg for other than x325, namely all: , x325--x326, size: 1
adcx r11, rax
mov rax, 0xffffffff00000000 ; moving imm to reg
mov [ rsp + 0x2c0 ], r12; spilling x344 to mem
mov [ rsp + 0x2c8 ], r13; spilling x343 to mem
mulx r12, r13, rax; x348, x347<- x337 * 0xffffffff00000000
adox rbp, r14
setc r14b; spill CF x326 to reg (r14)
clc;
adcx r13, rdi
setc dil; spill CF x352 to reg (rdi)
clc;
adcx rcx, r8
adcx r13, r11
setc cl; spill CF x365 to reg (rcx)
clc;
adcx r13, [ rsp + 0x260 ]
mov r8, 0x100000001 ; moving imm to reg
xchg rdx, r13; x400, swapping with x337, which is currently in rdx
mulx r11, rax, r8; _, x414<- x400 * 0x100000001
adox rbx, rsi
mov r11, 0xffffffff ; moving imm to reg
xchg rdx, rax; x414, swapping with x400, which is currently in rdx
mulx rsi, r8, r11; x427, x426<- x414 * 0xffffffff
setc r11b; spill CF x401 to reg (r11)
clc;
adcx r8, rax
mov r8, 0xfffffffffffffffe ; moving imm to reg
xchg rdx, r8; 0xfffffffffffffffe, swapping with x414, which is currently in rdx
mov [ rsp + 0x2d0 ], rsi; spilling x427 to mem
mulx rax, rsi, r13; x346, x345<- x337 * 0xfffffffffffffffe
setc dl; spill CF x440 to reg (rdx)
clc;
mov byte [ rsp + 0x2d8 ], r11b; spilling byte x401 to mem
mov r11, -0x1 ; moving imm to reg
movzx r14, r14b
adcx r14, r11; loading flag
adcx rbp, [ rsp + 0x230 ]
mov r14, 0xffffffff00000000 ; moving imm to reg
xchg rdx, r8; x414, swapping with x440, which is currently in rdx
mov byte [ rsp + 0x2e0 ], r8b; spilling byte x440 to mem
mulx r11, r8, r14; x425, x424<- x414 * 0xffffffff00000000
mov r14, [ rsp + 0x258 ]; x329, copying x293 here, cause x293 is needed in a reg for other than x329, namely all: , x329--x330, size: 1
adcx r14, rbx
seto bl; spill OF x317 to reg (rbx)
mov [ rsp + 0x2e8 ], r11; spilling x425 to mem
mov r11, 0x0 ; moving imm to reg
dec r11; OF<-0x0, preserve CF (debug: state 4 (thanks Paul))
movzx rdi, dil
adox rdi, r11; loading flag
adox r12, rsi
mov rdi, [ rsp + 0x2c8 ]; x355, copying x343 here, cause x343 is needed in a reg for other than x355, namely all: , x355--x356, size: 1
adox rdi, rax
seto al; spill OF x356 to reg (rax)
inc r11; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
mov rsi, -0x1 ; moving imm to reg
movzx rcx, cl
adox rcx, rsi; loading flag
adox rbp, r12
mov rcx, 0xfffffffffffffffe ; moving imm to reg
mulx r12, r11, rcx; x423, x422<- x414 * 0xfffffffffffffffe
setc sil; spill CF x330 to reg (rsi)
movzx rcx, byte [ rsp + 0x2d8 ]; load byte memx401 to register64
clc;
mov [ rsp + 0x2f0 ], r12; spilling x423 to mem
mov r12, -0x1 ; moving imm to reg
adcx rcx, r12; loading flag
adcx rbp, [ rsp + 0x2b8 ]
adox rdi, r14
setc cl; spill CF x403 to reg (rcx)
clc;
adcx r8, [ rsp + 0x2d0 ]
mov r14, 0xffffffffffffffff ; moving imm to reg
mov byte [ rsp + 0x2f8 ], al; spilling byte x356 to mem
mulx r12, rax, r14; x419, x418<- x414 * 0xffffffffffffffff
mov [ rsp + 0x300 ], r12; spilling x419 to mem
mov [ rsp + 0x308 ], rax; spilling x418 to mem
mulx r12, rax, r14; x421, x420<- x414 * 0xffffffffffffffff
mov r14, [ rsp + 0x2e8 ]; x430, copying x425 here, cause x425 is needed in a reg for other than x430, namely all: , x430--x431, size: 1
adcx r14, r11
setc r11b; spill CF x431 to reg (r11)
clc;
mov [ rsp + 0x310 ], r12; spilling x421 to mem
mov r12, -0x1 ; moving imm to reg
movzx rcx, cl
adcx rcx, r12; loading flag
adcx rdi, [ rsp + 0x2a8 ]
mov rcx, rdx; preserving value of x414 into a new reg
mov rdx, [ r10 + 0x28 ]; saving arg2[5] in rdx.
mov [ rsp + 0x318 ], rax; spilling x420 to mem
mulx r12, rax, r15; x301, x300<- x4 * arg2[5]
mov byte [ rsp + 0x320 ], r11b; spilling byte x431 to mem
seto r11b; spill OF x369 to reg (r11)
mov [ rsp + 0x328 ], r12; spilling x301 to mem
movzx r12, byte [ rsp + 0x2e0 ]; load byte memx440 to register64
mov [ rsp + 0x330 ], rax; spilling x300 to mem
mov rax, -0x1 ; moving imm to reg
inc rax; OF<-0x0, preserve CF (debug: state 5 (thanks Paul))
mov rax, -0x1 ; moving imm to reg
adox r12, rax; loading flag
adox rbp, r8
adox r14, rdi
setc r12b; spill CF x405 to reg (r12)
seto r8b; spill OF x444 to reg (r8)
mov rdi, rbp; x454, copying x441 here, cause x441 is needed in a reg for other than x454, namely all: , x454--x455, x468, size: 2
mov rax, 0xffffffff ; moving imm to reg
sub rdi, rax
mov rdx, r15; x4 to rdx
mulx rdx, r15, [ r10 + 0x20 ]; x303, x302<- x4 * arg2[4]
mov rax, r14; x456, copying x443 here, cause x443 is needed in a reg for other than x456, namely all: , x469, x456--x457, size: 2
mov [ rsp + 0x338 ], rdi; spilling x454 to mem
mov rdi, 0xffffffff00000000 ; moving imm to reg
sbb rax, rdi
mov rdi, 0x0 ; moving imm to reg
dec rdi; OF<-0x0, preserve CF (debug: state 4 (thanks Paul))
movzx rbx, bl
adox rbx, rdi; loading flag
adox r15, [ rsp + 0x2a0 ]
setc bl; spill CF x457 to reg (rbx)
clc;
movzx rsi, sil
adcx rsi, rdi; loading flag
adcx r15, [ rsp + 0x298 ]
mov rsi, [ rsp + 0x330 ]; x320, copying x300 here, cause x300 is needed in a reg for other than x320, namely all: , x320--x321, size: 1
adox rsi, rdx
mov rdx, 0xffffffffffffffff ; moving imm to reg
mulx rcx, rdi, rcx; x417, x416<- x414 * 0xffffffffffffffff
mov [ rsp + 0x340 ], rax; spilling x456 to mem
mov [ rsp + 0x348 ], rcx; spilling x417 to mem
mulx rax, rcx, r13; x340, x339<- x337 * 0xffffffffffffffff
mov byte [ rsp + 0x350 ], bl; spilling byte x457 to mem
mulx r13, rbx, r13; x342, x341<- x337 * 0xffffffffffffffff
mov rdx, [ rsp + 0x290 ]; x333, copying x297 here, cause x297 is needed in a reg for other than x333, namely all: , x333--x334, size: 1
adcx rdx, rsi
setc sil; spill CF x334 to reg (rsi)
mov byte [ rsp + 0x358 ], r8b; spilling byte x444 to mem
movzx r8, byte [ rsp + 0x2f8 ]; load byte memx356 to register64
clc;
mov [ rsp + 0x360 ], rdi; spilling x416 to mem
mov rdi, -0x1 ; moving imm to reg
adcx r8, rdi; loading flag
adcx rbx, [ rsp + 0x2c0 ]
mov r8, [ rsp + 0x328 ]; x322, copying x301 here, cause x301 is needed in a reg for other than x322, namely all: , x322, size: 1
mov rdi, 0x0 ; moving imm to reg
adox r8, rdi
adcx rcx, r13
adc rax, 0x0
mov r13, [ rsp + 0x2f0 ]; load m64 x423 to register64
add byte [ rsp + 0x320 ], 0x7F; load flag from rm/8 into OF, clears other flag. NODE, if operand1 is not a byte reg, this fails.
seto [ rsp + 0x320 ]; since that has deps, resore it whereever it was
adox r13, [ rsp + 0x318 ]
mov rdi, -0x1 ; moving imm to reg
movzx r11, r11b
adcx r11, rdi; loading flag
adcx r15, rbx
adcx rcx, rdx
setc r11b; spill CF x373 to reg (r11)
clc;
movzx r12, r12b
adcx r12, rdi; loading flag
adcx r15, [ rsp + 0x288 ]
mov r12, [ rsp + 0x270 ]; x408, copying x395 here, cause x395 is needed in a reg for other than x408, namely all: , x408--x409, size: 1
adcx r12, rcx
mov rdx, [ rsp + 0x308 ]; load m64 x418 to register64
mov rbx, [ rsp + 0x310 ]; x434, copying x421 here, cause x421 is needed in a reg for other than x434, namely all: , x434--x435, size: 1
adox rbx, rdx
mov rdx, [ rsp + 0x360 ]; load m64 x416 to register64
mov rcx, [ rsp + 0x300 ]; x436, copying x419 here, cause x419 is needed in a reg for other than x436, namely all: , x436--x437, size: 1
adox rcx, rdx
seto dl; spill OF x437 to reg (rdx)
inc rdi; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
mov rdi, -0x1 ; moving imm to reg
movzx rsi, sil
adox rsi, rdi; loading flag
adox r8, [ rsp + 0x2b0 ]
setc sil; spill CF x409 to reg (rsi)
movzx rdi, byte [ rsp + 0x358 ]; load byte memx444 to register64
clc;
mov [ rsp + 0x368 ], rcx; spilling x436 to mem
mov rcx, -0x1 ; moving imm to reg
adcx rdi, rcx; loading flag
adcx r15, r13
setc dil; spill CF x446 to reg (rdi)
seto r13b; spill OF x336 to reg (r13)
movzx rcx, byte [ rsp + 0x350 ]; x457, copying x457 here, cause x457 is needed in a reg for other than x457, namely all: , x458--x459, size: 1
add rcx, -0x1
mov rcx, r15; x458, copying x445 here, cause x445 is needed in a reg for other than x458, namely all: , x458--x459, x470, size: 2
mov byte [ rsp + 0x370 ], sil; spilling byte x409 to mem
mov rsi, 0xfffffffffffffffe ; moving imm to reg
sbb rcx, rsi
mov rsi, 0x0 ; moving imm to reg
dec rsi; OF<-0x0, preserve CF (debug: state 4 (thanks Paul))
movzx rdi, dil
adox rdi, rsi; loading flag
adox r12, rbx
seto bl; spill OF x448 to reg (rbx)
inc rsi; OF<-0x0, preserve CF (debug: state 2 (y: -1, n: 0))
mov rdi, -0x1 ; moving imm to reg
movzx r11, r11b
adox r11, rdi; loading flag
adox r8, rax
movzx rax, r13b; x376, copying x336 here, cause x336 is needed in a reg for other than x376, namely all: , x376, size: 1
adox rax, rsi
mov r11, r12; x460, copying x447 here, cause x447 is needed in a reg for other than x460, namely all: , x460--x461, x471, size: 2
mov r13, 0xffffffffffffffff ; moving imm to reg
sbb r11, r13
movzx rsi, dl; x438, copying x437 here, cause x437 is needed in a reg for other than x438, namely all: , x438, size: 1
mov rdi, [ rsp + 0x348 ]; load m64 x417 to register64
lea rsi, [ rsi + rdi ]; r8/64 + m8
movzx rdi, byte [ rsp + 0x370 ]; load byte memx409 to register64
mov rdx, 0x0 ; moving imm to reg
dec rdx; OF<-0x0, preserve CF (debug: state 4 (thanks Paul))
adox rdi, rdx; loading flag
adox r8, [ rsp + 0x280 ]
mov rdi, [ rsp + 0x278 ]; x412, copying x399 here, cause x399 is needed in a reg for other than x412, namely all: , x412--x413, size: 1
adox rdi, rax
setc al; spill CF x461 to reg (rax)
clc;
movzx rbx, bl
adcx rbx, rdx; loading flag
adcx r8, [ rsp + 0x368 ]
adcx rsi, rdi
seto bl; spill OF x453 to reg (rbx)
adc bl, 0x0
movzx rbx, bl
movzx rdi, al; x461, copying x461 here, cause x461 is needed in a reg for other than x461, namely all: , x462--x463, size: 1
add rdi, -0x1
mov rax, r8; x462, copying x449 here, cause x449 is needed in a reg for other than x462, namely all: , x462--x463, x472, size: 2
sbb rax, r13
mov rdx, rsi; x464, copying x451 here, cause x451 is needed in a reg for other than x464, namely all: , x473, x464--x465, size: 2
sbb rdx, r13
movzx r13, bl; _, copying x453 here, cause x453 is needed in a reg for other than _, namely all: , _--x467, size: 1
sbb r13, 0x00000000
cmovc rcx, r15; if CF, x470<- x445 (nzVar)
mov r13, [ rsp + 0x338 ]; x468, copying x454 here, cause x454 is needed in a reg for other than x468, namely all: , x468, size: 1
cmovc r13, rbp; if CF, x468<- x441 (nzVar)
cmovc r11, r12; if CF, x471<- x447 (nzVar)
mov rbp, [ rsp + 0x0 ]; load m64 out1 to register64
mov [ rbp + 0x0 ], r13; out1[0] = x468
cmovc rax, r8; if CF, x472<- x449 (nzVar)
mov [ rbp + 0x18 ], r11; out1[3] = x471
mov [ rbp + 0x20 ], rax; out1[4] = x472
mov [ rbp + 0x10 ], rcx; out1[2] = x470
mov r15, [ rsp + 0x340 ]; x469, copying x456 here, cause x456 is needed in a reg for other than x469, namely all: , x469, size: 1
cmovc r15, r14; if CF, x469<- x443 (nzVar)
cmovc rdx, rsi; if CF, x473<- x451 (nzVar)
mov [ rbp + 0x8 ], r15; out1[1] = x469
mov [ rbp + 0x28 ], rdx; out1[5] = x473
mov rbx, [ rsp + 0x378 ]; restoring from stack
mov rbp, [ rsp + 0x380 ]; restoring from stack
mov r12, [ rsp + 0x388 ]; restoring from stack
mov r13, [ rsp + 0x390 ]; restoring from stack
mov r14, [ rsp + 0x398 ]; restoring from stack
mov r15, [ rsp + 0x3a0 ]; restoring from stack
add rsp, 0x3a8
ret
; cpu AMD Ryzen 7 5800X 8-Core Processor
; clocked at 3533 MHz
; first cyclecount 248.52, best 196.78571428571428, lastGood 206.96428571428572
; seed 4366091815975477
; CC / CFLAGS clang / -march=native -mtune=native -O3
; time needed: 3050711 ms / 60000 runs=> 50.84518333333333ms/run
; Time spent for assembling and measureing (initial batch_size=56, initial num_batches=101): 127609 ms
; Ratio (time for assembling + measure)/(total runtime for 60000runs): 0.04182926537453072
; number reverted permutation/ tried permutation: 20933 / 30032 =69.702%
; number reverted decision/ tried decision: 18917 / 29969 =63.122% |
src/utilities.adb | kraileth/ravenadm | 18 | 21074 | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with GNAT.SHA1;
with Ada.Characters.Latin_1;
with Ada.Calendar.Conversions;
with Interfaces.C;
package body Utilities is
package HT renames HelperText;
package LAT renames Ada.Characters.Latin_1;
--------------------------------------------------------------------------------------------
-- lower_opsys
--------------------------------------------------------------------------------------------
function lower_opsys (opsys : supported_opsys) return String is
begin
case opsys is
when dragonfly => return "dragonfly";
when freebsd => return "freebsd";
when netbsd => return "netbsd";
when openbsd => return "openbsd";
when sunos => return "sunos";
when linux => return "linux";
when macos => return "darwin";
end case;
end lower_opsys;
--------------------------------------------------------------------------------------------
-- mixed_opsys
--------------------------------------------------------------------------------------------
function mixed_opsys (opsys : supported_opsys) return String is
begin
case opsys is
when dragonfly => return "DragonFly";
when freebsd => return "FreeBSD";
when netbsd => return "NetBSD";
when openbsd => return "OpenBSD";
when sunos => return "SunOS";
when linux => return "Linux";
when macos => return "Darwin";
end case;
end mixed_opsys;
--------------------------------------------------------------------------------------------
-- cpu_arch
--------------------------------------------------------------------------------------------
function cpu_arch (arch : supported_arch) return String is
begin
case arch is
when x86_64 => return "x86_64";
when i386 => return "i386";
when aarch64 => return "aarch64";
end case;
end cpu_arch;
--------------------------------------------------------------------------------------------
-- mixed_opsys
--------------------------------------------------------------------------------------------
function valid_lower_opsys (candidate : String) return Boolean is
begin
for opsys in supported_opsys'Range loop
if candidate = lower_opsys (opsys) then
return True;
end if;
end loop;
return False;
end valid_lower_opsys;
--------------------------------------------------------------------------------------------
-- valid_cpu_arch
--------------------------------------------------------------------------------------------
function valid_cpu_arch (candidate : String) return Boolean is
begin
for arch in supported_arch'Range loop
if candidate = cpu_arch (arch) then
return True;
end if;
end loop;
return False;
end valid_cpu_arch;
--------------------------------------------------------------------------------------------
-- convert_cpu_arch
--------------------------------------------------------------------------------------------
function convert_cpu_arch (archstr : String) return supported_arch is
begin
if archstr = "x86_64" then
return x86_64;
elsif archstr = "i386" then
return i386;
elsif archstr = "aarch64" then
return aarch64;
else
raise bad_input;
end if;
end convert_cpu_arch;
--------------------------------------------------------------------------------------------
-- bucket
--------------------------------------------------------------------------------------------
function bucket (palabra : String) return String
is
hashstr : String := GNAT.SHA1.Digest (palabra);
begin
return HelperText.uppercase (hashstr (hashstr'First .. hashstr'First + 1));
end bucket;
--------------------------------------------------------------------------------------------
-- apply_cbc_string
--------------------------------------------------------------------------------------------
procedure apply_cbc_string (value : in out HT.Text)
is
opening : Natural;
closing : Natural;
wrkstr : HT.Text;
begin
loop
opening := HT.SU.Index (value, "{{");
if opening = 0 then
return;
end if;
closing := HT.SU.Index (value, "}}");
if closing < opening then
-- covers the closing = 0 case too
return;
end if;
declare
wrkstr : String := HT.SU.Slice (value, 1, opening - 1) & "${" &
HT.SU.Slice (value, opening + 2, closing - 1) & "}" &
HT.SU.Slice (value, closing + 2, HT.SU.Length (value));
begin
value := HT.SUS (wrkstr);
end;
end loop;
end apply_cbc_string;
--------------------------------------------------------------------------------------------
-- mask_quoted_string
--------------------------------------------------------------------------------------------
function mask_quoted_string (raw : String) return String
is
mask : String := raw;
Qopened : Boolean := False;
switch : Boolean;
begin
-- Check for multiple space error or leading space error
-- We start by masking all spaces between quotations so we can accurately detect them
for x in mask'Range loop
switch := False;
if raw (x) = LAT.Quotation then
if not Qopened then
switch := True;
else
-- We must be at least mask'First + 1 if we are here
if not (raw (x - 1) = LAT.Reverse_Solidus) then
switch := True;
end if;
end if;
end if;
if switch then
Qopened := not Qopened;
elsif Qopened then
mask (x) := 'X';
end if;
end loop;
return mask;
end mask_quoted_string;
--------------------------------------------------------------------------------------------
-- json_nvpair_integer
--------------------------------------------------------------------------------------------
function json_nvpair_integer
(name : String;
value : Integer;
index : Positive;
padding : Natural) return String
is
pad : String (1 .. padding + 1) := (others => LAT.Space);
valstr : constant String := HT.int2str (value);
begin
if index > 1 then
pad (pad'Last) := LAT.Comma;
end if;
return pad & LAT.Quotation & name & LAT.Quotation & ": " & valstr & LAT.LF;
end json_nvpair_integer;
--------------------------------------------------------------------------------------------
-- json_nvpair_string
--------------------------------------------------------------------------------------------
function json_nvpair_string
(name : String;
value : String;
index : Positive;
padding : Natural) return String
is
pad : String (1 .. padding + 1) := (others => LAT.Space);
begin
if index > 1 then
pad (pad'Last) := LAT.Comma;
end if;
return pad & LAT.Quotation & name & LAT.Quotation & ": " &
LAT.Quotation & HT.json_escape (value) & LAT.Quotation & LAT.LF;
end json_nvpair_string;
--------------------------------------------------------------------------------------------
-- json_nvpair_complex
--------------------------------------------------------------------------------------------
function json_nvpair_complex
(name : String;
value : String;
index : Positive;
padding : Natural) return String
is
pad : String (1 .. padding + 1) := (others => LAT.Space);
begin
if index > 1 then
pad (pad'Last) := LAT.Comma;
end if;
return pad & LAT.Quotation & name & LAT.Quotation & ": " & value & LAT.LF;
end json_nvpair_complex;
--------------------------------------------------------------------------------------------
-- json_name_complex
--------------------------------------------------------------------------------------------
function json_name_complex (name : String; index : Positive; padding : Natural) return String
is
pad : String (1 .. padding + 1) := (others => LAT.Space);
begin
if index > 1 then
pad (pad'Last) := LAT.Comma;
end if;
return pad & LAT.Quotation & name & LAT.Quotation & ":" & LAT.LF;
end json_name_complex;
--------------------------------------------------------------------------------------------
-- json_object
--------------------------------------------------------------------------------------------
function json_object (initiating : Boolean; padding, index : Natural) return String
is
pad : String (1 .. padding + 1) := (others => LAT.Space);
begin
if initiating then
pad (pad'Last) := LAT.Left_Curly_Bracket;
if padding > 0 and then index > 1 then
pad (pad'Last - 1) := LAT.Comma;
end if;
else
pad (pad'Last) := LAT.Right_Curly_Bracket;
end if;
return pad & LAT.LF;
end json_object;
--------------------------------------------------------------------------------------------
-- json_array
--------------------------------------------------------------------------------------------
function json_array (initiating : Boolean; padding : Natural) return String
is
pad : String (1 .. padding + 1) := (others => LAT.Space);
begin
if initiating then
pad (pad'Last) := LAT.Left_Square_Bracket;
else
pad (pad'Last) := LAT.Right_Square_Bracket;
end if;
return pad & LAT.LF;
end json_array;
--------------------------------------------------------------------------------------------
-- convert_unixtime
--------------------------------------------------------------------------------------------
function convert_unixtime (unix_string : String) return CAL.Time
is
clong : Interfaces.C.long;
begin
clong := Interfaces.C.long'Value (unix_string);
return CAL.Conversions.To_Ada_Time (Unix_Time => clong);
exception
when others => return CAL.Time_Of (Year => 1980,
Month => 1,
Day => 1);
end convert_unixtime;
end Utilities;
|
Transynther/x86/_processed/US/_zr_/i3-7100_9_0xca_notsx.log_100_1079.asm | ljhsiun2/medusa | 9 | 163003 | <reponame>ljhsiun2/medusa<filename>Transynther/x86/_processed/US/_zr_/i3-7100_9_0xca_notsx.log_100_1079.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x13ec4, %rdx
nop
sub %r13, %r13
movb (%rdx), %bl
nop
nop
nop
nop
nop
add $14196, %rcx
lea addresses_A_ht+0x31c4, %r11
nop
nop
nop
xor $57131, %rcx
mov (%r11), %si
nop
nop
nop
and %rcx, %rcx
lea addresses_UC_ht+0xdbc4, %rdx
clflush (%rdx)
nop
nop
nop
nop
nop
cmp $43384, %r15
vmovups (%rdx), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $0, %xmm4, %rsi
nop
nop
xor $21472, %rcx
lea addresses_WT_ht+0x147c4, %rcx
nop
nop
nop
nop
nop
and %rsi, %rsi
mov (%rcx), %r11d
nop
nop
nop
nop
nop
sub $15782, %rcx
lea addresses_normal_ht+0x2ac4, %r11
nop
nop
nop
nop
nop
xor $713, %rbx
movups (%r11), %xmm3
vpextrq $1, %xmm3, %rsi
nop
nop
nop
nop
nop
inc %rdx
lea addresses_WC_ht+0x636c, %rbx
nop
nop
nop
nop
nop
add $54132, %r11
mov $0x6162636465666768, %r13
movq %r13, %xmm7
and $0xffffffffffffffc0, %rbx
vmovaps %ymm7, (%rbx)
nop
nop
nop
cmp $56078, %rbx
lea addresses_normal_ht+0x83c4, %rbx
inc %rsi
vmovups (%rbx), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %r11
nop
sub $55025, %r13
lea addresses_A_ht+0xc2da, %rdx
nop
dec %rbx
and $0xffffffffffffffc0, %rdx
movntdqa (%rdx), %xmm5
vpextrq $0, %xmm5, %rcx
nop
nop
nop
nop
nop
and $25419, %r13
lea addresses_D_ht+0x165c4, %rsi
lea addresses_A_ht+0x18204, %rdi
clflush (%rdi)
nop
nop
sub %r15, %r15
mov $81, %rcx
rep movsl
nop
nop
nop
nop
nop
xor %r11, %r11
lea addresses_A_ht+0x90c4, %r15
nop
nop
and %r11, %r11
movw $0x6162, (%r15)
nop
cmp %r13, %r13
lea addresses_UC_ht+0x884, %r13
nop
nop
nop
nop
add %r15, %r15
movb $0x61, (%r13)
nop
nop
nop
dec %r13
lea addresses_D_ht+0x1a0c4, %rbx
cmp $10956, %r11
movb (%rbx), %cl
nop
nop
nop
nop
nop
and %rcx, %rcx
lea addresses_normal_ht+0x2fc4, %rdi
xor %r13, %r13
mov (%rdi), %si
nop
sub $9504, %rdi
lea addresses_A_ht+0x127a1, %rcx
nop
nop
nop
and $32743, %r11
movups (%rcx), %xmm5
vpextrq $1, %xmm5, %rbx
xor %rdi, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r15
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %r8
push %r9
push %rdx
// Load
lea addresses_RW+0x15ac4, %rdx
nop
cmp %r13, %r13
vmovups (%rdx), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $1, %xmm0, %r14
nop
nop
nop
nop
nop
cmp %r8, %r8
// Faulty Load
lea addresses_US+0x37c4, %r14
and $48075, %r9
movups (%r14), %xmm0
vpextrq $0, %xmm0, %r13
lea oracles, %r11
and $0xff, %r13
shlq $12, %r13
mov (%r11,%r13,1), %r13
pop %rdx
pop %r9
pop %r8
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_RW', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': True, 'congruent': 8, 'NT': False, 'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': True}}
{'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': True, 'congruent': 1, 'NT': True, 'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 5, 'NT': False, 'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'00': 100}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
source/words/arithmetic/unary.asm | paulscottrobson/rpl-65 | 1 | 103994 | ; ******************************************************************************
; ******************************************************************************
;
; Name : unary.asm
; Purpose : Unary functions
; Author : <NAME> (<EMAIL>)
; Created : 12th November 2019
;
; ******************************************************************************
; ******************************************************************************
; ******************************************************************************
;
; Unary Absolute
;
; ******************************************************************************
Unary_Absolute: ;; [abs]
StartCommand
lda highStack,x
bmi Unary_Negate_Code
NextCommand
; ******************************************************************************
;
; Unary Negation
;
; ******************************************************************************
Unary_Negate: ;; [negate]
StartCommand
Unary_Negate_Code:
sec
lda #0
sbc lowStack,x
sta lowStack,x
;
lda #0
sbc highStack,x
sta highStack,x
NextCommand
; ******************************************************************************
;
; Unary 1's Complement
;
; ******************************************************************************
Unary_Not: ;; [not]
StartCommand
lda lowStack,x
eor #$FF
sta lowStack,x
;
lda highStack,x
eor #$FF
sta highStack,x
NextCommand
; ******************************************************************************
;
; Unary Increment
;
; ******************************************************************************
Unary_Increment: ;; [++]
StartCommand
inc lowStack,x
bne _UIExit
inc highStack,x
_UIExit:
NextCommand
; ******************************************************************************
;
; Unary Increment
;
; ******************************************************************************
Unary_Decrement: ;; [--]
StartCommand
lda lowStack,x
bne _UDNoBorrow
dec highStack,x
_UDNoBorrow:
dec lowStack,x
NextCommand
; ******************************************************************************
;
; Byte Swap
;
; ******************************************************************************
Unary_BSwap: ;; [bswap]
StartCommand
lda lowStack,x
pha
lda highStack,x
sta lowStack,x
pla
sta highStack,x
NextCommand
; ******************************************************************************
;
; Left Shift Logical
;
; ******************************************************************************
Unary_Shl: ;; [<<]
StartCommand
asl lowStack,x
rol highStack,x
NextCommand
; ******************************************************************************
;
; Right Shift Logical
;
; ******************************************************************************
Unary_Shr: ;; [>>]
StartCommand
lsr highStack,x
ror lowStack,x
NextCommand
; ******************************************************************************
;
; Sign of TOS
;
; ******************************************************************************
Unary_Sgn: ;; [sgn]
StartCommand
lda highStack,x ; check bit 7.
bpl _USNotNeg
lda #$FF ; if -ve set to -1
sta lowStack,x
sta highStack,x
bra _USExit
;
_USNotNeg:
ora lowStack,x ; A = Low|High
stz lowStack,x ; Zero result
stz highStack,x
cmp #0 ; if 0 return 0
beq _USExit
inc lowStack,x ; else return 1.
_USExit:
NextCommand
; ******************************************************************************
;
; Unary Random Number Generator
;
; ******************************************************************************
Random_Handler: ;; [rnd]
StartCommand
lda randomSeed
ora randomSeed+1
bne _RH_NoInit
lda #$7C
sta randomSeed
lda #$A1
sta randomSeed+1
_RH_NoInit:
lda randomSeed
lsr a
rol randomSeed+1
bcc _RH_NoEor
eor #$B4
_RH_NoEor:
sta randomSeed
eor randomSeed+1
;
inx
sta highStack,x
lda randomSeed
sta lowStack,x
NextCommand
|
src/Categories/Adjoint/Equivalence.agda | MirceaS/agda-categories | 0 | 1351 | <reponame>MirceaS/agda-categories
{-# OPTIONS --without-K --safe #-}
module Categories.Adjoint.Equivalence where
open import Level
open import Categories.Adjoint
open import Categories.Category
open import Categories.Functor renaming (id to idF)
open import Categories.Functor.Properties
open import Categories.NaturalTransformation using (ntHelper)
open import Categories.NaturalTransformation.NaturalIsomorphism as ≃ using (_≃_; NaturalIsomorphism)
open import Categories.NaturalTransformation.NaturalIsomorphism.Properties
import Categories.Morphism.Reasoning as MR
open import Relation.Binary using (Setoid; IsEquivalence)
private
variable
o ℓ e : Level
o′ ℓ′ e′ : Level
C D E : Category o ℓ e
infix 5 _⊣⊢_
record _⊣⊢_ (L : Functor C D) (R : Functor D C) : Set (levelOfTerm L ⊔ levelOfTerm R) where
field
unit : idF ≃ (R ∘F L)
counit : (L ∘F R) ≃ idF
module unit = NaturalIsomorphism unit
module counit = NaturalIsomorphism counit
private
module C = Category C
module D = Category D
module L = Functor L
module R = Functor R
field
zig : ∀ {A : C.Obj} → counit.⇒.η (L.₀ A) D.∘ L.₁ (unit.⇒.η A) D.≈ D.id
zag : ∀ {B : D.Obj} → R.₁ (counit.⇒.η B) C.∘ unit.⇒.η (R.₀ B) C.≈ C.id
op₁ : R.op ⊣⊢ L.op
op₁ = record
{ unit = counit.op
; counit = unit.op
; zig = zag
; zag = zig
}
zag⁻¹ : {B : D.Obj} → unit.⇐.η (R.F₀ B) C.∘ R.F₁ (counit.⇐.η B) C.≈ C.id
zag⁻¹ {B} = begin
unit.⇐.η (R.₀ B) C.∘ R.₁ (counit.⇐.η B) ≈˘⟨ flip-fromʳ unit.FX≅GX zag ⟩∘⟨refl ⟩
R.₁ (counit.⇒.η B) C.∘ R.₁ (counit.⇐.η B) ≈⟨ [ R ]-resp-∘ (counit.iso.isoʳ B) ⟩
R.₁ D.id ≈⟨ R.identity ⟩
C.id ∎
where open C.HomReasoning
open MR C
zig⁻¹ : {A : C.Obj} → L.F₁ (unit.⇐.η A) D.∘ counit.⇐.η (L.F₀ A) D.≈ D.id
zig⁻¹ {A} = begin
L.₁ (unit.⇐.η A) D.∘ counit.⇐.η (L.₀ A) ≈˘⟨ refl⟩∘⟨ flip-fromˡ counit.FX≅GX zig ⟩
L.₁ (unit.⇐.η A) D.∘ L.₁ (unit.⇒.η A) ≈⟨ [ L ]-resp-∘ (unit.iso.isoˡ A) ⟩
L.₁ C.id ≈⟨ L.identity ⟩
D.id ∎
where open D.HomReasoning
open MR D
op₂ : R ⊣⊢ L
op₂ = record
{ unit = ≃.sym counit
; counit = ≃.sym unit
; zig = zag⁻¹
; zag = zig⁻¹
}
L⊣R : L ⊣ R
L⊣R = record
{ unit = unit.F⇒G
; counit = counit.F⇒G
; zig = zig
; zag = zag
}
module L⊣R = Adjoint L⊣R
open L⊣R hiding (unit; counit; zig; zag; op) public
R⊣L : R ⊣ L
R⊣L = record
{ unit = counit.F⇐G
; counit = unit.F⇐G
; zig = zag⁻¹
; zag = zig⁻¹
}
module R⊣L = Adjoint R⊣L
private
record WithZig (L : Functor C D) (R : Functor D C) : Set (levelOfTerm L ⊔ levelOfTerm R) where
field
unit : idF ≃ (R ∘F L)
counit : (L ∘F R) ≃ idF
module unit = NaturalIsomorphism unit
module counit = NaturalIsomorphism counit
private
module C = Category C
module D = Category D
module L = Functor L
module R = Functor R
module ℱ = Functor
field
zig : ∀ {A : C.Obj} → counit.⇒.η (L.₀ A) D.∘ L.₁ (unit.⇒.η A) D.≈ D.id
zag : ∀ {B : D.Obj} → R.₁ (counit.⇒.η B) C.∘ unit.⇒.η (R.₀ B) C.≈ C.id
zag {B} = F≃id⇒id (≃.sym unit) helper
where open C
open HomReasoning
helper : R.₁ (L.₁ (R.₁ (counit.⇒.η B) ∘ unit.⇒.η (R.₀ B))) ≈ id
helper = begin
R.₁ (L.₁ (R.₁ (counit.⇒.η B) ∘ unit.⇒.η (R.₀ B))) ≈⟨ ℱ.homomorphism (R ∘F L) ⟩
R.₁ (L.₁ (R.₁ (counit.⇒.η B))) ∘ R.₁ (L.₁ (unit.⇒.η (R.₀ B))) ≈˘⟨ R.F-resp-≈ (F≃id-comm₁ counit) ⟩∘⟨refl ⟩
R.₁ (counit.⇒.η (L.₀ (R.₀ B))) ∘ R.₁ (L.₁ (unit.⇒.η (R.₀ B))) ≈⟨ [ R ]-resp-∘ zig ⟩
R.₁ D.id ≈⟨ R.identity ⟩
id ∎
record WithZag (L : Functor C D) (R : Functor D C) : Set (levelOfTerm L ⊔ levelOfTerm R) where
field
unit : idF ≃ (R ∘F L)
counit : (L ∘F R) ≃ idF
module unit = NaturalIsomorphism unit
module counit = NaturalIsomorphism counit
private
module C = Category C
module D = Category D
module L = Functor L
module R = Functor R
module ℱ = Functor
field
zag : ∀ {B : D.Obj} → R.₁ (counit.⇒.η B) C.∘ unit.⇒.η (R.₀ B) C.≈ C.id
zig : ∀ {A : C.Obj} → counit.⇒.η (L.₀ A) D.∘ L.₁ (unit.⇒.η A) D.≈ D.id
zig {A} = F≃id⇒id counit helper
where open D
open HomReasoning
helper : L.₁ (R.₁ (counit.⇒.η (L.₀ A) ∘ L.₁ (unit.⇒.η A))) ≈ id
helper = begin
L.₁ (R.₁ (counit.⇒.η (L.₀ A) ∘ L.₁ (unit.⇒.η A))) ≈⟨ ℱ.homomorphism (L ∘F R) ⟩
(L.₁ (R.₁ (counit.⇒.η (L.₀ A))) ∘ L.₁ (R.₁ (L.₁ (unit.⇒.η A)))) ≈˘⟨ refl⟩∘⟨ L.F-resp-≈ (F≃id-comm₂ (≃.sym unit)) ⟩
L.₁ (R.₁ (counit.⇒.η (L.₀ A))) ∘ L.₁ (unit.⇒.η (R.₀ (L.₀ A))) ≈⟨ [ L ]-resp-∘ zag ⟩
L.₁ C.id ≈⟨ L.identity ⟩
id ∎
module _ {L : Functor C D} {R : Functor D C} where
withZig : WithZig L R → L ⊣⊢ R
withZig LR = record
{ unit = unit
; counit = counit
; zig = zig
; zag = zag
}
where open WithZig LR
withZag : WithZag L R → L ⊣⊢ R
withZag LR = record
{ unit = unit
; counit = counit
; zig = zig
; zag = zag
}
where open WithZag LR
id⊣⊢id : idF {C = C} ⊣⊢ idF
id⊣⊢id {C = C} = record
{ unit = ≃.sym ≃.unitor²
; counit = ≃.unitor²
; zig = identity²
; zag = identity²
}
where open Category C
module _ {L : Functor C D} {R : Functor D C} {L′ : Functor D E} {R′ : Functor E D}
(L⊣⊢R : L ⊣⊢ R) (L′⊣⊢R′ : L′ ⊣⊢ R′) where
private
module C = Category C
module D = Category D
module E = Category E
module L = Functor L
module R = Functor R
module L′ = Functor L′
module R′ = Functor R′
module ⊣⊢₁ = _⊣⊢_ L⊣⊢R
module ⊣⊢₂ = _⊣⊢_ L′⊣⊢R′
unit : idF ≃ (R ∘F R′) ∘F L′ ∘F L
unit = record
{ F⇒G = ntHelper record
{ η = λ c → R.₁ (⊣⊢₂.unit.⇒.η (L.₀ c)) ∘ ⊣⊢₁.unit.⇒.η c
; commute = λ {x} {y} f → begin
(R.₁ (⊣⊢₂.unit.⇒.η (L.₀ y)) ∘ ⊣⊢₁.unit.⇒.η y) ∘ f
≈⟨ pullʳ (⊣⊢₁.unit.⇒.commute f) ⟩
R.₁ (⊣⊢₂.unit.⇒.η (L.₀ y)) ∘ R.₁ (L.₁ f) ∘ ⊣⊢₁.unit.⇒.η x
≈⟨ pullˡ ([ R ]-resp-square (⊣⊢₂.unit.⇒.commute (L.₁ f))) ⟩
(R.₁ (R′.₁ (L′.₁ (L.₁ f))) ∘ R.₁ (⊣⊢₂.unit.⇒.η (L.₀ x))) ∘ ⊣⊢₁.unit.⇒.η x
≈⟨ assoc ⟩
R.₁ (R′.₁ (L′.₁ (L.₁ f))) ∘ R.₁ (⊣⊢₂.unit.⇒.η (L.₀ x)) ∘ ⊣⊢₁.unit.⇒.η x
∎
}
; F⇐G = ntHelper record
{ η = λ c → ⊣⊢₁.unit.⇐.η c ∘ R.₁ (⊣⊢₂.unit.⇐.η (L.₀ c))
; commute = λ {x} {y} f → begin
(⊣⊢₁.unit.⇐.η y ∘ R.₁ (⊣⊢₂.unit.⇐.η (L.₀ y))) ∘ R.₁ (R′.₁ (L′.₁ (L.₁ f)))
≈⟨ pullʳ ([ R ]-resp-square (⊣⊢₂.unit.⇐.commute (L.₁ f))) ⟩
⊣⊢₁.unit.⇐.η y ∘ R.₁ (L.₁ f) ∘ R.₁ (⊣⊢₂.unit.⇐.η (L.₀ x))
≈⟨ pullˡ (⊣⊢₁.unit.⇐.commute f) ⟩
(f ∘ ⊣⊢₁.unit.⇐.η x) ∘ R.₁ (⊣⊢₂.unit.⇐.η (L.₀ x))
≈⟨ assoc ⟩
f ∘ ⊣⊢₁.unit.⇐.η x ∘ R.₁ (⊣⊢₂.unit.⇐.η (L.₀ x))
∎
}
; iso = λ c → record
{ isoˡ = begin
(⊣⊢₁.unit.⇐.η c ∘ R.₁ (⊣⊢₂.unit.⇐.η (L.₀ c))) ∘ R.₁ (⊣⊢₂.unit.⇒.η (L.₀ c)) ∘ ⊣⊢₁.unit.⇒.η c
≈⟨ center ([ R ]-resp-∘ (⊣⊢₂.unit.iso.isoˡ (L.₀ c))) ⟩
⊣⊢₁.unit.⇐.η c ∘ R.₁ D.id ∘ ⊣⊢₁.unit.⇒.η c
≈⟨ refl⟩∘⟨ elimˡ R.identity ⟩
⊣⊢₁.unit.⇐.η c ∘ ⊣⊢₁.unit.⇒.η c
≈⟨ ⊣⊢₁.unit.iso.isoˡ c ⟩
id
∎
; isoʳ = begin
(R.₁ (⊣⊢₂.unit.⇒.η (L.₀ c)) ∘ ⊣⊢₁.unit.⇒.η c) ∘ ⊣⊢₁.unit.⇐.η c ∘ R.₁ (⊣⊢₂.unit.⇐.η (L.₀ c))
≈⟨ center (⊣⊢₁.unit.iso.isoʳ c) ⟩
R.₁ (⊣⊢₂.unit.⇒.η (L.₀ c)) ∘ id ∘ R.₁ (⊣⊢₂.unit.⇐.η (L.₀ c))
≈⟨ refl⟩∘⟨ identityˡ ⟩
R.₁ (⊣⊢₂.unit.⇒.η (L.₀ c)) ∘ R.₁ (⊣⊢₂.unit.⇐.η (L.₀ c))
≈⟨ [ R ]-resp-∘ (⊣⊢₂.unit.iso.isoʳ (L.₀ c)) ⟩
R.₁ D.id
≈⟨ R.identity ⟩
id
∎
}
}
where open C
open HomReasoning
open MR C
module unit = NaturalIsomorphism unit
counit : (L′ ∘F L) ∘F R ∘F R′ ≃ idF
counit = record
{ F⇒G = ntHelper record
{ η = λ e → ⊣⊢₂.counit.⇒.η e ∘ L′.₁ (⊣⊢₁.counit.⇒.η (R′.₀ e))
; commute = λ {x} {y} f → begin
(⊣⊢₂.counit.⇒.η y ∘ L′.₁ (⊣⊢₁.counit.⇒.η (R′.₀ y))) ∘ L′.₁ (L.₁ (R.₁ (R′.₁ f)))
≈⟨ pullʳ ([ L′ ]-resp-square (⊣⊢₁.counit.⇒.commute (R′.₁ f))) ⟩
⊣⊢₂.counit.⇒.η y ∘ L′.₁ (R′.₁ f) ∘ L′.₁ (⊣⊢₁.counit.⇒.η (R′.₀ x))
≈⟨ pullˡ (⊣⊢₂.counit.⇒.commute f) ⟩
(f ∘ ⊣⊢₂.counit.⇒.η x) ∘ L′.₁ (⊣⊢₁.counit.⇒.η (R′.₀ x))
≈⟨ assoc ⟩
f ∘ ⊣⊢₂.counit.⇒.η x ∘ L′.₁ (⊣⊢₁.counit.⇒.η (R′.₀ x))
∎
}
; F⇐G = ntHelper record
{ η = λ e → L′.₁ (⊣⊢₁.counit.⇐.η (R′.₀ e)) ∘ ⊣⊢₂.counit.⇐.η e
; commute = λ {x} {y} f → begin
(L′.₁ (⊣⊢₁.counit.⇐.η (R′.₀ y)) ∘ ⊣⊢₂.counit.⇐.η y) ∘ f
≈⟨ pullʳ (⊣⊢₂.counit.⇐.commute f) ⟩
L′.₁ (⊣⊢₁.counit.⇐.η (R′.₀ y)) ∘ L′.₁ (R′.₁ f) ∘ ⊣⊢₂.counit.⇐.η x
≈⟨ pullˡ ([ L′ ]-resp-square (⊣⊢₁.counit.⇐.commute (R′.₁ f))) ⟩
(L′.₁ (L.₁ (R.₁ (R′.₁ f))) ∘ L′.₁ (⊣⊢₁.counit.⇐.η (R′.₀ x))) ∘ ⊣⊢₂.counit.⇐.η x
≈⟨ assoc ⟩
L′.₁ (L.₁ (R.₁ (R′.₁ f))) ∘ L′.₁ (⊣⊢₁.counit.⇐.η (R′.₀ x)) ∘ ⊣⊢₂.counit.⇐.η x
∎
}
; iso = λ e → record
{ isoˡ = begin
(L′.₁ (⊣⊢₁.counit.⇐.η (R′.₀ e)) ∘ ⊣⊢₂.counit.⇐.η e) ∘ ⊣⊢₂.counit.⇒.η e ∘ L′.₁ (⊣⊢₁.counit.⇒.η (R′.₀ e))
≈⟨ center (⊣⊢₂.counit.iso.isoˡ e) ⟩
L′.₁ (⊣⊢₁.counit.⇐.η (R′.₀ e)) ∘ id ∘ L′.₁ (⊣⊢₁.counit.⇒.η (R′.₀ e))
≈⟨ refl⟩∘⟨ identityˡ ⟩
L′.₁ (⊣⊢₁.counit.⇐.η (R′.₀ e)) ∘ L′.₁ (⊣⊢₁.counit.⇒.η (R′.₀ e))
≈⟨ [ L′ ]-resp-∘ (⊣⊢₁.counit.iso.isoˡ (R′.₀ e)) ⟩
L′.₁ D.id
≈⟨ L′.identity ⟩
id
∎
; isoʳ = begin
(⊣⊢₂.counit.⇒.η e ∘ L′.₁ (⊣⊢₁.counit.⇒.η (R′.₀ e))) ∘ L′.₁ (⊣⊢₁.counit.⇐.η (R′.₀ e)) ∘ ⊣⊢₂.counit.⇐.η e
≈⟨ center ([ L′ ]-resp-∘ (⊣⊢₁.counit.iso.isoʳ (R′.₀ e))) ⟩
⊣⊢₂.counit.⇒.η e ∘ L′.₁ D.id ∘ ⊣⊢₂.counit.⇐.η e
≈⟨ refl⟩∘⟨ elimˡ L′.identity ⟩
⊣⊢₂.counit.⇒.η e ∘ ⊣⊢₂.counit.⇐.η e
≈⟨ ⊣⊢₂.counit.iso.isoʳ e ⟩
id
∎
}
}
where open E
open HomReasoning
open MR E
module counit = NaturalIsomorphism counit
zig : ∀ {c} → counit.⇒.η (L′.₀ (L.₀ c)) E.∘ L′.₁ (L.₁ (unit.⇒.η c)) E.≈ E.id
zig {c} = begin
counit.⇒.η (L′.₀ (L.₀ c)) ∘ L′.₁ (L.₁ (unit.⇒.η c))
≈⟨ refl⟩∘⟨ Functor.homomorphism (L′ ∘F L) ⟩
counit.⇒.η (L′.₀ (L.₀ c)) ∘ L′.₁ (L.₁ (R.₁ (⊣⊢₂.unit.⇒.η (L.₀ c)))) ∘ L′.₁ (L.₁ (⊣⊢₁.unit.⇒.η c))
≈⟨ center ([ L′ ]-resp-square (⊣⊢₁.counit.⇒.commute (⊣⊢₂.unit.⇒.η (L.₀ c)))) ⟩
⊣⊢₂.counit.⇒.η (L′.₀ (L.₀ c)) ∘ (L′.₁ (⊣⊢₂.unit.⇒.η (L.₀ c)) ∘ L′.₁ (⊣⊢₁.counit.⇒.η (L.₀ c))) ∘ L′.₁ (L.₁ (⊣⊢₁.unit.⇒.η c))
≈⟨ pull-first ⊣⊢₂.zig ⟩
id ∘ L′.₁ (⊣⊢₁.counit.⇒.η (L.₀ c)) ∘ L′.₁ (L.₁ (⊣⊢₁.unit.⇒.η c))
≈⟨ elimʳ (([ L′ ]-resp-∘ ⊣⊢₁.zig) ○ L′.identity) ⟩
id
∎
where open E
open HomReasoning
open MR E
_∘⊣⊢_ : (L′ ∘F L) ⊣⊢ (R ∘F R′)
_∘⊣⊢_ = withZig record
{ unit = unit
; counit = counit
; zig = zig
}
record ⊣Equivalence (C : Category o ℓ e) (D : Category o′ ℓ′ e′) : Set (o ⊔ ℓ ⊔ e ⊔ o′ ⊔ ℓ′ ⊔ e′) where
field
L : Functor C D
R : Functor D C
L⊣⊢R : L ⊣⊢ R
module L = Functor L
module R = Functor R
module L⊣⊢R = _⊣⊢_ L⊣⊢R
open L⊣⊢R public
refl : ⊣Equivalence C C
refl = record
{ L = idF
; R = idF
; L⊣⊢R = id⊣⊢id
}
sym : ⊣Equivalence C D → ⊣Equivalence D C
sym e = record
{ L = R
; R = L
; L⊣⊢R = op₂
}
where open ⊣Equivalence e
trans : ⊣Equivalence C D → ⊣Equivalence D E → ⊣Equivalence C E
trans e e′ = record
{ L = e′.L ∘F e.L
; R = e.R ∘F e′.R
; L⊣⊢R = e.L⊣⊢R ∘⊣⊢ e′.L⊣⊢R
}
where module e = ⊣Equivalence e
module e′ = ⊣Equivalence e′
isEquivalence : ∀ {o ℓ e} → IsEquivalence (⊣Equivalence {o} {ℓ} {e})
isEquivalence = record
{ refl = refl
; sym = sym
; trans = trans
}
setoid : ∀ o ℓ e → Setoid _ _
setoid o ℓ e = record
{ Carrier = Category o ℓ e
; _≈_ = ⊣Equivalence
; isEquivalence = isEquivalence
}
|
test/fail/Issue1012.agda | larrytheliquid/agda | 1 | 5203 | <filename>test/fail/Issue1012.agda
open import Common.Prelude
open import Common.Reflect
id : {A : Set} → A → A
id x = x
idTerm : Term
idTerm = lam visible (def (quote id) (arg₁ ∷ arg₂ ∷ []))
where
arg₁ = arg (arginfo hidden relevant) (def (quote Nat) [])
arg₂ = arg (arginfo visible relevant) (var 0 [])
-- Should fail since idTerm "λ z → id {Nat} z"
id₂ : {A : Set} → A → A
id₂ = unquote idTerm
|
src/compiler-print.ads | GLADORG/template-compiler | 0 | 15937 | <filename>src/compiler-print.ads<gh_stars>0
with Compiler, Ada.Wide_Wide_Text_IO.Text_Streams;
use Compiler, Ada.Wide_Wide_Text_IO.Text_Streams;
package Compiler.Print is
use Compiler.Node_List;
procedure Debug (S : Stream_Access; AST : List);
procedure Recreate (S : Stream_Access; AST : List);
private
end Compiler.Print; |
lib/scripts/get_playlist_songs.itunes.applescript | swdotcom/music | 11 | 87 | on escape_quotes(string_to_escape)
set AppleScript's text item delimiters to the "\""
set the item_list to every text item of string_to_escape
set AppleScript's text item delimiters to the "\\\""
set string_to_escape to the item_list as string
set AppleScript's text item delimiters to ""
return string_to_escape
end escape_quotes
on run argv
set playlistName to (item 1 of argv)
set myList to {}
tell application "iTunes"
set results to (every file track of playlist playlistName)
set counter to 0
set len to count of results
repeat with aTrack in results
set t_info to "{"
set t_info to t_info & "\"artist\": \"" & my escape_quotes(artist of aTrack) & "\""
set t_info to t_info & ",\"album\": \"" & my escape_quotes(album of aTrack) & "\""
set t_info to t_info & ",\"duration\": " & (((duration of aTrack) * 1000) as integer)
set t_info to t_info & ",\"played_count\": " & played count of aTrack
set t_info to t_info & ",\"name\": \"" & my escape_quotes(name of aTrack) & "\""
set t_info to t_info & ",\"id\": \"" & id of aTrack & "\""
set testCount to counter + 1
if testCount is greater than or equal to len then
set t_info to t_info & "}"
else
set t_info to t_info & "}[TRACK_END]"
end if
copy t_info to end of myList
set counter to counter + 1
end repeat
end tell
return myList
end run |
oeis/041/A041058.asm | neoneye/loda-programs | 11 | 166556 | <gh_stars>10-100
; A041058: Numerators of continued fraction convergents to sqrt(35).
; Submitted by <NAME>
; 5,6,65,71,775,846,9235,10081,110045,120126,1311305,1431431,15625615,17057046,186196075,203253121,2218727285,2421980406,26438531345,28860511751,315043648855,343904160606,3754085254915,4097989415521,44733979410125,48831968825646,533053667666585,581885636492231,6351910032588895,6933795669081126,75689866723400155,82623662392481281,901926490648212965,984550153040694246,10747428021055155425,11731978174095849671,128067209762013652135,139799187936109501806,1526059089123108670195,1665858277059218172001
add $0,1
mov $3,1
lpb $0
sub $0,1
add $2,$3
mov $3,$1
mov $1,$2
dif $2,10
mul $2,5
add $3,$2
lpe
mov $0,$3
|
programs/oeis/047/A047515.asm | neoneye/loda | 22 | 23263 | ; A047515: Numbers that are congruent to {0, 3, 4, 6, 7} mod 8.
; 0,3,4,6,7,8,11,12,14,15,16,19,20,22,23,24,27,28,30,31,32,35,36,38,39,40,43,44,46,47,48,51,52,54,55,56,59,60,62,63,64,67,68,70,71,72,75,76,78,79,80,83,84,86,87,88
add $0,4
mov $1,$0
mul $0,2
add $0,11
div $0,5
mul $0,6
div $0,4
add $0,$1
sub $0,8
|
oeis/253/A253477.asm | neoneye/loda-programs | 11 | 170589 | ; A253477: Indices of centered heptagonal numbers (A069099) which are also centered triangular numbers (A005448).
; Submitted by <NAME>
; 1,10,46,1045,5005,114886,550450,12636361,60544441,1389884770,6659338006,152874688285,732466636165,16814825826526,80564670640090,1849477966229521,8861381303773681,203425761459420730,974671378744464766,22374984282570050725,107204990280587350525,2461044845321246158966,11791574259485864092930,270692558001054507435481,1296965963553164462871721,29773720335270674571743890,142654464416588605051796326,3274838544321773148384392365,15690694119861193391234724085,360202466155059775647711416206
mul $0,3
mov $3,1
lpb $0
sub $0,$3
mov $1,$4
mul $1,3
add $2,2
add $2,$1
mov $3,2
add $4,$2
lpe
mov $0,$4
div $0,12
mul $0,9
add $0,1
|
bitflow-query-language/BitflowQuery.g4 | bitflow-stream/bitflow-script | 0 | 1512 |
grammar BitflowQuery;
parse:
aggregateSelections
whereFunction?
groupByFunction?
windowFunction?
havingFunction?
EOF;
aggregateSelections:
SELECTKEYWORD selectAll
| SELECTKEYWORD (selectElement ', ')* selectElement;
selectAll: '*' | ALLWORD;
selectElement:
mathematicalSelection ASWORD STRING
| mathematicalSelection
| selectFunction ASWORD STRING
| selectFunction
| selectDefault ASWORD STRING
| selectDefault;
selectDefault: STRING | DECITIMES | NUMBER;
mathematicalSelection:
leftParen mathematicalSelection rightParen
| mathematicalSelection mathematicalOperation mathematicalSelection
| selectFunction
| selectDefault;
leftParen: LPAREN;
rightParen: RPAREN;
selectFunction: selectSum | selectMin | selectMax | selectAvg | selectMedian | selectCount;
selectSum: SUMKEYWORD STRING ')';
selectMin: MINKEYWORD STRING ')';
selectMax: MAXKEYWORD STRING ')';
selectAvg: AVGKEYWORD STRING ')';
selectMedian: MEDIANWORD STRING ')';
selectCount: countTag | countNorTIMES;
countTag: COUNTWORD STRING (',' STRING)* ')';
countNorTIMES: COUNTWORD '*)';
groupByFunction: GROUPBYKEYWORD tag (', 'tag)*;
whereFunction: WHEREKEYWORD expression;
havingFunction: HAVINGKEYWORD expression;
windowFunction: WINDOWKEYWORD windowmode;
windowmode: allMode | valueMode | timeMode;
allMode: ALLWORD;
timeMode: FILEWORD? days? hours? minutes? seconds?;
valueMode: NUMBER;
tag: STRING;
days: (NUMBER 'd') | (NUMBER 'D');
hours: (NUMBER 'h')| (NUMBER 'H');
minutes: (NUMBER 'm')| (NUMBER 'M');
seconds: (NUMBER 's')| (NUMBER 'S');
expression:
LPAREN expression RPAREN
| notnode expression
| left=expression comparator right=expression
| left=expression binary right=expression
| boolToken
| inexpressionmetric
| inexpressiontag
| hastag
| endnode;
inexpressiontag: TAGWORD STRING ')' INWORD '{' STRING (',' STRING)* '}';
inexpressionmetric: STRING INWORD '{' NUMBER (',' NUMBER)* '}';
hastag: TAGWORD STRING ') = "' STRING '"';
notnode: NOT;
endnode: IDENTIFIER | DECITIMES | STRING | NUMBER;
comparator: GT | GE | LT | LE | EQ;
binary: AND | OR;
mathematicalOperation: TIMES | DIVIDED | PLUS | MINUS ;
boolToken: TRUE | FALSE;
list: (STRING ',')* STRING;
SELECTKEYWORD: [Ss] [Ee] [Ll] [Ee] [Cc] [Tt] ' ';
WHEREKEYWORD: ' ' [Ww] [Hh] [Ee] [Rr] [Ee] ' ';
WINDOWKEYWORD: ' ' [Ww] [Ii] [Nn] [Dd] [Oo] [Ww] ' ';
GROUPBYKEYWORD: ' ' [Gg] [Rr] [Oo] [Uu] [Pp] ' ' [Bb] [Yy] ' ';
HAVINGKEYWORD: ' ' [Hh] [Aa] [Vv] [Ii] [Nn] [Gg] ' ';
ALLWORD: [Aa] [Ll] [Ll];
ASWORD: ' ' [Aa] [Ss] ' ';
SUMKEYWORD: [Ss] [Uu] [Mm] '(';
MINKEYWORD: [Mm] [Ii] [Nn] '(';
MAXKEYWORD: [Mm] [Aa] [Xx] '(';
AVGKEYWORD: [Aa] [Vv] [Gg] '(';
MEDIANWORD: [Mm] [Ee] [Dd] [Ii] [Aa] [Nn] '(';
COUNTWORD: [Cc][Oo] [Uu] [Nn] [Tt] '(';
TAGWORD: [Tt] [Aa] [Gg] '(';
FILEWORD: [Ff] [Ii] [Ll] [Ee];
INWORD: ' ' [Ii] [Nn] ' ';
PLUS : '+';
MINUS: '-';
TIMES: '*';
DIVIDED: '/';
LPAREN : '(';
RPAREN : ')';
AND : [Aa] [Nn] [Dd];
OR : [Oo] [Rr];
NOT : [Nn] [Oo] [Tt];
TRUE : [Tt] [Rr] [Uu] [Ee];
FALSE : [Ff] [Aa] [Ll] [Ss] [Ee];
GT : '>';
GE : '>=';
LT : '<';
LE : '<=';
EQ : '=';
NUMBER: [0-9]+;
STRING : [A-Za-z0-9_]+;
DECITIMES : '-'? [0-9]+ ( '.' [0-9]+ )?;
IDENTIFIER : [A-Za-z] [a-zA-Z_0-9]*;
WS : [ \r\t\u000C\n]+ -> skip;
|
programs/oeis/158/A158404.asm | karttu/loda | 1 | 6844 | ; A158404: 841n + 1.
; 842,1683,2524,3365,4206,5047,5888,6729,7570,8411,9252,10093,10934,11775,12616,13457,14298,15139,15980,16821,17662,18503,19344,20185,21026,21867,22708,23549,24390,25231,26072,26913,27754,28595,29436,30277,31118,31959,32800,33641,34482,35323,36164,37005,37846,38687,39528,40369,41210,42051,42892,43733,44574,45415,46256,47097,47938,48779,49620,50461,51302,52143,52984,53825,54666,55507,56348,57189,58030,58871,59712,60553,61394,62235,63076,63917,64758,65599,66440,67281,68122,68963,69804,70645,71486,72327,73168,74009,74850,75691,76532,77373,78214,79055,79896,80737,81578,82419,83260,84101,84942,85783,86624,87465,88306,89147,89988,90829,91670,92511,93352,94193,95034,95875,96716,97557,98398,99239,100080,100921,101762,102603,103444,104285,105126,105967,106808,107649,108490,109331,110172,111013,111854,112695,113536,114377,115218,116059,116900,117741,118582,119423,120264,121105,121946,122787,123628,124469,125310,126151,126992,127833,128674,129515,130356,131197,132038,132879,133720,134561,135402,136243,137084,137925,138766,139607,140448,141289,142130,142971,143812,144653,145494,146335,147176,148017,148858,149699,150540,151381,152222,153063,153904,154745,155586,156427,157268,158109,158950,159791,160632,161473,162314,163155,163996,164837,165678,166519,167360,168201,169042,169883,170724,171565,172406,173247,174088,174929,175770,176611,177452,178293,179134,179975,180816,181657,182498,183339,184180,185021,185862,186703,187544,188385,189226,190067,190908,191749,192590,193431,194272,195113,195954,196795,197636,198477,199318,200159,201000,201841,202682,203523,204364,205205,206046,206887,207728,208569,209410,210251
mov $1,$0
mul $1,841
add $1,842
|
programs/oeis/154/A154815.asm | karttu/loda | 1 | 177379 | ; A154815: Period 6: repeat [8, 7, 4, 5, 2, 1].
; 8,7,4,5,2,1,8,7,4,5,2,1,8,7,4,5,2,1,8,7,4,5,2,1,8,7,4,5,2,1,8,7,4,5,2,1,8,7,4,5,2,1,8,7,4,5,2,1,8,7,4,5,2,1,8,7,4,5,2,1,8,7,4,5,2,1,8,7,4,5,2,1,8,7,4,5,2,1,8,7,4,5,2,1,8,7
cal $0,153990 ; Period 6: repeat [1, 2, 5, 4, 7, 8].
mov $1,222222222
sub $1,$0
sub $1,222222213
|
oeis/018/A018804.asm | neoneye/loda-programs | 11 | 20816 | ; A018804: Pillai's arithmetical function: Sum_{k=1..n} gcd(k, n).
; Submitted by <NAME>
; 1,3,5,8,9,15,13,20,21,27,21,40,25,39,45,48,33,63,37,72,65,63,45,100,65,75,81,104,57,135,61,112,105,99,117,168,73,111,125,180,81,195,85,168,189,135,93,240,133,195,165,200,105,243,189,260,185,171,117,360,121,183,273,256,225,315,133,264,225,351,141,420,145,219,325,296,273,375,157,432,297,243,165,520,297,255,285,420,177,567,325,360,305,279,333,560,193,399,441,520
add $0,1
mov $2,$0
lpb $2
mov $3,$2
sub $2,1
gcd $3,$0
add $4,$3
lpe
mov $0,$4
|
ggsound_ca65/tracks.asm | bunder2015/ggsound | 38 | 20583 | <filename>ggsound_ca65/tracks.asm
.feature force_range
.include "tracks.inc"
.include "ggsound.inc"
.segment "CODE"
.align 64
.include "track_dpcm.inc"
.segment "ROM0"
.include "track_data.inc"
|
Numeral/Natural/Relation/DivisibilityWithRemainder.agda | Lolirofle/stuff-in-agda | 6 | 12945 | <reponame>Lolirofle/stuff-in-agda
module Numeral.Natural.Relation.DivisibilityWithRemainder where
import Lvl
open import Logic
open import Logic.Propositional
open import Numeral.Finite
open import Numeral.Natural
open import Numeral.Natural.Oper
open import Type
-- Divisibility with a remainder.
-- `(y ∣ x)(r)` means that `y` is divisible by `x − r`.
-- Note: `(0 ∣ᵣₑₘ _)(_)` is impossible to construct (0 is never a divisor by this definition).
data _∣ᵣₑₘ_ : (y : ℕ) → ℕ → 𝕟(y) → Stmt{Lvl.𝟎} where
DivRem𝟎 : ∀{y : ℕ} {r : 𝕟(y)} → (y ∣ᵣₑₘ 𝕟-to-ℕ(r))(r)
DivRem𝐒 : ∀{y x : ℕ}{r : 𝕟(y)} → (y ∣ᵣₑₘ x)(r) → (y ∣ᵣₑₘ (x + y))(r)
_∣₊_ : ℕ → ℕ → Stmt
𝟎 ∣₊ x = ⊥
𝐒(y) ∣₊ x = (𝐒(y) ∣ᵣₑₘ x)(𝟎)
-- The quotient extracted from the proof of divisibility.
[∣ᵣₑₘ]-quotient : ∀{y x}{r} → (y ∣ᵣₑₘ x)(r) → ℕ
[∣ᵣₑₘ]-quotient DivRem𝟎 = 𝟎
[∣ᵣₑₘ]-quotient (DivRem𝐒 p) = 𝐒([∣ᵣₑₘ]-quotient p)
-- The remainder extracted from the proof of divisibility.
[∣ᵣₑₘ]-remainder : ∀{y x}{r} → (y ∣ᵣₑₘ x)(r) → 𝕟(y)
[∣ᵣₑₘ]-remainder{r = r} _ = r
data _∣ᵣₑₘ₀_ : (y : ℕ) → ℕ → ℕ → Stmt{Lvl.𝟎} where
base₀ : ∀{y} → (y ∣ᵣₑₘ₀ 𝟎)(𝟎)
base₊ : ∀{y r} → (y ∣ᵣₑₘ₀ r)(r) → (𝐒(y) ∣ᵣₑₘ₀ 𝐒(r))(𝐒(r))
step : ∀{y x r} → (y ∣ᵣₑₘ₀ x)(r) → (y ∣ᵣₑₘ₀ (x + y))(r)
|
Cue Tools/Toggle ARMING.applescript | bsmith96/Qlab-Scripts | 1 | 1493 | -- @description Toggle arming
-- @author <NAME>
-- @link bensmithsound.uk
-- @source <NAME> (adapted)
-- @version 1.1
-- @testedmacos 10.14.6
-- @testedqlab 4.6.10
-- @about Toggles the arm state of selected cues
-- @separateprocess TRUE
-- @changelog
-- v1.1 + runs as separate process
tell application id "com.figure53.Qlab.4" to tell front workspace
set selectedCues to (selected as list)
if (count selectedCues) is 0 then -- If no cues are selected arm/disarm the current cue list
set armed of current cue list to not armed of current cue list
else
repeat with eachCue in reverse of selectedCues -- Reversed so as to do a Group Cue's children before it
set armed of eachCue to not armed of eachCue
end repeat
end if
end tell |
MSDOS/Virus.MSDOS.Unknown.triv22.asm | fengjixuchui/Family | 3 | 163368 | <reponame>fengjixuchui/Family<filename>MSDOS/Virus.MSDOS.Unknown.triv22.asm<gh_stars>1-10
;22 Byte Trivial Virus
;Use WASM to assemble
org 100h
db '*.*',0
mov ah,4eh
Again
mov dx,si
int 21h
mov ah,3ch
mov dx,9eh
int 21h
xchg bx,ax
mov ah,40h
jmps Again
|
libsrc/games/sam/bit_open.asm | andydansby/z88dk-mk2 | 1 | 101534 | ; $Id: bit_open.asm,v 1.1 2003/02/04 09:10:18 stefano Exp $
;
; ZX Spectrum 1 bit sound functions
;
; void bit_open();
;
; <NAME> - 28/9/2001
;
XLIB bit_open
XREF snd_tick
.bit_open
ld a,(23624)
rrca
rrca
rrca
or 8
ld (snd_tick),a
ret
|
date/timestamp.applescript | adriannier/applescript-functions | 7 | 632 | set exampleDate to current date
copy {1993, 4, 10, 10 * 60 * 60 + 120 + 42} to {year of exampleDate, day of exampleDate, month of exampleDate, time of exampleDate}
-- 1993-10-04 10:02:42
log timestamp(exampleDate, 1)
-- 1993-10-04_10-02-42
log timestamp(exampleDate, 2)
-- Oct 4 10:02:42
log timestamp(exampleDate, 3)
-- 19931004T100242
log timestamp(exampleDate, 4)
-- 19931004100242
log timestamp(exampleDate, 5)
on timestamp(aDate as date, aFormat)
(*
With big thanks to CK (twitter.com/AppleScriptive) for pointing out «class isot»
Returns the specified date and time as a string
Formats:
1: 1993-10-04 10:02:42 -- For log files
2: 1993-10-04_10-02-42 -- For file names
3: Oct 4 10:02:42 -- For log files (shorter)
4: 19931004T100242 -- RFC3339 / iCalendar local time
5: 19931004100242 -- Digits only
*)
tell aDate as «class isot» as string
tell contents
if aFormat is 1 then
return text 1 thru 10 & " " & text 12 thru -1
else if aFormat is 2 then
return text 1 thru 10 & "_" & text 12 thru 13 & "-" & text 15 thru 16 & "-" & text 18 thru 19
else if aFormat is 3 then
set shortMonths to {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}
return item (month of aDate) of shortMonths & " " & (day of aDate as text) & " " & text 12 thru -1
else if aFormat is 4 then
return text 1 thru 4 & text 6 thru 7 & text 9 thru 13 & text 15 thru 16 & text 18 thru 19
else if aFormat is 5 then
return text 1 thru 4 & text 6 thru 7 & text 9 thru 10 & text 12 thru 13 & text 15 thru 16 & text 18 thru 19
else
error "timestamp(): Unknown time format: " & (aFormat as text) number 1
end if
end tell
end tell
end timestamp |
Scripts Pack Source Items/Scripts Pack/Dock/Hidden Dock Applications Dim.applescript | Phorofor/ScriptsPack.macOS | 1 | 3318 | # Scripts Pack - Tweak various preference variables in macOS
# <Phorofor, https://github.com/Phorofor/>
-- Dimmed Hidden Applications
-- Version compatible: --
-- Preference Identifier: com.apple.dock
-- Preference Key: showhidden
-- Default value (boolean):
-- Preference location: ~/Library/Preferences/com.apple.dock.plist
set toggleBut to "Show Hidden Application Dim"
set tZ to "show hidden applications with a dimmed icon?"
set sTz to "yes"
set bT to "You've decided to show hidden applications as a dimmed icon."
try
set prValue to do shell script "defaults read com.apple.dock showhidden -boolean"
if prValue = "1" then
set prValue to "Hidden applications will be dimmed when being hidden."
set toggleBut to "Remove Dimmed Applications"
set tZ to "remove the dimmed effect from hidden applications?"
set sTz to "no"
set bT to "You decided to unlock the Dock's contents."
else
set prValue to "Hidden applications will not appear with a dimmed icon."
end if
on error
set prValue to "Applications that are hidden isn't shown as a dimmed icon by default."
toggleBut & tZ & sTz
end try
display alert "Would you like to " & tZ buttons {"Cancel", toggleBut} message "If the hidden application dimming is enabled, hidden applications will show as a slightly dimmed icon on the dock instead of the basic style." & return & return & prValue default button toggleBut cancel button 1
if the button returned of the result is toggleBut then
do shell script "defaults write com.apple.dock showhidden -bool " & sTz
else
do shell script "defaults delete com.apple.dock showhidden"
set bT to "You've decided to clear the hidden application dim preference."
end if
tell application "System Events"
display alert "Dock - Changes Applied!" message bT & " In order to see your changes the Dock will need to be restarted. Would you like to do that now?" buttons {"Don't restart", "Restart Dock"} cancel button 1 default button 2
do shell script "killall Dock"
end tell |
hydra/grammar/OverrideParser.g4 | wpc/hydra | 1 | 6088 | // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
// Regenerate parser by running 'python setup.py antlr' at project root.
// If you make changes here be sure to update the documentation
// (and update the grammar in website/docs/advanced/override_grammar/*.md)
parser grammar OverrideParser;
options {tokenVocab = OverrideLexer;}
override: (
key EQUAL value? // key=value, key= (for empty value)
| TILDE key (EQUAL value?)? // ~key | ~key=value
| PLUS key EQUAL value? // +key= | +key=value
) EOF;
key :
packageOrGroup // key
| packageOrGroup AT package (COLON package)? // group@pkg | group@pkg1:pkg2
| packageOrGroup ATCOLON package // group@:pkg2
;
packageOrGroup: package | ID (SLASH ID)+; // db, hydra/launcher
package: (ID | DOT_PATH); // db, hydra.launcher
value: element | simpleChoiceSweep;
element:
primitive
| listValue
| dictValue
| function
;
argName: ID EQUAL;
function: ID POPEN (argName? element (COMMA argName? element )* )? PCLOSE;
simpleChoiceSweep:
element (COMMA element)+ // value1,value2,value3
;
primitive:
QUOTED_VALUE // 'hello world', "hello world"
| ( ID // foo_10
| NULL // null, NULL
| INT // 0, 10, -20, 1_000_000
| FLOAT // 3.14, -20.0, 1e-1, -10e3
| BOOL // true, TrUe, false, False
| DOT_PATH // foo.bar
| INTERPOLATION // ${foo.bar}, ${env:USER,me}
| UNQUOTED_CHAR // /, -, \, +, ., $, *
| COLON // :
| WS // whitespaces
)+;
listValue: BRACKET_OPEN // [], [1,2,3], [a,b,[1,2]]
(element(COMMA element)*)?
BRACKET_CLOSE;
dictValue: BRACE_OPEN
(ID COLON element (COMMA ID COLON element)*)? // {}, {a:10,b:20}
BRACE_CLOSE; |
assets/assembly/IA32/linux_nasm_progs/nasm_linux_ORG_CH12/lin_srch.asm | edassis/SB-Tradutor | 1 | 168519 | ;Linear search of integer array LIN_SRCH.ASM
;
; Objective: To implement linear search of an integer
; array; demonstrates the use of loopne.
; Input: Requests numbers to fill array and a
; number to be searched for from user.
; Output: Displays the position of the number in
; the array if found; otherwise, not found
; message.
%include "io.mac"
.DATA
MAX_SIZE EQU 100
input_prompt db "Please enter input array: "
db "(negative number terminates input)",0
query_number db "Enter the number to be searched: ",0
out_msg db "The number is at position ",0
not_found_msg db "Number not in the array!",0
query_msg db "Do you want to quit (Y/N): ",0
.UDATA
array resw MAX_SIZE
.CODE
.STARTUP
PutStr input_prompt ; request input array
mov EBX,array
mov CX,MAX_SIZE
array_loop:
GetInt AX ; read an array number
cmp AX,0 ; negative number?
jl exit_loop ; if so, stop reading numbers
mov [EBX],AX ; otherwise, copy into array
inc EBX ; increment array address
inc EBX
loop array_loop ; iterates a maximum of MAX_SIZE
exit_loop:
mov EDX,EBX ; DX keeps the actual array size
sub EDX,array ; DX = array size in bytes
sar EDX,1 ; divide by 2 to get array size
read_input:
PutStr query_number ; request number to be searched for
GetInt AX ; read the number
push AX ; push number, size & array pointer
push DX
push array
call linear_search
; linear_search returns in AX the position of the number
; in the array; if not found, it returns 0.
cmp AX,0 ; number found?
je not_found ; if not, display number not found
PutStr out_msg ; else, display number position
PutInt AX
jmp SHORT user_query
not_found:
PutStr not_found_msg
user_query:
nwln
PutStr query_msg ; query user whether to terminate
GetCh AL ; read response
cmp AL,'Y' ; if response is not 'Y'
jne read_input ; repeat the loop
done: ; otherwise, terminate program
.EXIT
;-----------------------------------------------------------
; This procedure receives a pointer to an array of integers,
; the array size, and a number to be searched via the stack.
; If found, it returns in AX the position of the number in
; the array; otherwise, returns 0.
; All registers, except AX, are preserved.
;-----------------------------------------------------------
linear_search:
enter 0,0
push EBX ; save registers
push CX
mov EBX,[EBP+8] ; copy array pointer
mov CX,[EBP+12] ; copy array size
mov AX,[EBP+14] ; copy number to be searched
sub EBX,2 ; adjust index to enter loop
search_loop:
add EBX,2 ; update array index
cmp AX,[EBX] ; compare the numbers
loopne search_loop
mov AX,0 ; set return value to zero
jne number_not_found ; modify it if number found
mov AX,[EBP+12] ; copy array size
sub AX,CX ; compute array index of number
number_not_found:
pop CX ; restore registers
pop EBX
leave
ret 8
|
AppleScript/AppleScript.applescript | JarryShaw/HelloWorld | 1 | 1080 | #!/usr/bin/env osascript
on run argv
return "Across the Great Wall, we can reach every corner in the world."
end run
|
smsq/sms/jobs.asm | olifink/smsqe | 0 | 84946 | * SMS Job Utilities V2.00 1986 <NAME> QJUMP
*
section sms
*
xdef sms_ckid check job id is possible
xdef sms_ckjx check job exists / set address in a0
xdef sms_cjid get current job ID / base address
*
include dev8_keys_err
include dev8_keys_sys
include dev8_keys_jcbq
*
* d0 r 0 or invalid job
* d1 cr job ID
* a0 r base address of job
*
sms_ckid
move.l d1,d0 job 0?
bne.s sms_ckjx ... no
move.l sys_jbtb(a6),a0 ... yes
move.l (a0),a0
rts
sms_ckjx
tst.w d1 unset job ID?
bmi.s sms_cjid yes, get current job ID
*
cmp.w sys_jbtp(a6),d1 job number to large?
bhi.s scj_ijob ... yes
move.w d1,d0
lsl.w #2,d0 index table in long words
move.l sys_jbtb(a6),a0 base of job table
move.l (a0,d0.w),d0 job address
bmi.s scj_ijob ... unset
move.l d0,a0 ... set
move.l d1,d0 get tag
swap d0 check tag
cmp.w jcb_tag(a0),d0
bne.s scj_ijob ... does not match
scj_ok
moveq #0,d0
rts
*
scj_ijob
moveq #err.ijob,d0
rts
; get current job ID
sms_cjid
move.l sys_jbpt(a6),a0 ; pointer to table
move.l a0,d0
sub.l sys_jbtb(a6),d0 ; less base of table
bmi.s scj_zero ; ... no job at all!
lsr.w #2,d0 ; /4 is job number
move.l (a0),a0 ; address of job
move.l jcb_tag(a0),d1 ; set tag, smash number
move.w d0,d1 ; set number
moveq #0,d0 ; no error
rts
scj_zero
moveq #0,d1 ; job zero
moveq #0,d0 ; must be OK
rts
end
|
src/parser/Prolog.g4 | BasTesterink/WAM | 4 | 411 | <filename>src/parser/Prolog.g4<gh_stars>1-10
grammar Prolog;
// Comments
LINECOMM : ('//'|'%') (~('\n'|'\r'))* -> channel(HIDDEN);
MULTLINECOMM : '/*' (('*' ~'/')|(~'*'))* '*/' -> channel(HIDDEN);
WS : [ \t\r\n]+ -> channel(HIDDEN);
// Delimiters
LBRACKET : '['; RBRACKET : ']'; LPAREN : '(';
RPAREN : ')'; LBRACE : '{'; RBRACE : '}';
COMMA : ','; BAR : '|'; DOT : '.';
// Literals
CHARARRAY : '"' (~('\n'|'\r'|'"'))* '"';
INT : [0-9]+;
FLOAT : [0-9]+ '.' [0-9]+;
// Identifiers
CON : ('\'' (~('\n'|'\r'|'\''))* '\'')|([a-z]+ ([a-z]|[A-Z]|[0-9]|'_')*)|'!';
VAR : ([A-Z]|'_')+ ([a-z]|[A-Z]|[0-9]|'_')*;
predname : CON|(';'|'-'|'>'|'*'|':'|'='|'\\'|'+'|'<'|'@'|'/'|'?'|'^'|'$'|' is '
|' as '|' xor '|' div '|' rdiv '|' mod '|' rem ' | BAR | DOT)+;
// Argument
argseq : expr (COMMA expr)*;
parenthesized : LPAREN argseq RPAREN;
expr:
(parenthesized | list | predicate | number | variable | CHARARRAY)
| expr ('-->'|':-') expr
| ('?-') expr
| expr (';') expr
| expr ('->'|'*->') expr
| expr ':=' expr
| ('\\+'|'not ') expr
| expr ('<'|'=@='|'\\=@='|'=:='|'=<'|'=='|'=\\='|'>'|'>='|'@<'|'@=<'|'@>'|'@>='|'\\='|'\\=='|'>:<'|':<') expr
| expr ':' expr
| expr ('*'|'/'|'//'|' div '|' rdiv '|'<<'|'>>'|' mod '|' rem ') expr
| expr ('+'|'-'|'/\\'|'\\/'|' xor ') expr
| expr ('?') expr
| expr ('**') expr
| expr ('^') expr
| expr (' is '|'='|'=..') expr
| ('$') expr
;
// Datastructures
list : LBRACKET (argseq (BAR (list | variable))?)? RBRACKET;
predicate : (predname parenthesized?) | parenthesized ;
plrule : predicate (':-' argseq)? '.';
query : '?-' argseq '.';
number : '-'? (INT|FLOAT);
variable : VAR;
toprule : (plrule|query)*; |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_558.asm | ljhsiun2/medusa | 9 | 12177 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x14db4, %r13
nop
nop
and $55807, %r9
mov $0x6162636465666768, %rax
movq %rax, (%r13)
nop
and %r9, %r9
lea addresses_WT_ht+0x5fd4, %rsi
lea addresses_normal_ht+0x303, %rdi
nop
nop
nop
nop
nop
sub $27571, %r9
mov $39, %rcx
rep movsl
nop
sub $12707, %rdi
lea addresses_normal_ht+0x7210, %rsi
lea addresses_A_ht+0x3eb4, %rdi
nop
nop
nop
add $22198, %r15
mov $1, %rcx
rep movsq
cmp $58472, %rcx
lea addresses_A_ht+0x252, %r13
nop
nop
nop
cmp $36559, %r9
mov (%r13), %ecx
nop
nop
nop
sub $49511, %rsi
lea addresses_WC_ht+0x12b4, %r13
xor %rax, %rax
movl $0x61626364, (%r13)
nop
nop
add $11023, %r15
lea addresses_A_ht+0x6f34, %r13
nop
nop
nop
sub %r9, %r9
movb (%r13), %al
nop
nop
cmp $59871, %r15
lea addresses_normal_ht+0x7854, %rsi
lea addresses_D_ht+0xb513, %rdi
nop
nop
nop
nop
and $7060, %r11
mov $39, %rcx
rep movsl
nop
nop
nop
nop
nop
xor $63208, %r15
lea addresses_UC_ht+0x173b4, %r11
nop
nop
nop
and %rcx, %rcx
and $0xffffffffffffffc0, %r11
movaps (%r11), %xmm6
vpextrq $1, %xmm6, %r9
add %rdi, %rdi
lea addresses_normal_ht+0xbeb4, %r9
add $2911, %r13
movb $0x61, (%r9)
nop
nop
nop
lfence
lea addresses_UC_ht+0x11734, %rsi
lea addresses_WC_ht+0x14734, %rdi
nop
nop
nop
nop
add $26969, %r15
mov $11, %rcx
rep movsl
nop
nop
nop
nop
nop
dec %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r15
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r8
push %r9
push %rax
push %rbp
push %rcx
// Store
lea addresses_normal+0x11d25, %r11
nop
nop
add $113, %r9
movb $0x51, (%r11)
xor %rbp, %rbp
// Faulty Load
lea addresses_PSE+0x1c2b4, %r11
and $42094, %rcx
mov (%r11), %bp
lea oracles, %rax
and $0xff, %rbp
shlq $12, %rbp
mov (%rax,%rbp,1), %rbp
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r8
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 10, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
|
programs/oeis/044/A044752.asm | jmorken/loda | 1 | 6641 | <reponame>jmorken/loda<filename>programs/oeis/044/A044752.asm
; A044752: Numbers n such that string 3,9 occurs in the base 10 representation of n but not of n+1.
; 39,139,239,339,399,439,539,639,739,839,939,1039,1139,1239,1339,1399,1439,1539,1639,1739,1839,1939,2039,2139,2239,2339,2399,2439,2539,2639,2739,2839,2939,3039,3139,3239,3339,3399,3439
add $0,1
cal $0,277592 ; Numbers k such that k/10^m == 5 mod 10, where 10^m is the greatest power of 10 that divides n.
div $0,2
mov $1,$0
sub $1,7
mul $1,20
add $1,39
|
projects/batfish/src/main/antlr4/org/batfish/grammar/palo_alto/PaloAlto_rulebase.g4 | jeffkala/batfish | 0 | 7332 | parser grammar PaloAlto_rulebase;
import
PaloAlto_application_override,
PaloAlto_common,
PaloAlto_nat;
options {
tokenVocab = PaloAltoLexer;
}
s_rulebase
:
RULEBASE rulebase_inner
;
s_post_rulebase
:
POST_RULEBASE rulebase_inner
;
s_pre_rulebase
:
PRE_RULEBASE rulebase_inner
;
rulebase_inner
:
sr_application_override
| sr_nat
| sr_security
;
sr_security
:
SECURITY sr_security_rules?
;
sr_security_rules
:
RULES srs_definition?
;
srs_definition
:
name = variable
(
srs_action
| srs_application
| srs_category
| srs_description
| srs_destination
| srs_destination_hip
| srs_disabled
| srs_from
| srs_hip_profiles
| srs_log_end
| srs_log_setting
| srs_log_start
| srs_negate_destination
| srs_negate_source
| srs_rule_type
| srs_service
| srs_source
| srs_source_hip
| srs_source_user
| srs_target
| srs_to
| srs_tag
)?
;
srs_action
:
ACTION
(
ALLOW
| DENY
| DROP
| RESET_BOTH
| RESET_CLIENT
| RESET_SERVER
)
;
srs_application
:
APPLICATION variable_list
;
srs_category
:
CATEGORY variable_list
;
srs_description
:
DESCRIPTION description = value
;
srs_destination
:
DESTINATION src_or_dst_list
;
srs_destination_hip
:
DESTINATION_HIP ANY // only support any
;
srs_disabled
:
DISABLED yn = yes_or_no
;
srs_from
:
FROM variable_list
;
srs_hip_profiles
:
HIP_PROFILES ANY // only support any
;
srs_log_end
:
LOG_END yn = yes_or_no
;
srs_log_setting
:
LOG_SETTING
null_rest_of_line
;
srs_log_start
:
LOG_START yn = yes_or_no
;
srs_negate_destination
:
NEGATE_DESTINATION yn = yes_or_no
;
srs_negate_source
:
NEGATE_SOURCE yn = yes_or_no
;
srs_rule_type
:
RULE_TYPE
(
interzone = INTERZONE
| intrazone = INTRAZONE
| universal = UNIVERSAL
)
;
srs_service
:
SERVICE variable_list
;
srs_source
:
SOURCE src_or_dst_list
;
srs_source_hip
:
SOURCE_HIP ANY // only support any
;
srs_source_user
:
SOURCE_USER ANY // only support user any so far
;
srs_tag
:
TAG tags = variable_list
;
srs_target
:
TARGET
null_rest_of_line
;
srs_to
:
TO variable_list
;
|
Src/StixNet/Pattern/STIXPattern.g4 | bazen-teklehaymanot/stix-net | 0 | 6176 | // This is an ANTLR4 grammar for the STIX Patterning Language.
//
// http://docs.oasis-open.org/cti/stix/v2.0/stix-v2.0-part5-stix-patterning.html
grammar STIXPattern;
pattern
: observationExpressions EOF
;
observationExpressions
: <assoc=left> observationExpressions FOLLOWEDBY observationExpressions
| observationExpressionOr
;
observationExpressionOr
: <assoc=left> observationExpressionOr OR observationExpressionOr
| observationExpressionAnd
;
observationExpressionAnd
: <assoc=left> observationExpressionAnd AND observationExpressionAnd
| observationExpression
;
observationExpression
: LBRACK comparisonExpression RBRACK # observationExpressionSimple
| LPAREN observationExpressions RPAREN # observationExpressionCompound
| observationExpression startStopQualifier # observationExpressionStartStop
| observationExpression withinQualifier # observationExpressionWithin
| observationExpression repeatedQualifier # observationExpressionRepeated
;
comparisonExpression
: <assoc=left> comparisonExpression OR comparisonExpression
| comparisonExpressionAnd
;
comparisonExpressionAnd
: <assoc=left> comparisonExpressionAnd AND comparisonExpressionAnd
| propTest
;
propTest
: objectPath NOT? (EQ|NEQ) primitiveLiteral # propTestEqual
| objectPath NOT? (GT|LT|GE|LE) orderableLiteral # propTestOrder
| objectPath NOT? IN setLiteral # propTestSet
| objectPath NOT? LIKE StringLiteral # propTestLike
| objectPath NOT? MATCHES StringLiteral # propTestRegex
| objectPath NOT? ISSUBSET StringLiteral # propTestIsSubset
| objectPath NOT? ISSUPERSET StringLiteral # propTestIsSuperset
| LPAREN comparisonExpression RPAREN # propTestParen
| EXISTS objectPath # propTestExists
;
startStopQualifier
: START TimestampLiteral STOP TimestampLiteral
;
withinQualifier
: WITHIN (IntPosLiteral|FloatPosLiteral) SECONDS
;
repeatedQualifier
: REPEATS IntPosLiteral TIMES
;
objectPath
: objectType COLON firstPathComponent objectPathComponent?
;
objectType
: IdentifierWithoutHyphen
| IdentifierWithHyphen
;
firstPathComponent
: IdentifierWithoutHyphen
| StringLiteral
;
objectPathComponent
: <assoc=left> objectPathComponent objectPathComponent # pathStep
| '.' (IdentifierWithoutHyphen | StringLiteral) # keyPathStep
| LBRACK (IntPosLiteral|IntNegLiteral|ASTERISK) RBRACK # indexPathStep
;
setLiteral
: LPAREN RPAREN
| LPAREN primitiveLiteral (COMMA primitiveLiteral)* RPAREN
;
primitiveLiteral
: orderableLiteral
| BoolLiteral
;
orderableLiteral
: IntPosLiteral
| IntNegLiteral
| FloatPosLiteral
| FloatNegLiteral
| StringLiteral
| BinaryLiteral
| HexLiteral
| TimestampLiteral
;
IntNegLiteral :
'-' ('0' | [1-9] [0-9]*)
;
IntPosLiteral :
'+'? ('0' | [1-9] [0-9]*)
;
FloatNegLiteral :
'-' [0-9]* '.' [0-9]+
;
FloatPosLiteral :
'+'? [0-9]* '.' [0-9]+
;
HexLiteral :
'h' QUOTE TwoHexDigits* QUOTE
;
BinaryLiteral :
'b' QUOTE
( Base64Char Base64Char Base64Char Base64Char )*
( (Base64Char Base64Char Base64Char Base64Char )
| (Base64Char Base64Char Base64Char ) '='
| (Base64Char Base64Char ) '=='
)
QUOTE
;
StringLiteral :
QUOTE ( ~['\\] | '\\\'' | '\\\\' )* QUOTE
;
BoolLiteral :
TRUE | FALSE
;
TimestampLiteral :
't' QUOTE
[0-9] [0-9] [0-9] [0-9] HYPHEN
( ('0' [1-9]) | ('1' [012]) ) HYPHEN
( ('0' [1-9]) | ([12] [0-9]) | ('3' [01]) )
'T'
( ([01] [0-9]) | ('2' [0-3]) ) COLON
[0-5] [0-9] COLON
([0-5] [0-9] | '60')
(DOT [0-9]+)?
'Z'
QUOTE
;
//////////////////////////////////////////////
// Keywords
AND: 'AND' ;
OR: 'OR' ;
NOT: 'NOT' ;
FOLLOWEDBY: 'FOLLOWEDBY';
LIKE: 'LIKE' ;
MATCHES: 'MATCHES' ;
ISSUPERSET: 'ISSUPERSET' ;
ISSUBSET: 'ISSUBSET' ;
EXISTS: 'EXISTS' ;
LAST: 'LAST' ;
IN: 'IN' ;
START: 'START' ;
STOP: 'STOP' ;
SECONDS: 'SECONDS' ;
TRUE: 'true' ;
FALSE: 'false' ;
WITHIN: 'WITHIN' ;
REPEATS: 'REPEATS' ;
TIMES: 'TIMES' ;
// After keywords, so the lexer doesn't tokenize them as identifiers.
// Object types may have unquoted hyphens, but property names
// (in object paths) cannot.
IdentifierWithoutHyphen :
[a-zA-Z_] [a-zA-Z0-9_]*
;
IdentifierWithHyphen :
[a-zA-Z_] [a-zA-Z0-9_-]*
;
EQ : '=' | '==';
NEQ : '!=' | '<>';
LT : '<';
LE : '<=';
GT : '>';
GE : '>=';
QUOTE : '\'';
COLON : ':' ;
DOT : '.' ;
COMMA : ',' ;
RPAREN : ')' ;
LPAREN : '(' ;
RBRACK : ']' ;
LBRACK : '[' ;
PLUS : '+' ;
HYPHEN : MINUS ;
MINUS : '-' ;
POWER_OP : '^' ;
DIVIDE : '/' ;
ASTERISK : '*';
fragment HexDigit: [A-Fa-f0-9];
fragment TwoHexDigits: HexDigit HexDigit;
fragment Base64Char: [A-Za-z0-9+/];
// Whitespace and comments
//
WS : [ \t\r\n\u000B\u000C\u0085\u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]+ -> skip
;
COMMENT
: '/*' .*? '*/' -> skip
;
LINE_COMMENT
: '//' ~[\r\n]* -> skip
;
// Catch-all to prevent lexer from silently eating unusable characters.
InvalidCharacter
: .
; |
beafix_benchmarks/A4F-1B/PRODUCTION/production_inv1_1.als | Kaixi26/org.alloytools.alloy | 0 | 3955 | <reponame>Kaixi26/org.alloytools.alloy
open util/ordering[Position]
// Consider the following model of an automated production line
// The production line consists of several positions in sequence
sig Position {}
// Products are either components assembled in the production line or
// other resources (e.g. pre-assembled products or base materials)
sig Product {}
// Components are assembled in a given position from other parts
sig Component extends Product {
parts : set Product,
cposition : one Position
}
sig Resource extends Product {}
// Robots work somewhere in the production line
sig Robot {
rposition : one Position
}
// Specify the following invariants!
// You can check their correctness with the different commands and
// specifying a given invariant you can assume the others to be true.
pred inv1 { // A component requires at least one part
-- all c:Component | some c.parts
{#m#() all c : Component | some parts} --incorrect 1
-- all c:Component | c not in c.*parts --incorrect 2
-- all c:Component | c not in c.^parts --incorrect 3
-- all c:Component | some parts --incorrect 4
-- some Component.parts --incorrect 5
-- some Component<:parts --incorrect 6
-- some parts --incorrect 7
}
pred inv2 { // A component cannot be a part of itself
all c:Component | c not in c.^parts
-- all c : Component | c not in c.parts --incorrect 1
-- all c : Component | c->c in parts --incorrect 2
-- all c : Component | c->c not in parts --incorrect 3
-- all c : Component | c<:parts in iden --incorrect 4
-- all c : Component | no (c.*parts) --incorrect 5
-- all c : Component | no (c.^parts) --incorrect 6
-- all c : Component | no (c<:parts).c --incorrect 7
-- all c : Component | no c->c --incorrect 8
-- all c : Component | no c->parts->c --incorrect 9
-- all c : Component | no c.(c<:parts) --incorrect 10
-- all c : Component | no c<:(parts.c) --incorrect 11
-- all c:Component | (c.parts) in (c.parts - c) --incorrect 12
-- all c:Component | c not in (c.parts) --incorrect 13
-- all c:Component | c not in c.parts --incorrect 14
-- all c:Component | no c.parts & c --incorrect 15
-- no (Component.*parts) --incorrect 16
-- no (Component.^parts)<:Component --incorrect 17
-- no (Component<:*parts) --incorrect 18
-- no Component.^parts --incorrect 19
}
pred inv3 { // The position where a component is assembled must have at least one robot
Component.cposition in Robot.rposition
-- all c:Component | c.^parts.cposition in Robot.rposition --incorrect 1
-- all c:Component | c.parts.cposition in Robot.rposition --incorrect 2
-- all c:Component | c.cposition = Robot.rposition --incorrect 3
-- all c:Component | Robot.rposition in c.cposition --incorrect 4
-- all c:Component | some c.parts.cposition --incorrect 5
-- all c:Component, r:Robot | c.cposition = r.rposition --incorrect 6
-- all c:Component, r:Robot | c.cposition in r.rposition --incorrect 7
-- all c:Component,p:Product |some r:Robot,pos1,pos2:Position| c->p in parts and p->pos1 in cposition and r->pos2 in rposition implies pos1=pos2 --incorrect 8
-- all c:Component,p:Product, r:Robot,pos1,pos2:Position| c->p in parts and p->pos1 in cposition and r->pos2 in rposition implies pos1=pos2 --incorrect 9
-- all c:Component.cposition, r:Robot | some r.rposition & c --incorrect 10
-- all c:Component| c.cposition = Robot.rposition --incorrect 11
-- some r:Robot | Component.cposition = r.rposition --incorrect 12
}
pred inv4 { // The parts required by a component cannot be assembled in a later position
all c:Component | c.parts.cposition in c.cposition.*prev
-- all c : Component | all p : c.parts | p in c.cposition.prevs.parts --incorrect 1
-- all c : Component | all p : c.parts | some pos : c.cposition.prevs | p.cposition = pos --incorrect 2
-- all c: Component | ((c.^parts) & Component).cposition not in (c.cposition).*next --incorrect 3
-- all c: Component | ((c.^parts) & Component).cposition not in (c.cposition).^next --incorrect 4
-- all c: Component | ((c.^parts) & Component).cposition not in (c.cposition).^next or no c.^parts --incorrect 5
-- all c: Component | ((c.parts) & Component).cposition not in (c.cposition).^next --incorrect 6
-- all c: Component | ((c.parts):>Component).cposition not in (c.cposition).^next --incorrect 7
-- all c: Component | (c.parts).cposition in (c.cposition).^~next --incorrect 8
-- all c: Component | (c.parts).cposition not in (c.cposition).^next --incorrect 9
-- all c: Component | (c.parts).cposition not in (c.cposition).^~next --incorrect 10
-- all c:Component | all p:c.parts | p not in c.^parts --incorrect 11
-- all c:Component | c.parts in (c.^cposition.~^next) --incorrect 12
-- all c:Component | c.parts in c.cposition.~^next --incorrect 13
-- all c:Component | c.parts.cposition in c.cposition --incorrect 14
-- all c:Component | c.parts.cposition in c.cposition.~^next --incorrect 15
-- all c:Component | c.parts.cposition in c.cposition.~next --incorrect 16
-- all c:Component | c.parts.cposition not in c.cposition.^next --incorrect 17
-- all c:Component | c.cposition in c.cposition.~^next --incorrect 18
-- all c:Component | c.cposition not in c.cposition.^next --incorrect 19
-- all c:Component | no c.parts.cposition.~^next --incorrect 20
-- all c:Component | no (c.parts & c.parts.cposition.~^next) --incorrect 21
-- all c:Component | no (c.parts & c.cposition.~^next) --incorrect 22
-- all c:Component, p:c.parts | p in Component implies c.cposition in p.cposition.nexts --incorrect 23
}
/*======== IFF PERFECT ORACLE ===============*/
pred inv1_OK {
all c:Component | some c.parts --correct
}
assert inv1_Repaired {
inv1[] iff inv1_OK[]
}
---------
pred inv2_OK {
all c:Component | c not in c.^parts --correct
}
assert inv2_Repaired {
inv2[] iff inv2_OK[]
}
--------
pred inv3_OK {
Component.cposition in Robot.rposition --correct
}
assert inv3_Repaired {
inv3[] iff inv3_OK[]
}
--------
pred inv4_OK {
all c:Component | c.parts.cposition in c.cposition.*prev --correct
}
assert inv4_Repaired {
inv4[] iff inv4_OK[]
}
-- PerfectOracleCommands
check inv1_Repaired expect 0
check inv2_Repaired expect 0
check inv3_Repaired expect 0
check inv4_Repaired expect 0 |
examples/instance-arguments/02-classes-indep.agda | asr/agda-kanso | 0 | 14575 | <filename>examples/instance-arguments/02-classes-indep.agda
-- {-# OPTIONS --verbose tc.records.ifs:15 #-}
-- {-# OPTIONS --verbose tc.rec.proj:15 #-}
-- {-# OPTIONS --verbose tc.rec:15 #-}
-- {-# OPTIONS --verbose tc.constr.findInScope:15 #-}
-- {-# OPTIONS --verbose tc.term.args.ifs:15 #-}
-- {-# OPTIONS --verbose tc.section.apply:15 #-}
-- {-# OPTIONS --verbose tc.mod.apply:15 #-}
module 02-classes-indep where
data T : Set where
tt : T
data Bool : Set where
true : Bool
false : Bool
module testMod (a : Bool) where
testModEntry : Bool
testModEntry = a
record Monoid (t : Set) : Set where
field
zeroT : t
plusT : t → t → t
test : Bool
test = false
or : Bool → Bool → Bool
or true _ = true
or _ true = true
or false false = false
aT : Monoid T
aT = record { zeroT = tt; plusT = λ _ _ → tt }
testMonoid : {t : Set} → {{tM : Monoid t}} → t → t
testMonoid {{tM}} t = let open Monoid tM in plusT t zeroT
aBool : Monoid Bool
aBool = record { zeroT = false; plusT = or }
test : Bool
test = testMonoid false
open Monoid {{...}}
test2 : {t : Set} → {{tM : Monoid t}} → t
test2 = zeroT
test3 : T
test3 = zeroT
test4 : Bool
test4 = zeroT
⋯ : {A : Set} → {{v : A}} → A
⋯ {{v}} = v
test5 : Bool
test5 = Monoid.zeroT ⋯
|
oeis/273/A273319.asm | neoneye/loda-programs | 11 | 160104 | <reponame>neoneye/loda-programs
; A273319: a(n) = ((2*n+1)^(n+1) + (-1)^n)/(n+1)^2.
; Submitted by <NAME>(s2)
; 2,2,14,150,2362,49210,1280582,40045166,1464047858,61310662578,2894855376382,152184891889030,8817255144288554,558260148630165098,38351949989325264182,2841496569324942436830
mov $1,$0
add $1,1
add $0,$1
pow $0,$1
add $0,1
div $0,$1
div $0,$1
|
target/cos_117/disasm/iop_overlay1/QUEUE.asm | jrrk2/cray-sim | 49 | 28267 | <gh_stars>10-100
0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0001 (0x000002) 0x2923- f:00024 d: 291 | OR[291] = A
0x0002 (0x000004) 0x2118- f:00020 d: 280 | A = OR[280]
0x0003 (0x000006) 0x8402- f:00102 d: 2 | P = P + 2 (0x0005), A = 0
0x0004 (0x000008) 0x7005- f:00070 d: 5 | P = P + 5 (0x0009)
0x0005 (0x00000A) 0x7432- f:00072 d: 50 | R = P + 50 (0x0037)
0x0006 (0x00000C) 0x2123- f:00020 d: 291 | A = OR[291]
0x0007 (0x00000E) 0x946A- f:00112 d: 106 | R = P + 106 (0x0071), A = 0
0x0008 (0x000010) 0x7024- f:00070 d: 36 | P = P + 36 (0x002C)
0x0009 (0x000012) 0x2118- f:00020 d: 280 | A = OR[280]
0x000A (0x000014) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x000B (0x000016) 0x8402- f:00102 d: 2 | P = P + 2 (0x000D), A = 0
0x000C (0x000018) 0x700B- f:00070 d: 11 | P = P + 11 (0x0017)
0x000D (0x00001A) 0x742A- f:00072 d: 42 | R = P + 42 (0x0037)
0x000E (0x00001C) 0x2123- f:00020 d: 291 | A = OR[291]
0x000F (0x00001E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0011), A = 0
0x0010 (0x000020) 0x7006- f:00070 d: 6 | P = P + 6 (0x0016)
0x0011 (0x000022) 0x2100- f:00020 d: 256 | A = OR[256]
0x0012 (0x000024) 0x141F- f:00012 d: 31 | A = A + 31 (0x001F)
0x0013 (0x000026) 0x2908- f:00024 d: 264 | OR[264] = A
0x0014 (0x000028) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0015 (0x00002A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0016 (0x00002C) 0x7016- f:00070 d: 22 | P = P + 22 (0x002C)
0x0017 (0x00002E) 0x2118- f:00020 d: 280 | A = OR[280]
0x0018 (0x000030) 0x1602- f:00013 d: 2 | A = A - 2 (0x0002)
0x0019 (0x000032) 0x8402- f:00102 d: 2 | P = P + 2 (0x001B), A = 0
0x001A (0x000034) 0x700D- f:00070 d: 13 | P = P + 13 (0x0027)
0x001B (0x000036) 0x7426- f:00072 d: 38 | R = P + 38 (0x0041)
0x001C (0x000038) 0x2123- f:00020 d: 291 | A = OR[291]
0x001D (0x00003A) 0x8402- f:00102 d: 2 | P = P + 2 (0x001F), A = 0
0x001E (0x00003C) 0x7003- f:00070 d: 3 | P = P + 3 (0x0021)
0x001F (0x00003E) 0x7452- f:00072 d: 82 | R = P + 82 (0x0071)
0x0020 (0x000040) 0x7006- f:00070 d: 6 | P = P + 6 (0x0026)
0x0021 (0x000042) 0x2100- f:00020 d: 256 | A = OR[256]
0x0022 (0x000044) 0x141F- f:00012 d: 31 | A = A + 31 (0x001F)
0x0023 (0x000046) 0x2908- f:00024 d: 264 | OR[264] = A
0x0024 (0x000048) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0025 (0x00004A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0026 (0x00004C) 0x7006- f:00070 d: 6 | P = P + 6 (0x002C)
0x0027 (0x00004E) 0x2100- f:00020 d: 256 | A = OR[256]
0x0028 (0x000050) 0x141F- f:00012 d: 31 | A = A + 31 (0x001F)
0x0029 (0x000052) 0x2908- f:00024 d: 264 | OR[264] = A
0x002A (0x000054) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x002B (0x000056) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x002C (0x000058) 0x2005- f:00020 d: 5 | A = OR[5]
0x002D (0x00005A) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x002E (0x00005C) 0x2908- f:00024 d: 264 | OR[264] = A
0x002F (0x00005E) 0x2123- f:00020 d: 291 | A = OR[291]
0x0030 (0x000060) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0031 (0x000062) 0x102A- f:00010 d: 42 | A = 42 (0x002A)
0x0032 (0x000064) 0x2924- f:00024 d: 292 | OR[292] = A
0x0033 (0x000066) 0x1124- f:00010 d: 292 | A = 292 (0x0124)
0x0034 (0x000068) 0x5800- f:00054 d: 0 | B = A
0x0035 (0x00006A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0036 (0x00006C) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0037 (0x00006E) 0x2100- f:00020 d: 256 | A = OR[256]
0x0038 (0x000070) 0x141F- f:00012 d: 31 | A = A + 31 (0x001F)
0x0039 (0x000072) 0x2908- f:00024 d: 264 | OR[264] = A
0x003A (0x000074) 0x3108- f:00030 d: 264 | A = (OR[264])
0x003B (0x000076) 0x8602- f:00103 d: 2 | P = P + 2 (0x003D), A # 0
0x003C (0x000078) 0x7005- f:00070 d: 5 | P = P + 5 (0x0041)
0x003D (0x00007A) 0x1800-0x0042 f:00014 d: 0 | A = 66 (0x0042)
0x003F (0x00007E) 0x2923- f:00024 d: 291 | OR[291] = A
0x0040 (0x000080) 0x0200- f:00001 d: 0 | EXIT
0x0041 (0x000082) 0x2100- f:00020 d: 256 | A = OR[256]
0x0042 (0x000084) 0x141D- f:00012 d: 29 | A = A + 29 (0x001D)
0x0043 (0x000086) 0x2913- f:00024 d: 275 | OR[275] = A
0x0044 (0x000088) 0x100F- f:00010 d: 15 | A = 15 (0x000F)
0x0045 (0x00008A) 0x1600- f:00013 d: 0 | A = A - 0 (0x0000)
0x0046 (0x00008C) 0x120F- f:00011 d: 15 | A = A & 15 (0x000F)
0x0047 (0x00008E) 0x5800- f:00054 d: 0 | B = A
0x0048 (0x000090) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0049 (0x000092) 0x0804- f:00004 d: 4 | A = A > 4 (0x0004)
0x004A (0x000094) 0x2513- f:00022 d: 275 | A = A + OR[275]
0x004B (0x000096) 0x290D- f:00024 d: 269 | OR[269] = A
0x004C (0x000098) 0x310D- f:00030 d: 269 | A = (OR[269])
0x004D (0x00009A) 0x4800- f:00044 d: 0 | A = A > B
0x004E (0x00009C) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x004F (0x00009E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0051), A = 0
0x0050 (0x0000A0) 0x7005- f:00070 d: 5 | P = P + 5 (0x0055)
0x0051 (0x0000A2) 0x1800-0x0035 f:00014 d: 0 | A = 53 (0x0035)
0x0053 (0x0000A6) 0x2923- f:00024 d: 291 | OR[291] = A
0x0054 (0x0000A8) 0x0200- f:00001 d: 0 | EXIT
0x0055 (0x0000AA) 0x100F- f:00010 d: 15 | A = 15 (0x000F)
0x0056 (0x0000AC) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x0057 (0x0000AE) 0x120F- f:00011 d: 15 | A = A & 15 (0x000F)
0x0058 (0x0000B0) 0x5800- f:00054 d: 0 | B = A
0x0059 (0x0000B2) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x005A (0x0000B4) 0x0804- f:00004 d: 4 | A = A > 4 (0x0004)
0x005B (0x0000B6) 0x2513- f:00022 d: 275 | A = A + OR[275]
0x005C (0x0000B8) 0x290D- f:00024 d: 269 | OR[269] = A
0x005D (0x0000BA) 0x310D- f:00030 d: 269 | A = (OR[269])
0x005E (0x0000BC) 0x4800- f:00044 d: 0 | A = A > B
0x005F (0x0000BE) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0060 (0x0000C0) 0x8402- f:00102 d: 2 | P = P + 2 (0x0062), A = 0
0x0061 (0x0000C2) 0x7005- f:00070 d: 5 | P = P + 5 (0x0066)
0x0062 (0x0000C4) 0x1800-0x003F f:00014 d: 0 | A = 63 (0x003F)
0x0064 (0x0000C8) 0x2923- f:00024 d: 291 | OR[291] = A
0x0065 (0x0000CA) 0x0200- f:00001 d: 0 | EXIT
0x0066 (0x0000CC) 0x2100- f:00020 d: 256 | A = OR[256]
0x0067 (0x0000CE) 0x141E- f:00012 d: 30 | A = A + 30 (0x001E)
0x0068 (0x0000D0) 0x2908- f:00024 d: 264 | OR[264] = A
0x0069 (0x0000D2) 0x3108- f:00030 d: 264 | A = (OR[264])
0x006A (0x0000D4) 0x8402- f:00102 d: 2 | P = P + 2 (0x006C), A = 0
0x006B (0x0000D6) 0x7005- f:00070 d: 5 | P = P + 5 (0x0070)
0x006C (0x0000D8) 0x1800-0x0042 f:00014 d: 0 | A = 66 (0x0042)
0x006E (0x0000DC) 0x2923- f:00024 d: 291 | OR[291] = A
0x006F (0x0000DE) 0x0200- f:00001 d: 0 | EXIT
0x0070 (0x0000E0) 0x0200- f:00001 d: 0 | EXIT
0x0071 (0x0000E2) 0x2100- f:00020 d: 256 | A = OR[256]
0x0072 (0x0000E4) 0x141F- f:00012 d: 31 | A = A + 31 (0x001F)
0x0073 (0x0000E6) 0x2908- f:00024 d: 264 | OR[264] = A
0x0074 (0x0000E8) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x0075 (0x0000EA) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0076 (0x0000EC) 0x2100- f:00020 d: 256 | A = OR[256]
0x0077 (0x0000EE) 0x1420- f:00012 d: 32 | A = A + 32 (0x0020)
0x0078 (0x0000F0) 0x2908- f:00024 d: 264 | OR[264] = A
0x0079 (0x0000F2) 0x2119- f:00020 d: 281 | A = OR[281]
0x007A (0x0000F4) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x007B (0x0000F6) 0x2100- f:00020 d: 256 | A = OR[256]
0x007C (0x0000F8) 0x1421- f:00012 d: 33 | A = A + 33 (0x0021)
0x007D (0x0000FA) 0x2908- f:00024 d: 264 | OR[264] = A
0x007E (0x0000FC) 0x211A- f:00020 d: 282 | A = OR[282]
0x007F (0x0000FE) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0080 (0x000100) 0x2100- f:00020 d: 256 | A = OR[256]
0x0081 (0x000102) 0x1422- f:00012 d: 34 | A = A + 34 (0x0022)
0x0082 (0x000104) 0x2908- f:00024 d: 264 | OR[264] = A
0x0083 (0x000106) 0x211B- f:00020 d: 283 | A = OR[283]
0x0084 (0x000108) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0085 (0x00010A) 0x2100- f:00020 d: 256 | A = OR[256]
0x0086 (0x00010C) 0x1423- f:00012 d: 35 | A = A + 35 (0x0023)
0x0087 (0x00010E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0088 (0x000110) 0x211C- f:00020 d: 284 | A = OR[284]
0x0089 (0x000112) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x008A (0x000114) 0x2100- f:00020 d: 256 | A = OR[256]
0x008B (0x000116) 0x1424- f:00012 d: 36 | A = A + 36 (0x0024)
0x008C (0x000118) 0x2908- f:00024 d: 264 | OR[264] = A
0x008D (0x00011A) 0x211D- f:00020 d: 285 | A = OR[285]
0x008E (0x00011C) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x008F (0x00011E) 0x2100- f:00020 d: 256 | A = OR[256]
0x0090 (0x000120) 0x1425- f:00012 d: 37 | A = A + 37 (0x0025)
0x0091 (0x000122) 0x2908- f:00024 d: 264 | OR[264] = A
0x0092 (0x000124) 0x211E- f:00020 d: 286 | A = OR[286]
0x0093 (0x000126) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0094 (0x000128) 0x2120- f:00020 d: 288 | A = OR[288]
0x0095 (0x00012A) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0096 (0x00012C) 0x2920- f:00024 d: 288 | OR[288] = A
0x0097 (0x00012E) 0x2100- f:00020 d: 256 | A = OR[256]
0x0098 (0x000130) 0x1436- f:00012 d: 54 | A = A + 54 (0x0036)
0x0099 (0x000132) 0x2908- f:00024 d: 264 | OR[264] = A
0x009A (0x000134) 0x3108- f:00030 d: 264 | A = (OR[264])
0x009B (0x000136) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x009C (0x000138) 0x2520- f:00022 d: 288 | A = A + OR[288]
0x009D (0x00013A) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x009E (0x00013C) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x009F (0x00013E) 0x211D- f:00020 d: 285 | A = OR[285]
0x00A0 (0x000140) 0x8402- f:00102 d: 2 | P = P + 2 (0x00A2), A = 0
0x00A1 (0x000142) 0x7012- f:00070 d: 18 | P = P + 18 (0x00B3)
0x00A2 (0x000144) 0x2100- f:00020 d: 256 | A = OR[256]
0x00A3 (0x000146) 0x142E- f:00012 d: 46 | A = A + 46 (0x002E)
0x00A4 (0x000148) 0x2908- f:00024 d: 264 | OR[264] = A
0x00A5 (0x00014A) 0x211F- f:00020 d: 287 | A = OR[287]
0x00A6 (0x00014C) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00A7 (0x00014E) 0x2121- f:00020 d: 289 | A = OR[289]
0x00A8 (0x000150) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x00A9 (0x000152) 0x2921- f:00024 d: 289 | OR[289] = A
0x00AA (0x000154) 0x2100- f:00020 d: 256 | A = OR[256]
0x00AB (0x000156) 0x1436- f:00012 d: 54 | A = A + 54 (0x0036)
0x00AC (0x000158) 0x2908- f:00024 d: 264 | OR[264] = A
0x00AD (0x00015A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00AE (0x00015C) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x00B0 (0x000160) 0x2521- f:00022 d: 289 | A = A + OR[289]
0x00B1 (0x000162) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00B2 (0x000164) 0x7027- f:00070 d: 39 | P = P + 39 (0x00D9)
0x00B3 (0x000166) 0x211D- f:00020 d: 285 | A = OR[285]
0x00B4 (0x000168) 0x1602- f:00013 d: 2 | A = A - 2 (0x0002)
0x00B5 (0x00016A) 0x8402- f:00102 d: 2 | P = P + 2 (0x00B7), A = 0
0x00B6 (0x00016C) 0x7023- f:00070 d: 35 | P = P + 35 (0x00D9)
0x00B7 (0x00016E) 0x2100- f:00020 d: 256 | A = OR[256]
0x00B8 (0x000170) 0x1426- f:00012 d: 38 | A = A + 38 (0x0026)
0x00B9 (0x000172) 0x2913- f:00024 d: 275 | OR[275] = A
0x00BA (0x000174) 0x2122- f:00020 d: 290 | A = OR[290]
0x00BB (0x000176) 0x290D- f:00024 d: 269 | OR[269] = A
0x00BC (0x000178) 0x2113- f:00020 d: 275 | A = OR[275]
0x00BD (0x00017A) 0x290E- f:00024 d: 270 | OR[270] = A
0x00BE (0x00017C) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x00BF (0x00017E) 0x290F- f:00024 d: 271 | OR[271] = A
0x00C0 (0x000180) 0x7006- f:00070 d: 6 | P = P + 6 (0x00C6)
0x00C1 (0x000182) 0x310D- f:00030 d: 269 | A = (OR[269])
0x00C2 (0x000184) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x00C3 (0x000186) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x00C4 (0x000188) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x00C5 (0x00018A) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x00C6 (0x00018C) 0x210F- f:00020 d: 271 | A = OR[271]
0x00C7 (0x00018E) 0x8E06- f:00107 d: 6 | P = P - 6 (0x00C1), A # 0
0x00C8 (0x000190) 0x2100- f:00020 d: 256 | A = OR[256]
0x00C9 (0x000192) 0x142E- f:00012 d: 46 | A = A + 46 (0x002E)
0x00CA (0x000194) 0x2913- f:00024 d: 275 | OR[275] = A
0x00CB (0x000196) 0x211F- f:00020 d: 287 | A = OR[287]
0x00CC (0x000198) 0x290D- f:00024 d: 269 | OR[269] = A
0x00CD (0x00019A) 0x2113- f:00020 d: 275 | A = OR[275]
0x00CE (0x00019C) 0x290E- f:00024 d: 270 | OR[270] = A
0x00CF (0x00019E) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x00D0 (0x0001A0) 0x290F- f:00024 d: 271 | OR[271] = A
0x00D1 (0x0001A2) 0x7006- f:00070 d: 6 | P = P + 6 (0x00D7)
0x00D2 (0x0001A4) 0x310D- f:00030 d: 269 | A = (OR[269])
0x00D3 (0x0001A6) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x00D4 (0x0001A8) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x00D5 (0x0001AA) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x00D6 (0x0001AC) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x00D7 (0x0001AE) 0x210F- f:00020 d: 271 | A = OR[271]
0x00D8 (0x0001B0) 0x8E06- f:00107 d: 6 | P = P - 6 (0x00D2), A # 0
0x00D9 (0x0001B2) 0x0200- f:00001 d: 0 | EXIT
0x00DA (0x0001B4) 0x0000- f:00000 d: 0 | PASS
0x00DB (0x0001B6) 0x0000- f:00000 d: 0 | PASS
|
Cubical/Algebra/Ring/Properties.agda | ayberkt/cubical | 0 | 14744 | {-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.Algebra.Ring.Properties where
open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv
open import Cubical.Foundations.Equiv.HalfAdjoint
open import Cubical.Foundations.HLevels
open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.Univalence
open import Cubical.Foundations.Transport
open import Cubical.Foundations.SIP
open import Cubical.Data.Sigma
open import Cubical.Structures.Axioms
open import Cubical.Structures.Auto
open import Cubical.Structures.Macro
open import Cubical.Algebra.Semigroup
open import Cubical.Algebra.Monoid
open import Cubical.Algebra.AbGroup
open import Cubical.Algebra.Ring.Base
private
variable
ℓ : Level
{-
some basic calculations (used for example in QuotientRing.agda),
that should become obsolete or subject to change once we have a
ring solver (see https://github.com/agda/cubical/issues/297)
-}
module Theory (R' : Ring {ℓ}) where
open RingStr (snd R')
private R = ⟨ R' ⟩
implicitInverse : (x y : R)
→ x + y ≡ 0r
→ y ≡ - x
implicitInverse x y p =
y ≡⟨ sym (+-lid y) ⟩
0r + y ≡⟨ cong (λ u → u + y) (sym (+-linv x)) ⟩
(- x + x) + y ≡⟨ sym (+-assoc _ _ _) ⟩
(- x) + (x + y) ≡⟨ cong (λ u → (- x) + u) p ⟩
(- x) + 0r ≡⟨ +-rid _ ⟩
- x ∎
equalByDifference : (x y : R)
→ x - y ≡ 0r
→ x ≡ y
equalByDifference x y p =
x ≡⟨ sym (+-rid _) ⟩
x + 0r ≡⟨ cong (λ u → x + u) (sym (+-linv y)) ⟩
x + ((- y) + y) ≡⟨ +-assoc _ _ _ ⟩
(x - y) + y ≡⟨ cong (λ u → u + y) p ⟩
0r + y ≡⟨ +-lid _ ⟩
y ∎
0-selfinverse : - 0r ≡ 0r
0-selfinverse = sym (implicitInverse _ _ (+-rid 0r))
0-idempotent : 0r + 0r ≡ 0r
0-idempotent = +-lid 0r
+-idempotency→0 : (x : R) → x ≡ x + x → x ≡ 0r
+-idempotency→0 x p =
x ≡⟨ sym (+-rid x) ⟩
x + 0r ≡⟨ cong (λ u → x + u) (sym (+-rinv _)) ⟩
x + (x + (- x)) ≡⟨ +-assoc _ _ _ ⟩
(x + x) + (- x) ≡⟨ cong (λ u → u + (- x)) (sym p) ⟩
x + (- x) ≡⟨ +-rinv _ ⟩
0r ∎
0-rightNullifies : (x : R) → x · 0r ≡ 0r
0-rightNullifies x =
let x·0-is-idempotent : x · 0r ≡ x · 0r + x · 0r
x·0-is-idempotent =
x · 0r ≡⟨ cong (λ u → x · u) (sym 0-idempotent) ⟩
x · (0r + 0r) ≡⟨ ·-rdist-+ _ _ _ ⟩
(x · 0r) + (x · 0r) ∎
in (+-idempotency→0 _ x·0-is-idempotent)
0-leftNullifies : (x : R) → 0r · x ≡ 0r
0-leftNullifies x =
let 0·x-is-idempotent : 0r · x ≡ 0r · x + 0r · x
0·x-is-idempotent =
0r · x ≡⟨ cong (λ u → u · x) (sym 0-idempotent) ⟩
(0r + 0r) · x ≡⟨ ·-ldist-+ _ _ _ ⟩
(0r · x) + (0r · x) ∎
in +-idempotency→0 _ 0·x-is-idempotent
-commutesWithRight-· : (x y : R) → x · (- y) ≡ - (x · y)
-commutesWithRight-· x y = implicitInverse (x · y) (x · (- y))
(x · y + x · (- y) ≡⟨ sym (·-rdist-+ _ _ _) ⟩
x · (y + (- y)) ≡⟨ cong (λ u → x · u) (+-rinv y) ⟩
x · 0r ≡⟨ 0-rightNullifies x ⟩
0r ∎)
-commutesWithLeft-· : (x y : R) → (- x) · y ≡ - (x · y)
-commutesWithLeft-· x y = implicitInverse (x · y) ((- x) · y)
(x · y + (- x) · y ≡⟨ sym (·-ldist-+ _ _ _) ⟩
(x - x) · y ≡⟨ cong (λ u → u · y) (+-rinv x) ⟩
0r · y ≡⟨ 0-leftNullifies y ⟩
0r ∎)
-isDistributive : (x y : R) → (- x) + (- y) ≡ - (x + y)
-isDistributive x y =
implicitInverse _ _
((x + y) + ((- x) + (- y)) ≡⟨ sym (+-assoc _ _ _) ⟩
x + (y + ((- x) + (- y))) ≡⟨ cong
(λ u → x + (y + u))
(+-comm _ _) ⟩
x + (y + ((- y) + (- x))) ≡⟨ cong (λ u → x + u) (+-assoc _ _ _) ⟩
x + ((y + (- y)) + (- x)) ≡⟨ cong (λ u → x + (u + (- x)))
(+-rinv _) ⟩
x + (0r + (- x)) ≡⟨ cong (λ u → x + u) (+-lid _) ⟩
x + (- x) ≡⟨ +-rinv _ ⟩
0r ∎)
translatedDifference : (x a b : R) → a - b ≡ (x + a) - (x + b)
translatedDifference x a b =
a - b ≡⟨ cong (λ u → a + u)
(sym (+-lid _)) ⟩
(a + (0r + (- b))) ≡⟨ cong (λ u → a + (u + (- b)))
(sym (+-rinv _)) ⟩
(a + ((x + (- x)) + (- b))) ≡⟨ cong (λ u → a + u)
(sym (+-assoc _ _ _)) ⟩
(a + (x + ((- x) + (- b)))) ≡⟨ (+-assoc _ _ _) ⟩
((a + x) + ((- x) + (- b))) ≡⟨ cong (λ u → u + ((- x) + (- b)))
(+-comm _ _) ⟩
((x + a) + ((- x) + (- b))) ≡⟨ cong (λ u → (x + a) + u)
(-isDistributive _ _) ⟩
((x + a) - (x + b)) ∎
+-assoc-comm1 : (x y z : R) → x + (y + z) ≡ y + (x + z)
+-assoc-comm1 x y z = +-assoc x y z ∙∙ cong (λ x → x + z) (+-comm x y) ∙∙ sym (+-assoc y x z)
+-assoc-comm2 : (x y z : R) → x + (y + z) ≡ z + (y + x)
+-assoc-comm2 x y z = +-assoc-comm1 x y z ∙∙ cong (λ x → y + x) (+-comm x z) ∙∙ +-assoc-comm1 y z x
module HomTheory {R S : Ring {ℓ}} (f′ : RingHom R S) where
open Theory ⦃...⦄
open RingStr ⦃...⦄
open RingHom f′
private
instance
_ = R
_ = S
_ = snd R
_ = snd S
homPres0 : f 0r ≡ 0r
homPres0 = +-idempotency→0 (f 0r)
(f 0r ≡⟨ sym (cong f 0-idempotent) ⟩
f (0r + 0r) ≡⟨ isHom+ _ _ ⟩
f 0r + f 0r ∎)
-commutesWithHom : (x : ⟨ R ⟩) → f (- x) ≡ - (f x)
-commutesWithHom x = implicitInverse _ _
(f x + f (- x) ≡⟨ sym (isHom+ _ _) ⟩
f (x + (- x)) ≡⟨ cong f (+-rinv x) ⟩
f 0r ≡⟨ homPres0 ⟩
0r ∎)
|
oeis/055/A055798.asm | neoneye/loda-programs | 11 | 8912 | <reponame>neoneye/loda-programs
; A055798: T(2n+5,n), array T as in A055794.
; 1,7,29,93,255,627,1419,3003,6006,11440,20878,36686,62322,102714,164730,257754,394383,591261,870067,1258675,1792505,2516085,3484845,4767165,6446700,8625006,11424492,14991724,19501108,25158980,32208132,40932804,51664173,64786371,80743065,100044633,123275971,151104967,184291679,223698255,270299634,325195068,389620506,464961882,552769350,654772510,772896670,909280190,1066292955,1246556025,1452962511,1688699727,1957272669,2262528873,2608684705,3000353137,3442573064,3940840218,4501139736,5129980440
lpb $0
mov $2,$0
sub $0,1
seq $2,55797 ; T(2n+4,n), array T as in A055794.
add $1,$2
lpe
add $1,1
mov $0,$1
|
libsrc/alloc/balloc/ba_AddMem.asm | jpoikela/z88dk | 640 | 247555 | <gh_stars>100-1000
MODULE ba_AddMem
SECTION code_alloc_balloc
PUBLIC ba_AddMem
PUBLIC _ba_AddMem
EXTERN balloc_addmem
defc ba_AddMem = balloc_addmem
defc _ba_AddMem = balloc_addmem
|
demos/new_maze.ada | daveshields/AdaEd | 3 | 14304 | <filename>demos/new_maze.ada<gh_stars>1-10
----------------------------------------------------------------------
--
-- New_maze : create a new maze
--
-- written by
--
-- <NAME>
--
-- Ada Project
-- Courant Institute
-- New York University
-- 251 Mercer Street
-- New York, New York 10012
--
-----------------------------------------------------------------------
with random_numbers; use random_numbers;
with system;
separate(maze)
procedure new_maze(start, goal: position; num_lines: integer) is
-- create a new maze with a given number of paths, including two long ones
-- that lead to source and destination.
pos: position;
d: direction ;
l: integer ;
task type liner is
-- one is created for each path.
entry draw(pos: position; dir: direction; len: integer);
end liner;
type new_liner is access liner ;
next_line: new_liner ;
function max_len(p: position; d: direction) return integer is
-- establish distance from any point to boundary,
-- along a given direction.
begin
case d is
when up => return p.row ;
when right => return (80 - p.col) ;
when down => return (23 - p.row) ;
when left => return p.col ;
end case ;
end max_len;
task body liner is
p: position ;
d: direction ;
l: integer;
begin
accept draw(pos: position; dir:direction; len: integer) do
p := pos ;
d := dir ;
l := len ;
end draw ;
for i in 1..l loop
putc(' ', p.row, p.col) ;
dist(p.row, p.col) := max_dist ;
p := next_pos(p, d) ;
end loop ;
end liner ;
begin
clear ;
case SYSTEM.SYSTEM_NAME is
when SYSTEM.PC_DOS =>
fill_screen(ASCII.SI);
when others =>
fill_screen('#');
end case;
pos := start ; -- first path starts at source.
d := up; -- which is always on bottom row.
l := 20 ;
for i in 1..num_lines loop
-- create the right number of tasks, and start each at a random posi-
-- tion, going in a random direction towards the boundary.
next_line := new liner ;
next_line.draw(pos, d, l) ;
pos := (2*(1 + random_int(11)), 2*(1 + random_int(38))) ;
d := direction'val(random_int(40) mod 4) ;
l := max_len(pos, d) ;
l := l/2 + random_int(l/4) ;
end loop ;
-- One more for path leading to destination. (always on top row).
next_line := new liner ;
next_line.draw(goal, down, 22) ;
exception
when storage_error | program_error =>
puts("unable to create new tasks. Try simpler maze.", 23,1);
end new_maze ;
|
oeis/052/A052547.asm | neoneye/loda-programs | 11 | 176477 | <reponame>neoneye/loda-programs<gh_stars>10-100
; A052547: Expansion of (1-x)/(1-x-2*x^2+x^3).
; 1,0,2,1,5,5,14,19,42,66,131,221,417,728,1341,2380,4334,7753,14041,25213,45542,81927,147798,266110,479779,864201,1557649,2806272,5057369,9112264,16420730,29587889,53317085,96072133,173118414,311945595,562110290,1012883066,1825158051,3288813893,5926246929,10678716664,19242396629,34673583028,62479659622,112584429049,202870165265,365559363741,658715265222,1186963827439,2138834994142,3854047383798,6944753544643,12514013318097,22549473023585,40632746115136,73217678844209,131933698050896
mov $1,2
mov $3,2
lpb $0
sub $0,1
mov $2,$4
mov $4,$1
mov $1,$3
add $1,$2
sub $1,1
sub $4,1
add $3,$4
lpe
sub $1,1
mov $0,$1
|
experiments/test-suite/mutation-based/10/8/cd.als | kaiyuanw/AlloyFLCore | 1 | 2614 | pred test22 {
some disj Object0: Object {some disj Object0, Class0: Class {
Object = Object0
Class = Object0 + Class0
ext = Object0->Class0 + Class0->Class0
ClassHierarchy[]
}}
}
run test22 for 3 expect 0
pred test8 {
some disj Object0: Object {some disj Object0, Class0: Class {
Object = Object0
Class = Object0 + Class0
ext = Object0->Class0 + Class0->Class0
ObjectNoExt[]
}}
}
run test8 for 3 expect 0
|
travis/test/br3392711.asm | johannkoenig/nasm | 1,052 | 17688 | <filename>travis/test/br3392711.asm
;
; In br33927711 we've not been expanding %?? and %*?? correctly
;
section .text
%define label(prefix, suffix) prefix %+ suffix
label_1:
mov eax, label(%??, _1)
label_2:
mov eax, label(%?, _2)
%define label0123456789a0123456789a0123456789a0123456789a0123456789a0123456789a0123456789(prefix, suffix) prefix %+ suffix
label0123456789a0123456789a0123456789a0123456789a0123456789a0123456789a0123456789_1:
mov eax, label0123456789a0123456789a0123456789a0123456789a0123456789a0123456789a0123456789(%??, _1)
label0123456789a0123456789a0123456789a0123456789a0123456789a0123456789a0123456789_2:
mov eax, label0123456789a0123456789a0123456789a0123456789a0123456789a0123456789a0123456789(%??, _2)
|
alloy4fun_models/trashltl/models/9/BiJovwPzvDjwWj4P3.als | Kaixi26/org.alloytools.alloy | 0 | 1111 | open main
pred idBiJovwPzvDjwWj4P3_prop10 {
(all f:Protected | always f in Protected)
}
pred __repair { idBiJovwPzvDjwWj4P3_prop10 }
check __repair { idBiJovwPzvDjwWj4P3_prop10 <=> prop10o } |
examples/platformer/src/game.adb | Fabien-Chouteau/GESTE | 13 | 6819 | <gh_stars>10-100
with Ada.Real_Time;
with Render;
with Keyboard;
with Levels;
with Player;
with GESTE;
with GESTE.Text;
with GESTE_Config;
with GESTE_Fonts.FreeMono5pt7b;
package body Game is
package RT renames Ada.Real_Time;
use type RT.Time;
use type RT.Time_Span;
Text : aliased GESTE.Text.Instance
(GESTE_Fonts.FreeMono5pt7b.Font,
15, 1,
Render.Black,
GESTE_Config.Transparent);
Frame_Counter : Natural := 0;
Next_FPS_Update : RT.Time := RT.Clock + RT.Seconds (1);
Period : constant RT.Time_Span := RT.Seconds (1) / 60;
Next_Release : RT.Time := RT.Clock + Period;
Lvl : Levels.Level_Id := Levels.Lvl_1;
---------------
-- Game_Loop --
---------------
procedure Game_Loop is
begin
loop
if Player.Position.X > 320 - 3 then
case Lvl is
when Levels.Lvl_1 =>
Levels.Leave (Levels.Lvl_1);
Levels.Enter (Levels.Lvl_2);
Lvl := Levels.Lvl_2;
Player.Move ((3, 125));
when Levels.Lvl_2 =>
Levels.Leave (Levels.Lvl_2);
Levels.Enter (Levels.Lvl_3);
Lvl := Levels.Lvl_3;
Player.Move ((3, 183));
when Levels.Lvl_3 =>
Levels.Leave (Levels.Lvl_3);
Levels.Enter (Levels.Lvl_1);
Lvl := Levels.Lvl_1;
Player.Move ((3, 142));
end case;
elsif Player.Position.X < 2 then
case Lvl is
when Levels.Lvl_1 =>
Levels.Leave (Levels.Lvl_1);
Levels.Enter (Levels.Lvl_3);
Lvl := Levels.Lvl_3;
Player.Move ((320 - 4, 183));
when Levels.Lvl_2 =>
Levels.Leave (Levels.Lvl_2);
Levels.Enter (Levels.Lvl_1);
Lvl := Levels.Lvl_1;
Player.Move ((320 - 4, 120));
when Levels.Lvl_3 =>
Levels.Leave (Levels.Lvl_3);
Levels.Enter (Levels.Lvl_2);
Lvl := Levels.Lvl_2;
Player.Move ((320 - 4, 25));
end case;
end if;
Keyboard.Update;
if Keyboard.Pressed (Keyboard.Up) then
Player.Jump;
end if;
if Keyboard.Pressed (Keyboard.Left) then
Player.Move_Left;
end if;
if Keyboard.Pressed (Keyboard.Right) then
Player.Move_Right;
end if;
if Keyboard.Pressed (Keyboard.Esc) then
return;
end if;
Player.Update;
Frame_Counter := Frame_Counter + 1;
if Next_FPS_Update <= RT.Clock then
Next_FPS_Update := RT.Clock + RT.Seconds (1);
Text.Clear;
Text.Cursor (1, 1);
Text.Put ("FPS:" & Frame_Counter'Img);
Frame_Counter := 0;
end if;
Render.Render_Dirty (Render.Dark_Cyan);
delay until Next_Release;
Next_Release := RT.Clock + Period;
end loop;
end Game_Loop;
begin
Levels.Enter (Levels.Lvl_1);
Player.Move ((3, 142));
Text.Move ((0, 0));
GESTE.Add (Text'Access, 10);
Render.Render_All (Render.Dark_Cyan);
end Game;
|
programs/oeis/168/A168036.asm | neoneye/loda | 22 | 95011 | <filename>programs/oeis/168/A168036.asm<gh_stars>10-100
; A168036: Difference between n' and n, where n' is the arithmetic derivative of n (A003415).
; 0,-1,-1,-2,0,-4,-1,-6,4,-3,-3,-10,4,-12,-5,-7,16,-16,3,-18,4,-11,-9,-22,20,-15,-11,0,4,-28,1,-30,48,-19,-15,-23,24,-36,-17,-23,28,-40,-1,-42,4,-6,-21,-46,64,-35,-5,-31,4,-52,27,-39,36,-35,-27,-58,32,-60,-29,-12,128,-47,-5,-66,4,-43,-11,-70,84,-72,-35,-20,4,-59,-7,-78,96,27,-39,-82,40,-63,-41,-55,52,-88,33,-71,4,-59,-45,-71,176,-96,-21,-24
mov $2,$0
seq $0,3415 ; a(n) = n' = arithmetic derivative of n: a(0) = a(1) = 0, a(prime) = 1, a(mn) = m*a(n) + n*a(m).
sub $0,$2
|
programs/oeis/208/A208536.asm | karttu/loda | 0 | 91026 | ; A208536: Number of 5-bead necklaces of n colors not allowing reversal, with no adjacent beads having the same color.
; 0,0,6,48,204,624,1554,3360,6552,11808,19998,32208,49764,74256,107562,151872,209712,283968,377910,495216,639996,816816,1030722,1287264,1592520,1953120,2376270,2869776,3442068,4102224,4859994,5725824,6710880,7827072,9087078,10504368,12093228,13868784,15847026,18044832,20479992,23171232,26138238,29401680,32983236,36905616,41192586,45868992,50960784,56495040,62499990,69005040,76040796,83639088,91832994,100656864,110146344,120338400,131271342,142984848,155519988,168919248,183226554,198487296,214748352,232058112,250466502,270025008,290786700,312806256,336139986,360845856,386983512,414614304,443801310,474609360,507105060,541356816,577434858,615411264,655359984,697356864,741479670,787808112,836423868,887410608,940854018,996841824,1055463816,1116811872,1180979982,1248064272,1318163028,1391376720,1467808026,1547561856,1630745376,1717468032,1807841574,1901980080,1999999980,2102020080,2208161586,2318548128,2433305784,2552563104,2676451134,2805103440,2938656132,3077247888,3221019978,3370116288,3524683344,3684870336,3850829142,4022714352,4200683292,4384896048,4575515490,4772707296,4976639976,5187484896,5405416302,5630611344,5863250100,6103515600,6351593850,6607673856,6871947648,7144610304,7425859974,7715897904,8014928460,8323159152,8640800658,8968066848,9305174808,9652344864,10009800606,10377768912,10756479972,11146167312,11547067818,11959421760,12383472816,12819468096,13267658166,13728297072,14201642364,14687955120,15187499970,15700545120,16227362376,16768227168,17323418574,17893219344,18477915924,19077798480,19693160922,20324300928,20971519968,21635123328,22315420134,23012723376,23727349932,24459620592,25209860082,25978397088,26765564280,27571698336,28397139966,29242233936,30107329092,30992778384,31898938890,32826171840,33774842640,34745320896,35737980438,36753199344,37791359964,38852848944,39938057250,41047380192,42181217448,43339973088,44524055598,45733877904,46969857396,48232415952,49521979962,50838980352,52183852608,53557036800,54958977606,56390124336,57850930956,59341856112,60863363154,62415920160,63999999960,65616080160,67264643166,68946176208,70661171364,72410125584,74193540714,76011923520,77865785712,79755643968
mov $1,$0
pow $1,5
sub $1,$0
div $1,5
|
src/oam.asm | mdsteele/nesfxr | 1 | 90751 | <filename>src/oam.asm
.INCLUDE "oam.inc"
;;;=========================================================================;;;
.SEGMENT "OAM"
.EXPORT Ram_ShadowOam_oama_arr64
Ram_ShadowOam_oama_arr64:
.EXPORT Ram_Cursor_oama
Ram_Cursor_oama: .tag OAMA
;;;=========================================================================;;;
.CODE
;; Places all sprites offscreen.
.EXPORT Func_OamClear
.PROC Func_OamClear
lda #$fe
ldx #0
@loop:
.assert OAMA::YPos = 0, error
sta Ram_ShadowOam_oama_arr64, X
.assert .sizeof(OAMA) = 4, error
inx
inx
inx
inx
bne @loop
rts
.ENDPROC
;;;=========================================================================;;;
|
ioq3/build/release-js-js/baseq3/game/g_main.asm | RawTechnique/quake-port | 1 | 28480 | <filename>ioq3/build/release-js-js/baseq3/game/g_main.asm
data
align 4
LABELV gameCvarTable
address g_cheats
address $54
address $55
byte 4 0
byte 4 0
byte 4 0
skip 4
byte 4 0
address $56
address $57
byte 4 68
byte 4 0
byte 4 0
skip 4
byte 4 0
address $58
address $59
byte 4 64
byte 4 0
byte 4 0
skip 4
address g_restarted
address $60
address $61
byte 4 64
byte 4 0
byte 4 0
skip 4
address g_gametype
address $62
address $61
byte 4 38
byte 4 0
byte 4 0
skip 4
address g_maxclients
address $63
address $64
byte 4 37
byte 4 0
byte 4 0
skip 4
address g_maxGameClients
address $65
address $61
byte 4 37
byte 4 0
byte 4 0
skip 4
address g_dmflags
address $66
address $61
byte 4 5
byte 4 0
byte 4 1
skip 4
address g_fraglimit
address $67
address $68
byte 4 1029
byte 4 0
byte 4 1
skip 4
address g_timelimit
address $69
address $61
byte 4 1029
byte 4 0
byte 4 1
skip 4
address g_capturelimit
address $70
address $64
byte 4 1029
byte 4 0
byte 4 1
skip 4
address g_synchronousClients
address $71
address $61
byte 4 8
byte 4 0
byte 4 0
skip 4
address g_friendlyFire
address $72
address $61
byte 4 1
byte 4 0
byte 4 1
skip 4
address g_teamAutoJoin
address $73
address $61
byte 4 1
skip 12
address g_teamForceBalance
address $74
address $61
byte 4 1
skip 12
address g_warmup
address $75
address $68
byte 4 1
byte 4 0
byte 4 1
skip 4
address g_doWarmup
address $76
address $61
byte 4 1
byte 4 0
byte 4 1
skip 4
address g_logfile
address $77
address $78
byte 4 1
byte 4 0
byte 4 0
skip 4
address g_logfileSync
address $79
address $61
byte 4 1
byte 4 0
byte 4 0
skip 4
address g_password
address $80
address $55
byte 4 2
byte 4 0
byte 4 0
skip 4
address g_banIPs
address $81
address $55
byte 4 1
byte 4 0
byte 4 0
skip 4
address g_filterBan
address $82
address $83
byte 4 1
byte 4 0
byte 4 0
skip 4
address g_needpass
address $84
address $61
byte 4 68
byte 4 0
byte 4 0
skip 4
address g_dedicated
address $85
address $61
byte 4 0
byte 4 0
byte 4 0
skip 4
address g_speed
address $86
address $87
byte 4 0
byte 4 0
byte 4 1
skip 4
address g_gravity
address $88
address $89
byte 4 0
byte 4 0
byte 4 1
skip 4
address g_knockback
address $90
address $91
byte 4 0
byte 4 0
byte 4 1
skip 4
address g_quadfactor
address $92
address $93
byte 4 0
byte 4 0
byte 4 1
skip 4
address g_weaponRespawn
address $94
address $95
byte 4 0
byte 4 0
byte 4 1
skip 4
address g_weaponTeamRespawn
address $96
address $97
byte 4 0
byte 4 0
byte 4 1
skip 4
address g_forcerespawn
address $98
address $68
byte 4 0
byte 4 0
byte 4 1
skip 4
address g_inactivity
address $99
address $61
byte 4 0
byte 4 0
byte 4 1
skip 4
address g_debugMove
address $100
address $61
byte 4 0
byte 4 0
byte 4 0
skip 4
address g_debugDamage
address $101
address $61
byte 4 0
byte 4 0
byte 4 0
skip 4
address g_debugAlloc
address $102
address $61
byte 4 0
byte 4 0
byte 4 0
skip 4
address g_motd
address $103
address $55
byte 4 0
byte 4 0
byte 4 0
skip 4
address g_blood
address $104
address $83
byte 4 0
byte 4 0
byte 4 0
skip 4
address g_podiumDist
address $105
address $106
byte 4 0
byte 4 0
byte 4 0
skip 4
address g_podiumDrop
address $107
address $108
byte 4 0
byte 4 0
byte 4 0
skip 4
address g_allowVote
address $109
address $83
byte 4 1
byte 4 0
byte 4 0
skip 4
address g_listEntity
address $110
address $61
byte 4 0
byte 4 0
byte 4 0
skip 4
address g_smoothClients
address $111
address $83
byte 4 0
byte 4 0
byte 4 0
skip 4
address pmove_fixed
address $112
address $61
byte 4 8
byte 4 0
byte 4 0
skip 4
address pmove_msec
address $113
address $64
byte 4 8
byte 4 0
byte 4 0
skip 4
address g_rankings
address $114
address $61
byte 4 0
byte 4 0
byte 4 0
skip 4
align 4
LABELV gameCvarTableSize
byte 4 45
export vmMain
code
proc vmMain 16 12
ADDRLP4 0
ADDRFP4 0
INDIRI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 0
LTI4 $116
ADDRLP4 0
INDIRI4
CNSTI4 10
GTI4 $116
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 $129
ADDP4
INDIRP4
JUMPV
lit
align 4
LABELV $129
address $118
address $119
address $120
address $124
address $122
address $123
address $125
address $121
address $126
address $127
address $128
code
LABELV $118
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRI4
ARGI4
ADDRFP4 12
INDIRI4
ARGI4
ADDRGP4 G_InitGame
CALLV
pop
CNSTI4 0
RETI4
ADDRGP4 $115
JUMPV
LABELV $119
ADDRFP4 4
INDIRI4
ARGI4
ADDRGP4 G_ShutdownGame
CALLV
pop
CNSTI4 0
RETI4
ADDRGP4 $115
JUMPV
LABELV $120
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRI4
ARGI4
ADDRFP4 12
INDIRI4
ARGI4
ADDRLP4 4
ADDRGP4 ClientConnect
CALLP4
ASGNP4
ADDRLP4 4
INDIRP4
CVPU4 4
CVUI4 4
RETI4
ADDRGP4 $115
JUMPV
LABELV $121
ADDRFP4 4
INDIRI4
ARGI4
ADDRGP4 ClientThink
CALLV
pop
CNSTI4 0
RETI4
ADDRGP4 $115
JUMPV
LABELV $122
ADDRFP4 4
INDIRI4
ARGI4
ADDRGP4 ClientUserinfoChanged
CALLV
pop
CNSTI4 0
RETI4
ADDRGP4 $115
JUMPV
LABELV $123
ADDRFP4 4
INDIRI4
ARGI4
ADDRGP4 ClientDisconnect
CALLV
pop
CNSTI4 0
RETI4
ADDRGP4 $115
JUMPV
LABELV $124
ADDRFP4 4
INDIRI4
ARGI4
ADDRGP4 ClientBegin
CALLV
pop
CNSTI4 0
RETI4
ADDRGP4 $115
JUMPV
LABELV $125
ADDRFP4 4
INDIRI4
ARGI4
ADDRGP4 ClientCommand
CALLV
pop
CNSTI4 0
RETI4
ADDRGP4 $115
JUMPV
LABELV $126
ADDRFP4 4
INDIRI4
ARGI4
ADDRGP4 G_RunFrame
CALLV
pop
CNSTI4 0
RETI4
ADDRGP4 $115
JUMPV
LABELV $127
ADDRLP4 8
ADDRGP4 ConsoleCommand
CALLI4
ASGNI4
ADDRLP4 8
INDIRI4
RETI4
ADDRGP4 $115
JUMPV
LABELV $128
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 12
ADDRGP4 BotAIStartFrame
CALLI4
ASGNI4
ADDRLP4 12
INDIRI4
RETI4
ADDRGP4 $115
JUMPV
LABELV $116
CNSTI4 -1
RETI4
LABELV $115
endproc vmMain 16 12
export G_Printf
proc G_Printf 1028 16
ADDRLP4 0
ADDRFP4 0+4
ASGNP4
ADDRLP4 4
ARGP4
CNSTU4 1024
ARGU4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 qk_vsnprintf
CALLI4
pop
ADDRLP4 0
CNSTP4 0
ASGNP4
ADDRLP4 4
ARGP4
ADDRGP4 trap_Print
CALLV
pop
LABELV $130
endproc G_Printf 1028 16
export G_Error
proc G_Error 1028 16
ADDRLP4 0
ADDRFP4 0+4
ASGNP4
ADDRLP4 4
ARGP4
CNSTU4 1024
ARGU4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 qk_vsnprintf
CALLI4
pop
ADDRLP4 0
CNSTP4 0
ASGNP4
ADDRLP4 4
ARGP4
ADDRGP4 trap_Error
CALLV
pop
LABELV $132
endproc G_Error 1028 16
export G_FindTeams
proc G_FindTeams 56 12
ADDRLP4 24
CNSTI4 0
ASGNI4
ADDRLP4 20
ADDRLP4 24
INDIRI4
ASGNI4
ADDRLP4 12
ADDRLP4 24
INDIRI4
ASGNI4
ADDRLP4 16
CNSTI4 1
ASGNI4
ADDRLP4 4
CNSTI4 804
ADDRLP4 16
INDIRI4
MULI4
ADDRGP4 g_entities
ADDP4
ASGNP4
ADDRGP4 $138
JUMPV
LABELV $135
ADDRLP4 4
INDIRP4
CNSTI4 520
ADDP4
INDIRI4
CNSTI4 0
NEI4 $140
ADDRGP4 $136
JUMPV
LABELV $140
ADDRLP4 4
INDIRP4
CNSTI4 652
ADDP4
INDIRP4
CVPU4 4
CNSTU4 0
NEU4 $142
ADDRGP4 $136
JUMPV
LABELV $142
ADDRLP4 4
INDIRP4
CNSTI4 536
ADDP4
INDIRI4
CNSTI4 1024
BANDI4
CNSTI4 0
EQI4 $144
ADDRGP4 $136
JUMPV
LABELV $144
ADDRLP4 4
INDIRP4
CNSTI4 776
ADDP4
ADDRLP4 4
INDIRP4
ASGNP4
ADDRLP4 32
CNSTI4 1
ASGNI4
ADDRLP4 20
ADDRLP4 20
INDIRI4
ADDRLP4 32
INDIRI4
ADDI4
ASGNI4
ADDRLP4 12
ADDRLP4 12
INDIRI4
ADDRLP4 32
INDIRI4
ADDI4
ASGNI4
ADDRLP4 8
ADDRLP4 16
INDIRI4
ADDRLP4 32
INDIRI4
ADDI4
ASGNI4
ADDRLP4 0
ADDRLP4 4
INDIRP4
CNSTI4 804
ADDP4
ASGNP4
ADDRGP4 $149
JUMPV
LABELV $146
ADDRLP4 0
INDIRP4
CNSTI4 520
ADDP4
INDIRI4
CNSTI4 0
NEI4 $151
ADDRGP4 $147
JUMPV
LABELV $151
ADDRLP4 0
INDIRP4
CNSTI4 652
ADDP4
INDIRP4
CVPU4 4
CNSTU4 0
NEU4 $153
ADDRGP4 $147
JUMPV
LABELV $153
ADDRLP4 0
INDIRP4
CNSTI4 536
ADDP4
INDIRI4
CNSTI4 1024
BANDI4
CNSTI4 0
EQI4 $155
ADDRGP4 $147
JUMPV
LABELV $155
ADDRLP4 36
CNSTI4 652
ASGNI4
ADDRLP4 4
INDIRP4
ADDRLP4 36
INDIRI4
ADDP4
INDIRP4
ARGP4
ADDRLP4 0
INDIRP4
ADDRLP4 36
INDIRI4
ADDP4
INDIRP4
ARGP4
ADDRLP4 40
ADDRGP4 qk_strcmp
CALLI4
ASGNI4
ADDRLP4 40
INDIRI4
CNSTI4 0
NEI4 $157
ADDRLP4 12
ADDRLP4 12
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 44
CNSTI4 772
ASGNI4
ADDRLP4 0
INDIRP4
ADDRLP4 44
INDIRI4
ADDP4
ADDRLP4 4
INDIRP4
ADDRLP4 44
INDIRI4
ADDP4
INDIRP4
ASGNP4
ADDRLP4 4
INDIRP4
CNSTI4 772
ADDP4
ADDRLP4 0
INDIRP4
ASGNP4
ADDRLP4 0
INDIRP4
CNSTI4 776
ADDP4
ADDRLP4 4
INDIRP4
ASGNP4
ADDRLP4 48
ADDRLP4 0
INDIRP4
CNSTI4 536
ADDP4
ASGNP4
ADDRLP4 48
INDIRP4
ADDRLP4 48
INDIRP4
INDIRI4
CNSTI4 1024
BORI4
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 648
ADDP4
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $159
ADDRLP4 52
CNSTI4 648
ASGNI4
ADDRLP4 4
INDIRP4
ADDRLP4 52
INDIRI4
ADDP4
ADDRLP4 0
INDIRP4
ADDRLP4 52
INDIRI4
ADDP4
INDIRP4
ASGNP4
ADDRLP4 0
INDIRP4
CNSTI4 648
ADDP4
CNSTP4 0
ASGNP4
LABELV $159
LABELV $157
LABELV $147
ADDRLP4 8
ADDRLP4 8
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 0
ADDRLP4 0
INDIRP4
CNSTI4 804
ADDP4
ASGNP4
LABELV $149
ADDRLP4 8
INDIRI4
ADDRGP4 level+12
INDIRI4
LTI4 $146
LABELV $136
ADDRLP4 16
ADDRLP4 16
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 4
ADDRLP4 4
INDIRP4
CNSTI4 804
ADDP4
ASGNP4
LABELV $138
ADDRLP4 16
INDIRI4
ADDRGP4 level+12
INDIRI4
LTI4 $135
ADDRGP4 $161
ARGP4
ADDRLP4 20
INDIRI4
ARGI4
ADDRLP4 12
INDIRI4
ARGI4
ADDRGP4 G_Printf
CALLV
pop
LABELV $134
endproc G_FindTeams 56 12
export G_RemapTeamShaders
proc G_RemapTeamShaders 0 0
LABELV $162
endproc G_RemapTeamShaders 0 0
export G_RegisterCvars
proc G_RegisterCvars 20 16
ADDRLP4 8
CNSTI4 0
ASGNI4
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRLP4 0
ADDRGP4 gameCvarTable
ASGNP4
ADDRGP4 $167
JUMPV
LABELV $164
ADDRLP4 0
INDIRP4
INDIRP4
ARGP4
ADDRLP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRP4
ARGP4
ADDRLP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRP4
ARGP4
ADDRLP4 0
INDIRP4
CNSTI4 12
ADDP4
INDIRI4
ARGI4
ADDRGP4 trap_Cvar_Register
CALLV
pop
ADDRLP4 0
INDIRP4
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $168
ADDRLP4 0
INDIRP4
CNSTI4 16
ADDP4
ADDRLP4 0
INDIRP4
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
ASGNI4
LABELV $168
ADDRLP4 0
INDIRP4
CNSTI4 24
ADDP4
INDIRI4
CNSTI4 0
EQI4 $170
ADDRLP4 8
CNSTI4 1
ASGNI4
LABELV $170
LABELV $165
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 0
ADDRLP4 0
INDIRP4
CNSTI4 28
ADDP4
ASGNP4
LABELV $167
ADDRLP4 4
INDIRI4
ADDRGP4 gameCvarTableSize
INDIRI4
LTI4 $164
ADDRLP4 8
INDIRI4
CNSTI4 0
EQI4 $172
ADDRGP4 G_RemapTeamShaders
CALLV
pop
LABELV $172
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 0
LTI4 $178
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 8
LTI4 $174
LABELV $178
ADDRGP4 $179
ARGP4
ADDRGP4 g_gametype+12
INDIRI4
ARGI4
ADDRGP4 G_Printf
CALLV
pop
ADDRGP4 $62
ARGP4
ADDRGP4 $61
ARGP4
ADDRGP4 trap_Cvar_Set
CALLV
pop
ADDRGP4 g_gametype
ARGP4
ADDRGP4 trap_Cvar_Update
CALLV
pop
LABELV $174
ADDRGP4 level+352
ADDRGP4 g_warmup+4
INDIRI4
ASGNI4
LABELV $163
endproc G_RegisterCvars 20 16
export G_UpdateCvars
proc G_UpdateCvars 28 12
ADDRLP4 8
CNSTI4 0
ASGNI4
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRLP4 0
ADDRGP4 gameCvarTable
ASGNP4
ADDRGP4 $187
JUMPV
LABELV $184
ADDRLP4 0
INDIRP4
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $188
ADDRLP4 0
INDIRP4
INDIRP4
ARGP4
ADDRGP4 trap_Cvar_Update
CALLV
pop
ADDRLP4 0
INDIRP4
CNSTI4 16
ADDP4
INDIRI4
ADDRLP4 0
INDIRP4
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
EQI4 $190
ADDRLP4 0
INDIRP4
CNSTI4 16
ADDP4
ADDRLP4 0
INDIRP4
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 20
ADDP4
INDIRI4
CNSTI4 0
EQI4 $192
ADDRGP4 $194
ARGP4
ADDRLP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRP4
ARGP4
ADDRLP4 0
INDIRP4
INDIRP4
CNSTI4 16
ADDP4
ARGP4
ADDRLP4 24
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 -1
ARGI4
ADDRLP4 24
INDIRP4
ARGP4
ADDRGP4 trap_SendServerCommand
CALLV
pop
LABELV $192
ADDRLP4 0
INDIRP4
CNSTI4 24
ADDP4
INDIRI4
CNSTI4 0
EQI4 $195
ADDRLP4 8
CNSTI4 1
ASGNI4
LABELV $195
LABELV $190
LABELV $188
LABELV $185
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 0
ADDRLP4 0
INDIRP4
CNSTI4 28
ADDP4
ASGNP4
LABELV $187
ADDRLP4 4
INDIRI4
ADDRGP4 gameCvarTableSize
INDIRI4
LTI4 $184
ADDRLP4 8
INDIRI4
CNSTI4 0
EQI4 $197
ADDRGP4 G_RemapTeamShaders
CALLV
pop
LABELV $197
LABELV $183
endproc G_UpdateCvars 28 12
export G_InitGame
proc G_InitGame 1032 20
ADDRGP4 $200
ARGP4
ADDRGP4 G_Printf
CALLV
pop
ADDRGP4 $201
ARGP4
ADDRGP4 $57
ARGP4
ADDRGP4 G_Printf
CALLV
pop
ADDRGP4 $202
ARGP4
ADDRGP4 $59
ARGP4
ADDRGP4 G_Printf
CALLV
pop
ADDRFP4 4
INDIRI4
CVIU4 4
ARGU4
ADDRGP4 qk_srand
CALLV
pop
ADDRGP4 G_RegisterCvars
CALLV
pop
ADDRGP4 G_ProcessIPBans
CALLV
pop
ADDRGP4 G_InitMemory
CALLV
pop
ADDRGP4 level
ARGP4
CNSTI4 0
ARGI4
CNSTU4 9212
ARGU4
ADDRGP4 qk_memset
CALLP4
pop
ADDRGP4 level+32
ADDRFP4 0
INDIRI4
ASGNI4
ADDRGP4 level+40
ADDRFP4 0
INDIRI4
ASGNI4
ADDRGP4 $206
ARGP4
ADDRLP4 4
ADDRGP4 G_SoundIndex
CALLI4
ASGNI4
ADDRGP4 level+348
ADDRLP4 4
INDIRI4
ASGNI4
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 2
EQI4 $207
ADDRGP4 g_logfile+16
INDIRI1
CVII4 1
CNSTI4 0
EQI4 $207
ADDRGP4 g_logfileSync+12
INDIRI4
CNSTI4 0
EQI4 $211
ADDRGP4 g_logfile+16
ARGP4
ADDRGP4 level+20
ARGP4
CNSTI4 3
ARGI4
ADDRGP4 trap_FS_FOpenFile
CALLI4
pop
ADDRGP4 $212
JUMPV
LABELV $211
ADDRGP4 g_logfile+16
ARGP4
ADDRGP4 level+20
ARGP4
CNSTI4 2
ARGI4
ADDRGP4 trap_FS_FOpenFile
CALLI4
pop
LABELV $212
ADDRGP4 level+20
INDIRI4
CNSTI4 0
NEI4 $218
ADDRGP4 $221
ARGP4
ADDRGP4 g_logfile+16
ARGP4
ADDRGP4 G_Printf
CALLV
pop
ADDRGP4 $208
JUMPV
LABELV $218
ADDRLP4 8
ARGP4
CNSTI4 1024
ARGI4
ADDRGP4 trap_GetServerinfo
CALLV
pop
ADDRGP4 $223
ARGP4
ADDRGP4 G_LogPrintf
CALLV
pop
ADDRGP4 $224
ARGP4
ADDRLP4 8
ARGP4
ADDRGP4 G_LogPrintf
CALLV
pop
ADDRGP4 $208
JUMPV
LABELV $207
ADDRGP4 $225
ARGP4
ADDRGP4 G_Printf
CALLV
pop
LABELV $208
ADDRGP4 G_InitWorldSession
CALLV
pop
ADDRGP4 g_entities
ARGP4
CNSTI4 0
ARGI4
CNSTU4 823296
ARGU4
ADDRGP4 qk_memset
CALLP4
pop
ADDRGP4 level+4
ADDRGP4 g_entities
ASGNP4
ADDRGP4 level+24
ADDRGP4 g_maxclients+12
INDIRI4
ASGNI4
ADDRGP4 g_clients
ARGP4
CNSTI4 0
ARGI4
CNSTU4 49664
ARGU4
ADDRGP4 qk_memset
CALLP4
pop
ADDRGP4 level
ADDRGP4 g_clients
ASGNP4
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $232
JUMPV
LABELV $229
CNSTI4 804
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 g_entities+516
ADDP4
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
ASGNP4
LABELV $230
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $232
ADDRLP4 0
INDIRI4
ADDRGP4 level+24
INDIRI4
LTI4 $229
ADDRGP4 level+12
CNSTI4 64
ASGNI4
ADDRLP4 0
CNSTI4 0
ASGNI4
LABELV $236
CNSTI4 804
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 g_entities+524
ADDP4
ADDRGP4 $241
ASGNP4
LABELV $237
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 64
LTI4 $236
ADDRGP4 level+4
INDIRP4
ARGP4
ADDRGP4 level+12
INDIRI4
ARGI4
CNSTI4 804
ARGI4
ADDRGP4 level
INDIRP4
ARGP4
CNSTI4 776
ARGI4
ADDRGP4 trap_LocateGameData
CALLV
pop
ADDRGP4 InitBodyQue
CALLV
pop
ADDRGP4 ClearRegisteredItems
CALLV
pop
ADDRGP4 G_SpawnEntitiesFromString
CALLV
pop
ADDRGP4 G_FindTeams
CALLV
pop
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 3
LTI4 $244
ADDRGP4 G_CheckTeamItems
CALLV
pop
LABELV $244
ADDRGP4 SaveRegisteredItems
CALLV
pop
ADDRGP4 $247
ARGP4
ADDRGP4 G_Printf
CALLV
pop
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 2
EQI4 $252
ADDRGP4 $251
ARGP4
ADDRLP4 8
ADDRGP4 trap_Cvar_VariableIntegerValue
CALLI4
ASGNI4
ADDRLP4 8
INDIRI4
CNSTI4 0
EQI4 $248
LABELV $252
ADDRGP4 $253
ARGP4
ADDRGP4 G_ModelIndex
CALLI4
pop
LABELV $248
ADDRGP4 $256
ARGP4
ADDRLP4 12
ADDRGP4 trap_Cvar_VariableIntegerValue
CALLI4
ASGNI4
ADDRLP4 12
INDIRI4
CNSTI4 0
EQI4 $254
ADDRFP4 8
INDIRI4
ARGI4
ADDRGP4 BotAISetup
CALLI4
pop
ADDRFP4 8
INDIRI4
ARGI4
ADDRGP4 BotAILoadMap
CALLI4
pop
ADDRFP4 8
INDIRI4
ARGI4
ADDRGP4 G_InitBots
CALLV
pop
LABELV $254
ADDRGP4 G_RemapTeamShaders
CALLV
pop
LABELV $199
endproc G_InitGame 1032 20
export G_ShutdownGame
proc G_ShutdownGame 4 4
ADDRGP4 $258
ARGP4
ADDRGP4 G_Printf
CALLV
pop
ADDRGP4 level+20
INDIRI4
CNSTI4 0
EQI4 $259
ADDRGP4 $262
ARGP4
ADDRGP4 G_LogPrintf
CALLV
pop
ADDRGP4 $223
ARGP4
ADDRGP4 G_LogPrintf
CALLV
pop
ADDRGP4 level+20
INDIRI4
ARGI4
ADDRGP4 trap_FS_FCloseFile
CALLV
pop
ADDRGP4 level+20
CNSTI4 0
ASGNI4
LABELV $259
ADDRGP4 G_WriteSessionData
CALLV
pop
ADDRGP4 $256
ARGP4
ADDRLP4 0
ADDRGP4 trap_Cvar_VariableIntegerValue
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 0
EQI4 $265
ADDRFP4 0
INDIRI4
ARGI4
ADDRGP4 BotAIShutdown
CALLI4
pop
LABELV $265
LABELV $257
endproc G_ShutdownGame 4 4
export Com_Error
proc Com_Error 1028 16
ADDRLP4 0
ADDRFP4 4+4
ASGNP4
ADDRLP4 4
ARGP4
CNSTU4 1024
ARGU4
ADDRFP4 4
INDIRP4
ARGP4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 qk_vsnprintf
CALLI4
pop
ADDRLP4 0
CNSTP4 0
ASGNP4
ADDRLP4 4
ARGP4
ADDRGP4 trap_Error
CALLV
pop
LABELV $267
endproc Com_Error 1028 16
export Com_Printf
proc Com_Printf 1028 16
ADDRLP4 0
ADDRFP4 0+4
ASGNP4
ADDRLP4 4
ARGP4
CNSTU4 1024
ARGU4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 qk_vsnprintf
CALLI4
pop
ADDRLP4 0
CNSTP4 0
ASGNP4
ADDRLP4 4
ARGP4
ADDRGP4 trap_Print
CALLV
pop
LABELV $269
endproc Com_Printf 1028 16
export AddTournamentPlayer
proc AddTournamentPlayer 24 8
ADDRGP4 level+80
INDIRI4
CNSTI4 2
LTI4 $272
ADDRGP4 $271
JUMPV
LABELV $272
ADDRGP4 level+9128
INDIRI4
CNSTI4 0
EQI4 $275
ADDRGP4 $271
JUMPV
LABELV $275
ADDRLP4 8
CNSTP4 0
ASGNP4
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRGP4 $281
JUMPV
LABELV $278
ADDRLP4 0
CNSTI4 776
ADDRLP4 4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
ASGNP4
ADDRLP4 0
INDIRP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 2
EQI4 $283
ADDRGP4 $279
JUMPV
LABELV $283
ADDRLP4 0
INDIRP4
CNSTI4 616
ADDP4
INDIRI4
CNSTI4 3
EQI4 $285
ADDRGP4 $279
JUMPV
LABELV $285
ADDRLP4 0
INDIRP4
CNSTI4 624
ADDP4
INDIRI4
CNSTI4 3
EQI4 $289
ADDRLP4 0
INDIRP4
CNSTI4 628
ADDP4
INDIRI4
CNSTI4 0
GEI4 $287
LABELV $289
ADDRGP4 $279
JUMPV
LABELV $287
ADDRLP4 8
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $292
ADDRLP4 20
CNSTI4 620
ASGNI4
ADDRLP4 0
INDIRP4
ADDRLP4 20
INDIRI4
ADDP4
INDIRI4
ADDRLP4 8
INDIRP4
ADDRLP4 20
INDIRI4
ADDP4
INDIRI4
LEI4 $290
LABELV $292
ADDRLP4 8
ADDRLP4 0
INDIRP4
ASGNP4
LABELV $290
LABELV $279
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $281
ADDRLP4 4
INDIRI4
ADDRGP4 level+24
INDIRI4
LTI4 $278
ADDRLP4 8
INDIRP4
CVPU4 4
CNSTU4 0
NEU4 $293
ADDRGP4 $271
JUMPV
LABELV $293
ADDRGP4 level+16
CNSTI4 -1
ASGNI4
CNSTI4 804
ADDRLP4 8
INDIRP4
CVPU4 4
ADDRGP4 level
INDIRP4
CVPU4 4
SUBU4
CVUI4 4
CNSTI4 776
DIVI4
MULI4
ADDRGP4 g_entities
ADDP4
ARGP4
ADDRGP4 $296
ARGP4
ADDRGP4 SetTeam
CALLV
pop
LABELV $271
endproc AddTournamentPlayer 24 8
export AddTournamentQueue
proc AddTournamentQueue 12 0
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRGP4 $301
JUMPV
LABELV $298
ADDRLP4 0
CNSTI4 776
ADDRLP4 4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
ASGNP4
ADDRLP4 0
INDIRP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 0
EQI4 $303
ADDRLP4 0
INDIRP4
CVPU4 4
ADDRFP4 0
INDIRP4
CVPU4 4
NEU4 $305
ADDRLP4 0
INDIRP4
CNSTI4 620
ADDP4
CNSTI4 0
ASGNI4
ADDRGP4 $306
JUMPV
LABELV $305
ADDRLP4 0
INDIRP4
CNSTI4 616
ADDP4
INDIRI4
CNSTI4 3
NEI4 $307
ADDRLP4 8
ADDRLP4 0
INDIRP4
CNSTI4 620
ADDP4
ASGNP4
ADDRLP4 8
INDIRP4
ADDRLP4 8
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $307
LABELV $306
LABELV $303
LABELV $299
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $301
ADDRLP4 4
INDIRI4
ADDRGP4 level+24
INDIRI4
LTI4 $298
LABELV $297
endproc AddTournamentQueue 12 0
export RemoveTournamentLoser
proc RemoveTournamentLoser 4 8
ADDRGP4 level+80
INDIRI4
CNSTI4 2
EQI4 $310
ADDRGP4 $309
JUMPV
LABELV $310
ADDRLP4 0
ADDRGP4 level+84+4
INDIRI4
ASGNI4
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 2
EQI4 $315
ADDRGP4 $309
JUMPV
LABELV $315
CNSTI4 804
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 g_entities
ADDP4
ARGP4
ADDRGP4 $317
ARGP4
ADDRGP4 SetTeam
CALLV
pop
LABELV $309
endproc RemoveTournamentLoser 4 8
export RemoveTournamentWinner
proc RemoveTournamentWinner 4 8
ADDRGP4 level+80
INDIRI4
CNSTI4 2
EQI4 $319
ADDRGP4 $318
JUMPV
LABELV $319
ADDRLP4 0
ADDRGP4 level+84
INDIRI4
ASGNI4
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 2
EQI4 $323
ADDRGP4 $318
JUMPV
LABELV $323
CNSTI4 804
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 g_entities
ADDP4
ARGP4
ADDRGP4 $317
ARGP4
ADDRGP4 SetTeam
CALLV
pop
LABELV $318
endproc RemoveTournamentWinner 4 8
export AdjustTournamentScores
proc AdjustTournamentScores 8 4
ADDRLP4 0
ADDRGP4 level+84
INDIRI4
ASGNI4
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 2
NEI4 $327
ADDRLP4 4
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 632
ADDP4
ASGNP4
ADDRLP4 4
INDIRP4
ADDRLP4 4
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 ClientUserinfoChanged
CALLV
pop
LABELV $327
ADDRLP4 0
ADDRGP4 level+84+4
INDIRI4
ASGNI4
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 2
NEI4 $331
ADDRLP4 4
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 636
ADDP4
ASGNP4
ADDRLP4 4
INDIRP4
ADDRLP4 4
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 ClientUserinfoChanged
CALLV
pop
LABELV $331
LABELV $325
endproc AdjustTournamentScores 8 4
export SortRanks
proc SortRanks 40 0
ADDRLP4 8
CNSTI4 776
ASGNI4
ADDRLP4 12
ADDRGP4 level
INDIRP4
ASGNP4
ADDRLP4 0
ADDRLP4 8
INDIRI4
ADDRFP4 0
INDIRP4
INDIRI4
MULI4
ADDRLP4 12
INDIRP4
ADDP4
ASGNP4
ADDRLP4 4
ADDRLP4 8
INDIRI4
ADDRFP4 4
INDIRP4
INDIRI4
MULI4
ADDRLP4 12
INDIRP4
ADDP4
ASGNP4
ADDRLP4 0
INDIRP4
CNSTI4 624
ADDP4
INDIRI4
CNSTI4 3
EQI4 $336
ADDRLP4 0
INDIRP4
CNSTI4 628
ADDP4
INDIRI4
CNSTI4 0
GEI4 $334
LABELV $336
CNSTI4 1
RETI4
ADDRGP4 $333
JUMPV
LABELV $334
ADDRLP4 4
INDIRP4
CNSTI4 624
ADDP4
INDIRI4
CNSTI4 3
EQI4 $339
ADDRLP4 4
INDIRP4
CNSTI4 628
ADDP4
INDIRI4
CNSTI4 0
GEI4 $337
LABELV $339
CNSTI4 -1
RETI4
ADDRGP4 $333
JUMPV
LABELV $337
ADDRLP4 0
INDIRP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 1
NEI4 $340
CNSTI4 1
RETI4
ADDRGP4 $333
JUMPV
LABELV $340
ADDRLP4 4
INDIRP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 1
NEI4 $342
CNSTI4 -1
RETI4
ADDRGP4 $333
JUMPV
LABELV $342
ADDRLP4 24
CNSTI4 616
ASGNI4
ADDRLP4 28
CNSTI4 3
ASGNI4
ADDRLP4 0
INDIRP4
ADDRLP4 24
INDIRI4
ADDP4
INDIRI4
ADDRLP4 28
INDIRI4
NEI4 $344
ADDRLP4 4
INDIRP4
ADDRLP4 24
INDIRI4
ADDP4
INDIRI4
ADDRLP4 28
INDIRI4
NEI4 $344
ADDRLP4 32
CNSTI4 620
ASGNI4
ADDRLP4 0
INDIRP4
ADDRLP4 32
INDIRI4
ADDP4
INDIRI4
ADDRLP4 4
INDIRP4
ADDRLP4 32
INDIRI4
ADDP4
INDIRI4
LEI4 $346
CNSTI4 -1
RETI4
ADDRGP4 $333
JUMPV
LABELV $346
ADDRLP4 36
CNSTI4 620
ASGNI4
ADDRLP4 0
INDIRP4
ADDRLP4 36
INDIRI4
ADDP4
INDIRI4
ADDRLP4 4
INDIRP4
ADDRLP4 36
INDIRI4
ADDP4
INDIRI4
GEI4 $348
CNSTI4 1
RETI4
ADDRGP4 $333
JUMPV
LABELV $348
CNSTI4 0
RETI4
ADDRGP4 $333
JUMPV
LABELV $344
ADDRLP4 0
INDIRP4
CNSTI4 616
ADDP4
INDIRI4
CNSTI4 3
NEI4 $350
CNSTI4 1
RETI4
ADDRGP4 $333
JUMPV
LABELV $350
ADDRLP4 4
INDIRP4
CNSTI4 616
ADDP4
INDIRI4
CNSTI4 3
NEI4 $352
CNSTI4 -1
RETI4
ADDRGP4 $333
JUMPV
LABELV $352
ADDRLP4 32
CNSTI4 248
ASGNI4
ADDRLP4 0
INDIRP4
ADDRLP4 32
INDIRI4
ADDP4
INDIRI4
ADDRLP4 4
INDIRP4
ADDRLP4 32
INDIRI4
ADDP4
INDIRI4
LEI4 $354
CNSTI4 -1
RETI4
ADDRGP4 $333
JUMPV
LABELV $354
ADDRLP4 36
CNSTI4 248
ASGNI4
ADDRLP4 0
INDIRP4
ADDRLP4 36
INDIRI4
ADDP4
INDIRI4
ADDRLP4 4
INDIRP4
ADDRLP4 36
INDIRI4
ADDP4
INDIRI4
GEI4 $356
CNSTI4 1
RETI4
ADDRGP4 $333
JUMPV
LABELV $356
CNSTI4 0
RETI4
LABELV $333
endproc SortRanks 40 0
export CalculateRanks
proc CalculateRanks 44 16
ADDRGP4 level+340
CNSTI4 -1
ASGNI4
ADDRGP4 level+344
CNSTI4 -1
ASGNI4
ADDRGP4 level+72
CNSTI4 0
ASGNI4
ADDRGP4 level+76
CNSTI4 0
ASGNI4
ADDRGP4 level+80
CNSTI4 0
ASGNI4
ADDRGP4 level+2420
CNSTI4 0
ASGNI4
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $368
JUMPV
LABELV $365
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 level+4496
ADDP4
CNSTI4 0
ASGNI4
LABELV $366
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $368
ADDRLP4 0
INDIRI4
CVIU4 4
CNSTU4 2
LTU4 $365
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $375
JUMPV
LABELV $372
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 0
EQI4 $377
ADDRGP4 level+72
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 level+84
ADDP4
ADDRLP4 0
INDIRI4
ASGNI4
ADDRLP4 20
ADDRGP4 level+72
ASGNP4
ADDRLP4 20
INDIRP4
ADDRLP4 20
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 616
ADDP4
INDIRI4
CNSTI4 3
EQI4 $382
ADDRLP4 24
ADDRGP4 level+76
ASGNP4
ADDRLP4 24
INDIRP4
ADDRLP4 24
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 2
NEI4 $385
ADDRLP4 28
ADDRGP4 level+80
ASGNP4
ADDRLP4 28
INDIRP4
ADDRLP4 28
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
CNSTI4 804
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 g_entities+208+216
ADDP4
INDIRI4
CNSTI4 8
BANDI4
CNSTI4 0
NEI4 $388
ADDRLP4 32
ADDRGP4 level+2420
ASGNP4
ADDRLP4 32
INDIRP4
ADDRLP4 32
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 616
ADDP4
INDIRI4
CNSTI4 1
NEI4 $393
ADDRLP4 36
ADDRGP4 level+4496
ASGNP4
ADDRLP4 36
INDIRP4
ADDRLP4 36
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRGP4 $394
JUMPV
LABELV $393
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 616
ADDP4
INDIRI4
CNSTI4 2
NEI4 $396
ADDRLP4 40
ADDRGP4 level+4496+4
ASGNP4
ADDRLP4 40
INDIRP4
ADDRLP4 40
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $396
LABELV $394
LABELV $388
ADDRGP4 level+340
INDIRI4
CNSTI4 -1
NEI4 $400
ADDRGP4 level+340
ADDRLP4 0
INDIRI4
ASGNI4
ADDRGP4 $401
JUMPV
LABELV $400
ADDRGP4 level+344
INDIRI4
CNSTI4 -1
NEI4 $404
ADDRGP4 level+344
ADDRLP4 0
INDIRI4
ASGNI4
LABELV $404
LABELV $401
LABELV $385
LABELV $382
LABELV $377
LABELV $373
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $375
ADDRLP4 0
INDIRI4
ADDRGP4 level+24
INDIRI4
LTI4 $372
ADDRGP4 level+84
ARGP4
ADDRGP4 level+72
INDIRI4
CVIU4 4
ARGU4
CNSTU4 4
ARGU4
ADDRGP4 SortRanks
ARGP4
ADDRGP4 qk_qsort
CALLV
pop
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 3
LTI4 $411
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $417
JUMPV
LABELV $414
ADDRLP4 4
CNSTI4 776
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 level+84
ADDP4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
ASGNP4
ADDRGP4 level+44+4
INDIRI4
ADDRGP4 level+44+8
INDIRI4
NEI4 $420
ADDRLP4 4
INDIRP4
CNSTI4 256
ADDP4
CNSTI4 2
ASGNI4
ADDRGP4 $421
JUMPV
LABELV $420
ADDRGP4 level+44+4
INDIRI4
ADDRGP4 level+44+8
INDIRI4
LEI4 $426
ADDRLP4 4
INDIRP4
CNSTI4 256
ADDP4
CNSTI4 0
ASGNI4
ADDRGP4 $427
JUMPV
LABELV $426
ADDRLP4 4
INDIRP4
CNSTI4 256
ADDP4
CNSTI4 1
ASGNI4
LABELV $427
LABELV $421
LABELV $415
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $417
ADDRLP4 0
INDIRI4
ADDRGP4 level+72
INDIRI4
LTI4 $414
ADDRGP4 $412
JUMPV
LABELV $411
ADDRLP4 12
CNSTI4 -1
ASGNI4
ADDRLP4 20
CNSTI4 0
ASGNI4
ADDRLP4 16
ADDRLP4 20
INDIRI4
ASGNI4
ADDRLP4 0
ADDRLP4 20
INDIRI4
ASGNI4
ADDRGP4 $435
JUMPV
LABELV $432
ADDRLP4 4
CNSTI4 776
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 level+84
ADDP4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
ASGNP4
ADDRLP4 8
ADDRLP4 4
INDIRP4
CNSTI4 248
ADDP4
INDIRI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 0
EQI4 $440
ADDRLP4 8
INDIRI4
ADDRLP4 16
INDIRI4
EQI4 $438
LABELV $440
ADDRLP4 12
ADDRLP4 0
INDIRI4
ASGNI4
CNSTI4 776
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 level+84
ADDP4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 256
ADDP4
ADDRLP4 12
INDIRI4
ASGNI4
ADDRGP4 $439
JUMPV
LABELV $438
CNSTI4 776
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 level+84-4
ADDP4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 256
ADDP4
ADDRLP4 12
INDIRI4
CNSTI4 16384
BORI4
ASGNI4
CNSTI4 776
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 level+84
ADDP4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 256
ADDP4
ADDRLP4 12
INDIRI4
CNSTI4 16384
BORI4
ASGNI4
LABELV $439
ADDRLP4 16
ADDRLP4 8
INDIRI4
ASGNI4
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 2
NEI4 $445
ADDRGP4 level+80
INDIRI4
CNSTI4 1
NEI4 $445
CNSTI4 776
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 level+84
ADDP4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 256
ADDP4
ADDRLP4 12
INDIRI4
CNSTI4 16384
BORI4
ASGNI4
LABELV $445
LABELV $433
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $435
ADDRLP4 0
INDIRI4
ADDRGP4 level+80
INDIRI4
LTI4 $432
LABELV $412
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 3
LTI4 $450
ADDRGP4 $453
ARGP4
ADDRGP4 level+44+4
INDIRI4
ARGI4
ADDRLP4 20
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 6
ARGI4
ADDRLP4 20
INDIRP4
ARGP4
ADDRGP4 trap_SetConfigstring
CALLV
pop
ADDRGP4 $453
ARGP4
ADDRGP4 level+44+8
INDIRI4
ARGI4
ADDRLP4 24
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 7
ARGI4
ADDRLP4 24
INDIRP4
ARGP4
ADDRGP4 trap_SetConfigstring
CALLV
pop
ADDRGP4 $451
JUMPV
LABELV $450
ADDRGP4 level+72
INDIRI4
CNSTI4 0
NEI4 $458
ADDRGP4 $453
ARGP4
CNSTI4 -9999
ARGI4
ADDRLP4 20
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 6
ARGI4
ADDRLP4 20
INDIRP4
ARGP4
ADDRGP4 trap_SetConfigstring
CALLV
pop
ADDRGP4 $453
ARGP4
CNSTI4 -9999
ARGI4
ADDRLP4 24
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 7
ARGI4
ADDRLP4 24
INDIRP4
ARGP4
ADDRGP4 trap_SetConfigstring
CALLV
pop
ADDRGP4 $459
JUMPV
LABELV $458
ADDRGP4 level+72
INDIRI4
CNSTI4 1
NEI4 $461
ADDRGP4 $453
ARGP4
CNSTI4 776
ADDRGP4 level+84
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 248
ADDP4
INDIRI4
ARGI4
ADDRLP4 20
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 6
ARGI4
ADDRLP4 20
INDIRP4
ARGP4
ADDRGP4 trap_SetConfigstring
CALLV
pop
ADDRGP4 $453
ARGP4
CNSTI4 -9999
ARGI4
ADDRLP4 24
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 7
ARGI4
ADDRLP4 24
INDIRP4
ARGP4
ADDRGP4 trap_SetConfigstring
CALLV
pop
ADDRGP4 $462
JUMPV
LABELV $461
ADDRGP4 $453
ARGP4
CNSTI4 776
ADDRGP4 level+84
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 248
ADDP4
INDIRI4
ARGI4
ADDRLP4 20
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 6
ARGI4
ADDRLP4 20
INDIRP4
ARGP4
ADDRGP4 trap_SetConfigstring
CALLV
pop
ADDRGP4 $453
ARGP4
CNSTI4 776
ADDRGP4 level+84+4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 248
ADDP4
INDIRI4
ARGI4
ADDRLP4 24
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 7
ARGI4
ADDRLP4 24
INDIRP4
ARGP4
ADDRGP4 trap_SetConfigstring
CALLV
pop
LABELV $462
LABELV $459
LABELV $451
ADDRGP4 CheckExitRules
CALLV
pop
ADDRGP4 level+9128
INDIRI4
CNSTI4 0
EQI4 $468
ADDRGP4 SendScoreboardMessageToAllClients
CALLV
pop
LABELV $468
LABELV $358
endproc CalculateRanks 44 16
export SendScoreboardMessageToAllClients
proc SendScoreboardMessageToAllClients 4 4
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $475
JUMPV
LABELV $472
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 2
NEI4 $477
CNSTI4 804
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 g_entities
ADDP4
ARGP4
ADDRGP4 DeathmatchScoreboardMessage
CALLV
pop
LABELV $477
LABELV $473
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $475
ADDRLP4 0
INDIRI4
ADDRGP4 level+24
INDIRI4
LTI4 $472
LABELV $471
endproc SendScoreboardMessageToAllClients 4 4
export MoveClientToIntermission
proc MoveClientToIntermission 0 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 624
ADDP4
INDIRI4
CNSTI4 2
NEI4 $480
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 StopFollowing
CALLV
pop
LABELV $480
ADDRGP4 FindIntermissionPoint
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 92
ADDP4
ADDRGP4 level+9144
INDIRB
ASGNB 12
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 20
ADDP4
ADDRGP4 level+9144
INDIRB
ASGNB 12
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 152
ADDP4
ADDRGP4 level+9156
INDIRB
ASGNB 12
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 4
ADDP4
CNSTI4 5
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 312
ADDP4
ARGP4
CNSTI4 0
ARGI4
CNSTU4 64
ARGU4
ADDRGP4 qk_memset
CALLP4
pop
ADDRFP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 104
ADDP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 4
ADDP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 160
ADDP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 156
ADDP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 180
ADDP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 460
ADDP4
CNSTI4 0
ASGNI4
LABELV $479
endproc MoveClientToIntermission 0 12
export FindIntermissionPoint
proc FindIntermissionPoint 32 16
CNSTP4 0
ARGP4
CNSTI4 524
ARGI4
ADDRGP4 $486
ARGP4
ADDRLP4 20
ADDRGP4 G_Find
CALLP4
ASGNP4
ADDRLP4 0
ADDRLP4 20
INDIRP4
ASGNP4
ADDRLP4 0
INDIRP4
CVPU4 4
CNSTU4 0
NEU4 $487
ADDRGP4 vec3_origin
ARGP4
ADDRGP4 level+9144
ARGP4
ADDRGP4 level+9156
ARGP4
CNSTI4 0
ARGI4
ADDRGP4 SelectSpawnPoint
CALLP4
pop
ADDRGP4 $488
JUMPV
LABELV $487
ADDRGP4 level+9144
ADDRLP4 0
INDIRP4
CNSTI4 92
ADDP4
INDIRB
ASGNB 12
ADDRGP4 level+9156
ADDRLP4 0
INDIRP4
CNSTI4 116
ADDP4
INDIRB
ASGNB 12
ADDRLP4 0
INDIRP4
CNSTI4 644
ADDP4
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $493
ADDRLP4 0
INDIRP4
CNSTI4 644
ADDP4
INDIRP4
ARGP4
ADDRLP4 24
ADDRGP4 G_PickTarget
CALLP4
ASGNP4
ADDRLP4 4
ADDRLP4 24
INDIRP4
ASGNP4
ADDRLP4 4
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $495
ADDRLP4 28
ADDRLP4 4
INDIRP4
ASGNP4
ADDRLP4 8
ADDRLP4 28
INDIRP4
CNSTI4 92
ADDP4
INDIRF4
ADDRGP4 level+9144
INDIRF4
SUBF4
ASGNF4
ADDRLP4 8+4
ADDRLP4 28
INDIRP4
CNSTI4 96
ADDP4
INDIRF4
ADDRGP4 level+9144+4
INDIRF4
SUBF4
ASGNF4
ADDRLP4 8+8
ADDRLP4 4
INDIRP4
CNSTI4 100
ADDP4
INDIRF4
ADDRGP4 level+9144+8
INDIRF4
SUBF4
ASGNF4
ADDRLP4 8
ARGP4
ADDRGP4 level+9156
ARGP4
ADDRGP4 vectoangles
CALLV
pop
LABELV $495
LABELV $493
LABELV $488
LABELV $485
endproc FindIntermissionPoint 32 16
export BeginIntermission
proc BeginIntermission 8 4
ADDRGP4 level+9128
INDIRI4
CNSTI4 0
EQI4 $506
ADDRGP4 $505
JUMPV
LABELV $506
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 1
NEI4 $509
ADDRGP4 AdjustTournamentScores
CALLV
pop
LABELV $509
ADDRGP4 level+9128
ADDRGP4 level+32
INDIRI4
ASGNI4
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRGP4 $517
JUMPV
LABELV $514
ADDRLP4 0
CNSTI4 804
ADDRLP4 4
INDIRI4
MULI4
ADDRGP4 g_entities
ADDP4
ASGNP4
ADDRLP4 0
INDIRP4
CNSTI4 520
ADDP4
INDIRI4
CNSTI4 0
NEI4 $519
ADDRGP4 $515
JUMPV
LABELV $519
ADDRLP4 0
INDIRP4
CNSTI4 728
ADDP4
INDIRI4
CNSTI4 0
GTI4 $521
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 ClientRespawn
CALLV
pop
LABELV $521
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 MoveClientToIntermission
CALLV
pop
LABELV $515
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $517
ADDRLP4 4
INDIRI4
ADDRGP4 level+24
INDIRI4
LTI4 $514
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 2
NEI4 $523
ADDRGP4 UpdateTournamentInfo
CALLV
pop
ADDRGP4 SpawnModelsOnVictoryPads
CALLV
pop
LABELV $523
ADDRGP4 SendScoreboardMessageToAllClients
CALLV
pop
LABELV $505
endproc BeginIntermission 8 4
export ExitLevel
proc ExitLevel 2064 12
ADDRGP4 BotInterbreedEndMatch
CALLV
pop
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 1
NEI4 $527
ADDRGP4 level+68
INDIRI4
CNSTI4 0
NEI4 $526
ADDRGP4 RemoveTournamentLoser
CALLV
pop
CNSTI4 2
ARGI4
ADDRGP4 $533
ARGP4
ADDRGP4 trap_SendConsoleCommand
CALLV
pop
ADDRGP4 level+68
CNSTI4 1
ASGNI4
ADDRGP4 level+9132
CNSTP4 0
ASGNP4
ADDRGP4 level+9128
CNSTI4 0
ASGNI4
ADDRGP4 $526
JUMPV
LABELV $527
ADDRGP4 $537
ARGP4
ADDRLP4 8
ARGP4
CNSTI4 1024
ARGI4
ADDRGP4 trap_Cvar_VariableStringBuffer
CALLV
pop
ADDRGP4 $538
ARGP4
ADDRLP4 1032
ARGP4
CNSTI4 1024
ARGI4
ADDRGP4 trap_Cvar_VariableStringBuffer
CALLV
pop
ADDRLP4 8
ARGP4
ADDRGP4 $541
ARGP4
ADDRLP4 2056
ADDRGP4 Q_stricmp
CALLI4
ASGNI4
ADDRLP4 2056
INDIRI4
CNSTI4 0
NEI4 $539
ADDRLP4 1032
ARGP4
ADDRGP4 $55
ARGP4
ADDRLP4 2060
ADDRGP4 Q_stricmp
CALLI4
ASGNI4
ADDRLP4 2060
INDIRI4
CNSTI4 0
EQI4 $539
ADDRGP4 $537
ARGP4
ADDRGP4 $542
ARGP4
ADDRGP4 trap_Cvar_Set
CALLV
pop
CNSTI4 2
ARGI4
ADDRGP4 $543
ARGP4
ADDRGP4 trap_SendConsoleCommand
CALLV
pop
ADDRGP4 $540
JUMPV
LABELV $539
CNSTI4 2
ARGI4
ADDRGP4 $544
ARGP4
ADDRGP4 trap_SendConsoleCommand
CALLV
pop
LABELV $540
ADDRGP4 level+9132
CNSTP4 0
ASGNP4
ADDRGP4 level+9128
CNSTI4 0
ASGNI4
ADDRGP4 level+44+4
CNSTI4 0
ASGNI4
ADDRGP4 level+44+8
CNSTI4 0
ASGNI4
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $554
JUMPV
LABELV $551
ADDRLP4 4
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
ASGNP4
ADDRLP4 4
INDIRP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 2
EQI4 $556
ADDRGP4 $552
JUMPV
LABELV $556
ADDRLP4 4
INDIRP4
CNSTI4 248
ADDP4
CNSTI4 0
ASGNI4
LABELV $552
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $554
ADDRLP4 0
INDIRI4
ADDRGP4 g_maxclients+12
INDIRI4
LTI4 $551
ADDRGP4 G_WriteSessionData
CALLV
pop
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $561
JUMPV
LABELV $558
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 2
NEI4 $563
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 468
ADDP4
CNSTI4 1
ASGNI4
LABELV $563
LABELV $559
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $561
ADDRLP4 0
INDIRI4
ADDRGP4 g_maxclients+12
INDIRI4
LTI4 $558
LABELV $526
endproc ExitLevel 2064 12
export G_LogPrintf
proc G_LogPrintf 1068 24
ADDRLP4 1024
ADDRGP4 level+32
INDIRI4
ADDRGP4 level+40
INDIRI4
SUBI4
CNSTI4 1000
DIVI4
ASGNI4
ADDRLP4 1044
CNSTI4 60
ASGNI4
ADDRLP4 1032
ADDRLP4 1024
INDIRI4
ADDRLP4 1044
INDIRI4
DIVI4
ASGNI4
ADDRLP4 1024
ADDRLP4 1024
INDIRI4
ADDRLP4 1044
INDIRI4
ADDRLP4 1032
INDIRI4
MULI4
SUBI4
ASGNI4
ADDRLP4 1056
CNSTI4 10
ASGNI4
ADDRLP4 1036
ADDRLP4 1024
INDIRI4
ADDRLP4 1056
INDIRI4
DIVI4
ASGNI4
ADDRLP4 1024
ADDRLP4 1024
INDIRI4
ADDRLP4 1056
INDIRI4
ADDRLP4 1036
INDIRI4
MULI4
SUBI4
ASGNI4
ADDRLP4 0
ARGP4
CNSTI4 1024
ARGI4
ADDRGP4 $568
ARGP4
ADDRLP4 1032
INDIRI4
ARGI4
ADDRLP4 1036
INDIRI4
ARGI4
ADDRLP4 1024
INDIRI4
ARGI4
ADDRGP4 Com_sprintf
CALLI4
pop
ADDRLP4 1028
ADDRFP4 0+4
ASGNP4
ADDRLP4 0+7
ARGP4
CNSTU4 1017
ARGU4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 1028
INDIRP4
ARGP4
ADDRGP4 qk_vsnprintf
CALLI4
pop
ADDRLP4 1028
CNSTP4 0
ASGNP4
ADDRGP4 g_dedicated+12
INDIRI4
CNSTI4 0
EQI4 $571
ADDRGP4 $574
ARGP4
ADDRLP4 0+7
ARGP4
ADDRGP4 G_Printf
CALLV
pop
LABELV $571
ADDRGP4 level+20
INDIRI4
CNSTI4 0
NEI4 $576
ADDRGP4 $565
JUMPV
LABELV $576
ADDRLP4 0
ARGP4
ADDRLP4 1064
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 0
ARGP4
ADDRLP4 1064
INDIRU4
CVUI4 4
ARGI4
ADDRGP4 level+20
INDIRI4
ARGI4
ADDRGP4 trap_FS_Write
CALLV
pop
LABELV $565
endproc G_LogPrintf 1068 24
export LogExit
proc LogExit 24 20
ADDRGP4 $581
ARGP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 G_LogPrintf
CALLV
pop
ADDRGP4 level+9124
ADDRGP4 level+32
INDIRI4
ASGNI4
CNSTI4 22
ARGI4
ADDRGP4 $83
ARGP4
ADDRGP4 trap_SetConfigstring
CALLV
pop
ADDRLP4 8
ADDRGP4 level+72
INDIRI4
ASGNI4
ADDRLP4 8
INDIRI4
CNSTI4 32
LEI4 $585
ADDRLP4 8
CNSTI4 32
ASGNI4
LABELV $585
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 3
LTI4 $587
ADDRGP4 $590
ARGP4
ADDRGP4 level+44+4
INDIRI4
ARGI4
ADDRGP4 level+44+8
INDIRI4
ARGI4
ADDRGP4 G_LogPrintf
CALLV
pop
LABELV $587
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRGP4 $598
JUMPV
LABELV $595
ADDRLP4 0
CNSTI4 776
ADDRLP4 4
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 level+84
ADDP4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
ASGNP4
ADDRLP4 0
INDIRP4
CNSTI4 616
ADDP4
INDIRI4
CNSTI4 3
NEI4 $600
ADDRGP4 $596
JUMPV
LABELV $600
ADDRLP4 0
INDIRP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 1
NEI4 $602
ADDRGP4 $596
JUMPV
LABELV $602
ADDRLP4 0
INDIRP4
CNSTI4 452
ADDP4
INDIRI4
CNSTI4 999
GEI4 $605
ADDRLP4 16
ADDRLP4 0
INDIRP4
CNSTI4 452
ADDP4
INDIRI4
ASGNI4
ADDRGP4 $606
JUMPV
LABELV $605
ADDRLP4 16
CNSTI4 999
ASGNI4
LABELV $606
ADDRLP4 12
ADDRLP4 16
INDIRI4
ASGNI4
ADDRGP4 $607
ARGP4
ADDRLP4 0
INDIRP4
CNSTI4 248
ADDP4
INDIRI4
ARGI4
ADDRLP4 12
INDIRI4
ARGI4
ADDRLP4 4
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 level+84
ADDP4
INDIRI4
ARGI4
ADDRLP4 0
INDIRP4
CNSTI4 512
ADDP4
ARGP4
ADDRGP4 G_LogPrintf
CALLV
pop
LABELV $596
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $598
ADDRLP4 4
INDIRI4
ADDRLP4 8
INDIRI4
LTI4 $595
LABELV $580
endproc LogExit 24 20
export CheckIntermissionExit
proc CheckIntermissionExit 28 0
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 2
NEI4 $610
ADDRGP4 $609
JUMPV
LABELV $610
ADDRLP4 24
CNSTI4 0
ASGNI4
ADDRLP4 16
ADDRLP4 24
INDIRI4
ASGNI4
ADDRLP4 20
ADDRLP4 24
INDIRI4
ASGNI4
ADDRLP4 8
ADDRLP4 24
INDIRI4
ASGNI4
ADDRLP4 12
ADDRLP4 24
INDIRI4
ASGNI4
ADDRLP4 0
ADDRLP4 24
INDIRI4
ASGNI4
ADDRGP4 $616
JUMPV
LABELV $613
ADDRLP4 4
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
ASGNP4
ADDRLP4 4
INDIRP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 2
EQI4 $618
ADDRGP4 $614
JUMPV
LABELV $618
CNSTI4 804
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 g_entities+208+216
ADDP4
INDIRI4
CNSTI4 8
BANDI4
CNSTI4 0
EQI4 $620
ADDRGP4 $614
JUMPV
LABELV $620
ADDRLP4 12
ADDRLP4 12
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 4
INDIRP4
CNSTI4 644
ADDP4
INDIRI4
CNSTI4 0
EQI4 $624
ADDRLP4 16
ADDRLP4 16
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 16
GEI4 $625
ADDRLP4 8
ADDRLP4 8
INDIRI4
CNSTI4 1
ADDRLP4 0
INDIRI4
LSHI4
BORI4
ASGNI4
ADDRGP4 $625
JUMPV
LABELV $624
ADDRLP4 20
ADDRLP4 20
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $625
LABELV $614
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $616
ADDRLP4 0
INDIRI4
ADDRGP4 g_maxclients+12
INDIRI4
LTI4 $613
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $631
JUMPV
LABELV $628
ADDRLP4 4
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
ASGNP4
ADDRLP4 4
INDIRP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 2
EQI4 $633
ADDRGP4 $629
JUMPV
LABELV $633
ADDRLP4 4
INDIRP4
CNSTI4 204
ADDP4
ADDRLP4 8
INDIRI4
ASGNI4
LABELV $629
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $631
ADDRLP4 0
INDIRI4
ADDRGP4 g_maxclients+12
INDIRI4
LTI4 $628
ADDRGP4 level+32
INDIRI4
ADDRGP4 level+9128
INDIRI4
CNSTI4 5000
ADDI4
GEI4 $635
ADDRGP4 $609
JUMPV
LABELV $635
ADDRLP4 12
INDIRI4
CNSTI4 0
LEI4 $639
ADDRLP4 16
INDIRI4
CNSTI4 0
NEI4 $641
ADDRGP4 level+9136
CNSTI4 0
ASGNI4
ADDRGP4 $609
JUMPV
LABELV $641
ADDRLP4 20
INDIRI4
CNSTI4 0
NEI4 $644
ADDRGP4 ExitLevel
CALLV
pop
ADDRGP4 $609
JUMPV
LABELV $644
LABELV $639
ADDRGP4 level+9136
INDIRI4
CNSTI4 0
NEI4 $646
ADDRGP4 level+9136
CNSTI4 1
ASGNI4
ADDRGP4 level+9140
ADDRGP4 level+32
INDIRI4
ASGNI4
LABELV $646
ADDRGP4 level+32
INDIRI4
ADDRGP4 level+9140
INDIRI4
CNSTI4 10000
ADDI4
GEI4 $652
ADDRGP4 $609
JUMPV
LABELV $652
ADDRGP4 ExitLevel
CALLV
pop
LABELV $609
endproc CheckIntermissionExit 28 0
export ScoreIsTied
proc ScoreIsTied 24 0
ADDRGP4 level+80
INDIRI4
CNSTI4 2
GEI4 $657
CNSTI4 0
RETI4
ADDRGP4 $656
JUMPV
LABELV $657
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 3
LTI4 $660
ADDRGP4 level+44+4
INDIRI4
ADDRGP4 level+44+8
INDIRI4
NEI4 $668
ADDRLP4 8
CNSTI4 1
ASGNI4
ADDRGP4 $669
JUMPV
LABELV $668
ADDRLP4 8
CNSTI4 0
ASGNI4
LABELV $669
ADDRLP4 8
INDIRI4
RETI4
ADDRGP4 $656
JUMPV
LABELV $660
ADDRLP4 12
CNSTI4 776
ASGNI4
ADDRLP4 16
ADDRGP4 level
INDIRP4
ASGNP4
ADDRLP4 20
CNSTI4 248
ASGNI4
ADDRLP4 0
ADDRLP4 12
INDIRI4
ADDRGP4 level+84
INDIRI4
MULI4
ADDRLP4 16
INDIRP4
ADDP4
ADDRLP4 20
INDIRI4
ADDP4
INDIRI4
ASGNI4
ADDRLP4 4
ADDRLP4 12
INDIRI4
ADDRGP4 level+84+4
INDIRI4
MULI4
ADDRLP4 16
INDIRP4
ADDP4
ADDRLP4 20
INDIRI4
ADDP4
INDIRI4
ASGNI4
ADDRLP4 0
INDIRI4
ADDRLP4 4
INDIRI4
NEI4 $674
ADDRLP4 8
CNSTI4 1
ASGNI4
ADDRGP4 $675
JUMPV
LABELV $674
ADDRLP4 8
CNSTI4 0
ASGNI4
LABELV $675
ADDRLP4 8
INDIRI4
RETI4
LABELV $656
endproc ScoreIsTied 24 0
export CheckExitRules
proc CheckExitRules 20 8
ADDRGP4 level+9128
INDIRI4
CNSTI4 0
EQI4 $677
ADDRGP4 CheckIntermissionExit
CALLV
pop
ADDRGP4 $676
JUMPV
LABELV $677
ADDRGP4 level+9124
INDIRI4
CNSTI4 0
EQI4 $680
ADDRGP4 level+32
INDIRI4
ADDRGP4 level+9124
INDIRI4
SUBI4
CNSTI4 1000
LTI4 $676
ADDRGP4 level+9124
CNSTI4 0
ASGNI4
ADDRGP4 BeginIntermission
CALLV
pop
ADDRGP4 $676
JUMPV
LABELV $680
ADDRLP4 8
ADDRGP4 ScoreIsTied
CALLI4
ASGNI4
ADDRLP4 8
INDIRI4
CNSTI4 0
EQI4 $688
ADDRGP4 $676
JUMPV
LABELV $688
ADDRLP4 12
CNSTI4 0
ASGNI4
ADDRGP4 g_timelimit+12
INDIRI4
ADDRLP4 12
INDIRI4
EQI4 $690
ADDRGP4 level+16
INDIRI4
ADDRLP4 12
INDIRI4
NEI4 $690
ADDRGP4 level+32
INDIRI4
ADDRGP4 level+40
INDIRI4
SUBI4
CNSTI4 60000
ADDRGP4 g_timelimit+12
INDIRI4
MULI4
LTI4 $694
CNSTI4 -1
ARGI4
ADDRGP4 $699
ARGP4
ADDRGP4 trap_SendServerCommand
CALLV
pop
ADDRGP4 $700
ARGP4
ADDRGP4 LogExit
CALLV
pop
ADDRGP4 $676
JUMPV
LABELV $694
LABELV $690
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 4
GEI4 $701
ADDRGP4 g_fraglimit+12
INDIRI4
CNSTI4 0
EQI4 $701
ADDRGP4 level+44+4
INDIRI4
ADDRGP4 g_fraglimit+12
INDIRI4
LTI4 $705
CNSTI4 -1
ARGI4
ADDRGP4 $710
ARGP4
ADDRGP4 trap_SendServerCommand
CALLV
pop
ADDRGP4 $711
ARGP4
ADDRGP4 LogExit
CALLV
pop
ADDRGP4 $676
JUMPV
LABELV $705
ADDRGP4 level+44+8
INDIRI4
ADDRGP4 g_fraglimit+12
INDIRI4
LTI4 $712
CNSTI4 -1
ARGI4
ADDRGP4 $717
ARGP4
ADDRGP4 trap_SendServerCommand
CALLV
pop
ADDRGP4 $711
ARGP4
ADDRGP4 LogExit
CALLV
pop
ADDRGP4 $676
JUMPV
LABELV $712
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRGP4 $721
JUMPV
LABELV $718
ADDRLP4 0
CNSTI4 776
ADDRLP4 4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
ASGNP4
ADDRLP4 0
INDIRP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 2
EQI4 $723
ADDRGP4 $719
JUMPV
LABELV $723
ADDRLP4 0
INDIRP4
CNSTI4 616
ADDP4
INDIRI4
CNSTI4 0
EQI4 $725
ADDRGP4 $719
JUMPV
LABELV $725
ADDRLP4 0
INDIRP4
CNSTI4 248
ADDP4
INDIRI4
ADDRGP4 g_fraglimit+12
INDIRI4
LTI4 $727
ADDRGP4 $711
ARGP4
ADDRGP4 LogExit
CALLV
pop
ADDRGP4 $730
ARGP4
ADDRLP4 0
INDIRP4
CNSTI4 512
ADDP4
ARGP4
ADDRLP4 16
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 -1
ARGI4
ADDRLP4 16
INDIRP4
ARGP4
ADDRGP4 trap_SendServerCommand
CALLV
pop
ADDRGP4 $676
JUMPV
LABELV $727
LABELV $719
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $721
ADDRLP4 4
INDIRI4
ADDRGP4 g_maxclients+12
INDIRI4
LTI4 $718
LABELV $701
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 4
LTI4 $731
ADDRGP4 g_capturelimit+12
INDIRI4
CNSTI4 0
EQI4 $731
ADDRGP4 level+44+4
INDIRI4
ADDRGP4 g_capturelimit+12
INDIRI4
LTI4 $735
CNSTI4 -1
ARGI4
ADDRGP4 $740
ARGP4
ADDRGP4 trap_SendServerCommand
CALLV
pop
ADDRGP4 $741
ARGP4
ADDRGP4 LogExit
CALLV
pop
ADDRGP4 $676
JUMPV
LABELV $735
ADDRGP4 level+44+8
INDIRI4
ADDRGP4 g_capturelimit+12
INDIRI4
LTI4 $742
CNSTI4 -1
ARGI4
ADDRGP4 $747
ARGP4
ADDRGP4 trap_SendServerCommand
CALLV
pop
ADDRGP4 $741
ARGP4
ADDRGP4 LogExit
CALLV
pop
LABELV $742
LABELV $731
LABELV $676
endproc CheckExitRules 20 8
export CheckTournament
proc CheckTournament 32 8
ADDRGP4 level+80
INDIRI4
CNSTI4 0
NEI4 $749
ADDRGP4 $748
JUMPV
LABELV $749
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 1
NEI4 $752
ADDRGP4 level+80
INDIRI4
CNSTI4 2
GEI4 $755
ADDRGP4 AddTournamentPlayer
CALLV
pop
LABELV $755
ADDRGP4 level+80
INDIRI4
CNSTI4 2
EQI4 $758
ADDRGP4 level+16
INDIRI4
CNSTI4 -1
EQI4 $748
ADDRGP4 level+16
CNSTI4 -1
ASGNI4
ADDRGP4 $453
ARGP4
ADDRGP4 level+16
INDIRI4
ARGI4
ADDRLP4 0
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 5
ARGI4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 trap_SetConfigstring
CALLV
pop
ADDRGP4 $766
ARGP4
ADDRGP4 G_LogPrintf
CALLV
pop
ADDRGP4 $748
JUMPV
LABELV $758
ADDRGP4 level+16
INDIRI4
CNSTI4 0
NEI4 $767
ADDRGP4 $748
JUMPV
LABELV $767
ADDRGP4 g_warmup+4
INDIRI4
ADDRGP4 level+352
INDIRI4
EQI4 $770
ADDRGP4 level+352
ADDRGP4 g_warmup+4
INDIRI4
ASGNI4
ADDRGP4 level+16
CNSTI4 -1
ASGNI4
LABELV $770
ADDRGP4 level+16
INDIRI4
CNSTI4 0
GEI4 $777
ADDRGP4 level+80
INDIRI4
CNSTI4 2
NEI4 $748
ADDRGP4 g_warmup+12
INDIRI4
CNSTI4 1
LEI4 $783
ADDRLP4 0
CNSTI4 1000
ASGNI4
ADDRGP4 level+16
ADDRGP4 level+32
INDIRI4
ADDRLP4 0
INDIRI4
ADDRGP4 g_warmup+12
INDIRI4
MULI4
ADDRLP4 0
INDIRI4
SUBI4
ADDI4
ASGNI4
ADDRGP4 $784
JUMPV
LABELV $783
ADDRGP4 level+16
CNSTI4 0
ASGNI4
LABELV $784
ADDRGP4 $453
ARGP4
ADDRGP4 level+16
INDIRI4
ARGI4
ADDRLP4 0
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 5
ARGI4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 trap_SetConfigstring
CALLV
pop
ADDRGP4 $748
JUMPV
LABELV $777
ADDRGP4 level+32
INDIRI4
ADDRGP4 level+16
INDIRI4
LEI4 $753
ADDRLP4 0
ADDRGP4 level+16
ASGNP4
ADDRLP4 0
INDIRP4
ADDRLP4 0
INDIRP4
INDIRI4
CNSTI4 10000
ADDI4
ASGNI4
ADDRGP4 $60
ARGP4
ADDRGP4 $83
ARGP4
ADDRGP4 trap_Cvar_Set
CALLV
pop
CNSTI4 2
ARGI4
ADDRGP4 $533
ARGP4
ADDRGP4 trap_SendConsoleCommand
CALLV
pop
ADDRGP4 level+68
CNSTI4 1
ASGNI4
ADDRGP4 $748
JUMPV
LABELV $752
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 2
EQI4 $797
ADDRGP4 level+16
INDIRI4
CNSTI4 0
EQI4 $797
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 g_gametype+12
INDIRI4
CNSTI4 3
LEI4 $801
CNSTI4 -1
ARGI4
CNSTI4 2
ARGI4
ADDRLP4 20
ADDRGP4 TeamCount
CALLI4
ASGNI4
ADDRLP4 4+8
ADDRLP4 20
INDIRI4
ASGNI4
CNSTI4 -1
ARGI4
CNSTI4 1
ARGI4
ADDRLP4 24
ADDRGP4 TeamCount
CALLI4
ASGNI4
ADDRLP4 4+4
ADDRLP4 24
INDIRI4
ASGNI4
ADDRLP4 28
CNSTI4 1
ASGNI4
ADDRLP4 4+4
INDIRI4
ADDRLP4 28
INDIRI4
LTI4 $810
ADDRLP4 4+8
INDIRI4
ADDRLP4 28
INDIRI4
GEI4 $802
LABELV $810
ADDRLP4 0
CNSTI4 1
ASGNI4
ADDRGP4 $802
JUMPV
LABELV $801
ADDRGP4 level+80
INDIRI4
CNSTI4 2
GEI4 $811
ADDRLP4 0
CNSTI4 1
ASGNI4
LABELV $811
LABELV $802
ADDRLP4 0
INDIRI4
CNSTI4 0
EQI4 $814
ADDRGP4 level+16
INDIRI4
CNSTI4 -1
EQI4 $748
ADDRGP4 level+16
CNSTI4 -1
ASGNI4
ADDRGP4 $453
ARGP4
ADDRGP4 level+16
INDIRI4
ARGI4
ADDRLP4 20
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 5
ARGI4
ADDRLP4 20
INDIRP4
ARGP4
ADDRGP4 trap_SetConfigstring
CALLV
pop
ADDRGP4 $766
ARGP4
ADDRGP4 G_LogPrintf
CALLV
pop
ADDRGP4 $748
JUMPV
LABELV $814
ADDRGP4 level+16
INDIRI4
CNSTI4 0
NEI4 $821
ADDRGP4 $748
JUMPV
LABELV $821
ADDRGP4 g_warmup+4
INDIRI4
ADDRGP4 level+352
INDIRI4
EQI4 $824
ADDRGP4 level+352
ADDRGP4 g_warmup+4
INDIRI4
ASGNI4
ADDRGP4 level+16
CNSTI4 -1
ASGNI4
LABELV $824
ADDRGP4 level+16
INDIRI4
CNSTI4 0
GEI4 $831
ADDRGP4 g_warmup+12
INDIRI4
CNSTI4 1
LEI4 $834
ADDRLP4 20
CNSTI4 1000
ASGNI4
ADDRGP4 level+16
ADDRGP4 level+32
INDIRI4
ADDRLP4 20
INDIRI4
ADDRGP4 g_warmup+12
INDIRI4
MULI4
ADDRLP4 20
INDIRI4
SUBI4
ADDI4
ASGNI4
ADDRGP4 $835
JUMPV
LABELV $834
ADDRGP4 level+16
CNSTI4 0
ASGNI4
LABELV $835
ADDRGP4 $453
ARGP4
ADDRGP4 level+16
INDIRI4
ARGI4
ADDRLP4 20
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 5
ARGI4
ADDRLP4 20
INDIRP4
ARGP4
ADDRGP4 trap_SetConfigstring
CALLV
pop
ADDRGP4 $748
JUMPV
LABELV $831
ADDRGP4 level+32
INDIRI4
ADDRGP4 level+16
INDIRI4
LEI4 $842
ADDRLP4 20
ADDRGP4 level+16
ASGNP4
ADDRLP4 20
INDIRP4
ADDRLP4 20
INDIRP4
INDIRI4
CNSTI4 10000
ADDI4
ASGNI4
ADDRGP4 $60
ARGP4
ADDRGP4 $83
ARGP4
ADDRGP4 trap_Cvar_Set
CALLV
pop
CNSTI4 2
ARGI4
ADDRGP4 $533
ARGP4
ADDRGP4 trap_SendConsoleCommand
CALLV
pop
ADDRGP4 level+68
CNSTI4 1
ASGNI4
LABELV $842
LABELV $797
LABELV $753
LABELV $748
endproc CheckTournament 32 8
export CheckVote
proc CheckVote 4 8
ADDRGP4 level+2408
INDIRI4
CNSTI4 0
EQI4 $849
ADDRGP4 level+2408
INDIRI4
ADDRGP4 level+32
INDIRI4
GEI4 $849
ADDRGP4 level+2408
CNSTI4 0
ASGNI4
ADDRGP4 $855
ARGP4
ADDRGP4 level+356
ARGP4
ADDRLP4 0
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 2
ARGI4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 trap_SendConsoleCommand
CALLV
pop
LABELV $849
ADDRGP4 level+2404
INDIRI4
CNSTI4 0
NEI4 $857
ADDRGP4 $848
JUMPV
LABELV $857
ADDRGP4 level+32
INDIRI4
ADDRGP4 level+2404
INDIRI4
SUBI4
CNSTI4 30000
LTI4 $860
CNSTI4 -1
ARGI4
ADDRGP4 $864
ARGP4
ADDRGP4 trap_SendServerCommand
CALLV
pop
ADDRGP4 $861
JUMPV
LABELV $860
ADDRGP4 level+2412
INDIRI4
ADDRGP4 level+2420
INDIRI4
CNSTI4 2
DIVI4
LEI4 $865
CNSTI4 -1
ARGI4
ADDRGP4 $869
ARGP4
ADDRGP4 trap_SendServerCommand
CALLV
pop
ADDRGP4 level+2408
ADDRGP4 level+32
INDIRI4
CNSTI4 3000
ADDI4
ASGNI4
ADDRGP4 $866
JUMPV
LABELV $865
ADDRGP4 level+2416
INDIRI4
ADDRGP4 level+2420
INDIRI4
CNSTI4 2
DIVI4
LTI4 $848
CNSTI4 -1
ARGI4
ADDRGP4 $864
ARGP4
ADDRGP4 trap_SendServerCommand
CALLV
pop
LABELV $873
LABELV $866
LABELV $861
ADDRGP4 level+2404
CNSTI4 0
ASGNI4
CNSTI4 8
ARGI4
ADDRGP4 $55
ARGP4
ADDRGP4 trap_SetConfigstring
CALLV
pop
LABELV $848
endproc CheckVote 4 8
export PrintTeam
proc PrintTeam 4 8
ADDRFP4 0
ADDRFP4 0
INDIRI4
ASGNI4
ADDRFP4 4
ADDRFP4 4
INDIRP4
ASGNP4
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $881
JUMPV
LABELV $878
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 616
ADDP4
INDIRI4
ADDRFP4 0
INDIRI4
EQI4 $883
ADDRGP4 $879
JUMPV
LABELV $883
ADDRLP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRP4
ARGP4
ADDRGP4 trap_SendServerCommand
CALLV
pop
LABELV $879
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $881
ADDRLP4 0
INDIRI4
ADDRGP4 level+24
INDIRI4
LTI4 $878
LABELV $877
endproc PrintTeam 4 8
export SetLeader
proc SetLeader 8 8
ADDRFP4 0
ADDRFP4 0
INDIRI4
ASGNI4
ADDRFP4 4
ADDRFP4 4
INDIRI4
ASGNI4
CNSTI4 776
ADDRFP4 4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 468
ADDP4
INDIRI4
CNSTI4 0
NEI4 $886
ADDRGP4 $888
ARGP4
CNSTI4 776
ADDRFP4 4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 512
ADDP4
ARGP4
ADDRLP4 4
ADDRGP4 va
CALLP4
ASGNP4
ADDRFP4 0
INDIRI4
ARGI4
ADDRLP4 4
INDIRP4
ARGP4
ADDRGP4 PrintTeam
CALLV
pop
ADDRGP4 $885
JUMPV
LABELV $886
CNSTI4 776
ADDRFP4 4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 616
ADDP4
INDIRI4
ADDRFP4 0
INDIRI4
EQI4 $889
ADDRGP4 $891
ARGP4
CNSTI4 776
ADDRFP4 4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 512
ADDP4
ARGP4
ADDRLP4 4
ADDRGP4 va
CALLP4
ASGNP4
ADDRFP4 0
INDIRI4
ARGI4
ADDRLP4 4
INDIRP4
ARGP4
ADDRGP4 PrintTeam
CALLV
pop
ADDRGP4 $885
JUMPV
LABELV $889
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $895
JUMPV
LABELV $892
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 616
ADDP4
INDIRI4
ADDRFP4 0
INDIRI4
EQI4 $897
ADDRGP4 $893
JUMPV
LABELV $897
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 640
ADDP4
INDIRI4
CNSTI4 0
EQI4 $899
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 640
ADDP4
CNSTI4 0
ASGNI4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 ClientUserinfoChanged
CALLV
pop
LABELV $899
LABELV $893
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $895
ADDRLP4 0
INDIRI4
ADDRGP4 level+24
INDIRI4
LTI4 $892
CNSTI4 776
ADDRFP4 4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 640
ADDP4
CNSTI4 1
ASGNI4
ADDRFP4 4
INDIRI4
ARGI4
ADDRGP4 ClientUserinfoChanged
CALLV
pop
ADDRGP4 $901
ARGP4
CNSTI4 776
ADDRFP4 4
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 512
ADDP4
ARGP4
ADDRLP4 4
ADDRGP4 va
CALLP4
ASGNP4
ADDRFP4 0
INDIRI4
ARGI4
ADDRLP4 4
INDIRP4
ARGP4
ADDRGP4 PrintTeam
CALLV
pop
LABELV $885
endproc SetLeader 8 8
export CheckTeamLeader
proc CheckTeamLeader 4 0
ADDRFP4 0
ADDRFP4 0
INDIRI4
ASGNI4
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $906
JUMPV
LABELV $903
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 616
ADDP4
INDIRI4
ADDRFP4 0
INDIRI4
EQI4 $908
ADDRGP4 $904
JUMPV
LABELV $908
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 640
ADDP4
INDIRI4
CNSTI4 0
EQI4 $910
ADDRGP4 $905
JUMPV
LABELV $910
LABELV $904
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $906
ADDRLP4 0
INDIRI4
ADDRGP4 level+24
INDIRI4
LTI4 $903
LABELV $905
ADDRLP4 0
INDIRI4
ADDRGP4 level+24
INDIRI4
LTI4 $912
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $918
JUMPV
LABELV $915
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 616
ADDP4
INDIRI4
ADDRFP4 0
INDIRI4
EQI4 $920
ADDRGP4 $916
JUMPV
LABELV $920
CNSTI4 804
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 g_entities+208+216
ADDP4
INDIRI4
CNSTI4 8
BANDI4
CNSTI4 0
NEI4 $922
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 640
ADDP4
CNSTI4 1
ASGNI4
ADDRGP4 $917
JUMPV
LABELV $922
LABELV $916
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $918
ADDRLP4 0
INDIRI4
ADDRGP4 level+24
INDIRI4
LTI4 $915
LABELV $917
ADDRLP4 0
INDIRI4
ADDRGP4 level+24
INDIRI4
LTI4 $926
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $932
JUMPV
LABELV $929
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 616
ADDP4
INDIRI4
ADDRFP4 0
INDIRI4
EQI4 $934
ADDRGP4 $930
JUMPV
LABELV $934
CNSTI4 776
ADDRLP4 0
INDIRI4
MULI4
ADDRGP4 level
INDIRP4
ADDP4
CNSTI4 640
ADDP4
CNSTI4 1
ASGNI4
ADDRGP4 $931
JUMPV
LABELV $930
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $932
ADDRLP4 0
INDIRI4
ADDRGP4 level+24
INDIRI4
LTI4 $929
LABELV $931
LABELV $926
LABELV $912
LABELV $902
endproc CheckTeamLeader 4 0
export CheckTeamVote
proc CheckTeamVote 20 12
ADDRFP4 0
INDIRI4
CNSTI4 1
NEI4 $937
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 $938
JUMPV
LABELV $937
ADDRFP4 0
INDIRI4
CNSTI4 2
NEI4 $936
ADDRLP4 0
CNSTI4 1
ASGNI4
LABELV $940
LABELV $938
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 level+4472
ADDP4
INDIRI4
CNSTI4 0
NEI4 $941
ADDRGP4 $936
JUMPV
LABELV $941
ADDRGP4 level+32
INDIRI4
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 level+4472
ADDP4
INDIRI4
SUBI4
CNSTI4 30000
LTI4 $944
CNSTI4 -1
ARGI4
ADDRGP4 $948
ARGP4
ADDRGP4 trap_SendServerCommand
CALLV
pop
ADDRGP4 $945
JUMPV
LABELV $944
ADDRLP4 4
CNSTI4 2
ASGNI4
ADDRLP4 8
ADDRLP4 0
INDIRI4
ADDRLP4 4
INDIRI4
LSHI4
ASGNI4
ADDRLP4 8
INDIRI4
ADDRGP4 level+4480
ADDP4
INDIRI4
ADDRLP4 8
INDIRI4
ADDRGP4 level+4496
ADDP4
INDIRI4
ADDRLP4 4
INDIRI4
DIVI4
LEI4 $949
CNSTI4 -1
ARGI4
ADDRGP4 $953
ARGP4
ADDRGP4 trap_SendServerCommand
CALLV
pop
ADDRGP4 $956
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 10
LSHI4
ADDRGP4 level+2424
ADDP4
ARGP4
CNSTI4 6
ARGI4
ADDRLP4 12
ADDRGP4 Q_strncmp
CALLI4
ASGNI4
ADDRLP4 12
INDIRI4
CNSTI4 0
NEI4 $954
ADDRLP4 0
INDIRI4
CNSTI4 10
LSHI4
ADDRGP4 level+2424+7
ADDP4
ARGP4
ADDRLP4 16
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRLP4 16
INDIRI4
ARGI4
ADDRGP4 SetLeader
CALLV
pop
ADDRGP4 $950
JUMPV
LABELV $954
ADDRGP4 $855
ARGP4
ADDRLP4 0
INDIRI4
CNSTI4 10
LSHI4
ADDRGP4 level+2424
ADDP4
ARGP4
ADDRLP4 16
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 2
ARGI4
ADDRLP4 16
INDIRP4
ARGP4
ADDRGP4 trap_SendConsoleCommand
CALLV
pop
ADDRGP4 $950
JUMPV
LABELV $949
ADDRLP4 12
CNSTI4 2
ASGNI4
ADDRLP4 16
ADDRLP4 0
INDIRI4
ADDRLP4 12
INDIRI4
LSHI4
ASGNI4
ADDRLP4 16
INDIRI4
ADDRGP4 level+4488
ADDP4
INDIRI4
ADDRLP4 16
INDIRI4
ADDRGP4 level+4496
ADDP4
INDIRI4
ADDRLP4 12
INDIRI4
DIVI4
LTI4 $936
CNSTI4 -1
ARGI4
ADDRGP4 $948
ARGP4
ADDRGP4 trap_SendServerCommand
CALLV
pop
LABELV $962
LABELV $950
LABELV $945
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 level+4472
ADDP4
CNSTI4 0
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 12
ADDI4
ARGI4
ADDRGP4 $55
ARGP4
ADDRGP4 trap_SetConfigstring
CALLV
pop
LABELV $936
endproc CheckTeamVote 20 12
data
align 4
LABELV $967
byte 4 -1
export CheckCvars
code
proc CheckCvars 4 8
ADDRGP4 g_password+4
INDIRI4
ADDRGP4 $967
INDIRI4
EQI4 $968
ADDRGP4 $967
ADDRGP4 g_password+4
INDIRI4
ASGNI4
ADDRGP4 g_password+16
INDIRI1
CVII4 1
CNSTI4 0
EQI4 $972
ADDRGP4 g_password+16
ARGP4
ADDRGP4 $976
ARGP4
ADDRLP4 0
ADDRGP4 Q_stricmp
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 0
EQI4 $972
ADDRGP4 $84
ARGP4
ADDRGP4 $83
ARGP4
ADDRGP4 trap_Cvar_Set
CALLV
pop
ADDRGP4 $973
JUMPV
LABELV $972
ADDRGP4 $84
ARGP4
ADDRGP4 $61
ARGP4
ADDRGP4 trap_Cvar_Set
CALLV
pop
LABELV $973
LABELV $968
LABELV $966
endproc CheckCvars 4 8
export G_RunThink
proc G_RunThink 8 4
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRLP4 0
ADDRFP4 0
INDIRP4
CNSTI4 684
ADDP4
INDIRI4
CVIF4 4
ASGNF4
ADDRLP4 0
INDIRF4
CNSTF4 0
GTF4 $978
ADDRGP4 $977
JUMPV
LABELV $978
ADDRLP4 0
INDIRF4
ADDRGP4 level+32
INDIRI4
CVIF4 4
LEF4 $980
ADDRGP4 $977
JUMPV
LABELV $980
ADDRFP4 0
INDIRP4
CNSTI4 684
ADDP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 688
ADDP4
INDIRP4
CVPU4 4
CNSTU4 0
NEU4 $983
ADDRGP4 $985
ARGP4
ADDRGP4 G_Error
CALLV
pop
LABELV $983
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 0
INDIRP4
CNSTI4 688
ADDP4
INDIRP4
CALLV
pop
LABELV $977
endproc G_RunThink 8 4
export G_RunFrame
proc G_RunFrame 28 12
ADDRGP4 level+68
INDIRI4
CNSTI4 0
EQI4 $987
ADDRGP4 $986
JUMPV
LABELV $987
ADDRLP4 8
ADDRGP4 level+28
ASGNP4
ADDRLP4 8
INDIRP4
ADDRLP4 8
INDIRP4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRGP4 level+36
ADDRGP4 level+32
INDIRI4
ASGNI4
ADDRGP4 level+32
ADDRFP4 0
INDIRI4
ASGNI4
ADDRGP4 G_UpdateCvars
CALLV
pop
ADDRLP4 0
ADDRGP4 g_entities
ASGNP4
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRGP4 $997
JUMPV
LABELV $994
ADDRLP4 0
INDIRP4
CNSTI4 520
ADDP4
INDIRI4
CNSTI4 0
NEI4 $999
ADDRGP4 $995
JUMPV
LABELV $999
ADDRGP4 level+32
INDIRI4
ADDRLP4 0
INDIRP4
CNSTI4 552
ADDP4
INDIRI4
SUBI4
CNSTI4 300
LEI4 $1001
ADDRLP4 0
INDIRP4
CNSTI4 180
ADDP4
INDIRI4
CNSTI4 0
EQI4 $1004
ADDRLP4 0
INDIRP4
CNSTI4 180
ADDP4
CNSTI4 0
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CVPU4 4
CNSTU4 0
EQU4 $1006
ADDRLP4 0
INDIRP4
CNSTI4 516
ADDP4
INDIRP4
CNSTI4 128
ADDP4
CNSTI4 0
ASGNI4
LABELV $1006
LABELV $1004
ADDRLP4 0
INDIRP4
CNSTI4 556
ADDP4
INDIRI4
CNSTI4 0
EQI4 $1008
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 G_FreeEntity
CALLV
pop
ADDRGP4 $995
JUMPV
LABELV $1008
ADDRLP4 0
INDIRP4
CNSTI4 560
ADDP4
INDIRI4
CNSTI4 0
EQI4 $1010
ADDRLP4 0
INDIRP4
CNSTI4 560
ADDP4
CNSTI4 0
ASGNI4
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 trap_UnlinkEntity
CALLV
pop
LABELV $1010
LABELV $1001
ADDRLP4 0
INDIRP4
CNSTI4 556
ADDP4
INDIRI4
CNSTI4 0
EQI4 $1012
ADDRGP4 $995
JUMPV
LABELV $1012
ADDRLP4 16
CNSTI4 0
ASGNI4
ADDRLP4 0
INDIRP4
CNSTI4 416
ADDP4
INDIRI4
ADDRLP4 16
INDIRI4
NEI4 $1014
ADDRLP4 0
INDIRP4
CNSTI4 532
ADDP4
INDIRI4
ADDRLP4 16
INDIRI4
EQI4 $1014
ADDRGP4 $995
JUMPV
LABELV $1014
ADDRLP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
CNSTI4 3
NEI4 $1016
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 G_RunMissile
CALLV
pop
ADDRGP4 $995
JUMPV
LABELV $1016
ADDRLP4 0
INDIRP4
CNSTI4 4
ADDP4
INDIRI4
CNSTI4 2
EQI4 $1020
ADDRLP4 0
INDIRP4
CNSTI4 564
ADDP4
INDIRI4
CNSTI4 0
EQI4 $1018
LABELV $1020
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 G_RunItem
CALLV
pop
ADDRGP4 $995
JUMPV
LABELV $1018
ADDRLP4 24
CNSTI4 4
ASGNI4
ADDRLP4 0
INDIRP4
ADDRLP4 24
INDIRI4
ADDP4
INDIRI4
ADDRLP4 24
INDIRI4
NEI4 $1021
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 G_RunMover
CALLV
pop
ADDRGP4 $995
JUMPV
LABELV $1021
ADDRLP4 4
INDIRI4
CNSTI4 64
GEI4 $1023
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 G_RunClient
CALLV
pop
ADDRGP4 $995
JUMPV
LABELV $1023
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 G_RunThink
CALLV
pop
LABELV $995
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 0
ADDRLP4 0
INDIRP4
CNSTI4 804
ADDP4
ASGNP4
LABELV $997
ADDRLP4 4
INDIRI4
ADDRGP4 level+12
INDIRI4
LTI4 $994
ADDRLP4 0
ADDRGP4 g_entities
ASGNP4
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRGP4 $1028
JUMPV
LABELV $1025
ADDRLP4 0
INDIRP4
CNSTI4 520
ADDP4
INDIRI4
CNSTI4 0
EQI4 $1030
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 ClientEndFrame
CALLV
pop
LABELV $1030
LABELV $1026
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 0
ADDRLP4 0
INDIRP4
CNSTI4 804
ADDP4
ASGNP4
LABELV $1028
ADDRLP4 4
INDIRI4
ADDRGP4 level+24
INDIRI4
LTI4 $1025
ADDRGP4 CheckTournament
CALLV
pop
ADDRGP4 CheckExitRules
CALLV
pop
ADDRGP4 CheckTeamStatus
CALLV
pop
ADDRGP4 CheckVote
CALLV
pop
CNSTI4 1
ARGI4
ADDRGP4 CheckTeamVote
CALLV
pop
CNSTI4 2
ARGI4
ADDRGP4 CheckTeamVote
CALLV
pop
ADDRGP4 CheckCvars
CALLV
pop
ADDRGP4 g_listEntity+12
INDIRI4
CNSTI4 0
EQI4 $1032
ADDRLP4 4
CNSTI4 0
ASGNI4
LABELV $1035
ADDRGP4 $1039
ARGP4
ADDRLP4 4
INDIRI4
ARGI4
CNSTI4 804
ADDRLP4 4
INDIRI4
MULI4
ADDRGP4 g_entities+524
ADDP4
INDIRP4
ARGP4
ADDRGP4 G_Printf
CALLV
pop
LABELV $1036
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
ADDRLP4 4
INDIRI4
CNSTI4 1024
LTI4 $1035
ADDRGP4 $110
ARGP4
ADDRGP4 $61
ARGP4
ADDRGP4 trap_Cvar_Set
CALLV
pop
LABELV $1032
LABELV $986
endproc G_RunFrame 28 12
bss
export g_listEntity
align 4
LABELV g_listEntity
skip 272
export g_podiumDrop
align 4
LABELV g_podiumDrop
skip 272
export g_podiumDist
align 4
LABELV g_podiumDist
skip 272
export g_logfileSync
align 4
LABELV g_logfileSync
skip 272
export g_logfile
align 4
LABELV g_logfile
skip 272
export g_clients
align 4
LABELV g_clients
skip 49664
import trap_SnapVector
import trap_GeneticParentsAndChildSelection
import trap_BotResetWeaponState
import trap_BotFreeWeaponState
import trap_BotAllocWeaponState
import trap_BotLoadWeaponWeights
import trap_BotGetWeaponInfo
import trap_BotChooseBestFightWeapon
import trap_BotAddAvoidSpot
import trap_BotInitMoveState
import trap_BotFreeMoveState
import trap_BotAllocMoveState
import trap_BotPredictVisiblePosition
import trap_BotMovementViewTarget
import trap_BotReachabilityArea
import trap_BotResetLastAvoidReach
import trap_BotResetAvoidReach
import trap_BotMoveInDirection
import trap_BotMoveToGoal
import trap_BotResetMoveState
import trap_BotFreeGoalState
import trap_BotAllocGoalState
import trap_BotMutateGoalFuzzyLogic
import trap_BotSaveGoalFuzzyLogic
import trap_BotInterbreedGoalFuzzyLogic
import trap_BotFreeItemWeights
import trap_BotLoadItemWeights
import trap_BotUpdateEntityItems
import trap_BotInitLevelItems
import trap_BotSetAvoidGoalTime
import trap_BotAvoidGoalTime
import trap_BotGetLevelItemGoal
import trap_BotGetMapLocationGoal
import trap_BotGetNextCampSpotGoal
import trap_BotItemGoalInVisButNotVisible
import trap_BotTouchingGoal
import trap_BotChooseNBGItem
import trap_BotChooseLTGItem
import trap_BotGetSecondGoal
import trap_BotGetTopGoal
import trap_BotGoalName
import trap_BotDumpGoalStack
import trap_BotDumpAvoidGoals
import trap_BotEmptyGoalStack
import trap_BotPopGoal
import trap_BotPushGoal
import trap_BotResetAvoidGoals
import trap_BotRemoveFromAvoidGoals
import trap_BotResetGoalState
import trap_BotSetChatName
import trap_BotSetChatGender
import trap_BotLoadChatFile
import trap_BotReplaceSynonyms
import trap_UnifyWhiteSpaces
import trap_BotMatchVariable
import trap_BotFindMatch
import trap_StringContains
import trap_BotGetChatMessage
import trap_BotEnterChat
import trap_BotChatLength
import trap_BotReplyChat
import trap_BotNumInitialChats
import trap_BotInitialChat
import trap_BotNumConsoleMessages
import trap_BotNextConsoleMessage
import trap_BotRemoveConsoleMessage
import trap_BotQueueConsoleMessage
import trap_BotFreeChatState
import trap_BotAllocChatState
import trap_Characteristic_String
import trap_Characteristic_BInteger
import trap_Characteristic_Integer
import trap_Characteristic_BFloat
import trap_Characteristic_Float
import trap_BotFreeCharacter
import trap_BotLoadCharacter
import trap_EA_ResetInput
import trap_EA_GetInput
import trap_EA_EndRegular
import trap_EA_View
import trap_EA_Move
import trap_EA_DelayedJump
import trap_EA_Jump
import trap_EA_SelectWeapon
import trap_EA_MoveRight
import trap_EA_MoveLeft
import trap_EA_MoveBack
import trap_EA_MoveForward
import trap_EA_MoveDown
import trap_EA_MoveUp
import trap_EA_Crouch
import trap_EA_Respawn
import trap_EA_Use
import trap_EA_Attack
import trap_EA_Talk
import trap_EA_Gesture
import trap_EA_Action
import trap_EA_Command
import trap_EA_SayTeam
import trap_EA_Say
import trap_AAS_PredictClientMovement
import trap_AAS_Swimming
import trap_AAS_AlternativeRouteGoals
import trap_AAS_PredictRoute
import trap_AAS_EnableRoutingArea
import trap_AAS_AreaTravelTimeToGoalArea
import trap_AAS_AreaReachability
import trap_AAS_IntForBSPEpairKey
import trap_AAS_FloatForBSPEpairKey
import trap_AAS_VectorForBSPEpairKey
import trap_AAS_ValueForBSPEpairKey
import trap_AAS_NextBSPEntity
import trap_AAS_PointContents
import trap_AAS_TraceAreas
import trap_AAS_PointReachabilityAreaIndex
import trap_AAS_PointAreaNum
import trap_AAS_Time
import trap_AAS_PresenceTypeBoundingBox
import trap_AAS_Initialized
import trap_AAS_EntityInfo
import trap_AAS_AreaInfo
import trap_AAS_BBoxAreas
import trap_BotUserCommand
import trap_BotGetServerCommand
import trap_BotGetSnapshotEntity
import trap_BotLibTest
import trap_BotLibUpdateEntity
import trap_BotLibLoadMap
import trap_BotLibStartFrame
import trap_BotLibDefine
import trap_BotLibVarGet
import trap_BotLibVarSet
import trap_BotLibShutdown
import trap_BotLibSetup
import trap_DebugPolygonDelete
import trap_DebugPolygonCreate
import trap_GetEntityToken
import trap_GetUsercmd
import trap_BotFreeClient
import trap_BotAllocateClient
import trap_EntityContact
import trap_EntitiesInBox
import trap_UnlinkEntity
import trap_LinkEntity
import trap_AreasConnected
import trap_AdjustAreaPortalState
import trap_InPVSIgnorePortals
import trap_InPVS
import trap_PointContents
import trap_Trace
import trap_SetBrushModel
import trap_GetServerinfo
import trap_SetUserinfo
import trap_GetUserinfo
import trap_GetConfigstring
import trap_SetConfigstring
import trap_SendServerCommand
import trap_DropClient
import trap_LocateGameData
import trap_Cvar_VariableStringBuffer
import trap_Cvar_VariableValue
import trap_Cvar_VariableIntegerValue
import trap_Cvar_Set
import trap_Cvar_Update
import trap_Cvar_Register
import trap_SendConsoleCommand
import trap_FS_Seek
import trap_FS_GetFileList
import trap_FS_FCloseFile
import trap_FS_Write
import trap_FS_Read
import trap_FS_FOpenFile
import trap_Args
import trap_Argv
import trap_Argc
import trap_RealTime
import trap_Milliseconds
import trap_Error
import trap_Print
import g_proxMineTimeout
import g_singlePlayer
import g_enableBreath
import g_enableDust
export g_rankings
align 4
LABELV g_rankings
skip 272
export pmove_msec
align 4
LABELV pmove_msec
skip 272
export pmove_fixed
align 4
LABELV pmove_fixed
skip 272
export g_smoothClients
align 4
LABELV g_smoothClients
skip 272
import g_blueteam
import g_redteam
import g_cubeTimeout
import g_obeliskRespawnDelay
import g_obeliskRegenAmount
import g_obeliskRegenPeriod
import g_obeliskHealth
export g_filterBan
align 4
LABELV g_filterBan
skip 272
export g_banIPs
align 4
LABELV g_banIPs
skip 272
export g_teamForceBalance
align 4
LABELV g_teamForceBalance
skip 272
export g_teamAutoJoin
align 4
LABELV g_teamAutoJoin
skip 272
export g_allowVote
align 4
LABELV g_allowVote
skip 272
export g_blood
align 4
LABELV g_blood
skip 272
export g_doWarmup
align 4
LABELV g_doWarmup
skip 272
export g_warmup
align 4
LABELV g_warmup
skip 272
export g_motd
align 4
LABELV g_motd
skip 272
export g_synchronousClients
align 4
LABELV g_synchronousClients
skip 272
export g_weaponTeamRespawn
align 4
LABELV g_weaponTeamRespawn
skip 272
export g_weaponRespawn
align 4
LABELV g_weaponRespawn
skip 272
export g_debugDamage
align 4
LABELV g_debugDamage
skip 272
export g_debugAlloc
align 4
LABELV g_debugAlloc
skip 272
export g_debugMove
align 4
LABELV g_debugMove
skip 272
export g_inactivity
align 4
LABELV g_inactivity
skip 272
export g_forcerespawn
align 4
LABELV g_forcerespawn
skip 272
export g_quadfactor
align 4
LABELV g_quadfactor
skip 272
export g_knockback
align 4
LABELV g_knockback
skip 272
export g_speed
align 4
LABELV g_speed
skip 272
export g_gravity
align 4
LABELV g_gravity
skip 272
export g_needpass
align 4
LABELV g_needpass
skip 272
export g_password
align 4
LABELV g_password
skip 272
export g_friendlyFire
align 4
LABELV g_friendlyFire
skip 272
export g_capturelimit
align 4
LABELV g_capturelimit
skip 272
export g_timelimit
align 4
LABELV g_timelimit
skip 272
export g_fraglimit
align 4
LABELV g_fraglimit
skip 272
export g_dmflags
align 4
LABELV g_dmflags
skip 272
export g_restarted
align 4
LABELV g_restarted
skip 272
export g_maxGameClients
align 4
LABELV g_maxGameClients
skip 272
export g_maxclients
align 4
LABELV g_maxclients
skip 272
export g_cheats
align 4
LABELV g_cheats
skip 272
export g_dedicated
align 4
LABELV g_dedicated
skip 272
export g_gametype
align 4
LABELV g_gametype
skip 272
export g_entities
align 4
LABELV g_entities
skip 823296
export level
align 4
LABELV level
skip 9212
import Pickup_Team
import CheckTeamStatus
import TeamplayInfoMessage
import Team_GetLocationMsg
import Team_GetLocation
import SelectCTFSpawnPoint
import Team_FreeEntity
import Team_ReturnFlag
import Team_InitGame
import Team_CheckHurtCarrier
import Team_FragBonuses
import Team_DroppedFlagThink
import AddTeamScore
import TeamColorString
import TeamName
import OtherTeam
import BotTestAAS
import BotAIStartFrame
import BotAIShutdownClient
import BotAISetupClient
import BotAILoadMap
import BotAIShutdown
import BotAISetup
import BotInterbreedEndMatch
import Svcmd_BotList_f
import Svcmd_AddBot_f
import G_BotConnect
import G_RemoveQueuedBotBegin
import G_CheckBotSpawn
import G_GetBotInfoByName
import G_GetBotInfoByNumber
import G_InitBots
import Svcmd_AbortPodium_f
import SpawnModelsOnVictoryPads
import UpdateTournamentInfo
import G_WriteSessionData
import G_InitWorldSession
import G_InitSessionData
import G_ReadSessionData
import Svcmd_GameMem_f
import G_InitMemory
import G_Alloc
import CheckObeliskAttack
import Team_CheckDroppedItem
import OnSameTeam
import G_RunClient
import ClientEndFrame
import ClientThink
import ClientCommand
import ClientBegin
import ClientDisconnect
import ClientUserinfoChanged
import ClientConnect
import DeathmatchScoreboardMessage
import FireWeapon
import G_FilterPacket
import G_ProcessIPBans
import ConsoleCommand
import SpotWouldTelefrag
import AddScore
import player_die
import ClientSpawn
import InitBodyQue
import ClientRespawn
import CopyToBodyQue
import SelectSpawnPoint
import SetClientViewAngle
import PickTeam
import TeamLeader
import TeamCount
import Weapon_HookThink
import Weapon_HookFree
import CheckGauntletAttack
import SnapVectorTowards
import CalcMuzzlePoint
import LogAccuracyHit
import TeleportPlayer
import trigger_teleporter_touch
import Touch_DoorTrigger
import G_RunMover
import fire_grapple
import fire_bfg
import fire_rocket
import fire_grenade
import fire_plasma
import G_RunMissile
import TossClientCubes
import TossClientItems
import body_die
import G_InvulnerabilityEffect
import G_RadiusDamage
import G_Damage
import CanDamage
import BuildShaderStateConfig
import AddRemap
import G_SetOrigin
import G_AddEvent
import G_AddPredictableEvent
import vectoyaw
import vtos
import tv
import G_TouchTriggers
import G_EntitiesFree
import G_FreeEntity
import G_Sound
import G_TempEntity
import G_Spawn
import G_InitGentity
import G_SetMovedir
import G_UseTargets
import G_PickTarget
import G_Find
import G_KillBox
import G_TeamCommand
import G_SoundIndex
import G_ModelIndex
import SaveRegisteredItems
import RegisterItem
import ClearRegisteredItems
import Touch_Item
import Add_Ammo
import ArmorIndex
import Think_Weapon
import FinishSpawningItem
import G_SpawnItem
import SetRespawn
import LaunchItem
import Drop_Item
import PrecacheItem
import UseHoldableItem
import RespawnItem
import G_RunItem
import G_CheckTeamItems
import Cmd_FollowCycle_f
import SetTeam
import BroadcastTeamChange
import StopFollowing
import Cmd_Score_f
import G_NewString
import G_SpawnEntitiesFromString
import G_SpawnVector
import G_SpawnInt
import G_SpawnFloat
import G_SpawnString
import BG_PlayerTouchesItem
import BG_PlayerStateToEntityStateExtraPolate
import BG_PlayerStateToEntityState
import BG_TouchJumpPad
import BG_AddPredictableEventToPlayerstate
import BG_EvaluateTrajectoryDelta
import BG_EvaluateTrajectory
import BG_CanItemBeGrabbed
import BG_FindItemForHoldable
import BG_FindItemForPowerup
import BG_FindItemForWeapon
import BG_FindItem
import bg_numItems
import bg_itemlist
import Pmove
import PM_UpdateViewAngles
import Info_NextPair
import Info_Validate
import Info_SetValueForKey_Big
import Info_SetValueForKey
import Info_RemoveKey_Big
import Info_RemoveKey
import Info_ValueForKey
import Com_TruncateLongString
import va
import Q_CountChar
import Q_CleanStr
import Q_PrintStrlen
import Q_strcat
import Q_strncpyz
import Q_stristr
import Q_strupr
import Q_strlwr
import Q_stricmpn
import Q_strncmp
import Q_stricmp
import Q_isintegral
import Q_isanumber
import Q_isalpha
import Q_isupper
import Q_islower
import Q_isprint
import Com_RandomBytes
import Com_SkipCharset
import Com_SkipTokens
import Com_sprintf
import Com_HexStrToInt
import Parse3DMatrix
import Parse2DMatrix
import Parse1DMatrix
import SkipRestOfLine
import SkipBracedSection
import COM_MatchToken
import COM_ParseWarning
import COM_ParseError
import COM_Compress
import COM_ParseExt
import COM_Parse
import COM_GetCurrentParseLine
import COM_BeginParseSession
import COM_DefaultExtension
import COM_CompareExtension
import COM_StripExtension
import COM_GetExtension
import COM_SkipPath
import Com_Clamp
import PerpendicularVector
import AngleVectors
import MatrixMultiply
import MakeNormalVectors
import RotateAroundDirection
import RotatePointAroundVector
import ProjectPointOnPlane
import PlaneFromPoints
import AngleDelta
import AngleNormalize180
import AngleNormalize360
import AnglesSubtract
import AngleSubtract
import LerpAngle
import AngleMod
import BoundsIntersectPoint
import BoundsIntersectSphere
import BoundsIntersect
import BoxOnPlaneSide
import SetPlaneSignbits
import AxisCopy
import AxisClear
import AnglesToAxis
import vectoangles
import Q_crandom
import Q_random
import Q_rand
import Q_acos
import Q_log2
import VectorRotate
import Vector4Scale
import VectorNormalize2
import VectorNormalize
import CrossProduct
import VectorInverse
import VectorNormalizeFast
import DistanceSquared
import Distance
import VectorLengthSquared
import VectorLength
import VectorCompare
import AddPointToBounds
import ClearBounds
import RadiusFromBounds
import NormalizeColor
import ColorBytes4
import ColorBytes3
import _VectorMA
import _VectorScale
import _VectorCopy
import _VectorAdd
import _VectorSubtract
import _DotProduct
import ByteToDir
import DirToByte
import ClampShort
import ClampChar
import Q_rsqrt
import Q_fabs
import Q_isnan
import axisDefault
import vec3_origin
import g_color_table
import colorDkGrey
import colorMdGrey
import colorLtGrey
import colorWhite
import colorCyan
import colorMagenta
import colorYellow
import colorBlue
import colorGreen
import colorRed
import colorBlack
import bytedirs
import Hunk_AllocDebug
import FloatSwap
import LongSwap
import ShortSwap
import CopyLongSwap
import CopyShortSwap
import qk_acos
import qk_fabs
import qk_abs
import qk_tan
import qk_atan2
import qk_cos
import qk_sin
import qk_sqrt
import qk_floor
import qk_ceil
import qk_memcpy
import qk_memset
import qk_memmove
import qk_sscanf
import qk_vsnprintf
import qk_strtol
import qk_atoi
import qk_strtod
import qk_atof
import qk_toupper
import qk_tolower
import qk_strncpy
import qk_strstr
import qk_strrchr
import qk_strchr
import qk_strcmp
import qk_strcpy
import qk_strcat
import qk_strlen
import qk_rand
import qk_srand
import qk_qsort
lit
align 1
LABELV $1039
byte 1 37
byte 1 52
byte 1 105
byte 1 58
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $985
byte 1 78
byte 1 85
byte 1 76
byte 1 76
byte 1 32
byte 1 101
byte 1 110
byte 1 116
byte 1 45
byte 1 62
byte 1 116
byte 1 104
byte 1 105
byte 1 110
byte 1 107
byte 1 0
align 1
LABELV $976
byte 1 110
byte 1 111
byte 1 110
byte 1 101
byte 1 0
align 1
LABELV $956
byte 1 108
byte 1 101
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 0
align 1
LABELV $953
byte 1 112
byte 1 114
byte 1 105
byte 1 110
byte 1 116
byte 1 32
byte 1 34
byte 1 84
byte 1 101
byte 1 97
byte 1 109
byte 1 32
byte 1 118
byte 1 111
byte 1 116
byte 1 101
byte 1 32
byte 1 112
byte 1 97
byte 1 115
byte 1 115
byte 1 101
byte 1 100
byte 1 46
byte 1 10
byte 1 34
byte 1 0
align 1
LABELV $948
byte 1 112
byte 1 114
byte 1 105
byte 1 110
byte 1 116
byte 1 32
byte 1 34
byte 1 84
byte 1 101
byte 1 97
byte 1 109
byte 1 32
byte 1 118
byte 1 111
byte 1 116
byte 1 101
byte 1 32
byte 1 102
byte 1 97
byte 1 105
byte 1 108
byte 1 101
byte 1 100
byte 1 46
byte 1 10
byte 1 34
byte 1 0
align 1
LABELV $901
byte 1 112
byte 1 114
byte 1 105
byte 1 110
byte 1 116
byte 1 32
byte 1 34
byte 1 37
byte 1 115
byte 1 32
byte 1 105
byte 1 115
byte 1 32
byte 1 116
byte 1 104
byte 1 101
byte 1 32
byte 1 110
byte 1 101
byte 1 119
byte 1 32
byte 1 116
byte 1 101
byte 1 97
byte 1 109
byte 1 32
byte 1 108
byte 1 101
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 10
byte 1 34
byte 1 0
align 1
LABELV $891
byte 1 112
byte 1 114
byte 1 105
byte 1 110
byte 1 116
byte 1 32
byte 1 34
byte 1 37
byte 1 115
byte 1 32
byte 1 105
byte 1 115
byte 1 32
byte 1 110
byte 1 111
byte 1 116
byte 1 32
byte 1 111
byte 1 110
byte 1 32
byte 1 116
byte 1 104
byte 1 101
byte 1 32
byte 1 116
byte 1 101
byte 1 97
byte 1 109
byte 1 32
byte 1 97
byte 1 110
byte 1 121
byte 1 109
byte 1 111
byte 1 114
byte 1 101
byte 1 10
byte 1 34
byte 1 0
align 1
LABELV $888
byte 1 112
byte 1 114
byte 1 105
byte 1 110
byte 1 116
byte 1 32
byte 1 34
byte 1 37
byte 1 115
byte 1 32
byte 1 105
byte 1 115
byte 1 32
byte 1 110
byte 1 111
byte 1 116
byte 1 32
byte 1 99
byte 1 111
byte 1 110
byte 1 110
byte 1 101
byte 1 99
byte 1 116
byte 1 101
byte 1 100
byte 1 10
byte 1 34
byte 1 0
align 1
LABELV $869
byte 1 112
byte 1 114
byte 1 105
byte 1 110
byte 1 116
byte 1 32
byte 1 34
byte 1 86
byte 1 111
byte 1 116
byte 1 101
byte 1 32
byte 1 112
byte 1 97
byte 1 115
byte 1 115
byte 1 101
byte 1 100
byte 1 46
byte 1 10
byte 1 34
byte 1 0
align 1
LABELV $864
byte 1 112
byte 1 114
byte 1 105
byte 1 110
byte 1 116
byte 1 32
byte 1 34
byte 1 86
byte 1 111
byte 1 116
byte 1 101
byte 1 32
byte 1 102
byte 1 97
byte 1 105
byte 1 108
byte 1 101
byte 1 100
byte 1 46
byte 1 10
byte 1 34
byte 1 0
align 1
LABELV $855
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $766
byte 1 87
byte 1 97
byte 1 114
byte 1 109
byte 1 117
byte 1 112
byte 1 58
byte 1 10
byte 1 0
align 1
LABELV $747
byte 1 112
byte 1 114
byte 1 105
byte 1 110
byte 1 116
byte 1 32
byte 1 34
byte 1 66
byte 1 108
byte 1 117
byte 1 101
byte 1 32
byte 1 104
byte 1 105
byte 1 116
byte 1 32
byte 1 116
byte 1 104
byte 1 101
byte 1 32
byte 1 99
byte 1 97
byte 1 112
byte 1 116
byte 1 117
byte 1 114
byte 1 101
byte 1 108
byte 1 105
byte 1 109
byte 1 105
byte 1 116
byte 1 46
byte 1 10
byte 1 34
byte 1 0
align 1
LABELV $741
byte 1 67
byte 1 97
byte 1 112
byte 1 116
byte 1 117
byte 1 114
byte 1 101
byte 1 108
byte 1 105
byte 1 109
byte 1 105
byte 1 116
byte 1 32
byte 1 104
byte 1 105
byte 1 116
byte 1 46
byte 1 0
align 1
LABELV $740
byte 1 112
byte 1 114
byte 1 105
byte 1 110
byte 1 116
byte 1 32
byte 1 34
byte 1 82
byte 1 101
byte 1 100
byte 1 32
byte 1 104
byte 1 105
byte 1 116
byte 1 32
byte 1 116
byte 1 104
byte 1 101
byte 1 32
byte 1 99
byte 1 97
byte 1 112
byte 1 116
byte 1 117
byte 1 114
byte 1 101
byte 1 108
byte 1 105
byte 1 109
byte 1 105
byte 1 116
byte 1 46
byte 1 10
byte 1 34
byte 1 0
align 1
LABELV $730
byte 1 112
byte 1 114
byte 1 105
byte 1 110
byte 1 116
byte 1 32
byte 1 34
byte 1 37
byte 1 115
byte 1 94
byte 1 55
byte 1 32
byte 1 104
byte 1 105
byte 1 116
byte 1 32
byte 1 116
byte 1 104
byte 1 101
byte 1 32
byte 1 102
byte 1 114
byte 1 97
byte 1 103
byte 1 108
byte 1 105
byte 1 109
byte 1 105
byte 1 116
byte 1 46
byte 1 10
byte 1 34
byte 1 0
align 1
LABELV $717
byte 1 112
byte 1 114
byte 1 105
byte 1 110
byte 1 116
byte 1 32
byte 1 34
byte 1 66
byte 1 108
byte 1 117
byte 1 101
byte 1 32
byte 1 104
byte 1 105
byte 1 116
byte 1 32
byte 1 116
byte 1 104
byte 1 101
byte 1 32
byte 1 102
byte 1 114
byte 1 97
byte 1 103
byte 1 108
byte 1 105
byte 1 109
byte 1 105
byte 1 116
byte 1 46
byte 1 10
byte 1 34
byte 1 0
align 1
LABELV $711
byte 1 70
byte 1 114
byte 1 97
byte 1 103
byte 1 108
byte 1 105
byte 1 109
byte 1 105
byte 1 116
byte 1 32
byte 1 104
byte 1 105
byte 1 116
byte 1 46
byte 1 0
align 1
LABELV $710
byte 1 112
byte 1 114
byte 1 105
byte 1 110
byte 1 116
byte 1 32
byte 1 34
byte 1 82
byte 1 101
byte 1 100
byte 1 32
byte 1 104
byte 1 105
byte 1 116
byte 1 32
byte 1 116
byte 1 104
byte 1 101
byte 1 32
byte 1 102
byte 1 114
byte 1 97
byte 1 103
byte 1 108
byte 1 105
byte 1 109
byte 1 105
byte 1 116
byte 1 46
byte 1 10
byte 1 34
byte 1 0
align 1
LABELV $700
byte 1 84
byte 1 105
byte 1 109
byte 1 101
byte 1 108
byte 1 105
byte 1 109
byte 1 105
byte 1 116
byte 1 32
byte 1 104
byte 1 105
byte 1 116
byte 1 46
byte 1 0
align 1
LABELV $699
byte 1 112
byte 1 114
byte 1 105
byte 1 110
byte 1 116
byte 1 32
byte 1 34
byte 1 84
byte 1 105
byte 1 109
byte 1 101
byte 1 108
byte 1 105
byte 1 109
byte 1 105
byte 1 116
byte 1 32
byte 1 104
byte 1 105
byte 1 116
byte 1 46
byte 1 10
byte 1 34
byte 1 0
align 1
LABELV $607
byte 1 115
byte 1 99
byte 1 111
byte 1 114
byte 1 101
byte 1 58
byte 1 32
byte 1 37
byte 1 105
byte 1 32
byte 1 32
byte 1 112
byte 1 105
byte 1 110
byte 1 103
byte 1 58
byte 1 32
byte 1 37
byte 1 105
byte 1 32
byte 1 32
byte 1 99
byte 1 108
byte 1 105
byte 1 101
byte 1 110
byte 1 116
byte 1 58
byte 1 32
byte 1 37
byte 1 105
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $590
byte 1 114
byte 1 101
byte 1 100
byte 1 58
byte 1 37
byte 1 105
byte 1 32
byte 1 32
byte 1 98
byte 1 108
byte 1 117
byte 1 101
byte 1 58
byte 1 37
byte 1 105
byte 1 10
byte 1 0
align 1
LABELV $581
byte 1 69
byte 1 120
byte 1 105
byte 1 116
byte 1 58
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $574
byte 1 37
byte 1 115
byte 1 0
align 1
LABELV $568
byte 1 37
byte 1 51
byte 1 105
byte 1 58
byte 1 37
byte 1 105
byte 1 37
byte 1 105
byte 1 32
byte 1 0
align 1
LABELV $544
byte 1 118
byte 1 115
byte 1 116
byte 1 114
byte 1 32
byte 1 110
byte 1 101
byte 1 120
byte 1 116
byte 1 109
byte 1 97
byte 1 112
byte 1 10
byte 1 0
align 1
LABELV $543
byte 1 118
byte 1 115
byte 1 116
byte 1 114
byte 1 32
byte 1 100
byte 1 49
byte 1 10
byte 1 0
align 1
LABELV $542
byte 1 118
byte 1 115
byte 1 116
byte 1 114
byte 1 32
byte 1 100
byte 1 50
byte 1 0
align 1
LABELV $541
byte 1 109
byte 1 97
byte 1 112
byte 1 95
byte 1 114
byte 1 101
byte 1 115
byte 1 116
byte 1 97
byte 1 114
byte 1 116
byte 1 32
byte 1 48
byte 1 0
align 1
LABELV $538
byte 1 100
byte 1 49
byte 1 0
align 1
LABELV $537
byte 1 110
byte 1 101
byte 1 120
byte 1 116
byte 1 109
byte 1 97
byte 1 112
byte 1 0
align 1
LABELV $533
byte 1 109
byte 1 97
byte 1 112
byte 1 95
byte 1 114
byte 1 101
byte 1 115
byte 1 116
byte 1 97
byte 1 114
byte 1 116
byte 1 32
byte 1 48
byte 1 10
byte 1 0
align 1
LABELV $486
byte 1 105
byte 1 110
byte 1 102
byte 1 111
byte 1 95
byte 1 112
byte 1 108
byte 1 97
byte 1 121
byte 1 101
byte 1 114
byte 1 95
byte 1 105
byte 1 110
byte 1 116
byte 1 101
byte 1 114
byte 1 109
byte 1 105
byte 1 115
byte 1 115
byte 1 105
byte 1 111
byte 1 110
byte 1 0
align 1
LABELV $453
byte 1 37
byte 1 105
byte 1 0
align 1
LABELV $317
byte 1 115
byte 1 0
align 1
LABELV $296
byte 1 102
byte 1 0
align 1
LABELV $262
byte 1 83
byte 1 104
byte 1 117
byte 1 116
byte 1 100
byte 1 111
byte 1 119
byte 1 110
byte 1 71
byte 1 97
byte 1 109
byte 1 101
byte 1 58
byte 1 10
byte 1 0
align 1
LABELV $258
byte 1 61
byte 1 61
byte 1 61
byte 1 61
byte 1 32
byte 1 83
byte 1 104
byte 1 117
byte 1 116
byte 1 100
byte 1 111
byte 1 119
byte 1 110
byte 1 71
byte 1 97
byte 1 109
byte 1 101
byte 1 32
byte 1 61
byte 1 61
byte 1 61
byte 1 61
byte 1 10
byte 1 0
align 1
LABELV $256
byte 1 98
byte 1 111
byte 1 116
byte 1 95
byte 1 101
byte 1 110
byte 1 97
byte 1 98
byte 1 108
byte 1 101
byte 1 0
align 1
LABELV $253
byte 1 109
byte 1 111
byte 1 100
byte 1 101
byte 1 108
byte 1 115
byte 1 47
byte 1 109
byte 1 97
byte 1 112
byte 1 111
byte 1 98
byte 1 106
byte 1 101
byte 1 99
byte 1 116
byte 1 115
byte 1 47
byte 1 112
byte 1 111
byte 1 100
byte 1 105
byte 1 117
byte 1 109
byte 1 47
byte 1 112
byte 1 111
byte 1 100
byte 1 105
byte 1 117
byte 1 109
byte 1 52
byte 1 46
byte 1 109
byte 1 100
byte 1 51
byte 1 0
align 1
LABELV $251
byte 1 99
byte 1 111
byte 1 109
byte 1 95
byte 1 98
byte 1 117
byte 1 105
byte 1 108
byte 1 100
byte 1 83
byte 1 99
byte 1 114
byte 1 105
byte 1 112
byte 1 116
byte 1 0
align 1
LABELV $247
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 10
byte 1 0
align 1
LABELV $241
byte 1 99
byte 1 108
byte 1 105
byte 1 101
byte 1 110
byte 1 116
byte 1 115
byte 1 108
byte 1 111
byte 1 116
byte 1 0
align 1
LABELV $225
byte 1 78
byte 1 111
byte 1 116
byte 1 32
byte 1 108
byte 1 111
byte 1 103
byte 1 103
byte 1 105
byte 1 110
byte 1 103
byte 1 32
byte 1 116
byte 1 111
byte 1 32
byte 1 100
byte 1 105
byte 1 115
byte 1 107
byte 1 46
byte 1 10
byte 1 0
align 1
LABELV $224
byte 1 73
byte 1 110
byte 1 105
byte 1 116
byte 1 71
byte 1 97
byte 1 109
byte 1 101
byte 1 58
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $223
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 10
byte 1 0
align 1
LABELV $221
byte 1 87
byte 1 65
byte 1 82
byte 1 78
byte 1 73
byte 1 78
byte 1 71
byte 1 58
byte 1 32
byte 1 67
byte 1 111
byte 1 117
byte 1 108
byte 1 100
byte 1 110
byte 1 39
byte 1 116
byte 1 32
byte 1 111
byte 1 112
byte 1 101
byte 1 110
byte 1 32
byte 1 108
byte 1 111
byte 1 103
byte 1 102
byte 1 105
byte 1 108
byte 1 101
byte 1 58
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $206
byte 1 115
byte 1 111
byte 1 117
byte 1 110
byte 1 100
byte 1 47
byte 1 112
byte 1 108
byte 1 97
byte 1 121
byte 1 101
byte 1 114
byte 1 47
byte 1 102
byte 1 114
byte 1 121
byte 1 46
byte 1 119
byte 1 97
byte 1 118
byte 1 0
align 1
LABELV $202
byte 1 103
byte 1 97
byte 1 109
byte 1 101
byte 1 100
byte 1 97
byte 1 116
byte 1 101
byte 1 58
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $201
byte 1 103
byte 1 97
byte 1 109
byte 1 101
byte 1 110
byte 1 97
byte 1 109
byte 1 101
byte 1 58
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $200
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 32
byte 1 71
byte 1 97
byte 1 109
byte 1 101
byte 1 32
byte 1 73
byte 1 110
byte 1 105
byte 1 116
byte 1 105
byte 1 97
byte 1 108
byte 1 105
byte 1 122
byte 1 97
byte 1 116
byte 1 105
byte 1 111
byte 1 110
byte 1 32
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 45
byte 1 10
byte 1 0
align 1
LABELV $194
byte 1 112
byte 1 114
byte 1 105
byte 1 110
byte 1 116
byte 1 32
byte 1 34
byte 1 83
byte 1 101
byte 1 114
byte 1 118
byte 1 101
byte 1 114
byte 1 58
byte 1 32
byte 1 37
byte 1 115
byte 1 32
byte 1 99
byte 1 104
byte 1 97
byte 1 110
byte 1 103
byte 1 101
byte 1 100
byte 1 32
byte 1 116
byte 1 111
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 34
byte 1 0
align 1
LABELV $179
byte 1 103
byte 1 95
byte 1 103
byte 1 97
byte 1 109
byte 1 101
byte 1 116
byte 1 121
byte 1 112
byte 1 101
byte 1 32
byte 1 37
byte 1 105
byte 1 32
byte 1 105
byte 1 115
byte 1 32
byte 1 111
byte 1 117
byte 1 116
byte 1 32
byte 1 111
byte 1 102
byte 1 32
byte 1 114
byte 1 97
byte 1 110
byte 1 103
byte 1 101
byte 1 44
byte 1 32
byte 1 100
byte 1 101
byte 1 102
byte 1 97
byte 1 117
byte 1 108
byte 1 116
byte 1 105
byte 1 110
byte 1 103
byte 1 32
byte 1 116
byte 1 111
byte 1 32
byte 1 48
byte 1 10
byte 1 0
align 1
LABELV $161
byte 1 37
byte 1 105
byte 1 32
byte 1 116
byte 1 101
byte 1 97
byte 1 109
byte 1 115
byte 1 32
byte 1 119
byte 1 105
byte 1 116
byte 1 104
byte 1 32
byte 1 37
byte 1 105
byte 1 32
byte 1 101
byte 1 110
byte 1 116
byte 1 105
byte 1 116
byte 1 105
byte 1 101
byte 1 115
byte 1 10
byte 1 0
align 1
LABELV $114
byte 1 103
byte 1 95
byte 1 114
byte 1 97
byte 1 110
byte 1 107
byte 1 105
byte 1 110
byte 1 103
byte 1 115
byte 1 0
align 1
LABELV $113
byte 1 112
byte 1 109
byte 1 111
byte 1 118
byte 1 101
byte 1 95
byte 1 109
byte 1 115
byte 1 101
byte 1 99
byte 1 0
align 1
LABELV $112
byte 1 112
byte 1 109
byte 1 111
byte 1 118
byte 1 101
byte 1 95
byte 1 102
byte 1 105
byte 1 120
byte 1 101
byte 1 100
byte 1 0
align 1
LABELV $111
byte 1 103
byte 1 95
byte 1 115
byte 1 109
byte 1 111
byte 1 111
byte 1 116
byte 1 104
byte 1 67
byte 1 108
byte 1 105
byte 1 101
byte 1 110
byte 1 116
byte 1 115
byte 1 0
align 1
LABELV $110
byte 1 103
byte 1 95
byte 1 108
byte 1 105
byte 1 115
byte 1 116
byte 1 69
byte 1 110
byte 1 116
byte 1 105
byte 1 116
byte 1 121
byte 1 0
align 1
LABELV $109
byte 1 103
byte 1 95
byte 1 97
byte 1 108
byte 1 108
byte 1 111
byte 1 119
byte 1 86
byte 1 111
byte 1 116
byte 1 101
byte 1 0
align 1
LABELV $108
byte 1 55
byte 1 48
byte 1 0
align 1
LABELV $107
byte 1 103
byte 1 95
byte 1 112
byte 1 111
byte 1 100
byte 1 105
byte 1 117
byte 1 109
byte 1 68
byte 1 114
byte 1 111
byte 1 112
byte 1 0
align 1
LABELV $106
byte 1 56
byte 1 48
byte 1 0
align 1
LABELV $105
byte 1 103
byte 1 95
byte 1 112
byte 1 111
byte 1 100
byte 1 105
byte 1 117
byte 1 109
byte 1 68
byte 1 105
byte 1 115
byte 1 116
byte 1 0
align 1
LABELV $104
byte 1 99
byte 1 111
byte 1 109
byte 1 95
byte 1 98
byte 1 108
byte 1 111
byte 1 111
byte 1 100
byte 1 0
align 1
LABELV $103
byte 1 103
byte 1 95
byte 1 109
byte 1 111
byte 1 116
byte 1 100
byte 1 0
align 1
LABELV $102
byte 1 103
byte 1 95
byte 1 100
byte 1 101
byte 1 98
byte 1 117
byte 1 103
byte 1 65
byte 1 108
byte 1 108
byte 1 111
byte 1 99
byte 1 0
align 1
LABELV $101
byte 1 103
byte 1 95
byte 1 100
byte 1 101
byte 1 98
byte 1 117
byte 1 103
byte 1 68
byte 1 97
byte 1 109
byte 1 97
byte 1 103
byte 1 101
byte 1 0
align 1
LABELV $100
byte 1 103
byte 1 95
byte 1 100
byte 1 101
byte 1 98
byte 1 117
byte 1 103
byte 1 77
byte 1 111
byte 1 118
byte 1 101
byte 1 0
align 1
LABELV $99
byte 1 103
byte 1 95
byte 1 105
byte 1 110
byte 1 97
byte 1 99
byte 1 116
byte 1 105
byte 1 118
byte 1 105
byte 1 116
byte 1 121
byte 1 0
align 1
LABELV $98
byte 1 103
byte 1 95
byte 1 102
byte 1 111
byte 1 114
byte 1 99
byte 1 101
byte 1 114
byte 1 101
byte 1 115
byte 1 112
byte 1 97
byte 1 119
byte 1 110
byte 1 0
align 1
LABELV $97
byte 1 51
byte 1 48
byte 1 0
align 1
LABELV $96
byte 1 103
byte 1 95
byte 1 119
byte 1 101
byte 1 97
byte 1 112
byte 1 111
byte 1 110
byte 1 84
byte 1 101
byte 1 97
byte 1 109
byte 1 82
byte 1 101
byte 1 115
byte 1 112
byte 1 97
byte 1 119
byte 1 110
byte 1 0
align 1
LABELV $95
byte 1 53
byte 1 0
align 1
LABELV $94
byte 1 103
byte 1 95
byte 1 119
byte 1 101
byte 1 97
byte 1 112
byte 1 111
byte 1 110
byte 1 114
byte 1 101
byte 1 115
byte 1 112
byte 1 97
byte 1 119
byte 1 110
byte 1 0
align 1
LABELV $93
byte 1 51
byte 1 0
align 1
LABELV $92
byte 1 103
byte 1 95
byte 1 113
byte 1 117
byte 1 97
byte 1 100
byte 1 102
byte 1 97
byte 1 99
byte 1 116
byte 1 111
byte 1 114
byte 1 0
align 1
LABELV $91
byte 1 49
byte 1 48
byte 1 48
byte 1 48
byte 1 0
align 1
LABELV $90
byte 1 103
byte 1 95
byte 1 107
byte 1 110
byte 1 111
byte 1 99
byte 1 107
byte 1 98
byte 1 97
byte 1 99
byte 1 107
byte 1 0
align 1
LABELV $89
byte 1 56
byte 1 48
byte 1 48
byte 1 0
align 1
LABELV $88
byte 1 103
byte 1 95
byte 1 103
byte 1 114
byte 1 97
byte 1 118
byte 1 105
byte 1 116
byte 1 121
byte 1 0
align 1
LABELV $87
byte 1 51
byte 1 50
byte 1 48
byte 1 0
align 1
LABELV $86
byte 1 103
byte 1 95
byte 1 115
byte 1 112
byte 1 101
byte 1 101
byte 1 100
byte 1 0
align 1
LABELV $85
byte 1 100
byte 1 101
byte 1 100
byte 1 105
byte 1 99
byte 1 97
byte 1 116
byte 1 101
byte 1 100
byte 1 0
align 1
LABELV $84
byte 1 103
byte 1 95
byte 1 110
byte 1 101
byte 1 101
byte 1 100
byte 1 112
byte 1 97
byte 1 115
byte 1 115
byte 1 0
align 1
LABELV $83
byte 1 49
byte 1 0
align 1
LABELV $82
byte 1 103
byte 1 95
byte 1 102
byte 1 105
byte 1 108
byte 1 116
byte 1 101
byte 1 114
byte 1 66
byte 1 97
byte 1 110
byte 1 0
align 1
LABELV $81
byte 1 103
byte 1 95
byte 1 98
byte 1 97
byte 1 110
byte 1 73
byte 1 80
byte 1 115
byte 1 0
align 1
LABELV $80
byte 1 103
byte 1 95
byte 1 112
byte 1 97
byte 1 115
byte 1 115
byte 1 119
byte 1 111
byte 1 114
byte 1 100
byte 1 0
align 1
LABELV $79
byte 1 103
byte 1 95
byte 1 108
byte 1 111
byte 1 103
byte 1 115
byte 1 121
byte 1 110
byte 1 99
byte 1 0
align 1
LABELV $78
byte 1 103
byte 1 97
byte 1 109
byte 1 101
byte 1 115
byte 1 46
byte 1 108
byte 1 111
byte 1 103
byte 1 0
align 1
LABELV $77
byte 1 103
byte 1 95
byte 1 108
byte 1 111
byte 1 103
byte 1 0
align 1
LABELV $76
byte 1 103
byte 1 95
byte 1 100
byte 1 111
byte 1 87
byte 1 97
byte 1 114
byte 1 109
byte 1 117
byte 1 112
byte 1 0
align 1
LABELV $75
byte 1 103
byte 1 95
byte 1 119
byte 1 97
byte 1 114
byte 1 109
byte 1 117
byte 1 112
byte 1 0
align 1
LABELV $74
byte 1 103
byte 1 95
byte 1 116
byte 1 101
byte 1 97
byte 1 109
byte 1 70
byte 1 111
byte 1 114
byte 1 99
byte 1 101
byte 1 66
byte 1 97
byte 1 108
byte 1 97
byte 1 110
byte 1 99
byte 1 101
byte 1 0
align 1
LABELV $73
byte 1 103
byte 1 95
byte 1 116
byte 1 101
byte 1 97
byte 1 109
byte 1 65
byte 1 117
byte 1 116
byte 1 111
byte 1 74
byte 1 111
byte 1 105
byte 1 110
byte 1 0
align 1
LABELV $72
byte 1 103
byte 1 95
byte 1 102
byte 1 114
byte 1 105
byte 1 101
byte 1 110
byte 1 100
byte 1 108
byte 1 121
byte 1 70
byte 1 105
byte 1 114
byte 1 101
byte 1 0
align 1
LABELV $71
byte 1 103
byte 1 95
byte 1 115
byte 1 121
byte 1 110
byte 1 99
byte 1 104
byte 1 114
byte 1 111
byte 1 110
byte 1 111
byte 1 117
byte 1 115
byte 1 67
byte 1 108
byte 1 105
byte 1 101
byte 1 110
byte 1 116
byte 1 115
byte 1 0
align 1
LABELV $70
byte 1 99
byte 1 97
byte 1 112
byte 1 116
byte 1 117
byte 1 114
byte 1 101
byte 1 108
byte 1 105
byte 1 109
byte 1 105
byte 1 116
byte 1 0
align 1
LABELV $69
byte 1 116
byte 1 105
byte 1 109
byte 1 101
byte 1 108
byte 1 105
byte 1 109
byte 1 105
byte 1 116
byte 1 0
align 1
LABELV $68
byte 1 50
byte 1 48
byte 1 0
align 1
LABELV $67
byte 1 102
byte 1 114
byte 1 97
byte 1 103
byte 1 108
byte 1 105
byte 1 109
byte 1 105
byte 1 116
byte 1 0
align 1
LABELV $66
byte 1 100
byte 1 109
byte 1 102
byte 1 108
byte 1 97
byte 1 103
byte 1 115
byte 1 0
align 1
LABELV $65
byte 1 103
byte 1 95
byte 1 109
byte 1 97
byte 1 120
byte 1 71
byte 1 97
byte 1 109
byte 1 101
byte 1 67
byte 1 108
byte 1 105
byte 1 101
byte 1 110
byte 1 116
byte 1 115
byte 1 0
align 1
LABELV $64
byte 1 56
byte 1 0
align 1
LABELV $63
byte 1 115
byte 1 118
byte 1 95
byte 1 109
byte 1 97
byte 1 120
byte 1 99
byte 1 108
byte 1 105
byte 1 101
byte 1 110
byte 1 116
byte 1 115
byte 1 0
align 1
LABELV $62
byte 1 103
byte 1 95
byte 1 103
byte 1 97
byte 1 109
byte 1 101
byte 1 116
byte 1 121
byte 1 112
byte 1 101
byte 1 0
align 1
LABELV $61
byte 1 48
byte 1 0
align 1
LABELV $60
byte 1 103
byte 1 95
byte 1 114
byte 1 101
byte 1 115
byte 1 116
byte 1 97
byte 1 114
byte 1 116
byte 1 101
byte 1 100
byte 1 0
align 1
LABELV $59
byte 1 83
byte 1 101
byte 1 112
byte 1 32
byte 1 49
byte 1 54
byte 1 32
byte 1 50
byte 1 48
byte 1 49
byte 1 56
byte 1 0
align 1
LABELV $58
byte 1 103
byte 1 97
byte 1 109
byte 1 101
byte 1 100
byte 1 97
byte 1 116
byte 1 101
byte 1 0
align 1
LABELV $57
byte 1 98
byte 1 97
byte 1 115
byte 1 101
byte 1 113
byte 1 51
byte 1 0
align 1
LABELV $56
byte 1 103
byte 1 97
byte 1 109
byte 1 101
byte 1 110
byte 1 97
byte 1 109
byte 1 101
byte 1 0
align 1
LABELV $55
byte 1 0
align 1
LABELV $54
byte 1 115
byte 1 118
byte 1 95
byte 1 99
byte 1 104
byte 1 101
byte 1 97
byte 1 116
byte 1 115
byte 1 0
|
threadtest.asm | ray5273/os_project4 | 0 | 164465 |
_threadtest: file format elf32-i386
Disassembly of section .text:
00000000 <thread>:
#include "types.h"
#include "stat.h"
#include "user.h"
void *thread(void *arg){
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 18 sub $0x18,%esp
int tid = gettid(); //여기서 tid 는 pid
6: e8 84 04 00 00 call 48f <gettid>
b: 89 45 f4 mov %eax,-0xc(%ebp)
int pid = getpid();
e: e8 3c 04 00 00 call 44f <getpid>
13: 89 45 f0 mov %eax,-0x10(%ebp)
void *retval = (void *)0x87654321;
16: c7 45 ec 21 43 65 87 movl $0x87654321,-0x14(%ebp)
printf(1, "Thread tid %d(pid %d) is running, arg=0x%x, retval=0x%x\n", tid, pid, (int)arg, (int)retval);
1d: 8b 55 ec mov -0x14(%ebp),%edx
20: 8b 45 08 mov 0x8(%ebp),%eax
23: 83 ec 08 sub $0x8,%esp
26: 52 push %edx
27: 50 push %eax
28: ff 75 f0 pushl -0x10(%ebp)
2b: ff 75 f4 pushl -0xc(%ebp)
2e: 68 2c 09 00 00 push $0x92c
33: 6a 01 push $0x1
35: e8 3c 05 00 00 call 576 <printf>
3a: 83 c4 20 add $0x20,%esp
thread_exit(retval);
3d: 83 ec 0c sub $0xc,%esp
40: ff 75 ec pushl -0x14(%ebp)
43: e8 37 04 00 00 call 47f <thread_exit>
00000048 <main>:
}
int
main(int argc, char **argv)
{
48: 8d 4c 24 04 lea 0x4(%esp),%ecx
4c: 83 e4 f0 and $0xfffffff0,%esp
4f: ff 71 fc pushl -0x4(%ecx)
52: 55 push %ebp
53: 89 e5 mov %esp,%ebp
55: 51 push %ecx
56: 83 ec 14 sub $0x14,%esp
int tid = gettid(); // 여기서 tid는 proc->pid +1
59: e8 31 04 00 00 call 48f <gettid>
5e: 89 45 f4 mov %eax,-0xc(%ebp)
int pid = getpid();
61: e8 e9 03 00 00 call 44f <getpid>
66: 89 45 f0 mov %eax,-0x10(%ebp)
void *stack = malloc(4096);
69: 83 ec 0c sub $0xc,%esp
6c: 68 00 10 00 00 push $0x1000
71: e8 d3 07 00 00 call 849 <malloc>
76: 83 c4 10 add $0x10,%esp
79: 89 45 ec mov %eax,-0x14(%ebp)
void *retval;
printf(1,"stack: 0x%x\n",(int)stack);
7c: 8b 45 ec mov -0x14(%ebp),%eax
7f: 83 ec 04 sub $0x4,%esp
82: 50 push %eax
83: 68 65 09 00 00 push $0x965
88: 6a 01 push $0x1
8a: e8 e7 04 00 00 call 576 <printf>
8f: 83 c4 10 add $0x10,%esp
printf(1, "threadtest start\n");
92: 83 ec 08 sub $0x8,%esp
95: 68 72 09 00 00 push $0x972
9a: 6a 01 push $0x1
9c: e8 d5 04 00 00 call 576 <printf>
a1: 83 c4 10 add $0x10,%esp
printf(1, "Main thread: tid %d(pid %d) is running\n", tid, pid);
a4: ff 75 f0 pushl -0x10(%ebp)
a7: ff 75 f4 pushl -0xc(%ebp)
aa: 68 84 09 00 00 push $0x984
af: 6a 01 push $0x1
b1: e8 c0 04 00 00 call 576 <printf>
b6: 83 c4 10 add $0x10,%esp
tid = thread_create(thread, 20, (void *)0x12345678, stack);
b9: ff 75 ec pushl -0x14(%ebp)
bc: 68 78 56 34 12 push $0x12345678
c1: 6a 14 push $0x14
c3: 68 00 00 00 00 push $0x0
c8: e8 aa 03 00 00 call 477 <thread_create>
cd: 83 c4 10 add $0x10,%esp
d0: 89 45 f4 mov %eax,-0xc(%ebp)
if(tid == -1){
d3: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp)
d7: 75 25 jne fe <main+0xb6>
printf(1, "thread creation failed\n");
d9: 83 ec 08 sub $0x8,%esp
dc: 68 ac 09 00 00 push $0x9ac
e1: 6a 01 push $0x1
e3: e8 8e 04 00 00 call 576 <printf>
e8: 83 c4 10 add $0x10,%esp
free(stack);
eb: 83 ec 0c sub $0xc,%esp
ee: ff 75 ec pushl -0x14(%ebp)
f1: e8 11 06 00 00 call 707 <free>
f6: 83 c4 10 add $0x10,%esp
exit();
f9: e8 d1 02 00 00 call 3cf <exit>
}
printf(1,"after create , before join\n");
fe: 83 ec 08 sub $0x8,%esp
101: 68 c4 09 00 00 push $0x9c4
106: 6a 01 push $0x1
108: e8 69 04 00 00 call 576 <printf>
10d: 83 c4 10 add $0x10,%esp
if(thread_join(tid, &retval) == -1){
110: 83 ec 08 sub $0x8,%esp
113: 8d 45 e8 lea -0x18(%ebp),%eax
116: 50 push %eax
117: ff 75 f4 pushl -0xc(%ebp)
11a: e8 68 03 00 00 call 487 <thread_join>
11f: 83 c4 10 add $0x10,%esp
122: 83 f8 ff cmp $0xffffffff,%eax
125: 75 28 jne 14f <main+0x107>
printf(1, "thread %d join failed\n", tid);
127: 83 ec 04 sub $0x4,%esp
12a: ff 75 f4 pushl -0xc(%ebp)
12d: 68 e0 09 00 00 push $0x9e0
132: 6a 01 push $0x1
134: e8 3d 04 00 00 call 576 <printf>
139: 83 c4 10 add $0x10,%esp
free(stack);
13c: 83 ec 0c sub $0xc,%esp
13f: ff 75 ec pushl -0x14(%ebp)
142: e8 c0 05 00 00 call 707 <free>
147: 83 c4 10 add $0x10,%esp
exit();
14a: e8 80 02 00 00 call 3cf <exit>
}
free(stack);
14f: 83 ec 0c sub $0xc,%esp
152: ff 75 ec pushl -0x14(%ebp)
155: e8 ad 05 00 00 call 707 <free>
15a: 83 c4 10 add $0x10,%esp
printf(1, "Thread tid %d is terminated, retval: 0x%x\n", tid, (int)retval);
15d: 8b 45 e8 mov -0x18(%ebp),%eax
160: 50 push %eax
161: ff 75 f4 pushl -0xc(%ebp)
164: 68 f8 09 00 00 push $0x9f8
169: 6a 01 push $0x1
16b: e8 06 04 00 00 call 576 <printf>
170: 83 c4 10 add $0x10,%esp
exit();
173: e8 57 02 00 00 call 3cf <exit>
00000178 <stosb>:
"cc");
}
static inline void
stosb(void *addr, int data, int cnt)
{
178: 55 push %ebp
179: 89 e5 mov %esp,%ebp
17b: 57 push %edi
17c: 53 push %ebx
asm volatile("cld; rep stosb" :
17d: 8b 4d 08 mov 0x8(%ebp),%ecx
180: 8b 55 10 mov 0x10(%ebp),%edx
183: 8b 45 0c mov 0xc(%ebp),%eax
186: 89 cb mov %ecx,%ebx
188: 89 df mov %ebx,%edi
18a: 89 d1 mov %edx,%ecx
18c: fc cld
18d: f3 aa rep stos %al,%es:(%edi)
18f: 89 ca mov %ecx,%edx
191: 89 fb mov %edi,%ebx
193: 89 5d 08 mov %ebx,0x8(%ebp)
196: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
199: 90 nop
19a: 5b pop %ebx
19b: 5f pop %edi
19c: 5d pop %ebp
19d: c3 ret
0000019e <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
19e: 55 push %ebp
19f: 89 e5 mov %esp,%ebp
1a1: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
1a4: 8b 45 08 mov 0x8(%ebp),%eax
1a7: 89 45 fc mov %eax,-0x4(%ebp)
while((*s++ = *t++) != 0)
1aa: 90 nop
1ab: 8b 45 08 mov 0x8(%ebp),%eax
1ae: 8d 50 01 lea 0x1(%eax),%edx
1b1: 89 55 08 mov %edx,0x8(%ebp)
1b4: 8b 55 0c mov 0xc(%ebp),%edx
1b7: 8d 4a 01 lea 0x1(%edx),%ecx
1ba: 89 4d 0c mov %ecx,0xc(%ebp)
1bd: 0f b6 12 movzbl (%edx),%edx
1c0: 88 10 mov %dl,(%eax)
1c2: 0f b6 00 movzbl (%eax),%eax
1c5: 84 c0 test %al,%al
1c7: 75 e2 jne 1ab <strcpy+0xd>
;
return os;
1c9: 8b 45 fc mov -0x4(%ebp),%eax
}
1cc: c9 leave
1cd: c3 ret
000001ce <strcmp>:
int
strcmp(const char *p, const char *q)
{
1ce: 55 push %ebp
1cf: 89 e5 mov %esp,%ebp
while(*p && *p == *q)
1d1: eb 08 jmp 1db <strcmp+0xd>
p++, q++;
1d3: 83 45 08 01 addl $0x1,0x8(%ebp)
1d7: 83 45 0c 01 addl $0x1,0xc(%ebp)
}
int
strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
1db: 8b 45 08 mov 0x8(%ebp),%eax
1de: 0f b6 00 movzbl (%eax),%eax
1e1: 84 c0 test %al,%al
1e3: 74 10 je 1f5 <strcmp+0x27>
1e5: 8b 45 08 mov 0x8(%ebp),%eax
1e8: 0f b6 10 movzbl (%eax),%edx
1eb: 8b 45 0c mov 0xc(%ebp),%eax
1ee: 0f b6 00 movzbl (%eax),%eax
1f1: 38 c2 cmp %al,%dl
1f3: 74 de je 1d3 <strcmp+0x5>
p++, q++;
return (uchar)*p - (uchar)*q;
1f5: 8b 45 08 mov 0x8(%ebp),%eax
1f8: 0f b6 00 movzbl (%eax),%eax
1fb: 0f b6 d0 movzbl %al,%edx
1fe: 8b 45 0c mov 0xc(%ebp),%eax
201: 0f b6 00 movzbl (%eax),%eax
204: 0f b6 c0 movzbl %al,%eax
207: 29 c2 sub %eax,%edx
209: 89 d0 mov %edx,%eax
}
20b: 5d pop %ebp
20c: c3 ret
0000020d <strlen>:
uint
strlen(char *s)
{
20d: 55 push %ebp
20e: 89 e5 mov %esp,%ebp
210: 83 ec 10 sub $0x10,%esp
int n;
for(n = 0; s[n]; n++)
213: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
21a: eb 04 jmp 220 <strlen+0x13>
21c: 83 45 fc 01 addl $0x1,-0x4(%ebp)
220: 8b 55 fc mov -0x4(%ebp),%edx
223: 8b 45 08 mov 0x8(%ebp),%eax
226: 01 d0 add %edx,%eax
228: 0f b6 00 movzbl (%eax),%eax
22b: 84 c0 test %al,%al
22d: 75 ed jne 21c <strlen+0xf>
;
return n;
22f: 8b 45 fc mov -0x4(%ebp),%eax
}
232: c9 leave
233: c3 ret
00000234 <memset>:
void*
memset(void *dst, int c, uint n)
{
234: 55 push %ebp
235: 89 e5 mov %esp,%ebp
stosb(dst, c, n);
237: 8b 45 10 mov 0x10(%ebp),%eax
23a: 50 push %eax
23b: ff 75 0c pushl 0xc(%ebp)
23e: ff 75 08 pushl 0x8(%ebp)
241: e8 32 ff ff ff call 178 <stosb>
246: 83 c4 0c add $0xc,%esp
return dst;
249: 8b 45 08 mov 0x8(%ebp),%eax
}
24c: c9 leave
24d: c3 ret
0000024e <strchr>:
char*
strchr(const char *s, char c)
{
24e: 55 push %ebp
24f: 89 e5 mov %esp,%ebp
251: 83 ec 04 sub $0x4,%esp
254: 8b 45 0c mov 0xc(%ebp),%eax
257: 88 45 fc mov %al,-0x4(%ebp)
for(; *s; s++)
25a: eb 14 jmp 270 <strchr+0x22>
if(*s == c)
25c: 8b 45 08 mov 0x8(%ebp),%eax
25f: 0f b6 00 movzbl (%eax),%eax
262: 3a 45 fc cmp -0x4(%ebp),%al
265: 75 05 jne 26c <strchr+0x1e>
return (char*)s;
267: 8b 45 08 mov 0x8(%ebp),%eax
26a: eb 13 jmp 27f <strchr+0x31>
}
char*
strchr(const char *s, char c)
{
for(; *s; s++)
26c: 83 45 08 01 addl $0x1,0x8(%ebp)
270: 8b 45 08 mov 0x8(%ebp),%eax
273: 0f b6 00 movzbl (%eax),%eax
276: 84 c0 test %al,%al
278: 75 e2 jne 25c <strchr+0xe>
if(*s == c)
return (char*)s;
return 0;
27a: b8 00 00 00 00 mov $0x0,%eax
}
27f: c9 leave
280: c3 ret
00000281 <gets>:
char*
gets(char *buf, int max)
{
281: 55 push %ebp
282: 89 e5 mov %esp,%ebp
284: 83 ec 18 sub $0x18,%esp
int i, cc;
char c;
for(i=0; i+1 < max; ){
287: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
28e: eb 42 jmp 2d2 <gets+0x51>
cc = read(0, &c, 1);
290: 83 ec 04 sub $0x4,%esp
293: 6a 01 push $0x1
295: 8d 45 ef lea -0x11(%ebp),%eax
298: 50 push %eax
299: 6a 00 push $0x0
29b: e8 47 01 00 00 call 3e7 <read>
2a0: 83 c4 10 add $0x10,%esp
2a3: 89 45 f0 mov %eax,-0x10(%ebp)
if(cc < 1)
2a6: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
2aa: 7e 33 jle 2df <gets+0x5e>
break;
buf[i++] = c;
2ac: 8b 45 f4 mov -0xc(%ebp),%eax
2af: 8d 50 01 lea 0x1(%eax),%edx
2b2: 89 55 f4 mov %edx,-0xc(%ebp)
2b5: 89 c2 mov %eax,%edx
2b7: 8b 45 08 mov 0x8(%ebp),%eax
2ba: 01 c2 add %eax,%edx
2bc: 0f b6 45 ef movzbl -0x11(%ebp),%eax
2c0: 88 02 mov %al,(%edx)
if(c == '\n' || c == '\r')
2c2: 0f b6 45 ef movzbl -0x11(%ebp),%eax
2c6: 3c 0a cmp $0xa,%al
2c8: 74 16 je 2e0 <gets+0x5f>
2ca: 0f b6 45 ef movzbl -0x11(%ebp),%eax
2ce: 3c 0d cmp $0xd,%al
2d0: 74 0e je 2e0 <gets+0x5f>
gets(char *buf, int max)
{
int i, cc;
char c;
for(i=0; i+1 < max; ){
2d2: 8b 45 f4 mov -0xc(%ebp),%eax
2d5: 83 c0 01 add $0x1,%eax
2d8: 3b 45 0c cmp 0xc(%ebp),%eax
2db: 7c b3 jl 290 <gets+0xf>
2dd: eb 01 jmp 2e0 <gets+0x5f>
cc = read(0, &c, 1);
if(cc < 1)
break;
2df: 90 nop
buf[i++] = c;
if(c == '\n' || c == '\r')
break;
}
buf[i] = '\0';
2e0: 8b 55 f4 mov -0xc(%ebp),%edx
2e3: 8b 45 08 mov 0x8(%ebp),%eax
2e6: 01 d0 add %edx,%eax
2e8: c6 00 00 movb $0x0,(%eax)
return buf;
2eb: 8b 45 08 mov 0x8(%ebp),%eax
}
2ee: c9 leave
2ef: c3 ret
000002f0 <stat>:
int
stat(char *n, struct stat *st)
{
2f0: 55 push %ebp
2f1: 89 e5 mov %esp,%ebp
2f3: 83 ec 18 sub $0x18,%esp
int fd;
int r;
fd = open(n, O_RDONLY);
2f6: 83 ec 08 sub $0x8,%esp
2f9: 6a 00 push $0x0
2fb: ff 75 08 pushl 0x8(%ebp)
2fe: e8 0c 01 00 00 call 40f <open>
303: 83 c4 10 add $0x10,%esp
306: 89 45 f4 mov %eax,-0xc(%ebp)
if(fd < 0)
309: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
30d: 79 07 jns 316 <stat+0x26>
return -1;
30f: b8 ff ff ff ff mov $0xffffffff,%eax
314: eb 25 jmp 33b <stat+0x4b>
r = fstat(fd, st);
316: 83 ec 08 sub $0x8,%esp
319: ff 75 0c pushl 0xc(%ebp)
31c: ff 75 f4 pushl -0xc(%ebp)
31f: e8 03 01 00 00 call 427 <fstat>
324: 83 c4 10 add $0x10,%esp
327: 89 45 f0 mov %eax,-0x10(%ebp)
close(fd);
32a: 83 ec 0c sub $0xc,%esp
32d: ff 75 f4 pushl -0xc(%ebp)
330: e8 c2 00 00 00 call 3f7 <close>
335: 83 c4 10 add $0x10,%esp
return r;
338: 8b 45 f0 mov -0x10(%ebp),%eax
}
33b: c9 leave
33c: c3 ret
0000033d <atoi>:
int
atoi(const char *s)
{
33d: 55 push %ebp
33e: 89 e5 mov %esp,%ebp
340: 83 ec 10 sub $0x10,%esp
int n;
n = 0;
343: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
while('0' <= *s && *s <= '9')
34a: eb 25 jmp 371 <atoi+0x34>
n = n*10 + *s++ - '0';
34c: 8b 55 fc mov -0x4(%ebp),%edx
34f: 89 d0 mov %edx,%eax
351: c1 e0 02 shl $0x2,%eax
354: 01 d0 add %edx,%eax
356: 01 c0 add %eax,%eax
358: 89 c1 mov %eax,%ecx
35a: 8b 45 08 mov 0x8(%ebp),%eax
35d: 8d 50 01 lea 0x1(%eax),%edx
360: 89 55 08 mov %edx,0x8(%ebp)
363: 0f b6 00 movzbl (%eax),%eax
366: 0f be c0 movsbl %al,%eax
369: 01 c8 add %ecx,%eax
36b: 83 e8 30 sub $0x30,%eax
36e: 89 45 fc mov %eax,-0x4(%ebp)
atoi(const char *s)
{
int n;
n = 0;
while('0' <= *s && *s <= '9')
371: 8b 45 08 mov 0x8(%ebp),%eax
374: 0f b6 00 movzbl (%eax),%eax
377: 3c 2f cmp $0x2f,%al
379: 7e 0a jle 385 <atoi+0x48>
37b: 8b 45 08 mov 0x8(%ebp),%eax
37e: 0f b6 00 movzbl (%eax),%eax
381: 3c 39 cmp $0x39,%al
383: 7e c7 jle 34c <atoi+0xf>
n = n*10 + *s++ - '0';
return n;
385: 8b 45 fc mov -0x4(%ebp),%eax
}
388: c9 leave
389: c3 ret
0000038a <memmove>:
void*
memmove(void *vdst, void *vsrc, int n)
{
38a: 55 push %ebp
38b: 89 e5 mov %esp,%ebp
38d: 83 ec 10 sub $0x10,%esp
char *dst, *src;
dst = vdst;
390: 8b 45 08 mov 0x8(%ebp),%eax
393: 89 45 fc mov %eax,-0x4(%ebp)
src = vsrc;
396: 8b 45 0c mov 0xc(%ebp),%eax
399: 89 45 f8 mov %eax,-0x8(%ebp)
while(n-- > 0)
39c: eb 17 jmp 3b5 <memmove+0x2b>
*dst++ = *src++;
39e: 8b 45 fc mov -0x4(%ebp),%eax
3a1: 8d 50 01 lea 0x1(%eax),%edx
3a4: 89 55 fc mov %edx,-0x4(%ebp)
3a7: 8b 55 f8 mov -0x8(%ebp),%edx
3aa: 8d 4a 01 lea 0x1(%edx),%ecx
3ad: 89 4d f8 mov %ecx,-0x8(%ebp)
3b0: 0f b6 12 movzbl (%edx),%edx
3b3: 88 10 mov %dl,(%eax)
{
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
3b5: 8b 45 10 mov 0x10(%ebp),%eax
3b8: 8d 50 ff lea -0x1(%eax),%edx
3bb: 89 55 10 mov %edx,0x10(%ebp)
3be: 85 c0 test %eax,%eax
3c0: 7f dc jg 39e <memmove+0x14>
*dst++ = *src++;
return vdst;
3c2: 8b 45 08 mov 0x8(%ebp),%eax
}
3c5: c9 leave
3c6: c3 ret
000003c7 <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
3c7: b8 01 00 00 00 mov $0x1,%eax
3cc: cd 40 int $0x40
3ce: c3 ret
000003cf <exit>:
SYSCALL(exit)
3cf: b8 02 00 00 00 mov $0x2,%eax
3d4: cd 40 int $0x40
3d6: c3 ret
000003d7 <wait>:
SYSCALL(wait)
3d7: b8 03 00 00 00 mov $0x3,%eax
3dc: cd 40 int $0x40
3de: c3 ret
000003df <pipe>:
SYSCALL(pipe)
3df: b8 04 00 00 00 mov $0x4,%eax
3e4: cd 40 int $0x40
3e6: c3 ret
000003e7 <read>:
SYSCALL(read)
3e7: b8 05 00 00 00 mov $0x5,%eax
3ec: cd 40 int $0x40
3ee: c3 ret
000003ef <write>:
SYSCALL(write)
3ef: b8 10 00 00 00 mov $0x10,%eax
3f4: cd 40 int $0x40
3f6: c3 ret
000003f7 <close>:
SYSCALL(close)
3f7: b8 15 00 00 00 mov $0x15,%eax
3fc: cd 40 int $0x40
3fe: c3 ret
000003ff <kill>:
SYSCALL(kill)
3ff: b8 06 00 00 00 mov $0x6,%eax
404: cd 40 int $0x40
406: c3 ret
00000407 <exec>:
SYSCALL(exec)
407: b8 07 00 00 00 mov $0x7,%eax
40c: cd 40 int $0x40
40e: c3 ret
0000040f <open>:
SYSCALL(open)
40f: b8 0f 00 00 00 mov $0xf,%eax
414: cd 40 int $0x40
416: c3 ret
00000417 <mknod>:
SYSCALL(mknod)
417: b8 11 00 00 00 mov $0x11,%eax
41c: cd 40 int $0x40
41e: c3 ret
0000041f <unlink>:
SYSCALL(unlink)
41f: b8 12 00 00 00 mov $0x12,%eax
424: cd 40 int $0x40
426: c3 ret
00000427 <fstat>:
SYSCALL(fstat)
427: b8 08 00 00 00 mov $0x8,%eax
42c: cd 40 int $0x40
42e: c3 ret
0000042f <link>:
SYSCALL(link)
42f: b8 13 00 00 00 mov $0x13,%eax
434: cd 40 int $0x40
436: c3 ret
00000437 <mkdir>:
SYSCALL(mkdir)
437: b8 14 00 00 00 mov $0x14,%eax
43c: cd 40 int $0x40
43e: c3 ret
0000043f <chdir>:
SYSCALL(chdir)
43f: b8 09 00 00 00 mov $0x9,%eax
444: cd 40 int $0x40
446: c3 ret
00000447 <dup>:
SYSCALL(dup)
447: b8 0a 00 00 00 mov $0xa,%eax
44c: cd 40 int $0x40
44e: c3 ret
0000044f <getpid>:
SYSCALL(getpid)
44f: b8 0b 00 00 00 mov $0xb,%eax
454: cd 40 int $0x40
456: c3 ret
00000457 <sbrk>:
SYSCALL(sbrk)
457: b8 0c 00 00 00 mov $0xc,%eax
45c: cd 40 int $0x40
45e: c3 ret
0000045f <sleep>:
SYSCALL(sleep)
45f: b8 0d 00 00 00 mov $0xd,%eax
464: cd 40 int $0x40
466: c3 ret
00000467 <uptime>:
SYSCALL(uptime)
467: b8 0e 00 00 00 mov $0xe,%eax
46c: cd 40 int $0x40
46e: c3 ret
0000046f <halt>:
SYSCALL(halt)
46f: b8 16 00 00 00 mov $0x16,%eax
474: cd 40 int $0x40
476: c3 ret
00000477 <thread_create>:
SYSCALL(thread_create)
477: b8 17 00 00 00 mov $0x17,%eax
47c: cd 40 int $0x40
47e: c3 ret
0000047f <thread_exit>:
SYSCALL(thread_exit)
47f: b8 18 00 00 00 mov $0x18,%eax
484: cd 40 int $0x40
486: c3 ret
00000487 <thread_join>:
SYSCALL(thread_join)
487: b8 19 00 00 00 mov $0x19,%eax
48c: cd 40 int $0x40
48e: c3 ret
0000048f <gettid>:
SYSCALL(gettid)
48f: b8 1a 00 00 00 mov $0x1a,%eax
494: cd 40 int $0x40
496: c3 ret
00000497 <clone>:
SYSCALL(clone)
497: b8 1b 00 00 00 mov $0x1b,%eax
49c: cd 40 int $0x40
49e: c3 ret
0000049f <putc>:
#include "stat.h"
#include "user.h"
static void
putc(int fd, char c)
{
49f: 55 push %ebp
4a0: 89 e5 mov %esp,%ebp
4a2: 83 ec 18 sub $0x18,%esp
4a5: 8b 45 0c mov 0xc(%ebp),%eax
4a8: 88 45 f4 mov %al,-0xc(%ebp)
write(fd, &c, 1);
4ab: 83 ec 04 sub $0x4,%esp
4ae: 6a 01 push $0x1
4b0: 8d 45 f4 lea -0xc(%ebp),%eax
4b3: 50 push %eax
4b4: ff 75 08 pushl 0x8(%ebp)
4b7: e8 33 ff ff ff call 3ef <write>
4bc: 83 c4 10 add $0x10,%esp
}
4bf: 90 nop
4c0: c9 leave
4c1: c3 ret
000004c2 <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
4c2: 55 push %ebp
4c3: 89 e5 mov %esp,%ebp
4c5: 53 push %ebx
4c6: 83 ec 24 sub $0x24,%esp
static char digits[] = "0123456789ABCDEF";
char buf[16];
int i, neg;
uint x;
neg = 0;
4c9: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
if(sgn && xx < 0){
4d0: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
4d4: 74 17 je 4ed <printint+0x2b>
4d6: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
4da: 79 11 jns 4ed <printint+0x2b>
neg = 1;
4dc: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp)
x = -xx;
4e3: 8b 45 0c mov 0xc(%ebp),%eax
4e6: f7 d8 neg %eax
4e8: 89 45 ec mov %eax,-0x14(%ebp)
4eb: eb 06 jmp 4f3 <printint+0x31>
} else {
x = xx;
4ed: 8b 45 0c mov 0xc(%ebp),%eax
4f0: 89 45 ec mov %eax,-0x14(%ebp)
}
i = 0;
4f3: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
do{
buf[i++] = digits[x % base];
4fa: 8b 4d f4 mov -0xc(%ebp),%ecx
4fd: 8d 41 01 lea 0x1(%ecx),%eax
500: 89 45 f4 mov %eax,-0xc(%ebp)
503: 8b 5d 10 mov 0x10(%ebp),%ebx
506: 8b 45 ec mov -0x14(%ebp),%eax
509: ba 00 00 00 00 mov $0x0,%edx
50e: f7 f3 div %ebx
510: 89 d0 mov %edx,%eax
512: 0f b6 80 90 0c 00 00 movzbl 0xc90(%eax),%eax
519: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1)
}while((x /= base) != 0);
51d: 8b 5d 10 mov 0x10(%ebp),%ebx
520: 8b 45 ec mov -0x14(%ebp),%eax
523: ba 00 00 00 00 mov $0x0,%edx
528: f7 f3 div %ebx
52a: 89 45 ec mov %eax,-0x14(%ebp)
52d: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
531: 75 c7 jne 4fa <printint+0x38>
if(neg)
533: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
537: 74 2d je 566 <printint+0xa4>
buf[i++] = '-';
539: 8b 45 f4 mov -0xc(%ebp),%eax
53c: 8d 50 01 lea 0x1(%eax),%edx
53f: 89 55 f4 mov %edx,-0xc(%ebp)
542: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1)
while(--i >= 0)
547: eb 1d jmp 566 <printint+0xa4>
putc(fd, buf[i]);
549: 8d 55 dc lea -0x24(%ebp),%edx
54c: 8b 45 f4 mov -0xc(%ebp),%eax
54f: 01 d0 add %edx,%eax
551: 0f b6 00 movzbl (%eax),%eax
554: 0f be c0 movsbl %al,%eax
557: 83 ec 08 sub $0x8,%esp
55a: 50 push %eax
55b: ff 75 08 pushl 0x8(%ebp)
55e: e8 3c ff ff ff call 49f <putc>
563: 83 c4 10 add $0x10,%esp
buf[i++] = digits[x % base];
}while((x /= base) != 0);
if(neg)
buf[i++] = '-';
while(--i >= 0)
566: 83 6d f4 01 subl $0x1,-0xc(%ebp)
56a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
56e: 79 d9 jns 549 <printint+0x87>
putc(fd, buf[i]);
}
570: 90 nop
571: 8b 5d fc mov -0x4(%ebp),%ebx
574: c9 leave
575: c3 ret
00000576 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
576: 55 push %ebp
577: 89 e5 mov %esp,%ebp
579: 83 ec 28 sub $0x28,%esp
char *s;
int c, i, state;
uint *ap;
state = 0;
57c: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
ap = (uint*)(void*)&fmt + 1;
583: 8d 45 0c lea 0xc(%ebp),%eax
586: 83 c0 04 add $0x4,%eax
589: 89 45 e8 mov %eax,-0x18(%ebp)
for(i = 0; fmt[i]; i++){
58c: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
593: e9 59 01 00 00 jmp 6f1 <printf+0x17b>
c = fmt[i] & 0xff;
598: 8b 55 0c mov 0xc(%ebp),%edx
59b: 8b 45 f0 mov -0x10(%ebp),%eax
59e: 01 d0 add %edx,%eax
5a0: 0f b6 00 movzbl (%eax),%eax
5a3: 0f be c0 movsbl %al,%eax
5a6: 25 ff 00 00 00 and $0xff,%eax
5ab: 89 45 e4 mov %eax,-0x1c(%ebp)
if(state == 0){
5ae: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
5b2: 75 2c jne 5e0 <printf+0x6a>
if(c == '%'){
5b4: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
5b8: 75 0c jne 5c6 <printf+0x50>
state = '%';
5ba: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp)
5c1: e9 27 01 00 00 jmp 6ed <printf+0x177>
} else {
putc(fd, c);
5c6: 8b 45 e4 mov -0x1c(%ebp),%eax
5c9: 0f be c0 movsbl %al,%eax
5cc: 83 ec 08 sub $0x8,%esp
5cf: 50 push %eax
5d0: ff 75 08 pushl 0x8(%ebp)
5d3: e8 c7 fe ff ff call 49f <putc>
5d8: 83 c4 10 add $0x10,%esp
5db: e9 0d 01 00 00 jmp 6ed <printf+0x177>
}
} else if(state == '%'){
5e0: 83 7d ec 25 cmpl $0x25,-0x14(%ebp)
5e4: 0f 85 03 01 00 00 jne 6ed <printf+0x177>
if(c == 'd'){
5ea: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp)
5ee: 75 1e jne 60e <printf+0x98>
printint(fd, *ap, 10, 1);
5f0: 8b 45 e8 mov -0x18(%ebp),%eax
5f3: 8b 00 mov (%eax),%eax
5f5: 6a 01 push $0x1
5f7: 6a 0a push $0xa
5f9: 50 push %eax
5fa: ff 75 08 pushl 0x8(%ebp)
5fd: e8 c0 fe ff ff call 4c2 <printint>
602: 83 c4 10 add $0x10,%esp
ap++;
605: 83 45 e8 04 addl $0x4,-0x18(%ebp)
609: e9 d8 00 00 00 jmp 6e6 <printf+0x170>
} else if(c == 'x' || c == 'p'){
60e: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp)
612: 74 06 je 61a <printf+0xa4>
614: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp)
618: 75 1e jne 638 <printf+0xc2>
printint(fd, *ap, 16, 0);
61a: 8b 45 e8 mov -0x18(%ebp),%eax
61d: 8b 00 mov (%eax),%eax
61f: 6a 00 push $0x0
621: 6a 10 push $0x10
623: 50 push %eax
624: ff 75 08 pushl 0x8(%ebp)
627: e8 96 fe ff ff call 4c2 <printint>
62c: 83 c4 10 add $0x10,%esp
ap++;
62f: 83 45 e8 04 addl $0x4,-0x18(%ebp)
633: e9 ae 00 00 00 jmp 6e6 <printf+0x170>
} else if(c == 's'){
638: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp)
63c: 75 43 jne 681 <printf+0x10b>
s = (char*)*ap;
63e: 8b 45 e8 mov -0x18(%ebp),%eax
641: 8b 00 mov (%eax),%eax
643: 89 45 f4 mov %eax,-0xc(%ebp)
ap++;
646: 83 45 e8 04 addl $0x4,-0x18(%ebp)
if(s == 0)
64a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
64e: 75 25 jne 675 <printf+0xff>
s = "(null)";
650: c7 45 f4 23 0a 00 00 movl $0xa23,-0xc(%ebp)
while(*s != 0){
657: eb 1c jmp 675 <printf+0xff>
putc(fd, *s);
659: 8b 45 f4 mov -0xc(%ebp),%eax
65c: 0f b6 00 movzbl (%eax),%eax
65f: 0f be c0 movsbl %al,%eax
662: 83 ec 08 sub $0x8,%esp
665: 50 push %eax
666: ff 75 08 pushl 0x8(%ebp)
669: e8 31 fe ff ff call 49f <putc>
66e: 83 c4 10 add $0x10,%esp
s++;
671: 83 45 f4 01 addl $0x1,-0xc(%ebp)
} else if(c == 's'){
s = (char*)*ap;
ap++;
if(s == 0)
s = "(null)";
while(*s != 0){
675: 8b 45 f4 mov -0xc(%ebp),%eax
678: 0f b6 00 movzbl (%eax),%eax
67b: 84 c0 test %al,%al
67d: 75 da jne 659 <printf+0xe3>
67f: eb 65 jmp 6e6 <printf+0x170>
putc(fd, *s);
s++;
}
} else if(c == 'c'){
681: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp)
685: 75 1d jne 6a4 <printf+0x12e>
putc(fd, *ap);
687: 8b 45 e8 mov -0x18(%ebp),%eax
68a: 8b 00 mov (%eax),%eax
68c: 0f be c0 movsbl %al,%eax
68f: 83 ec 08 sub $0x8,%esp
692: 50 push %eax
693: ff 75 08 pushl 0x8(%ebp)
696: e8 04 fe ff ff call 49f <putc>
69b: 83 c4 10 add $0x10,%esp
ap++;
69e: 83 45 e8 04 addl $0x4,-0x18(%ebp)
6a2: eb 42 jmp 6e6 <printf+0x170>
} else if(c == '%'){
6a4: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
6a8: 75 17 jne 6c1 <printf+0x14b>
putc(fd, c);
6aa: 8b 45 e4 mov -0x1c(%ebp),%eax
6ad: 0f be c0 movsbl %al,%eax
6b0: 83 ec 08 sub $0x8,%esp
6b3: 50 push %eax
6b4: ff 75 08 pushl 0x8(%ebp)
6b7: e8 e3 fd ff ff call 49f <putc>
6bc: 83 c4 10 add $0x10,%esp
6bf: eb 25 jmp 6e6 <printf+0x170>
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
6c1: 83 ec 08 sub $0x8,%esp
6c4: 6a 25 push $0x25
6c6: ff 75 08 pushl 0x8(%ebp)
6c9: e8 d1 fd ff ff call 49f <putc>
6ce: 83 c4 10 add $0x10,%esp
putc(fd, c);
6d1: 8b 45 e4 mov -0x1c(%ebp),%eax
6d4: 0f be c0 movsbl %al,%eax
6d7: 83 ec 08 sub $0x8,%esp
6da: 50 push %eax
6db: ff 75 08 pushl 0x8(%ebp)
6de: e8 bc fd ff ff call 49f <putc>
6e3: 83 c4 10 add $0x10,%esp
}
state = 0;
6e6: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
6ed: 83 45 f0 01 addl $0x1,-0x10(%ebp)
6f1: 8b 55 0c mov 0xc(%ebp),%edx
6f4: 8b 45 f0 mov -0x10(%ebp),%eax
6f7: 01 d0 add %edx,%eax
6f9: 0f b6 00 movzbl (%eax),%eax
6fc: 84 c0 test %al,%al
6fe: 0f 85 94 fe ff ff jne 598 <printf+0x22>
putc(fd, c);
}
state = 0;
}
}
}
704: 90 nop
705: c9 leave
706: c3 ret
00000707 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
707: 55 push %ebp
708: 89 e5 mov %esp,%ebp
70a: 83 ec 10 sub $0x10,%esp
Header *bp, *p;
bp = (Header*)ap - 1;
70d: 8b 45 08 mov 0x8(%ebp),%eax
710: 83 e8 08 sub $0x8,%eax
713: 89 45 f8 mov %eax,-0x8(%ebp)
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
716: a1 ac 0c 00 00 mov 0xcac,%eax
71b: 89 45 fc mov %eax,-0x4(%ebp)
71e: eb 24 jmp 744 <free+0x3d>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
720: 8b 45 fc mov -0x4(%ebp),%eax
723: 8b 00 mov (%eax),%eax
725: 3b 45 fc cmp -0x4(%ebp),%eax
728: 77 12 ja 73c <free+0x35>
72a: 8b 45 f8 mov -0x8(%ebp),%eax
72d: 3b 45 fc cmp -0x4(%ebp),%eax
730: 77 24 ja 756 <free+0x4f>
732: 8b 45 fc mov -0x4(%ebp),%eax
735: 8b 00 mov (%eax),%eax
737: 3b 45 f8 cmp -0x8(%ebp),%eax
73a: 77 1a ja 756 <free+0x4f>
free(void *ap)
{
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
73c: 8b 45 fc mov -0x4(%ebp),%eax
73f: 8b 00 mov (%eax),%eax
741: 89 45 fc mov %eax,-0x4(%ebp)
744: 8b 45 f8 mov -0x8(%ebp),%eax
747: 3b 45 fc cmp -0x4(%ebp),%eax
74a: 76 d4 jbe 720 <free+0x19>
74c: 8b 45 fc mov -0x4(%ebp),%eax
74f: 8b 00 mov (%eax),%eax
751: 3b 45 f8 cmp -0x8(%ebp),%eax
754: 76 ca jbe 720 <free+0x19>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
756: 8b 45 f8 mov -0x8(%ebp),%eax
759: 8b 40 04 mov 0x4(%eax),%eax
75c: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
763: 8b 45 f8 mov -0x8(%ebp),%eax
766: 01 c2 add %eax,%edx
768: 8b 45 fc mov -0x4(%ebp),%eax
76b: 8b 00 mov (%eax),%eax
76d: 39 c2 cmp %eax,%edx
76f: 75 24 jne 795 <free+0x8e>
bp->s.size += p->s.ptr->s.size;
771: 8b 45 f8 mov -0x8(%ebp),%eax
774: 8b 50 04 mov 0x4(%eax),%edx
777: 8b 45 fc mov -0x4(%ebp),%eax
77a: 8b 00 mov (%eax),%eax
77c: 8b 40 04 mov 0x4(%eax),%eax
77f: 01 c2 add %eax,%edx
781: 8b 45 f8 mov -0x8(%ebp),%eax
784: 89 50 04 mov %edx,0x4(%eax)
bp->s.ptr = p->s.ptr->s.ptr;
787: 8b 45 fc mov -0x4(%ebp),%eax
78a: 8b 00 mov (%eax),%eax
78c: 8b 10 mov (%eax),%edx
78e: 8b 45 f8 mov -0x8(%ebp),%eax
791: 89 10 mov %edx,(%eax)
793: eb 0a jmp 79f <free+0x98>
} else
bp->s.ptr = p->s.ptr;
795: 8b 45 fc mov -0x4(%ebp),%eax
798: 8b 10 mov (%eax),%edx
79a: 8b 45 f8 mov -0x8(%ebp),%eax
79d: 89 10 mov %edx,(%eax)
if(p + p->s.size == bp){
79f: 8b 45 fc mov -0x4(%ebp),%eax
7a2: 8b 40 04 mov 0x4(%eax),%eax
7a5: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
7ac: 8b 45 fc mov -0x4(%ebp),%eax
7af: 01 d0 add %edx,%eax
7b1: 3b 45 f8 cmp -0x8(%ebp),%eax
7b4: 75 20 jne 7d6 <free+0xcf>
p->s.size += bp->s.size;
7b6: 8b 45 fc mov -0x4(%ebp),%eax
7b9: 8b 50 04 mov 0x4(%eax),%edx
7bc: 8b 45 f8 mov -0x8(%ebp),%eax
7bf: 8b 40 04 mov 0x4(%eax),%eax
7c2: 01 c2 add %eax,%edx
7c4: 8b 45 fc mov -0x4(%ebp),%eax
7c7: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
7ca: 8b 45 f8 mov -0x8(%ebp),%eax
7cd: 8b 10 mov (%eax),%edx
7cf: 8b 45 fc mov -0x4(%ebp),%eax
7d2: 89 10 mov %edx,(%eax)
7d4: eb 08 jmp 7de <free+0xd7>
} else
p->s.ptr = bp;
7d6: 8b 45 fc mov -0x4(%ebp),%eax
7d9: 8b 55 f8 mov -0x8(%ebp),%edx
7dc: 89 10 mov %edx,(%eax)
freep = p;
7de: 8b 45 fc mov -0x4(%ebp),%eax
7e1: a3 ac 0c 00 00 mov %eax,0xcac
}
7e6: 90 nop
7e7: c9 leave
7e8: c3 ret
000007e9 <morecore>:
static Header*
morecore(uint nu)
{
7e9: 55 push %ebp
7ea: 89 e5 mov %esp,%ebp
7ec: 83 ec 18 sub $0x18,%esp
char *p;
Header *hp;
if(nu < 4096)
7ef: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp)
7f6: 77 07 ja 7ff <morecore+0x16>
nu = 4096;
7f8: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp)
p = sbrk(nu * sizeof(Header));
7ff: 8b 45 08 mov 0x8(%ebp),%eax
802: c1 e0 03 shl $0x3,%eax
805: 83 ec 0c sub $0xc,%esp
808: 50 push %eax
809: e8 49 fc ff ff call 457 <sbrk>
80e: 83 c4 10 add $0x10,%esp
811: 89 45 f4 mov %eax,-0xc(%ebp)
if(p == (char*)-1)
814: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp)
818: 75 07 jne 821 <morecore+0x38>
return 0;
81a: b8 00 00 00 00 mov $0x0,%eax
81f: eb 26 jmp 847 <morecore+0x5e>
hp = (Header*)p;
821: 8b 45 f4 mov -0xc(%ebp),%eax
824: 89 45 f0 mov %eax,-0x10(%ebp)
hp->s.size = nu;
827: 8b 45 f0 mov -0x10(%ebp),%eax
82a: 8b 55 08 mov 0x8(%ebp),%edx
82d: 89 50 04 mov %edx,0x4(%eax)
free((void*)(hp + 1));
830: 8b 45 f0 mov -0x10(%ebp),%eax
833: 83 c0 08 add $0x8,%eax
836: 83 ec 0c sub $0xc,%esp
839: 50 push %eax
83a: e8 c8 fe ff ff call 707 <free>
83f: 83 c4 10 add $0x10,%esp
return freep;
842: a1 ac 0c 00 00 mov 0xcac,%eax
}
847: c9 leave
848: c3 ret
00000849 <malloc>:
void*
malloc(uint nbytes)
{
849: 55 push %ebp
84a: 89 e5 mov %esp,%ebp
84c: 83 ec 18 sub $0x18,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
84f: 8b 45 08 mov 0x8(%ebp),%eax
852: 83 c0 07 add $0x7,%eax
855: c1 e8 03 shr $0x3,%eax
858: 83 c0 01 add $0x1,%eax
85b: 89 45 ec mov %eax,-0x14(%ebp)
if((prevp = freep) == 0){
85e: a1 ac 0c 00 00 mov 0xcac,%eax
863: 89 45 f0 mov %eax,-0x10(%ebp)
866: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
86a: 75 23 jne 88f <malloc+0x46>
base.s.ptr = freep = prevp = &base;
86c: c7 45 f0 a4 0c 00 00 movl $0xca4,-0x10(%ebp)
873: 8b 45 f0 mov -0x10(%ebp),%eax
876: a3 ac 0c 00 00 mov %eax,0xcac
87b: a1 ac 0c 00 00 mov 0xcac,%eax
880: a3 a4 0c 00 00 mov %eax,0xca4
base.s.size = 0;
885: c7 05 a8 0c 00 00 00 movl $0x0,0xca8
88c: 00 00 00
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
88f: 8b 45 f0 mov -0x10(%ebp),%eax
892: 8b 00 mov (%eax),%eax
894: 89 45 f4 mov %eax,-0xc(%ebp)
if(p->s.size >= nunits){
897: 8b 45 f4 mov -0xc(%ebp),%eax
89a: 8b 40 04 mov 0x4(%eax),%eax
89d: 3b 45 ec cmp -0x14(%ebp),%eax
8a0: 72 4d jb 8ef <malloc+0xa6>
if(p->s.size == nunits)
8a2: 8b 45 f4 mov -0xc(%ebp),%eax
8a5: 8b 40 04 mov 0x4(%eax),%eax
8a8: 3b 45 ec cmp -0x14(%ebp),%eax
8ab: 75 0c jne 8b9 <malloc+0x70>
prevp->s.ptr = p->s.ptr;
8ad: 8b 45 f4 mov -0xc(%ebp),%eax
8b0: 8b 10 mov (%eax),%edx
8b2: 8b 45 f0 mov -0x10(%ebp),%eax
8b5: 89 10 mov %edx,(%eax)
8b7: eb 26 jmp 8df <malloc+0x96>
else {
p->s.size -= nunits;
8b9: 8b 45 f4 mov -0xc(%ebp),%eax
8bc: 8b 40 04 mov 0x4(%eax),%eax
8bf: 2b 45 ec sub -0x14(%ebp),%eax
8c2: 89 c2 mov %eax,%edx
8c4: 8b 45 f4 mov -0xc(%ebp),%eax
8c7: 89 50 04 mov %edx,0x4(%eax)
p += p->s.size;
8ca: 8b 45 f4 mov -0xc(%ebp),%eax
8cd: 8b 40 04 mov 0x4(%eax),%eax
8d0: c1 e0 03 shl $0x3,%eax
8d3: 01 45 f4 add %eax,-0xc(%ebp)
p->s.size = nunits;
8d6: 8b 45 f4 mov -0xc(%ebp),%eax
8d9: 8b 55 ec mov -0x14(%ebp),%edx
8dc: 89 50 04 mov %edx,0x4(%eax)
}
freep = prevp;
8df: 8b 45 f0 mov -0x10(%ebp),%eax
8e2: a3 ac 0c 00 00 mov %eax,0xcac
return (void*)(p + 1);
8e7: 8b 45 f4 mov -0xc(%ebp),%eax
8ea: 83 c0 08 add $0x8,%eax
8ed: eb 3b jmp 92a <malloc+0xe1>
}
if(p == freep)
8ef: a1 ac 0c 00 00 mov 0xcac,%eax
8f4: 39 45 f4 cmp %eax,-0xc(%ebp)
8f7: 75 1e jne 917 <malloc+0xce>
if((p = morecore(nunits)) == 0)
8f9: 83 ec 0c sub $0xc,%esp
8fc: ff 75 ec pushl -0x14(%ebp)
8ff: e8 e5 fe ff ff call 7e9 <morecore>
904: 83 c4 10 add $0x10,%esp
907: 89 45 f4 mov %eax,-0xc(%ebp)
90a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
90e: 75 07 jne 917 <malloc+0xce>
return 0;
910: b8 00 00 00 00 mov $0x0,%eax
915: eb 13 jmp 92a <malloc+0xe1>
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
if((prevp = freep) == 0){
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
917: 8b 45 f4 mov -0xc(%ebp),%eax
91a: 89 45 f0 mov %eax,-0x10(%ebp)
91d: 8b 45 f4 mov -0xc(%ebp),%eax
920: 8b 00 mov (%eax),%eax
922: 89 45 f4 mov %eax,-0xc(%ebp)
return (void*)(p + 1);
}
if(p == freep)
if((p = morecore(nunits)) == 0)
return 0;
}
925: e9 6d ff ff ff jmp 897 <malloc+0x4e>
}
92a: c9 leave
92b: c3 ret
|
oeis/326/A326123.asm | neoneye/loda-programs | 11 | 166555 | ; A326123: a(n) is the sum of all divisors of the first n odd numbers.
; Submitted by <NAME>
; 1,5,11,19,32,44,58,82,100,120,152,176,207,247,277,309,357,405,443,499,541,585,663,711,768,840,894,966,1046,1106,1168,1272,1356,1424,1520,1592,1666,1790,1886,1966,2087,2171,2279,2399,2489,2601,2729,2849,2947,3103,3205,3309,3501,3609,3719,3871,3985,4129,4311,4455,4588,4756,4912,5040,5216,5348,5508,5748,5886,6026,6218,6386,6566,6794,6944,7096,7330,7522,7680,7896,8088,8252,8540,8708,8891,9151,9325,9573,9813,9993,10175,10423,10651,10867,11187,11379,11573,11909,12107,12307
mul $0,2
mov $1,1
lpb $0
mov $2,$0
sub $0,2
seq $2,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n).
add $1,$2
lpe
mov $0,$1
|
examples/unimon/dev/dev_emily.asm | kuwatay/6502ctrl | 1 | 169643 | ;;;
;;; EMILY Board Console Driver
;;;
INIT:
LDA #$00
STA SMBASE+1
STA SMBASE+2 ; Command
LDA #$A5
STA SMBASE ; Signature
LDA #$CC
STA SMBASE+1 ; Handshake
RTS
CONIN:
LDA SMBASE+1 ; Handshake
CMP #$CC
BEQ CONIN
LDA #$02
STA SMBASE+2 ; Command
LDA #$CC
STA SMBASE+1 ; Handshake
CI0:
LDA SMBASE+1 ; Handshake
CMP #$CC
BEQ CI0
LDA SMBASE+4 ; Data[0]
RTS
CONST:
LDA SMBASE+1 ; Handshake
CMP #$CC
BEQ CONST
LDA #$03
STA SMBASE+2 ; Command
LDA #$CC
STA SMBASE+1 ; Handshake
CS0:
LDA SMBASE+1 ; Handshake
CMP #$CC
BEQ CS0
LDA SMBASE+4 ; Data[0]
RTS
CONOUT:
PHA
CO0:
LDA SMBASE+1 ; Handshake
CMP #$CC
BEQ CO0
LDA #$01
STA SMBASE+2 ; Command
PLA
STA SMBASE+4 ; Data[0]
LDA #$CC
STA SMBASE+1 ; Handshake
RTS
|
programs/oeis/173/A173322.asm | karttu/loda | 0 | 242862 | <reponame>karttu/loda<filename>programs/oeis/173/A173322.asm
; A173322: 4*n! + 1.
; 5,5,9,25,97,481,2881,20161,161281,1451521,14515201,159667201,1916006401,24908083201,348713164801,5230697472001,83691159552001,1422749712384001
fac $0
mov $1,$0
mul $1,4
add $1,1
|
tools-src/gnu/gcc/gcc/ada/s-parint.ads | enfoTek/tomato.linksys.e2000.nvram-mod | 80 | 3942 | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . P A R T I T I O N _ I N T E R F A C E --
-- --
-- S p e c --
-- --
-- $Revision$
-- --
-- Copyright (C) 1995-2000 Free Software Foundation, Inc. --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNARL; see file COPYING. If not, write --
-- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
-- MA 02111-1307, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with Ada.Exceptions;
with Interfaces;
with System.RPC;
package System.Partition_Interface is
pragma Elaborate_Body;
type Subprogram_Id is new Natural;
-- This type is used exclusively by stubs
subtype Unit_Name is String;
-- Name of Ada units
type Main_Subprogram_Type is access procedure;
type RACW_Stub_Type is tagged record
Origin : RPC.Partition_ID;
Receiver : Interfaces.Unsigned_64;
Addr : Interfaces.Unsigned_64;
Asynchronous : Boolean;
end record;
type RACW_Stub_Type_Access is access RACW_Stub_Type;
-- This type is used by the expansion to implement distributed objects.
-- Do not change its definition or its layout without updating
-- exp_dist.adb.
procedure Check
(Name : in Unit_Name;
Version : in String;
RCI : in Boolean := True);
-- Use by the main subprogram to check that a remote receiver
-- unit has has the same version than the caller's one.
function Get_Active_Partition_ID
(Name : Unit_Name)
return RPC.Partition_ID;
-- Similar in some respects to RCI_Info.Get_Active_Partition_ID
function Get_Active_Version
(Name : Unit_Name)
return String;
-- Similar in some respects to Get_Active_Partition_ID
function Get_Local_Partition_ID return RPC.Partition_ID;
-- Return the Partition_ID of the current partition
function Get_Passive_Partition_ID
(Name : Unit_Name)
return RPC.Partition_ID;
-- Return the Partition_ID of the given shared passive partition
function Get_Passive_Version (Name : Unit_Name) return String;
-- Return the version corresponding to a shared passive unit
function Get_RCI_Package_Receiver
(Name : Unit_Name)
return Interfaces.Unsigned_64;
-- Similar in some respects to RCI_Info.Get_RCI_Package_Receiver
procedure Get_Unique_Remote_Pointer
(Handler : in out RACW_Stub_Type_Access);
-- Get a unique pointer on a remote object
procedure Launch
(Rsh_Command : in String;
Name_Is_Host : in Boolean;
General_Name : in String;
Command_Line : in String);
-- General_Name represents the name of the machine or the name of the
-- partition (depending on the value of Name_Is_Host). Command_Line
-- holds the extra options that will be given on the command line.
-- Rsh_Command is typically "rsh", that will be used to launch the
-- other partition.
procedure Raise_Program_Error_For_E_4_18;
pragma No_Return (Raise_Program_Error_For_E_4_18);
-- Raise Program_Error with an error message explaining why it has been
-- raised. The rule in E.4 (18) is tricky and misleading for most users
-- of the distributed systems annex.
procedure Raise_Program_Error_Unknown_Tag
(E : in Ada.Exceptions.Exception_Occurrence);
pragma No_Return (Raise_Program_Error_Unknown_Tag);
-- Raise Program_Error with the same message as E one
procedure Register_Receiving_Stub
(Name : in Unit_Name;
Receiver : in RPC.RPC_Receiver;
Version : in String := "");
-- Register the fact that the Name receiving stub is now elaborated.
-- Register the access value to the package RPC_Receiver procedure.
procedure Register_Passive_Package
(Name : in Unit_Name;
Version : in String := "");
-- Register a passive package
generic
RCI_Name : String;
package RCI_Info is
function Get_RCI_Package_Receiver return Interfaces.Unsigned_64;
function Get_Active_Partition_ID return RPC.Partition_ID;
end RCI_Info;
-- RCI package information caching
procedure Run (Main : in Main_Subprogram_Type := null);
-- Run the main subprogram
end System.Partition_Interface;
|
src/common/sp-filters.ads | jquorning/septum | 236 | 7054 | -------------------------------------------------------------------------------
-- Copyright 2021, The Septum Developers (see AUTHORS file)
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
-- http://www.apache.org/licenses/LICENSE-2.0
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-------------------------------------------------------------------------------
with Ada.Containers.Vectors;
with Ada.Strings.Unbounded;
with GNAT.Regpat;
with SP.Contexts;
with SP.Memory;
with SP.Strings;
package SP.Filters
with Preelaborate
is
use SP.Strings;
-- Filters need to do different things. Some filters match line contents, whereas others want to remove any match
-- which has a match anywhere in the content. When a filter matches, some action with regards to the search should
-- be done, whether to include or to exclude the match from the results.
type Filter_Action is (Keep, Exclude);
-- Search filters define which lines match and what to do about a match.
type Filter (Action : Filter_Action) is abstract tagged null record;
-- Describes the filter in an end-user type of way. TODO: This should be localized.
function Image (F : Filter) return String is abstract;
-- Determine if a filter matches a string.
function Matches_Line (F : Filter; Str : String) return Boolean is abstract;
type Filter_Access is access Filter'Class;
package Pointers is new SP.Memory (T => Filter'Class, T_Access => Filter_Access);
subtype Filter_Ptr is Pointers.Arc;
-- Provides a means to store many types of filters in the same list.
package Filter_List is new Ada.Containers.Vectors
(Index_Type => Positive, Element_Type => Filter_Ptr, "=" => Pointers."=");
function Find_Text (Text : String) return Filter_Ptr;
function Exclude_Text (Text : String) return Filter_Ptr;
function Find_Like (Text : String) return Filter_Ptr;
function Exclude_Like (Text : String) return Filter_Ptr;
function Find_Regex (Text : String) return Filter_Ptr;
function Exclude_Regex (Text : String) return Filter_Ptr;
function Is_Valid_Regex (S : String) return Boolean;
-- Looks for a match in any of the given lines.
function Matches_File (F : Filter'Class; Lines : String_Vectors.Vector) return Boolean;
function Matching_Lines (F : Filter'Class; Lines : String_Vectors.Vector) return SP.Contexts.Line_Matches.Set;
private
type Regex_Access is access GNAT.Regpat.Pattern_Matcher;
package Rc_Regex is new SP.Memory (T => GNAT.Regpat.Pattern_Matcher, T_Access => Regex_Access);
type Case_Sensitive_Match_Filter is new Filter with record
Text : Ada.Strings.Unbounded.Unbounded_String;
end record;
type Case_Insensitive_Match_Filter is new Filter with record
Text : Ada.Strings.Unbounded.Unbounded_String;
end record;
type Regex_Filter is new Filter with record
Source : Ada.Strings.Unbounded.Unbounded_String;
Regex : Rc_Regex.Arc;
end record;
overriding function Image (F : Case_Sensitive_Match_Filter) return String;
overriding function Matches_Line (F : Case_Sensitive_Match_Filter; Str : String) return Boolean;
overriding function Image (F : Case_Insensitive_Match_Filter) return String;
overriding function Matches_Line (F : Case_Insensitive_Match_Filter; Str : String) return Boolean;
overriding function Image (F : Regex_Filter) return String;
overriding function Matches_Line (F : Regex_Filter; Str : String) return Boolean;
end SP.Filters;
|
Production Scripts/Free Geek Login Progress/Source/Free Geek Login Progress.applescript | freegeek-pdx/macOS-Testing-and-Deployment-Scripts | 0 | 3847 | -- By: <NAME>
-- For: MacLand @ Free Geek
--
-- MIT License
--
-- Copyright (c) 2021 Free Geek
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
-- to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
-- and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--
-- Version: 2022.2.22-1
-- Build Flag: LSUIElement
use AppleScript version "2.7"
use scripting additions
use framework "Cocoa"
set currentBundleIdentifier to "UNKNOWN"
try
set infoPlistPath to ((POSIX path of (path to me)) & "Contents/Info.plist")
((infoPlistPath as POSIX file) as alias)
set intendedAppName to "Free Geek Login Progress" -- Hardcode intended App name because Name or Bundle Identifier changes should not be done lightly or accidentally.
try
do shell script ("/usr/libexec/PlistBuddy -c 'Print :FGBuiltByMacLandScriptBuilder' "& (quoted form of infoPlistPath))
((((POSIX path of (path to me)) & "Contents/MacOS/" & intendedAppName) as POSIX file) as alias)
on error
try
activate
end try
display alert "
“" & (name of me) & "” must be built by the “MacLand Script Builder” script." buttons {"Quit"} default button 1 as critical
quit
delay 10
end try
set AppleScript's text item delimiters to "-"
set intendedBundleIdentifier to ("org.freegeek." & ((words of intendedAppName) as string))
set currentBundleIdentifier to ((do shell script ("/usr/libexec/PlistBuddy -c 'Print :CFBundleIdentifier' "& (quoted form of infoPlistPath))) as string)
if (currentBundleIdentifier is not equal to intendedBundleIdentifier) then error "“" & (name of me) & "” does not have the correct Bundle Identifier.
Current Bundle Identifier:
" & currentBundleIdentifier & "
Intended Bundle Identifier:
" & intendedBundleIdentifier
on error checkInfoPlistError
if (checkInfoPlistError does not start with "Can’t make file") then
try
activate
end try
display alert checkInfoPlistError buttons {"Quit"} default button 1 as critical
quit
delay 10
end if
end try
set isRunningAtLoginWindow to false
try
set isRunningAtLoginWindow to ((do shell script "launchctl managername") is equal to "LoginWindow")
end try
set isResetting to ((POSIX path of (path to me)) contains "/fg-snapshot-reset/")
set logPath to "/Users/Shared/Build Info/Prepare OS Log.txt"
if (isResetting) then set logPath to "/Users/Shared/fg-snapshot-reset/log.txt"
set progress total steps to -1
set progress completed steps to 0
set doNotDisturbNote to "🚫 DO NOT DISTURB THIS MAC WHILE IT IS BEING CUSTOMIZED"
if (isResetting) then
set progress description to "🧹 Resetting this Mac…"
set doNotDisturbNote to "🚫 DO NOT DISTURB THIS MAC WHILE IT IS BEING RESET"
else
set progress description to "🚧 Customizing this Mac…"
end if
set progress additional description to ("
" & doNotDisturbNote)
try
repeat with thisWindow in (current application's NSApp's |windows|())
if (thisWindow's isVisible() is true) then
if (((thisWindow's title()) as string) is equal to (name of me)) then
repeat with thisProgressWindowSubView in ((thisWindow's contentView())'s subviews())
if (((thisProgressWindowSubView's className()) as string) is equal to "NSProgressIndicator") then
if (isResetting) then
(thisWindow's setTitle:"Free Geek Reset Progress")
else
(thisWindow's setTitle:"Free Geek Customizations Progress")
end if
-- Set Style Mask to ONLY be Titled, which make it not minimizable or resizable and hides all the titlebar buttons.
(thisWindow's setStyleMask:(current application's NSWindowStyleMaskTitled as integer))
-- Also do not want window to be movable so that it stays over the login fields.
if (isRunningAtLoginWindow) then (thisWindow's setMovable:false) -- Only do this if at Login Window to make debugging easier when running in OS.
-- Make the window wider so that the width doesn't need to be expanded automatically when long log entries get added, which makes re-centering look funky.
set thisWindowSize to (item 2 of (thisWindow's frame()))
(thisWindow's setContentSize:{650, (item 2 of thisWindowSize)}) -- Largest width seen was 630 for the log line deleting Secure Token References with the UUID.
-- Center the window so it's in a nice spot on the screen and will leave a lot of room below for the log.
-- The window will also keep being re-centered as the log grows so that the most contents will always stay visible no matter what the screen size is.
-- Previously was just moving the window up 100 points to hide the login icon/fields, but that didn't work great as I added more logging and the window could grow to go below the bottom of the screen.
-- So now, when the log is short the login icon/fields may be visible but should get covered as the log grows throughout the process.
(thisWindow's |center|())
-- Reference for Visibility at Login Screen: https://bitbucket.org/twocanoes/macdeploystick/src/a7989eddae93d3339b54e30356da0c6ff13fd795/first-run-install/Scripts/com.twocanoes.mds/LoginLog.app/Contents/Resources/LLLogWindowController.py#lines-130
(thisWindow's setLevel:2.147483647E+9) -- maximumWindow AND THEN SOME (any more and the window is no longer topmost): https://michelf.ca/blog/2016/choosing-window-level/
(thisWindow's setCanBecomeVisibleWithoutLogin:true)
else if ((((thisProgressWindowSubView's className()) as string) is equal to "NSButton") and ((thisProgressWindowSubView's title() as string) is equal to "Stop")) then
if (isRunningAtLoginWindow) then (thisProgressWindowSubView's setEnabled:false) -- Only do this if at Login Window to make debugging easier when running in OS.
end if
end repeat
end if
end if
end repeat
end try
repeat
try
activate
end try
if ((progress completed steps) is equal to 0) then
try
((logPath as POSIX file) as alias)
set logOutput to (do shell script ("cat " & (quoted form of logPath)))
if (logOutput contains "ERROR:") then
set progress total steps to 1
set progress completed steps to 1
if (isResetting) then
set progress description to "❌ Error Occurred While Resetting this Mac"
else
set progress description to "❌ Error Occurred While Customizing this Mac"
end if
set progress additional description to ("
‼️ PLEASE INFORM AND DELIVER THIS MAC TO FREE GEEK I.T.
" & logOutput)
else
set progress additional description to ("
" & doNotDisturbNote & "
" & logOutput)
end if
end try
if ((progress completed steps) is equal to 0) then -- Do not check for completion if an error was detected in the log.
try
-- The LaunchDaemon being deleted indicates successful completion.
if (isResetting) then
(("/Library/LaunchDaemons/org.freegeek.fg-snapshot-reset.plist" as POSIX file) as alias)
else
(("/Library/LaunchDaemons/org.freegeek.fg-install-packages.plist" as POSIX file) as alias)
end if
on error
set progress total steps to 1
set progress completed steps to 1
if (isResetting) then
set progress description to "✅ Successfully Reset this Mac"
set progress additional description to (progress additional description & "
⤵️ SHUTTING DOWN THIS MAC")
else
set progress description to "✅ Successfully Customized this Mac"
set progress additional description to (progress additional description & "
🔄 REBOOTING THIS MAC")
end if
end try
end if
try
repeat with thisWindow in (current application's NSApp's |windows|())
if (thisWindow's isVisible() is true) then
set thisWindowTitle to ((thisWindow's title()) as string)
if ((thisWindowTitle is equal to (name of me)) or (thisWindowTitle ends with " Progress")) then
-- Force display before re-centering since sometimes it takes a moment for the window contents to be updated on their own which can cause the centering to happen before the contents update.
((thisWindow's contentView())'s display())
-- Keep re-centering window so the most contents will always be displayed no matter how long the log gets and what the screen size is.
(thisWindow's |center|())
end if
end if
end repeat
end try
end if
delay 1
end repeat
|
libsrc/_DEVELOPMENT/fcntl/c/sdcc_iy/dup.asm | meesokim/z88dk | 0 | 22092 |
; int dup(int fd)
SECTION code_fcntl
PUBLIC _dup
EXTERN asm_dup
_dup:
pop af
pop hl
push hl
push af
jp asm_dup
|
code/nand2tetris/08/ProgramFlow/FibonacciSeries/FibonacciSeries.asm | MarybethGasman/sp | 252 | 98659 | <reponame>MarybethGasman/sp
// init
@256
D=A
@R0
M=D
// call Sys.init 0
@LABEL1
D=A
@SP
A=M
M=D
@SP
M=M+1
@R1
D=M
@SP
A=M
M=D
@SP
M=M+1
@R2
D=M
@SP
A=M
M=D
@SP
M=M+1
@R3
D=M
@SP
A=M
M=D
@SP
M=M+1
@R4
D=M
@SP
A=M
M=D
@SP
M=M+1
@5
D=A
@R0
A=M
AD=A-D
@R2
M=D
@R0
D=M
@R1
M=D
@Sys.init
0;JMP
(LABEL1)
// push argument 1
@1
D=A
@ARG
A=M
AD=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop pointer 1 // that = argument[1]
@SP
M=M-1
@SP
A=M
D=M
@R4
M=D
// push constant 0
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
// pop that 0 // first element = 0
@SP
M=M-1
@THAT
AD=M
@R15
M=D
@SP
A=M
D=M
@R15
A=M
M=D
// push constant 1
@1
D=A
@SP
A=M
M=D
@SP
M=M+1
// pop that 1 // second element = 1
@SP
M=M-1
@1
D=A
@THAT
A=M
AD=D+A
@R15
M=D
@SP
A=M
D=M
@R15
A=M
M=D
// push argument 0
@ARG
AD=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 2
@2
D=A
@SP
A=M
M=D
@SP
M=M+1
// sub
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
A=M
D=A-D
@SP
A=M
M=D
@SP
M=M+1
// pop argument 0 // num_of_elements -= 2 (first 2 elements are set)
@SP
M=M-1
@ARG
AD=M
@R15
M=D
@SP
A=M
D=M
@R15
A=M
M=D
// label MAIN_LOOP_START
(MAIN_LOOP_START)
// push argument 0
@ARG
AD=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// if-goto COMPUTE_ELEMENT // if num_of_elements > 0, goto COMPUTE_ELEMENT
@SP
M=M-1
@SP
A=M
D=M
@COMPUTE_ELEMENT
D;JNE
// goto END_PROGRAM // otherwise, goto END_PROGRAM
@END_PROGRAM
0;JMP
// label COMPUTE_ELEMENT
(COMPUTE_ELEMENT)
// push that 0
@THAT
AD=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push that 1
@1
D=A
@THAT
A=M
AD=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
A=M
D=D+A
@SP
A=M
M=D
@SP
M=M+1
// pop that 2 // that[2] = that[0] + that[1]
@SP
M=M-1
@2
D=A
@THAT
A=M
AD=D+A
@R15
M=D
@SP
A=M
D=M
@R15
A=M
M=D
// push pointer 1
@R4
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 1
@1
D=A
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
A=M
D=D+A
@SP
A=M
M=D
@SP
M=M+1
// pop pointer 1 // that += 1
@SP
M=M-1
@SP
A=M
D=M
@R4
M=D
// push argument 0
@ARG
AD=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 1
@1
D=A
@SP
A=M
M=D
@SP
M=M+1
// sub
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
A=M
D=A-D
@SP
A=M
M=D
@SP
M=M+1
// pop argument 0 // num_of_elements--
@SP
M=M-1
@ARG
AD=M
@R15
M=D
@SP
A=M
D=M
@R15
A=M
M=D
// goto MAIN_LOOP_START
@MAIN_LOOP_START
0;JMP
// label END_PROGRAM
(END_PROGRAM)
|
Data/Functor.agda | oisdk/agda-playground | 6 | 10280 | {-# OPTIONS --cubical --safe #-}
module Data.Functor where
open import Prelude
record Functor ℓ₁ ℓ₂ : Type (ℓsuc (ℓ₁ ℓ⊔ ℓ₂)) where
field
F : Type ℓ₁ → Type ℓ₂
map : (A → B) → F A → F B
identity : map {A = A} id ≡ id
compose : (f : B → C) (g : A → B) → map (f ∘ g) ≡ map f ∘ map g
|
src/CategoryTheory/NatTrans.agda | DimaSamoz/temporal-type-systems | 4 | 11984 | <gh_stars>1-10
{- Type class for natural transformations. -}
module CategoryTheory.NatTrans where
open import CategoryTheory.Categories
open import CategoryTheory.Functor
open import Relation.Binary using (IsEquivalence)
infixr 25 _⟹_
-- Natural transformation between two functors
record _⟹_ {n} {ℂ 𝔻 : Category n} (F : Functor ℂ 𝔻) (G : Functor ℂ 𝔻) : Set (lsuc n) where
private module ℂ = Category ℂ
private module 𝔻 = Category 𝔻
private module F = Functor F
private module G = Functor G
field
-- || Definitions
-- One component of the natural transformations.
at : ∀(A : ℂ.obj) -> (F.omap A) 𝔻.~> (G.omap A)
-- || Laws
-- Naturality condition
nat-cond : ∀{A B : ℂ.obj} {f : A ℂ.~> B}
-> (G.fmap f 𝔻.∘ at A) 𝔻.≈ (at B 𝔻.∘ F.fmap f)
-- Identity natural transformation
ιd : ∀ {n} {ℂ 𝔻 : Category n} -> (F : Functor ℂ 𝔻) -> F ⟹ F
ιd {n} {ℂ} {𝔻} F = record
{ at = λ A -> F.fmap ℂ.id
; nat-cond = λ {A} {B} {f} ->
begin
F.fmap f ∘ F.fmap ℂ.id
≈⟨ ≈-cong-right (F.fmap-id) ⟩
F.fmap f ∘ id
≈⟨ id-comm ⟩
id ∘ F.fmap f
≈⟨ ≈-cong-left (F.fmap-id [sym]) ⟩
F.fmap ℂ.id ∘ F.fmap f
∎
}
where
private module F = Functor F
private module ℂ = Category ℂ
open Category 𝔻
-- Vertical composition of natural transformations
_⊚_ : ∀ {n} {ℂ 𝔻 : Category n} -> {F G H : Functor ℂ 𝔻}
-> (G ⟹ H) -> (F ⟹ G) -> (F ⟹ H)
_⊚_ {n} {ℂ} {𝔻} {F} {G} {H} φ ψ = record
{ at = λ A -> (φ.at A) ∘ (ψ.at A)
; nat-cond = λ {A} {B} {f} ->
begin
H.fmap f ∘ (φ.at A ∘ ψ.at A)
≈⟨ ∘-assoc [sym] ⟩
(H.fmap f ∘ φ.at A) ∘ ψ.at A
≈⟨ ≈-cong-left (φ.nat-cond) ≈> ∘-assoc ⟩
φ.at B ∘ (G.fmap f ∘ ψ.at A)
≈⟨ ≈-cong-right (ψ.nat-cond) ≈> (∘-assoc [sym])⟩
(φ.at B ∘ ψ.at B) ∘ F.fmap f
∎
}
where
open Category 𝔻
private module F = Functor F
private module G = Functor G
private module H = Functor H
private module φ = _⟹_ φ
private module ψ = _⟹_ ψ
open import Relation.Binary using (IsEquivalence)
-- Horizontal composition of natural tranformations
_✦_ : ∀ {n} {ℂ 𝔻 𝔼 : Category n} {F F′ : Functor ℂ 𝔻} {G G′ : Functor 𝔻 𝔼}
-> (G ⟹ G′) -> (F ⟹ F′) -> (G ◯ F ⟹ G′ ◯ F′)
_✦_ {n} {ℂ} {𝔻} {𝔼} {F} {F′} {G} {G′} ψ φ = record
{ at = λ A → G′.fmap (φ.at A) ∘ ψ.at (F.omap A)
; nat-cond = λ {A} {B} {f} →
begin
Functor.fmap (G′ ◯ F′) f ∘ (G′.fmap (φ.at A) ∘ ψ.at (F.omap A))
≈⟨ ∘-assoc [sym] ≈> ≈-cong-left (G′.fmap-∘ [sym]) ⟩
G′.fmap (F′.fmap f 𝔻.∘ φ.at A) ∘ ψ.at (F.omap A)
≈⟨ ≈-cong-left (G′.fmap-cong (φ.nat-cond)) ⟩
G′.fmap (φ.at B 𝔻.∘ F.fmap f) ∘ ψ.at (F.omap A)
≈⟨ ≈-cong-left (G′.fmap-∘) ≈> ∘-assoc ⟩
G′.fmap (φ.at B) ∘ (Functor.fmap (G′ ◯ F) f ∘ ψ.at (F.omap A))
≈⟨ ≈-cong-right (ψ.nat-cond) ≈> ∘-assoc [sym] ⟩
(G′.fmap (φ.at B) ∘ ψ.at (F.omap B)) ∘ Functor.fmap (G ◯ F) f
∎
}
where
private module 𝔻 = Category 𝔻
open Category 𝔼
private module F = Functor F
private module G = Functor G
private module F′ = Functor F′
private module G′ = Functor G′
private module φ = _⟹_ φ
private module ψ = _⟹_ ψ
-- Natural isomorphism between two functors
record _⟺_ {n} {ℂ 𝔻 : Category n} (F : Functor ℂ 𝔻) (G : Functor ℂ 𝔻) : Set (lsuc n) where
private module ℂ = Category ℂ
private module 𝔻 = Category 𝔻
private module F = Functor F
private module G = Functor G
field
-- || Definitions
-- NT from F to G
to : F ⟹ G
-- NT from G to F
from : G ⟹ F
private module to = _⟹_ to
private module from = _⟹_ from
field
-- || Isomorphism laws
iso1 : ∀{A : ℂ.obj} -> (from.at A) 𝔻.∘ (to.at A) 𝔻.≈ 𝔻.id
iso2 : ∀{A : ℂ.obj} -> (to.at A) 𝔻.∘ (from.at A) 𝔻.≈ 𝔻.id
-- Natural isomorphism is an equivalence
⟺-equiv : ∀ {n} {ℂ 𝔻 : Category n} -> IsEquivalence (_⟺_ {n} {ℂ} {𝔻})
⟺-equiv {n} {ℂ} {𝔻} = record
{ refl = λ {F} -> record
{ to = ιd F
; from = ιd F
; iso1 = λ {A} -> refl-iso-proof {A} {F}
; iso2 = λ {A} -> refl-iso-proof {A} {F} }
; sym = λ {F} {G} F⟺G -> record
{ to = _⟺_.from F⟺G
; from = _⟺_.to F⟺G
; iso1 = _⟺_.iso2 F⟺G
; iso2 = _⟺_.iso1 F⟺G }
; trans = λ {F} {G} {H} F⟺G G⟺H -> record
{ to = (_⟺_.to G⟺H) ⊚ (_⟺_.to F⟺G)
; from = (_⟺_.from F⟺G) ⊚ (_⟺_.from G⟺H)
; iso1 = λ {A} →
begin
at (from F⟺G ⊚ from G⟺H) A ∘ at (to G⟺H ⊚ to F⟺G) A
≈⟨ ∘-assoc [sym] ≈> ≈-cong-left (∘-assoc) ⟩
(at (from F⟺G) A ∘ (at (from G⟺H) A ∘ at (to G⟺H) A)) ∘ at (to F⟺G) A
≈⟨ ≈-cong-left (≈-cong-right (iso1 G⟺H)) ⟩
(at (from F⟺G) A ∘ id) ∘ at (to F⟺G) A
≈⟨ ≈-cong-left (id-right) ⟩
at (from F⟺G) A ∘ at (to F⟺G) A
≈⟨ iso1 F⟺G ⟩
id
∎
; iso2 = λ {A} →
begin
at (to G⟺H ⊚ to F⟺G) A ∘ at (from F⟺G ⊚ from G⟺H) A
≈⟨ (∘-assoc [sym]) ≈> ≈-cong-left (∘-assoc) ⟩
(at (to G⟺H) A ∘ (at (to F⟺G) A ∘ at (from F⟺G) A)) ∘ at (from G⟺H) A
≈⟨ ≈-cong-left (≈-cong-right (iso2 F⟺G)) ⟩
(at (to G⟺H) A ∘ id) ∘ at (from G⟺H) A
≈⟨ ≈-cong-left (id-right) ⟩
at (to G⟺H) A ∘ at (from G⟺H) A
≈⟨ iso2 G⟺H ⟩
id
∎
}
}
where
private module ℂ = Category ℂ
open Category 𝔻
open _⟹_
open _⟺_
refl-iso-proof : {A : ℂ.obj} {F : Functor ℂ 𝔻}
-> _⟹_.at (ιd F) A ∘ _⟹_.at (ιd F) A ≈ id
refl-iso-proof {A} {F} =
begin
_⟹_.at (ιd F) A ∘ _⟹_.at (ιd F) A
≈⟨ ≈-cong-left (Functor.fmap-id F) ⟩
id ∘ _⟹_.at (ιd F) A
≈⟨ ≈-cong-right (Functor.fmap-id F) ⟩
id ∘ id
≈⟨ id-left ⟩
id
∎
|
src/libraries/Rejuvenation_Lib/src/rejuvenation-find_and_replacer.ads | selroc/Renaissance-Ada | 1 | 18383 | <reponame>selroc/Renaissance-Ada
with Rejuvenation.Match_Patterns; use Rejuvenation.Match_Patterns;
with Rejuvenation.Node_Locations; use Rejuvenation.Node_Locations;
with Rejuvenation.Patterns; use Rejuvenation.Patterns;
with Rejuvenation.Text_Rewrites; use Rejuvenation.Text_Rewrites;
package Rejuvenation.Find_And_Replacer is
type Match_Accepter is not null access function
(Match : Match_Pattern) return Boolean;
function Accept_All_Matches (Match : Match_Pattern) return Boolean;
procedure Find_And_Replace
(TR : in out Text_Rewrite'Class; Node : Ada_Node'Class;
Find_Pattern, Replace_Pattern : Pattern;
Accept_Match : Match_Accepter := Accept_All_Matches'Access;
Before, After : Node_Location := No_Trivia);
function Find_And_Replace
(File_Path : String; Find_Pattern, Replace_Pattern : Pattern;
Accept_Match : Match_Accepter := Accept_All_Matches'Access;
Before, After : Node_Location := No_Trivia) return Boolean;
-- Find instances of the given pattern and
-- for each accepted match replaces using the given replacement pattern.
-- Placeholder names defined in the find pattern that occur
-- in the replacement pattern are replaced
-- by the matching string at the placeholder.
-- Return value indicates whether any match was found and accepted
-- Note: When a match is found and accepted, the file will be changed
end Rejuvenation.Find_And_Replacer;
|
Task/Entropy/Ada/entropy.ada | mullikine/RosettaCodeData | 1 | 2427 | <reponame>mullikine/RosettaCodeData<filename>Task/Entropy/Ada/entropy.ada
with Ada.Text_IO, Ada.Float_Text_IO, Ada.Numerics.Elementary_Functions;
procedure Count_Entropy is
package TIO renames Ada.Text_IO;
Count: array(Character) of Natural := (others => 0);
Sum: Natural := 0;
Line: String := "1223334444";
begin
for I in Line'Range loop -- count the characters
Count(Line(I)) := Count(Line(I))+1;
Sum := Sum + 1;
end loop;
declare -- compute the entropy and print it
function P(C: Character) return Float is (Float(Count(C)) / Float(Sum));
use Ada.Numerics.Elementary_Functions, Ada.Float_Text_IO;
Result: Float := 0.0;
begin
for Ch in Character loop
Result := Result -
(if P(Ch)=0.0 then 0.0 else P(Ch) * Log(P(Ch), Base => 2.0));
end loop;
Put(Result, Fore => 1, Aft => 5, Exp => 0);
end;
end Count_Entropy;
|
shelf/core/src/main/antlr4/ch/raffael/sangria/cluster/packaging/ManifestLexer.g4 | Abnaxos/sangria | 0 | 7267 | lexer grammar ManifestLexer;
SectionName
: [nN][aA][mM][eE]
;
ManifestVersion
: [mM][aA][nN][iI][fF][eE][sS][tT]'-'[vV][eE][rR][sS][iI][oO][nN]
;
AttributeName
: AlphaNum (AlphaNum|'-'|'_')*
;
ValueSeparator
: ':' Space*
-> pushMode(ValueMode)
;
fragment AlphaNum
: 'a'..'z'|'A'..'Z'|'0'..'9'
;
fragment Space
: [ \t]+
;
fragment NewLine
: '\n' | '\r' '\n'?
;
mode ValueMode;
Value
: ValueChar* (NewLine Space+ ValueChar*)* NewLine+
-> popMode
;
fragment ValueChar
: ~('\n'|'\r')
;
|
src/interface/cl_gl/cl-memory-images-gl_base.ads | flyx/OpenCLAda | 8 | 22625 | <reponame>flyx/OpenCLAda<gh_stars>1-10
--------------------------------------------------------------------------------
-- Copyright (c) 2013, <NAME> <<EMAIL>>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
--------------------------------------------------------------------------------
with CL.Memory.CL_GL.Objects;
with GL.Objects.Textures;
generic
type Parent is new Image with private;
package CL.Memory.Images.GL_Base is
package Base is new Memory.CL_GL.Objects (Parent);
type Image is new Base.Base_GL_Memory_Object with null record;
-- This function is provided for completeness, but seriously, don't use it.
-- You should know the texture target some OpenGL resource belongs to.
function Texture_Target (Source : Image)
return not null access constant GL.Objects.Textures.Texture_Proxy'Class;
function Mipmap_Level (Source : Image)
return GL.Objects.Textures.Mipmap_Level;
end CL.Memory.Images.GL_Base;
|
Src/Ant8/Tests/aa8/basic/e_add_2.asm | geoffthorpe/ant-architecture | 0 | 24307 | # $Id: e_add_2.asm,v 1.1 2001/03/14 16:57:28 ellard Exp $
#@ tests for invalid format of add.
add r2, r3
|
programs/oeis/141/A141957.asm | neoneye/loda | 22 | 22696 | ; A141957: Primes congruent to 14 mod 27.
; 41,149,257,311,419,743,797,1013,1229,1283,1499,1553,1607,1823,1877,1931,2039,2309,2417,2579,2633,2687,2741,2903,2957,3011,3119,3389,3659,3767,3821,3929,4091,4253,4523,4793,5009,5171,5279,5333,5387,5441,5657,5711,5927,5981,6089,6143,6197,6359,6521,6737,6791,6899,7331,7547,7817,8087,8573,8627,8681,8951,9059,9221,9437,9491,9923,10139,10193,10247,10301,10463,10733,10949,11003,11057,11273,11489,11597,11813,11867,12569,12893,13001,13109,13163,13217,13487,13649,13757,14081,14243,14621,14783,14891,15053,15107,15161,15269,15377
mov $2,$0
add $2,2
pow $2,2
lpb $2
add $1,13
sub $2,1
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,14
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
div $1,2
sub $1,22
mul $1,2
add $1,31
mov $0,$1
|
source/RASCAL-Variable.ads | bracke/Meaning | 0 | 8270 | --------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- --
-- This library is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU Lesser General Public --
-- License as published by the Free Software Foundation; either --
-- version 2.1 of the License, or (at your option) any later version. --
-- --
-- This library is distributed in the hope that it will be useful, --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU --
-- Lesser General Public License for more details. --
-- --
-- You should have received a copy of the GNU Lesser General Public --
-- License along with this library; if not, write to the Free Software --
-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --
-- --
--------------------------------------------------------------------------------
-- @brief System variable related types and methods.
-- $Author$
-- $Date$
-- $Revision$
package RASCAL.Variable is
type Variable_Type is (GS_String,Number,Macro,Expanded,Literal);
--
-- Returns true if the system variable exists.
--
function Exists (Name : in String) return Boolean;
--
-- Sets the system variable 'Name' to 'New_Value'.
--
procedure Set_Value (Name : string;
New_Value : string;
Var_Type : Variable_Type := Literal);
--
-- Unsets (deletes) the variable Name.
--
procedure UnSet (Name : string);
--
-- Returns the value of the system variable 'Variable'.
--
function Get_Value (Variable : in String) return String;
--
-- Translates possible system variables etc. in string.
--
function Translate (Str : in String) return String;
end RASCAL.Variable;
|
Assignment-1/even-odd.asm | sameermuhd/CS311-Computer-Architecture-Lab | 0 | 89862 | .data
a:
10
.text
main:
load %x0, $a, %x3 ;loading the input into x3
divi %x3, 2, %x4 ;x4 = x3 / 2
beq %x31, 0, even ;if x3 % 2 == 0, jump to even
jmp odd ;else jump to odd
even:
subi %x0, 1, %x10 ;writing -1 to x10 if even and end
end
odd:
addi %x0, 1, %x10 ;writing 1 to x10 if odd and end
end
|
u7-common/patch-dropToKeySelectedItem.asm | JohnGlassmyer/UltimaHacks | 68 | 81663 | <reponame>JohnGlassmyer/UltimaHacks<gh_stars>10-100
; Allow the player to specify the destination of item-dragging by key rather
; than by mouse, calling eop-openableItemForKey to specify the destination
; and then calling eop-dropToPresetDestination to do the dropping.
; This makes it quicker and easier for the player to give a dragged item to a
; particular party member.
[bits 16]
startPatch EXE_LENGTH, dropToKeySelectedItem
startBlockAt addr_loopDuringDrag_beforeLoop
; si: pn_mouseState
; di: pn_draggedItemDisplay
%assign var_hasShown -0x2
%assign var_draggedIbo -0x4
mov word [bp+var_hasShown], 0
callVarArgsEopFromOverlay ensureDragAndDropAreasInitialized, 0
; if our drop area has already been configured with a destination,
; then we'll drop there without looping or checking for keys.
mov bx, [dseg_pn_dropArea]
cmp word [bx+InventoryArea_ibo], 0
jz .loopStart
mov ax, 1
jmp .exitLoop
.loopStart:
; original game did not cycle palette during drag, but it's nice to do
callFromOverlay cyclePalette
push si
callFromOverlay updateAndCopyMouseState
pop cx
; call showItem only once
cmp word [bp+var_hasShown], 0
jnz .afterShowing
push di
mov bx, [di+0xC]
call far [bx+4] ; DraggedItemDisplay_?showItem
pop cx
mov word [bp+var_hasShown], 1
.afterShowing:
; don't let eop-openableItemForKey consume keys if the player is using
; key-mouse to drag
cmp byte [dseg_isKeyMouseEnabled], 0
jnz .processMouse
; try to place the dragged item into an item selected by key
push 0 ; key code (none)
callVarArgsEopFromOverlay openableItemForKey, 1
pop cx
test ax, ax
jz .processMouse
; configure drop area to drop into the selected item
mov bx, [dseg_pn_dropArea]
mov [bx+InventoryArea_ibo], ax
mov ax, 1
jmp .exitLoop
.processMouse:
cmp byte [si+7], MouseAction_MOVE
jnz .afterUpdatingDisplay
; mouse moved, so update where the item is displayed
push word [si+4]
mov ax, [si+2]
sar ax, 1
push ax
push di
mov bx, [di+0xC]
call far [bx+0x14] ; DraggedItemDisplay_updatePosition
add sp, 6
.afterUpdatingDisplay:
cmp byte [si+7], 3
jnz .loopStart
cmp byte [si+1], 1
jnz .loopStart
mov ax, 0
.exitLoop:
; ax == 0 : dropped by mouse
; ax == 1 : dropped by key; dropArea's ibo set to destination
endBlockAt off_loopDuringDrag_loopEnd
startBlockAt addr_dragItem_afterDragging
%assign var_draggedIbo -0x04
%assign var_pn_dialogListNode -0x06
%assign var_doesItemHaveQuantity -0x07
%assign var_destinationIbo -0x0A
%assign var_draggedItemDisplay -0x2E
%define reg_pn_sourceControl si
; patched drag loop will return 0 if dropped by mouse, 1 if by key
push ax
; destroy the DraggedItemDisplay
push 2
lea ax, [bp+var_draggedItemDisplay+0xE]
push ax
mov bx, word [bp+var_draggedItemDisplay+0x16] ; first destructor
call far [bx]
pop cx
pop cx
push 0
lea ax, [bp+var_draggedItemDisplay]
push ax
callFromOverlay AbstractInventoryDialog_destructor
pop cx
pop cx
pop ax
test ax, ax
jz notDroppedByKey
dropToDropArea:
; try to drop the item into the key-selected destination
push reg_pn_sourceControl
callVarArgsEopFromOverlay dropToPresetDestination, 1
pop cx
; skip the rest of dragItem (trying to drop the item; putting the
; item back if the drop location was invalid)
jmp calcJump(off_dragItem_endProc)
notDroppedByKey:
push word [bp+var_draggedIbo]
callVarArgsEopFromOverlay doesItemHaveQuantity, 1
pop cx
mov byte [bp+var_doesItemHaveQuantity], al
mov word [bp+var_pn_dialogListNode], 0
jmp calcJump(off_dragItem_determineWhereToPut)
endBlockWithFillAt nop, off_dragItem_afterDragging_end
endPatch
|
oeis/198/A198638.asm | neoneye/loda-programs | 11 | 244818 | ; A198638: Number of 2n X 2 0..2 arrays with values 0..2 introduced in row major order and each element equal to an even number of horizontal and vertical neighbors.
; Submitted by <NAME>
; 4,36,376,3936,41216,431616,4519936,47333376,495681536,5190844416,54359228416,569257230336,5961339109376,62427953627136,653754017775616,6846200955273216,71694347178868736,750792950862053376,7862405855482740736,82336183052000034816,862235702936276566016,9029449506403318235136,94557622829859393765376,990220281855859633422336,10369721416992565300822016,108593132494217029475106816,1137202047258723308888129536,11908934447197207235055845376,124711980610226913878460071936
add $0,1
mul $0,2
seq $0,81057 ; E.g.f.: Sum_{n>=0} a(n)*x^n/n! = {Sum_{n>=0} F(n+1)*x^n/n!}^2, where F(n) is the n-th Fibonacci number.
div $0,2
sub $0,2
mul $0,5
div $0,8
mul $0,2
add $0,4
|
programs/oeis/286/A286989.asm | karttu/loda | 1 | 101618 | ; A286989: Positions of 1 in A286987; complement of A286988.
; 1,2,4,5,7,9,10,12,14,15,17,18,20,22,23,25,27,28,30,31,33,35,36,38,40,41,43,45,46,48,49,51,53,54,56,58,59,61,62,64,66,67,69,71,72,74,76,77,79,80,82,84,85,87,89,90,92,93,95,97,98,100,102,103,105,106,108,110,111,113,115,116,118,120,121,123,124,126,128,129,131,133,134,136,137,139,141,142,144,146,147,149,151,152,154,155,157,159,160,162,164,165,167,168,170,172,173,175,177,178,180,181,183,185,186,188,190,191,193,195,196,198,199,201,203,204,206,208,209,211,212,214,216,217,219,221,222,224,226,227,229,230,232,234,235,237,239,240,242,243,245,247,248,250,252,253,255,257,258,260,261,263,265,266,268,270,271,273,274,276,278,279,281,283,284,286,287,289,291,292,294,296,297,299,301,302,304,305,307,309,310,312,314,315,317,318,320,322,323,325,327,328,330,332,333,335,336,338,340,341,343,345,346,348,349,351,353,354,356,358,359,361,362,364,366,367,369,371,372,374,376,377,379,380,382,384,385,387,389,390,392,393,395,397,398,400,402,403,405,407
mov $2,$0
sub $0,1
cal $0,187338 ; a(n) = 3*n + floor(sqrt(2)*n), complement of A187328.
mov $1,$0
div $1,7
add $1,1
add $1,$2
|
test/Succeed/WithAbstractUnderBinder.agda | cruhland/agda | 1,989 | 8803 | <reponame>cruhland/agda
-- Andreas, 2015-02-07
-- {-# OPTIONS -v tc.with:40 #-}
open import Common.Prelude hiding (not)
not : Bool → Bool
not true = false
not false = true
T : Bool → Set → Set
T true A = A → A
T false A = Bool
test : (b : Bool) → (A : Set) → T (not b) A
test b with not b
test b | true = λ A a → a
test b | false = λ A → false
-- should be able to abstract (not b) under Binder (A : Set)
-- and succeed
|
subprojects/runtime-darwin/src/main/antlr/XcodebuildSdks.g4 | crici/gradle-native | 40 | 7396 | grammar XcodebuildSdks;
@header {
package dev.nokee.runtime.darwin.internal.parsers;
}
output: (.*? SDK_FLAG sdkIdentifier)+ .*?;
sdkIdentifier: SDK_IDENTIFIER;
SDK_FLAG: '-sdk';
fragment DIGIT: [0-9];
fragment VERSION: DIGIT+ ('.' DIGIT+)?;
fragment IDENTIFIER: [a-z.];
SDK_IDENTIFIER: IDENTIFIER+ VERSION;
OTHER: . -> skip;
|
programs/oeis/151/A151973.asm | neoneye/loda | 22 | 178079 | <reponame>neoneye/loda
; A151973: Numbers n such that n^2 - n is divisible by 24.
; 0,1,9,16,24,25,33,40,48,49,57,64,72,73,81,88,96,97,105,112,120,121,129,136,144,145,153,160,168,169,177,184,192,193,201,208,216,217,225,232,240,241,249,256,264,265,273,280,288,289,297,304,312,313,321,328,336,337,345,352,360,361,369,376,384,385,393,400,408,409,417,424,432,433,441,448,456,457,465,472,480,481,489,496,504,505,513,520,528,529,537,544,552,553,561,568,576,577,585,592
mul $0,3
div $0,2
mov $1,$0
add $0,10
mul $0,4
mov $2,$1
gcd $2,2
pow $2,2
add $0,$2
sub $0,44
|
src/test/resources/data/potests/test30.asm | cpcitor/mdlz80optimizer | 36 | 241039 | <filename>src/test/resources/data/potests/test30.asm
; Test case:
ld de,1 ; this should be replaced to "ld e,1"
ld (hl),e
ld de,3 ; this should not be optimized
ld (val),de
end:
jp end
val:
dw 0 |
AppleScripts/Hammerspoon-scpt/load_order.applescript | KyleKing/My-Programming-Sketchbook | 7 | 554 | <filename>AppleScripts/Hammerspoon-scpt/load_order.applescript
--- Inspired by: http://www.makeuseof.com/tag/3-tools-unleash-mac-os-menu-bar
to conditionalclose(application_name)
tell application application_name
if it is running then
quit
return "Quit " & application_name
else
-- display dialog "Already quit " & application_name
return "Already quit " & application_name
end if
end tell
delay 0.4
end conditionalclose
to conditionalopen(application_name)
tell application application_name
if it is running then
-- display dialog "Already running " & application_name
return application_name & " is already open"
else
launch
return "Opened " & application_name
end if
end tell
delay 0.2
end conditionalopen
-- if you are not sure about the exact name, start "Activity Monitor" (e.g. search it with Spotlight)
-- and look up the "Process Name" (first column) in the list of running processes
-- Open apps if not open already:
conditionalopen("Sip")
conditionalopen("Dash")
conditionalopen("Dropshelf")
conditionalopen("Flux")
conditionalopen("Downlink")
conditionalopen("Cozy Drive")
conditionalopen("Bartender 2")
conditionalopen("Dropbox")
conditionalopen("Backup and Sync") -- Google Drive Sync
-- conditionalopen("Rocket")
-- conditionalopen("BetterTouchTool")
-- Debugging:
-- Use console to log timestamp and info to console upon error
-- to logit(log_string, log_file)
-- do shell script ?
-- "echo `date '+%Y-%m-%d %T: '`\"" & log_string & ?
-- "\" >> $HOME/Library/Logs/" & log_file & ".log"
-- end logit
-- Quit any unneccessary apps
-- conditionalclose("KeepingYouAwake")
-- Other method of printing results
set dateStamp to date string of (current date)
set timeStamp to time string of (current date)
return "This script was run on " & dateStamp & " at " & timeStamp
|
src/main/antlr4/lang/compiler/Lang.g4 | diegopaiva1/compiladores | 0 | 430 | <reponame>diegopaiva1/compiladores<gh_stars>0
grammar Lang;
/* Parser rules */
prog : data* func* EOF # Program
;
data : 'data' TYPE_NAME '{' decl* '}'
;
decl : ID '::' type ';'
;
func : ID '(' params? ')' (':' type (',' type)*)? '{' cmd* '}' # Function
;
params : ID '::' type (',' ID '::' type)*
;
type : type '[' ']' # ArrayType
| btype # BasicType
;
btype : 'Int' # IntType
| 'Char' # CharType
| 'Bool' # BoolType
| 'Float' # FloatType
| TYPE_NAME # DataType
;
cmd : '{' cmd* '}' # CommandScope
| 'if' '(' exp ')' cmd # If
| 'if' '(' exp ')' cmd 'else' cmd # IfElse
| 'iterate' '(' exp ')' cmd # Iterate
| 'read' lvalue ';' # Read
| 'print' exp ';' # Print
| 'return' exp (',' exp)* ';' # Return
| lvalue '=' exp ';' # Assignment
| ID '(' exps? ')' ('<' lvalue (',' lvalue)* '>')? ';' # StaticFunctionCall
;
exp : exp '&&' exp # And
| rexp # SeiLa1
;
rexp : aexp '<' aexp # LessThan
| rexp '==' aexp # Equal
| rexp '!=' aexp # NotEqual
| aexp # SeiLa3
;
aexp : aexp '+' mexp # Addition
| aexp '-' mexp # Subtraction
| mexp # MetaExpression
;
mexp : mexp '*' sexp # Multiplication
| mexp '/' sexp # Division
| mexp '%' sexp # Module
| sexp # SymbolicExpression
;
sexp : '!' sexp # Not
| '-' sexp # Negate
| 'true' # True
| 'false' # False
| 'null' # Null
| INT # Int
| FLOAT # Float
| CHAR # Char
| pexp # PrimaryExpression
;
pexp : lvalue # LocatorValue
| '(' exp ')' # BalancedParenthesesExpression
| 'new' type ('[' exp ']')? # Instantiation
| ID '(' exps? ')' '[' exp ']' # AssignableFunctionCall
;
lvalue : ID # Identifier
| lvalue '[' exp ']' # ArrayAccess
| lvalue '.' ID # DataIdentifierAccess
;
exps : exp (',' exp)*
;
/* Tokens fragments */
fragment LOWER_LETTER : [a-z];
fragment UPPER_LETTER : [A-Z];
fragment ANY_LETTER : (LOWER_LETTER|UPPER_LETTER);
fragment DIGIT : [0-9];
fragment SPECIAL_CHAR : ('\\n'|'\\t'|'\\b'|'\\r'|'\\\\'|'\\\'');
fragment ASCII_CHAR : ([\u0000-\u0026]|[\u0028-\u005B]|[\u005D-\u007F]);
/* Tokens definitions */
ID : LOWER_LETTER+(ANY_LETTER|DIGIT|'_')*;
TYPE_NAME : UPPER_LETTER+(ANY_LETTER|DIGIT|'_')*;
INT : DIGIT+;
FLOAT : DIGIT* '.' DIGIT+;
CHAR : '\'' (ASCII_CHAR|SPECIAL_CHAR) '\'';
WS : [ \t\r\n]+ -> skip;
LINE_COMMENT : '--' ~[\r\n]* '\r'? '\n' -> skip;
BLOCK_COMMENT : '{-' .*? '-}' -> skip;
|
src/Sym_Expr/symbolic_expressions-parsing.ads | fintatarta/eugen | 0 | 18030 | <reponame>fintatarta/eugen<filename>src/Sym_Expr/symbolic_expressions-parsing.ads
with Ada.Containers.Indefinite_Ordered_Maps;
generic
with procedure Read_Scalar (Input : in String;
Success : out Boolean;
Consumed : out Natural;
Result : out Scalar_Type);
-- If Input begins with a valid scalar value, set Success to True,
-- Result to the corresponding scalar value and Consumed to the
-- number of chars that make the text representation of the scalar.
-- This procedure is used by parse.
with procedure Read_Identifier (Input : in String;
Success : out Boolean;
Consumed : out Natural;
Result : out Identifier);
with function Join (Prefix, Name : Identifier) return Identifier;
package Symbolic_Expressions.Parsing is
type ID_Table_Type is private;
-- The parsing function accepts, as an optional parameter, an "ID
-- table" that specifies if an ID is a variable or a function and,
-- in the latter case, how many parameters it accepts.
--
-- The behaviour of the Parse function in the presence of an ID that
-- is not in the ID table can be one of the following
--
-- * Always accept
-- (This is default) The ID is considered a variable or a
-- function according to the presence of a '(' following the ID.
--
-- * Always raise an error
--
-- * Accept undefined variables, but not undefined functions.
--
-- Note that "Always accept" means "Always accept *undefined* IDs." If,
-- for example, the ID is registered as a function, but a '(' does not
-- follow an error is raised.
--
Empty_ID_Table : constant ID_Table_Type;
type Parameter_Count is private;
-- A Parameter_Count stores the spec of a function in terms of number
-- of accepted parameters. All the combinations are possible: no
-- parameter, an exact number of parameters, a range or any number of
-- parameters. To create a Parameter_Count you can use the constructors
-- Exactly, At_Least and Between or use the constants Any_Number or
-- No_Parameter.
--
function Exactly (N : Natural) return Parameter_Count;
function At_Least (N : Natural) return Parameter_Count;
function Between (Min, Max : Natural) return Parameter_Count;
Any_Number : constant Parameter_Count;
No_Parameter : constant Parameter_Count;
procedure Define_Variable (Container : in out ID_Table_Type;
Name : Variable_Name);
-- Declare a variable with the given name
procedure Define_Function (Container : in out ID_Table_Type;
Name : Function_Name;
N_Params : Parameter_Count);
-- Declare a function with the given name, accepting the given number
-- of parameters. Examples:
--
-- Define_Function(Table, "sin", Exactly(1));
-- Define_Function(Table, "max", Any_Number);
-- Define_Function(Table, "rnd", No_Parameter);
--
function Is_Acceptable (N_Param : Natural;
Limits : Parameter_Count)
return Boolean;
-- Return True if N_Param lies in Limits
-- What to do when the parser finds an ID that is not in the
-- ID_Table given to the parser
type Unknown_ID_Action_Type is
(OK, -- Always accept the ID
Accept_As_Var, -- Accept it, only if used as a variable
Die); -- Never accept it
Parsing_Error : exception;
type Multiple_Match_Action is (Die, Allow, Allow_Unprefixed);
function Parse (Input : String;
ID_Table : ID_Table_Type := Empty_ID_Table;
On_Unknown_ID : Unknown_ID_Action_Type := OK;
Prefixes : String := "";
Prefix_Separator : String := ".";
On_Multiple_Match : Multiple_Match_Action := Allow_Unprefixed)
return Symbolic_Expression;
-- Parse a string with an expression and return the result. The grammar
-- of the expression is the usual one
--
-- Expr = Term *(('+' | '-') Term)
-- Term = Fact *(('*' | '/') Fact)
-- Fact = [('+' | '-')] Simple
-- Simple = Id [ '(' List ')' ] | Scalar | '(' Expr ')'
-- List = Expr *(',' Expr)
--
-- As usual, [...] denote an optional part, *(...) means
-- one or more repetition of something and '|' means
-- alternatives.
--
-- Note that
--
-- * In the production for Simple a single Id (without a
-- following list) represents a variabile, while an Id with a following
-- list represents a function call.
--
-- (Yes, folks, a call without arguments is something like foo(),
-- C-like .. . I know, I know, but with this convention parsing is
-- a bit easier since the difference is implicit in the syntax)
--
-- * Id follows the usual name syntax: letters, digits,
-- underscores and (in addition) the '.', so that "foo.end" is a
-- valid identifier. The first char must be a letter.
--
-- * The syntax of Scalar is implicitely defined by the function
-- Read_Scalar used in the instantiation. In order to avoid the risk
-- that the grammar above becomes ambiguous, a scalar should not begin
-- with a letter, a '(' or a sign.
--
-- * If Prefixes is not empty, it is expected to be a sequence of
-- identifiers separated by spaces. If an identifier is not found
-- "as it is," it is searched by prefixing it with the prefixes
-- in the order given. For example, if
--
-- Prefixes="Ada.Strings Ada.Foo Ada"
--
-- and the identifier is "bar," the following strings are searched
-- in order
--
-- Bar
-- Ada.Strings.Bar
-- Ada.Foo.Bar
-- Ada.Bar
--
-- It is possible to change the separator used between the identifier
-- and the prefix by specifyint Prefix_Separator. For example, if
-- Prefix_Separator = "::" the following identifiers are searched
-- for
--
-- Bar
-- Ada.Strings::Bar
-- Ada.Foo::Bar
-- Ada::Bar
--
-- * If Prefixes is not empty, all prefixes are tried. The behaviour
-- used when more than one prefix matches depends on
-- On_Multiple_Match
--
-- - if On_Multiple_Match = Die,
-- an exception is always raised
--
-- - if On_Multiple_Match = Allow,
-- the first match is taken
--
-- - if On_Multiple_Match = Allow_Unprefixed,
-- if the unprefixed name matches, the unprefixed name
-- is taken, otherwise an exception is raised
private
type Parameter_Count is
record
Min : Natural;
Max : Natural;
end record;
Any_Number : constant Parameter_Count := (Natural'First, Natural'Last);
No_Parameter : constant Parameter_Count := (0, 0);
type ID_Class is (Funct, Var);
type ID_Descriptor (Class : ID_Class) is
record
case Class is
when Funct =>
N_Param : Parameter_Count;
when Var =>
null;
end case;
end record;
package ID_Tables is
new Ada.Containers.Indefinite_Ordered_Maps
(Key_Type => Identifier,
Element_Type => ID_Descriptor);
type ID_Table_Type is
record
T : ID_Tables.Map := ID_Tables.Empty_Map;
end record;
Empty_ID_Table : constant ID_Table_Type := (T => ID_Tables.Empty_Map);
end Symbolic_Expressions.Parsing;
|
programs/oeis/004/A004974.asm | karttu/loda | 0 | 25215 | ; A004974: a(n) = ceiling(n*phi^19), where phi is the golden ratio, A001622.
; 0,9350,18699,28048,37397,46746,56095,65444,74793,84142,93491,102840,112189,121538,130887,140236,149585,158934,168283,177632,186981,196330,205679,215028,224377,233726
mov $1,$0
mov $2,$0
trn $0,1
sub $1,$0
lpb $2,1
add $1,9349
sub $2,1
lpe
|
examples/outdated-and-incorrect/cat/Unique.agda | asr/agda-kanso | 1 | 16605 |
module Unique where
open import Category
module Uniq (ℂ : Cat) where
private open module C = Cat ℂ
-- We say that f ∈! P iff f is the unique arrow satisfying P.
data _∈!_ {A B : Obj}(f : A ─→ B)(P : A ─→ B -> Set) : Set where
unique : (forall g -> P g -> f == g) -> f ∈! P
itsUnique : {A B : Obj}{f : A ─→ B}{P : A ─→ B -> Set} ->
f ∈! P -> (g : A ─→ B) -> P g -> f == g
itsUnique (unique h) = h
data ∃! {A B : Obj}(P : A ─→ B -> Set) : Set where
witness : (f : A ─→ B) -> f ∈! P -> ∃! P
getWitness : {A B : Obj}{P : A ─→ B -> Set} -> ∃! P -> A ─→ B
getWitness (witness w _) = w
uniqueWitness : {A B : Obj}{P : A ─→ B -> Set}(u : ∃! P) ->
getWitness u ∈! P
uniqueWitness (witness _ u) = u
witnessEqual : {A B : Obj}{P : A ─→ B -> Set} -> ∃! P ->
{f g : A ─→ B} -> P f -> P g -> f == g
witnessEqual u {f} {g} pf pg = trans (sym hf) hg
where
h = getWitness u
hf : h == f
hf = itsUnique (uniqueWitness u) f pf
hg : h == g
hg = itsUnique (uniqueWitness u) g pg
|
test/Fail/Issue484.agda | cruhland/agda | 1,989 | 14835 | <reponame>cruhland/agda<gh_stars>1000+
-- There was a bug where constructors of private datatypes were
-- not made private.
module Issue484 where
module A where
private
data Foo : Set where
foo : Foo
foo′ = A.foo
|
unittests/ASM/Primary/Primary_AD_REPNE_qword.asm | cobalt2727/FEX | 628 | 84321 | %ifdef CONFIG
{
"RegData": {
"RAX": "0xB1B2B3B4B5B6B7B8",
"RSI": "0xE0000040"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
mov rax, 0x6162636465666768
mov [rdx + 8 * 2], rax
mov rax, 0x7172737475767778
mov [rdx + 8 * 3], rax
mov rax, 0x8182838485868788
mov [rdx + 8 * 4], rax
mov rax, 0x9192939495969798
mov [rdx + 8 * 5], rax
mov rax, 0xA1A2A3A4A5A6A7A8
mov [rdx + 8 * 6], rax
mov rax, 0xB1B2B3B4B5B6B7B8
mov [rdx + 8 * 7], rax
mov rax, 0x0
mov [rdx + 8 * 8], rax
lea rsi, [rdx + 8 * 0]
cld
mov rax, 0xFF
mov rcx, 8
repne lodsq
hlt
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_105.asm | ljhsiun2/medusa | 9 | 24829 | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x18aaf, %rsi
lea addresses_UC_ht+0xa8bf, %rdi
clflush (%rsi)
nop
nop
nop
add %rbp, %rbp
mov $96, %rcx
rep movsq
nop
nop
inc %rax
lea addresses_A_ht+0x194af, %r13
nop
nop
nop
nop
dec %rsi
movw $0x6162, (%r13)
nop
nop
add $59545, %rax
lea addresses_UC_ht+0x15cef, %rsi
clflush (%rsi)
nop
nop
inc %rdx
movw $0x6162, (%rsi)
cmp $43786, %rsi
lea addresses_normal_ht+0xd4af, %rsi
nop
nop
nop
nop
xor %rdx, %rdx
movl $0x61626364, (%rsi)
nop
nop
nop
inc %rbp
lea addresses_A_ht+0x1def7, %rsi
lea addresses_UC_ht+0x309f, %rdi
nop
nop
nop
nop
nop
xor $7703, %rbx
mov $73, %rcx
rep movsq
nop
nop
nop
add $26807, %rcx
lea addresses_WC_ht+0x1be9f, %rsi
lea addresses_WT_ht+0xe9bb, %rdi
nop
nop
nop
nop
and $5334, %rax
mov $64, %rcx
rep movsl
cmp $25532, %rbx
lea addresses_UC_ht+0x424f, %rdi
nop
nop
nop
nop
add $33042, %rdx
movups (%rdi), %xmm7
vpextrq $0, %xmm7, %r13
cmp $49075, %rsi
lea addresses_UC_ht+0x14aaf, %rsi
clflush (%rsi)
nop
nop
nop
nop
nop
sub %rcx, %rcx
movups (%rsi), %xmm2
vpextrq $0, %xmm2, %rax
cmp %rdi, %rdi
lea addresses_UC_ht+0x19caf, %rbp
nop
nop
nop
xor $25481, %rdx
movb $0x61, (%rbp)
nop
nop
nop
nop
nop
xor $58818, %r13
lea addresses_A_ht+0x14af, %rbx
nop
nop
nop
nop
cmp $52317, %r13
movb $0x61, (%rbx)
nop
nop
nop
nop
nop
add $34951, %rdi
lea addresses_WT_ht+0x146d7, %rcx
nop
nop
nop
and %r13, %r13
movl $0x61626364, (%rcx)
nop
sub %rdx, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r8
push %r9
push %rbp
push %rdi
push %rdx
push %rsi
// Load
lea addresses_UC+0x4caf, %rsi
nop
nop
and $45710, %rdi
mov (%rsi), %rbp
nop
nop
cmp $48392, %rsi
// Load
lea addresses_A+0xd2af, %rdi
clflush (%rdi)
nop
nop
and %r9, %r9
mov (%rdi), %r14d
nop
nop
nop
nop
nop
xor $28515, %r14
// Store
lea addresses_UC+0xad6f, %rbp
nop
nop
nop
nop
nop
sub %r8, %r8
movb $0x51, (%rbp)
nop
nop
nop
nop
and $6504, %rbp
// Faulty Load
lea addresses_PSE+0x124af, %r9
and $44141, %r8
vmovups (%r9), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $1, %xmm5, %rbp
lea oracles, %r8
and $0xff, %rbp
shlq $12, %rbp
mov (%r8,%rbp,1), %rbp
pop %rsi
pop %rdx
pop %rdi
pop %rbp
pop %r9
pop %r8
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC', 'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 6}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_UC_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_WT_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 4}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3}}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
|
unittests/32Bit_ASM/Primary/Push_Segments.asm | cobalt2727/FEX | 628 | 173722 | <filename>unittests/32Bit_ASM/Primary/Push_Segments.asm
%ifdef CONFIG
{
"RegData": {
"RSP": "0xE000001C"
},
"Mode": "32BIT"
}
%endif
mov esp, 0xe0000040
; Only push the segments
; Doesn't check for a correct segment value
; Just ensures we are pushing the correct amount of data
push cs
push ss
push ds
push es
push fs
push gs
o16 push cs
o16 push ss
o16 push ds
o16 push es
o16 push fs
o16 push gs
hlt
|
assignment_7/vigenere.nasm | CodeheadUK/SLAE64 | 2 | 175365 | <filename>assignment_7/vigenere.nasm
; Build with: nasm -felf64 vigenere.nasm -o tmp.o && ld tmp.o -o vig_asm
global _start
section .TEXT exec write
_start:
; Prompt for key
mov ebx, 0x0a3f7965 ; Build a prompt string
shl rbx, 8
add rbx, 0x4b
push rbx
mov rsi, rsp ; Get prompt string addr
push 5
pop rdx ; String length
push 1
pop rax
syscall ; sys_write
; Read response
push 64 ; Max string size
pop rdx
add rsp, rdx ; Make room on the stack
mov rsi, rsp ; Pointer to stack space
xor rax, rax ; Clear syscall id
push rax
pop rdi ; STDIN
syscall
dec rax ; String length minus newline
; Get the payload address
jmp _code_marker
_decode_start:
pop rdi ; Payload address
push 59 ; Payload length
pop rcx
xor rdx, rdx ; Offset value
; Vigenere decode
_decode:
mov bl, [rdi] ; Get a byte from payload
sub bl, [rsi+rdx] ; Subtract key value
mov [rdi], bl ; Replace encoded value
; Move pointers
inc rdi ; Encoded data pointer
inc rdx ; Key offset value
; Check for loop in keystring
cmp al, dl ; Compare to string length
jne _next
xor rdx, rdx ; Reset if required
_next:
loop _decode
jmp _payload ; Jump to decoded payload
_code_marker:
call _decode_start
_payload:
db 0xbc, 0xc2, 0xc7, 0xb7, 0x46, 0x8b, 0x0d, 0x74, 0xb9, 0xc8
db 0xb2, 0x7f, 0xc3, 0xa6, 0xb6, 0xa5, 0x8d, 0xdd, 0x3b, 0x4d
db 0x9f, 0x5e, 0xaf, 0x45, 0x9a, 0x6e, 0x4a, 0xac, 0x5e, 0x55
db 0xa3, 0x8d, 0xd9, 0xa2, 0x9f, 0xb3, 0xba, 0xd0, 0x3a, 0x54
db 0x35, 0x8b, 0x7b, 0x19, 0x9c, 0xe1, 0x83, 0x74, 0x62, 0x4a
db 0xad, 0x53, 0x9f, 0x9c, 0xe6, 0x9f, 0xaf, 0x62, 0x4a
_exit:
push 60
pop rax
syscall
|
src/main/antlr4/dk/camelot64/kickc/parser/KickCLexer.g4 | jbrandwood/kickc | 2 | 2063 | // KickC grammar
lexer grammar KickCLexer;
tokens { TYPEDEFNAME }
@header {
}
@members {
/** The C-Parser. Used for importing C-files and communicating with the Parser about typedefs. */
CParser cParser;
/** True if the next CURLY starts ASM_MODE */
boolean asmEnter = false;
/** Counts the nested curlies inside ASM_MODE to determine when to exit ASM_MODE */
int asmCurlyCount = 0;
public KickCLexer(CharStream input, CParser cParser) {
this(input);
this.cParser = cParser;
}
}
// Special characters
CURLY_BEGIN: '{' { if(asmEnter) { pushMode(ASM_MODE); asmEnter=false; } } ;
CURLY_END: '}' ;
BRACKET_BEGIN : '[' ;
BRACKET_END : ']' ;
PAR_BEGIN: '(' ;
PAR_END: ')' ;
SEMICOLON: ';' ;
COLON: ':';
COMMA: ',' ;
RANGE : '..' ;
PARAM_LIST : '...' ;
CONDITION : '?' ;
DOT : '.' ;
ARROW : '->' ;
PLUS: '+';
MINUS: '-';
ASTERISK : '*' ;
DIVIDE : '/' ;
MODULO : '%' ;
INC : '++' ;
DEC : '--' ;
AND : '&' ;
BIT_NOT : '~' ;
BIT_XOR : '^' ;
BIT_OR : '|' ;
SHIFT_LEFT : '<<' ;
SHIFT_RIGHT : '>>' ;
EQUAL: '==' ;
NOT_EQUAL: '!=' ;
LESS_THAN: '<';
LESS_THAN_EQUAL: '<=';
GREATER_THAN_EQUAL: '>=';
GREATER_THAN : '>' ;
LOGIC_AND : '&&' ;
LOGIC_OR : '||' ;
ASSIGN: '=' ;
ASSIGN_COMPOUND : '+=' | '-=' | '*=' | '/=' | '%=' | '<<=' | '>>=' | '&=' | '|=' | '^=' ;
// Keywords
TYPEDEF: 'typedef' ;
CONST: 'const' ;
EXTERN: 'extern' ;
EXPORT: '__export' ;
ALIGN: '__align' ;
INLINE: 'inline' ;
VOLATILE: 'volatile' ;
STATIC: 'static' ;
INTERRUPT: '__interrupt' ;
REGISTER: 'register' ;
LOCAL_RESERVE: '__zp_reserve' ;
ADDRESS: '__address' ;
ADDRESS_ZEROPAGE: '__zp' ;
ADDRESS_MAINMEM: '__mem' ;
FORM_SSA: '__ssa' ;
FORM_MA: '__ma' ;
INTRINSIC: '__intrinsic' ;
CALLINGCONVENTION: '__stackcall' | '__phicall' | '__varcall' | '__intrinsiccall';
IF: 'if' ;
ELSE: 'else' ;
WHILE: 'while' ;
DO: 'do' ;
FOR: 'for' ;
SWITCH: 'switch' ;
RETURN: 'return' ;
BREAK: 'break' ;
CONTINUE: 'continue' ;
GOTO: 'goto' ;
ASM: 'asm' { asmEnter=true; };
DEFAULT : 'default' ;
CASE : 'case' ;
STRUCT : 'struct' ;
UNION : 'union' ;
ENUM : 'enum' ;
SIZEOF : 'sizeof' ;
TYPEID : 'typeid' ;
DEFINED : 'defined' ;
KICKASM : 'kickasm' ;
LOGIC_NOT : '!' ;
SIMPLETYPE: 'signed' | 'unsigned' | 'byte' | 'word' | 'dword' | 'bool' | 'char' | 'short' | 'int' | 'long' | 'void' ;
BOOLEAN : 'true' | 'false';
KICKASM_BODY: '{{' .*? '}}';
// Preprocessor
IMPORT: '#import' { pushMode(IMPORT_MODE); } ;
INCLUDE: '#include' { pushMode(IMPORT_MODE); } ;
PRAGMA: '#pragma' ;
DEFINE: '#define' ;
DEFINE_CONTINUE: '\\\n' | '\\\r\n';
UNDEF: '#undef' ;
IFDEF: '#ifdef' ;
IFNDEF: '#ifndef' ;
IFIF: '#if' ;
ELIF: '#elif' ;
IFELSE: '#else' ;
ENDIF: '#endif' ;
ERROR: '#error' ;
TOKEN_STRINGIZE: '#' NAME;
TOKEN_MERGE: '#' NAME;
// Numbers
NUMBER : NUMFLOAT | NUMINT ;
NUMFLOAT : BINFLOAT | DECFLOAT | HEXFLOAT;
BINFLOAT : ('%' | '0b' | '0B' ) (BINDIGIT)* '.' BINDIGIT+;
DECFLOAT : (DECDIGIT)* '.' DECDIGIT+;
HEXFLOAT : ('$' | '0x' | '0X' ) (HEXDIGIT)* '.' HEXDIGIT+;
NUMINT : (DECINTEGER | HEXINTEGER | BININTEGER ) ([usUS][bcwisdlBCWISDL] | [lL] | [uU] )? ;
BININTEGER : '0' [bB] BINDIGIT+ | '%' BINDIGIT+ ;
DECINTEGER : DECDIGIT+ ;
HEXINTEGER : ( '$' | '0x' | '0X' ) HEXDIGIT+ ;
fragment BINDIGIT : [0-1];
fragment DECDIGIT : [0-9];
fragment HEXDIGIT : [0-9a-fA-F];
// Names
NAME : NAME_START NAME_CHAR* {if(cParser.isTypedef(getText())) setType(TYPEDEFNAME); };
fragment NAME_START : [a-zA-Z_];
fragment NAME_CHAR : [a-zA-Z0-9_];
// Strings and chars
STRING : '"' ('\\"' | ~'"')* '"' [z]?([aps][tsmua]?)?[z]? ;
CHAR : '\'' ('\\'(['"rfn\\0-9][0-9]?[0-9]?|'x'[0-9a-f][0-9a-f]) | ~'\'' ) '\'';
// White space on hidden channel 1
WS : [ \t\r\n\u00a0]+ -> channel(1);
// Comments on hidden channel 2
COMMENT_LINE : '//' ~[\r\n]* -> channel(2);
COMMENT_BLOCK : '/*' .*? '*/' -> channel(2);
// MODE FOR INLINE ASSEMBLER
mode ASM_MODE;
ASM_BYTE : '.byte' ;
ASM_MNEMONIC:
'brk' | 'ora' | 'kil' | 'slo' | 'nop' | 'asl' | 'php' | 'anc' | 'bpl' | 'clc' | 'jsr' | 'and' | 'rla' | 'bit' | 'rol' | 'pla' | 'plp' | 'bmi' | 'sec' |
'rti' | 'eor' | 'sre' | 'lsr' | 'pha' | 'alr' | 'jmp' | 'bvc' | 'cli' | 'rts' | 'adc' | 'rra' | 'bvs' | 'sei' | 'sax' | 'sty' | 'sta' | 'stx' | 'dey' |
'txa' | 'xaa' | 'bcc' | 'ahx' | 'tya' | 'txs' | 'tas' | 'shy' | 'shx' | 'ldy' | 'lda' | 'ldx' | 'lax' | 'tay' | 'tax' | 'bcs' | 'clv' | 'tsx' | 'las' |
'cpy' | 'cmp' | 'cpx' | 'dcp' | 'dec' | 'inc' | 'axs' | 'bne' | 'cld' | 'sbc' | 'isc' | 'inx' | 'beq' | 'sed' | 'dex' | 'iny' | 'ror' | 'bbr0'| 'bbr1'|
'bbr2'| 'bbr3'| 'bbr4'| 'bbr5'| 'bbr6'| 'bbr7'| 'bbs0'| 'bbs1'| 'bbs2'| 'bbs3'| 'bbs4'| 'bbs5'| 'bbs6'| 'bbs7'| 'bra' | 'phx' | 'phy' | 'plx' | 'ply' |
'rmb0'| 'rmb1'| 'rmb2'| 'rmb3'| 'rmb4'| 'rmb5'| 'rmb6'| 'rmb7'| 'smb0'| 'smb1'| 'smb2'| 'smb3'| 'smb4'| 'smb5'| 'smb6'| 'smb7'| 'stp' | 'stz' | 'trb' |
'tsb' | 'wai' | 'cle' | 'see' | 'tsy' | 'lbpl'| 'inz' | 'tys' | 'lbmi'| 'dez' | 'neg' | 'asr' | 'taz' | 'lbvc'| 'tab' | 'map' | 'rtn' | 'lbsr'| 'tza' |
'lbvs'| 'tba' | 'lbra'| 'lbcc'| 'ldz' | 'lbcs'| 'cpz' | 'dew' | 'asw' | 'lbne'| 'phz' | 'inw' | 'row' | 'lbeq'| 'phw' | 'plz' | 'eom' | 'adcq'| 'andq'|
'aslq'| 'asrq'| 'bitq'| 'cpq' | 'deq' | 'eorq'| 'inq' | 'ldq' | 'lsrq'| 'orq' | 'rolq'| 'rorq'| 'sbcq'| 'stq' | 'sxy' | 'st0' | 'st1' | 'st2' | 'say' |
'tma' | 'bsr' | 'tam' | 'csl' | 'cla' | 'clx' | 'cly' | 'csh' | 'set' | 'tst' | 'tia' | 'tdd' | 'tin' | 'tii'
;
ASM_IMM : '#' ;
ASM_COLON : ':';
ASM_COMMA : ',' ;
ASM_PAR_BEGIN : '(' ;
ASM_PAR_END : ')' ;
ASM_BRACKET_BEGIN: '[' ;
ASM_BRACKET_END: ']' ;
ASM_DOT : '.' ;
ASM_SHIFT_LEFT : '<<' ;
ASM_SHIFT_RIGHT : '>>' ;
ASM_PLUS : '+' ;
ASM_MINUS : '-' ;
ASM_LESS_THAN : '<' ;
ASM_GREATER_THAN : '>' ;
ASM_MULTIPLY : '*' ;
ASM_DIVIDE : '/' ;
ASM_CURLY_BEGIN : '{' { asmCurlyCount++; };
ASM_CURLY_END : '}' { asmCurlyCount--; if(asmCurlyCount<0) { popMode(); } };
// Numbers
ASM_NUMBER : ASM_NUMFLOAT | ASM_NUMINT ;
ASM_NUMFLOAT : ASM_BINFLOAT | ASM_DECFLOAT | ASM_HEXFLOAT;
ASM_BINFLOAT : '%' (ASM_BINDIGIT)* '.' ASM_BINDIGIT+;
ASM_DECFLOAT : (ASM_DECDIGIT)* '.' ASM_DECDIGIT+;
ASM_HEXFLOAT : '$' (ASM_HEXDIGIT)* '.' ASM_HEXDIGIT+;
ASM_NUMINT : (ASM_DECINTEGER | ASM_HEXINTEGER | ASM_BININTEGER ) ;
ASM_BININTEGER : '%' ASM_BINDIGIT+ ;
ASM_DECINTEGER : ASM_DECDIGIT+ ;
ASM_HEXINTEGER : '$' ASM_HEXDIGIT+ ;
fragment ASM_BINDIGIT : [0-1];
fragment ASM_DECDIGIT : [0-9];
fragment ASM_HEXDIGIT : [0-9a-fA-F];
ASM_CHAR : '\'' ('\\'['"rfn] | ~'\'' ) '\'';
ASM_MULTI_REL: ASM_MULTI_NAME [+-]+ ;
ASM_MULTI_NAME : '!' ASM_NAME_CHAR* ;
//Names
ASM_NAME : ASM_NAME_START ASM_NAME_CHAR* ;
fragment ASM_NAME_START : [a-zA-Z_];
fragment ASM_NAME_CHAR : [a-zA-Z0-9_];
// Tags
ASM_TAG : '@' ASM_NAME;
// White space on hidden channel 1
ASM_WS : [ \t\r\n\u00a0]+ -> channel(1);
// Comments on hidden channel 2
ASM_COMMENT_LINE : '//' ~[\r\n]* -> channel(2);
ASM_COMMENT_BLOCK : '/*' .*? '*/' -> channel(2);
// MODE FOR #INCLUDE FILES
mode IMPORT_MODE;
IMPORT_SYSTEMFILE : '<' [a-zA-Z0-9_./\\\-]+ '>' { popMode(); } ;
IMPORT_LOCALFILE : '"' ('\\"' | ~'"')* '"' { popMode(); } ;
// White space on hidden channel 1
IMPORT_WS : [ \t\r\n\u00a0]+ -> channel(1);
// Comments on hidden channel 2
IMPORT_COMMENT_LINE : '//' ~[\r\n]* -> channel(2);
IMPORT_COMMENT_BLOCK : '/*' .*? '*/' -> channel(2);
|
include/spacelib2/lib/input.asm | backwardspy/spacelib2 | 0 | 24841 | .filenamespace sl
.namespace input {
.label joy_button_up = %00000001
.label joy_button_down = %00000010
.label joy_button_left = %00000100
.label joy_button_right = %00001000
.label joy_button_fire = %00010000
/*
* checks status of a joystick button
* Z flag indicates button status
*/
.macro @sl_input_joy_pressed(port, button) {
.if (port != 1 && port != 2) {
.error("sl_input_joy_pressed: `port` must be 1 or 2")
}
.if (
button != joy_button_up &&
button != joy_button_down &&
button != joy_button_left &&
button != joy_button_right &&
button != joy_button_fire
) {
.error(
"sl_input_joy_pressed: `button` must be a joy_button constant"
)
}
.var reg
.if (port == 1) {
.eval reg = data_port_b
} else {
.eval reg = data_port_a
}
lda #button
bit reg
}
} |
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_355.asm | ljhsiun2/medusa | 9 | 98621 | <filename>Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_21829_355.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x6a63, %rsi
lea addresses_UC_ht+0xe5e3, %rdi
nop
nop
nop
inc %r14
mov $68, %rcx
rep movsq
nop
nop
nop
nop
sub %r13, %r13
lea addresses_normal_ht+0x117a3, %rsi
lea addresses_A_ht+0xcdab, %rdi
clflush (%rsi)
cmp %rbx, %rbx
mov $99, %rcx
rep movsb
nop
nop
nop
inc %r14
lea addresses_D_ht+0x17c3, %rdi
clflush (%rdi)
nop
nop
nop
nop
inc %r12
mov (%rdi), %ebx
nop
nop
cmp $3557, %rsi
lea addresses_A_ht+0x12a19, %r13
cmp %rdi, %rdi
movw $0x6162, (%r13)
nop
nop
nop
cmp %r12, %r12
lea addresses_WT_ht+0x105e3, %rcx
clflush (%rcx)
sub %rbx, %rbx
mov (%rcx), %r14
nop
nop
nop
xor %rcx, %rcx
lea addresses_normal_ht+0x62e3, %rsi
lea addresses_A_ht+0x17163, %rdi
clflush (%rdi)
cmp %r9, %r9
mov $32, %rcx
rep movsq
nop
nop
nop
xor %rcx, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r8
push %rax
push %rcx
// Faulty Load
lea addresses_D+0xdee3, %rcx
nop
nop
and %r8, %r8
movups (%rcx), %xmm5
vpextrq $0, %xmm5, %r14
lea oracles, %rax
and $0xff, %r14
shlq $12, %r14
mov (%rax,%r14,1), %r14
pop %rcx
pop %rax
pop %r8
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}}
{'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': True, 'type': 'addresses_A_ht', 'size': 2, 'AVXalign': True}}
{'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
|
archive/agda-3/src/Oscar/Class/Amgu.agda | m0davis/oscar | 0 | 4200 | <filename>archive/agda-3/src/Oscar/Class/Amgu.agda
open import Oscar.Prelude
module Oscar.Class.Amgu where
record Amgu {𝔵} {X : Ø 𝔵} {𝔱} (T : X → Ø 𝔱) {𝔞} (A : X → Ø 𝔞) {𝔪} (M : Ø 𝔞 → Ø 𝔪) : Ø 𝔵 ∙̂ 𝔱 ∙̂ 𝔞 ∙̂ 𝔪 where
field amgu : ∀ {x} → T x → T x → A x → M (A x)
open Amgu ⦃ … ⦄ public
|
zowie-scripts/Run Zowie on newly indexed PDF.applescript | mhucka/devonthink-hacks | 36 | 493 | # =======================================================================
# @file Run Zowie on newly indexed PDF.applescript
# @brief Script for DEVONthink smart rule to run Zowie on new additions
# @author <NAME> <<EMAIL>>
# @license MIT license; please see the file LICENSE in the repo
# @repo https://github.com/mhucka/devonthink-hacks
# =======================================================================
# The following function is based on code posted by user "mb21" on
# 2016-06-26 at https://stackoverflow.com/a/38042023/743730
on substituted(search_string, replacement_string, this_text)
set AppleScript's text item delimiters to the search_string
set the item_list to every text item of this_text
set AppleScript's text item delimiters to the replacement_string
set this_text to the item_list as string
set AppleScript's text item delimiters to ""
return this_text
end substituted
on performSmartRule(selectedRecords)
repeat with _record in selectedRecords
# In my environment, Zotero takes time to upload a newly-added
# PDF to the cloud. The following delay is needed to give time
# for the upload to take place, so that when Zowie runs and
# queries Zotero via the network API, the data will be there.
delay 30
set raw_path to the path of the _record
# Some chars in file names are problematic due to having special
# meanings in shell command strings. Need to quote them with 2
# blackslashes, b/c the 1st backslash will be removed when the
# shell command string is handed to the shell.
set sanitized_path to substituted("&", "\\\\&", raw_path)
# Another problem with file names is embedded single quotes. The
# combination of changing the text delimiter and using the
# AppleScript "quoted form of" below, seems to do the trick.
set AppleScript's text item delimiters to "\\\\"
set result to do shell script ¬
"/usr/local/bin/zowie -s -q " & (quoted form of sanitized_path)
# Display a DEVONthink notification if an error occurred.
if result is not equal to "" then
display notification result
end if
end repeat
end performSmartRule
|
test/Succeed/Issue1209-3.agda | shlevy/agda | 1,989 | 14982 | <reponame>shlevy/agda
-- A variant of code reported by <NAME>, due to Andreas Abel and
-- <NAME>.
-- npouillard, 2011-10-04
{-# OPTIONS --guardedness --sized-types #-}
open import Common.Coinduction renaming (∞ to co)
open import Common.Size
data ⊥ : Set where
data Mu-co : Size → Set where
inn : ∀ {i} → co (Mu-co i) → Mu-co (↑ i)
iter : ∀ {i} → Mu-co i → ⊥
iter (inn t) = iter (♭ t)
bla : Mu-co ∞
bla = inn (♯ bla)
false : ⊥
false = iter bla
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.