text
stringlengths
1
1.05M
; --------------------------------------------------------------------------- ; Tell compiler to generate 64 bit code ; --------------------------------------------------------------------------- bits 64 ; --------------------------------------------------------------------------- ; Data segment: ; --------------------------------------------------------------------------- section .data use64 ; Multiline printf format txt_format: db 10,"===========================" db 10,"Hello world:" db 10,"===========================" db 10,"param1: %u" db 10,"param2: %I64u" db 10,"param3: %f" db 10,"param4: 0x%X" db 10,"param5: %f" db 10,"param6: 0x%I64X" db 10,"===========================",10,0 align 16 ; Align txt_format data to 16 byte boundary ; Parameters: param1: dq 0xFFFFFFFF param2: dq 0xFFFFFFFFFFFFFFFF param3: dq 29999.452 param4: dq 0xDEADBEEF ; Some other value param5: dq 555595.5477 param6: dq 0xABBABABAABBABABA section .bss use64 iter: resb 8 ; --------------------------------------------------------------------------- ; Code segment: ; --------------------------------------------------------------------------- section .text use64 ; --------------------------------------------------------------------------- ; Define macro: Invoke ; --------------------------------------------------------------------------- %macro Invoke 1-* %if %0 > 1 %rotate 1 mov rcx,qword %1 %rotate 1 %if %0 > 2 mov rdx,qword %1 %rotate 1 %if %0 > 3 mov r8,qword %1 %rotate 1 %if %0 > 4 mov r9,qword %1 %rotate 1 %if %0 > 5 %assign max %0-5 %assign i 32 %rep max mov rax,qword %1 mov qword [rsp+i],rax %assign i i+8 %rotate 1 %endrep %endif %endif %endif %endif %endif ; ------------------------ ; call %1 ; would be the same as this: ; ----------------------------------------- sub rsp,qword 8 mov qword [rsp],%%returnAddress jmp %1 %%returnAddress: ; ----------------------------------------- %endmacro ; --------------------------------------------------------------------------- ; C management ; --------------------------------------------------------------------------- global main extern printf main: ; ----------------------------------------------------------------------------- ; Allocate stack memory ; ----------------------------------------------------------------------------- sub rsp,8*7 ; Allocated 8*7 bytes: ; 8*4 from them are defaut parameters for all functions. ; 8*3 from them are those extra three parameters on stack. ; Total allocated space for seven parameters. ; 4x Default parameters are passed via registers. ; Those 3x extra parameters are passed via stack. ; !!! Always allocate stack space => odd number * 8, ; like now is just like we need => 8*7, doing like this will ; balance stack and make it aligned on 16 byte boundary. ; ----------------------------------------------------------------------------- ; Call printf with seven parameters ; 4x of them are assigned to registers. ; 3x of them are assigned to stack spaces. ; ----------------------------------------------------------------------------- ; Call printf with seven parameters ; ----------------------------------------------------------------------------- Invoke printf,txt_format,[param1],[param2],[param3],[param4],[param5] ; ----------------------------------------------------------------------------- ; The same, BUT, without 'Invoke' macro would be like this: ; ----------------------------------------------------------------------------- ; #3x# ; Stack parameters mov rax,qword [param6] mov qword [rsp+48],rax mov rax,qword [param5] mov qword [rsp+40],rax mov rax,qword [param4] mov qword [rsp+32],rax ; --------------------------- ; #4x# ; Register parameters mov r9,qword [param3] mov r8,qword [param2] mov rdx,qword [param1] mov rcx,qword txt_format ; --------------------------- call printf ; --------------------------- ; ----------------------------------------------------------------------------- ; Release stack memory ; ----------------------------------------------------------------------------- add rsp,8*7 ; ----------------------------------------------------------------------------- ; Quit ; ----------------------------------------------------------------------------- mov rax,qword 0 ret ; ---- ; END ---- ; ----
db 0 ; species ID placeholder db 60, 60, 75, 80, 60, 75 ; hp atk def spd sat sdf db FIGHTING, PSYCHIC ; type db 90 ; catch rate db 153 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/medicham/front.dimensions" db 0, 0, 0, 0 ; padding db GROWTH_MEDIUM_FAST ; growth rate dn EGG_HUMANSHAPE, EGG_HUMANSHAPE ; egg groups ; tm/hm learnset tmhm DYNAMICPUNCH, HEADBUTT, CURSE, TOXIC, ROCK_SMASH, PSYCH_UP, HIDDEN_POWER, SUNNY_DAY, SNORE, HYPER_BEAM, PROTECT, RAIN_DANCE, ENDURE, FRUSTRATION, RETURN, PSYCHIC_M, SHADOW_BALL, MUD_SLAP, DOUBLE_TEAM, ICE_PUNCH, SWAGGER, SLEEP_TALK, SWIFT, THUNDERPUNCH, DREAM_EATER, DETECT, REST, ATTRACT, FIRE_PUNCH, NIGHTMARE, STRENGTH, FLASH ; end
; DO NOT MODIFY THIS FILE DIRECTLY! ; author: @TinySecEx ; shadowssdt asm stub for 5.1.2600-sp0-windows-xp i386 .686 .mmx .xmm .model flat,stdcall option casemap:none option prologue:none option epilogue:none .code ; ULONG __stdcall NtGdiAbortDoc( ULONG arg_01 ); NtGdiAbortDoc PROC STDCALL arg_01:DWORD mov eax , 4096 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiAbortDoc ENDP ; ULONG __stdcall NtGdiAbortPath( ULONG arg_01 ); NtGdiAbortPath PROC STDCALL arg_01:DWORD mov eax , 4097 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiAbortPath ENDP ; ULONG __stdcall NtGdiAddFontResourceW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiAddFontResourceW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4098 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiAddFontResourceW ENDP ; ULONG __stdcall NtGdiAddRemoteFontToDC( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiAddRemoteFontToDC PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4099 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiAddRemoteFontToDC ENDP ; ULONG __stdcall NtGdiAddFontMemResourceEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiAddFontMemResourceEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4100 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiAddFontMemResourceEx ENDP ; ULONG __stdcall NtGdiRemoveMergeFont( ULONG arg_01 , ULONG arg_02 ); NtGdiRemoveMergeFont PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4101 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiRemoveMergeFont ENDP ; ULONG __stdcall NtGdiAddRemoteMMInstanceToDC( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiAddRemoteMMInstanceToDC PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4102 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiAddRemoteMMInstanceToDC ENDP ; ULONG __stdcall NtGdiAlphaBlend( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 ); NtGdiAlphaBlend PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD mov eax , 4103 mov edx , 7FFE0300h call dword ptr [edx] ret 48 NtGdiAlphaBlend ENDP ; ULONG __stdcall NtGdiAngleArc( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiAngleArc PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4104 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiAngleArc ENDP ; ULONG __stdcall NtGdiAnyLinkedFonts( ); NtGdiAnyLinkedFonts PROC STDCALL mov eax , 4105 mov edx , 7FFE0300h call dword ptr [edx] ret NtGdiAnyLinkedFonts ENDP ; ULONG __stdcall GreFontIsLinked( ULONG arg_01 ); GreFontIsLinked PROC STDCALL arg_01:DWORD mov eax , 4106 mov edx , 7FFE0300h call dword ptr [edx] ret 4 GreFontIsLinked ENDP ; ULONG __stdcall NtGdiArcInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); NtGdiArcInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 4107 mov edx , 7FFE0300h call dword ptr [edx] ret 40 NtGdiArcInternal ENDP ; ULONG __stdcall NtGdiBeginPath( ULONG arg_01 ); NtGdiBeginPath PROC STDCALL arg_01:DWORD mov eax , 4108 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiBeginPath ENDP ; ULONG __stdcall NtGdiBitBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); NtGdiBitBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 4109 mov edx , 7FFE0300h call dword ptr [edx] ret 44 NtGdiBitBlt ENDP ; ULONG __stdcall NtGdiCancelDC( ULONG arg_01 ); NtGdiCancelDC PROC STDCALL arg_01:DWORD mov eax , 4110 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiCancelDC ENDP ; ULONG __stdcall NtGdiCheckBitmapBits( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); NtGdiCheckBitmapBits PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 4111 mov edx , 7FFE0300h call dword ptr [edx] ret 32 NtGdiCheckBitmapBits ENDP ; ULONG __stdcall NtGdiCloseFigure( ULONG arg_01 ); NtGdiCloseFigure PROC STDCALL arg_01:DWORD mov eax , 4112 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiCloseFigure ENDP ; ULONG __stdcall NtGdiClearBitmapAttributes( ULONG arg_01 , ULONG arg_02 ); NtGdiClearBitmapAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4113 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiClearBitmapAttributes ENDP ; ULONG __stdcall NtGdiClearBrushAttributes( ULONG arg_01 , ULONG arg_02 ); NtGdiClearBrushAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4114 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiClearBrushAttributes ENDP ; ULONG __stdcall NtGdiColorCorrectPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiColorCorrectPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4115 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiColorCorrectPalette ENDP ; ULONG __stdcall NtGdiCombineRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiCombineRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4116 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiCombineRgn ENDP ; ULONG __stdcall NtGdiCombineTransform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiCombineTransform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4117 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiCombineTransform ENDP ; ULONG __stdcall NtGdiComputeXformCoefficients( ULONG arg_01 ); NtGdiComputeXformCoefficients PROC STDCALL arg_01:DWORD mov eax , 4118 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiComputeXformCoefficients ENDP ; ULONG __stdcall NtGdiConsoleTextOut( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiConsoleTextOut PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4119 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiConsoleTextOut ENDP ; ULONG __stdcall NtGdiConvertMetafileRect( ULONG arg_01 , ULONG arg_02 ); NtGdiConvertMetafileRect PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4120 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiConvertMetafileRect ENDP ; ULONG __stdcall NtGdiCreateBitmap( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiCreateBitmap PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4121 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiCreateBitmap ENDP ; ULONG __stdcall NtGdiCreateClientObj( ULONG arg_01 ); NtGdiCreateClientObj PROC STDCALL arg_01:DWORD mov eax , 4122 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiCreateClientObj ENDP ; ULONG __stdcall NtGdiCreateColorSpace( ULONG arg_01 ); NtGdiCreateColorSpace PROC STDCALL arg_01:DWORD mov eax , 4123 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiCreateColorSpace ENDP ; ULONG __stdcall NtGdiCreateColorTransform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); NtGdiCreateColorTransform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 4124 mov edx , 7FFE0300h call dword ptr [edx] ret 32 NtGdiCreateColorTransform ENDP ; ULONG __stdcall NtGdiCreateCompatibleBitmap( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiCreateCompatibleBitmap PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4125 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiCreateCompatibleBitmap ENDP ; ULONG __stdcall NtGdiCreateCompatibleDC( ULONG arg_01 ); NtGdiCreateCompatibleDC PROC STDCALL arg_01:DWORD mov eax , 4126 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiCreateCompatibleDC ENDP ; ULONG __stdcall NtGdiCreateDIBBrush( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiCreateDIBBrush PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4127 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiCreateDIBBrush ENDP ; ULONG __stdcall NtGdiCreateDIBitmapInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); NtGdiCreateDIBitmapInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 4128 mov edx , 7FFE0300h call dword ptr [edx] ret 44 NtGdiCreateDIBitmapInternal ENDP ; ULONG __stdcall NtGdiCreateDIBSection( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); NtGdiCreateDIBSection PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 4129 mov edx , 7FFE0300h call dword ptr [edx] ret 36 NtGdiCreateDIBSection ENDP ; ULONG __stdcall NtGdiCreateEllipticRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiCreateEllipticRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4130 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiCreateEllipticRgn ENDP ; ULONG __stdcall NtGdiCreateHalftonePalette( ULONG arg_01 ); NtGdiCreateHalftonePalette PROC STDCALL arg_01:DWORD mov eax , 4131 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiCreateHalftonePalette ENDP ; ULONG __stdcall NtGdiCreateHatchBrushInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiCreateHatchBrushInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4132 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiCreateHatchBrushInternal ENDP ; ULONG __stdcall NtGdiCreateMetafileDC( ULONG arg_01 ); NtGdiCreateMetafileDC PROC STDCALL arg_01:DWORD mov eax , 4133 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiCreateMetafileDC ENDP ; ULONG __stdcall NtGdiCreatePaletteInternal( ULONG arg_01 , ULONG arg_02 ); NtGdiCreatePaletteInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4134 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiCreatePaletteInternal ENDP ; ULONG __stdcall NtGdiCreatePatternBrushInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiCreatePatternBrushInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4135 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiCreatePatternBrushInternal ENDP ; ULONG __stdcall NtGdiCreatePen( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiCreatePen PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4136 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiCreatePen ENDP ; ULONG __stdcall NtGdiCreateRectRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiCreateRectRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4137 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiCreateRectRgn ENDP ; ULONG __stdcall NtGdiCreateRoundRectRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiCreateRoundRectRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4138 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiCreateRoundRectRgn ENDP ; ULONG __stdcall NtGdiCreateServerMetaFile( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiCreateServerMetaFile PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4139 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiCreateServerMetaFile ENDP ; ULONG __stdcall NtGdiCreateSolidBrush( ULONG arg_01 , ULONG arg_02 ); NtGdiCreateSolidBrush PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4140 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiCreateSolidBrush ENDP ; ULONG __stdcall NtGdiD3dContextCreate( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiD3dContextCreate PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4141 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiD3dContextCreate ENDP ; ULONG __stdcall NtGdiD3dContextDestroy( ULONG arg_01 ); NtGdiD3dContextDestroy PROC STDCALL arg_01:DWORD mov eax , 4142 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiD3dContextDestroy ENDP ; ULONG __stdcall NtGdiD3dContextDestroyAll( ULONG arg_01 ); NtGdiD3dContextDestroyAll PROC STDCALL arg_01:DWORD mov eax , 4143 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiD3dContextDestroyAll ENDP ; ULONG __stdcall NtGdiD3dValidateTextureStageState( ULONG arg_01 ); NtGdiD3dValidateTextureStageState PROC STDCALL arg_01:DWORD mov eax , 4144 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiD3dValidateTextureStageState ENDP ; ULONG __stdcall NtGdiD3dDrawPrimitives2( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtGdiD3dDrawPrimitives2 PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4145 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtGdiD3dDrawPrimitives2 ENDP ; ULONG __stdcall NtGdiDdGetDriverState( ULONG arg_01 ); NtGdiDdGetDriverState PROC STDCALL arg_01:DWORD mov eax , 4146 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiDdGetDriverState ENDP ; ULONG __stdcall NtGdiDdAddAttachedSurface( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiDdAddAttachedSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4147 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiDdAddAttachedSurface ENDP ; ULONG __stdcall NtGdiDdAlphaBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiDdAlphaBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4148 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiDdAlphaBlt ENDP ; ULONG __stdcall NtGdiDdAttachSurface( ULONG arg_01 , ULONG arg_02 ); NtGdiDdAttachSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4149 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdAttachSurface ENDP ; ULONG __stdcall NtGdiDdBeginMoCompFrame( ULONG arg_01 , ULONG arg_02 ); NtGdiDdBeginMoCompFrame PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4150 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdBeginMoCompFrame ENDP ; ULONG __stdcall NtGdiDdBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiDdBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4151 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiDdBlt ENDP ; ULONG __stdcall NtGdiDdCanCreateSurface( ULONG arg_01 , ULONG arg_02 ); NtGdiDdCanCreateSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4152 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdCanCreateSurface ENDP ; ULONG __stdcall NtGdiDdCanCreateD3DBuffer( ULONG arg_01 , ULONG arg_02 ); NtGdiDdCanCreateD3DBuffer PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4153 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdCanCreateD3DBuffer ENDP ; ULONG __stdcall NtGdiDdColorControl( ULONG arg_01 , ULONG arg_02 ); NtGdiDdColorControl PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4154 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdColorControl ENDP ; ULONG __stdcall NtGdiDdCreateDirectDrawObject( ULONG arg_01 ); NtGdiDdCreateDirectDrawObject PROC STDCALL arg_01:DWORD mov eax , 4155 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiDdCreateDirectDrawObject ENDP ; ULONG __stdcall NtGdiDdCreateSurface( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); NtGdiDdCreateSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 4156 mov edx , 7FFE0300h call dword ptr [edx] ret 32 NtGdiDdCreateSurface ENDP ; ULONG __stdcall NtGdiDdCreateD3DBuffer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); NtGdiDdCreateD3DBuffer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 4157 mov edx , 7FFE0300h call dword ptr [edx] ret 32 NtGdiDdCreateD3DBuffer ENDP ; ULONG __stdcall NtGdiDdCreateMoComp( ULONG arg_01 , ULONG arg_02 ); NtGdiDdCreateMoComp PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4158 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdCreateMoComp ENDP ; ULONG __stdcall NtGdiDdCreateSurfaceObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiDdCreateSurfaceObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4159 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiDdCreateSurfaceObject ENDP ; ULONG __stdcall NtGdiDdDeleteDirectDrawObject( ULONG arg_01 ); NtGdiDdDeleteDirectDrawObject PROC STDCALL arg_01:DWORD mov eax , 4160 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiDdDeleteDirectDrawObject ENDP ; ULONG __stdcall NtGdiDdDeleteSurfaceObject( ULONG arg_01 ); NtGdiDdDeleteSurfaceObject PROC STDCALL arg_01:DWORD mov eax , 4161 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiDdDeleteSurfaceObject ENDP ; ULONG __stdcall NtGdiDdDestroyMoComp( ULONG arg_01 , ULONG arg_02 ); NtGdiDdDestroyMoComp PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4162 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdDestroyMoComp ENDP ; ULONG __stdcall NtGdiDdDestroySurface( ULONG arg_01 , ULONG arg_02 ); NtGdiDdDestroySurface PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4163 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdDestroySurface ENDP ; ULONG __stdcall NtGdiDdDestroyD3DBuffer( ULONG arg_01 ); NtGdiDdDestroyD3DBuffer PROC STDCALL arg_01:DWORD mov eax , 4164 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiDdDestroyD3DBuffer ENDP ; ULONG __stdcall NtGdiDdEndMoCompFrame( ULONG arg_01 , ULONG arg_02 ); NtGdiDdEndMoCompFrame PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4165 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdEndMoCompFrame ENDP ; ULONG __stdcall NtGdiDdFlip( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiDdFlip PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4166 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiDdFlip ENDP ; ULONG __stdcall NtGdiDdFlipToGDISurface( ULONG arg_01 , ULONG arg_02 ); NtGdiDdFlipToGDISurface PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4167 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdFlipToGDISurface ENDP ; ULONG __stdcall NtGdiDdGetAvailDriverMemory( ULONG arg_01 , ULONG arg_02 ); NtGdiDdGetAvailDriverMemory PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4168 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdGetAvailDriverMemory ENDP ; ULONG __stdcall NtGdiDdGetBltStatus( ULONG arg_01 , ULONG arg_02 ); NtGdiDdGetBltStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4169 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdGetBltStatus ENDP ; ULONG __stdcall NtGdiDdGetDC( ULONG arg_01 , ULONG arg_02 ); NtGdiDdGetDC PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4170 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdGetDC ENDP ; ULONG __stdcall NtGdiDdGetDriverInfo( ULONG arg_01 , ULONG arg_02 ); NtGdiDdGetDriverInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4171 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdGetDriverInfo ENDP ; ULONG __stdcall NtGdiDdGetDxHandle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiDdGetDxHandle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4172 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiDdGetDxHandle ENDP ; ULONG __stdcall NtGdiDdGetFlipStatus( ULONG arg_01 , ULONG arg_02 ); NtGdiDdGetFlipStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4173 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdGetFlipStatus ENDP ; ULONG __stdcall NtGdiDdGetInternalMoCompInfo( ULONG arg_01 , ULONG arg_02 ); NtGdiDdGetInternalMoCompInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4174 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdGetInternalMoCompInfo ENDP ; ULONG __stdcall NtGdiDdGetMoCompBuffInfo( ULONG arg_01 , ULONG arg_02 ); NtGdiDdGetMoCompBuffInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4175 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdGetMoCompBuffInfo ENDP ; ULONG __stdcall NtGdiDdGetMoCompGuids( ULONG arg_01 , ULONG arg_02 ); NtGdiDdGetMoCompGuids PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4176 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdGetMoCompGuids ENDP ; ULONG __stdcall NtGdiDdGetMoCompFormats( ULONG arg_01 , ULONG arg_02 ); NtGdiDdGetMoCompFormats PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4177 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdGetMoCompFormats ENDP ; ULONG __stdcall NtGdiDdGetScanLine( ULONG arg_01 , ULONG arg_02 ); NtGdiDdGetScanLine PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4178 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdGetScanLine ENDP ; ULONG __stdcall NtGdiDdLock( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiDdLock PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4179 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiDdLock ENDP ; ULONG __stdcall NtGdiDdLockD3D( ULONG arg_01 , ULONG arg_02 ); NtGdiDdLockD3D PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4180 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdLockD3D ENDP ; ULONG __stdcall NtGdiDdQueryDirectDrawObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); NtGdiDdQueryDirectDrawObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 4181 mov edx , 7FFE0300h call dword ptr [edx] ret 44 NtGdiDdQueryDirectDrawObject ENDP ; ULONG __stdcall NtGdiDdQueryMoCompStatus( ULONG arg_01 , ULONG arg_02 ); NtGdiDdQueryMoCompStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4182 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdQueryMoCompStatus ENDP ; ULONG __stdcall NtGdiDdReenableDirectDrawObject( ULONG arg_01 , ULONG arg_02 ); NtGdiDdReenableDirectDrawObject PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4183 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdReenableDirectDrawObject ENDP ; ULONG __stdcall NtGdiDdReleaseDC( ULONG arg_01 ); NtGdiDdReleaseDC PROC STDCALL arg_01:DWORD mov eax , 4184 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiDdReleaseDC ENDP ; ULONG __stdcall NtGdiDdRenderMoComp( ULONG arg_01 , ULONG arg_02 ); NtGdiDdRenderMoComp PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4185 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdRenderMoComp ENDP ; ULONG __stdcall NtGdiDdResetVisrgn( ULONG arg_01 , ULONG arg_02 ); NtGdiDdResetVisrgn PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4186 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdResetVisrgn ENDP ; ULONG __stdcall NtGdiDdSetColorKey( ULONG arg_01 , ULONG arg_02 ); NtGdiDdSetColorKey PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4187 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdSetColorKey ENDP ; ULONG __stdcall NtGdiDdSetExclusiveMode( ULONG arg_01 , ULONG arg_02 ); NtGdiDdSetExclusiveMode PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4188 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdSetExclusiveMode ENDP ; ULONG __stdcall NtGdiDdSetGammaRamp( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiDdSetGammaRamp PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4189 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiDdSetGammaRamp ENDP ; ULONG __stdcall NtGdiDdCreateSurfaceEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiDdCreateSurfaceEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4190 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiDdCreateSurfaceEx ENDP ; ULONG __stdcall NtGdiDdSetOverlayPosition( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiDdSetOverlayPosition PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4191 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiDdSetOverlayPosition ENDP ; ULONG __stdcall NtGdiDdUnattachSurface( ULONG arg_01 , ULONG arg_02 ); NtGdiDdUnattachSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4192 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdUnattachSurface ENDP ; ULONG __stdcall NtGdiDdUnlock( ULONG arg_01 , ULONG arg_02 ); NtGdiDdUnlock PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4193 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdUnlock ENDP ; ULONG __stdcall NtGdiDdUnlockD3D( ULONG arg_01 , ULONG arg_02 ); NtGdiDdUnlockD3D PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4194 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdUnlockD3D ENDP ; ULONG __stdcall NtGdiDdUpdateOverlay( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiDdUpdateOverlay PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4195 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiDdUpdateOverlay ENDP ; ULONG __stdcall NtGdiDdWaitForVerticalBlank( ULONG arg_01 , ULONG arg_02 ); NtGdiDdWaitForVerticalBlank PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4196 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDdWaitForVerticalBlank ENDP ; ULONG __stdcall NtGdiDvpCanCreateVideoPort( ULONG arg_01 , ULONG arg_02 ); NtGdiDvpCanCreateVideoPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4197 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDvpCanCreateVideoPort ENDP ; ULONG __stdcall NtGdiDvpColorControl( ULONG arg_01 , ULONG arg_02 ); NtGdiDvpColorControl PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4198 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDvpColorControl ENDP ; ULONG __stdcall NtGdiDvpCreateVideoPort( ULONG arg_01 , ULONG arg_02 ); NtGdiDvpCreateVideoPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4199 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDvpCreateVideoPort ENDP ; ULONG __stdcall NtGdiDvpDestroyVideoPort( ULONG arg_01 , ULONG arg_02 ); NtGdiDvpDestroyVideoPort PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4200 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDvpDestroyVideoPort ENDP ; ULONG __stdcall NtGdiDvpFlipVideoPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiDvpFlipVideoPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4201 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiDvpFlipVideoPort ENDP ; ULONG __stdcall NtGdiDvpGetVideoPortBandwidth( ULONG arg_01 , ULONG arg_02 ); NtGdiDvpGetVideoPortBandwidth PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4202 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDvpGetVideoPortBandwidth ENDP ; ULONG __stdcall NtGdiDvpGetVideoPortField( ULONG arg_01 , ULONG arg_02 ); NtGdiDvpGetVideoPortField PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4203 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDvpGetVideoPortField ENDP ; ULONG __stdcall NtGdiDvpGetVideoPortFlipStatus( ULONG arg_01 , ULONG arg_02 ); NtGdiDvpGetVideoPortFlipStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4204 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDvpGetVideoPortFlipStatus ENDP ; ULONG __stdcall NtGdiDvpGetVideoPortInputFormats( ULONG arg_01 , ULONG arg_02 ); NtGdiDvpGetVideoPortInputFormats PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4205 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDvpGetVideoPortInputFormats ENDP ; ULONG __stdcall NtGdiDvpGetVideoPortLine( ULONG arg_01 , ULONG arg_02 ); NtGdiDvpGetVideoPortLine PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4206 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDvpGetVideoPortLine ENDP ; ULONG __stdcall NtGdiDvpGetVideoPortOutputFormats( ULONG arg_01 , ULONG arg_02 ); NtGdiDvpGetVideoPortOutputFormats PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4207 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDvpGetVideoPortOutputFormats ENDP ; ULONG __stdcall NtGdiDvpGetVideoPortConnectInfo( ULONG arg_01 , ULONG arg_02 ); NtGdiDvpGetVideoPortConnectInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4208 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDvpGetVideoPortConnectInfo ENDP ; ULONG __stdcall NtGdiDvpGetVideoSignalStatus( ULONG arg_01 , ULONG arg_02 ); NtGdiDvpGetVideoSignalStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4209 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDvpGetVideoSignalStatus ENDP ; ULONG __stdcall NtGdiDvpUpdateVideoPort( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiDvpUpdateVideoPort PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4210 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiDvpUpdateVideoPort ENDP ; ULONG __stdcall NtGdiDvpWaitForVideoPortSync( ULONG arg_01 , ULONG arg_02 ); NtGdiDvpWaitForVideoPortSync PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4211 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDvpWaitForVideoPortSync ENDP ; ULONG __stdcall NtGdiDvpAcquireNotification( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiDvpAcquireNotification PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4212 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiDvpAcquireNotification ENDP ; ULONG __stdcall NtGdiDvpReleaseNotification( ULONG arg_01 , ULONG arg_02 ); NtGdiDvpReleaseNotification PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4213 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDvpReleaseNotification ENDP ; ULONG __stdcall NtGdiDxgGenericThunk( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiDxgGenericThunk PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4214 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiDxgGenericThunk ENDP ; ULONG __stdcall NtGdiDeleteClientObj( ULONG arg_01 ); NtGdiDeleteClientObj PROC STDCALL arg_01:DWORD mov eax , 4215 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiDeleteClientObj ENDP ; ULONG __stdcall bDeleteColorSpace( ULONG arg_01 ); bDeleteColorSpace PROC STDCALL arg_01:DWORD mov eax , 4216 mov edx , 7FFE0300h call dword ptr [edx] ret 4 bDeleteColorSpace ENDP ; ULONG __stdcall NtGdiDeleteColorTransform( ULONG arg_01 , ULONG arg_02 ); NtGdiDeleteColorTransform PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4217 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiDeleteColorTransform ENDP ; ULONG __stdcall NtGdiDeleteObjectApp( ULONG arg_01 ); NtGdiDeleteObjectApp PROC STDCALL arg_01:DWORD mov eax , 4218 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiDeleteObjectApp ENDP ; ULONG __stdcall NtGdiDescribePixelFormat( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiDescribePixelFormat PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4219 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiDescribePixelFormat ENDP ; ULONG __stdcall NtGdiGetPerBandInfo( ULONG arg_01 , ULONG arg_02 ); NtGdiGetPerBandInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4220 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiGetPerBandInfo ENDP ; ULONG __stdcall NtGdiDoBanding( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiDoBanding PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4221 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiDoBanding ENDP ; ULONG __stdcall NtGdiDoPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiDoPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4222 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiDoPalette ENDP ; ULONG __stdcall NtGdiDrawEscape( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiDrawEscape PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4223 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiDrawEscape ENDP ; ULONG __stdcall NtGdiEllipse( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiEllipse PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4224 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiEllipse ENDP ; ULONG __stdcall GreEnableEUDC( ULONG arg_01 ); GreEnableEUDC PROC STDCALL arg_01:DWORD mov eax , 4225 mov edx , 7FFE0300h call dword ptr [edx] ret 4 GreEnableEUDC ENDP ; ULONG __stdcall NtGdiEndDoc( ULONG arg_01 ); NtGdiEndDoc PROC STDCALL arg_01:DWORD mov eax , 4226 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiEndDoc ENDP ; ULONG __stdcall NtGdiEndPage( ULONG arg_01 ); NtGdiEndPage PROC STDCALL arg_01:DWORD mov eax , 4227 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiEndPage ENDP ; ULONG __stdcall NtGdiEndPath( ULONG arg_01 ); NtGdiEndPath PROC STDCALL arg_01:DWORD mov eax , 4228 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiEndPath ENDP ; ULONG __stdcall NtGdiEnumFontChunk( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiEnumFontChunk PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4229 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiEnumFontChunk ENDP ; ULONG __stdcall NtGdiEnumFontClose( ULONG arg_01 ); NtGdiEnumFontClose PROC STDCALL arg_01:DWORD mov eax , 4230 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiEnumFontClose ENDP ; ULONG __stdcall NtGdiEnumFontOpen( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtGdiEnumFontOpen PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4231 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtGdiEnumFontOpen ENDP ; ULONG __stdcall NtGdiEnumObjects( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiEnumObjects PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4232 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiEnumObjects ENDP ; ULONG __stdcall NtGdiEqualRgn( ULONG arg_01 , ULONG arg_02 ); NtGdiEqualRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4233 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiEqualRgn ENDP ; ULONG __stdcall NtGdiEudcLoadUnloadLink( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtGdiEudcLoadUnloadLink PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4234 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtGdiEudcLoadUnloadLink ENDP ; ULONG __stdcall NtGdiExcludeClipRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiExcludeClipRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4235 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiExcludeClipRect ENDP ; ULONG __stdcall NtGdiExtCreatePen( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); NtGdiExtCreatePen PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 4236 mov edx , 7FFE0300h call dword ptr [edx] ret 44 NtGdiExtCreatePen ENDP ; ULONG __stdcall NtGdiExtCreateRegion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiExtCreateRegion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4237 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiExtCreateRegion ENDP ; ULONG __stdcall NtGdiExtEscape( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); NtGdiExtEscape PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 4238 mov edx , 7FFE0300h call dword ptr [edx] ret 32 NtGdiExtEscape ENDP ; ULONG __stdcall NtGdiExtFloodFill( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiExtFloodFill PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4239 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiExtFloodFill ENDP ; ULONG __stdcall NtGdiExtGetObjectW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiExtGetObjectW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4240 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiExtGetObjectW ENDP ; ULONG __stdcall NtGdiExtSelectClipRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiExtSelectClipRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4241 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiExtSelectClipRgn ENDP ; ULONG __stdcall NtGdiExtTextOutW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); NtGdiExtTextOutW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 4242 mov edx , 7FFE0300h call dword ptr [edx] ret 36 NtGdiExtTextOutW ENDP ; ULONG __stdcall NtGdiFillPath( ULONG arg_01 ); NtGdiFillPath PROC STDCALL arg_01:DWORD mov eax , 4243 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiFillPath ENDP ; ULONG __stdcall NtGdiFillRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiFillRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4244 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiFillRgn ENDP ; ULONG __stdcall NtGdiFlattenPath( ULONG arg_01 ); NtGdiFlattenPath PROC STDCALL arg_01:DWORD mov eax , 4245 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiFlattenPath ENDP ; ULONG __stdcall NtGdiFlushUserBatch( ); NtGdiFlushUserBatch PROC STDCALL mov eax , 4246 mov edx , 7FFE0300h call dword ptr [edx] ret NtGdiFlushUserBatch ENDP ; ULONG __stdcall NtGdiFlush( ); NtGdiFlush PROC STDCALL mov eax , 4247 mov edx , 7FFE0300h call dword ptr [edx] ret NtGdiFlush ENDP ; ULONG __stdcall NtGdiForceUFIMapping( ULONG arg_01 , ULONG arg_02 ); NtGdiForceUFIMapping PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4248 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiForceUFIMapping ENDP ; ULONG __stdcall NtGdiFrameRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiFrameRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4249 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiFrameRgn ENDP ; ULONG __stdcall NtGdiFullscreenControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiFullscreenControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4250 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiFullscreenControl ENDP ; ULONG __stdcall NtGdiGetAndSetDCDword( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiGetAndSetDCDword PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4251 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiGetAndSetDCDword ENDP ; ULONG __stdcall NtGdiGetAppClipBox( ULONG arg_01 , ULONG arg_02 ); NtGdiGetAppClipBox PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4252 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiGetAppClipBox ENDP ; ULONG __stdcall NtGdiGetBitmapBits( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiGetBitmapBits PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4253 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiGetBitmapBits ENDP ; ULONG __stdcall NtGdiGetBitmapDimension( ULONG arg_01 , ULONG arg_02 ); NtGdiGetBitmapDimension PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4254 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiGetBitmapDimension ENDP ; ULONG __stdcall NtGdiGetBoundsRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiGetBoundsRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4255 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiGetBoundsRect ENDP ; ULONG __stdcall NtGdiGetCharABCWidthsW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiGetCharABCWidthsW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4256 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiGetCharABCWidthsW ENDP ; ULONG __stdcall NtGdiGetCharacterPlacementW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiGetCharacterPlacementW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4257 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiGetCharacterPlacementW ENDP ; ULONG __stdcall NtGdiGetCharSet( ULONG arg_01 ); NtGdiGetCharSet PROC STDCALL arg_01:DWORD mov eax , 4258 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiGetCharSet ENDP ; ULONG __stdcall NtGdiGetCharWidthW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiGetCharWidthW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4259 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiGetCharWidthW ENDP ; ULONG __stdcall NtGdiGetCharWidthInfo( ULONG arg_01 , ULONG arg_02 ); NtGdiGetCharWidthInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4260 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiGetCharWidthInfo ENDP ; ULONG __stdcall NtGdiGetColorAdjustment( ULONG arg_01 , ULONG arg_02 ); NtGdiGetColorAdjustment PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4261 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiGetColorAdjustment ENDP ; ULONG __stdcall NtGdiGetColorSpaceforBitmap( ULONG arg_01 ); NtGdiGetColorSpaceforBitmap PROC STDCALL arg_01:DWORD mov eax , 4262 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiGetColorSpaceforBitmap ENDP ; ULONG __stdcall NtGdiGetDCDword( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiGetDCDword PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4263 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiGetDCDword ENDP ; ULONG __stdcall NtGdiGetDCforBitmap( ULONG arg_01 ); NtGdiGetDCforBitmap PROC STDCALL arg_01:DWORD mov eax , 4264 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiGetDCforBitmap ENDP ; ULONG __stdcall NtGdiGetDCObject( ULONG arg_01 , ULONG arg_02 ); NtGdiGetDCObject PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4265 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiGetDCObject ENDP ; ULONG __stdcall NtGdiGetDCPoint( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiGetDCPoint PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4266 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiGetDCPoint ENDP ; ULONG __stdcall NtGdiGetDeviceCaps( ULONG arg_01 , ULONG arg_02 ); NtGdiGetDeviceCaps PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4267 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiGetDeviceCaps ENDP ; ULONG __stdcall NtGdiGetDeviceGammaRamp( ULONG arg_01 , ULONG arg_02 ); NtGdiGetDeviceGammaRamp PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4268 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiGetDeviceGammaRamp ENDP ; ULONG __stdcall NtGdiGetDeviceCapsAll( ULONG arg_01 , ULONG arg_02 ); NtGdiGetDeviceCapsAll PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4269 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiGetDeviceCapsAll ENDP ; ULONG __stdcall NtGdiGetDIBitsInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); NtGdiGetDIBitsInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 4270 mov edx , 7FFE0300h call dword ptr [edx] ret 36 NtGdiGetDIBitsInternal ENDP ; ULONG __stdcall NtGdiGetETM( ULONG arg_01 , ULONG arg_02 ); NtGdiGetETM PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4271 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiGetETM ENDP ; ULONG __stdcall NtGdiGetEudcTimeStampEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiGetEudcTimeStampEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4272 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiGetEudcTimeStampEx ENDP ; ULONG __stdcall NtGdiGetFontData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiGetFontData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4273 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiGetFontData ENDP ; ULONG __stdcall NtGdiGetFontResourceInfoInternalW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtGdiGetFontResourceInfoInternalW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4274 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtGdiGetFontResourceInfoInternalW ENDP ; ULONG __stdcall NtGdiGetGlyphIndicesW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiGetGlyphIndicesW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4275 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiGetGlyphIndicesW ENDP ; ULONG __stdcall NtGdiGetGlyphIndicesWInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiGetGlyphIndicesWInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4276 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiGetGlyphIndicesWInternal ENDP ; ULONG __stdcall NtGdiGetGlyphOutline( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); NtGdiGetGlyphOutline PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 4277 mov edx , 7FFE0300h call dword ptr [edx] ret 32 NtGdiGetGlyphOutline ENDP ; ULONG __stdcall NtGdiGetKerningPairs( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiGetKerningPairs PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4278 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiGetKerningPairs ENDP ; ULONG __stdcall NtGdiGetLinkedUFIs( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiGetLinkedUFIs PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4279 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiGetLinkedUFIs ENDP ; ULONG __stdcall NtGdiGetMiterLimit( ULONG arg_01 , ULONG arg_02 ); NtGdiGetMiterLimit PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4280 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiGetMiterLimit ENDP ; ULONG __stdcall NtGdiGetMonitorID( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiGetMonitorID PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4281 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiGetMonitorID ENDP ; ULONG __stdcall NtGdiGetNearestColor( ULONG arg_01 , ULONG arg_02 ); NtGdiGetNearestColor PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4282 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiGetNearestColor ENDP ; ULONG __stdcall NtGdiGetNearestPaletteIndex( ULONG arg_01 , ULONG arg_02 ); NtGdiGetNearestPaletteIndex PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4283 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiGetNearestPaletteIndex ENDP ; ULONG __stdcall NtGdiGetObjectBitmapHandle( ULONG arg_01 , ULONG arg_02 ); NtGdiGetObjectBitmapHandle PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4284 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiGetObjectBitmapHandle ENDP ; ULONG __stdcall NtGdiGetOutlineTextMetricsInternalW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiGetOutlineTextMetricsInternalW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4285 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiGetOutlineTextMetricsInternalW ENDP ; ULONG __stdcall NtGdiGetPath( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiGetPath PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4286 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiGetPath ENDP ; ULONG __stdcall NtGdiGetPixel( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiGetPixel PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4287 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiGetPixel ENDP ; ULONG __stdcall NtGdiGetRandomRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiGetRandomRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4288 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiGetRandomRgn ENDP ; ULONG __stdcall NtGdiGetRasterizerCaps( ULONG arg_01 , ULONG arg_02 ); NtGdiGetRasterizerCaps PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4289 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiGetRasterizerCaps ENDP ; ULONG __stdcall NtGdiGetRealizationInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiGetRealizationInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4290 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiGetRealizationInfo ENDP ; ULONG __stdcall NtGdiGetRegionData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiGetRegionData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4291 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiGetRegionData ENDP ; ULONG __stdcall NtGdiGetRgnBox( ULONG arg_01 , ULONG arg_02 ); NtGdiGetRgnBox PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4292 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiGetRgnBox ENDP ; ULONG __stdcall NtGdiGetServerMetaFileBits( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtGdiGetServerMetaFileBits PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4293 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtGdiGetServerMetaFileBits ENDP ; ULONG __stdcall NtGdiGetSpoolMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiGetSpoolMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4294 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiGetSpoolMessage ENDP ; ULONG __stdcall NtGdiGetStats( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiGetStats PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4295 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiGetStats ENDP ; ULONG __stdcall NtGdiGetStockObject( ULONG arg_01 ); NtGdiGetStockObject PROC STDCALL arg_01:DWORD mov eax , 4296 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiGetStockObject ENDP ; ULONG __stdcall NtGdiGetStringBitmapW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiGetStringBitmapW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4297 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiGetStringBitmapW ENDP ; ULONG __stdcall NtGdiGetSystemPaletteUse( ULONG arg_01 ); NtGdiGetSystemPaletteUse PROC STDCALL arg_01:DWORD mov eax , 4298 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiGetSystemPaletteUse ENDP ; ULONG __stdcall NtGdiGetTextCharsetInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiGetTextCharsetInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4299 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiGetTextCharsetInfo ENDP ; ULONG __stdcall NtGdiGetTextExtent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiGetTextExtent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4300 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiGetTextExtent ENDP ; ULONG __stdcall NtGdiGetTextExtentExW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); NtGdiGetTextExtentExW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 4301 mov edx , 7FFE0300h call dword ptr [edx] ret 32 NtGdiGetTextExtentExW ENDP ; ULONG __stdcall NtGdiGetTextFaceW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiGetTextFaceW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4302 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiGetTextFaceW ENDP ; ULONG __stdcall NtGdiGetTextMetricsW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiGetTextMetricsW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4303 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiGetTextMetricsW ENDP ; ULONG __stdcall NtGdiGetTransform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiGetTransform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4304 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiGetTransform ENDP ; ULONG __stdcall NtGdiGetUFI( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiGetUFI PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4305 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiGetUFI ENDP ; ULONG __stdcall NtGdiGetEmbUFI( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtGdiGetEmbUFI PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4306 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtGdiGetEmbUFI ENDP ; ULONG __stdcall NtGdiGetUFIPathname( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); NtGdiGetUFIPathname PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 4307 mov edx , 7FFE0300h call dword ptr [edx] ret 40 NtGdiGetUFIPathname ENDP ; ULONG __stdcall GreGetEmbedFonts( ); GreGetEmbedFonts PROC STDCALL mov eax , 4308 mov edx , 7FFE0300h call dword ptr [edx] ret GreGetEmbedFonts ENDP ; ULONG __stdcall NtGdiChangeGhostFont( ULONG arg_01 , ULONG arg_02 ); NtGdiChangeGhostFont PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4309 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiChangeGhostFont ENDP ; ULONG __stdcall NtGdiAddEmbFontToDC( ULONG arg_01 , ULONG arg_02 ); NtGdiAddEmbFontToDC PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4310 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiAddEmbFontToDC ENDP ; ULONG __stdcall NtGdiGetFontUnicodeRanges( ULONG arg_01 , ULONG arg_02 ); NtGdiGetFontUnicodeRanges PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4311 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiGetFontUnicodeRanges ENDP ; ULONG __stdcall NtGdiGetWidthTable( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtGdiGetWidthTable PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4312 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtGdiGetWidthTable ENDP ; ULONG __stdcall NtGdiGradientFill( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiGradientFill PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4313 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiGradientFill ENDP ; ULONG __stdcall NtGdiHfontCreate( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiHfontCreate PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4314 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiHfontCreate ENDP ; ULONG __stdcall NtGdiIcmBrushInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); NtGdiIcmBrushInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 4315 mov edx , 7FFE0300h call dword ptr [edx] ret 32 NtGdiIcmBrushInfo ENDP ; ULONG __stdcall NtGdiInit( ); NtGdiInit PROC STDCALL mov eax , 4316 mov edx , 7FFE0300h call dword ptr [edx] ret NtGdiInit ENDP ; ULONG __stdcall NtGdiInitSpool( ); NtGdiInitSpool PROC STDCALL mov eax , 4317 mov edx , 7FFE0300h call dword ptr [edx] ret NtGdiInitSpool ENDP ; ULONG __stdcall NtGdiIntersectClipRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiIntersectClipRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4318 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiIntersectClipRect ENDP ; ULONG __stdcall NtGdiInvertRgn( ULONG arg_01 , ULONG arg_02 ); NtGdiInvertRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4319 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiInvertRgn ENDP ; ULONG __stdcall NtGdiLineTo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiLineTo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4320 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiLineTo ENDP ; ULONG __stdcall NtGdiMakeFontDir( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiMakeFontDir PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4321 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiMakeFontDir ENDP ; ULONG __stdcall NtGdiMakeInfoDC( ULONG arg_01 , ULONG arg_02 ); NtGdiMakeInfoDC PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4322 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiMakeInfoDC ENDP ; ULONG __stdcall NtGdiMaskBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 ); NtGdiMaskBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD mov eax , 4323 mov edx , 7FFE0300h call dword ptr [edx] ret 52 NtGdiMaskBlt ENDP ; ULONG __stdcall NtGdiModifyWorldTransform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiModifyWorldTransform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4324 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiModifyWorldTransform ENDP ; ULONG __stdcall NtGdiMonoBitmap( ULONG arg_01 ); NtGdiMonoBitmap PROC STDCALL arg_01:DWORD mov eax , 4325 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiMonoBitmap ENDP ; ULONG __stdcall NtGdiMoveTo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiMoveTo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4326 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiMoveTo ENDP ; ULONG __stdcall NtGdiOffsetClipRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiOffsetClipRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4327 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiOffsetClipRgn ENDP ; ULONG __stdcall NtGdiOffsetRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiOffsetRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4328 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiOffsetRgn ENDP ; ULONG __stdcall NtGdiOpenDCW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtGdiOpenDCW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4329 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtGdiOpenDCW ENDP ; ULONG __stdcall NtGdiPatBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiPatBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4330 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiPatBlt ENDP ; ULONG __stdcall NtGdiPolyPatBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiPolyPatBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4331 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiPolyPatBlt ENDP ; ULONG __stdcall NtGdiPathToRegion( ULONG arg_01 ); NtGdiPathToRegion PROC STDCALL arg_01:DWORD mov eax , 4332 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiPathToRegion ENDP ; ULONG __stdcall NtGdiPlgBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); NtGdiPlgBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 4333 mov edx , 7FFE0300h call dword ptr [edx] ret 44 NtGdiPlgBlt ENDP ; ULONG __stdcall NtGdiPolyDraw( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiPolyDraw PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4334 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiPolyDraw ENDP ; ULONG __stdcall NtGdiPolyPolyDraw( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiPolyPolyDraw PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4335 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiPolyPolyDraw ENDP ; ULONG __stdcall NtGdiPolyTextOutW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiPolyTextOutW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4336 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiPolyTextOutW ENDP ; ULONG __stdcall NtGdiPtInRegion( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiPtInRegion PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4337 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiPtInRegion ENDP ; ULONG __stdcall NtGdiPtVisible( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiPtVisible PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4338 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiPtVisible ENDP ; ULONG __stdcall NtGdiQueryFonts( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiQueryFonts PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4339 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiQueryFonts ENDP ; ULONG __stdcall NtGdiQueryFontAssocInfo( ULONG arg_01 ); NtGdiQueryFontAssocInfo PROC STDCALL arg_01:DWORD mov eax , 4340 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiQueryFontAssocInfo ENDP ; ULONG __stdcall NtGdiRectangle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiRectangle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4341 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiRectangle ENDP ; ULONG __stdcall NtGdiRectInRegion( ULONG arg_01 , ULONG arg_02 ); NtGdiRectInRegion PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4342 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiRectInRegion ENDP ; ULONG __stdcall NtGdiRectVisible( ULONG arg_01 , ULONG arg_02 ); NtGdiRectVisible PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4343 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiRectVisible ENDP ; ULONG __stdcall NtGdiRemoveFontResourceW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiRemoveFontResourceW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4344 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiRemoveFontResourceW ENDP ; ULONG __stdcall NtGdiRemoveFontMemResourceEx( ULONG arg_01 ); NtGdiRemoveFontMemResourceEx PROC STDCALL arg_01:DWORD mov eax , 4345 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiRemoveFontMemResourceEx ENDP ; ULONG __stdcall NtGdiResetDC( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiResetDC PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4346 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiResetDC ENDP ; ULONG __stdcall NtGdiResizePalette( ULONG arg_01 , ULONG arg_02 ); NtGdiResizePalette PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4347 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiResizePalette ENDP ; ULONG __stdcall NtGdiRestoreDC( ULONG arg_01 , ULONG arg_02 ); NtGdiRestoreDC PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4348 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiRestoreDC ENDP ; ULONG __stdcall NtGdiRoundRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtGdiRoundRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4349 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtGdiRoundRect ENDP ; ULONG __stdcall NtGdiSaveDC( ULONG arg_01 ); NtGdiSaveDC PROC STDCALL arg_01:DWORD mov eax , 4350 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiSaveDC ENDP ; ULONG __stdcall NtGdiScaleViewportExtEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiScaleViewportExtEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4351 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiScaleViewportExtEx ENDP ; ULONG __stdcall NtGdiScaleWindowExtEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiScaleWindowExtEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4352 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiScaleWindowExtEx ENDP ; ULONG __stdcall NtGdiSelectBitmap( ULONG arg_01 , ULONG arg_02 ); NtGdiSelectBitmap PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4353 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiSelectBitmap ENDP ; ULONG __stdcall NtGdiSelectBrush( ULONG arg_01 , ULONG arg_02 ); NtGdiSelectBrush PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4354 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiSelectBrush ENDP ; ULONG __stdcall NtGdiSelectClipPath( ULONG arg_01 , ULONG arg_02 ); NtGdiSelectClipPath PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4355 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiSelectClipPath ENDP ; ULONG __stdcall NtGdiSelectFont( ULONG arg_01 , ULONG arg_02 ); NtGdiSelectFont PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4356 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiSelectFont ENDP ; ULONG __stdcall NtGdiSelectPen( ULONG arg_01 , ULONG arg_02 ); NtGdiSelectPen PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4357 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiSelectPen ENDP ; ULONG __stdcall NtGdiSetBitmapAttributes( ULONG arg_01 , ULONG arg_02 ); NtGdiSetBitmapAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4358 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiSetBitmapAttributes ENDP ; ULONG __stdcall NtGdiSetBitmapBits( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiSetBitmapBits PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4359 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiSetBitmapBits ENDP ; ULONG __stdcall NtGdiSetBitmapDimension( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiSetBitmapDimension PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4360 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiSetBitmapDimension ENDP ; ULONG __stdcall NtGdiSetBoundsRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiSetBoundsRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4361 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiSetBoundsRect ENDP ; ULONG __stdcall NtGdiSetBrushAttributes( ULONG arg_01 , ULONG arg_02 ); NtGdiSetBrushAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4362 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiSetBrushAttributes ENDP ; ULONG __stdcall NtGdiSetBrushOrg( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiSetBrushOrg PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4363 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiSetBrushOrg ENDP ; ULONG __stdcall NtGdiSetColorAdjustment( ULONG arg_01 , ULONG arg_02 ); NtGdiSetColorAdjustment PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4364 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiSetColorAdjustment ENDP ; ULONG __stdcall NtGdiSetColorSpace( ULONG arg_01 , ULONG arg_02 ); NtGdiSetColorSpace PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4365 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiSetColorSpace ENDP ; ULONG __stdcall NtGdiSetDeviceGammaRamp( ULONG arg_01 , ULONG arg_02 ); NtGdiSetDeviceGammaRamp PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4366 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiSetDeviceGammaRamp ENDP ; ULONG __stdcall NtGdiSetDIBitsToDeviceInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 , ULONG arg_15 , ULONG arg_16 ); NtGdiSetDIBitsToDeviceInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD , arg_15:DWORD , arg_16:DWORD mov eax , 4367 mov edx , 7FFE0300h call dword ptr [edx] ret 64 NtGdiSetDIBitsToDeviceInternal ENDP ; ULONG __stdcall NtGdiSetFontEnumeration( ULONG arg_01 ); NtGdiSetFontEnumeration PROC STDCALL arg_01:DWORD mov eax , 4368 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiSetFontEnumeration ENDP ; ULONG __stdcall NtGdiSetFontXform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiSetFontXform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4369 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiSetFontXform ENDP ; ULONG __stdcall NtGdiSetIcmMode( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiSetIcmMode PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4370 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiSetIcmMode ENDP ; ULONG __stdcall NtGdiSetLinkedUFIs( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiSetLinkedUFIs PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4371 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiSetLinkedUFIs ENDP ; ULONG __stdcall NtGdiSetMagicColors( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiSetMagicColors PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4372 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiSetMagicColors ENDP ; ULONG __stdcall NtGdiSetMetaRgn( ULONG arg_01 ); NtGdiSetMetaRgn PROC STDCALL arg_01:DWORD mov eax , 4373 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiSetMetaRgn ENDP ; ULONG __stdcall NtGdiSetMiterLimit( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiSetMiterLimit PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4374 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiSetMiterLimit ENDP ; ULONG __stdcall NtGdiGetDeviceWidth( ULONG arg_01 ); NtGdiGetDeviceWidth PROC STDCALL arg_01:DWORD mov eax , 4375 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiGetDeviceWidth ENDP ; ULONG __stdcall NtGdiMirrorWindowOrg( ULONG arg_01 ); NtGdiMirrorWindowOrg PROC STDCALL arg_01:DWORD mov eax , 4376 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiMirrorWindowOrg ENDP ; ULONG __stdcall NtGdiSetLayout( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiSetLayout PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4377 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiSetLayout ENDP ; ULONG __stdcall NtGdiSetPixel( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiSetPixel PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4378 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiSetPixel ENDP ; ULONG __stdcall NtGdiSetPixelFormat( ULONG arg_01 , ULONG arg_02 ); NtGdiSetPixelFormat PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4379 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiSetPixelFormat ENDP ; ULONG __stdcall NtGdiSetRectRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiSetRectRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4380 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiSetRectRgn ENDP ; ULONG __stdcall NtGdiSetSystemPaletteUse( ULONG arg_01 , ULONG arg_02 ); NtGdiSetSystemPaletteUse PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4381 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiSetSystemPaletteUse ENDP ; ULONG __stdcall NtGdiSetTextJustification( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiSetTextJustification PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4382 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiSetTextJustification ENDP ; ULONG __stdcall NtGdiSetupPublicCFONT( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiSetupPublicCFONT PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4383 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiSetupPublicCFONT ENDP ; ULONG __stdcall NtGdiSetVirtualResolution( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiSetVirtualResolution PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4384 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiSetVirtualResolution ENDP ; ULONG __stdcall NtGdiSetSizeDevice( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiSetSizeDevice PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4385 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiSetSizeDevice ENDP ; ULONG __stdcall NtGdiStartDoc( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiStartDoc PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4386 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiStartDoc ENDP ; ULONG __stdcall NtGdiStartPage( ULONG arg_01 ); NtGdiStartPage PROC STDCALL arg_01:DWORD mov eax , 4387 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiStartPage ENDP ; ULONG __stdcall NtGdiStretchBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 ); NtGdiStretchBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD mov eax , 4388 mov edx , 7FFE0300h call dword ptr [edx] ret 48 NtGdiStretchBlt ENDP ; ULONG __stdcall NtGdiStretchDIBitsInternal( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 , ULONG arg_15 , ULONG arg_16 ); NtGdiStretchDIBitsInternal PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD , arg_15:DWORD , arg_16:DWORD mov eax , 4389 mov edx , 7FFE0300h call dword ptr [edx] ret 64 NtGdiStretchDIBitsInternal ENDP ; ULONG __stdcall NtGdiStrokeAndFillPath( ULONG arg_01 ); NtGdiStrokeAndFillPath PROC STDCALL arg_01:DWORD mov eax , 4390 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiStrokeAndFillPath ENDP ; ULONG __stdcall NtGdiStrokePath( ULONG arg_01 ); NtGdiStrokePath PROC STDCALL arg_01:DWORD mov eax , 4391 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiStrokePath ENDP ; ULONG __stdcall NtGdiSwapBuffers( ULONG arg_01 ); NtGdiSwapBuffers PROC STDCALL arg_01:DWORD mov eax , 4392 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiSwapBuffers ENDP ; ULONG __stdcall NtGdiTransformPoints( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiTransformPoints PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4393 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiTransformPoints ENDP ; ULONG __stdcall NtGdiTransparentBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); NtGdiTransparentBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 4394 mov edx , 7FFE0300h call dword ptr [edx] ret 44 NtGdiTransparentBlt ENDP ; ULONG __stdcall NtGdiUnloadPrinterDriver( ULONG arg_01 , ULONG arg_02 ); NtGdiUnloadPrinterDriver PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4395 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiUnloadPrinterDriver ENDP ; ULONG __stdcall NtGdiUnmapMemFont( ULONG arg_01 ); NtGdiUnmapMemFont PROC STDCALL arg_01:DWORD mov eax , 4396 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiUnmapMemFont ENDP ; ULONG __stdcall NtGdiUnrealizeObject( ULONG arg_01 ); NtGdiUnrealizeObject PROC STDCALL arg_01:DWORD mov eax , 4397 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiUnrealizeObject ENDP ; ULONG __stdcall NtGdiUpdateColors( ULONG arg_01 ); NtGdiUpdateColors PROC STDCALL arg_01:DWORD mov eax , 4398 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiUpdateColors ENDP ; ULONG __stdcall NtGdiWidenPath( ULONG arg_01 ); NtGdiWidenPath PROC STDCALL arg_01:DWORD mov eax , 4399 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiWidenPath ENDP ; ULONG __stdcall NtUserActivateKeyboardLayout( ULONG arg_01 , ULONG arg_02 ); NtUserActivateKeyboardLayout PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4400 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserActivateKeyboardLayout ENDP ; ULONG __stdcall NtUserAlterWindowStyle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserAlterWindowStyle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4401 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserAlterWindowStyle ENDP ; ULONG __stdcall NtUserAssociateInputContext( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserAssociateInputContext PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4402 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserAssociateInputContext ENDP ; ULONG __stdcall NtUserAttachThreadInput( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserAttachThreadInput PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4403 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserAttachThreadInput ENDP ; ULONG __stdcall NtUserBeginPaint( ULONG arg_01 , ULONG arg_02 ); NtUserBeginPaint PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4404 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserBeginPaint ENDP ; ULONG __stdcall NtUserBitBltSysBmp( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); NtUserBitBltSysBmp PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 4405 mov edx , 7FFE0300h call dword ptr [edx] ret 32 NtUserBitBltSysBmp ENDP ; ULONG __stdcall NtUserBlockInput( ULONG arg_01 ); NtUserBlockInput PROC STDCALL arg_01:DWORD mov eax , 4406 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserBlockInput ENDP ; ULONG __stdcall NtUserBuildHimcList( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserBuildHimcList PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4407 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserBuildHimcList ENDP ; ULONG __stdcall NtUserBuildHwndList( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtUserBuildHwndList PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4408 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtUserBuildHwndList ENDP ; ULONG __stdcall NtUserBuildNameList( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserBuildNameList PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4409 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserBuildNameList ENDP ; ULONG __stdcall NtUserBuildPropList( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserBuildPropList PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4410 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserBuildPropList ENDP ; ULONG __stdcall NtUserCallHwnd( ULONG arg_01 , ULONG arg_02 ); NtUserCallHwnd PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4411 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserCallHwnd ENDP ; ULONG __stdcall NtUserCallHwndLock( ULONG arg_01 , ULONG arg_02 ); NtUserCallHwndLock PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4412 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserCallHwndLock ENDP ; ULONG __stdcall NtUserCallHwndOpt( ULONG arg_01 , ULONG arg_02 ); NtUserCallHwndOpt PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4413 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserCallHwndOpt ENDP ; ULONG __stdcall NtUserCallHwndParam( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserCallHwndParam PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4414 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserCallHwndParam ENDP ; ULONG __stdcall NtUserCallHwndParamLock( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserCallHwndParamLock PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4415 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserCallHwndParamLock ENDP ; ULONG __stdcall NtUserCallMsgFilter( ULONG arg_01 , ULONG arg_02 ); NtUserCallMsgFilter PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4416 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserCallMsgFilter ENDP ; ULONG __stdcall NtUserCallNextHookEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserCallNextHookEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4417 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserCallNextHookEx ENDP ; ULONG __stdcall NtUserCallNoParam( ULONG arg_01 ); NtUserCallNoParam PROC STDCALL arg_01:DWORD mov eax , 4418 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserCallNoParam ENDP ; ULONG __stdcall NtUserCallOneParam( ULONG arg_01 , ULONG arg_02 ); NtUserCallOneParam PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4419 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserCallOneParam ENDP ; ULONG __stdcall NtUserCallTwoParam( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserCallTwoParam PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4420 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserCallTwoParam ENDP ; ULONG __stdcall NtUserChangeClipboardChain( ULONG arg_01 , ULONG arg_02 ); NtUserChangeClipboardChain PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4421 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserChangeClipboardChain ENDP ; ULONG __stdcall NtUserChangeDisplaySettings( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtUserChangeDisplaySettings PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4422 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtUserChangeDisplaySettings ENDP ; ULONG __stdcall NtUserCheckImeHotKey( ULONG arg_01 , ULONG arg_02 ); NtUserCheckImeHotKey PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4423 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserCheckImeHotKey ENDP ; ULONG __stdcall NtUserCheckMenuItem( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserCheckMenuItem PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4424 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserCheckMenuItem ENDP ; ULONG __stdcall NtUserChildWindowFromPointEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserChildWindowFromPointEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4425 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserChildWindowFromPointEx ENDP ; ULONG __stdcall NtUserClipCursor( ULONG arg_01 ); NtUserClipCursor PROC STDCALL arg_01:DWORD mov eax , 4426 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserClipCursor ENDP ; ULONG __stdcall NtUserCloseClipboard( ); NtUserCloseClipboard PROC STDCALL mov eax , 4427 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserCloseClipboard ENDP ; ULONG __stdcall NtUserCloseDesktop( ULONG arg_01 ); NtUserCloseDesktop PROC STDCALL arg_01:DWORD mov eax , 4428 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserCloseDesktop ENDP ; ULONG __stdcall NtUserCloseWindowStation( ULONG arg_01 ); NtUserCloseWindowStation PROC STDCALL arg_01:DWORD mov eax , 4429 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserCloseWindowStation ENDP ; ULONG __stdcall NtUserConsoleControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserConsoleControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4430 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserConsoleControl ENDP ; ULONG __stdcall NtUserConvertMemHandle( ULONG arg_01 , ULONG arg_02 ); NtUserConvertMemHandle PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4431 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserConvertMemHandle ENDP ; ULONG __stdcall NtUserCopyAcceleratorTable( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserCopyAcceleratorTable PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4432 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserCopyAcceleratorTable ENDP ; ULONG __stdcall NtUserCountClipboardFormats( ); NtUserCountClipboardFormats PROC STDCALL mov eax , 4433 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserCountClipboardFormats ENDP ; ULONG __stdcall NtUserCreateAcceleratorTable( ULONG arg_01 , ULONG arg_02 ); NtUserCreateAcceleratorTable PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4434 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserCreateAcceleratorTable ENDP ; ULONG __stdcall NtUserCreateCaret( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserCreateCaret PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4435 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserCreateCaret ENDP ; ULONG __stdcall NtUserCreateDesktop( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtUserCreateDesktop PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4436 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtUserCreateDesktop ENDP ; ULONG __stdcall NtUserCreateInputContext( ULONG arg_01 ); NtUserCreateInputContext PROC STDCALL arg_01:DWORD mov eax , 4437 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserCreateInputContext ENDP ; ULONG __stdcall NtUserCreateLocalMemHandle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserCreateLocalMemHandle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4438 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserCreateLocalMemHandle ENDP ; ULONG __stdcall NtUserCreateWindowEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 , ULONG arg_14 , ULONG arg_15 ); NtUserCreateWindowEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD , arg_14:DWORD , arg_15:DWORD mov eax , 4439 mov edx , 7FFE0300h call dword ptr [edx] ret 60 NtUserCreateWindowEx ENDP ; ULONG __stdcall NtUserCreateWindowStation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtUserCreateWindowStation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4440 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtUserCreateWindowStation ENDP ; ULONG __stdcall NtUserDdeGetQualityOfService( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserDdeGetQualityOfService PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4441 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserDdeGetQualityOfService ENDP ; ULONG __stdcall NtUserDdeInitialize( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtUserDdeInitialize PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4442 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtUserDdeInitialize ENDP ; ULONG __stdcall NtUserDdeSetQualityOfService( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserDdeSetQualityOfService PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4443 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserDdeSetQualityOfService ENDP ; ULONG __stdcall NtUserDeferWindowPos( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); NtUserDeferWindowPos PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 4444 mov edx , 7FFE0300h call dword ptr [edx] ret 32 NtUserDeferWindowPos ENDP ; ULONG __stdcall NtUserDefSetText( ULONG arg_01 , ULONG arg_02 ); NtUserDefSetText PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4445 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserDefSetText ENDP ; ULONG __stdcall NtUserDeleteMenu( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserDeleteMenu PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4446 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserDeleteMenu ENDP ; ULONG __stdcall NtUserDestroyAcceleratorTable( ULONG arg_01 ); NtUserDestroyAcceleratorTable PROC STDCALL arg_01:DWORD mov eax , 4447 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserDestroyAcceleratorTable ENDP ; ULONG __stdcall NtUserDestroyCursor( ULONG arg_01 , ULONG arg_02 ); NtUserDestroyCursor PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4448 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserDestroyCursor ENDP ; ULONG __stdcall NtUserDestroyInputContext( ULONG arg_01 ); NtUserDestroyInputContext PROC STDCALL arg_01:DWORD mov eax , 4449 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserDestroyInputContext ENDP ; ULONG __stdcall NtUserDestroyMenu( ULONG arg_01 ); NtUserDestroyMenu PROC STDCALL arg_01:DWORD mov eax , 4450 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserDestroyMenu ENDP ; ULONG __stdcall NtUserDestroyWindow( ULONG arg_01 ); NtUserDestroyWindow PROC STDCALL arg_01:DWORD mov eax , 4451 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserDestroyWindow ENDP ; ULONG __stdcall NtUserDisableThreadIme( ULONG arg_01 ); NtUserDisableThreadIme PROC STDCALL arg_01:DWORD mov eax , 4452 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserDisableThreadIme ENDP ; ULONG __stdcall NtUserDispatchMessage( ULONG arg_01 ); NtUserDispatchMessage PROC STDCALL arg_01:DWORD mov eax , 4453 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserDispatchMessage ENDP ; ULONG __stdcall NtUserDragDetect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserDragDetect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4454 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserDragDetect ENDP ; ULONG __stdcall NtUserDragObject( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtUserDragObject PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4455 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtUserDragObject ENDP ; ULONG __stdcall NtUserDrawAnimatedRects( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserDrawAnimatedRects PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4456 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserDrawAnimatedRects ENDP ; ULONG __stdcall NtUserDrawCaption( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserDrawCaption PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4457 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserDrawCaption ENDP ; ULONG __stdcall NtUserDrawCaptionTemp( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtUserDrawCaptionTemp PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4458 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtUserDrawCaptionTemp ENDP ; ULONG __stdcall NtUserDrawIconEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); NtUserDrawIconEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 4459 mov edx , 7FFE0300h call dword ptr [edx] ret 44 NtUserDrawIconEx ENDP ; ULONG __stdcall NtUserDrawMenuBarTemp( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtUserDrawMenuBarTemp PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4460 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtUserDrawMenuBarTemp ENDP ; ULONG __stdcall NtUserEmptyClipboard( ); NtUserEmptyClipboard PROC STDCALL mov eax , 4461 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserEmptyClipboard ENDP ; ULONG __stdcall NtUserEnableMenuItem( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserEnableMenuItem PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4462 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserEnableMenuItem ENDP ; ULONG __stdcall NtUserEnableScrollBar( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserEnableScrollBar PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4463 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserEnableScrollBar ENDP ; ULONG __stdcall NtUserEndDeferWindowPosEx( ULONG arg_01 , ULONG arg_02 ); NtUserEndDeferWindowPosEx PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4464 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserEndDeferWindowPosEx ENDP ; ULONG __stdcall NtUserEndMenu( ); NtUserEndMenu PROC STDCALL mov eax , 4465 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserEndMenu ENDP ; ULONG __stdcall NtUserEndPaint( ULONG arg_01 , ULONG arg_02 ); NtUserEndPaint PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4466 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserEndPaint ENDP ; ULONG __stdcall NtUserEnumDisplayDevices( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserEnumDisplayDevices PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4467 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserEnumDisplayDevices ENDP ; ULONG __stdcall NtUserEnumDisplayMonitors( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserEnumDisplayMonitors PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4468 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserEnumDisplayMonitors ENDP ; ULONG __stdcall NtUserEnumDisplaySettings( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserEnumDisplaySettings PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4469 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserEnumDisplaySettings ENDP ; ULONG __stdcall NtUserEvent( ULONG arg_01 ); NtUserEvent PROC STDCALL arg_01:DWORD mov eax , 4470 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserEvent ENDP ; ULONG __stdcall NtUserExcludeUpdateRgn( ULONG arg_01 , ULONG arg_02 ); NtUserExcludeUpdateRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4471 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserExcludeUpdateRgn ENDP ; ULONG __stdcall NtUserFillWindow( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserFillWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4472 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserFillWindow ENDP ; ULONG __stdcall NtUserFindExistingCursorIcon( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserFindExistingCursorIcon PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4473 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserFindExistingCursorIcon ENDP ; ULONG __stdcall NtUserFindWindowEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtUserFindWindowEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4474 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtUserFindWindowEx ENDP ; ULONG __stdcall NtUserFlashWindowEx( ULONG arg_01 ); NtUserFlashWindowEx PROC STDCALL arg_01:DWORD mov eax , 4475 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserFlashWindowEx ENDP ; ULONG __stdcall NtUserGetAltTabInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtUserGetAltTabInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4476 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtUserGetAltTabInfo ENDP ; ULONG __stdcall NtUserGetAncestor( ULONG arg_01 , ULONG arg_02 ); NtUserGetAncestor PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4477 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserGetAncestor ENDP ; ULONG __stdcall NtUserGetAppImeLevel( ULONG arg_01 ); NtUserGetAppImeLevel PROC STDCALL arg_01:DWORD mov eax , 4478 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserGetAppImeLevel ENDP ; ULONG __stdcall NtUserGetAsyncKeyState( ULONG arg_01 ); NtUserGetAsyncKeyState PROC STDCALL arg_01:DWORD mov eax , 4479 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserGetAsyncKeyState ENDP ; ULONG __stdcall NtUserGetAtomName( ULONG arg_01 , ULONG arg_02 ); NtUserGetAtomName PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4480 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserGetAtomName ENDP ; ULONG __stdcall NtUserGetCaretBlinkTime( ); NtUserGetCaretBlinkTime PROC STDCALL mov eax , 4481 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserGetCaretBlinkTime ENDP ; ULONG __stdcall NtUserGetCaretPos( ULONG arg_01 ); NtUserGetCaretPos PROC STDCALL arg_01:DWORD mov eax , 4482 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserGetCaretPos ENDP ; ULONG __stdcall NtUserGetClassInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtUserGetClassInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4483 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtUserGetClassInfo ENDP ; ULONG __stdcall NtUserGetClassName( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserGetClassName PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4484 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserGetClassName ENDP ; ULONG __stdcall NtUserGetClipboardData( ULONG arg_01 , ULONG arg_02 ); NtUserGetClipboardData PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4485 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserGetClipboardData ENDP ; ULONG __stdcall NtUserGetClipboardFormatName( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserGetClipboardFormatName PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4486 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserGetClipboardFormatName ENDP ; ULONG __stdcall NtUserGetClipboardOwner( ); NtUserGetClipboardOwner PROC STDCALL mov eax , 4487 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserGetClipboardOwner ENDP ; ULONG __stdcall NtUserGetClipboardSequenceNumber( ); NtUserGetClipboardSequenceNumber PROC STDCALL mov eax , 4488 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserGetClipboardSequenceNumber ENDP ; ULONG __stdcall NtUserGetClipboardViewer( ); NtUserGetClipboardViewer PROC STDCALL mov eax , 4489 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserGetClipboardViewer ENDP ; ULONG __stdcall NtUserGetClipCursor( ULONG arg_01 ); NtUserGetClipCursor PROC STDCALL arg_01:DWORD mov eax , 4490 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserGetClipCursor ENDP ; ULONG __stdcall NtUserGetComboBoxInfo( ULONG arg_01 , ULONG arg_02 ); NtUserGetComboBoxInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4491 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserGetComboBoxInfo ENDP ; ULONG __stdcall NtUserGetControlBrush( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserGetControlBrush PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4492 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserGetControlBrush ENDP ; ULONG __stdcall NtUserGetControlColor( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserGetControlColor PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4493 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserGetControlColor ENDP ; ULONG __stdcall NtUserGetCPD( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserGetCPD PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4494 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserGetCPD ENDP ; ULONG __stdcall NtUserGetCursorFrameInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserGetCursorFrameInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4495 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserGetCursorFrameInfo ENDP ; ULONG __stdcall NtUserGetCursorInfo( ULONG arg_01 ); NtUserGetCursorInfo PROC STDCALL arg_01:DWORD mov eax , 4496 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserGetCursorInfo ENDP ; ULONG __stdcall NtUserGetDC( ULONG arg_01 ); NtUserGetDC PROC STDCALL arg_01:DWORD mov eax , 4497 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserGetDC ENDP ; ULONG __stdcall NtUserGetDCEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserGetDCEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4498 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserGetDCEx ENDP ; ULONG __stdcall NtUserGetDoubleClickTime( ); NtUserGetDoubleClickTime PROC STDCALL mov eax , 4499 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserGetDoubleClickTime ENDP ; ULONG __stdcall NtUserGetForegroundWindow( ); NtUserGetForegroundWindow PROC STDCALL mov eax , 4500 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserGetForegroundWindow ENDP ; ULONG __stdcall NtUserGetGuiResources( ULONG arg_01 , ULONG arg_02 ); NtUserGetGuiResources PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4501 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserGetGuiResources ENDP ; ULONG __stdcall NtUserGetGUIThreadInfo( ULONG arg_01 , ULONG arg_02 ); NtUserGetGUIThreadInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4502 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserGetGUIThreadInfo ENDP ; ULONG __stdcall NtUserGetIconInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtUserGetIconInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4503 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtUserGetIconInfo ENDP ; ULONG __stdcall NtUserGetIconSize( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserGetIconSize PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4504 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserGetIconSize ENDP ; ULONG __stdcall NtUserGetImeHotKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserGetImeHotKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4505 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserGetImeHotKey ENDP ; ULONG __stdcall NtUserGetImeInfoEx( ULONG arg_01 , ULONG arg_02 ); NtUserGetImeInfoEx PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4506 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserGetImeInfoEx ENDP ; ULONG __stdcall NtUserGetInternalWindowPos( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserGetInternalWindowPos PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4507 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserGetInternalWindowPos ENDP ; ULONG __stdcall NtUserGetKeyboardLayoutList( ULONG arg_01 , ULONG arg_02 ); NtUserGetKeyboardLayoutList PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4508 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserGetKeyboardLayoutList ENDP ; ULONG __stdcall NtUserGetKeyboardLayoutName( ULONG arg_01 ); NtUserGetKeyboardLayoutName PROC STDCALL arg_01:DWORD mov eax , 4509 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserGetKeyboardLayoutName ENDP ; ULONG __stdcall NtUserGetKeyboardState( ULONG arg_01 ); NtUserGetKeyboardState PROC STDCALL arg_01:DWORD mov eax , 4510 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserGetKeyboardState ENDP ; ULONG __stdcall NtUserGetKeyNameText( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserGetKeyNameText PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4511 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserGetKeyNameText ENDP ; ULONG __stdcall NtUserGetKeyState( ULONG arg_01 ); NtUserGetKeyState PROC STDCALL arg_01:DWORD mov eax , 4512 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserGetKeyState ENDP ; ULONG __stdcall NtUserGetListBoxInfo( ULONG arg_01 ); NtUserGetListBoxInfo PROC STDCALL arg_01:DWORD mov eax , 4513 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserGetListBoxInfo ENDP ; ULONG __stdcall NtUserGetMenuBarInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserGetMenuBarInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4514 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserGetMenuBarInfo ENDP ; ULONG __stdcall NtUserGetMenuIndex( ULONG arg_01 , ULONG arg_02 ); NtUserGetMenuIndex PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4515 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserGetMenuIndex ENDP ; ULONG __stdcall NtUserGetMenuItemRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserGetMenuItemRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4516 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserGetMenuItemRect ENDP ; ULONG __stdcall NtUserGetMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserGetMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4517 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserGetMessage ENDP ; ULONG __stdcall NtUserGetMouseMovePointsEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtUserGetMouseMovePointsEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4518 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtUserGetMouseMovePointsEx ENDP ; ULONG __stdcall NtUserGetObjectInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtUserGetObjectInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4519 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtUserGetObjectInformation ENDP ; ULONG __stdcall NtUserGetOpenClipboardWindow( ); NtUserGetOpenClipboardWindow PROC STDCALL mov eax , 4520 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserGetOpenClipboardWindow ENDP ; ULONG __stdcall NtUserGetPriorityClipboardFormat( ULONG arg_01 , ULONG arg_02 ); NtUserGetPriorityClipboardFormat PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4521 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserGetPriorityClipboardFormat ENDP ; ULONG __stdcall NtUserGetProcessWindowStation( ); NtUserGetProcessWindowStation PROC STDCALL mov eax , 4522 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserGetProcessWindowStation ENDP ; ULONG __stdcall NtUserGetRawInputBuffer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserGetRawInputBuffer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4523 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserGetRawInputBuffer ENDP ; ULONG __stdcall NtUserGetRawInputData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtUserGetRawInputData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4524 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtUserGetRawInputData ENDP ; ULONG __stdcall NtUserGetRawInputDeviceInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserGetRawInputDeviceInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4525 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserGetRawInputDeviceInfo ENDP ; ULONG __stdcall NtUserGetRawInputDeviceList( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserGetRawInputDeviceList PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4526 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserGetRawInputDeviceList ENDP ; ULONG __stdcall NtUserGetRegisteredRawInputDevices( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserGetRegisteredRawInputDevices PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4527 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserGetRegisteredRawInputDevices ENDP ; ULONG __stdcall NtUserGetScrollBarInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserGetScrollBarInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4528 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserGetScrollBarInfo ENDP ; ULONG __stdcall NtUserGetSystemMenu( ULONG arg_01 , ULONG arg_02 ); NtUserGetSystemMenu PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4529 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserGetSystemMenu ENDP ; ULONG __stdcall NtUserGetThreadDesktop( ULONG arg_01 , ULONG arg_02 ); NtUserGetThreadDesktop PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4530 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserGetThreadDesktop ENDP ; ULONG __stdcall NtUserGetThreadState( ULONG arg_01 ); NtUserGetThreadState PROC STDCALL arg_01:DWORD mov eax , 4531 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserGetThreadState ENDP ; ULONG __stdcall NtUserGetTitleBarInfo( ULONG arg_01 , ULONG arg_02 ); NtUserGetTitleBarInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4532 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserGetTitleBarInfo ENDP ; ULONG __stdcall NtUserGetUpdateRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserGetUpdateRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4533 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserGetUpdateRect ENDP ; ULONG __stdcall NtUserGetUpdateRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserGetUpdateRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4534 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserGetUpdateRgn ENDP ; ULONG __stdcall NtUserGetWindowDC( ULONG arg_01 ); NtUserGetWindowDC PROC STDCALL arg_01:DWORD mov eax , 4535 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserGetWindowDC ENDP ; ULONG __stdcall NtUserGetWindowPlacement( ULONG arg_01 , ULONG arg_02 ); NtUserGetWindowPlacement PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4536 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserGetWindowPlacement ENDP ; ULONG __stdcall NtUserGetWOWClass( ULONG arg_01 , ULONG arg_02 ); NtUserGetWOWClass PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4537 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserGetWOWClass ENDP ; ULONG __stdcall NtUserHardErrorControl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserHardErrorControl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4538 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserHardErrorControl ENDP ; ULONG __stdcall NtUserHideCaret( ULONG arg_01 ); NtUserHideCaret PROC STDCALL arg_01:DWORD mov eax , 4539 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserHideCaret ENDP ; ULONG __stdcall NtUserHiliteMenuItem( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserHiliteMenuItem PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4540 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserHiliteMenuItem ENDP ; ULONG __stdcall NtUserImpersonateDdeClientWindow( ULONG arg_01 , ULONG arg_02 ); NtUserImpersonateDdeClientWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4541 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserImpersonateDdeClientWindow ENDP ; ULONG __stdcall NtUserInitialize( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserInitialize PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4542 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserInitialize ENDP ; ULONG __stdcall NtUserInitializeClientPfnArrays( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserInitializeClientPfnArrays PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4543 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserInitializeClientPfnArrays ENDP ; ULONG __stdcall NtUserInitTask( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 ); NtUserInitTask PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD mov eax , 4544 mov edx , 7FFE0300h call dword ptr [edx] ret 48 NtUserInitTask ENDP ; ULONG __stdcall NtUserInternalGetWindowText( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserInternalGetWindowText PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4545 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserInternalGetWindowText ENDP ; ULONG __stdcall NtUserInvalidateRect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserInvalidateRect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4546 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserInvalidateRect ENDP ; ULONG __stdcall NtUserInvalidateRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserInvalidateRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4547 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserInvalidateRgn ENDP ; ULONG __stdcall NtUserIsClipboardFormatAvailable( ULONG arg_01 ); NtUserIsClipboardFormatAvailable PROC STDCALL arg_01:DWORD mov eax , 4548 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserIsClipboardFormatAvailable ENDP ; ULONG __stdcall NtUserKillTimer( ULONG arg_01 , ULONG arg_02 ); NtUserKillTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4549 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserKillTimer ENDP ; ULONG __stdcall NtUserLoadKeyboardLayoutEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtUserLoadKeyboardLayoutEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4550 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtUserLoadKeyboardLayoutEx ENDP ; ULONG __stdcall NtUserLockWindowStation( ULONG arg_01 ); NtUserLockWindowStation PROC STDCALL arg_01:DWORD mov eax , 4551 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserLockWindowStation ENDP ; ULONG __stdcall NtUserLockWindowUpdate( ULONG arg_01 ); NtUserLockWindowUpdate PROC STDCALL arg_01:DWORD mov eax , 4552 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserLockWindowUpdate ENDP ; ULONG __stdcall NtUserLockWorkStation( ); NtUserLockWorkStation PROC STDCALL mov eax , 4553 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserLockWorkStation ENDP ; ULONG __stdcall NtUserMapVirtualKeyEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserMapVirtualKeyEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4554 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserMapVirtualKeyEx ENDP ; ULONG __stdcall NtUserMenuItemFromPoint( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserMenuItemFromPoint PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4555 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserMenuItemFromPoint ENDP ; ULONG __stdcall NtUserMessageCall( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtUserMessageCall PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4556 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtUserMessageCall ENDP ; ULONG __stdcall NtUserMinMaximize( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserMinMaximize PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4557 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserMinMaximize ENDP ; ULONG __stdcall NtUserMNDragLeave( ); NtUserMNDragLeave PROC STDCALL mov eax , 4558 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserMNDragLeave ENDP ; ULONG __stdcall NtUserMNDragOver( ULONG arg_01 , ULONG arg_02 ); NtUserMNDragOver PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4559 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserMNDragOver ENDP ; ULONG __stdcall NtUserModifyUserStartupInfoFlags( ULONG arg_01 , ULONG arg_02 ); NtUserModifyUserStartupInfoFlags PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4560 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserModifyUserStartupInfoFlags ENDP ; ULONG __stdcall NtUserMoveWindow( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtUserMoveWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4561 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtUserMoveWindow ENDP ; ULONG __stdcall NtUserNotifyIMEStatus( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserNotifyIMEStatus PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4562 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserNotifyIMEStatus ENDP ; ULONG __stdcall NtUserNotifyProcessCreate( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserNotifyProcessCreate PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4563 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserNotifyProcessCreate ENDP ; ULONG __stdcall NtUserNotifyWinEvent( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserNotifyWinEvent PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4564 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserNotifyWinEvent ENDP ; ULONG __stdcall NtUserOpenClipboard( ULONG arg_01 , ULONG arg_02 ); NtUserOpenClipboard PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4565 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserOpenClipboard ENDP ; ULONG __stdcall NtUserOpenDesktop( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserOpenDesktop PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4566 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserOpenDesktop ENDP ; ULONG __stdcall NtUserOpenInputDesktop( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserOpenInputDesktop PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4567 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserOpenInputDesktop ENDP ; ULONG __stdcall NtUserOpenWindowStation( ULONG arg_01 , ULONG arg_02 ); NtUserOpenWindowStation PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4568 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserOpenWindowStation ENDP ; ULONG __stdcall NtUserPaintDesktop( ULONG arg_01 ); NtUserPaintDesktop PROC STDCALL arg_01:DWORD mov eax , 4569 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserPaintDesktop ENDP ; ULONG __stdcall NtUserPeekMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtUserPeekMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4570 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtUserPeekMessage ENDP ; ULONG __stdcall NtUserPostMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserPostMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4571 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserPostMessage ENDP ; ULONG __stdcall NtUserPostThreadMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserPostThreadMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4572 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserPostThreadMessage ENDP ; ULONG __stdcall NtUserPrintWindow( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserPrintWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4573 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserPrintWindow ENDP ; ULONG __stdcall NtUserProcessConnect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserProcessConnect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4574 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserProcessConnect ENDP ; ULONG __stdcall NtUserQueryInformationThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtUserQueryInformationThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4575 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtUserQueryInformationThread ENDP ; ULONG __stdcall NtUserQueryInputContext( ULONG arg_01 , ULONG arg_02 ); NtUserQueryInputContext PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4576 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserQueryInputContext ENDP ; ULONG __stdcall NtUserQuerySendMessage( ULONG arg_01 ); NtUserQuerySendMessage PROC STDCALL arg_01:DWORD mov eax , 4577 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserQuerySendMessage ENDP ; ULONG __stdcall NtUserQueryUserCounters( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtUserQueryUserCounters PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4578 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtUserQueryUserCounters ENDP ; ULONG __stdcall NtUserQueryWindow( ULONG arg_01 , ULONG arg_02 ); NtUserQueryWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4579 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserQueryWindow ENDP ; ULONG __stdcall NtUserRealChildWindowFromPoint( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserRealChildWindowFromPoint PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4580 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserRealChildWindowFromPoint ENDP ; ULONG __stdcall NtUserRealInternalGetMessage( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtUserRealInternalGetMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4581 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtUserRealInternalGetMessage ENDP ; ULONG __stdcall NtUserRealWaitMessageEx( ULONG arg_01 , ULONG arg_02 ); NtUserRealWaitMessageEx PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4582 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserRealWaitMessageEx ENDP ; ULONG __stdcall NtUserRedrawWindow( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserRedrawWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4583 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserRedrawWindow ENDP ; ULONG __stdcall NtUserRegisterClassExWOW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtUserRegisterClassExWOW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4584 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtUserRegisterClassExWOW ENDP ; ULONG __stdcall NtUserRegisterUserApiHook( ULONG arg_01 , ULONG arg_02 ); NtUserRegisterUserApiHook PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4585 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserRegisterUserApiHook ENDP ; ULONG __stdcall NtUserRegisterHotKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserRegisterHotKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4586 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserRegisterHotKey ENDP ; ULONG __stdcall NtUserRegisterRawInputDevices( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserRegisterRawInputDevices PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4587 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserRegisterRawInputDevices ENDP ; ULONG __stdcall NtUserRegisterTasklist( ULONG arg_01 ); NtUserRegisterTasklist PROC STDCALL arg_01:DWORD mov eax , 4588 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserRegisterTasklist ENDP ; ULONG __stdcall NtUserRegisterWindowMessage( ULONG arg_01 ); NtUserRegisterWindowMessage PROC STDCALL arg_01:DWORD mov eax , 4589 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserRegisterWindowMessage ENDP ; ULONG __stdcall NtUserRemoveMenu( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserRemoveMenu PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4590 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserRemoveMenu ENDP ; ULONG __stdcall NtUserRemoveProp( ULONG arg_01 , ULONG arg_02 ); NtUserRemoveProp PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4591 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserRemoveProp ENDP ; ULONG __stdcall NtUserResolveDesktop( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserResolveDesktop PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4592 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserResolveDesktop ENDP ; ULONG __stdcall NtUserResolveDesktopForWOW( ULONG arg_01 ); NtUserResolveDesktopForWOW PROC STDCALL arg_01:DWORD mov eax , 4593 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserResolveDesktopForWOW ENDP ; ULONG __stdcall NtUserSBGetParms( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserSBGetParms PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4594 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserSBGetParms ENDP ; ULONG __stdcall NtUserScrollDC( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtUserScrollDC PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4595 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtUserScrollDC ENDP ; ULONG __stdcall NtUserScrollWindowEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); NtUserScrollWindowEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 4596 mov edx , 7FFE0300h call dword ptr [edx] ret 32 NtUserScrollWindowEx ENDP ; ULONG __stdcall NtUserSelectPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserSelectPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4597 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserSelectPalette ENDP ; ULONG __stdcall NtUserSendInput( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserSendInput PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4598 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserSendInput ENDP ; ULONG __stdcall NtUserSetActiveWindow( ULONG arg_01 ); NtUserSetActiveWindow PROC STDCALL arg_01:DWORD mov eax , 4599 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserSetActiveWindow ENDP ; ULONG __stdcall NtUserSetAppImeLevel( ULONG arg_01 , ULONG arg_02 ); NtUserSetAppImeLevel PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4600 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserSetAppImeLevel ENDP ; ULONG __stdcall NtUserSetCapture( ULONG arg_01 ); NtUserSetCapture PROC STDCALL arg_01:DWORD mov eax , 4601 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserSetCapture ENDP ; ULONG __stdcall NtUserSetClassLong( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserSetClassLong PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4602 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserSetClassLong ENDP ; ULONG __stdcall NtUserSetClassWord( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserSetClassWord PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4603 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserSetClassWord ENDP ; ULONG __stdcall NtUserSetClipboardData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserSetClipboardData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4604 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserSetClipboardData ENDP ; ULONG __stdcall NtUserSetClipboardViewer( ULONG arg_01 ); NtUserSetClipboardViewer PROC STDCALL arg_01:DWORD mov eax , 4605 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserSetClipboardViewer ENDP ; ULONG __stdcall NtUserSetConsoleReserveKeys( ULONG arg_01 , ULONG arg_02 ); NtUserSetConsoleReserveKeys PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4606 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserSetConsoleReserveKeys ENDP ; ULONG __stdcall NtUserSetCursor( ULONG arg_01 ); NtUserSetCursor PROC STDCALL arg_01:DWORD mov eax , 4607 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserSetCursor ENDP ; ULONG __stdcall NtUserSetCursorContents( ULONG arg_01 , ULONG arg_02 ); NtUserSetCursorContents PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4608 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserSetCursorContents ENDP ; ULONG __stdcall NtUserSetCursorIconData( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserSetCursorIconData PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4609 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserSetCursorIconData ENDP ; ULONG __stdcall NtUserSetDbgTag( ULONG arg_01 , ULONG arg_02 ); NtUserSetDbgTag PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4610 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserSetDbgTag ENDP ; ULONG __stdcall NtUserSetFocus( ULONG arg_01 ); NtUserSetFocus PROC STDCALL arg_01:DWORD mov eax , 4611 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserSetFocus ENDP ; ULONG __stdcall NtUserSetImeHotKey( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtUserSetImeHotKey PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4612 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtUserSetImeHotKey ENDP ; ULONG __stdcall NtUserSetImeInfoEx( ULONG arg_01 ); NtUserSetImeInfoEx PROC STDCALL arg_01:DWORD mov eax , 4613 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserSetImeInfoEx ENDP ; ULONG __stdcall NtUserSetImeOwnerWindow( ULONG arg_01 , ULONG arg_02 ); NtUserSetImeOwnerWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4614 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserSetImeOwnerWindow ENDP ; ULONG __stdcall NtUserSetInformationProcess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserSetInformationProcess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4615 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserSetInformationProcess ENDP ; ULONG __stdcall NtUserSetInformationThread( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserSetInformationThread PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4616 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserSetInformationThread ENDP ; ULONG __stdcall NtUserSetInternalWindowPos( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserSetInternalWindowPos PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4617 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserSetInternalWindowPos ENDP ; ULONG __stdcall NtUserSetKeyboardState( ULONG arg_01 ); NtUserSetKeyboardState PROC STDCALL arg_01:DWORD mov eax , 4618 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserSetKeyboardState ENDP ; ULONG __stdcall NtUserSetLogonNotifyWindow( ULONG arg_01 ); NtUserSetLogonNotifyWindow PROC STDCALL arg_01:DWORD mov eax , 4619 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserSetLogonNotifyWindow ENDP ; ULONG __stdcall NtUserSetMenu( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserSetMenu PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4620 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserSetMenu ENDP ; ULONG __stdcall NtUserSetMenuContextHelpId( ULONG arg_01 , ULONG arg_02 ); NtUserSetMenuContextHelpId PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4621 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserSetMenuContextHelpId ENDP ; ULONG __stdcall NtUserSetMenuDefaultItem( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserSetMenuDefaultItem PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4622 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserSetMenuDefaultItem ENDP ; ULONG __stdcall NtUserSetMenuFlagRtoL( ULONG arg_01 ); NtUserSetMenuFlagRtoL PROC STDCALL arg_01:DWORD mov eax , 4623 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserSetMenuFlagRtoL ENDP ; ULONG __stdcall NtUserSetObjectInformation( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserSetObjectInformation PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4624 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserSetObjectInformation ENDP ; ULONG __stdcall NtUserSetParent( ULONG arg_01 , ULONG arg_02 ); NtUserSetParent PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4625 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserSetParent ENDP ; ULONG __stdcall NtUserSetProcessWindowStation( ULONG arg_01 ); NtUserSetProcessWindowStation PROC STDCALL arg_01:DWORD mov eax , 4626 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserSetProcessWindowStation ENDP ; ULONG __stdcall NtUserSetProp( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserSetProp PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4627 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserSetProp ENDP ; ULONG __stdcall NtUserSetRipFlags( ULONG arg_01 , ULONG arg_02 ); NtUserSetRipFlags PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4628 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserSetRipFlags ENDP ; ULONG __stdcall NtUserSetScrollInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserSetScrollInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4629 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserSetScrollInfo ENDP ; ULONG __stdcall NtUserSetShellWindowEx( ULONG arg_01 , ULONG arg_02 ); NtUserSetShellWindowEx PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4630 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserSetShellWindowEx ENDP ; ULONG __stdcall NtUserSetSysColors( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserSetSysColors PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4631 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserSetSysColors ENDP ; ULONG __stdcall NtUserSetSystemCursor( ULONG arg_01 , ULONG arg_02 ); NtUserSetSystemCursor PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4632 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserSetSystemCursor ENDP ; ULONG __stdcall NtUserSetSystemMenu( ULONG arg_01 , ULONG arg_02 ); NtUserSetSystemMenu PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4633 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserSetSystemMenu ENDP ; ULONG __stdcall NtUserSetSystemTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserSetSystemTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4634 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserSetSystemTimer ENDP ; ULONG __stdcall NtUserSetThreadDesktop( ULONG arg_01 ); NtUserSetThreadDesktop PROC STDCALL arg_01:DWORD mov eax , 4635 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserSetThreadDesktop ENDP ; ULONG __stdcall NtUserSetThreadLayoutHandles( ULONG arg_01 , ULONG arg_02 ); NtUserSetThreadLayoutHandles PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4636 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserSetThreadLayoutHandles ENDP ; ULONG __stdcall NtUserSetThreadState( ULONG arg_01 , ULONG arg_02 ); NtUserSetThreadState PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4637 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserSetThreadState ENDP ; ULONG __stdcall NtUserSetTimer( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserSetTimer PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4638 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserSetTimer ENDP ; ULONG __stdcall NtUserSetWindowFNID( ULONG arg_01 , ULONG arg_02 ); NtUserSetWindowFNID PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4639 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserSetWindowFNID ENDP ; ULONG __stdcall NtUserSetWindowLong( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserSetWindowLong PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4640 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserSetWindowLong ENDP ; ULONG __stdcall NtUserSetWindowPlacement( ULONG arg_01 , ULONG arg_02 ); NtUserSetWindowPlacement PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4641 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserSetWindowPlacement ENDP ; ULONG __stdcall NtUserSetWindowPos( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtUserSetWindowPos PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4642 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtUserSetWindowPos ENDP ; ULONG __stdcall NtUserSetWindowRgn( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserSetWindowRgn PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4643 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserSetWindowRgn ENDP ; ULONG __stdcall NtUserSetWindowsHookAW( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserSetWindowsHookAW PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4644 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserSetWindowsHookAW ENDP ; ULONG __stdcall NtUserSetWindowsHookEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtUserSetWindowsHookEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4645 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtUserSetWindowsHookEx ENDP ; ULONG __stdcall NtUserSetWindowStationUser( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserSetWindowStationUser PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4646 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserSetWindowStationUser ENDP ; ULONG __stdcall NtUserSetWindowWord( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserSetWindowWord PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4647 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserSetWindowWord ENDP ; ULONG __stdcall NtUserSetWinEventHook( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); NtUserSetWinEventHook PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 4648 mov edx , 7FFE0300h call dword ptr [edx] ret 32 NtUserSetWinEventHook ENDP ; ULONG __stdcall NtUserShowCaret( ULONG arg_01 ); NtUserShowCaret PROC STDCALL arg_01:DWORD mov eax , 4649 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserShowCaret ENDP ; ULONG __stdcall NtUserShowScrollBar( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserShowScrollBar PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4650 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserShowScrollBar ENDP ; ULONG __stdcall NtUserShowWindow( ULONG arg_01 , ULONG arg_02 ); NtUserShowWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4651 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserShowWindow ENDP ; ULONG __stdcall NtUserShowWindowAsync( ULONG arg_01 , ULONG arg_02 ); NtUserShowWindowAsync PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4652 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserShowWindowAsync ENDP ; ULONG __stdcall NtUserSoundSentry( ); NtUserSoundSentry PROC STDCALL mov eax , 4653 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserSoundSentry ENDP ; ULONG __stdcall NtUserSwitchDesktop( ULONG arg_01 ); NtUserSwitchDesktop PROC STDCALL arg_01:DWORD mov eax , 4654 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserSwitchDesktop ENDP ; ULONG __stdcall NtUserSystemParametersInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserSystemParametersInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4655 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserSystemParametersInfo ENDP ; ULONG __stdcall NtUserTestForInteractiveUser( ULONG arg_01 ); NtUserTestForInteractiveUser PROC STDCALL arg_01:DWORD mov eax , 4656 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserTestForInteractiveUser ENDP ; ULONG __stdcall NtUserThunkedMenuInfo( ULONG arg_01 , ULONG arg_02 ); NtUserThunkedMenuInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4657 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserThunkedMenuInfo ENDP ; ULONG __stdcall NtUserThunkedMenuItemInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtUserThunkedMenuItemInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4658 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtUserThunkedMenuItemInfo ENDP ; ULONG __stdcall NtUserToUnicodeEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtUserToUnicodeEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4659 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtUserToUnicodeEx ENDP ; ULONG __stdcall NtUserTrackMouseEvent( ULONG arg_01 ); NtUserTrackMouseEvent PROC STDCALL arg_01:DWORD mov eax , 4660 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserTrackMouseEvent ENDP ; ULONG __stdcall NtUserTrackPopupMenuEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtUserTrackPopupMenuEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4661 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtUserTrackPopupMenuEx ENDP ; ULONG __stdcall NtUserCalcMenuBar( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtUserCalcMenuBar PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4662 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtUserCalcMenuBar ENDP ; ULONG __stdcall NtUserPaintMenuBar( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtUserPaintMenuBar PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4663 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtUserPaintMenuBar ENDP ; ULONG __stdcall NtUserTranslateAccelerator( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserTranslateAccelerator PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4664 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserTranslateAccelerator ENDP ; ULONG __stdcall NtUserTranslateMessage( ULONG arg_01 , ULONG arg_02 ); NtUserTranslateMessage PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4665 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserTranslateMessage ENDP ; ULONG __stdcall NtUserUnhookWindowsHookEx( ULONG arg_01 ); NtUserUnhookWindowsHookEx PROC STDCALL arg_01:DWORD mov eax , 4666 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserUnhookWindowsHookEx ENDP ; ULONG __stdcall NtUserUnhookWinEvent( ULONG arg_01 ); NtUserUnhookWinEvent PROC STDCALL arg_01:DWORD mov eax , 4667 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserUnhookWinEvent ENDP ; ULONG __stdcall NtUserUnloadKeyboardLayout( ULONG arg_01 ); NtUserUnloadKeyboardLayout PROC STDCALL arg_01:DWORD mov eax , 4668 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserUnloadKeyboardLayout ENDP ; ULONG __stdcall NtUserUnlockWindowStation( ULONG arg_01 ); NtUserUnlockWindowStation PROC STDCALL arg_01:DWORD mov eax , 4669 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserUnlockWindowStation ENDP ; ULONG __stdcall NtUserUnregisterClass( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserUnregisterClass PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4670 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserUnregisterClass ENDP ; ULONG __stdcall NtUserUnregisterUserApiHook( ); NtUserUnregisterUserApiHook PROC STDCALL mov eax , 4671 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserUnregisterUserApiHook ENDP ; ULONG __stdcall NtUserUnregisterHotKey( ULONG arg_01 , ULONG arg_02 ); NtUserUnregisterHotKey PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4672 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserUnregisterHotKey ENDP ; ULONG __stdcall NtUserUpdateInputContext( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserUpdateInputContext PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4673 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserUpdateInputContext ENDP ; ULONG __stdcall NtUserUpdateInstance( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserUpdateInstance PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4674 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserUpdateInstance ENDP ; ULONG __stdcall NtUserUpdateLayeredWindow( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); NtUserUpdateLayeredWindow PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 4675 mov edx , 7FFE0300h call dword ptr [edx] ret 36 NtUserUpdateLayeredWindow ENDP ; ULONG __stdcall NtUserGetLayeredWindowAttributes( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserGetLayeredWindowAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4676 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserGetLayeredWindowAttributes ENDP ; ULONG __stdcall NtUserSetLayeredWindowAttributes( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserSetLayeredWindowAttributes PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4677 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserSetLayeredWindowAttributes ENDP ; ULONG __stdcall NtUserUpdatePerUserSystemParameters( ULONG arg_01 , ULONG arg_02 ); NtUserUpdatePerUserSystemParameters PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4678 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserUpdatePerUserSystemParameters ENDP ; ULONG __stdcall NtUserUserHandleGrantAccess( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserUserHandleGrantAccess PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4679 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserUserHandleGrantAccess ENDP ; ULONG __stdcall NtUserValidateHandleSecure( ULONG arg_01 ); NtUserValidateHandleSecure PROC STDCALL arg_01:DWORD mov eax , 4680 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserValidateHandleSecure ENDP ; ULONG __stdcall NtUserValidateRect( ULONG arg_01 , ULONG arg_02 ); NtUserValidateRect PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4681 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserValidateRect ENDP ; ULONG __stdcall NtUserVkKeyScanEx( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserVkKeyScanEx PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4682 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserVkKeyScanEx ENDP ; ULONG __stdcall NtUserWaitForInputIdle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserWaitForInputIdle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4683 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserWaitForInputIdle ENDP ; ULONG __stdcall NtUserWaitForMsgAndEvent( ULONG arg_01 ); NtUserWaitForMsgAndEvent PROC STDCALL arg_01:DWORD mov eax , 4684 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtUserWaitForMsgAndEvent ENDP ; ULONG __stdcall NtUserWaitMessage( ); NtUserWaitMessage PROC STDCALL mov eax , 4685 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserWaitMessage ENDP ; ULONG __stdcall NtUserWin32PoolAllocationStats( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtUserWin32PoolAllocationStats PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4686 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtUserWin32PoolAllocationStats ENDP ; ULONG __stdcall NtUserWindowFromPoint( ULONG arg_01 , ULONG arg_02 ); NtUserWindowFromPoint PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4687 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtUserWindowFromPoint ENDP ; ULONG __stdcall NtUserYieldTask( ); NtUserYieldTask PROC STDCALL mov eax , 4688 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserYieldTask ENDP ; ULONG __stdcall NtUserRemoteConnect( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserRemoteConnect PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4689 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserRemoteConnect ENDP ; ULONG __stdcall NtUserRemoteRedrawRectangle( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtUserRemoteRedrawRectangle PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4690 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtUserRemoteRedrawRectangle ENDP ; ULONG __stdcall NtUserRemoteRedrawScreen( ); NtUserRemoteRedrawScreen PROC STDCALL mov eax , 4691 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserRemoteRedrawScreen ENDP ; ULONG __stdcall NtUserRemoteStopScreenUpdates( ); NtUserRemoteStopScreenUpdates PROC STDCALL mov eax , 4692 mov edx , 7FFE0300h call dword ptr [edx] ret NtUserRemoteStopScreenUpdates ENDP ; ULONG __stdcall NtUserCtxDisplayIOCtl( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtUserCtxDisplayIOCtl PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4693 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtUserCtxDisplayIOCtl ENDP ; ULONG __stdcall NtGdiEngAssociateSurface( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiEngAssociateSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4694 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiEngAssociateSurface ENDP ; ULONG __stdcall NtGdiEngCreateBitmap( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiEngCreateBitmap PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4695 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiEngCreateBitmap ENDP ; ULONG __stdcall NtGdiEngCreateDeviceSurface( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiEngCreateDeviceSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4696 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiEngCreateDeviceSurface ENDP ; ULONG __stdcall NtGdiEngCreateDeviceBitmap( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiEngCreateDeviceBitmap PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4697 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiEngCreateDeviceBitmap ENDP ; ULONG __stdcall NtGdiEngCreatePalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiEngCreatePalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4698 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiEngCreatePalette ENDP ; ULONG __stdcall NtGdiEngComputeGlyphSet( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiEngComputeGlyphSet PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4699 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiEngComputeGlyphSet ENDP ; ULONG __stdcall NtGdiEngCopyBits( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiEngCopyBits PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4700 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiEngCopyBits ENDP ; ULONG __stdcall NtGdiEngDeletePalette( ULONG arg_01 ); NtGdiEngDeletePalette PROC STDCALL arg_01:DWORD mov eax , 4701 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiEngDeletePalette ENDP ; ULONG __stdcall NtGdiEngDeleteSurface( ULONG arg_01 ); NtGdiEngDeleteSurface PROC STDCALL arg_01:DWORD mov eax , 4702 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiEngDeleteSurface ENDP ; ULONG __stdcall NtGdiEngEraseSurface( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiEngEraseSurface PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4703 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiEngEraseSurface ENDP ; ULONG __stdcall NtGdiEngUnlockSurface( ULONG arg_01 ); NtGdiEngUnlockSurface PROC STDCALL arg_01:DWORD mov eax , 4704 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiEngUnlockSurface ENDP ; ULONG __stdcall NtGdiEngLockSurface( ULONG arg_01 ); NtGdiEngLockSurface PROC STDCALL arg_01:DWORD mov eax , 4705 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiEngLockSurface ENDP ; ULONG __stdcall NtGdiEngBitBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); NtGdiEngBitBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 4706 mov edx , 7FFE0300h call dword ptr [edx] ret 44 NtGdiEngBitBlt ENDP ; ULONG __stdcall NtGdiEngStretchBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); NtGdiEngStretchBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 4707 mov edx , 7FFE0300h call dword ptr [edx] ret 44 NtGdiEngStretchBlt ENDP ; ULONG __stdcall NtGdiEngPlgBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 ); NtGdiEngPlgBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD mov eax , 4708 mov edx , 7FFE0300h call dword ptr [edx] ret 44 NtGdiEngPlgBlt ENDP ; ULONG __stdcall NtGdiEngMarkBandingSurface( ULONG arg_01 ); NtGdiEngMarkBandingSurface PROC STDCALL arg_01:DWORD mov eax , 4709 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiEngMarkBandingSurface ENDP ; ULONG __stdcall NtGdiEngStrokePath( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); NtGdiEngStrokePath PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 4710 mov edx , 7FFE0300h call dword ptr [edx] ret 32 NtGdiEngStrokePath ENDP ; ULONG __stdcall NtGdiEngFillPath( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtGdiEngFillPath PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4711 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtGdiEngFillPath ENDP ; ULONG __stdcall NtGdiEngStrokeAndFillPath( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); NtGdiEngStrokeAndFillPath PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 4712 mov edx , 7FFE0300h call dword ptr [edx] ret 40 NtGdiEngStrokeAndFillPath ENDP ; ULONG __stdcall NtGdiEngPaint( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiEngPaint PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4713 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiEngPaint ENDP ; ULONG __stdcall NtGdiEngLineTo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 ); NtGdiEngLineTo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD mov eax , 4714 mov edx , 7FFE0300h call dword ptr [edx] ret 36 NtGdiEngLineTo ENDP ; ULONG __stdcall NtGdiEngAlphaBlend( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 ); NtGdiEngAlphaBlend PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD mov eax , 4715 mov edx , 7FFE0300h call dword ptr [edx] ret 28 NtGdiEngAlphaBlend ENDP ; ULONG __stdcall NtGdiEngGradientFill( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); NtGdiEngGradientFill PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 4716 mov edx , 7FFE0300h call dword ptr [edx] ret 40 NtGdiEngGradientFill ENDP ; ULONG __stdcall NtGdiEngTransparentBlt( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 ); NtGdiEngTransparentBlt PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD mov eax , 4717 mov edx , 7FFE0300h call dword ptr [edx] ret 32 NtGdiEngTransparentBlt ENDP ; ULONG __stdcall NtGdiEngTextOut( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 ); NtGdiEngTextOut PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD mov eax , 4718 mov edx , 7FFE0300h call dword ptr [edx] ret 40 NtGdiEngTextOut ENDP ; ULONG __stdcall NtGdiEngStretchBltROP( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 , ULONG arg_07 , ULONG arg_08 , ULONG arg_09 , ULONG arg_10 , ULONG arg_11 , ULONG arg_12 , ULONG arg_13 ); NtGdiEngStretchBltROP PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD , arg_07:DWORD , arg_08:DWORD , arg_09:DWORD , arg_10:DWORD , arg_11:DWORD , arg_12:DWORD , arg_13:DWORD mov eax , 4719 mov edx , 7FFE0300h call dword ptr [edx] ret 52 NtGdiEngStretchBltROP ENDP ; ULONG __stdcall NtGdiXLATEOBJ_cGetPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiXLATEOBJ_cGetPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4720 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiXLATEOBJ_cGetPalette ENDP ; ULONG __stdcall NtGdiXLATEOBJ_iXlate( ULONG arg_01 , ULONG arg_02 ); NtGdiXLATEOBJ_iXlate PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4721 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiXLATEOBJ_iXlate ENDP ; ULONG __stdcall NtGdiXLATEOBJ_hGetColorTransform( ULONG arg_01 ); NtGdiXLATEOBJ_hGetColorTransform PROC STDCALL arg_01:DWORD mov eax , 4722 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiXLATEOBJ_hGetColorTransform ENDP ; ULONG __stdcall NtGdiCLIPOBJ_bEnum( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiCLIPOBJ_bEnum PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4723 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiCLIPOBJ_bEnum ENDP ; ULONG __stdcall NtGdiCLIPOBJ_cEnumStart( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiCLIPOBJ_cEnumStart PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4724 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiCLIPOBJ_cEnumStart ENDP ; ULONG __stdcall NtGdiCLIPOBJ_ppoGetPath( ULONG arg_01 ); NtGdiCLIPOBJ_ppoGetPath PROC STDCALL arg_01:DWORD mov eax , 4725 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiCLIPOBJ_ppoGetPath ENDP ; ULONG __stdcall NtGdiEngDeletePath( ULONG arg_01 ); NtGdiEngDeletePath PROC STDCALL arg_01:DWORD mov eax , 4726 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiEngDeletePath ENDP ; ULONG __stdcall NtGdiEngCreateClip( ); NtGdiEngCreateClip PROC STDCALL mov eax , 4727 mov edx , 7FFE0300h call dword ptr [edx] ret NtGdiEngCreateClip ENDP ; ULONG __stdcall NtGdiEngDeleteClip( ULONG arg_01 ); NtGdiEngDeleteClip PROC STDCALL arg_01:DWORD mov eax , 4728 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiEngDeleteClip ENDP ; ULONG __stdcall NtGdiBRUSHOBJ_ulGetBrushColor( ULONG arg_01 ); NtGdiBRUSHOBJ_ulGetBrushColor PROC STDCALL arg_01:DWORD mov eax , 4729 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiBRUSHOBJ_ulGetBrushColor ENDP ; ULONG __stdcall NtGdiBRUSHOBJ_pvAllocRbrush( ULONG arg_01 , ULONG arg_02 ); NtGdiBRUSHOBJ_pvAllocRbrush PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4730 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiBRUSHOBJ_pvAllocRbrush ENDP ; ULONG __stdcall NtGdiBRUSHOBJ_pvGetRbrush( ULONG arg_01 ); NtGdiBRUSHOBJ_pvGetRbrush PROC STDCALL arg_01:DWORD mov eax , 4731 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiBRUSHOBJ_pvGetRbrush ENDP ; ULONG __stdcall NtGdiBRUSHOBJ_hGetColorTransform( ULONG arg_01 ); NtGdiBRUSHOBJ_hGetColorTransform PROC STDCALL arg_01:DWORD mov eax , 4732 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiBRUSHOBJ_hGetColorTransform ENDP ; ULONG __stdcall NtGdiXFORMOBJ_bApplyXform( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiXFORMOBJ_bApplyXform PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4733 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiXFORMOBJ_bApplyXform ENDP ; ULONG __stdcall NtGdiXFORMOBJ_iGetXform( ULONG arg_01 , ULONG arg_02 ); NtGdiXFORMOBJ_iGetXform PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4734 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiXFORMOBJ_iGetXform ENDP ; ULONG __stdcall NtGdiFONTOBJ_vGetInfo( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiFONTOBJ_vGetInfo PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4735 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiFONTOBJ_vGetInfo ENDP ; ULONG __stdcall NtGdiFONTOBJ_pxoGetXform( ULONG arg_01 ); NtGdiFONTOBJ_pxoGetXform PROC STDCALL arg_01:DWORD mov eax , 4736 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiFONTOBJ_pxoGetXform ENDP ; ULONG __stdcall NtGdiFONTOBJ_cGetGlyphs( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 ); NtGdiFONTOBJ_cGetGlyphs PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD mov eax , 4737 mov edx , 7FFE0300h call dword ptr [edx] ret 20 NtGdiFONTOBJ_cGetGlyphs ENDP ; ULONG __stdcall NtGdiFONTOBJ_pifi( ULONG arg_01 ); NtGdiFONTOBJ_pifi PROC STDCALL arg_01:DWORD mov eax , 4738 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiFONTOBJ_pifi ENDP ; ULONG __stdcall NtGdiFONTOBJ_pfdg( ULONG arg_01 ); NtGdiFONTOBJ_pfdg PROC STDCALL arg_01:DWORD mov eax , 4739 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiFONTOBJ_pfdg ENDP ; ULONG __stdcall NtGdiFONTOBJ_pQueryGlyphAttrs( ULONG arg_01 , ULONG arg_02 ); NtGdiFONTOBJ_pQueryGlyphAttrs PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4740 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiFONTOBJ_pQueryGlyphAttrs ENDP ; ULONG __stdcall NtGdiFONTOBJ_pvTrueTypeFontFile( ULONG arg_01 , ULONG arg_02 ); NtGdiFONTOBJ_pvTrueTypeFontFile PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4741 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiFONTOBJ_pvTrueTypeFontFile ENDP ; ULONG __stdcall NtGdiFONTOBJ_cGetAllGlyphHandles( ULONG arg_01 , ULONG arg_02 ); NtGdiFONTOBJ_cGetAllGlyphHandles PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4742 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiFONTOBJ_cGetAllGlyphHandles ENDP ; ULONG __stdcall NtGdiSTROBJ_bEnum( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiSTROBJ_bEnum PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4743 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiSTROBJ_bEnum ENDP ; ULONG __stdcall NtGdiSTROBJ_bEnumPositionsOnly( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiSTROBJ_bEnumPositionsOnly PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4744 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiSTROBJ_bEnumPositionsOnly ENDP ; ULONG __stdcall NtGdiSTROBJ_bGetAdvanceWidths( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiSTROBJ_bGetAdvanceWidths PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4745 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiSTROBJ_bGetAdvanceWidths ENDP ; ULONG __stdcall NtGdiSTROBJ_vEnumStart( ULONG arg_01 ); NtGdiSTROBJ_vEnumStart PROC STDCALL arg_01:DWORD mov eax , 4746 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiSTROBJ_vEnumStart ENDP ; ULONG __stdcall NtGdiSTROBJ_dwGetCodePage( ULONG arg_01 ); NtGdiSTROBJ_dwGetCodePage PROC STDCALL arg_01:DWORD mov eax , 4747 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiSTROBJ_dwGetCodePage ENDP ; ULONG __stdcall NtGdiPATHOBJ_vGetBounds( ULONG arg_01 , ULONG arg_02 ); NtGdiPATHOBJ_vGetBounds PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4748 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiPATHOBJ_vGetBounds ENDP ; ULONG __stdcall NtGdiPATHOBJ_bEnum( ULONG arg_01 , ULONG arg_02 ); NtGdiPATHOBJ_bEnum PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4749 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiPATHOBJ_bEnum ENDP ; ULONG __stdcall NtGdiPATHOBJ_vEnumStart( ULONG arg_01 ); NtGdiPATHOBJ_vEnumStart PROC STDCALL arg_01:DWORD mov eax , 4750 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiPATHOBJ_vEnumStart ENDP ; ULONG __stdcall NtGdiPATHOBJ_vEnumStartClipLines( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiPATHOBJ_vEnumStartClipLines PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4751 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiPATHOBJ_vEnumStartClipLines ENDP ; ULONG __stdcall NtGdiPATHOBJ_bEnumClipLines( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiPATHOBJ_bEnumClipLines PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4752 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiPATHOBJ_bEnumClipLines ENDP ; ULONG __stdcall NtGdiGetDhpdev( ULONG arg_01 ); NtGdiGetDhpdev PROC STDCALL arg_01:DWORD mov eax , 4753 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiGetDhpdev ENDP ; ULONG __stdcall NtGdiEngCheckAbort( ULONG arg_01 ); NtGdiEngCheckAbort PROC STDCALL arg_01:DWORD mov eax , 4754 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiEngCheckAbort ENDP ; ULONG __stdcall NtGdiHT_Get8BPPFormatPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiHT_Get8BPPFormatPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4755 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiHT_Get8BPPFormatPalette ENDP ; ULONG __stdcall NtGdiHT_Get8BPPMaskPalette( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 , ULONG arg_05 , ULONG arg_06 ); NtGdiHT_Get8BPPMaskPalette PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD , arg_05:DWORD , arg_06:DWORD mov eax , 4756 mov edx , 7FFE0300h call dword ptr [edx] ret 24 NtGdiHT_Get8BPPMaskPalette ENDP ; ULONG __stdcall NtGdiUpdateTransform( ULONG arg_01 ); NtGdiUpdateTransform PROC STDCALL arg_01:DWORD mov eax , 4757 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiUpdateTransform ENDP ; ULONG __stdcall NtGdiSetPUMPDOBJ( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 , ULONG arg_04 ); NtGdiSetPUMPDOBJ PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD , arg_04:DWORD mov eax , 4758 mov edx , 7FFE0300h call dword ptr [edx] ret 16 NtGdiSetPUMPDOBJ ENDP ; ULONG __stdcall NtGdiBRUSHOBJ_DeleteRbrush( ULONG arg_01 , ULONG arg_02 ); NtGdiBRUSHOBJ_DeleteRbrush PROC STDCALL arg_01:DWORD , arg_02:DWORD mov eax , 4759 mov edx , 7FFE0300h call dword ptr [edx] ret 8 NtGdiBRUSHOBJ_DeleteRbrush ENDP ; ULONG __stdcall NtGdiUnmapMemFont( ULONG arg_01 ); NtGdiUnmapMemFont PROC STDCALL arg_01:DWORD mov eax , 4760 mov edx , 7FFE0300h call dword ptr [edx] ret 4 NtGdiUnmapMemFont ENDP ; ULONG __stdcall NtGdiDrawStream( ULONG arg_01 , ULONG arg_02 , ULONG arg_03 ); NtGdiDrawStream PROC STDCALL arg_01:DWORD , arg_02:DWORD , arg_03:DWORD mov eax , 4761 mov edx , 7FFE0300h call dword ptr [edx] ret 12 NtGdiDrawStream ENDP
//===-- Unittests for fegetenv and fesetenv -------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "src/fenv/fegetenv.h" #include "src/fenv/fegetround.h" #include "src/fenv/fesetenv.h" #include "src/fenv/fesetround.h" #include "src/__support/FPUtil/FEnvImpl.h" #include "utils/UnitTest/Test.h" #include <fenv.h> TEST(LlvmLibcFenvTest, GetEnvAndSetEnv) { // We will disable all exceptions to prevent invocation of the exception // handler. __llvm_libc::fputil::disable_except(FE_ALL_EXCEPT); int excepts[] = {FE_DIVBYZERO, FE_INVALID, FE_INEXACT, FE_OVERFLOW, FE_UNDERFLOW}; for (int e : excepts) { __llvm_libc::fputil::clear_except(FE_ALL_EXCEPT); // Save the cleared environment. fenv_t env; ASSERT_EQ(__llvm_libc::fegetenv(&env), 0); __llvm_libc::fputil::raise_except(e); // Make sure that the exception is raised. ASSERT_NE(__llvm_libc::fputil::test_except(FE_ALL_EXCEPT) & e, 0); ASSERT_EQ(__llvm_libc::fesetenv(&env), 0); ASSERT_EQ(__llvm_libc::fputil::test_except(FE_ALL_EXCEPT) & e, 0); } } TEST(LlvmLibcFenvTest, Set_FE_DFL_ENV) { // We will disable all exceptions to prevent invocation of the exception // handler. __llvm_libc::fputil::disable_except(FE_ALL_EXCEPT); int excepts[] = {FE_DIVBYZERO, FE_INVALID, FE_INEXACT, FE_OVERFLOW, FE_UNDERFLOW}; for (int e : excepts) { __llvm_libc::fputil::clear_except(FE_ALL_EXCEPT); // Save the cleared environment. fenv_t env; ASSERT_EQ(__llvm_libc::fegetenv(&env), 0); __llvm_libc::fputil::raise_except(e); // Make sure that the exception is raised. ASSERT_NE(__llvm_libc::fputil::test_except(FE_ALL_EXCEPT) & e, 0); ASSERT_EQ(__llvm_libc::fesetenv(FE_DFL_ENV), 0); // Setting the default env should clear all exceptions. ASSERT_EQ(__llvm_libc::fputil::test_except(FE_ALL_EXCEPT) & e, 0); } ASSERT_EQ(__llvm_libc::fesetround(FE_DOWNWARD), 0); ASSERT_EQ(__llvm_libc::fesetenv(FE_DFL_ENV), 0); // Setting the default env should set rounding mode to FE_TONEAREST. int rm = __llvm_libc::fegetround(); EXPECT_EQ(rm, FE_TONEAREST); } #ifdef _WIN32 TEST(LlvmLibcFenvTest, Windows_Set_Get_Test) { // If a valid fenv_t is written, then reading it back out should be identical. fenv_t setEnv = {0x7e00053e, 0x0f00000f}; fenv_t getEnv; ASSERT_EQ(__llvm_libc::fesetenv(&setEnv), 0); ASSERT_EQ(__llvm_libc::fegetenv(&getEnv), 0); ASSERT_EQ(setEnv._Fe_ctl, getEnv._Fe_ctl); ASSERT_EQ(setEnv._Fe_stat, getEnv._Fe_stat); } #endif
#include "stlexam.h" #pragma hdrstop /************************************************************************** * * count.cpp - Example program for counting number of elements in container. * See Class Reference Section * *************************************************************************** * * (c) Copyright 1994, 1998 Rogue Wave Software, Inc. * ALL RIGHTS RESERVED * * The software and information contained herein are proprietary to, and * comprise valuable trade secrets of, Rogue Wave Software, Inc., which * intends to preserve as trade secrets such software and information. * This software is furnished pursuant to a written license agreement and * may be used, copied, transmitted, and stored only in accordance with * the terms of such license and with the inclusion of the above copyright * notice. This software and information or any other copies thereof may * not be provided or otherwise made available to any other person. * * Notwithstanding any other lease or license that may pertain to, or * accompany the delivery of, this computer software and information, the * rights of the Government regarding its use, reproduction and disclosure * are as set forth in Section 52.227-19 of the FARS Computer * Software-Restricted Rights clause. * * Use, duplication, or disclosure by the Government is subject to * restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in * Technical Data and Computer Software clause at DFARS 252.227-7013. * Contractor/Manufacturer is Rogue Wave Software, Inc., * P.O. Box 2328, Corvallis, Oregon 97339. * * This computer software and information is distributed with "restricted * rights." Use, duplication or disclosure is subject to restrictions as * set forth in NASA FAR SUP 18-52.227-79 (April 1985) "Commercial * Computer Software-Restricted Rights (April 1985)." If the Clause at * 18-52.227-74 "Rights in Data General" is specified in the contract, * then the "Alternate III" clause applies. * **************************************************************************/ #include <vector> #include <algorithm> #include <functional> #ifdef _RW_STD_IOSTREAM #include <iostream> #else #include <iostream.h> #endif int main () { #ifndef _RWSTD_NO_NAMESPACE using namespace std; #endif int sequence[10] = {1,2,3,4,5,5,7,8,9,10}; int i=0,j=0,k=0; // // Set up a vector. // vector<int,allocator<int> > v(sequence+0, sequence+10); count(v.begin(),v.end(),5,i); // Count fives count(v.begin(),v.end(),6,j); // Count sixes // // Count all less than 8. // count_if(v.begin(), v.end(), bind2nd(less<int>(),8),k); cout << i << " " << j << " " << k << endl; return 0; }
/* Copyright 2017 QReal Research Group * * 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. */ #include "pioneerSystemGenerator.h" #include <generatorBase/generatorCustomizer.h> #include <qrutils/stringUtils.h> using namespace pioneer::lua; using namespace generatorBase::simple; PioneerSystemGenerator::PioneerSystemGenerator(const qrRepo::RepoApi &repo , generatorBase::GeneratorCustomizer &customizer , const qReal::Id &id , QObject *parent) : BindingGenerator(repo, customizer, id , "nativeCode.t" , { Binding::createStatic("@@COMMAND@@" , utils::StringUtils::dequote(repo.property(id, "Command").toString())) } , parent) { }
; A180569: The Wiener index of the P_3 x P_n grid, where P_m is the path graph on m nodes. The Wiener index of a connected graph is the sum of distances between all unordered pairs of nodes in the graph. ; 4,25,72,154,280,459,700,1012,1404,1885,2464,3150,3952,4879,5940,7144,8500,10017,11704,13570,15624,17875,20332,23004,25900,29029,32400,36022,39904,44055,48484,53200,58212,63529,69160,75114,81400,88027,95004,102340,110044,118125,126592,135454,144720,154399,164500,175032,186004,197425,209304,221650,234472,247779,261580,275884,290700,306037,321904,338310,355264,372775,390852,409504,428740,448569,469000,490042,511704,533995,556924,580500,604732,629629,655200,681454,708400,736047,764404,793480,823284,853825,885112,917154,949960,983539,1017900,1053052,1089004,1125765,1163344,1201750,1240992,1281079,1322020,1363824,1406500,1450057,1494504,1539850,1586104,1633275,1681372,1730404,1780380,1831309,1883200,1936062,1989904,2044735,2100564,2157400,2215252,2274129,2334040,2394994,2457000,2520067,2584204,2649420,2715724,2783125,2851632,2921254,2992000,3063879,3136900,3211072,3286404,3362905,3440584,3519450,3599512,3680779,3763260,3846964,3931900,4018077,4105504,4194190,4284144,4375375,4467892,4561704,4656820,4753249,4851000,4950082,5050504,5152275,5255404,5359900,5465772,5573029,5681680,5791734,5903200,6016087,6130404,6246160,6363364,6482025,6602152,6723754,6846840,6971419,7097500,7225092,7354204,7484845,7617024,7750750,7886032,8022879,8161300,8301304,8442900,8586097,8730904,8877330,9025384,9175075,9326412,9479404,9634060,9790389,9948400,10108102,10269504,10432615,10597444,10764000,10932292,11102329,11274120,11447674,11623000,11800107,11979004,12159700,12342204,12526525,12712672,12900654,13090480,13282159,13475700,13671112,13868404,14067585,14268664,14471650,14676552,14883379,15092140,15302844,15515500,15730117,15946704,16165270,16385824,16608375,16832932,17059504,17288100,17518729,17751400,17986122,18222904,18461755,18702684,18945700,19190812,19438029,19687360,19938814,20192400,20448127,20706004,20966040,21228244,21492625,21759192,22027954,22298920,22572099,22847500,23125132,23405004,23687125 mov $2,$0 mov $4,$0 lpb $0,1 sub $0,1 add $1,5 mov $3,0 add $4,6 add $3,$4 add $2,$3 add $1,$2 lpe add $1,4 add $1,$2
TITLE BubbleSort Procedure (BubbleSort.asm) ; Sort an array of signed integers, using the Bubble ; sort algorithm. The main program is in BinarySearchTest.asm. INCLUDE Irvine32.inc .code ;---------------------------------------------------------- BubbleSort PROC USES eax ecx esi, pArray:PTR DWORD, ; pointer to array Count:DWORD ; array size ; ; Sort an array of 32-bit signed integers in ascending order ; using the bubble sort algorithm. ; Receives: pointer to array, array size ; Returns: nothing ;----------------------------------------------------------- mov ecx,Count dec ecx ; decrement count by 1 L1: push ecx ; save outer loop count mov esi,pArray ; point to first value L2: mov eax,[esi] ; get array value cmp [esi+4],eax ; compare a pair of values jge L3 ; if [esi] <= [edi], don't exch xchg eax,[esi+4] ; exchange the pair mov [esi],eax L3: add esi,4 ; move both pointers forward loop L2 ; inner loop pop ecx ; retrieve outer loop count loop L1 ; else repeat outer loop L4: ret BubbleSort ENDP END
[BITS 32] section .asm global paging_load_dir global asm_enable_paging extern log paging_load_dir: push ebp mov ebp, esp mov eax, [ebp+8] mov cr3, eax pop ebp ret asm_enable_paging: push ebp mov ebp, esp mov eax, cr0 or eax, 0x80000000 mov cr0, eax pop ebp ret
; A100493: a(n) = n + n-th semiprime. ; Submitted by Christian Krause ; 5,8,12,14,19,21,28,30,34,36,44,46,48,52,54,62,66,69,74,77,79,84,88,93,99,103,109,113,115,117,122,125,127,129,141,147,152,156,158,161,163,165,172,177,179,187,189,191,194,196,206,210,212,215,221,225,234,236,242,245,248,256,264,266,268,271,273,277,282,284,286,289,291,293,296,302,312,315,326,329,334,336,342,346,350,353,361,366,376,379,382,387,391,393,396,398,400,403,408,414 mov $1,$0 seq $1,88707 ; Semiprimes + 1. add $0,$1
%include "Common.asminc" %if BUILD_IS_SYSTEM_WINDOWS && BUILD_IS_PLATFORM_AMD64 %include "Windows-amd64/Window.asminc" %include "Windows-amd64/Logger.asminc" %include "Windows-amd64/LibC.asminc" %include "Windows-amd64/GLFW.asminc" extern AppLogger section .rdata GLFWErrorFormat: db "GLFW (%d) => %s", 0 section .data GlobalLabel WindowCount, { dq 0 } section .text StaticLabel GLFWErrorCallback ; ecx => errorCode, rdx => message mov r8, rcx mov r9, rdx lea rcx, [AppLogger] lea rdx, [GLFWErrorFormat] jmp LoggerLogError GlobalLabel WindowAlloc mov rcx, Window_size jmp malloc GlobalLabel WindowFree ; rcx => window jmp free GlobalLabel WindowCtor ; rcx => window, edx => width, r8d => height, r9 => title mov dword[rcx + Window.width], edx mov dword[rcx + Window.height], r8d mov qword[rcx + Window.title], r9 mov qword[rcx + Window.windowPtr], 0 ret GlobalLabel WindowDtor ; rcx => window cmp qword[rcx + Window.windowPtr], 0 je .exit jmp WindowDestroy .exit: ret GlobalLabel WindowCreate ; rcx => window cmp qword[rcx + Window.windowPtr], 0 je .continue ret .continue: mov [rsp + 8h], rcx sub rsp, 28h cmp qword[WindowCount], 0 jne .skipInit lea rcx, [GLFWErrorCallback] call glfwSetErrorCallback call glfwInit cmp rax, 0 je .exit .skipInit: call glfwDefaultWindowHints mov ecx, 22001h mov edx, 0 call glfwWindowHint mov ecx, 20003h mov edx, 1 call glfwWindowHint mov rax, [rsp + 28h + 8h] mov ecx, [rax + Window.width] mov edx, [rax + Window.height] mov r8, [rax + Window.title] mov r9, 0 mov qword[rsp + 20h], 0 call glfwCreateWindow cmp rax, 0 je .exit mov rcx, [rsp + 28h + 8h] mov [rcx + Window.windowPtr], rax add qword[WindowCount], 1 .exit: add rsp, 28h ret GlobalLabel WindowDestroy ; rcx => window cmp qword[rcx + Window.windowPtr], 0 jne .continue ret .continue: mov [rsp + 8h], rcx sub rsp, 28h mov rcx, [rcx + Window.windowPtr] call glfwDestroyWindow mov rcx, [rsp + 28h + 8h] mov qword[rcx + Window.windowPtr], 0 sub qword[WindowCount], 1 cmp qword[WindowCount], 0 jne .exit call glfwTerminate .exit: add rsp, 28h ret GlobalLabel WindowGetNative ; rcx => window mov rax, [rcx + Window.windowPtr] ret GlobalLabel WindowShouldClose ; rcx => window mov rcx, [rcx + Window.windowPtr] jmp glfwWindowShouldClose GlobalLabel WindowsUpdate jmp glfwPollEvents %endif
; COPYRIGHT (c) 1995,99,2002 XDS. All Rights Reserved. ; COPYRIGHT (c) 2002 Excelsior LLC. All Rights Reserved. ; Implementation for X2C_adr_lss and X2C-adr_gtr functions cpu 386 bits 32 %ifdef OS2 group DGROUP _DATA section _DATA use32 align=4 FLAT public 'DATA' %else group DGROUP _DATA section _DATA use32 align=4 public 'DATA' %endif %ifdef OS2 section .text use32 public align=4 FLAT public 'CODE' %else section .text use32 public align=16 public 'CODE' %endif ; assume cs: .text, ds: DGROUP, gs: nothing, fs: nothing ;PROCEDURE [2] X2C_adr_lss(x,y: SYSTEM.ADDRESS): BOOLEAN; global X2C_adr_lss X2C_adr_lss: mov eax, [esp+4] cmp eax, [esp+8] setb al ret ;X2C_adr_lss endp ;PROCEDURE [2] X2C_adr_gtr(x,y: SYSTEM.ADDRESS): BOOLEAN; global X2C_adr_gtr X2C_adr_gtr: mov eax, [esp+4] cmp eax, [esp+8] seta al ret ;X2C_adr_gtr endp
_kill: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char **argv) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 57 push %edi 4: 56 push %esi 5: 53 push %ebx int i; if(argc < 2){ 6: bb 01 00 00 00 mov $0x1,%ebx #include "stat.h" #include "user.h" int main(int argc, char **argv) { b: 83 e4 f0 and $0xfffffff0,%esp e: 83 ec 10 sub $0x10,%esp 11: 8b 75 08 mov 0x8(%ebp),%esi 14: 8b 7d 0c mov 0xc(%ebp),%edi int i; if(argc < 2){ 17: 83 fe 01 cmp $0x1,%esi 1a: 7e 23 jle 3f <main+0x3f> 1c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi printf(2, "usage: kill pid...\n"); exit(); } for(i=1; i<argc; i++) kill(atoi(argv[i])); 20: 8b 04 9f mov (%edi,%ebx,4),%eax if(argc < 2){ printf(2, "usage: kill pid...\n"); exit(); } for(i=1; i<argc; i++) 23: 83 c3 01 add $0x1,%ebx kill(atoi(argv[i])); 26: 89 04 24 mov %eax,(%esp) 29: e8 f2 01 00 00 call 220 <atoi> 2e: 89 04 24 mov %eax,(%esp) 31: e8 7c 02 00 00 call 2b2 <kill> if(argc < 2){ printf(2, "usage: kill pid...\n"); exit(); } for(i=1; i<argc; i++) 36: 39 f3 cmp %esi,%ebx 38: 75 e6 jne 20 <main+0x20> kill(atoi(argv[i])); exit(); 3a: e8 43 02 00 00 call 282 <exit> main(int argc, char **argv) { int i; if(argc < 2){ printf(2, "usage: kill pid...\n"); 3f: c7 44 24 04 66 07 00 movl $0x766,0x4(%esp) 46: 00 47: c7 04 24 02 00 00 00 movl $0x2,(%esp) 4e: e8 ad 03 00 00 call 400 <printf> exit(); 53: e8 2a 02 00 00 call 282 <exit> 58: 66 90 xchg %ax,%ax 5a: 66 90 xchg %ax,%ax 5c: 66 90 xchg %ax,%ax 5e: 66 90 xchg %ax,%ax 00000060 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 60: 55 push %ebp 61: 89 e5 mov %esp,%ebp 63: 8b 45 08 mov 0x8(%ebp),%eax 66: 8b 4d 0c mov 0xc(%ebp),%ecx 69: 53 push %ebx char *os; os = s; while((*s++ = *t++) != 0) 6a: 89 c2 mov %eax,%edx 6c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 70: 83 c1 01 add $0x1,%ecx 73: 0f b6 59 ff movzbl -0x1(%ecx),%ebx 77: 83 c2 01 add $0x1,%edx 7a: 84 db test %bl,%bl 7c: 88 5a ff mov %bl,-0x1(%edx) 7f: 75 ef jne 70 <strcpy+0x10> ; return os; } 81: 5b pop %ebx 82: 5d pop %ebp 83: c3 ret 84: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 8a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 00000090 <strcmp>: int strcmp(const char *p, const char *q) { 90: 55 push %ebp 91: 89 e5 mov %esp,%ebp 93: 8b 55 08 mov 0x8(%ebp),%edx 96: 53 push %ebx 97: 8b 4d 0c mov 0xc(%ebp),%ecx while(*p && *p == *q) 9a: 0f b6 02 movzbl (%edx),%eax 9d: 84 c0 test %al,%al 9f: 74 2d je ce <strcmp+0x3e> a1: 0f b6 19 movzbl (%ecx),%ebx a4: 38 d8 cmp %bl,%al a6: 74 0e je b6 <strcmp+0x26> a8: eb 2b jmp d5 <strcmp+0x45> aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi b0: 38 c8 cmp %cl,%al b2: 75 15 jne c9 <strcmp+0x39> p++, q++; b4: 89 d9 mov %ebx,%ecx b6: 83 c2 01 add $0x1,%edx } int strcmp(const char *p, const char *q) { while(*p && *p == *q) b9: 0f b6 02 movzbl (%edx),%eax p++, q++; bc: 8d 59 01 lea 0x1(%ecx),%ebx } int strcmp(const char *p, const char *q) { while(*p && *p == *q) bf: 0f b6 49 01 movzbl 0x1(%ecx),%ecx c3: 84 c0 test %al,%al c5: 75 e9 jne b0 <strcmp+0x20> c7: 31 c0 xor %eax,%eax p++, q++; return (uchar)*p - (uchar)*q; c9: 29 c8 sub %ecx,%eax } cb: 5b pop %ebx cc: 5d pop %ebp cd: c3 ret ce: 0f b6 09 movzbl (%ecx),%ecx } int strcmp(const char *p, const char *q) { while(*p && *p == *q) d1: 31 c0 xor %eax,%eax d3: eb f4 jmp c9 <strcmp+0x39> d5: 0f b6 cb movzbl %bl,%ecx d8: eb ef jmp c9 <strcmp+0x39> da: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 000000e0 <strlen>: return (uchar)*p - (uchar)*q; } uint strlen(char *s) { e0: 55 push %ebp e1: 89 e5 mov %esp,%ebp e3: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) e6: 80 39 00 cmpb $0x0,(%ecx) e9: 74 12 je fd <strlen+0x1d> eb: 31 d2 xor %edx,%edx ed: 8d 76 00 lea 0x0(%esi),%esi f0: 83 c2 01 add $0x1,%edx f3: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) f7: 89 d0 mov %edx,%eax f9: 75 f5 jne f0 <strlen+0x10> ; return n; } fb: 5d pop %ebp fc: c3 ret uint strlen(char *s) { int n; for(n = 0; s[n]; n++) fd: 31 c0 xor %eax,%eax ; return n; } ff: 5d pop %ebp 100: c3 ret 101: eb 0d jmp 110 <memset> 103: 90 nop 104: 90 nop 105: 90 nop 106: 90 nop 107: 90 nop 108: 90 nop 109: 90 nop 10a: 90 nop 10b: 90 nop 10c: 90 nop 10d: 90 nop 10e: 90 nop 10f: 90 nop 00000110 <memset>: void* memset(void *dst, int c, uint n) { 110: 55 push %ebp 111: 89 e5 mov %esp,%ebp 113: 8b 55 08 mov 0x8(%ebp),%edx 116: 57 push %edi } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 117: 8b 4d 10 mov 0x10(%ebp),%ecx 11a: 8b 45 0c mov 0xc(%ebp),%eax 11d: 89 d7 mov %edx,%edi 11f: fc cld 120: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 122: 89 d0 mov %edx,%eax 124: 5f pop %edi 125: 5d pop %ebp 126: c3 ret 127: 89 f6 mov %esi,%esi 129: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000130 <strchr>: char* strchr(const char *s, char c) { 130: 55 push %ebp 131: 89 e5 mov %esp,%ebp 133: 8b 45 08 mov 0x8(%ebp),%eax 136: 53 push %ebx 137: 8b 55 0c mov 0xc(%ebp),%edx for(; *s; s++) 13a: 0f b6 18 movzbl (%eax),%ebx 13d: 84 db test %bl,%bl 13f: 74 1d je 15e <strchr+0x2e> if(*s == c) 141: 38 d3 cmp %dl,%bl 143: 89 d1 mov %edx,%ecx 145: 75 0d jne 154 <strchr+0x24> 147: eb 17 jmp 160 <strchr+0x30> 149: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 150: 38 ca cmp %cl,%dl 152: 74 0c je 160 <strchr+0x30> } char* strchr(const char *s, char c) { for(; *s; s++) 154: 83 c0 01 add $0x1,%eax 157: 0f b6 10 movzbl (%eax),%edx 15a: 84 d2 test %dl,%dl 15c: 75 f2 jne 150 <strchr+0x20> if(*s == c) return (char*)s; return 0; 15e: 31 c0 xor %eax,%eax } 160: 5b pop %ebx 161: 5d pop %ebp 162: c3 ret 163: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 169: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000170 <gets>: char* gets(char *buf, int max) { 170: 55 push %ebp 171: 89 e5 mov %esp,%ebp 173: 57 push %edi 174: 56 push %esi int i, cc; char c; for(i=0; i+1 < max; ){ 175: 31 f6 xor %esi,%esi return 0; } char* gets(char *buf, int max) { 177: 53 push %ebx 178: 83 ec 2c sub $0x2c,%esp int i, cc; char c; for(i=0; i+1 < max; ){ cc = read(0, &c, 1); 17b: 8d 7d e7 lea -0x19(%ebp),%edi gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 17e: eb 31 jmp 1b1 <gets+0x41> cc = read(0, &c, 1); 180: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 187: 00 188: 89 7c 24 04 mov %edi,0x4(%esp) 18c: c7 04 24 00 00 00 00 movl $0x0,(%esp) 193: e8 02 01 00 00 call 29a <read> if(cc < 1) 198: 85 c0 test %eax,%eax 19a: 7e 1d jle 1b9 <gets+0x49> break; buf[i++] = c; 19c: 0f b6 45 e7 movzbl -0x19(%ebp),%eax gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 1a0: 89 de mov %ebx,%esi cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; 1a2: 8b 55 08 mov 0x8(%ebp),%edx if(c == '\n' || c == '\r') 1a5: 3c 0d cmp $0xd,%al for(i=0; i+1 < max; ){ cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; 1a7: 88 44 1a ff mov %al,-0x1(%edx,%ebx,1) if(c == '\n' || c == '\r') 1ab: 74 0c je 1b9 <gets+0x49> 1ad: 3c 0a cmp $0xa,%al 1af: 74 08 je 1b9 <gets+0x49> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 1b1: 8d 5e 01 lea 0x1(%esi),%ebx 1b4: 3b 5d 0c cmp 0xc(%ebp),%ebx 1b7: 7c c7 jl 180 <gets+0x10> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 1b9: 8b 45 08 mov 0x8(%ebp),%eax 1bc: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 1c0: 83 c4 2c add $0x2c,%esp 1c3: 5b pop %ebx 1c4: 5e pop %esi 1c5: 5f pop %edi 1c6: 5d pop %ebp 1c7: c3 ret 1c8: 90 nop 1c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 000001d0 <stat>: int stat(char *n, struct stat *st) { 1d0: 55 push %ebp 1d1: 89 e5 mov %esp,%ebp 1d3: 56 push %esi 1d4: 53 push %ebx 1d5: 83 ec 10 sub $0x10,%esp int fd; int r; fd = open(n, O_RDONLY); 1d8: 8b 45 08 mov 0x8(%ebp),%eax 1db: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp) 1e2: 00 1e3: 89 04 24 mov %eax,(%esp) 1e6: e8 d7 00 00 00 call 2c2 <open> if(fd < 0) 1eb: 85 c0 test %eax,%eax stat(char *n, struct stat *st) { int fd; int r; fd = open(n, O_RDONLY); 1ed: 89 c3 mov %eax,%ebx if(fd < 0) 1ef: 78 27 js 218 <stat+0x48> return -1; r = fstat(fd, st); 1f1: 8b 45 0c mov 0xc(%ebp),%eax 1f4: 89 1c 24 mov %ebx,(%esp) 1f7: 89 44 24 04 mov %eax,0x4(%esp) 1fb: e8 da 00 00 00 call 2da <fstat> close(fd); 200: 89 1c 24 mov %ebx,(%esp) int r; fd = open(n, O_RDONLY); if(fd < 0) return -1; r = fstat(fd, st); 203: 89 c6 mov %eax,%esi close(fd); 205: e8 a0 00 00 00 call 2aa <close> return r; 20a: 89 f0 mov %esi,%eax } 20c: 83 c4 10 add $0x10,%esp 20f: 5b pop %ebx 210: 5e pop %esi 211: 5d pop %ebp 212: c3 ret 213: 90 nop 214: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi int fd; int r; fd = open(n, O_RDONLY); if(fd < 0) return -1; 218: b8 ff ff ff ff mov $0xffffffff,%eax 21d: eb ed jmp 20c <stat+0x3c> 21f: 90 nop 00000220 <atoi>: return r; } int atoi(const char *s) { 220: 55 push %ebp 221: 89 e5 mov %esp,%ebp 223: 8b 4d 08 mov 0x8(%ebp),%ecx 226: 53 push %ebx int n; n = 0; while('0' <= *s && *s <= '9') 227: 0f be 11 movsbl (%ecx),%edx 22a: 8d 42 d0 lea -0x30(%edx),%eax 22d: 3c 09 cmp $0x9,%al int atoi(const char *s) { int n; n = 0; 22f: b8 00 00 00 00 mov $0x0,%eax while('0' <= *s && *s <= '9') 234: 77 17 ja 24d <atoi+0x2d> 236: 66 90 xchg %ax,%ax n = n*10 + *s++ - '0'; 238: 83 c1 01 add $0x1,%ecx 23b: 8d 04 80 lea (%eax,%eax,4),%eax 23e: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 242: 0f be 11 movsbl (%ecx),%edx 245: 8d 5a d0 lea -0x30(%edx),%ebx 248: 80 fb 09 cmp $0x9,%bl 24b: 76 eb jbe 238 <atoi+0x18> n = n*10 + *s++ - '0'; return n; } 24d: 5b pop %ebx 24e: 5d pop %ebp 24f: c3 ret 00000250 <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 250: 55 push %ebp char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 251: 31 d2 xor %edx,%edx return n; } void* memmove(void *vdst, void *vsrc, int n) { 253: 89 e5 mov %esp,%ebp 255: 56 push %esi 256: 8b 45 08 mov 0x8(%ebp),%eax 259: 53 push %ebx 25a: 8b 5d 10 mov 0x10(%ebp),%ebx 25d: 8b 75 0c mov 0xc(%ebp),%esi char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 260: 85 db test %ebx,%ebx 262: 7e 12 jle 276 <memmove+0x26> 264: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi *dst++ = *src++; 268: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx 26c: 88 0c 10 mov %cl,(%eax,%edx,1) 26f: 83 c2 01 add $0x1,%edx { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 272: 39 da cmp %ebx,%edx 274: 75 f2 jne 268 <memmove+0x18> *dst++ = *src++; return vdst; } 276: 5b pop %ebx 277: 5e pop %esi 278: 5d pop %ebp 279: c3 ret 0000027a <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 27a: b8 01 00 00 00 mov $0x1,%eax 27f: cd 40 int $0x40 281: c3 ret 00000282 <exit>: SYSCALL(exit) 282: b8 02 00 00 00 mov $0x2,%eax 287: cd 40 int $0x40 289: c3 ret 0000028a <wait>: SYSCALL(wait) 28a: b8 03 00 00 00 mov $0x3,%eax 28f: cd 40 int $0x40 291: c3 ret 00000292 <pipe>: SYSCALL(pipe) 292: b8 04 00 00 00 mov $0x4,%eax 297: cd 40 int $0x40 299: c3 ret 0000029a <read>: SYSCALL(read) 29a: b8 05 00 00 00 mov $0x5,%eax 29f: cd 40 int $0x40 2a1: c3 ret 000002a2 <write>: SYSCALL(write) 2a2: b8 10 00 00 00 mov $0x10,%eax 2a7: cd 40 int $0x40 2a9: c3 ret 000002aa <close>: SYSCALL(close) 2aa: b8 15 00 00 00 mov $0x15,%eax 2af: cd 40 int $0x40 2b1: c3 ret 000002b2 <kill>: SYSCALL(kill) 2b2: b8 06 00 00 00 mov $0x6,%eax 2b7: cd 40 int $0x40 2b9: c3 ret 000002ba <exec>: SYSCALL(exec) 2ba: b8 07 00 00 00 mov $0x7,%eax 2bf: cd 40 int $0x40 2c1: c3 ret 000002c2 <open>: SYSCALL(open) 2c2: b8 0f 00 00 00 mov $0xf,%eax 2c7: cd 40 int $0x40 2c9: c3 ret 000002ca <mknod>: SYSCALL(mknod) 2ca: b8 11 00 00 00 mov $0x11,%eax 2cf: cd 40 int $0x40 2d1: c3 ret 000002d2 <unlink>: SYSCALL(unlink) 2d2: b8 12 00 00 00 mov $0x12,%eax 2d7: cd 40 int $0x40 2d9: c3 ret 000002da <fstat>: SYSCALL(fstat) 2da: b8 08 00 00 00 mov $0x8,%eax 2df: cd 40 int $0x40 2e1: c3 ret 000002e2 <link>: SYSCALL(link) 2e2: b8 13 00 00 00 mov $0x13,%eax 2e7: cd 40 int $0x40 2e9: c3 ret 000002ea <mkdir>: SYSCALL(mkdir) 2ea: b8 14 00 00 00 mov $0x14,%eax 2ef: cd 40 int $0x40 2f1: c3 ret 000002f2 <chdir>: SYSCALL(chdir) 2f2: b8 09 00 00 00 mov $0x9,%eax 2f7: cd 40 int $0x40 2f9: c3 ret 000002fa <dup>: SYSCALL(dup) 2fa: b8 0a 00 00 00 mov $0xa,%eax 2ff: cd 40 int $0x40 301: c3 ret 00000302 <getpid>: SYSCALL(getpid) 302: b8 0b 00 00 00 mov $0xb,%eax 307: cd 40 int $0x40 309: c3 ret 0000030a <sbrk>: SYSCALL(sbrk) 30a: b8 0c 00 00 00 mov $0xc,%eax 30f: cd 40 int $0x40 311: c3 ret 00000312 <sleep>: SYSCALL(sleep) 312: b8 0d 00 00 00 mov $0xd,%eax 317: cd 40 int $0x40 319: c3 ret 0000031a <uptime>: SYSCALL(uptime) 31a: b8 0e 00 00 00 mov $0xe,%eax 31f: cd 40 int $0x40 321: c3 ret 00000322 <myMemory>: SYSCALL(myMemory) 322: b8 16 00 00 00 mov $0x16,%eax 327: cd 40 int $0x40 329: c3 ret 0000032a <inodeTBWalker>: SYSCALL(inodeTBWalker) 32a: b8 17 00 00 00 mov $0x17,%eax 32f: cd 40 int $0x40 331: c3 ret 00000332 <deleteIData>: SYSCALL(deleteIData) 332: b8 18 00 00 00 mov $0x18,%eax 337: cd 40 int $0x40 339: c3 ret 0000033a <directoryWalker>: SYSCALL(directoryWalker) 33a: b8 19 00 00 00 mov $0x19,%eax 33f: cd 40 int $0x40 341: c3 ret 00000342 <compareWalkers>: SYSCALL(compareWalkers) 342: b8 1a 00 00 00 mov $0x1a,%eax 347: cd 40 int $0x40 349: c3 ret 0000034a <recoverFS>: SYSCALL(recoverFS) 34a: b8 1b 00 00 00 mov $0x1b,%eax 34f: cd 40 int $0x40 351: c3 ret 352: 66 90 xchg %ax,%ax 354: 66 90 xchg %ax,%ax 356: 66 90 xchg %ax,%ax 358: 66 90 xchg %ax,%ax 35a: 66 90 xchg %ax,%ax 35c: 66 90 xchg %ax,%ax 35e: 66 90 xchg %ax,%ax 00000360 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 360: 55 push %ebp 361: 89 e5 mov %esp,%ebp 363: 57 push %edi 364: 56 push %esi 365: 89 c6 mov %eax,%esi 367: 53 push %ebx 368: 83 ec 4c sub $0x4c,%esp char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 36b: 8b 5d 08 mov 0x8(%ebp),%ebx 36e: 85 db test %ebx,%ebx 370: 74 09 je 37b <printint+0x1b> 372: 89 d0 mov %edx,%eax 374: c1 e8 1f shr $0x1f,%eax 377: 84 c0 test %al,%al 379: 75 75 jne 3f0 <printint+0x90> neg = 1; x = -xx; } else { x = xx; 37b: 89 d0 mov %edx,%eax static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 37d: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) 384: 89 75 c0 mov %esi,-0x40(%ebp) x = -xx; } else { x = xx; } i = 0; 387: 31 ff xor %edi,%edi 389: 89 ce mov %ecx,%esi 38b: 8d 5d d7 lea -0x29(%ebp),%ebx 38e: eb 02 jmp 392 <printint+0x32> do{ buf[i++] = digits[x % base]; 390: 89 cf mov %ecx,%edi 392: 31 d2 xor %edx,%edx 394: f7 f6 div %esi 396: 8d 4f 01 lea 0x1(%edi),%ecx 399: 0f b6 92 81 07 00 00 movzbl 0x781(%edx),%edx }while((x /= base) != 0); 3a0: 85 c0 test %eax,%eax x = xx; } i = 0; do{ buf[i++] = digits[x % base]; 3a2: 88 14 0b mov %dl,(%ebx,%ecx,1) }while((x /= base) != 0); 3a5: 75 e9 jne 390 <printint+0x30> if(neg) 3a7: 8b 55 c4 mov -0x3c(%ebp),%edx x = xx; } i = 0; do{ buf[i++] = digits[x % base]; 3aa: 89 c8 mov %ecx,%eax 3ac: 8b 75 c0 mov -0x40(%ebp),%esi }while((x /= base) != 0); if(neg) 3af: 85 d2 test %edx,%edx 3b1: 74 08 je 3bb <printint+0x5b> buf[i++] = '-'; 3b3: 8d 4f 02 lea 0x2(%edi),%ecx 3b6: c6 44 05 d8 2d movb $0x2d,-0x28(%ebp,%eax,1) while(--i >= 0) 3bb: 8d 79 ff lea -0x1(%ecx),%edi 3be: 66 90 xchg %ax,%ax 3c0: 0f b6 44 3d d8 movzbl -0x28(%ebp,%edi,1),%eax 3c5: 83 ef 01 sub $0x1,%edi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 3c8: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 3cf: 00 3d0: 89 5c 24 04 mov %ebx,0x4(%esp) 3d4: 89 34 24 mov %esi,(%esp) 3d7: 88 45 d7 mov %al,-0x29(%ebp) 3da: e8 c3 fe ff ff call 2a2 <write> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 3df: 83 ff ff cmp $0xffffffff,%edi 3e2: 75 dc jne 3c0 <printint+0x60> putc(fd, buf[i]); } 3e4: 83 c4 4c add $0x4c,%esp 3e7: 5b pop %ebx 3e8: 5e pop %esi 3e9: 5f pop %edi 3ea: 5d pop %ebp 3eb: c3 ret 3ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi uint x; neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; 3f0: 89 d0 mov %edx,%eax 3f2: f7 d8 neg %eax int i, neg; uint x; neg = 0; if(sgn && xx < 0){ neg = 1; 3f4: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) 3fb: eb 87 jmp 384 <printint+0x24> 3fd: 8d 76 00 lea 0x0(%esi),%esi 00000400 <printf>: } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 400: 55 push %ebp 401: 89 e5 mov %esp,%ebp 403: 57 push %edi char *s; int c, i, state; uint *ap; state = 0; 404: 31 ff xor %edi,%edi } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 406: 56 push %esi 407: 53 push %ebx 408: 83 ec 3c sub $0x3c,%esp int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 40b: 8b 5d 0c mov 0xc(%ebp),%ebx char *s; int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; 40e: 8d 45 10 lea 0x10(%ebp),%eax } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 411: 8b 75 08 mov 0x8(%ebp),%esi char *s; int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; 414: 89 45 d4 mov %eax,-0x2c(%ebp) for(i = 0; fmt[i]; i++){ 417: 0f b6 13 movzbl (%ebx),%edx 41a: 83 c3 01 add $0x1,%ebx 41d: 84 d2 test %dl,%dl 41f: 75 39 jne 45a <printf+0x5a> 421: e9 c2 00 00 00 jmp 4e8 <printf+0xe8> 426: 66 90 xchg %ax,%ax c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 428: 83 fa 25 cmp $0x25,%edx 42b: 0f 84 bf 00 00 00 je 4f0 <printf+0xf0> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 431: 8d 45 e2 lea -0x1e(%ebp),%eax 434: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 43b: 00 43c: 89 44 24 04 mov %eax,0x4(%esp) 440: 89 34 24 mov %esi,(%esp) c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ state = '%'; } else { putc(fd, c); 443: 88 55 e2 mov %dl,-0x1e(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 446: e8 57 fe ff ff call 2a2 <write> 44b: 83 c3 01 add $0x1,%ebx int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 44e: 0f b6 53 ff movzbl -0x1(%ebx),%edx 452: 84 d2 test %dl,%dl 454: 0f 84 8e 00 00 00 je 4e8 <printf+0xe8> c = fmt[i] & 0xff; if(state == 0){ 45a: 85 ff test %edi,%edi uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; 45c: 0f be c2 movsbl %dl,%eax if(state == 0){ 45f: 74 c7 je 428 <printf+0x28> if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 461: 83 ff 25 cmp $0x25,%edi 464: 75 e5 jne 44b <printf+0x4b> if(c == 'd'){ 466: 83 fa 64 cmp $0x64,%edx 469: 0f 84 31 01 00 00 je 5a0 <printf+0x1a0> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 46f: 25 f7 00 00 00 and $0xf7,%eax 474: 83 f8 70 cmp $0x70,%eax 477: 0f 84 83 00 00 00 je 500 <printf+0x100> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 47d: 83 fa 73 cmp $0x73,%edx 480: 0f 84 a2 00 00 00 je 528 <printf+0x128> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 486: 83 fa 63 cmp $0x63,%edx 489: 0f 84 35 01 00 00 je 5c4 <printf+0x1c4> putc(fd, *ap); ap++; } else if(c == '%'){ 48f: 83 fa 25 cmp $0x25,%edx 492: 0f 84 e0 00 00 00 je 578 <printf+0x178> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 498: 8d 45 e6 lea -0x1a(%ebp),%eax 49b: 83 c3 01 add $0x1,%ebx 49e: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 4a5: 00 } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 4a6: 31 ff xor %edi,%edi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 4a8: 89 44 24 04 mov %eax,0x4(%esp) 4ac: 89 34 24 mov %esi,(%esp) 4af: 89 55 d0 mov %edx,-0x30(%ebp) 4b2: c6 45 e6 25 movb $0x25,-0x1a(%ebp) 4b6: e8 e7 fd ff ff call 2a2 <write> } else if(c == '%'){ putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); 4bb: 8b 55 d0 mov -0x30(%ebp),%edx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 4be: 8d 45 e7 lea -0x19(%ebp),%eax 4c1: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 4c8: 00 4c9: 89 44 24 04 mov %eax,0x4(%esp) 4cd: 89 34 24 mov %esi,(%esp) } else if(c == '%'){ putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); 4d0: 88 55 e7 mov %dl,-0x19(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 4d3: e8 ca fd ff ff call 2a2 <write> int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 4d8: 0f b6 53 ff movzbl -0x1(%ebx),%edx 4dc: 84 d2 test %dl,%dl 4de: 0f 85 76 ff ff ff jne 45a <printf+0x5a> 4e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi putc(fd, c); } state = 0; } } } 4e8: 83 c4 3c add $0x3c,%esp 4eb: 5b pop %ebx 4ec: 5e pop %esi 4ed: 5f pop %edi 4ee: 5d pop %ebp 4ef: c3 ret ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ state = '%'; 4f0: bf 25 00 00 00 mov $0x25,%edi 4f5: e9 51 ff ff ff jmp 44b <printf+0x4b> 4fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); 500: 8b 45 d4 mov -0x2c(%ebp),%eax 503: b9 10 00 00 00 mov $0x10,%ecx } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 508: 31 ff xor %edi,%edi } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); 50a: c7 04 24 00 00 00 00 movl $0x0,(%esp) 511: 8b 10 mov (%eax),%edx 513: 89 f0 mov %esi,%eax 515: e8 46 fe ff ff call 360 <printint> ap++; 51a: 83 45 d4 04 addl $0x4,-0x2c(%ebp) 51e: e9 28 ff ff ff jmp 44b <printf+0x4b> 523: 90 nop 524: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } else if(c == 's'){ s = (char*)*ap; 528: 8b 45 d4 mov -0x2c(%ebp),%eax ap++; 52b: 83 45 d4 04 addl $0x4,-0x2c(%ebp) ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ s = (char*)*ap; 52f: 8b 38 mov (%eax),%edi ap++; if(s == 0) s = "(null)"; 531: b8 7a 07 00 00 mov $0x77a,%eax 536: 85 ff test %edi,%edi 538: 0f 44 f8 cmove %eax,%edi while(*s != 0){ 53b: 0f b6 07 movzbl (%edi),%eax 53e: 84 c0 test %al,%al 540: 74 2a je 56c <printf+0x16c> 542: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 548: 88 45 e3 mov %al,-0x1d(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 54b: 8d 45 e3 lea -0x1d(%ebp),%eax ap++; if(s == 0) s = "(null)"; while(*s != 0){ putc(fd, *s); s++; 54e: 83 c7 01 add $0x1,%edi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 551: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 558: 00 559: 89 44 24 04 mov %eax,0x4(%esp) 55d: 89 34 24 mov %esi,(%esp) 560: e8 3d fd ff ff call 2a2 <write> } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 565: 0f b6 07 movzbl (%edi),%eax 568: 84 c0 test %al,%al 56a: 75 dc jne 548 <printf+0x148> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 56c: 31 ff xor %edi,%edi 56e: e9 d8 fe ff ff jmp 44b <printf+0x4b> 573: 90 nop 574: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 578: 8d 45 e5 lea -0x1b(%ebp),%eax } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 57b: 31 ff xor %edi,%edi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 57d: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 584: 00 585: 89 44 24 04 mov %eax,0x4(%esp) 589: 89 34 24 mov %esi,(%esp) 58c: c6 45 e5 25 movb $0x25,-0x1b(%ebp) 590: e8 0d fd ff ff call 2a2 <write> 595: e9 b1 fe ff ff jmp 44b <printf+0x4b> 59a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi } else { putc(fd, c); } } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); 5a0: 8b 45 d4 mov -0x2c(%ebp),%eax 5a3: b9 0a 00 00 00 mov $0xa,%ecx } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 5a8: 66 31 ff xor %di,%di } else { putc(fd, c); } } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); 5ab: c7 04 24 01 00 00 00 movl $0x1,(%esp) 5b2: 8b 10 mov (%eax),%edx 5b4: 89 f0 mov %esi,%eax 5b6: e8 a5 fd ff ff call 360 <printint> ap++; 5bb: 83 45 d4 04 addl $0x4,-0x2c(%ebp) 5bf: e9 87 fe ff ff jmp 44b <printf+0x4b> while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ putc(fd, *ap); 5c4: 8b 45 d4 mov -0x2c(%ebp),%eax } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 5c7: 31 ff xor %edi,%edi while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ putc(fd, *ap); 5c9: 8b 00 mov (%eax),%eax #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 5cb: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp) 5d2: 00 5d3: 89 34 24 mov %esi,(%esp) while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ putc(fd, *ap); 5d6: 88 45 e4 mov %al,-0x1c(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 5d9: 8d 45 e4 lea -0x1c(%ebp),%eax 5dc: 89 44 24 04 mov %eax,0x4(%esp) 5e0: e8 bd fc ff ff call 2a2 <write> putc(fd, *s); s++; } } else if(c == 'c'){ putc(fd, *ap); ap++; 5e5: 83 45 d4 04 addl $0x4,-0x2c(%ebp) 5e9: e9 5d fe ff ff jmp 44b <printf+0x4b> 5ee: 66 90 xchg %ax,%ax 000005f0 <free>: static Header base; static Header *freep; void free(void *ap) { 5f0: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 5f1: a1 fc 09 00 00 mov 0x9fc,%eax static Header base; static Header *freep; void free(void *ap) { 5f6: 89 e5 mov %esp,%ebp 5f8: 57 push %edi 5f9: 56 push %esi 5fa: 53 push %ebx 5fb: 8b 5d 08 mov 0x8(%ebp),%ebx Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 5fe: 8b 08 mov (%eax),%ecx void free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; 600: 8d 53 f8 lea -0x8(%ebx),%edx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 603: 39 d0 cmp %edx,%eax 605: 72 11 jb 618 <free+0x28> 607: 90 nop if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 608: 39 c8 cmp %ecx,%eax 60a: 72 04 jb 610 <free+0x20> 60c: 39 ca cmp %ecx,%edx 60e: 72 10 jb 620 <free+0x30> 610: 89 c8 mov %ecx,%eax free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 612: 39 d0 cmp %edx,%eax if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 614: 8b 08 mov (%eax),%ecx free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 616: 73 f0 jae 608 <free+0x18> 618: 39 ca cmp %ecx,%edx 61a: 72 04 jb 620 <free+0x30> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 61c: 39 c8 cmp %ecx,%eax 61e: 72 f0 jb 610 <free+0x20> break; if(bp + bp->s.size == p->s.ptr){ 620: 8b 73 fc mov -0x4(%ebx),%esi 623: 8d 3c f2 lea (%edx,%esi,8),%edi 626: 39 cf cmp %ecx,%edi 628: 74 1e je 648 <free+0x58> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 62a: 89 4b f8 mov %ecx,-0x8(%ebx) if(p + p->s.size == bp){ 62d: 8b 48 04 mov 0x4(%eax),%ecx 630: 8d 34 c8 lea (%eax,%ecx,8),%esi 633: 39 f2 cmp %esi,%edx 635: 74 28 je 65f <free+0x6f> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 637: 89 10 mov %edx,(%eax) freep = p; 639: a3 fc 09 00 00 mov %eax,0x9fc } 63e: 5b pop %ebx 63f: 5e pop %esi 640: 5f pop %edi 641: 5d pop %ebp 642: c3 ret 643: 90 nop 644: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ bp->s.size += p->s.ptr->s.size; 648: 03 71 04 add 0x4(%ecx),%esi 64b: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 64e: 8b 08 mov (%eax),%ecx 650: 8b 09 mov (%ecx),%ecx 652: 89 4b f8 mov %ecx,-0x8(%ebx) } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ 655: 8b 48 04 mov 0x4(%eax),%ecx 658: 8d 34 c8 lea (%eax,%ecx,8),%esi 65b: 39 f2 cmp %esi,%edx 65d: 75 d8 jne 637 <free+0x47> p->s.size += bp->s.size; 65f: 03 4b fc add -0x4(%ebx),%ecx p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; freep = p; 662: a3 fc 09 00 00 mov %eax,0x9fc bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ p->s.size += bp->s.size; 667: 89 48 04 mov %ecx,0x4(%eax) p->s.ptr = bp->s.ptr; 66a: 8b 53 f8 mov -0x8(%ebx),%edx 66d: 89 10 mov %edx,(%eax) } else p->s.ptr = bp; freep = p; } 66f: 5b pop %ebx 670: 5e pop %esi 671: 5f pop %edi 672: 5d pop %ebp 673: c3 ret 674: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 67a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 00000680 <malloc>: return freep; } void* malloc(uint nbytes) { 680: 55 push %ebp 681: 89 e5 mov %esp,%ebp 683: 57 push %edi 684: 56 push %esi 685: 53 push %ebx 686: 83 ec 1c sub $0x1c,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 689: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 68c: 8b 1d fc 09 00 00 mov 0x9fc,%ebx malloc(uint nbytes) { Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 692: 8d 48 07 lea 0x7(%eax),%ecx 695: c1 e9 03 shr $0x3,%ecx if((prevp = freep) == 0){ 698: 85 db test %ebx,%ebx malloc(uint nbytes) { Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 69a: 8d 71 01 lea 0x1(%ecx),%esi if((prevp = freep) == 0){ 69d: 0f 84 9b 00 00 00 je 73e <malloc+0xbe> 6a3: 8b 13 mov (%ebx),%edx 6a5: 8b 7a 04 mov 0x4(%edx),%edi base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ 6a8: 39 fe cmp %edi,%esi 6aa: 76 64 jbe 710 <malloc+0x90> 6ac: 8d 04 f5 00 00 00 00 lea 0x0(,%esi,8),%eax morecore(uint nu) { char *p; Header *hp; if(nu < 4096) 6b3: bb 00 80 00 00 mov $0x8000,%ebx 6b8: 89 45 e4 mov %eax,-0x1c(%ebp) 6bb: eb 0e jmp 6cb <malloc+0x4b> 6bd: 8d 76 00 lea 0x0(%esi),%esi 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){ 6c0: 8b 02 mov (%edx),%eax if(p->s.size >= nunits){ 6c2: 8b 78 04 mov 0x4(%eax),%edi 6c5: 39 fe cmp %edi,%esi 6c7: 76 4f jbe 718 <malloc+0x98> 6c9: 89 c2 mov %eax,%edx p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 6cb: 3b 15 fc 09 00 00 cmp 0x9fc,%edx 6d1: 75 ed jne 6c0 <malloc+0x40> morecore(uint nu) { char *p; Header *hp; if(nu < 4096) 6d3: 8b 45 e4 mov -0x1c(%ebp),%eax 6d6: 81 fe 00 10 00 00 cmp $0x1000,%esi 6dc: bf 00 10 00 00 mov $0x1000,%edi 6e1: 0f 43 fe cmovae %esi,%edi 6e4: 0f 42 c3 cmovb %ebx,%eax nu = 4096; p = sbrk(nu * sizeof(Header)); 6e7: 89 04 24 mov %eax,(%esp) 6ea: e8 1b fc ff ff call 30a <sbrk> if(p == (char*)-1) 6ef: 83 f8 ff cmp $0xffffffff,%eax 6f2: 74 18 je 70c <malloc+0x8c> return 0; hp = (Header*)p; hp->s.size = nu; 6f4: 89 78 04 mov %edi,0x4(%eax) free((void*)(hp + 1)); 6f7: 83 c0 08 add $0x8,%eax 6fa: 89 04 24 mov %eax,(%esp) 6fd: e8 ee fe ff ff call 5f0 <free> return freep; 702: 8b 15 fc 09 00 00 mov 0x9fc,%edx } freep = prevp; return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) 708: 85 d2 test %edx,%edx 70a: 75 b4 jne 6c0 <malloc+0x40> return 0; 70c: 31 c0 xor %eax,%eax 70e: eb 20 jmp 730 <malloc+0xb0> 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){ if(p->s.size >= nunits){ 710: 89 d0 mov %edx,%eax 712: 89 da mov %ebx,%edx 714: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(p->s.size == nunits) 718: 39 fe cmp %edi,%esi 71a: 74 1c je 738 <malloc+0xb8> prevp->s.ptr = p->s.ptr; else { p->s.size -= nunits; 71c: 29 f7 sub %esi,%edi 71e: 89 78 04 mov %edi,0x4(%eax) p += p->s.size; 721: 8d 04 f8 lea (%eax,%edi,8),%eax p->s.size = nunits; 724: 89 70 04 mov %esi,0x4(%eax) } freep = prevp; 727: 89 15 fc 09 00 00 mov %edx,0x9fc return (void*)(p + 1); 72d: 83 c0 08 add $0x8,%eax } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } } 730: 83 c4 1c add $0x1c,%esp 733: 5b pop %ebx 734: 5e pop %esi 735: 5f pop %edi 736: 5d pop %ebp 737: c3 ret base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ if(p->s.size == nunits) prevp->s.ptr = p->s.ptr; 738: 8b 08 mov (%eax),%ecx 73a: 89 0a mov %ecx,(%edx) 73c: eb e9 jmp 727 <malloc+0xa7> Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; 73e: c7 05 fc 09 00 00 00 movl $0xa00,0x9fc 745: 0a 00 00 base.s.size = 0; 748: ba 00 0a 00 00 mov $0xa00,%edx Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; 74d: c7 05 00 0a 00 00 00 movl $0xa00,0xa00 754: 0a 00 00 base.s.size = 0; 757: c7 05 04 0a 00 00 00 movl $0x0,0xa04 75e: 00 00 00 761: e9 46 ff ff ff jmp 6ac <malloc+0x2c>
Map_6096E: dc.w word_6097C-Map_6096E dc.w word_609AE-Map_6096E dc.w word_609D4-Map_6096E dc.w word_609DC-Map_6096E dc.w word_609E4-Map_6096E dc.w word_60A0A-Map_6096E dc.w word_60A12-Map_6096E word_6097C: dc.w 8 dc.b $E4, 4, 0, 0, $FF, $F0 dc.b $EC, 8, 0, 2, $FF, $E8 dc.b $F4, $B, 0, 5, $FF, $E8 dc.b $14, 4, 0, $11, $FF, $F0 dc.b $E4, 4, 8, 0, 0, 0 dc.b $EC, 8, 8, 2, 0, 0 dc.b $F4, $B, 8, 5, 0, 0 dc.b $14, 4, 8, $11, 0, 0 word_609AE: dc.w 6 dc.b $E4, 5, 0, $13, $FF, $F0 dc.b $F4, $B, 0, $17, $FF, $E8 dc.b $14, 4, 0, $23, $FF, $F0 dc.b $E4, 5, 8, $13, 0, 0 dc.b $F4, $B, 8, $17, 0, 0 dc.b $14, 4, 8, $23, 0, 0 word_609D4: dc.w 1 dc.b $FC, 4, 0, $25, $FF, $F8 word_609DC: dc.w 1 dc.b $FC, 4, 0, $27, $FF, $F8 word_609E4: dc.w 6 dc.b $FC, 1, 0, $29, $FF, $CC dc.b $F4, $E, 0, $2B, $FF, $D4 dc.b $F4, 0, 0, $37, $FF, $F4 dc.b $FC, $D, 0, $38, $FF, $F4 dc.b $F4, 8, 0, $40, 0, $14 dc.b $FC, $D, 0, $43, 0, $14 word_60A0A: dc.w 1 dc.b $FC, 0, 0, $4B, $FF, $FC word_60A12: dc.w 0
/* * Copyright (c) 2017-2021 Arm Limited. * * SPDX-License-Identifier: MIT * * 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. */ #include "arm_compute/core/GLES_COMPUTE/GCKernelLibrary.h" #include "arm_compute/core/Error.h" #include "arm_compute/core/Utils.h" #include <fstream> #include <iomanip> #include <regex> #include <utility> #include <vector> using namespace arm_compute; GCProgram::GCProgram() : _name(), _source() { } GCProgram::GCProgram(std::string name, std::string source) : _name(std::move(name)), _source(std::move(source)) { } GLuint GCProgram::link_program(GLuint shader) { GLuint program = ARM_COMPUTE_GL_CHECK(glCreateProgram()); GLint rvalue; GLsizei length; ARM_COMPUTE_GL_CHECK(glAttachShader(program, shader)); ARM_COMPUTE_GL_CHECK(glLinkProgram(program)); ARM_COMPUTE_GL_CHECK(glDetachShader(program, shader)); ARM_COMPUTE_GL_CHECK(glDeleteShader(shader)); // Check if there were some issues when linking the shader. ARM_COMPUTE_GL_CHECK(glGetProgramiv(program, GL_LINK_STATUS, &rvalue)); if(rvalue == 0) { ARM_COMPUTE_GL_CHECK(glGetProgramiv(program, GL_INFO_LOG_LENGTH, &length)); std::vector<GLchar> log(length); ARM_COMPUTE_GL_CHECK(glGetProgramInfoLog(program, length, nullptr, log.data())); ARM_COMPUTE_ERROR_VAR("Error: Linker log:\n%s\n", log.data()); return 0; } ARM_COMPUTE_GL_CHECK(glUseProgram(program)); return program; } GLuint GCProgram::compile_shader(const std::string &build_options) { GLuint shader = ARM_COMPUTE_GL_CHECK(glCreateShader(GL_COMPUTE_SHADER)); const char *src[] { "#version 310 es\n", build_options.c_str(), _source.c_str() }; ARM_COMPUTE_GL_CHECK(glShaderSource(shader, sizeof(src) / sizeof(src[0]), src, nullptr)); ARM_COMPUTE_GL_CHECK(glCompileShader(shader)); // Check if there were any issues when compiling the shader GLint rvalue; GLsizei length; ARM_COMPUTE_GL_CHECK(glGetShaderiv(shader, GL_COMPILE_STATUS, &rvalue)); if(rvalue == 0) { ARM_COMPUTE_GL_CHECK(glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &length)); std::vector<GLchar> log(length); ARM_COMPUTE_GL_CHECK(glGetShaderInfoLog(shader, length, nullptr, log.data())); #ifdef ARM_COMPUTE_DEBUG_ENABLED std::istringstream ss(_source); std::stringstream output_stream; std::string line; size_t line_num = 1; ARM_COMPUTE_LOG_INFO_MSG_WITH_FORMAT_CORE("GLES Shader build options:\n%s\n", build_options.c_str()); while(std::getline(ss, line, '\n')) { output_stream << std::setw(6) << line_num << ": " << line << std::endl; line_num++; } ARM_COMPUTE_LOG_INFO_STREAM_CORE("GLES Shader source code:\n" << output_stream.rdbuf()); #endif /* ARM_COMPUTE_DEBUG_ENABLED */ ARM_COMPUTE_ERROR_VAR("Error: Compiler log:\n%s\n", log.data()); return 0; } return shader; } GCKernel::GCKernel() : _name(), _program(), _shader_arguments(), _shader_params_ubo_name(), _shader_params_binding_point(), _shader_params_index(), _shader_params_size() { } // Add a default destructor in cpp file to workaround the free unallocated value issue on Android GCKernel::~GCKernel() // NOLINT { } GCKernel::GCKernel(std::string name, GLuint program) : _name(std::move(name)), _program(program), _shader_arguments(), _shader_params_ubo_name(0), _shader_params_binding_point(0), _shader_params_index(0), _shader_params_size(0) { _shader_arguments.clear(); ARM_COMPUTE_GL_CHECK(glGenBuffers(1, &_shader_params_ubo_name)); _shader_params_index = ARM_COMPUTE_GL_CHECK(glGetUniformBlockIndex(_program, _shader_params_name)); ARM_COMPUTE_ERROR_ON_MSG_VAR(_shader_params_index == GL_INVALID_INDEX, "Failed to get index of %s", _shader_params_name); ARM_COMPUTE_GL_CHECK(glGetActiveUniformBlockiv(_program, _shader_params_index, GL_UNIFORM_BLOCK_DATA_SIZE, &_shader_params_size)); ARM_COMPUTE_ERROR_ON_MSG_VAR(_shader_params_size == 0, "Failed to get size of %s", _shader_params_name); } void GCKernel::cleanup() { ARM_COMPUTE_GL_CHECK(glDeleteBuffers(1, &_shader_params_ubo_name)); ARM_COMPUTE_GL_CHECK(glBindBuffer(GL_UNIFORM_BUFFER, 0)); ARM_COMPUTE_GL_CHECK(glDeleteProgram(_program)); ARM_COMPUTE_GL_CHECK(glUseProgram(0)); } void GCKernel::use() { ARM_COMPUTE_GL_CHECK(glUseProgram(_program)); } void GCKernel::unuse() { ARM_COMPUTE_GL_CHECK(glUseProgram(0)); } void GCKernel::update_shader_params() { ARM_COMPUTE_ERROR_ON_MSG_VAR((_shader_params_size != (int)(_shader_arguments.size() * sizeof(_shader_arguments[0]))), "Arguments size (%zu) is not equal to shader params block size (%d)", _shader_arguments.size() * sizeof(_shader_arguments[0]), _shader_params_size); ARM_COMPUTE_GL_CHECK(glUniformBlockBinding(_program, _shader_params_index, _shader_params_binding_point)); ARM_COMPUTE_GL_CHECK(glBindBufferBase(GL_UNIFORM_BUFFER, _shader_params_binding_point, _shader_params_ubo_name)); ARM_COMPUTE_GL_CHECK(glBindBuffer(GL_UNIFORM_BUFFER, _shader_params_ubo_name)); ARM_COMPUTE_GL_CHECK(glBufferData(GL_UNIFORM_BUFFER, _shader_params_size, _shader_arguments.data(), GL_DYNAMIC_DRAW)); ARM_COMPUTE_GL_CHECK(glBindBuffer(GL_UNIFORM_BUFFER, 0)); } const std::map<std::string, std::string> GCKernelLibrary::_shader_program_map = { { "absdiff", "absdiff.cs" }, { "tensorshift", "tensor_shift.cs" }, { "direct_convolution1x1", "direct_convolution1x1.cs" }, { "direct_convolution3x3", "direct_convolution3x3.cs" }, { "direct_convolution5x5", "direct_convolution5x5.cs" }, { "pooling_layer_2", "pooling_layer.cs" }, { "pooling_layer_3", "pooling_layer.cs" }, { "pooling_layer_7", "pooling_layer.cs" }, { "pooling_layer_3_optimized", "pooling_layer.cs" }, { "pooling_layer_n", "pooling_layer.cs" }, { "fill_image_borders_replicate", "fill_border.cs" }, { "fill_image_borders_constant", "fill_border.cs" }, { "gemm_accumulate_biases", "gemm.cs" }, { "gemm_interleave4x4", "gemm.cs" }, { "gemm_ma", "gemm.cs" }, { "gemm_mm_interleaved_transposed", "gemm.cs" }, { "gemm_mm_floating_point", "gemm.cs" }, { "gemm_transpose1x4", "gemm.cs" }, { "reshape_to_columns", "convolution_layer.cs" }, { "im2col_kernel3x3_padx0_pady0", "convolution_layer.cs" }, { "im2col_generic", "convolution_layer.cs" }, { "im2col_reduced", "convolution_layer.cs" }, { "col2im", "convolution_layer.cs" }, { "transpose", "transpose.cs" }, { "activation_layer", "activation_layer.cs" }, { "softmax_layer_max", "softmax_layer.cs" }, { "softmax_layer_shift_exp_sum", "softmax_layer.cs" }, { "softmax_layer_norm", "softmax_layer.cs" }, { "pixelwise_mul_float", "pixelwise_mul_float.cs" }, { "normalization_layer", "normalization_layer.cs" }, { "batchnormalization_layer", "batchnormalization_layer.cs" }, { "concatenate_depth", "concatenate.cs" }, { "dropout", "dropout.cs" }, { "normalize_planar_yuv_layer", "normalize_planar_yuv_layer.cs" }, { "scale_nearest_neighbour", "scale.cs" }, { "arithmetic_add", "arithmetic_add.cs" }, { "depthwise_convolution_3x3", "depthwise_convolution3x3.cs" }, }; const std::map<std::string, std::string> GCKernelLibrary::_program_source_map = { #ifdef EMBEDDED_KERNELS { "helpers_cs.h", #include "./cs_shaders/helpers_cs.hembed" }, { "activation_layer_helpers_cs.h", #include "./cs_shaders/activation_layer_helpers_cs.hembed" }, { "absdiff.cs", #include "./cs_shaders/absdiff.csembed" }, { "tensor_shift.cs", #include "./cs_shaders/tensor_shift.csembed" }, { "convolution_layer.cs", #include "./cs_shaders/convolution_layer.csembed" }, { "direct_convolution1x1.cs", #include "./cs_shaders/direct_convolution1x1.csembed" }, { "direct_convolution3x3.cs", #include "./cs_shaders/direct_convolution3x3.csembed" }, { "direct_convolution5x5.cs", #include "./cs_shaders/direct_convolution5x5.csembed" }, { "pooling_layer.cs", #include "./cs_shaders/pooling_layer.csembed" }, { "fill_border.cs", #include "./cs_shaders/fill_border.csembed" }, { "gemm.cs", #include "./cs_shaders/gemm.csembed" }, { "transpose.cs", #include "./cs_shaders/transpose.csembed" }, { "activation_layer.cs", #include "./cs_shaders/activation_layer.csembed" }, { "softmax_layer.cs", #include "./cs_shaders/softmax_layer.csembed" }, { "pixelwise_mul_float.cs", #include "./cs_shaders/pixelwise_mul_float.csembed" }, { "normalization_layer.cs", #include "./cs_shaders/normalization_layer.csembed" }, { "batchnormalization_layer.cs", #include "./cs_shaders/batchnormalization_layer.csembed" }, { "concatenate.cs", #include "./cs_shaders/concatenate.csembed" }, { "dropout.cs", #include "./cs_shaders/dropout.csembed" }, { "normalize_planar_yuv_layer.cs", #include "./cs_shaders/normalize_planar_yuv_layer.csembed" }, { "scale.cs", #include "./cs_shaders/scale.csembed" }, { "arithmetic_add.cs", #include "./cs_shaders/arithmetic_add.csembed" }, { "depthwise_convolution3x3.cs", #include "./cs_shaders/depthwise_convolution3x3.csembed" }, #endif /* EMBEDDED_KERNELS */ }; GCKernelLibrary::GCKernelLibrary() : _display(EGL_NO_DISPLAY), _context(EGL_NO_CONTEXT), _frame_buffer(0), _tex_rt(0), _shader_path("./"), _programs_map(), _built_programs_map() { } GCKernelLibrary &GCKernelLibrary::get() { static GCKernelLibrary _kernel_library; return _kernel_library; } void GCKernelLibrary::init(std::string shader_path, EGLDisplay dpy, EGLContext ctx) { //TODO: deal with old display and context. _shader_path = std::move(shader_path); _display = dpy; _context = ctx; eglMakeCurrent(_display, EGL_NO_SURFACE, EGL_NO_SURFACE, _context); setup_dummy_fbo(); } void GCKernelLibrary::set_shader_path(const std::string &shader_path) { _shader_path = shader_path; } void GCKernelLibrary::set_context(EGLDisplay dpy, EGLContext ctx) { //TODO: deal with old display and context. _display = dpy; _context = ctx; eglMakeCurrent(dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, ctx); setup_dummy_fbo(); } GCKernel GCKernelLibrary::create_kernel(const std::string &shader_name, const StringSet &build_options_set) const { // Find which program contains the kernel auto shader_program_it = _shader_program_map.find(shader_name); if(_shader_program_map.end() == shader_program_it) { ARM_COMPUTE_ERROR_VAR("Shader %s not found in the GCKernelLibrary", shader_name.c_str()); } // Check if the program has been built before with same build options. const std::string program_name = shader_program_it->second; const std::string build_options = stringify_set(build_options_set); const std::string built_program_name = program_name + "_" + build_options; auto built_program_it = _built_programs_map.find(built_program_name); GCKernel kernel; if(_built_programs_map.end() != built_program_it) { // If program has been built, retrieve to create kernel from it kernel = built_program_it->second; } else { GCProgram program = load_program(program_name); std::string source_name = _shader_path + shader_program_it->second; // load shader GLuint shader = program.compile_shader(build_options); // Build program GLuint gles_program = program.link_program(shader); // Create GCKernel kernel = GCKernel(shader_name, gles_program); // Add built program to internal map _built_programs_map.emplace(built_program_name, kernel); } kernel.use(); kernel.clear_arguments(); // set shader params binding point kernel.set_shader_params_binding_point(0); return kernel; } std::string GCKernelLibrary::preprocess_shader(const std::string &shader_source) const { enum class ParserStage { FIRST, SKIP_COMMENTS = FIRST, RESOLVE_INCLUDES, LAST }; // Define a GLES compute shader parser function std::function<std::string(const std::string &, ParserStage, int)> cs_parser; cs_parser = [&](const std::string & src, ParserStage stage, int) -> std::string { std::string dst; if(stage == ParserStage::LAST || std::regex_match(src, std::regex(R"(\s*)"))) { return src; } auto next_stage = static_cast<ParserStage>(static_cast<int>(stage) + 1); std::string search_pattern; switch(stage) { case ParserStage::SKIP_COMMENTS: search_pattern = R"((/\*([^*]|\n|(\*+([^*/]|\n)))*\*+/)|(//.*))"; break; case ParserStage::RESOLVE_INCLUDES: search_pattern = R"rgx((?:^|\n)[ \t]*#include "(.*)")rgx"; break; default: break; } std::regex search_regex(search_pattern); std::smatch match; ptrdiff_t parsed_pos = 0; if(std::regex_search(src, match, search_regex)) { // Pass the content before the match to the next stage dst.append(cs_parser(src.substr(0, match.position()), next_stage, 0)); parsed_pos = match.position() + match.length(); // Deal with the matched content switch(stage) { case ParserStage::RESOLVE_INCLUDES: { // Replace with the included file contents // And parse the content from the first stage const std::string source_name = _shader_path + match.str(1); dst.append(cs_parser(read_file(source_name, false), ParserStage::FIRST, 0)); break; } case ParserStage::SKIP_COMMENTS: default: dst.append(match.str()); break; } next_stage = stage; } dst.append(cs_parser(src.substr(parsed_pos, src.length() - parsed_pos), next_stage, 0)); return dst; }; return cs_parser(shader_source, ParserStage::FIRST, 0); } const GCProgram &GCKernelLibrary::load_program(const std::string &program_name) const { const auto program_it = _programs_map.find(program_name); if(program_it != _programs_map.end()) { return program_it->second; } GCProgram program; #ifdef EMBEDDED_KERNELS const auto program_source_it = _program_source_map.find(program_name); if(_program_source_map.end() == program_source_it) { ARM_COMPUTE_ERROR_VAR("Embedded program for %s does not exist.", program_name.c_str()); } program = GCProgram(program_name, program_source_it->second); #else /* EMBEDDED_KERNELS */ // Check for binary std::string source_name = _shader_path + program_name; if(std::ifstream(source_name).is_open()) { program = GCProgram(program_name, preprocess_shader(read_file(source_name, false))); } else { ARM_COMPUTE_ERROR_VAR("Shader file %s does not exist.", source_name.c_str()); } #endif /* EMBEDDED_KERNELS */ // Insert program to program map const auto new_program = _programs_map.emplace(program_name, std::move(program)); return new_program.first->second; } void GCKernelLibrary::setup_dummy_fbo() { ARM_COMPUTE_GL_CHECK(glGenFramebuffers(1, &_frame_buffer)); ARM_COMPUTE_GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, _frame_buffer)); ARM_COMPUTE_GL_CHECK(glGenTextures(1, &_tex_rt)); ARM_COMPUTE_GL_CHECK(glBindTexture(GL_TEXTURE_2D, _tex_rt)); ARM_COMPUTE_GL_CHECK(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 1, 1, 0, GL_RGB, GL_UNSIGNED_BYTE, nullptr)); ARM_COMPUTE_GL_CHECK(glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, _tex_rt, 0)); } GCKernelLibrary::~GCKernelLibrary() { for(auto &program : _built_programs_map) { static_cast<GCKernel>(program.second).cleanup(); } ARM_COMPUTE_GL_CHECK(glBindTexture(GL_TEXTURE_2D, 0)); ARM_COMPUTE_GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, 0)); ARM_COMPUTE_GL_CHECK(glDeleteTextures(1, &_tex_rt)); ARM_COMPUTE_GL_CHECK(glDeleteFramebuffers(1, &_frame_buffer)); } std::string GCKernelLibrary::stringify_set(const StringSet &s) const { std::string concat_set; // Concatenate set for(const auto &el : s) { concat_set += el + "\n"; } return concat_set; }
; A051677: Tetrahedron-tree numbers: a(n)=sum(b(m),m=1..n), b(m)=1, 1,3, 1,3,6, 1,3,6,10,..., 1,2,...,i*(i+1)2. ; 1,2,5,6,9,15,16,19,25,35,36,39,45,55,70,71,74,80,90,105,126,127,130,136,146,161,182,210,211,214,220,230,245,266,294,330,331,334,340,350,365,386,414,450,495,496,499,505,515,530,551,579,615,660,715,716,719,725,735,750,771,799,835,880,935,1001,1002,1005,1011,1021,1036,1057,1085,1121,1166,1221,1287,1365,1366,1369,1375,1385,1400,1421,1449,1485,1530,1585,1651,1729,1820,1821,1824,1830,1840,1855,1876,1904,1940,1985 mov $2,$0 add $2,1 mov $4,$0 lpb $2 mov $0,$4 sub $2,1 sub $0,$2 seq $0,158894 ; Sawtooth pattern of one, then two, then three, then four etc. consecutive odd numbers, starting each time at 3. pow $0,2 mov $3,$0 sub $3,9 div $3,8 add $3,1 add $1,$3 lpe mov $0,$1
// Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // Author: kenton@google.com (Kenton Varda) // Based on original Protocol Buffers design by // Sanjay Ghemawat, Jeff Dean, and others. #include <google/protobuf/compiler/cpp/cpp_primitive_field.h> #include <google/protobuf/compiler/cpp/cpp_helpers.h> #include <google/protobuf/io/printer.h> #include <google/protobuf/wire_format.h> #include <google/protobuf/stubs/strutil.h> namespace google { namespace protobuf { namespace compiler { namespace cpp { using internal::WireFormatLite; namespace { // For encodings with fixed sizes, returns that size in bytes. Otherwise // returns -1. int FixedSize(FieldDescriptor::Type type) { switch (type) { case FieldDescriptor::TYPE_INT32: return -1; case FieldDescriptor::TYPE_INT64: return -1; case FieldDescriptor::TYPE_UINT32: return -1; case FieldDescriptor::TYPE_UINT64: return -1; case FieldDescriptor::TYPE_SINT32: return -1; case FieldDescriptor::TYPE_SINT64: return -1; case FieldDescriptor::TYPE_FIXED32: return WireFormatLite::kFixed32Size; case FieldDescriptor::TYPE_FIXED64: return WireFormatLite::kFixed64Size; case FieldDescriptor::TYPE_SFIXED32: return WireFormatLite::kSFixed32Size; case FieldDescriptor::TYPE_SFIXED64: return WireFormatLite::kSFixed64Size; case FieldDescriptor::TYPE_FLOAT: return WireFormatLite::kFloatSize; case FieldDescriptor::TYPE_DOUBLE: return WireFormatLite::kDoubleSize; case FieldDescriptor::TYPE_BOOL: return WireFormatLite::kBoolSize; case FieldDescriptor::TYPE_ENUM: return -1; case FieldDescriptor::TYPE_STRING: return -1; case FieldDescriptor::TYPE_BYTES: return -1; case FieldDescriptor::TYPE_GROUP: return -1; case FieldDescriptor::TYPE_MESSAGE: return -1; // No default because we want the compiler to complain if any new // types are added. } GOOGLE_LOG(FATAL) << "Can't get here."; return -1; } void SetPrimitiveVariables(const FieldDescriptor* descriptor, std::map<std::string, std::string>* variables, const Options& options) { SetCommonFieldVariables(descriptor, variables, options); (*variables)["type"] = PrimitiveTypeName(options, descriptor->cpp_type()); (*variables)["default"] = DefaultValue(options, descriptor); (*variables)["tag"] = StrCat(internal::WireFormat::MakeTag(descriptor)); int fixed_size = FixedSize(descriptor->type()); if (fixed_size != -1) { (*variables)["fixed_size"] = StrCat(fixed_size); } (*variables)["wire_format_field_type"] = FieldDescriptorProto_Type_Name( static_cast<FieldDescriptorProto_Type>(descriptor->type())); (*variables)["full_name"] = descriptor->full_name(); } } // namespace // =================================================================== PrimitiveFieldGenerator::PrimitiveFieldGenerator( const FieldDescriptor* descriptor, const Options& options) : FieldGenerator(descriptor, options) { SetPrimitiveVariables(descriptor, &variables_, options); } PrimitiveFieldGenerator::~PrimitiveFieldGenerator() {} void PrimitiveFieldGenerator::GeneratePrivateMembers( io::Printer* printer) const { Formatter format(printer, variables_); format("$type$ $name$_;\n"); } void PrimitiveFieldGenerator::GenerateAccessorDeclarations( io::Printer* printer) const { Formatter format(printer, variables_); format( "$deprecated_attr$$type$ ${1$$name$$}$() const;\n" "$deprecated_attr$void ${1$set_$name$$}$($type$ value);\n" "private:\n" "$type$ ${1$_internal_$name$$}$() const;\n" "void ${1$_internal_set_$name$$}$($type$ value);\n" "public:\n", descriptor_); } void PrimitiveFieldGenerator::GenerateInlineAccessorDefinitions( io::Printer* printer) const { Formatter format(printer, variables_); format( "inline $type$ $classname$::_internal_$name$() const {\n" " return $name$_;\n" "}\n" "inline $type$ $classname$::$name$() const {\n" "$annotate_get$" " // @@protoc_insertion_point(field_get:$full_name$)\n" " return _internal_$name$();\n" "}\n" "inline void $classname$::_internal_set_$name$($type$ value) {\n" " $set_hasbit$\n" " $name$_ = value;\n" "}\n" "inline void $classname$::set_$name$($type$ value) {\n" " _internal_set_$name$(value);\n" "$annotate_set$" " // @@protoc_insertion_point(field_set:$full_name$)\n" "}\n"); } void PrimitiveFieldGenerator::GenerateClearingCode(io::Printer* printer) const { Formatter format(printer, variables_); format("$name$_ = $default$;\n"); } void PrimitiveFieldGenerator::GenerateMergingCode(io::Printer* printer) const { Formatter format(printer, variables_); format("_internal_set_$name$(from._internal_$name$());\n"); } void PrimitiveFieldGenerator::GenerateSwappingCode(io::Printer* printer) const { Formatter format(printer, variables_); format("swap($name$_, other->$name$_);\n"); } void PrimitiveFieldGenerator::GenerateConstructorCode( io::Printer* printer) const { Formatter format(printer, variables_); format("$name$_ = $default$;\n"); } void PrimitiveFieldGenerator::GenerateCopyConstructorCode( io::Printer* printer) const { Formatter format(printer, variables_); format("$name$_ = from.$name$_;\n"); } void PrimitiveFieldGenerator::GenerateSerializeWithCachedSizesToArray( io::Printer* printer) const { Formatter format(printer, variables_); format( "target = stream->EnsureSpace(target);\n" "target = " "::$proto_ns$::internal::WireFormatLite::Write$declared_type$ToArray(" "$number$, this->_internal_$name$(), target);\n"); } void PrimitiveFieldGenerator::GenerateByteSize(io::Printer* printer) const { Formatter format(printer, variables_); int fixed_size = FixedSize(descriptor_->type()); if (fixed_size == -1) { if (internal::WireFormat::TagSize(descriptor_->number(), descriptor_->type()) == 1) { // Adding one is very common and it turns out it can be done for // free inside of WireFormatLite, so we can save an instruction here. format( "total_size += ::$proto_ns$::internal::WireFormatLite::" "$declared_type$SizePlusOne(this->_internal_$name$());\n"); } else { format( "total_size += $tag_size$ +\n" " ::$proto_ns$::internal::WireFormatLite::$declared_type$Size(\n" " this->_internal_$name$());\n"); } } else { format("total_size += $tag_size$ + $fixed_size$;\n"); } } void PrimitiveFieldGenerator::GenerateConstinitInitializer( io::Printer* printer) const { Formatter format(printer, variables_); format("$name$_($default$)"); } // =================================================================== PrimitiveOneofFieldGenerator::PrimitiveOneofFieldGenerator( const FieldDescriptor* descriptor, const Options& options) : PrimitiveFieldGenerator(descriptor, options) { SetCommonOneofFieldVariables(descriptor, &variables_); } PrimitiveOneofFieldGenerator::~PrimitiveOneofFieldGenerator() {} void PrimitiveOneofFieldGenerator::GenerateInlineAccessorDefinitions( io::Printer* printer) const { Formatter format(printer, variables_); format( "inline $type$ $classname$::_internal_$name$() const {\n" " if (_internal_has_$name$()) {\n" " return $field_member$;\n" " }\n" " return $default$;\n" "}\n" "inline void $classname$::_internal_set_$name$($type$ value) {\n" " if (!_internal_has_$name$()) {\n" " clear_$oneof_name$();\n" " set_has_$name$();\n" " }\n" " $field_member$ = value;\n" "}\n" "inline $type$ $classname$::$name$() const {\n" "$annotate_get$" " // @@protoc_insertion_point(field_get:$full_name$)\n" " return _internal_$name$();\n" "}\n" "inline void $classname$::set_$name$($type$ value) {\n" " _internal_set_$name$(value);\n" "$annotate_set$" " // @@protoc_insertion_point(field_set:$full_name$)\n" "}\n"); } void PrimitiveOneofFieldGenerator::GenerateClearingCode( io::Printer* printer) const { Formatter format(printer, variables_); format("$field_member$ = $default$;\n"); } void PrimitiveOneofFieldGenerator::GenerateSwappingCode( io::Printer* printer) const { // Don't print any swapping code. Swapping the union will swap this field. } void PrimitiveOneofFieldGenerator::GenerateConstructorCode( io::Printer* printer) const { Formatter format(printer, variables_); format("$ns$::_$classname$_default_instance_.$name$_ = $default$;\n"); } // =================================================================== RepeatedPrimitiveFieldGenerator::RepeatedPrimitiveFieldGenerator( const FieldDescriptor* descriptor, const Options& options) : FieldGenerator(descriptor, options) { SetPrimitiveVariables(descriptor, &variables_, options); if (descriptor->is_packed()) { variables_["packed_reader"] = "ReadPackedPrimitive"; variables_["repeated_reader"] = "ReadRepeatedPrimitiveNoInline"; } else { variables_["packed_reader"] = "ReadPackedPrimitiveNoInline"; variables_["repeated_reader"] = "ReadRepeatedPrimitive"; } } RepeatedPrimitiveFieldGenerator::~RepeatedPrimitiveFieldGenerator() {} void RepeatedPrimitiveFieldGenerator::GeneratePrivateMembers( io::Printer* printer) const { Formatter format(printer, variables_); format("::$proto_ns$::RepeatedField< $type$ > $name$_;\n"); if (descriptor_->is_packed() && FixedSize(descriptor_->type()) == -1 && HasGeneratedMethods(descriptor_->file(), options_)) { format("mutable std::atomic<int> _$name$_cached_byte_size_;\n"); } } void RepeatedPrimitiveFieldGenerator::GenerateAccessorDeclarations( io::Printer* printer) const { Formatter format(printer, variables_); format( "private:\n" "$type$ ${1$_internal_$name$$}$(int index) const;\n" "const ::$proto_ns$::RepeatedField< $type$ >&\n" " ${1$_internal_$name$$}$() const;\n" "void ${1$_internal_add_$name$$}$($type$ value);\n" "::$proto_ns$::RepeatedField< $type$ >*\n" " ${1$_internal_mutable_$name$$}$();\n" "public:\n" "$deprecated_attr$$type$ ${1$$name$$}$(int index) const;\n" "$deprecated_attr$void ${1$set_$name$$}$(int index, $type$ value);\n" "$deprecated_attr$void ${1$add_$name$$}$($type$ value);\n" "$deprecated_attr$const ::$proto_ns$::RepeatedField< $type$ >&\n" " ${1$$name$$}$() const;\n" "$deprecated_attr$::$proto_ns$::RepeatedField< $type$ >*\n" " ${1$mutable_$name$$}$();\n", descriptor_); } void RepeatedPrimitiveFieldGenerator::GenerateInlineAccessorDefinitions( io::Printer* printer) const { Formatter format(printer, variables_); format( "inline $type$ $classname$::_internal_$name$(int index) const {\n" " return $name$_.Get(index);\n" "}\n" "inline $type$ $classname$::$name$(int index) const {\n" "$annotate_get$" " // @@protoc_insertion_point(field_get:$full_name$)\n" " return _internal_$name$(index);\n" "}\n" "inline void $classname$::set_$name$(int index, $type$ value) {\n" "$annotate_set$" " $name$_.Set(index, value);\n" " // @@protoc_insertion_point(field_set:$full_name$)\n" "}\n" "inline void $classname$::_internal_add_$name$($type$ value) {\n" " $name$_.Add(value);\n" "}\n" "inline void $classname$::add_$name$($type$ value) {\n" " _internal_add_$name$(value);\n" "$annotate_add$" " // @@protoc_insertion_point(field_add:$full_name$)\n" "}\n" "inline const ::$proto_ns$::RepeatedField< $type$ >&\n" "$classname$::_internal_$name$() const {\n" " return $name$_;\n" "}\n" "inline const ::$proto_ns$::RepeatedField< $type$ >&\n" "$classname$::$name$() const {\n" "$annotate_list$" " // @@protoc_insertion_point(field_list:$full_name$)\n" " return _internal_$name$();\n" "}\n" "inline ::$proto_ns$::RepeatedField< $type$ >*\n" "$classname$::_internal_mutable_$name$() {\n" " return &$name$_;\n" "}\n" "inline ::$proto_ns$::RepeatedField< $type$ >*\n" "$classname$::mutable_$name$() {\n" "$annotate_mutable_list$" " // @@protoc_insertion_point(field_mutable_list:$full_name$)\n" " return _internal_mutable_$name$();\n" "}\n"); } void RepeatedPrimitiveFieldGenerator::GenerateClearingCode( io::Printer* printer) const { Formatter format(printer, variables_); format("$name$_.Clear();\n"); } void RepeatedPrimitiveFieldGenerator::GenerateMergingCode( io::Printer* printer) const { Formatter format(printer, variables_); format("$name$_.MergeFrom(from.$name$_);\n"); } void RepeatedPrimitiveFieldGenerator::GenerateSwappingCode( io::Printer* printer) const { Formatter format(printer, variables_); format("$name$_.InternalSwap(&other->$name$_);\n"); } void RepeatedPrimitiveFieldGenerator::GenerateConstructorCode( io::Printer* printer) const { // Not needed for repeated fields. } void RepeatedPrimitiveFieldGenerator::GenerateCopyConstructorCode( io::Printer* printer) const { Formatter format(printer, variables_); format("$name$_.CopyFrom(from.$name$_);\n"); } void RepeatedPrimitiveFieldGenerator::GenerateSerializeWithCachedSizesToArray( io::Printer* printer) const { Formatter format(printer, variables_); if (descriptor_->is_packed()) { if (FixedSize(descriptor_->type()) == -1) { format( "{\n" " int byte_size = " "_$name$_cached_byte_size_.load(std::memory_order_relaxed);\n" " if (byte_size > 0) {\n" " target = stream->Write$declared_type$Packed(\n" " $number$, _internal_$name$(), byte_size, target);\n" " }\n" "}\n"); } else { format( "if (this->_internal_$name$_size() > 0) {\n" " target = stream->WriteFixedPacked($number$, _internal_$name$(), " "target);\n" "}\n"); } } else { format( "for (int i = 0, n = this->_internal_$name$_size(); i < n; i++) {\n" " target = stream->EnsureSpace(target);\n" " target = ::$proto_ns$::internal::WireFormatLite::" "Write$declared_type$ToArray($number$, this->_internal_$name$(i), " "target);\n" "}\n"); } } void RepeatedPrimitiveFieldGenerator::GenerateByteSize( io::Printer* printer) const { Formatter format(printer, variables_); format("{\n"); format.Indent(); int fixed_size = FixedSize(descriptor_->type()); if (fixed_size == -1) { format( "size_t data_size = ::$proto_ns$::internal::WireFormatLite::\n" " $declared_type$Size(this->$name$_);\n"); } else { format( "unsigned int count = static_cast<unsigned " "int>(this->_internal_$name$_size());\n" "size_t data_size = $fixed_size$UL * count;\n"); } if (descriptor_->is_packed()) { format( "if (data_size > 0) {\n" " total_size += $tag_size$ +\n" " ::$proto_ns$::internal::WireFormatLite::Int32Size(\n" " static_cast<$int32$>(data_size));\n" "}\n"); if (FixedSize(descriptor_->type()) == -1) { format( "int cached_size = ::$proto_ns$::internal::ToCachedSize(data_size);\n" "_$name$_cached_byte_size_.store(cached_size,\n" " std::memory_order_relaxed);\n"); } format("total_size += data_size;\n"); } else { format( "total_size += $tag_size$ *\n" " " "::$proto_ns$::internal::FromIntSize(this->_internal_$name$_size());\n" "total_size += data_size;\n"); } format.Outdent(); format("}\n"); } void RepeatedPrimitiveFieldGenerator::GenerateConstinitInitializer( io::Printer* printer) const { Formatter format(printer, variables_); format("$name$_()"); if (descriptor_->is_packed() && FixedSize(descriptor_->type()) == -1 && HasGeneratedMethods(descriptor_->file(), options_)) { format("\n, _$name$_cached_byte_size_(0)"); } } } // namespace cpp } // namespace compiler } // namespace protobuf } // namespace google
; A310521: Coordination sequence Gal.5.133.1 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; 1,4,10,16,22,26,32,38,44,48,52,58,64,70,74,80,86,92,96,100,106,112,118,122,128,134,140,144,148,154,160,166,170,176,182,188,192,196,202,208,214,218,224,230,236,240,244,250,256,262 mov $3,$0 mov $4,$0 add $4,1 lpb $4 mov $0,$3 sub $4,1 sub $0,$4 mov $2,1 add $2,$0 add $0,$2 mul $0,2 sub $0,1 add $5,$0 mov $6,9 lpb $0 mov $6,$0 mov $0,6 mul $5,9 lpe add $5,$6 div $5,$0 gcd $5,3 sub $0,$5 mov $6,$0 add $6,1 add $1,$6 lpe mov $0,$1
//misaka will carry me to cm #include <iostream> #include <cstdio> #include <cstring> #include <utility> #include <cassert> #include <algorithm> #include <vector> #include <array> #include <tuple> #include <set> #include <map> #define ll long long #define lb long double #define sz(vec) ((int)(vec.size())) #define all(x) x.begin(), x.end() const lb eps = 1e-9; const ll mod = 1e9 + 7, ll_max = 1e18; //const ll mod = (1 << (23)) * 119 +1; const int MX = 2e5 +10, int_max = 0x3f3f3f3f; using namespace std; double arr[MX]; double dp[MX]; double d; int n; double cost(int i, int j){ if(arr[j] - arr[i] <= d) return 0; return ((arr[j] - arr[i]) - d)/2.0; } double cost(int i, int j, int k){ int left = (arr[j] - arr[i]) <= d; int right = (arr[k] - arr[j]) <= d; if(left && right) return 0.0; if(left && !right){ return cost(j, k); } if(!left && right){ return cost(i, j); } return ((arr[k] - arr[i]) - 2.0*d)/2.0; } void print(double a){ printf("%.7lf\n", a); } void solve(){ cin >> n >> d; for(int i = 1; i<=n; i++){ int a; cin >> a; arr[i] = a; } sort(arr+1, arr + n+1); n = unique(arr + 1, arr + n + 1) - (arr + 1); int st = 1; if(n == 2){ print(cost(1, 2)); return; }else if(n == 3){ print(cost(1, 2, 3)); return; } for(int i = 1; i<=n; i++) dp[i] = int_max; dp[2] = cost(1, 2); dp[3] = cost(1, 2, 3); for(int i = 3; i<=n; i++){ double two = max(dp[i-2], cost(i-1, i)); double three = max(dp[st-1], cost(st, i-1, i)); if(two < three){ st = i - 1; dp[i] = two; }else{ dp[i] = three; } } print(dp[n]); } int main(){ cin.tie(0) -> sync_with_stdio(0); int T = 1; cin >> T; while(T--){ solve(); } return 0; }
<% from pwnlib.shellcraft.i386.linux import dup2 %> <% from pwnlib.shellcraft.i386 import mov %> <% from pwnlib.shellcraft import common %> <%page args="sock = 'ebp'"/> <%docstring> Args: [sock (imm/reg) = ebp] Duplicates sock to stdin, stdout and stderr </%docstring> <% dup = common.label("dup") looplabel = common.label("loop") %> ${dup}: ${mov('ebx', sock)} ${mov('ecx', 3)} ${looplabel}: dec ecx ${dup2('ebx', 'ecx')} jnz ${looplabel}
; A272978: Numbers not in the range of the sum of perfect divisors function. ; 1,2,3,4,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80 mov $6,$0 add $0,5 mov $2,1 mov $3,7 mov $4,8 mov $5,8 lpb $0 mov $1,3 add $1,$4 sub $1,$3 sub $0,$1 sub $0,$1 trn $0,1 add $0,4 add $1,$2 mov $2,$3 sub $2,1 mov $3,4 add $3,$1 sub $3,$2 add $3,2 add $4,$5 sub $4,2 add $5,1 lpe mov $1,0 add $1,$5 lpb $6 add $1,1 sub $6,1 lpe sub $1,8
; 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\valid.c .686P .XMM include listing.inc .model flat INCLUDELIB MSVCRTD 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 _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 __56F63275_valid@c DB 01H msvcjmc ENDS PUBLIC _xmlAddNotationDecl PUBLIC _xmlCopyNotationTable PUBLIC _xmlFreeNotationTable PUBLIC _xmlDumpNotationDecl PUBLIC _xmlDumpNotationTable PUBLIC _xmlNewElementContent PUBLIC _xmlCopyElementContent PUBLIC _xmlFreeElementContent PUBLIC _xmlNewDocElementContent PUBLIC _xmlCopyDocElementContent PUBLIC _xmlFreeDocElementContent PUBLIC _xmlSnprintfElementContent PUBLIC _xmlSprintfElementContent PUBLIC _xmlAddElementDecl PUBLIC _xmlCopyElementTable PUBLIC _xmlFreeElementTable PUBLIC _xmlDumpElementTable PUBLIC _xmlDumpElementDecl PUBLIC _xmlCreateEnumeration PUBLIC _xmlFreeEnumeration PUBLIC _xmlCopyEnumeration PUBLIC _xmlAddAttributeDecl PUBLIC _xmlCopyAttributeTable PUBLIC _xmlFreeAttributeTable PUBLIC _xmlDumpAttributeTable PUBLIC _xmlDumpAttributeDecl PUBLIC _xmlAddID PUBLIC _xmlFreeIDTable PUBLIC _xmlGetID PUBLIC _xmlIsID PUBLIC _xmlRemoveID PUBLIC _xmlAddRef PUBLIC _xmlFreeRefTable PUBLIC _xmlIsRef PUBLIC _xmlRemoveRef PUBLIC _xmlGetRefs PUBLIC _xmlNewValidCtxt PUBLIC _xmlFreeValidCtxt PUBLIC _xmlValidateRoot PUBLIC _xmlValidateElementDecl PUBLIC _xmlValidNormalizeAttributeValue PUBLIC _xmlValidCtxtNormalizeAttributeValue PUBLIC _xmlValidateAttributeDecl PUBLIC _xmlValidateAttributeValue PUBLIC _xmlValidateNotationDecl PUBLIC _xmlValidateDtd PUBLIC _xmlValidateDtdFinal PUBLIC _xmlValidateDocument PUBLIC _xmlValidateElement PUBLIC _xmlValidateOneElement PUBLIC _xmlValidateOneAttribute PUBLIC _xmlValidateOneNamespace PUBLIC _xmlValidateDocumentFinal PUBLIC _xmlValidateNotationUse PUBLIC _xmlIsMixedElement PUBLIC _xmlGetDtdAttrDesc PUBLIC _xmlGetDtdQAttrDesc PUBLIC _xmlGetDtdNotationDesc PUBLIC _xmlGetDtdQElementDesc PUBLIC _xmlGetDtdElementDesc PUBLIC _xmlValidGetPotentialChildren PUBLIC _xmlValidGetValidElements PUBLIC _xmlValidateNameValue PUBLIC _xmlValidateNamesValue PUBLIC _xmlValidateNmtokenValue PUBLIC _xmlValidateNmtokensValue PUBLIC _xmlValidBuildContentModel PUBLIC _xmlValidatePushElement PUBLIC _xmlValidatePushCData PUBLIC _xmlValidatePopElement PUBLIC __JustMyCode_Default PUBLIC ??_C@_0BP@DJFHNAOK@Memory?5allocation?5failed?5?3?5?$CFs?6@ ; `string' PUBLIC ??_C@_0BK@GDFDKGPJ@Memory?5allocation?5failed?6@ ; `string' PUBLIC ??_C@_02DKCKIIND@?$CFs@ ; `string' PUBLIC ??_C@_0O@IMHFIAOC@malloc?5failed@ ; `string' PUBLIC ??_C@_0P@BHJOIPMJ@realloc?5failed@ ; `string' PUBLIC ??_C@_0CN@GEBFHDLO@Failed?5to?5build?5content?5model?5r@ ; `string' PUBLIC ??_C@_0CL@FIAOIAHN@Found?5NULL?5content?5in?5content?5m@ ; `string' PUBLIC ??_C@_0CF@IIHAKBAI@Found?5PCDATA?5in?5content?5model?5o@ ; `string' PUBLIC ??_C@_0BH@INHICIGB@Building?5content?5model@ ; `string' PUBLIC ??_C@_0CE@LMBMADBI@ContentModel?5broken?5for?5element@ ; `string' PUBLIC ??_C@_0CH@LILACHHH@Cannot?5create?5automata?5for?5elem@ ; `string' PUBLIC ??_C@_0CM@GHMIMING@Content?5model?5of?5?$CFs?5is?5not?5dete@ ; `string' PUBLIC ??_C@_0CH@ODCBAOPP@xmlNewElementContent?5?3?5name?5?$DN?$DN?5@ ; `string' PUBLIC ??_C@_0CH@EHMNFIPD@xmlNewElementContent?5?3?5name?5?$CB?$DN?5@ ; `string' PUBLIC ??_C@_0DC@GLPLFDD@Internal?3?5ELEMENT?5content?5corru@ ; `string' PUBLIC ??_C@_01ODHLEDKK@?$CI@ ; `string' PUBLIC ??_C@_07ELDBONKP@?$CDPCDATA@ ; `string' PUBLIC ??_C@_01JLIPDDHJ@?3@ ; `string' PUBLIC ??_C@_03NKFKBEPL@?5?0?5@ ; `string' PUBLIC ??_C@_03LGOGDKEL@?5?$HM?5@ ; `string' PUBLIC ??_C@_01PKGAHCOL@?$CJ@ ; `string' PUBLIC ??_C@_01OGPIMHDM@?$DP@ ; `string' PUBLIC ??_C@_01NBENCBCI@?$CK@ ; `string' PUBLIC ??_C@_01MIFGBAGJ@?$CL@ ; `string' PUBLIC ??_C@_04IBCFJNCN@?5?4?4?4@ ; `string' PUBLIC ??_C@_0CO@BLBNCGCL@xmlAddElementDecl?3?5content?5?$CB?$DN?5N@ ; `string' PUBLIC ??_C@_0CM@DBFKJMHA@xmlAddElementDecl?3?5content?5?$CB?$DN?5N@ ; `string' PUBLIC ??_C@_0CO@IMMDEKCP@xmlAddElementDecl?3?5content?5?$DN?$DN?5N@ ; `string' PUBLIC ??_C@_0DA@CFDLEHAD@xmlAddElementDecl?3?5content?5?$DN?$DN?5N@ ; `string' PUBLIC ??_C@_0CP@HFIOBKAA@Internal?3?5ELEMENT?5decl?5corrupte@ ; `string' PUBLIC ??_C@_0CL@IICJECDN@xmlAddElementDecl?3?5Table?5creati@ ; `string' PUBLIC ??_C@_0BM@DLJMKEJ@Redefinition?5of?5element?5?$CFs?6@ ; `string' PUBLIC ??_C@_0L@EMLMHHFJ@?$DM?$CBELEMENT?5@ ; `string' PUBLIC ??_C@_08HMKELAAG@?5EMPTY?$DO?6@ ; `string' PUBLIC ??_C@_06OMPGEGME@?5ANY?$DO?6@ ; `string' PUBLIC ??_C@_01CLKCMJKC@?5@ ; `string' PUBLIC ??_C@_02NEKEAGPN@?$DO?6@ ; `string' PUBLIC ??_C@_0DB@NFLGBMMC@Internal?3?5ELEMENT?5struct?5corrup@ ; `string' PUBLIC ??_C@_0DE@EJGKGKMH@Element?5?$CFs?5has?5too?5many?5ID?5attr@ ; `string' PUBLIC ??_C@_0DD@NLJCGIHL@Internal?3?5ATTRIBUTE?5struct?5corr@ ; `string' PUBLIC ??_C@_0CL@IHGCOODJ@Attribute?5?$CFs?5of?5?$CFs?3?5invalid?5def@ ; `string' PUBLIC ??_C@_0CN@LFDBMMCB@xmlAddAttributeDecl?3?5Table?5crea@ ; `string' PUBLIC ??_C@_0CN@HJBCFPNE@Attribute?5?$CFs?5of?5element?5?$CFs?3?5alr@ ; `string' PUBLIC ??_C@_0DD@GEPJIIIF@Element?5?$CFs?5has?5too?5may?5ID?5attri@ ; `string' PUBLIC ??_C@_05PPEFOGKI@xmlns@ ; `string' PUBLIC ??_C@_0L@NDHICKFH@?$DM?$CBATTLIST?5@ ; `string' PUBLIC ??_C@_06CIOOFICG@?5CDATA@ ; `string' PUBLIC ??_C@_03JFNHLDJD@?5ID@ ; `string' PUBLIC ??_C@_06JJHMNMLB@?5IDREF@ ; `string' PUBLIC ??_C@_07CNGJPBFB@?5IDREFS@ ; `string' PUBLIC ??_C@_07GLIJGNMP@?5ENTITY@ ; `string' PUBLIC ??_C@_09MILPKLMO@?5ENTITIES@ ; `string' PUBLIC ??_C@_08JLMONKHB@?5NMTOKEN@ ; `string' PUBLIC ??_C@_09LGAPIBOH@?5NMTOKENS@ ; `string' PUBLIC ??_C@_02GFKOMOKH@?5?$CI@ ; `string' PUBLIC ??_C@_0M@IGKIMAHJ@?5NOTATION?5?$CI@ ; `string' PUBLIC ??_C@_0L@IEBFJPBC@?5?$CDREQUIRED@ ; `string' PUBLIC ??_C@_09GOIPIIGC@?5?$CDIMPLIED@ ; `string' PUBLIC ??_C@_07PNOBFAOP@?5?$CDFIXED@ ; `string' PUBLIC ??_C@_0DC@EJJFJDDL@Internal?3?5ATTRIBUTE?5struct?5corr@ ; `string' PUBLIC ??_C@_0CM@PJBPJANJ@xmlAddNotationDecl?3?5Table?5creat@ ; `string' PUBLIC ??_C@_0CI@HFJJKKEO@xmlAddNotationDecl?3?5?$CFs?5already?5@ ; `string' PUBLIC ??_C@_0M@IOFINGOM@?$DM?$CBNOTATION?5@ ; `string' PUBLIC ??_C@_08GBBLECIH@?5PUBLIC?5@ ; `string' PUBLIC ??_C@_08PAGGLANP@?5SYSTEM?5@ ; `string' PUBLIC ??_C@_03KKJDKPMN@?5?$DO?6@ ; `string' PUBLIC ??_C@_0CC@HPFDMDEK@xmlAddID?3?5Table?5creation?5failed@ ; `string' PUBLIC ??_C@_0BH@JKIFIOPN@ID?5?$CFs?5already?5defined?6@ ; `string' PUBLIC ??_C@_02EGCJHIOB@id@ ; `string' PUBLIC ??_C@_03PJHHNEEI@xml@ ; `string' PUBLIC ??_C@_04MEMAJGDJ@name@ ; `string' PUBLIC ??_C@_01MCMALHOG@a@ ; `string' PUBLIC ??_C@_0CD@JKLLCBGN@xmlAddRef?3?5Table?5creation?5faile@ ; `string' PUBLIC ??_C@_0CM@EILGCMCJ@xmlAddRef?3?5Reference?5list?5creat@ ; `string' PUBLIC ??_C@_0CN@CLGHPEIK@xmlAddRef?3?5Reference?5list?5inser@ ; `string' PUBLIC ??_C@_0CA@OJAJCLMD@element?5table?5allocation?5failed@ ; `string' PUBLIC ??_C@_0BN@NONOBNKE@NOTATION?5?$CFs?5is?5not?5declared?6@ ; `string' PUBLIC ??_C@_0DG@NHAJHAEC@ENTITY?5attribute?5?$CFs?5reference?5a@ ; `string' PUBLIC ??_C@_0DM@CBMBENAH@ENTITY?5attribute?5?$CFs?5reference?5a@ ; `string' PUBLIC ??_C@_0DI@MOCJGONA@ENTITIES?5attribute?5?$CFs?5reference@ ; `string' PUBLIC ??_C@_0DO@BNHKOEGN@ENTITIES?5attribute?5?$CFs?5reference@ ; `string' PUBLIC ??_C@_0DK@HMAANMLE@NOTATION?5attribute?5?$CFs?5reference@ ; `string' PUBLIC ??_C@_0FG@CJEJIEOP@standalone?3?5?$CFs?5on?5?$CFs?5value?5had?5@ ; `string' PUBLIC ??_C@_0DN@MJLCEKEK@Syntax?5of?5default?5value?5for?5att@ ; `string' PUBLIC ??_C@_0EC@DNHDHDCI@ID?5attribute?5?$CFs?5of?5?$CFs?5is?5not?5va@ ; `string' PUBLIC ??_C@_0EE@MLJMMKCM@Element?5?$CFs?5has?5?$CFd?5ID?5attribute?5@ ; `string' PUBLIC ??_C@_0EE@JDKHGIAG@Element?5?$CFs?5has?5?$CFd?5ID?5attribute?5@ ; `string' PUBLIC ??_C@_0EP@CFLHEJLO@Element?5?$CFs?5has?5ID?5attributes?5de@ ; `string' PUBLIC ??_C@_0EL@MPNELAFE@Default?5value?5?$CC?$CFs?$CC?5for?5attribut@ ; `string' PUBLIC ??_C@_0DB@DPGOOPFF@Definition?5of?5?$CFs?5has?5duplicate?5@ ; `string' PUBLIC ??_C@_0DE@IDAOJGBB@Definition?5of?5?$CFs?5has?5duplicate?5@ ; `string' PUBLIC ??_C@_0DB@HNLIHGKJ@Definition?5of?5?$CFs?5has?5duplicate?5@ ; `string' PUBLIC ??_C@_0DE@PAODFKFF@Definition?5of?5?$CFs?5has?5duplicate?5@ ; `string' PUBLIC ??_C@_0CP@IDGJHJLH@No?5declaration?5for?5attribute?5?$CFs@ ; `string' PUBLIC ??_C@_0DF@PPLCGADM@Syntax?5of?5value?5for?5attribute?5?$CF@ ; `string' PUBLIC ??_C@_0DN@BPCEOAOB@Value?5for?5attribute?5?$CFs?5of?5?$CFs?5is@ ; `string' PUBLIC ??_C@_0DO@HAIKKCN@Value?5?$CC?$CFs?$CC?5for?5attribute?5?$CFs?5of?5@ ; `string' PUBLIC ??_C@_0EJ@LLDEHINL@Value?5?$CC?$CFs?$CC?5for?5attribute?5?$CFs?5of?5@ ; `string' PUBLIC ??_C@_0ED@GMECILPN@Value?5?$CC?$CFs?$CC?5for?5attribute?5?$CFs?5of?5@ ; `string' PUBLIC ??_C@_0CL@KKBPHLEC@Value?5for?5attribute?5?$CFs?5of?5?$CFs?5mu@ ; `string' PUBLIC ??_C@_0BF@INLCBMIM@Validating?5namespace@ ; `string' PUBLIC ??_C@_0DF@GJIDMPBO@No?5declaration?5for?5attribute?5xm@ ; `string' PUBLIC ??_C@_0DC@FPONLEAN@No?5declaration?5for?5attribute?5xm@ ; `string' PUBLIC ??_C@_0DL@CBOACJEL@Syntax?5of?5value?5for?5attribute?5x@ ; `string' PUBLIC ??_C@_0DI@HAHGLIKC@Syntax?5of?5value?5for?5attribute?5x@ ; `string' PUBLIC ??_C@_0ED@KAGANNGH@Value?5for?5attribute?5xmlns?3?$CFs?5of@ ; `string' PUBLIC ??_C@_0EA@HGOHDHBG@Value?5for?5attribute?5xmlns?5of?5?$CFs@ ; `string' PUBLIC ??_C@_0EE@ENPHOLHF@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?3@ ; `string' PUBLIC ??_C@_0EB@IKNIAELF@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?5@ ; `string' PUBLIC ??_C@_0EP@PJCDPKEK@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?3@ ; `string' PUBLIC ??_C@_0EM@LDEIIDJK@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?5@ ; `string' PUBLIC ??_C@_0EJ@PDIHKDMN@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?3@ ; `string' PUBLIC ??_C@_0EG@CDCEFKCM@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?5@ ; `string' PUBLIC ??_C@_0DB@DPJFCMMB@Value?5for?5attribute?5xmlns?3?$CFs?5of@ ; `string' PUBLIC ??_C@_0CO@DNGFHLPE@Value?5for?5attribute?5xmlns?5of?5?$CFs@ ; `string' PUBLIC ??_C@_05MLPNBPGH@CDATA@ ; `string' PUBLIC ??_C@_03BBKEAIF@?$DP?$DP?$DP@ ; `string' PUBLIC ??_C@_0EC@IAKGOMPC@Element?5?$CFs?5content?5does?5not?5fol@ ; `string' PUBLIC ??_C@_0DP@CBELDNAH@Element?5content?5does?5not?5follow@ ; `string' PUBLIC ??_C@_0CM@BLHDJNNL@Element?5?$CFs?5content?5does?5not?5fol@ ; `string' PUBLIC ??_C@_0CJ@JFPHFAJJ@Element?5content?5does?5not?5follow@ ; `string' PUBLIC ??_C@_0CC@LMJFIFCG@Internal?3?5MIXED?5struct?5corrupte@ ; `string' PUBLIC ??_C@_0BP@CMBGNCIM@No?5declaration?5for?5element?5?$CFs?6@ ; `string' PUBLIC ??_C@_0DE@KLKCMFPH@Element?5?$CFs?5was?5declared?5EMPTY?5t@ ; `string' PUBLIC ??_C@_0DN@CFJCCMLK@Element?5?$CFs?5was?5declared?5?$CDPCDATA@ ; `string' PUBLIC ??_C@_0DM@IPIENEI@Element?5?$CFs?5is?5not?5declared?5in?5?$CF@ ; `string' PUBLIC ??_C@_0DK@BGIDCAIC@Element?5?$CFs?5content?5does?5not?5fol@ ; `string' PUBLIC ??_C@_0DO@HNMIGKJO@Element?5?$CFs?5content?5does?5not?5fol@ ; `string' PUBLIC ??_C@_0EC@JDBIOCJK@Element?5?$CFs?5content?5does?5not?5fol@ ; `string' PUBLIC ??_C@_0CA@EPFCDFAG@Attribute?5element?5not?5expected?6@ ; `string' PUBLIC ??_C@_0BN@JALMDBBB@Text?5element?5has?5children?5?$CB?6@ ; `string' PUBLIC ??_C@_0BO@NIGEHALL@Text?5element?5has?5namespace?5?$CB?6@ ; `string' PUBLIC ??_C@_0BP@DPPADDEP@Text?5element?5has?5no?5content?5?$CB?6@ ; `string' PUBLIC ??_C@_0BN@CJFFIPOP@Entity?5element?5not?5expected?6@ ; `string' PUBLIC ??_C@_0BP@FEDJMKLA@Notation?5element?5not?5expected?6@ ; `string' PUBLIC ??_C@_0BP@LPODOPI@Document?5element?5not?5expected?6@ ; `string' PUBLIC ??_C@_0BM@DIBMDMIN@HTML?5Document?5not?5expected?6@ ; `string' PUBLIC ??_C@_0BG@CJHPKHPI@unknown?5element?5type?6@ ; `string' PUBLIC ??_C@_0EM@LHPMEFBO@standalone?3?5?$CFs?5declared?5in?5the?5@ ; `string' PUBLIC ??_C@_0CI@KOGIECMM@Element?5?$CFs?5does?5not?5carry?5attri@ ; `string' PUBLIC ??_C@_0CL@IDAGHCGO@Element?5?$CFs?5does?5not?5carry?5attri@ ; `string' PUBLIC ??_C@_0DD@KAGCOGBM@Element?5?$CFs?5required?5attribute?5?$CF@ ; `string' PUBLIC ??_C@_0DK@IGLOKJLK@Element?5?$CFs?5required?5attribute?5?$CF@ ; `string' PUBLIC ??_C@_0EI@BIBADMEK@Element?5?$CFs?5namespace?5name?5for?5d@ ; `string' PUBLIC ??_C@_0DJ@DDNBGMLL@Element?5?$CFs?5namespace?5name?5for?5?$CF@ ; `string' PUBLIC ??_C@_0BB@JNDFICHA@no?5root?5element?6@ ; `string' PUBLIC ??_C@_04DBLPJNAF@HTML@ ; `string' PUBLIC ??_C@_04PNIFHPHN@html@ ; `string' PUBLIC ??_C@_0CO@PMJDAMAF@root?5and?5DTD?5name?5do?5not?5match?5@ ; `string' PUBLIC ??_C@_0DE@GLBIFDCC@attribute?5?$CFs?5line?5?$CFd?5references@ ; `string' PUBLIC ??_C@_0DC@HOBCELJH@IDREF?5attribute?5?$CFs?5references?5a@ ; `string' PUBLIC ??_C@_0N@BBOKCKMC@IDREFS?5split@ ; `string' PUBLIC ??_C@_0DD@JBMPIAIH@IDREFS?5attribute?5?$CFs?5references?5@ ; `string' PUBLIC ??_C@_0CH@PKJJCFEM@xmlValidateDocumentFinal?3?5doc?5?$DN@ ; `string' PUBLIC ??_C@_0DC@EEKBOKHB@xmlValidateAttributeCallback?$CI?$CFs@ ; `string' PUBLIC ??_C@_0DC@CHBKELEG@attribute?5?$CFs?3?5could?5not?5find?5de@ ; `string' PUBLIC ??_C@_0DF@KBMCJLCB@NOTATION?5attribute?5?$CFs?5declared?5@ ; `string' PUBLIC ??_C@_0P@GBEHLCJD@no?5DTD?5found?$CB?6@ ; `string' PUBLIC ??_C@_0CO@FGGICOAP@Could?5not?5build?5URI?5for?5externa@ ; `string' PUBLIC ??_C@_0CJ@BNOHLKCI@Could?5not?5load?5the?5external?5sub@ ; `string' PUBLIC ??_C@_09LMMMMLKM@?$DM?$CBdummy?$DP?$DO@ ; `string' EXTRN _xmlStrdup:PROC EXTRN _xmlStrndup:PROC EXTRN _xmlStrncmp:PROC EXTRN _xmlStrEqual:PROC EXTRN _xmlStrlen:PROC EXTRN _xmlDictLookup:PROC EXTRN _xmlDictOwns:PROC EXTRN _xmlRegFreeRegexp:PROC EXTRN _xmlRegexpIsDeterminist:PROC EXTRN _xmlRegNewExecCtxt:PROC EXTRN _xmlRegFreeExecCtxt:PROC EXTRN _xmlRegExecPushString:PROC EXTRN _xmlBuildQName:PROC EXTRN _xmlSplitQName2:PROC EXTRN _xmlSplitQName3:PROC EXTRN _xmlNewDocNode:PROC EXTRN _xmlGetLineNo:PROC EXTRN _xmlDocGetRootElement:PROC EXTRN _xmlIsBlankNode:PROC EXTRN _xmlUnlinkNode:PROC EXTRN _xmlFreeNode:PROC EXTRN _xmlNodeListGetString:PROC EXTRN _xmlBufferWriteCHAR:PROC EXTRN _xmlBufferWriteChar:PROC EXTRN _xmlBufferWriteQuotedString:PROC EXTRN _xmlHashCreateDict:PROC EXTRN _xmlHashFree:PROC EXTRN _xmlHashAddEntry:PROC EXTRN _xmlHashUpdateEntry:PROC EXTRN _xmlHashAddEntry2:PROC EXTRN _xmlHashAddEntry3:PROC EXTRN _xmlHashRemoveEntry:PROC EXTRN _xmlHashRemoveEntry2:PROC EXTRN _xmlHashLookup:PROC EXTRN _xmlHashLookup2:PROC EXTRN _xmlHashLookup3:PROC EXTRN _xmlHashCopy:PROC EXTRN _xmlHashScan:PROC EXTRN _xmlHashScan3:PROC EXTRN ___xmlRaiseError:PROC EXTRN _xmlListCreate:PROC EXTRN _xmlListDelete:PROC EXTRN _xmlListAppend:PROC EXTRN _xmlListRemoveFirst:PROC EXTRN _xmlListEmpty:PROC EXTRN _xmlListWalk:PROC EXTRN _xmlLinkGetData:PROC EXTRN _xmlNewAutomata:PROC EXTRN _xmlFreeAutomata:PROC EXTRN _xmlAutomataGetInitState:PROC EXTRN _xmlAutomataSetFinalState:PROC EXTRN _xmlAutomataNewState:PROC EXTRN _xmlAutomataNewTransition:PROC EXTRN _xmlAutomataNewEpsilon:PROC EXTRN _xmlAutomataCompile:PROC EXTRN _xmlGetDocEntity:PROC EXTRN _xmlParseDTD:PROC EXTRN _xmlBuildURI:PROC EXTRN _xmlCharInRange:PROC EXTRN _xmlStringCurrentChar:PROC EXTRN @_RTC_CheckStackVars@8:PROC EXTRN @__CheckForDebuggerJustMyCode@4:PROC EXTRN __RTC_CheckEsp:PROC EXTRN __RTC_InitBase:PROC EXTRN __RTC_Shutdown:PROC EXTRN __chkstk:PROC EXTRN _memset:PROC ; COMDAT rtc$TMZ rtc$TMZ SEGMENT __RTC_Shutdown.rtc$TMZ DD FLAT:__RTC_Shutdown rtc$TMZ ENDS ; COMDAT rtc$IMZ rtc$IMZ SEGMENT __RTC_InitBase.rtc$IMZ DD FLAT:__RTC_InitBase rtc$IMZ ENDS ; COMDAT ??_C@_09LMMMMLKM@?$DM?$CBdummy?$DP?$DO@ CONST SEGMENT ??_C@_09LMMMMLKM@?$DM?$CBdummy?$DP?$DO@ DB '<!dummy?>', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CJ@BNOHLKCI@Could?5not?5load?5the?5external?5sub@ CONST SEGMENT ??_C@_0CJ@BNOHLKCI@Could?5not?5load?5the?5external?5sub@ DB 'Could not lo' DB 'ad the external subset "%s"', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CO@FGGICOAP@Could?5not?5build?5URI?5for?5externa@ CONST SEGMENT ??_C@_0CO@FGGICOAP@Could?5not?5build?5URI?5for?5externa@ DB 'Could not bu' DB 'ild URI for external subset "%s"', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0P@GBEHLCJD@no?5DTD?5found?$CB?6@ CONST SEGMENT ??_C@_0P@GBEHLCJD@no?5DTD?5found?$CB?6@ DB 'no DTD found!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DF@KBMCJLCB@NOTATION?5attribute?5?$CFs?5declared?5@ CONST SEGMENT ??_C@_0DF@KBMCJLCB@NOTATION?5attribute?5?$CFs?5declared?5@ DB 'NOTATION a' DB 'ttribute %s declared for EMPTY element %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DC@CHBKELEG@attribute?5?$CFs?3?5could?5not?5find?5de@ CONST SEGMENT ??_C@_0DC@CHBKELEG@attribute?5?$CFs?3?5could?5not?5find?5de@ DB 'attribut' DB 'e %s: could not find decl for element %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DC@EEKBOKHB@xmlValidateAttributeCallback?$CI?$CFs@ CONST SEGMENT ??_C@_0DC@EEKBOKHB@xmlValidateAttributeCallback?$CI?$CFs@ DB 'xmlValidate' DB 'AttributeCallback(%s): internal error', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CH@PKJJCFEM@xmlValidateDocumentFinal?3?5doc?5?$DN@ CONST SEGMENT ??_C@_0CH@PKJJCFEM@xmlValidateDocumentFinal?3?5doc?5?$DN@ DB 'xmlValidate' DB 'DocumentFinal: doc == NULL', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DD@JBMPIAIH@IDREFS?5attribute?5?$CFs?5references?5@ CONST SEGMENT ??_C@_0DD@JBMPIAIH@IDREFS?5attribute?5?$CFs?5references?5@ DB 'IDREFS att' DB 'ribute %s references an unknown ID "%s"', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0N@BBOKCKMC@IDREFS?5split@ CONST SEGMENT ??_C@_0N@BBOKCKMC@IDREFS?5split@ DB 'IDREFS split', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DC@HOBCELJH@IDREF?5attribute?5?$CFs?5references?5a@ CONST SEGMENT ??_C@_0DC@HOBCELJH@IDREF?5attribute?5?$CFs?5references?5a@ DB 'IDREF attr' DB 'ibute %s references an unknown ID "%s"', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DE@GLBIFDCC@attribute?5?$CFs?5line?5?$CFd?5references@ CONST SEGMENT ??_C@_0DE@GLBIFDCC@attribute?5?$CFs?5line?5?$CFd?5references@ DB 'attribu' DB 'te %s line %d references an unknown ID "%s"', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CO@PMJDAMAF@root?5and?5DTD?5name?5do?5not?5match?5@ CONST SEGMENT ??_C@_0CO@PMJDAMAF@root?5and?5DTD?5name?5do?5not?5match?5@ DB 'root and D' DB 'TD name do not match ''%s'' and ''%s''', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_04PNIFHPHN@html@ CONST SEGMENT ??_C@_04PNIFHPHN@html@ DB 'html', 00H ; `string' CONST ENDS ; COMDAT ??_C@_04DBLPJNAF@HTML@ CONST SEGMENT ??_C@_04DBLPJNAF@HTML@ DB 'HTML', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BB@JNDFICHA@no?5root?5element?6@ CONST SEGMENT ??_C@_0BB@JNDFICHA@no?5root?5element?6@ DB 'no root element', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DJ@DDNBGMLL@Element?5?$CFs?5namespace?5name?5for?5?$CF@ CONST SEGMENT ??_C@_0DJ@DDNBGMLL@Element?5?$CFs?5namespace?5name?5for?5?$CF@ DB 'Elemen' DB 't %s namespace name for %s does not match the DTD', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EI@BIBADMEK@Element?5?$CFs?5namespace?5name?5for?5d@ CONST SEGMENT ??_C@_0EI@BIBADMEK@Element?5?$CFs?5namespace?5name?5for?5d@ DB 'Element %' DB 's namespace name for default namespace does not match the DTD' DB 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DK@IGLOKJLK@Element?5?$CFs?5required?5attribute?5?$CF@ CONST SEGMENT ??_C@_0DK@IGLOKJLK@Element?5?$CFs?5required?5attribute?5?$CF@ DB 'Element' DB ' %s required attribute %s:%s has different prefix', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DD@KAGCOGBM@Element?5?$CFs?5required?5attribute?5?$CF@ CONST SEGMENT ??_C@_0DD@KAGCOGBM@Element?5?$CFs?5required?5attribute?5?$CF@ DB 'Element' DB ' %s required attribute %s:%s has no prefix', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CL@IDAGHCGO@Element?5?$CFs?5does?5not?5carry?5attri@ CONST SEGMENT ??_C@_0CL@IDAGHCGO@Element?5?$CFs?5does?5not?5carry?5attri@ DB 'Element %' DB 's does not carry attribute %s:%s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CI@KOGIECMM@Element?5?$CFs?5does?5not?5carry?5attri@ CONST SEGMENT ??_C@_0CI@KOGIECMM@Element?5?$CFs?5does?5not?5carry?5attri@ DB 'Element %' DB 's does not carry attribute %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EM@LHPMEFBO@standalone?3?5?$CFs?5declared?5in?5the?5@ CONST SEGMENT ??_C@_0EM@LHPMEFBO@standalone?3?5?$CFs?5declared?5in?5the?5@ DB 'standalo' DB 'ne: %s declared in the external subset contains white spaces ' DB 'nodes', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BG@CJHPKHPI@unknown?5element?5type?6@ CONST SEGMENT ??_C@_0BG@CJHPKHPI@unknown?5element?5type?6@ DB 'unknown element type', 0aH DB 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BM@DIBMDMIN@HTML?5Document?5not?5expected?6@ CONST SEGMENT ??_C@_0BM@DIBMDMIN@HTML?5Document?5not?5expected?6@ DB 'HTML Document not' DB ' expected', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BP@LPODOPI@Document?5element?5not?5expected?6@ CONST SEGMENT ??_C@_0BP@LPODOPI@Document?5element?5not?5expected?6@ DB 'Document elemen' DB 't not expected', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BP@FEDJMKLA@Notation?5element?5not?5expected?6@ CONST SEGMENT ??_C@_0BP@FEDJMKLA@Notation?5element?5not?5expected?6@ DB 'Notation eleme' DB 'nt not expected', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BN@CJFFIPOP@Entity?5element?5not?5expected?6@ CONST SEGMENT ??_C@_0BN@CJFFIPOP@Entity?5element?5not?5expected?6@ DB 'Entity element n' DB 'ot expected', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BP@DPPADDEP@Text?5element?5has?5no?5content?5?$CB?6@ CONST SEGMENT ??_C@_0BP@DPPADDEP@Text?5element?5has?5no?5content?5?$CB?6@ DB 'Text elem' DB 'ent has no content !', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BO@NIGEHALL@Text?5element?5has?5namespace?5?$CB?6@ CONST SEGMENT ??_C@_0BO@NIGEHALL@Text?5element?5has?5namespace?5?$CB?6@ DB 'Text elemen' DB 't has namespace !', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BN@JALMDBBB@Text?5element?5has?5children?5?$CB?6@ CONST SEGMENT ??_C@_0BN@JALMDBBB@Text?5element?5has?5children?5?$CB?6@ DB 'Text element' DB ' has children !', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CA@EPFCDFAG@Attribute?5element?5not?5expected?6@ CONST SEGMENT ??_C@_0CA@EPFCDFAG@Attribute?5element?5not?5expected?6@ DB 'Attribute ele' DB 'ment not expected', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EC@JDBIOCJK@Element?5?$CFs?5content?5does?5not?5fol@ CONST SEGMENT ??_C@_0EC@JDBIOCJK@Element?5?$CFs?5content?5does?5not?5fol@ DB 'Element %' DB 's content does not follow the DTD, Expecting more child', 0aH DB 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DO@HNMIGKJO@Element?5?$CFs?5content?5does?5not?5fol@ CONST SEGMENT ??_C@_0DO@HNMIGKJO@Element?5?$CFs?5content?5does?5not?5fol@ DB 'Element %' DB 's content does not follow the DTD, Text not allowed', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DK@BGIDCAIC@Element?5?$CFs?5content?5does?5not?5fol@ CONST SEGMENT ??_C@_0DK@BGIDCAIC@Element?5?$CFs?5content?5does?5not?5fol@ DB 'Element %' DB 's content does not follow the DTD, Misplaced %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DM@IPIENEI@Element?5?$CFs?5is?5not?5declared?5in?5?$CF@ CONST SEGMENT ??_C@_0DM@IPIENEI@Element?5?$CFs?5is?5not?5declared?5in?5?$CF@ DB 'Elemen' DB 't %s is not declared in %s list of possible children', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DN@CFJCCMLK@Element?5?$CFs?5was?5declared?5?$CDPCDATA@ CONST SEGMENT ??_C@_0DN@CFJCCMLK@Element?5?$CFs?5was?5declared?5?$CDPCDATA@ DB 'Element' DB ' %s was declared #PCDATA but contains non text nodes', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DE@KLKCMFPH@Element?5?$CFs?5was?5declared?5EMPTY?5t@ CONST SEGMENT ??_C@_0DE@KLKCMFPH@Element?5?$CFs?5was?5declared?5EMPTY?5t@ DB 'Element %' DB 's was declared EMPTY this one has content', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BP@CMBGNCIM@No?5declaration?5for?5element?5?$CFs?6@ CONST SEGMENT ??_C@_0BP@CMBGNCIM@No?5declaration?5for?5element?5?$CFs?6@ DB 'No declara' DB 'tion for element %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CC@LMJFIFCG@Internal?3?5MIXED?5struct?5corrupte@ CONST SEGMENT ??_C@_0CC@LMJFIFCG@Internal?3?5MIXED?5struct?5corrupte@ DB 'Internal: MIX' DB 'ED struct corrupted', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CJ@JFPHFAJJ@Element?5content?5does?5not?5follow@ CONST SEGMENT ??_C@_0CJ@JFPHFAJJ@Element?5content?5does?5not?5follow@ DB 'Element conte' DB 'nt does not follow the DTD', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CM@BLHDJNNL@Element?5?$CFs?5content?5does?5not?5fol@ CONST SEGMENT ??_C@_0CM@BLHDJNNL@Element?5?$CFs?5content?5does?5not?5fol@ DB 'Element %' DB 's content does not follow the DTD', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DP@CBELDNAH@Element?5content?5does?5not?5follow@ CONST SEGMENT ??_C@_0DP@CBELDNAH@Element?5content?5does?5not?5follow@ DB 'Element conte' DB 'nt does not follow the DTD, expecting %s, got %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EC@IAKGOMPC@Element?5?$CFs?5content?5does?5not?5fol@ CONST SEGMENT ??_C@_0EC@IAKGOMPC@Element?5?$CFs?5content?5does?5not?5fol@ DB 'Element %' DB 's content does not follow the DTD, expecting %s, got %s', 0aH DB 00H ; `string' CONST ENDS ; COMDAT ??_C@_03BBKEAIF@?$DP?$DP?$DP@ CONST SEGMENT ??_C@_03BBKEAIF@?$DP?$DP?$DP@ DB '???', 00H ; `string' CONST ENDS ; COMDAT ??_C@_05MLPNBPGH@CDATA@ CONST SEGMENT ??_C@_05MLPNBPGH@CDATA@ DB 'CDATA', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CO@DNGFHLPE@Value?5for?5attribute?5xmlns?5of?5?$CFs@ CONST SEGMENT ??_C@_0CO@DNGFHLPE@Value?5for?5attribute?5xmlns?5of?5?$CFs@ DB 'Value for' DB ' attribute xmlns of %s must be "%s"', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DB@DPJFCMMB@Value?5for?5attribute?5xmlns?3?$CFs?5of@ CONST SEGMENT ??_C@_0DB@DPJFCMMB@Value?5for?5attribute?5xmlns?3?$CFs?5of@ DB 'Value for' DB ' attribute xmlns:%s of %s must be "%s"', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EG@CDCEFKCM@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?5@ CONST SEGMENT ??_C@_0EG@CDCEFKCM@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?5@ DB 'Val' DB 'ue "%s" for attribute xmlns of %s is not among the enumerated' DB ' set', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EJ@PDIHKDMN@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?3@ CONST SEGMENT ??_C@_0EJ@PDIHKDMN@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?3@ DB 'Val' DB 'ue "%s" for attribute xmlns:%s of %s is not among the enumera' DB 'ted set', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EM@LDEIIDJK@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?5@ CONST SEGMENT ??_C@_0EM@LDEIIDJK@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?5@ DB 'Val' DB 'ue "%s" for attribute xmlns of %s is not among the enumerated' DB ' notations', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EP@PJCDPKEK@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?3@ CONST SEGMENT ??_C@_0EP@PJCDPKEK@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?3@ DB 'Val' DB 'ue "%s" for attribute xmlns:%s of %s is not among the enumera' DB 'ted notations', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EB@IKNIAELF@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?5@ CONST SEGMENT ??_C@_0EB@IKNIAELF@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?5@ DB 'Val' DB 'ue "%s" for attribute xmlns of %s is not a declared Notation', 0aH DB 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EE@ENPHOLHF@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?3@ CONST SEGMENT ??_C@_0EE@ENPHOLHF@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?3@ DB 'Val' DB 'ue "%s" for attribute xmlns:%s of %s is not a declared Notati' DB 'on', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EA@HGOHDHBG@Value?5for?5attribute?5xmlns?5of?5?$CFs@ CONST SEGMENT ??_C@_0EA@HGOHDHBG@Value?5for?5attribute?5xmlns?5of?5?$CFs@ DB 'Value for' DB ' attribute xmlns of %s is different from default "%s"', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0ED@KAGANNGH@Value?5for?5attribute?5xmlns?3?$CFs?5of@ CONST SEGMENT ??_C@_0ED@KAGANNGH@Value?5for?5attribute?5xmlns?3?$CFs?5of@ DB 'Value for' DB ' attribute xmlns:%s of %s is different from default "%s"', 0aH DB 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DI@HAHGLIKC@Syntax?5of?5value?5for?5attribute?5x@ CONST SEGMENT ??_C@_0DI@HAHGLIKC@Syntax?5of?5value?5for?5attribute?5x@ DB 'Syntax of va' DB 'lue for attribute xmlns of %s is not valid', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DL@CBOACJEL@Syntax?5of?5value?5for?5attribute?5x@ CONST SEGMENT ??_C@_0DL@CBOACJEL@Syntax?5of?5value?5for?5attribute?5x@ DB 'Syntax of va' DB 'lue for attribute xmlns:%s of %s is not valid', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DC@FPONLEAN@No?5declaration?5for?5attribute?5xm@ CONST SEGMENT ??_C@_0DC@FPONLEAN@No?5declaration?5for?5attribute?5xm@ DB 'No declaratio' DB 'n for attribute xmlns of element %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DF@GJIDMPBO@No?5declaration?5for?5attribute?5xm@ CONST SEGMENT ??_C@_0DF@GJIDMPBO@No?5declaration?5for?5attribute?5xm@ DB 'No declaratio' DB 'n for attribute xmlns:%s of element %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BF@INLCBMIM@Validating?5namespace@ CONST SEGMENT ??_C@_0BF@INLCBMIM@Validating?5namespace@ DB 'Validating namespace', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CL@KKBPHLEC@Value?5for?5attribute?5?$CFs?5of?5?$CFs?5mu@ CONST SEGMENT ??_C@_0CL@KKBPHLEC@Value?5for?5attribute?5?$CFs?5of?5?$CFs?5mu@ DB 'Value' DB ' for attribute %s of %s must be "%s"', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0ED@GMECILPN@Value?5?$CC?$CFs?$CC?5for?5attribute?5?$CFs?5of?5@ CONST SEGMENT ??_C@_0ED@GMECILPN@Value?5?$CC?$CFs?$CC?5for?5attribute?5?$CFs?5of?5@ DB 'V' DB 'alue "%s" for attribute %s of %s is not among the enumerated ' DB 'set', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EJ@LLDEHINL@Value?5?$CC?$CFs?$CC?5for?5attribute?5?$CFs?5of?5@ CONST SEGMENT ??_C@_0EJ@LLDEHINL@Value?5?$CC?$CFs?$CC?5for?5attribute?5?$CFs?5of?5@ DB 'V' DB 'alue "%s" for attribute %s of %s is not among the enumerated ' DB 'notations', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DO@HAIKKCN@Value?5?$CC?$CFs?$CC?5for?5attribute?5?$CFs?5of?5@ CONST SEGMENT ??_C@_0DO@HAIKKCN@Value?5?$CC?$CFs?$CC?5for?5attribute?5?$CFs?5of?5@ DB 'V' DB 'alue "%s" for attribute %s of %s is not a declared Notation', 0aH DB 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DN@BPCEOAOB@Value?5for?5attribute?5?$CFs?5of?5?$CFs?5is@ CONST SEGMENT ??_C@_0DN@BPCEOAOB@Value?5for?5attribute?5?$CFs?5of?5?$CFs?5is@ DB 'Value' DB ' for attribute %s of %s is different from default "%s"', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DF@PPLCGADM@Syntax?5of?5value?5for?5attribute?5?$CF@ CONST SEGMENT ??_C@_0DF@PPLCGADM@Syntax?5of?5value?5for?5attribute?5?$CF@ DB 'Syntax of' DB ' value for attribute %s of %s is not valid', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CP@IDGJHJLH@No?5declaration?5for?5attribute?5?$CFs@ CONST SEGMENT ??_C@_0CP@IDGJHJLH@No?5declaration?5for?5attribute?5?$CFs@ DB 'No declara' DB 'tion for attribute %s of element %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DE@PAODFKFF@Definition?5of?5?$CFs?5has?5duplicate?5@ CONST SEGMENT ??_C@_0DE@PAODFKFF@Definition?5of?5?$CFs?5has?5duplicate?5@ DB 'Definitio' DB 'n of %s has duplicate references to %s:%s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DB@HNLIHGKJ@Definition?5of?5?$CFs?5has?5duplicate?5@ CONST SEGMENT ??_C@_0DB@HNLIHGKJ@Definition?5of?5?$CFs?5has?5duplicate?5@ DB 'Definitio' DB 'n of %s has duplicate references to %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DE@IDAOJGBB@Definition?5of?5?$CFs?5has?5duplicate?5@ CONST SEGMENT ??_C@_0DE@IDAOJGBB@Definition?5of?5?$CFs?5has?5duplicate?5@ DB 'Definitio' DB 'n of %s has duplicate references of %s:%s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DB@DPGOOPFF@Definition?5of?5?$CFs?5has?5duplicate?5@ CONST SEGMENT ??_C@_0DB@DPGOOPFF@Definition?5of?5?$CFs?5has?5duplicate?5@ DB 'Definitio' DB 'n of %s has duplicate references of %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EL@MPNELAFE@Default?5value?5?$CC?$CFs?$CC?5for?5attribut@ CONST SEGMENT ??_C@_0EL@MPNELAFE@Default?5value?5?$CC?$CFs?$CC?5for?5attribut@ DB 'Defa' DB 'ult value "%s" for attribute %s of %s is not among the enumer' DB 'ated set', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EP@CFLHEJLO@Element?5?$CFs?5has?5ID?5attributes?5de@ CONST SEGMENT ??_C@_0EP@CFLHEJLO@Element?5?$CFs?5has?5ID?5attributes?5de@ DB 'Element %' DB 's has ID attributes defined in the internal and external subs' DB 'et : %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EE@JDKHGIAG@Element?5?$CFs?5has?5?$CFd?5ID?5attribute?5@ CONST SEGMENT ??_C@_0EE@JDKHGIAG@Element?5?$CFs?5has?5?$CFd?5ID?5attribute?5@ DB 'Eleme' DB 'nt %s has %d ID attribute defined in the external subset : %s' DB 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EE@MLJMMKCM@Element?5?$CFs?5has?5?$CFd?5ID?5attribute?5@ CONST SEGMENT ??_C@_0EE@MLJMMKCM@Element?5?$CFs?5has?5?$CFd?5ID?5attribute?5@ DB 'Eleme' DB 'nt %s has %d ID attribute defined in the internal subset : %s' DB 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0EC@DNHDHDCI@ID?5attribute?5?$CFs?5of?5?$CFs?5is?5not?5va@ CONST SEGMENT ??_C@_0EC@DNHDHDCI@ID?5attribute?5?$CFs?5of?5?$CFs?5is?5not?5va@ DB 'ID a' DB 'ttribute %s of %s is not valid must be #IMPLIED or #REQUIRED', 0aH DB 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DN@MJLCEKEK@Syntax?5of?5default?5value?5for?5att@ CONST SEGMENT ??_C@_0DN@MJLCEKEK@Syntax?5of?5default?5value?5for?5att@ DB 'Syntax of de' DB 'fault value for attribute %s of %s is not valid', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0FG@CJEJIEOP@standalone?3?5?$CFs?5on?5?$CFs?5value?5had?5@ CONST SEGMENT ??_C@_0FG@CJEJIEOP@standalone?3?5?$CFs?5on?5?$CFs?5value?5had?5@ DB 'stan' DB 'dalone: %s on %s value had to be normalized based on external' DB ' subset declaration', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DK@HMAANMLE@NOTATION?5attribute?5?$CFs?5reference@ CONST SEGMENT ??_C@_0DK@HMAANMLE@NOTATION?5attribute?5?$CFs?5reference@ DB 'NOTATION at' DB 'tribute %s reference an unknown notation "%s"', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DO@BNHKOEGN@ENTITIES?5attribute?5?$CFs?5reference@ CONST SEGMENT ??_C@_0DO@BNHKOEGN@ENTITIES?5attribute?5?$CFs?5reference@ DB 'ENTITIES at' DB 'tribute %s reference an entity "%s" of wrong type', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DI@MOCJGONA@ENTITIES?5attribute?5?$CFs?5reference@ CONST SEGMENT ??_C@_0DI@MOCJGONA@ENTITIES?5attribute?5?$CFs?5reference@ DB 'ENTITIES at' DB 'tribute %s reference an unknown entity "%s"', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DM@CBMBENAH@ENTITY?5attribute?5?$CFs?5reference?5a@ CONST SEGMENT ??_C@_0DM@CBMBENAH@ENTITY?5attribute?5?$CFs?5reference?5a@ DB 'ENTITY att' DB 'ribute %s reference an entity "%s" of wrong type', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DG@NHAJHAEC@ENTITY?5attribute?5?$CFs?5reference?5a@ CONST SEGMENT ??_C@_0DG@NHAJHAEC@ENTITY?5attribute?5?$CFs?5reference?5a@ DB 'ENTITY att' DB 'ribute %s reference an unknown entity "%s"', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BN@NONOBNKE@NOTATION?5?$CFs?5is?5not?5declared?6@ CONST SEGMENT ??_C@_0BN@NONOBNKE@NOTATION?5?$CFs?5is?5not?5declared?6@ DB 'NOTATION %s ' DB 'is not declared', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CA@OJAJCLMD@element?5table?5allocation?5failed@ CONST SEGMENT ??_C@_0CA@OJAJCLMD@element?5table?5allocation?5failed@ DB 'element table ' DB 'allocation failed', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CN@CLGHPEIK@xmlAddRef?3?5Reference?5list?5inser@ CONST SEGMENT ??_C@_0CN@CLGHPEIK@xmlAddRef?3?5Reference?5list?5inser@ DB 'xmlAddRef: Re' DB 'ference list insertion failed!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CM@EILGCMCJ@xmlAddRef?3?5Reference?5list?5creat@ CONST SEGMENT ??_C@_0CM@EILGCMCJ@xmlAddRef?3?5Reference?5list?5creat@ DB 'xmlAddRef: Re' DB 'ference list creation failed!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CD@JKLLCBGN@xmlAddRef?3?5Table?5creation?5faile@ CONST SEGMENT ??_C@_0CD@JKLLCBGN@xmlAddRef?3?5Table?5creation?5faile@ DB 'xmlAddRef: Ta' DB 'ble creation failed!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_01MCMALHOG@a@ CONST SEGMENT ??_C@_01MCMALHOG@a@ DB 'a', 00H ; `string' CONST ENDS ; COMDAT ??_C@_04MEMAJGDJ@name@ CONST SEGMENT ??_C@_04MEMAJGDJ@name@ DB 'name', 00H ; `string' CONST ENDS ; COMDAT ??_C@_03PJHHNEEI@xml@ CONST SEGMENT ??_C@_03PJHHNEEI@xml@ DB 'xml', 00H ; `string' CONST ENDS ; COMDAT ??_C@_02EGCJHIOB@id@ CONST SEGMENT ??_C@_02EGCJHIOB@id@ DB 'id', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BH@JKIFIOPN@ID?5?$CFs?5already?5defined?6@ CONST SEGMENT ??_C@_0BH@JKIFIOPN@ID?5?$CFs?5already?5defined?6@ DB 'ID %s already defin' DB 'ed', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CC@HPFDMDEK@xmlAddID?3?5Table?5creation?5failed@ CONST SEGMENT ??_C@_0CC@HPFDMDEK@xmlAddID?3?5Table?5creation?5failed@ DB 'xmlAddID: Tab' DB 'le creation failed!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_03KKJDKPMN@?5?$DO?6@ CONST SEGMENT ??_C@_03KKJDKPMN@?5?$DO?6@ DB ' >', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_08PAGGLANP@?5SYSTEM?5@ CONST SEGMENT ??_C@_08PAGGLANP@?5SYSTEM?5@ DB ' SYSTEM ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_08GBBLECIH@?5PUBLIC?5@ CONST SEGMENT ??_C@_08GBBLECIH@?5PUBLIC?5@ DB ' PUBLIC ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0M@IOFINGOM@?$DM?$CBNOTATION?5@ CONST SEGMENT ??_C@_0M@IOFINGOM@?$DM?$CBNOTATION?5@ DB '<!NOTATION ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CI@HFJJKKEO@xmlAddNotationDecl?3?5?$CFs?5already?5@ CONST SEGMENT ??_C@_0CI@HFJJKKEO@xmlAddNotationDecl?3?5?$CFs?5already?5@ DB 'xmlAddNota' DB 'tionDecl: %s already defined', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CM@PJBPJANJ@xmlAddNotationDecl?3?5Table?5creat@ CONST SEGMENT ??_C@_0CM@PJBPJANJ@xmlAddNotationDecl?3?5Table?5creat@ DB 'xmlAddNotation' DB 'Decl: Table creation failed!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DC@EJJFJDDL@Internal?3?5ATTRIBUTE?5struct?5corr@ CONST SEGMENT ??_C@_0DC@EJJFJDDL@Internal?3?5ATTRIBUTE?5struct?5corr@ DB 'Internal: ATT' DB 'RIBUTE struct corrupted invalid def', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_07PNOBFAOP@?5?$CDFIXED@ CONST SEGMENT ??_C@_07PNOBFAOP@?5?$CDFIXED@ DB ' #FIXED', 00H ; `string' CONST ENDS ; COMDAT ??_C@_09GOIPIIGC@?5?$CDIMPLIED@ CONST SEGMENT ??_C@_09GOIPIIGC@?5?$CDIMPLIED@ DB ' #IMPLIED', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0L@IEBFJPBC@?5?$CDREQUIRED@ CONST SEGMENT ??_C@_0L@IEBFJPBC@?5?$CDREQUIRED@ DB ' #REQUIRED', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0M@IGKIMAHJ@?5NOTATION?5?$CI@ CONST SEGMENT ??_C@_0M@IGKIMAHJ@?5NOTATION?5?$CI@ DB ' NOTATION (', 00H ; `string' CONST ENDS ; COMDAT ??_C@_02GFKOMOKH@?5?$CI@ CONST SEGMENT ??_C@_02GFKOMOKH@?5?$CI@ DB ' (', 00H ; `string' CONST ENDS ; COMDAT ??_C@_09LGAPIBOH@?5NMTOKENS@ CONST SEGMENT ??_C@_09LGAPIBOH@?5NMTOKENS@ DB ' NMTOKENS', 00H ; `string' CONST ENDS ; COMDAT ??_C@_08JLMONKHB@?5NMTOKEN@ CONST SEGMENT ??_C@_08JLMONKHB@?5NMTOKEN@ DB ' NMTOKEN', 00H ; `string' CONST ENDS ; COMDAT ??_C@_09MILPKLMO@?5ENTITIES@ CONST SEGMENT ??_C@_09MILPKLMO@?5ENTITIES@ DB ' ENTITIES', 00H ; `string' CONST ENDS ; COMDAT ??_C@_07GLIJGNMP@?5ENTITY@ CONST SEGMENT ??_C@_07GLIJGNMP@?5ENTITY@ DB ' ENTITY', 00H ; `string' CONST ENDS ; COMDAT ??_C@_07CNGJPBFB@?5IDREFS@ CONST SEGMENT ??_C@_07CNGJPBFB@?5IDREFS@ DB ' IDREFS', 00H ; `string' CONST ENDS ; COMDAT ??_C@_06JJHMNMLB@?5IDREF@ CONST SEGMENT ??_C@_06JJHMNMLB@?5IDREF@ DB ' IDREF', 00H ; `string' CONST ENDS ; COMDAT ??_C@_03JFNHLDJD@?5ID@ CONST SEGMENT ??_C@_03JFNHLDJD@?5ID@ DB ' ID', 00H ; `string' CONST ENDS ; COMDAT ??_C@_06CIOOFICG@?5CDATA@ CONST SEGMENT ??_C@_06CIOOFICG@?5CDATA@ DB ' CDATA', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0L@NDHICKFH@?$DM?$CBATTLIST?5@ CONST SEGMENT ??_C@_0L@NDHICKFH@?$DM?$CBATTLIST?5@ DB '<!ATTLIST ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_05PPEFOGKI@xmlns@ CONST SEGMENT ??_C@_05PPEFOGKI@xmlns@ DB 'xmlns', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DD@GEPJIIIF@Element?5?$CFs?5has?5too?5may?5ID?5attri@ CONST SEGMENT ??_C@_0DD@GEPJIIIF@Element?5?$CFs?5has?5too?5may?5ID?5attri@ DB 'Element ' DB '%s has too may ID attributes defined : %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CN@HJBCFPNE@Attribute?5?$CFs?5of?5element?5?$CFs?3?5alr@ CONST SEGMENT ??_C@_0CN@HJBCFPNE@Attribute?5?$CFs?5of?5element?5?$CFs?3?5alr@ DB 'Attri' DB 'bute %s of element %s: already defined', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CN@LFDBMMCB@xmlAddAttributeDecl?3?5Table?5crea@ CONST SEGMENT ??_C@_0CN@LFDBMMCB@xmlAddAttributeDecl?3?5Table?5crea@ DB 'xmlAddAttribut' DB 'eDecl: Table creation failed!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CL@IHGCOODJ@Attribute?5?$CFs?5of?5?$CFs?3?5invalid?5def@ CONST SEGMENT ??_C@_0CL@IHGCOODJ@Attribute?5?$CFs?5of?5?$CFs?3?5invalid?5def@ DB 'Attri' DB 'bute %s of %s: invalid default value', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DD@NLJCGIHL@Internal?3?5ATTRIBUTE?5struct?5corr@ CONST SEGMENT ??_C@_0DD@NLJCGIHL@Internal?3?5ATTRIBUTE?5struct?5corr@ DB 'Internal: ATT' DB 'RIBUTE struct corrupted invalid type', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DE@EJGKGKMH@Element?5?$CFs?5has?5too?5many?5ID?5attr@ CONST SEGMENT ??_C@_0DE@EJGKGKMH@Element?5?$CFs?5has?5too?5many?5ID?5attr@ DB 'Element ' DB '%s has too many ID attributes defined : %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DB@NFLGBMMC@Internal?3?5ELEMENT?5struct?5corrup@ CONST SEGMENT ??_C@_0DB@NFLGBMMC@Internal?3?5ELEMENT?5struct?5corrup@ DB 'Internal: ELE' DB 'MENT struct corrupted invalid type', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_02NEKEAGPN@?$DO?6@ CONST SEGMENT ??_C@_02NEKEAGPN@?$DO?6@ DB '>', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_01CLKCMJKC@?5@ CONST SEGMENT ??_C@_01CLKCMJKC@?5@ DB ' ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_06OMPGEGME@?5ANY?$DO?6@ CONST SEGMENT ??_C@_06OMPGEGME@?5ANY?$DO?6@ DB ' ANY>', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_08HMKELAAG@?5EMPTY?$DO?6@ CONST SEGMENT ??_C@_08HMKELAAG@?5EMPTY?$DO?6@ DB ' EMPTY>', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0L@EMLMHHFJ@?$DM?$CBELEMENT?5@ CONST SEGMENT ??_C@_0L@EMLMHHFJ@?$DM?$CBELEMENT?5@ DB '<!ELEMENT ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BM@DLJMKEJ@Redefinition?5of?5element?5?$CFs?6@ CONST SEGMENT ??_C@_0BM@DLJMKEJ@Redefinition?5of?5element?5?$CFs?6@ DB 'Redefinition of' DB ' element %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CL@IICJECDN@xmlAddElementDecl?3?5Table?5creati@ CONST SEGMENT ??_C@_0CL@IICJECDN@xmlAddElementDecl?3?5Table?5creati@ DB 'xmlAddElementD' DB 'ecl: Table creation failed!', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CP@HFIOBKAA@Internal?3?5ELEMENT?5decl?5corrupte@ CONST SEGMENT ??_C@_0CP@HFIOBKAA@Internal?3?5ELEMENT?5decl?5corrupte@ DB 'Internal: ELE' DB 'MENT decl corrupted invalid type', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DA@CFDLEHAD@xmlAddElementDecl?3?5content?5?$DN?$DN?5N@ CONST SEGMENT ??_C@_0DA@CFDLEHAD@xmlAddElementDecl?3?5content?5?$DN?$DN?5N@ DB 'xmlAddE' DB 'lementDecl: content == NULL for ELEMENT', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CO@IMMDEKCP@xmlAddElementDecl?3?5content?5?$DN?$DN?5N@ CONST SEGMENT ??_C@_0CO@IMMDEKCP@xmlAddElementDecl?3?5content?5?$DN?$DN?5N@ DB 'xmlAddE' DB 'lementDecl: content == NULL for MIXED', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CM@DBFKJMHA@xmlAddElementDecl?3?5content?5?$CB?$DN?5N@ CONST SEGMENT ??_C@_0CM@DBFKJMHA@xmlAddElementDecl?3?5content?5?$CB?$DN?5N@ DB 'xmlAddE' DB 'lementDecl: content != NULL for ANY', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CO@BLBNCGCL@xmlAddElementDecl?3?5content?5?$CB?$DN?5N@ CONST SEGMENT ??_C@_0CO@BLBNCGCL@xmlAddElementDecl?3?5content?5?$CB?$DN?5N@ DB 'xmlAddE' DB 'lementDecl: content != NULL for EMPTY', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_04IBCFJNCN@?5?4?4?4@ CONST SEGMENT ??_C@_04IBCFJNCN@?5?4?4?4@ DB ' ...', 00H ; `string' CONST ENDS ; COMDAT ??_C@_01MIFGBAGJ@?$CL@ CONST SEGMENT ??_C@_01MIFGBAGJ@?$CL@ DB '+', 00H ; `string' CONST ENDS ; COMDAT ??_C@_01NBENCBCI@?$CK@ CONST SEGMENT ??_C@_01NBENCBCI@?$CK@ DB '*', 00H ; `string' CONST ENDS ; COMDAT ??_C@_01OGPIMHDM@?$DP@ CONST SEGMENT ??_C@_01OGPIMHDM@?$DP@ DB '?', 00H ; `string' CONST ENDS ; COMDAT ??_C@_01PKGAHCOL@?$CJ@ CONST SEGMENT ??_C@_01PKGAHCOL@?$CJ@ DB ')', 00H ; `string' CONST ENDS ; COMDAT ??_C@_03LGOGDKEL@?5?$HM?5@ CONST SEGMENT ??_C@_03LGOGDKEL@?5?$HM?5@ DB ' | ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_03NKFKBEPL@?5?0?5@ CONST SEGMENT ??_C@_03NKFKBEPL@?5?0?5@ DB ' , ', 00H ; `string' CONST ENDS ; COMDAT ??_C@_01JLIPDDHJ@?3@ CONST SEGMENT ??_C@_01JLIPDDHJ@?3@ DB ':', 00H ; `string' CONST ENDS ; COMDAT ??_C@_07ELDBONKP@?$CDPCDATA@ CONST SEGMENT ??_C@_07ELDBONKP@?$CDPCDATA@ DB '#PCDATA', 00H ; `string' CONST ENDS ; COMDAT ??_C@_01ODHLEDKK@?$CI@ CONST SEGMENT ??_C@_01ODHLEDKK@?$CI@ DB '(', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0DC@GLPLFDD@Internal?3?5ELEMENT?5content?5corru@ CONST SEGMENT ??_C@_0DC@GLPLFDD@Internal?3?5ELEMENT?5content?5corru@ DB 'Internal: ELEM' DB 'ENT content corrupted invalid type', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CH@EHMNFIPD@xmlNewElementContent?5?3?5name?5?$CB?$DN?5@ CONST SEGMENT ??_C@_0CH@EHMNFIPD@xmlNewElementContent?5?3?5name?5?$CB?$DN?5@ DB 'xmlNew' DB 'ElementContent : name != NULL !', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CH@ODCBAOPP@xmlNewElementContent?5?3?5name?5?$DN?$DN?5@ CONST SEGMENT ??_C@_0CH@ODCBAOPP@xmlNewElementContent?5?3?5name?5?$DN?$DN?5@ DB 'xmlNew' DB 'ElementContent : name == NULL !', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CM@GHMIMING@Content?5model?5of?5?$CFs?5is?5not?5dete@ CONST SEGMENT ??_C@_0CM@GHMIMING@Content?5model?5of?5?$CFs?5is?5not?5dete@ DB 'Content ' DB 'model of %s is not determinist: %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CH@LILACHHH@Cannot?5create?5automata?5for?5elem@ CONST SEGMENT ??_C@_0CH@LILACHHH@Cannot?5create?5automata?5for?5elem@ DB 'Cannot create' DB ' automata for element %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CE@LMBMADBI@ContentModel?5broken?5for?5element@ CONST SEGMENT ??_C@_0CE@LMBMADBI@ContentModel?5broken?5for?5element@ DB 'ContentModel b' DB 'roken for element %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BH@INHICIGB@Building?5content?5model@ CONST SEGMENT ??_C@_0BH@INHICIGB@Building?5content?5model@ DB 'Building content model', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CF@IIHAKBAI@Found?5PCDATA?5in?5content?5model?5o@ CONST SEGMENT ??_C@_0CF@IIHAKBAI@Found?5PCDATA?5in?5content?5model?5o@ DB 'Found PCDATA' DB ' in content model of %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CL@FIAOIAHN@Found?5NULL?5content?5in?5content?5m@ CONST SEGMENT ??_C@_0CL@FIAOIAHN@Found?5NULL?5content?5in?5content?5m@ DB 'Found NULL c' DB 'ontent in content model of %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0CN@GEBFHDLO@Failed?5to?5build?5content?5model?5r@ CONST SEGMENT ??_C@_0CN@GEBFHDLO@Failed?5to?5build?5content?5model?5r@ DB 'Failed to bu' DB 'ild content model regexp for %s', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0P@BHJOIPMJ@realloc?5failed@ CONST SEGMENT ??_C@_0P@BHJOIPMJ@realloc?5failed@ DB 'realloc failed', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0O@IMHFIAOC@malloc?5failed@ CONST SEGMENT ??_C@_0O@IMHFIAOC@malloc?5failed@ DB 'malloc failed', 00H ; `string' CONST ENDS ; COMDAT ??_C@_02DKCKIIND@?$CFs@ CONST SEGMENT ??_C@_02DKCKIIND@?$CFs@ DB '%s', 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BK@GDFDKGPJ@Memory?5allocation?5failed?6@ CONST SEGMENT ??_C@_0BK@GDFDKGPJ@Memory?5allocation?5failed?6@ DB 'Memory allocation fa' DB 'iled', 0aH, 00H ; `string' CONST ENDS ; COMDAT ??_C@_0BP@DJFHNAOK@Memory?5allocation?5failed?5?3?5?$CFs?6@ CONST SEGMENT ??_C@_0BP@DJFHNAOK@Memory?5allocation?5failed?5?3?5?$CFs?6@ DB 'Memory al' DB 'location failed : %s', 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: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlNoValidityErr _TEXT SEGMENT _ctx$ = 8 ; size = 4 _msg$ = 12 ; size = 4 _xmlNoValidityErr PROC ; COMDAT ; 6960 : const char *msg ATTRIBUTE_UNUSED, ...) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 6961 : return; ; 6962 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlNoValidityErr ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateAttributeCallback _TEXT SEGMENT tv66 = -28 ; size = 4 _tree$1 = -24 ; size = 4 _elem$ = -20 ; size = 4 _doc$ = -16 ; size = 4 _ret$ = -12 ; size = 4 _ctxt$ = -8 ; size = 4 _cur$ = -4 ; size = 4 _payload$ = 8 ; size = 4 _data$ = 12 ; size = 4 _name$ = 16 ; size = 4 _xmlValidateAttributeCallback PROC ; COMDAT ; 6710 : const xmlChar *name ATTRIBUTE_UNUSED) { push ebp mov ebp, esp sub esp, 28 ; 0000001cH mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-28], eax mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 6711 : xmlAttributePtr cur = (xmlAttributePtr) payload; mov eax, DWORD PTR _payload$[ebp] mov DWORD PTR _cur$[ebp], eax ; 6712 : xmlValidCtxtPtr ctxt = (xmlValidCtxtPtr) data; mov ecx, DWORD PTR _data$[ebp] mov DWORD PTR _ctxt$[ebp], ecx ; 6713 : int ret; ; 6714 : xmlDocPtr doc; ; 6715 : xmlElementPtr elem = NULL; mov DWORD PTR _elem$[ebp], 0 ; 6716 : ; 6717 : if (cur == NULL) cmp DWORD PTR _cur$[ebp], 0 jne SHORT $LN6@xmlValidat ; 6718 : return; jmp $LN1@xmlValidat $LN6@xmlValidat: ; 6719 : switch (cur->atype) { mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+40] mov DWORD PTR tv66[ebp], eax cmp DWORD PTR tv66[ebp], 5 jl $LN2@xmlValidat cmp DWORD PTR tv66[ebp], 6 jle SHORT $LN8@xmlValidat cmp DWORD PTR tv66[ebp], 10 ; 0000000aH je SHORT $LN8@xmlValidat jmp $LN2@xmlValidat ; 6720 : case XML_ATTRIBUTE_CDATA: ; 6721 : case XML_ATTRIBUTE_ID: ; 6722 : case XML_ATTRIBUTE_IDREF : ; 6723 : case XML_ATTRIBUTE_IDREFS: ; 6724 : case XML_ATTRIBUTE_NMTOKEN: ; 6725 : case XML_ATTRIBUTE_NMTOKENS: ; 6726 : case XML_ATTRIBUTE_ENUMERATION: ; 6727 : break; jmp $LN2@xmlValidat $LN8@xmlValidat: ; 6728 : case XML_ATTRIBUTE_ENTITY: ; 6729 : case XML_ATTRIBUTE_ENTITIES: ; 6730 : case XML_ATTRIBUTE_NOTATION: ; 6731 : if (cur->defaultValue != NULL) { mov ecx, DWORD PTR _cur$[ebp] cmp DWORD PTR [ecx+48], 0 je SHORT $LN9@xmlValidat ; 6732 : ; 6733 : ret = xmlValidateAttributeValue2(ctxt, ctxt->doc, cur->name, mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+48] push eax mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+40] push edx mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+32] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlValidateAttributeValue2 add esp, 20 ; 00000014H mov DWORD PTR _ret$[ebp], eax ; 6734 : cur->atype, cur->defaultValue); ; 6735 : if ((ret == 0) && (ctxt->valid == 1)) cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN9@xmlValidat mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+36], 1 jne SHORT $LN9@xmlValidat ; 6736 : ctxt->valid = 0; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+36], 0 $LN9@xmlValidat: ; 6737 : } ; 6738 : if (cur->tree != NULL) { mov ecx, DWORD PTR _cur$[ebp] cmp DWORD PTR [ecx+52], 0 je SHORT $LN2@xmlValidat ; 6739 : xmlEnumerationPtr tree = cur->tree; mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+52] mov DWORD PTR _tree$1[ebp], eax $LN4@xmlValidat: ; 6740 : while (tree != NULL) { cmp DWORD PTR _tree$1[ebp], 0 je SHORT $LN2@xmlValidat ; 6741 : ret = xmlValidateAttributeValue2(ctxt, ctxt->doc, mov ecx, DWORD PTR _tree$1[ebp] mov edx, DWORD PTR [ecx+4] push edx mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+40] push ecx mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+32] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlValidateAttributeValue2 add esp, 20 ; 00000014H mov DWORD PTR _ret$[ebp], eax ; 6742 : cur->name, cur->atype, tree->name); ; 6743 : if ((ret == 0) && (ctxt->valid == 1)) cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN12@xmlValidat mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+36], 1 jne SHORT $LN12@xmlValidat ; 6744 : ctxt->valid = 0; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+36], 0 $LN12@xmlValidat: ; 6745 : tree = tree->next; mov eax, DWORD PTR _tree$1[ebp] mov ecx, DWORD PTR [eax] mov DWORD PTR _tree$1[ebp], ecx ; 6746 : } jmp SHORT $LN4@xmlValidat $LN2@xmlValidat: ; 6747 : } ; 6748 : } ; 6749 : if (cur->atype == XML_ATTRIBUTE_NOTATION) { mov edx, DWORD PTR _cur$[ebp] cmp DWORD PTR [edx+40], 10 ; 0000000aH jne $LN1@xmlValidat ; 6750 : doc = cur->doc; mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+32] mov DWORD PTR _doc$[ebp], ecx ; 6751 : if (cur->elem == NULL) { mov edx, DWORD PTR _cur$[ebp] cmp DWORD PTR [edx+60], 0 jne SHORT $LN14@xmlValidat ; 6752 : xmlErrValid(ctxt, XML_ERR_INTERNAL_ERROR, mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+8] push ecx push OFFSET ??_C@_0DC@EEKBOKHB@xmlValidateAttributeCallback?$CI?$CFs@ push 1 mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValid add esp, 16 ; 00000010H ; 6753 : "xmlValidateAttributeCallback(%s): internal error\n", ; 6754 : (const char *) cur->name); ; 6755 : return; jmp $LN1@xmlValidat $LN14@xmlValidat: ; 6756 : } ; 6757 : ; 6758 : if (doc != NULL) cmp DWORD PTR _doc$[ebp], 0 je SHORT $LN15@xmlValidat ; 6759 : elem = xmlGetDtdElementDesc(doc->intSubset, cur->elem); mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+60] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+44] push eax call _xmlGetDtdElementDesc add esp, 8 mov DWORD PTR _elem$[ebp], eax $LN15@xmlValidat: ; 6760 : if ((elem == NULL) && (doc != NULL)) cmp DWORD PTR _elem$[ebp], 0 jne SHORT $LN16@xmlValidat cmp DWORD PTR _doc$[ebp], 0 je SHORT $LN16@xmlValidat ; 6761 : elem = xmlGetDtdElementDesc(doc->extSubset, cur->elem); mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+60] push edx mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+48] push ecx call _xmlGetDtdElementDesc add esp, 8 mov DWORD PTR _elem$[ebp], eax $LN16@xmlValidat: ; 6762 : if ((elem == NULL) && (cur->parent != NULL) && cmp DWORD PTR _elem$[ebp], 0 jne SHORT $LN17@xmlValidat mov edx, DWORD PTR _cur$[ebp] cmp DWORD PTR [edx+20], 0 je SHORT $LN17@xmlValidat mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+20] cmp DWORD PTR [ecx+4], 14 ; 0000000eH jne SHORT $LN17@xmlValidat ; 6763 : (cur->parent->type == XML_DTD_NODE)) ; 6764 : elem = xmlGetDtdElementDesc((xmlDtdPtr) cur->parent, cur->elem); mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+60] push eax mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+20] push edx call _xmlGetDtdElementDesc add esp, 8 mov DWORD PTR _elem$[ebp], eax $LN17@xmlValidat: ; 6765 : if (elem == NULL) { cmp DWORD PTR _elem$[ebp], 0 jne SHORT $LN18@xmlValidat ; 6766 : xmlErrValidNode(ctxt, NULL, XML_DTD_UNKNOWN_ELEM, push 0 mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+60] push ecx mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+8] push eax push OFFSET ??_C@_0DC@CHBKELEG@attribute?5?$CFs?3?5could?5not?5find?5de@ push 534 ; 00000216H push 0 mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6767 : "attribute %s: could not find decl for element %s\n", ; 6768 : cur->name, cur->elem, NULL); ; 6769 : return; jmp SHORT $LN1@xmlValidat $LN18@xmlValidat: ; 6770 : } ; 6771 : if (elem->etype == XML_ELEMENT_TYPE_EMPTY) { mov edx, DWORD PTR _elem$[ebp] cmp DWORD PTR [edx+36], 1 jne SHORT $LN1@xmlValidat ; 6772 : xmlErrValidNode(ctxt, NULL, XML_DTD_EMPTY_NOTATION, push 0 mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+60] push ecx mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+8] push eax push OFFSET ??_C@_0DF@KBMCJLCB@NOTATION?5attribute?5?$CFs?5declared?5@ push 510 ; 000001feH push 0 mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6773 : "NOTATION attribute %s declared for EMPTY element %s\n", ; 6774 : cur->name, cur->elem, NULL); ; 6775 : ctxt->valid = 0; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+36], 0 $LN1@xmlValidat: ; 6776 : } ; 6777 : } ; 6778 : } add esp, 28 ; 0000001cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlValidateAttributeCallback ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateNotationCallback _TEXT SEGMENT _ret$1 = -16 ; size = 4 _notation$2 = -12 ; size = 4 _ctxt$ = -8 ; size = 4 _cur$ = -4 ; size = 4 _payload$ = 8 ; size = 4 _data$ = 12 ; size = 4 _name$ = 16 ; size = 4 _xmlValidateNotationCallback PROC ; COMDAT ; 6689 : const xmlChar *name ATTRIBUTE_UNUSED) { push ebp mov ebp, esp sub esp, 16 ; 00000010H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 6690 : xmlEntityPtr cur = (xmlEntityPtr) payload; mov eax, DWORD PTR _payload$[ebp] mov DWORD PTR _cur$[ebp], eax ; 6691 : xmlValidCtxtPtr ctxt = (xmlValidCtxtPtr) data; mov ecx, DWORD PTR _data$[ebp] mov DWORD PTR _ctxt$[ebp], ecx ; 6692 : if (cur == NULL) cmp DWORD PTR _cur$[ebp], 0 jne SHORT $LN2@xmlValidat ; 6693 : return; jmp SHORT $LN1@xmlValidat $LN2@xmlValidat: ; 6694 : if (cur->etype == XML_EXTERNAL_GENERAL_UNPARSED_ENTITY) { mov edx, DWORD PTR _cur$[ebp] cmp DWORD PTR [edx+48], 3 jne SHORT $LN1@xmlValidat ; 6695 : xmlChar *notation = cur->content; mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+40] mov DWORD PTR _notation$2[ebp], ecx ; 6696 : ; 6697 : if (notation != NULL) { cmp DWORD PTR _notation$2[ebp], 0 je SHORT $LN1@xmlValidat ; 6698 : int ret; ; 6699 : ; 6700 : ret = xmlValidateNotationUse(ctxt, cur->doc, notation); mov edx, DWORD PTR _notation$2[ebp] push edx mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+32] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlValidateNotationUse add esp, 12 ; 0000000cH mov DWORD PTR _ret$1[ebp], eax ; 6701 : if (ret != 1) { cmp DWORD PTR _ret$1[ebp], 1 je SHORT $LN1@xmlValidat ; 6702 : ctxt->valid = 0; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+36], 0 $LN1@xmlValidat: ; 6703 : } ; 6704 : } ; 6705 : } ; 6706 : } add esp, 16 ; 00000010H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlValidateNotationCallback ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateCheckRefCallback _TEXT SEGMENT _memo$ = -20 ; size = 8 _ctxt$ = -8 ; size = 4 _ref_list$ = -4 ; size = 4 _payload$ = 8 ; size = 4 _data$ = 12 ; size = 4 _name$ = 16 ; size = 4 _xmlValidateCheckRefCallback PROC ; COMDAT ; 6573 : xmlValidateCheckRefCallback(void *payload, void *data, const xmlChar *name) { push ebp mov ebp, esp sub esp, 24 ; 00000018H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 6574 : xmlListPtr ref_list = (xmlListPtr) payload; mov eax, DWORD PTR _payload$[ebp] mov DWORD PTR _ref_list$[ebp], eax ; 6575 : xmlValidCtxtPtr ctxt = (xmlValidCtxtPtr) data; mov ecx, DWORD PTR _data$[ebp] mov DWORD PTR _ctxt$[ebp], ecx ; 6576 : xmlValidateMemo memo; ; 6577 : ; 6578 : if (ref_list == NULL) cmp DWORD PTR _ref_list$[ebp], 0 jne SHORT $LN2@xmlValidat ; 6579 : return; jmp SHORT $LN1@xmlValidat $LN2@xmlValidat: ; 6580 : memo.ctxt = ctxt; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR _memo$[ebp], edx ; 6581 : memo.name = name; mov eax, DWORD PTR _name$[ebp] mov DWORD PTR _memo$[ebp+4], eax ; 6582 : ; 6583 : xmlListWalk(ref_list, xmlWalkValidateList, &memo); lea ecx, DWORD PTR _memo$[ebp] push ecx push OFFSET _xmlWalkValidateList mov edx, DWORD PTR _ref_list$[ebp] push edx call _xmlListWalk add esp, 12 ; 0000000cH $LN1@xmlValidat: ; 6584 : ; 6585 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN6@xmlValidat call @_RTC_CheckStackVars@8 pop eax pop edx add esp, 24 ; 00000018H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 1 $LN6@xmlValidat: DD 1 DD $LN5@xmlValidat $LN5@xmlValidat: DD -20 ; ffffffecH DD 8 DD $LN4@xmlValidat $LN4@xmlValidat: DB 109 ; 0000006dH DB 101 ; 00000065H DB 109 ; 0000006dH DB 111 ; 0000006fH DB 0 _xmlValidateCheckRefCallback ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlWalkValidateList _TEXT SEGMENT _memo$ = -4 ; size = 4 _data$ = 8 ; size = 4 _user$ = 12 ; size = 4 _xmlWalkValidateList PROC ; COMDAT ; 6559 : { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 6560 : xmlValidateMemoPtr memo = (xmlValidateMemoPtr)user; mov eax, DWORD PTR _user$[ebp] mov DWORD PTR _memo$[ebp], eax ; 6561 : xmlValidateRef((xmlRefPtr)data, memo->ctxt, memo->name); mov ecx, DWORD PTR _memo$[ebp] mov edx, DWORD PTR [ecx+4] push edx mov eax, DWORD PTR _memo$[ebp] mov ecx, DWORD PTR [eax] push ecx mov edx, DWORD PTR _data$[ebp] push edx call _xmlValidateRef add esp, 12 ; 0000000cH ; 6562 : return 1; mov eax, 1 ; 6563 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlWalkValidateList ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateRef _TEXT SEGMENT _save$1 = -37 ; size = 1 _cur$2 = -36 ; size = 4 _str$3 = -32 ; size = 4 _dup$4 = -28 ; size = 4 _save$5 = -21 ; size = 1 _cur$6 = -20 ; size = 4 _str$7 = -16 ; size = 4 _dup$8 = -12 ; size = 4 _attr$ = -8 ; size = 4 _id$ = -4 ; size = 4 _ref$ = 8 ; size = 4 _ctxt$ = 12 ; size = 4 _name$ = 16 ; size = 4 _xmlValidateRef PROC ; COMDAT ; 6475 : const xmlChar *name) { push ebp mov ebp, esp sub esp, 40 ; 00000028H push esi push edi lea edi, DWORD PTR [ebp-40] mov ecx, 10 ; 0000000aH mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 6476 : xmlAttrPtr id; ; 6477 : xmlAttrPtr attr; ; 6478 : ; 6479 : if (ref == NULL) cmp DWORD PTR _ref$[ebp], 0 jne SHORT $LN14@xmlValidat ; 6480 : return; jmp $LN1@xmlValidat $LN14@xmlValidat: ; 6481 : if ((ref->attr == NULL) && (ref->name == NULL)) mov eax, DWORD PTR _ref$[ebp] cmp DWORD PTR [eax+8], 0 jne SHORT $LN15@xmlValidat mov ecx, DWORD PTR _ref$[ebp] cmp DWORD PTR [ecx+12], 0 jne SHORT $LN15@xmlValidat ; 6482 : return; jmp $LN1@xmlValidat $LN15@xmlValidat: ; 6483 : attr = ref->attr; mov edx, DWORD PTR _ref$[ebp] mov eax, DWORD PTR [edx+8] mov DWORD PTR _attr$[ebp], eax ; 6484 : if (attr == NULL) { cmp DWORD PTR _attr$[ebp], 0 jne $LN16@xmlValidat ; 6485 : xmlChar *dup, *str = NULL, *cur, save; mov DWORD PTR _str$7[ebp], 0 ; 6486 : ; 6487 : dup = xmlStrdup(name); mov ecx, DWORD PTR _name$[ebp] push ecx call _xmlStrdup add esp, 4 mov DWORD PTR _dup$8[ebp], eax ; 6488 : if (dup == NULL) { cmp DWORD PTR _dup$8[ebp], 0 jne SHORT $LN18@xmlValidat ; 6489 : ctxt->valid = 0; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+36], 0 ; 6490 : return; jmp $LN1@xmlValidat $LN18@xmlValidat: ; 6491 : } ; 6492 : cur = dup; mov eax, DWORD PTR _dup$8[ebp] mov DWORD PTR _cur$6[ebp], eax $LN2@xmlValidat: ; 6493 : while (*cur != 0) { mov ecx, DWORD PTR _cur$6[ebp] movzx edx, BYTE PTR [ecx] test edx, edx je $LN3@xmlValidat ; 6494 : str = cur; mov eax, DWORD PTR _cur$6[ebp] mov DWORD PTR _str$7[ebp], eax $LN4@xmlValidat: ; 6495 : while ((*cur != 0) && (!IS_BLANK_CH(*cur))) cur++; mov ecx, DWORD PTR _cur$6[ebp] movzx edx, BYTE PTR [ecx] test edx, edx je SHORT $LN5@xmlValidat mov eax, DWORD PTR _cur$6[ebp] movzx ecx, BYTE PTR [eax] cmp ecx, 32 ; 00000020H je SHORT $LN5@xmlValidat mov edx, DWORD PTR _cur$6[ebp] movzx eax, BYTE PTR [edx] cmp eax, 9 jl SHORT $LN19@xmlValidat mov ecx, DWORD PTR _cur$6[ebp] movzx edx, BYTE PTR [ecx] cmp edx, 10 ; 0000000aH jle SHORT $LN5@xmlValidat $LN19@xmlValidat: mov eax, DWORD PTR _cur$6[ebp] movzx ecx, BYTE PTR [eax] cmp ecx, 13 ; 0000000dH je SHORT $LN5@xmlValidat mov edx, DWORD PTR _cur$6[ebp] add edx, 1 mov DWORD PTR _cur$6[ebp], edx jmp SHORT $LN4@xmlValidat $LN5@xmlValidat: ; 6496 : save = *cur; mov eax, DWORD PTR _cur$6[ebp] mov cl, BYTE PTR [eax] mov BYTE PTR _save$5[ebp], cl ; 6497 : *cur = 0; mov edx, DWORD PTR _cur$6[ebp] mov BYTE PTR [edx], 0 ; 6498 : id = xmlGetID(ctxt->doc, str); mov eax, DWORD PTR _str$7[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+32] push edx call _xmlGetID add esp, 8 mov DWORD PTR _id$[ebp], eax ; 6499 : if (id == NULL) { cmp DWORD PTR _id$[ebp], 0 jne SHORT $LN20@xmlValidat ; 6500 : xmlErrValidNodeNr(ctxt, NULL, XML_DTD_UNKNOWN_ID, mov eax, DWORD PTR _str$7[ebp] push eax mov ecx, DWORD PTR _ref$[ebp] mov edx, DWORD PTR [ecx+16] push edx mov eax, DWORD PTR _ref$[ebp] mov ecx, DWORD PTR [eax+12] push ecx push OFFSET ??_C@_0DE@GLBIFDCC@attribute?5?$CFs?5line?5?$CFd?5references@ push 536 ; 00000218H push 0 mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNodeNr add esp, 28 ; 0000001cH ; 6501 : "attribute %s line %d references an unknown ID \"%s\"\n", ; 6502 : ref->name, ref->lineno, str); ; 6503 : ctxt->valid = 0; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+36], 0 $LN20@xmlValidat: ; 6504 : } ; 6505 : if (save == 0) movzx ecx, BYTE PTR _save$5[ebp] test ecx, ecx jne SHORT $LN21@xmlValidat ; 6506 : break; jmp SHORT $LN3@xmlValidat $LN21@xmlValidat: ; 6507 : *cur = save; mov edx, DWORD PTR _cur$6[ebp] mov al, BYTE PTR _save$5[ebp] mov BYTE PTR [edx], al $LN6@xmlValidat: ; 6508 : while (IS_BLANK_CH(*cur)) cur++; mov ecx, DWORD PTR _cur$6[ebp] movzx edx, BYTE PTR [ecx] cmp edx, 32 ; 00000020H je SHORT $LN22@xmlValidat mov eax, DWORD PTR _cur$6[ebp] movzx ecx, BYTE PTR [eax] cmp ecx, 9 jl SHORT $LN23@xmlValidat mov edx, DWORD PTR _cur$6[ebp] movzx eax, BYTE PTR [edx] cmp eax, 10 ; 0000000aH jle SHORT $LN22@xmlValidat $LN23@xmlValidat: mov ecx, DWORD PTR _cur$6[ebp] movzx edx, BYTE PTR [ecx] cmp edx, 13 ; 0000000dH jne SHORT $LN7@xmlValidat $LN22@xmlValidat: mov eax, DWORD PTR _cur$6[ebp] add eax, 1 mov DWORD PTR _cur$6[ebp], eax jmp SHORT $LN6@xmlValidat $LN7@xmlValidat: ; 6509 : } jmp $LN2@xmlValidat $LN3@xmlValidat: ; 6510 : xmlFree(dup); mov esi, esp mov ecx, DWORD PTR _dup$8[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp jmp $LN1@xmlValidat $LN16@xmlValidat: ; 6511 : } else if (attr->atype == XML_ATTRIBUTE_IDREF) { mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+40], 3 jne SHORT $LN24@xmlValidat ; 6512 : id = xmlGetID(ctxt->doc, name); mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+32] push edx call _xmlGetID add esp, 8 mov DWORD PTR _id$[ebp], eax ; 6513 : if (id == NULL) { cmp DWORD PTR _id$[ebp], 0 jne SHORT $LN26@xmlValidat ; 6514 : xmlErrValidNode(ctxt, attr->parent, XML_DTD_UNKNOWN_ID, push 0 mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+8] push edx push OFFSET ??_C@_0DC@HOBCELJH@IDREF?5attribute?5?$CFs?5references?5a@ push 536 ; 00000218H mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+20] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6515 : "IDREF attribute %s references an unknown ID \"%s\"\n", ; 6516 : attr->name, name, NULL); ; 6517 : ctxt->valid = 0; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+36], 0 $LN26@xmlValidat: ; 6518 : } jmp $LN1@xmlValidat $LN24@xmlValidat: ; 6519 : } else if (attr->atype == XML_ATTRIBUTE_IDREFS) { mov ecx, DWORD PTR _attr$[ebp] cmp DWORD PTR [ecx+40], 4 jne $LN1@xmlValidat ; 6520 : xmlChar *dup, *str = NULL, *cur, save; mov DWORD PTR _str$3[ebp], 0 ; 6521 : ; 6522 : dup = xmlStrdup(name); mov edx, DWORD PTR _name$[ebp] push edx call _xmlStrdup add esp, 4 mov DWORD PTR _dup$4[ebp], eax ; 6523 : if (dup == NULL) { cmp DWORD PTR _dup$4[ebp], 0 jne SHORT $LN28@xmlValidat ; 6524 : xmlVErrMemory(ctxt, "IDREFS split"); push OFFSET ??_C@_0N@BBOKCKMC@IDREFS?5split@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlVErrMemory add esp, 8 ; 6525 : ctxt->valid = 0; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+36], 0 ; 6526 : return; jmp $LN1@xmlValidat $LN28@xmlValidat: ; 6527 : } ; 6528 : cur = dup; mov edx, DWORD PTR _dup$4[ebp] mov DWORD PTR _cur$2[ebp], edx $LN8@xmlValidat: ; 6529 : while (*cur != 0) { mov eax, DWORD PTR _cur$2[ebp] movzx ecx, BYTE PTR [eax] test ecx, ecx je $LN9@xmlValidat ; 6530 : str = cur; mov edx, DWORD PTR _cur$2[ebp] mov DWORD PTR _str$3[ebp], edx $LN10@xmlValidat: ; 6531 : while ((*cur != 0) && (!IS_BLANK_CH(*cur))) cur++; mov eax, DWORD PTR _cur$2[ebp] movzx ecx, BYTE PTR [eax] test ecx, ecx je SHORT $LN11@xmlValidat mov edx, DWORD PTR _cur$2[ebp] movzx eax, BYTE PTR [edx] cmp eax, 32 ; 00000020H je SHORT $LN11@xmlValidat mov ecx, DWORD PTR _cur$2[ebp] movzx edx, BYTE PTR [ecx] cmp edx, 9 jl SHORT $LN29@xmlValidat mov eax, DWORD PTR _cur$2[ebp] movzx ecx, BYTE PTR [eax] cmp ecx, 10 ; 0000000aH jle SHORT $LN11@xmlValidat $LN29@xmlValidat: mov edx, DWORD PTR _cur$2[ebp] movzx eax, BYTE PTR [edx] cmp eax, 13 ; 0000000dH je SHORT $LN11@xmlValidat mov ecx, DWORD PTR _cur$2[ebp] add ecx, 1 mov DWORD PTR _cur$2[ebp], ecx jmp SHORT $LN10@xmlValidat $LN11@xmlValidat: ; 6532 : save = *cur; mov edx, DWORD PTR _cur$2[ebp] mov al, BYTE PTR [edx] mov BYTE PTR _save$1[ebp], al ; 6533 : *cur = 0; mov ecx, DWORD PTR _cur$2[ebp] mov BYTE PTR [ecx], 0 ; 6534 : id = xmlGetID(ctxt->doc, str); mov edx, DWORD PTR _str$3[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+32] push ecx call _xmlGetID add esp, 8 mov DWORD PTR _id$[ebp], eax ; 6535 : if (id == NULL) { cmp DWORD PTR _id$[ebp], 0 jne SHORT $LN30@xmlValidat ; 6536 : xmlErrValidNode(ctxt, attr->parent, XML_DTD_UNKNOWN_ID, push 0 mov edx, DWORD PTR _str$3[ebp] push edx mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx push OFFSET ??_C@_0DD@JBMPIAIH@IDREFS?5attribute?5?$CFs?5references?5@ push 536 ; 00000218H mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+20] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6537 : "IDREFS attribute %s references an unknown ID \"%s\"\n", ; 6538 : attr->name, str, NULL); ; 6539 : ctxt->valid = 0; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+36], 0 $LN30@xmlValidat: ; 6540 : } ; 6541 : if (save == 0) movzx eax, BYTE PTR _save$1[ebp] test eax, eax jne SHORT $LN31@xmlValidat ; 6542 : break; jmp SHORT $LN9@xmlValidat $LN31@xmlValidat: ; 6543 : *cur = save; mov ecx, DWORD PTR _cur$2[ebp] mov dl, BYTE PTR _save$1[ebp] mov BYTE PTR [ecx], dl $LN12@xmlValidat: ; 6544 : while (IS_BLANK_CH(*cur)) cur++; mov eax, DWORD PTR _cur$2[ebp] movzx ecx, BYTE PTR [eax] cmp ecx, 32 ; 00000020H je SHORT $LN32@xmlValidat mov edx, DWORD PTR _cur$2[ebp] movzx eax, BYTE PTR [edx] cmp eax, 9 jl SHORT $LN33@xmlValidat mov ecx, DWORD PTR _cur$2[ebp] movzx edx, BYTE PTR [ecx] cmp edx, 10 ; 0000000aH jle SHORT $LN32@xmlValidat $LN33@xmlValidat: mov eax, DWORD PTR _cur$2[ebp] movzx ecx, BYTE PTR [eax] cmp ecx, 13 ; 0000000dH jne SHORT $LN13@xmlValidat $LN32@xmlValidat: mov edx, DWORD PTR _cur$2[ebp] add edx, 1 mov DWORD PTR _cur$2[ebp], edx jmp SHORT $LN12@xmlValidat $LN13@xmlValidat: ; 6545 : } jmp $LN8@xmlValidat $LN9@xmlValidat: ; 6546 : xmlFree(dup); mov esi, esp mov eax, DWORD PTR _dup$4[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN1@xmlValidat: ; 6547 : } ; 6548 : } pop edi pop esi add esp, 40 ; 00000028H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlValidateRef ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidGetElemDecl _TEXT SEGMENT _prefix$ = -8 ; size = 4 _elemDecl$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _elem$ = 16 ; size = 4 _extsubset$ = 20 ; size = 4 _xmlValidGetElemDecl PROC ; COMDAT ; 5691 : xmlNodePtr elem, int *extsubset) { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 5692 : xmlElementPtr elemDecl = NULL; mov DWORD PTR _elemDecl$[ebp], 0 ; 5693 : const xmlChar *prefix = NULL; mov DWORD PTR _prefix$[ebp], 0 ; 5694 : ; 5695 : if ((ctxt == NULL) || (doc == NULL) || ; 5696 : (elem == NULL) || (elem->name == NULL)) cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN3@xmlValidGe cmp DWORD PTR _doc$[ebp], 0 je SHORT $LN3@xmlValidGe cmp DWORD PTR _elem$[ebp], 0 je SHORT $LN3@xmlValidGe mov eax, DWORD PTR _elem$[ebp] cmp DWORD PTR [eax+8], 0 jne SHORT $LN2@xmlValidGe $LN3@xmlValidGe: ; 5697 : return(NULL); xor eax, eax jmp $LN1@xmlValidGe $LN2@xmlValidGe: ; 5698 : if (extsubset != NULL) cmp DWORD PTR _extsubset$[ebp], 0 je SHORT $LN4@xmlValidGe ; 5699 : *extsubset = 0; mov ecx, DWORD PTR _extsubset$[ebp] mov DWORD PTR [ecx], 0 $LN4@xmlValidGe: ; 5700 : ; 5701 : /* ; 5702 : * Fetch the declaration for the qualified name ; 5703 : */ ; 5704 : if ((elem->ns != NULL) && (elem->ns->prefix != NULL)) mov edx, DWORD PTR _elem$[ebp] cmp DWORD PTR [edx+36], 0 je SHORT $LN5@xmlValidGe mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+36] cmp DWORD PTR [ecx+12], 0 je SHORT $LN5@xmlValidGe ; 5705 : prefix = elem->ns->prefix; mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+36] mov ecx, DWORD PTR [eax+12] mov DWORD PTR _prefix$[ebp], ecx $LN5@xmlValidGe: ; 5706 : ; 5707 : if (prefix != NULL) { cmp DWORD PTR _prefix$[ebp], 0 je SHORT $LN6@xmlValidGe ; 5708 : elemDecl = xmlGetDtdQElementDesc(doc->intSubset, mov edx, DWORD PTR _prefix$[ebp] push edx mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+44] push eax call _xmlGetDtdQElementDesc add esp, 12 ; 0000000cH mov DWORD PTR _elemDecl$[ebp], eax ; 5709 : elem->name, prefix); ; 5710 : if ((elemDecl == NULL) && (doc->extSubset != NULL)) { cmp DWORD PTR _elemDecl$[ebp], 0 jne SHORT $LN6@xmlValidGe mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+48], 0 je SHORT $LN6@xmlValidGe ; 5711 : elemDecl = xmlGetDtdQElementDesc(doc->extSubset, mov edx, DWORD PTR _prefix$[ebp] push edx mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+48] push eax call _xmlGetDtdQElementDesc add esp, 12 ; 0000000cH mov DWORD PTR _elemDecl$[ebp], eax ; 5712 : elem->name, prefix); ; 5713 : if ((elemDecl != NULL) && (extsubset != NULL)) cmp DWORD PTR _elemDecl$[ebp], 0 je SHORT $LN6@xmlValidGe cmp DWORD PTR _extsubset$[ebp], 0 je SHORT $LN6@xmlValidGe ; 5714 : *extsubset = 1; mov ecx, DWORD PTR _extsubset$[ebp] mov DWORD PTR [ecx], 1 $LN6@xmlValidGe: ; 5715 : } ; 5716 : } ; 5717 : ; 5718 : /* ; 5719 : * Fetch the declaration for the non qualified name ; 5720 : * This is "non-strict" validation should be done on the ; 5721 : * full QName but in that case being flexible makes sense. ; 5722 : */ ; 5723 : if (elemDecl == NULL) { cmp DWORD PTR _elemDecl$[ebp], 0 jne SHORT $LN9@xmlValidGe ; 5724 : elemDecl = xmlGetDtdElementDesc(doc->intSubset, elem->name); mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+44] push edx call _xmlGetDtdElementDesc add esp, 8 mov DWORD PTR _elemDecl$[ebp], eax ; 5725 : if ((elemDecl == NULL) && (doc->extSubset != NULL)) { cmp DWORD PTR _elemDecl$[ebp], 0 jne SHORT $LN9@xmlValidGe mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+48], 0 je SHORT $LN9@xmlValidGe ; 5726 : elemDecl = xmlGetDtdElementDesc(doc->extSubset, elem->name); mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+48] push ecx call _xmlGetDtdElementDesc add esp, 8 mov DWORD PTR _elemDecl$[ebp], eax ; 5727 : if ((elemDecl != NULL) && (extsubset != NULL)) cmp DWORD PTR _elemDecl$[ebp], 0 je SHORT $LN9@xmlValidGe cmp DWORD PTR _extsubset$[ebp], 0 je SHORT $LN9@xmlValidGe ; 5728 : *extsubset = 1; mov edx, DWORD PTR _extsubset$[ebp] mov DWORD PTR [edx], 1 $LN9@xmlValidGe: ; 5729 : } ; 5730 : } ; 5731 : if (elemDecl == NULL) { cmp DWORD PTR _elemDecl$[ebp], 0 jne SHORT $LN12@xmlValidGe ; 5732 : xmlErrValidNode(ctxt, elem, push 0 push 0 mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx push OFFSET ??_C@_0BP@CMBGNCIM@No?5declaration?5for?5element?5?$CFs?6@ push 534 ; 00000216H mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH $LN12@xmlValidGe: ; 5733 : XML_DTD_UNKNOWN_ELEM, ; 5734 : "No declaration for element %s\n", ; 5735 : elem->name, NULL, NULL); ; 5736 : } ; 5737 : return(elemDecl); mov eax, DWORD PTR _elemDecl$[ebp] $LN1@xmlValidGe: ; 5738 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlValidGetElemDecl ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateCheckMixed _TEXT SEGMENT _plen$ = -12 ; size = 4 _name$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _cont$ = 12 ; size = 4 _qname$ = 16 ; size = 4 _xmlValidateCheckMixed PROC ; COMDAT ; 5623 : xmlElementContentPtr cont, const xmlChar *qname) { push ebp mov ebp, esp sub esp, 16 ; 00000010H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 5624 : const xmlChar *name; ; 5625 : int plen; ; 5626 : name = xmlSplitQName3(qname, &plen); lea eax, DWORD PTR _plen$[ebp] push eax mov ecx, DWORD PTR _qname$[ebp] push ecx call _xmlSplitQName3 add esp, 8 mov DWORD PTR _name$[ebp], eax ; 5627 : ; 5628 : if (name == NULL) { cmp DWORD PTR _name$[ebp], 0 jne $LN4@xmlValidat $LN2@xmlValidat: ; 5629 : while (cont != NULL) { cmp DWORD PTR _cont$[ebp], 0 je $LN3@xmlValidat ; 5630 : if (cont->type == XML_ELEMENT_CONTENT_ELEMENT) { mov edx, DWORD PTR _cont$[ebp] cmp DWORD PTR [edx], 2 jne SHORT $LN8@xmlValidat ; 5631 : if ((cont->prefix == NULL) && (xmlStrEqual(cont->name, qname))) mov eax, DWORD PTR _cont$[ebp] cmp DWORD PTR [eax+24], 0 jne SHORT $LN10@xmlValidat mov ecx, DWORD PTR _qname$[ebp] push ecx mov edx, DWORD PTR _cont$[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN10@xmlValidat ; 5632 : return(1); mov eax, 1 jmp $LN1@xmlValidat $LN10@xmlValidat: ; 5633 : } else if ((cont->type == XML_ELEMENT_CONTENT_OR) && jmp $LN9@xmlValidat $LN8@xmlValidat: ; 5634 : (cont->c1 != NULL) && mov ecx, DWORD PTR _cont$[ebp] cmp DWORD PTR [ecx], 4 jne SHORT $LN11@xmlValidat mov edx, DWORD PTR _cont$[ebp] cmp DWORD PTR [edx+12], 0 je SHORT $LN11@xmlValidat mov eax, DWORD PTR _cont$[ebp] mov ecx, DWORD PTR [eax+12] cmp DWORD PTR [ecx], 2 jne SHORT $LN11@xmlValidat ; 5635 : (cont->c1->type == XML_ELEMENT_CONTENT_ELEMENT)){ ; 5636 : if ((cont->c1->prefix == NULL) && mov edx, DWORD PTR _cont$[ebp] mov eax, DWORD PTR [edx+12] cmp DWORD PTR [eax+24], 0 jne SHORT $LN13@xmlValidat mov ecx, DWORD PTR _qname$[ebp] push ecx mov edx, DWORD PTR _cont$[ebp] mov eax, DWORD PTR [edx+12] mov ecx, DWORD PTR [eax+8] push ecx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN13@xmlValidat ; 5637 : (xmlStrEqual(cont->c1->name, qname))) ; 5638 : return(1); mov eax, 1 jmp $LN1@xmlValidat $LN13@xmlValidat: ; 5639 : } else if ((cont->type != XML_ELEMENT_CONTENT_OR) || jmp SHORT $LN9@xmlValidat $LN11@xmlValidat: ; 5640 : (cont->c1 == NULL) || mov edx, DWORD PTR _cont$[ebp] cmp DWORD PTR [edx], 4 jne SHORT $LN15@xmlValidat mov eax, DWORD PTR _cont$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN15@xmlValidat mov ecx, DWORD PTR _cont$[ebp] mov edx, DWORD PTR [ecx+12] cmp DWORD PTR [edx], 1 je SHORT $LN9@xmlValidat $LN15@xmlValidat: ; 5641 : (cont->c1->type != XML_ELEMENT_CONTENT_PCDATA)){ ; 5642 : xmlErrValid(NULL, XML_DTD_MIXED_CORRUPT, push 0 push OFFSET ??_C@_0CC@LMJFIFCG@Internal?3?5MIXED?5struct?5corrupte@ push 519 ; 00000207H push 0 call _xmlErrValid add esp, 16 ; 00000010H ; 5643 : "Internal: MIXED struct corrupted\n", ; 5644 : NULL); ; 5645 : break; jmp SHORT $LN3@xmlValidat $LN9@xmlValidat: ; 5646 : } ; 5647 : cont = cont->c2; mov eax, DWORD PTR _cont$[ebp] mov ecx, DWORD PTR [eax+16] mov DWORD PTR _cont$[ebp], ecx ; 5648 : } jmp $LN2@xmlValidat $LN3@xmlValidat: ; 5649 : } else { jmp $LN7@xmlValidat $LN4@xmlValidat: ; 5650 : while (cont != NULL) { cmp DWORD PTR _cont$[ebp], 0 je $LN7@xmlValidat ; 5651 : if (cont->type == XML_ELEMENT_CONTENT_ELEMENT) { mov edx, DWORD PTR _cont$[ebp] cmp DWORD PTR [edx], 2 jne SHORT $LN16@xmlValidat ; 5652 : if ((cont->prefix != NULL) && ; 5653 : (xmlStrncmp(cont->prefix, qname, plen) == 0) && mov eax, DWORD PTR _cont$[ebp] cmp DWORD PTR [eax+24], 0 je SHORT $LN18@xmlValidat mov ecx, DWORD PTR _plen$[ebp] push ecx mov edx, DWORD PTR _qname$[ebp] push edx mov eax, DWORD PTR _cont$[ebp] mov ecx, DWORD PTR [eax+24] push ecx call _xmlStrncmp add esp, 12 ; 0000000cH test eax, eax jne SHORT $LN18@xmlValidat mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _cont$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN18@xmlValidat ; 5654 : (xmlStrEqual(cont->name, name))) ; 5655 : return(1); mov eax, 1 jmp $LN1@xmlValidat $LN18@xmlValidat: ; 5656 : } else if ((cont->type == XML_ELEMENT_CONTENT_OR) && jmp $LN17@xmlValidat $LN16@xmlValidat: ; 5657 : (cont->c1 != NULL) && mov edx, DWORD PTR _cont$[ebp] cmp DWORD PTR [edx], 4 jne SHORT $LN19@xmlValidat mov eax, DWORD PTR _cont$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN19@xmlValidat mov ecx, DWORD PTR _cont$[ebp] mov edx, DWORD PTR [ecx+12] cmp DWORD PTR [edx], 2 jne SHORT $LN19@xmlValidat ; 5658 : (cont->c1->type == XML_ELEMENT_CONTENT_ELEMENT)){ ; 5659 : if ((cont->c1->prefix != NULL) && ; 5660 : (xmlStrncmp(cont->c1->prefix, qname, plen) == 0) && mov eax, DWORD PTR _cont$[ebp] mov ecx, DWORD PTR [eax+12] cmp DWORD PTR [ecx+24], 0 je SHORT $LN21@xmlValidat mov edx, DWORD PTR _plen$[ebp] push edx mov eax, DWORD PTR _qname$[ebp] push eax mov ecx, DWORD PTR _cont$[ebp] mov edx, DWORD PTR [ecx+12] mov eax, DWORD PTR [edx+24] push eax call _xmlStrncmp add esp, 12 ; 0000000cH test eax, eax jne SHORT $LN21@xmlValidat mov ecx, DWORD PTR _name$[ebp] push ecx mov edx, DWORD PTR _cont$[ebp] mov eax, DWORD PTR [edx+12] mov ecx, DWORD PTR [eax+8] push ecx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN21@xmlValidat ; 5661 : (xmlStrEqual(cont->c1->name, name))) ; 5662 : return(1); mov eax, 1 jmp SHORT $LN1@xmlValidat $LN21@xmlValidat: ; 5663 : } else if ((cont->type != XML_ELEMENT_CONTENT_OR) || jmp SHORT $LN17@xmlValidat $LN19@xmlValidat: ; 5664 : (cont->c1 == NULL) || mov edx, DWORD PTR _cont$[ebp] cmp DWORD PTR [edx], 4 jne SHORT $LN23@xmlValidat mov eax, DWORD PTR _cont$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN23@xmlValidat mov ecx, DWORD PTR _cont$[ebp] mov edx, DWORD PTR [ecx+12] cmp DWORD PTR [edx], 1 je SHORT $LN17@xmlValidat $LN23@xmlValidat: ; 5665 : (cont->c1->type != XML_ELEMENT_CONTENT_PCDATA)){ ; 5666 : xmlErrValid(ctxt, XML_DTD_MIXED_CORRUPT, push 0 push OFFSET ??_C@_0CC@LMJFIFCG@Internal?3?5MIXED?5struct?5corrupte@ push 519 ; 00000207H mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValid add esp, 16 ; 00000010H ; 5667 : "Internal: MIXED struct corrupted\n", ; 5668 : NULL); ; 5669 : break; jmp SHORT $LN7@xmlValidat $LN17@xmlValidat: ; 5670 : } ; 5671 : cont = cont->c2; mov ecx, DWORD PTR _cont$[ebp] mov edx, DWORD PTR [ecx+16] mov DWORD PTR _cont$[ebp], edx ; 5672 : } jmp $LN4@xmlValidat $LN7@xmlValidat: ; 5673 : } ; 5674 : return(0); xor eax, eax $LN1@xmlValidat: ; 5675 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN27@xmlValidat call @_RTC_CheckStackVars@8 pop eax pop edx add esp, 16 ; 00000010H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 2 $LN27@xmlValidat: DD 1 DD $LN26@xmlValidat $LN26@xmlValidat: DD -12 ; fffffff4H DD 4 DD $LN25@xmlValidat $LN25@xmlValidat: DB 112 ; 00000070H DB 108 ; 0000006cH DB 101 ; 00000065H DB 110 ; 0000006eH DB 0 _xmlValidateCheckMixed ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateOneCdataElement _TEXT SEGMENT tv72 = -16 ; size = 4 _child$ = -12 ; size = 4 _cur$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _elem$ = 16 ; size = 4 _xmlValidateOneCdataElement PROC ; COMDAT ; 5556 : xmlNodePtr elem) { push ebp mov ebp, esp sub esp, 16 ; 00000010H push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 5557 : int ret = 1; mov DWORD PTR _ret$[ebp], 1 ; 5558 : xmlNodePtr cur, child; ; 5559 : ; 5560 : if ((ctxt == NULL) || (doc == NULL) || (elem == NULL) || cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN9@xmlValidat cmp DWORD PTR _doc$[ebp], 0 je SHORT $LN9@xmlValidat cmp DWORD PTR _elem$[ebp], 0 je SHORT $LN9@xmlValidat mov eax, DWORD PTR _elem$[ebp] cmp DWORD PTR [eax+4], 1 je SHORT $LN8@xmlValidat $LN9@xmlValidat: ; 5561 : (elem->type != XML_ELEMENT_NODE)) ; 5562 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN8@xmlValidat: ; 5563 : ; 5564 : child = elem->children; mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+12] mov DWORD PTR _child$[ebp], edx ; 5565 : ; 5566 : cur = child; mov eax, DWORD PTR _child$[ebp] mov DWORD PTR _cur$[ebp], eax $LN2@xmlValidat: ; 5567 : while (cur != NULL) { cmp DWORD PTR _cur$[ebp], 0 je $done$19 ; 5568 : switch (cur->type) { mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+4] mov DWORD PTR tv72[ebp], edx mov eax, DWORD PTR tv72[ebp] sub eax, 3 mov DWORD PTR tv72[ebp], eax cmp DWORD PTR tv72[ebp], 5 ja SHORT $LN13@xmlValidat mov ecx, DWORD PTR tv72[ebp] jmp DWORD PTR $LN18@xmlValidat[ecx*4] $LN10@xmlValidat: ; 5569 : case XML_ENTITY_REF_NODE: ; 5570 : /* ; 5571 : * Push the current node to be able to roll back ; 5572 : * and process within the entity ; 5573 : */ ; 5574 : if ((cur->children != NULL) && mov edx, DWORD PTR _cur$[ebp] cmp DWORD PTR [edx+12], 0 je SHORT $LN11@xmlValidat mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+12] cmp DWORD PTR [ecx+12], 0 je SHORT $LN11@xmlValidat ; 5575 : (cur->children->children != NULL)) { ; 5576 : nodeVPush(ctxt, cur); mov edx, DWORD PTR _cur$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _nodeVPush add esp, 8 ; 5577 : cur = cur->children->children; mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+12] mov eax, DWORD PTR [edx+12] mov DWORD PTR _cur$[ebp], eax ; 5578 : continue; jmp SHORT $LN2@xmlValidat $LN11@xmlValidat: ; 5579 : } ; 5580 : break; jmp SHORT $LN4@xmlValidat $LN12@xmlValidat: ; 5581 : case XML_COMMENT_NODE: ; 5582 : case XML_PI_NODE: ; 5583 : case XML_TEXT_NODE: ; 5584 : case XML_CDATA_SECTION_NODE: ; 5585 : break; jmp SHORT $LN4@xmlValidat $LN13@xmlValidat: ; 5586 : default: ; 5587 : ret = 0; mov DWORD PTR _ret$[ebp], 0 ; 5588 : goto done; jmp SHORT $done$19 $LN4@xmlValidat: ; 5589 : } ; 5590 : /* ; 5591 : * Switch to next element ; 5592 : */ ; 5593 : cur = cur->next; mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+24] mov DWORD PTR _cur$[ebp], edx $LN6@xmlValidat: ; 5594 : while (cur == NULL) { cmp DWORD PTR _cur$[ebp], 0 jne SHORT $LN7@xmlValidat ; 5595 : cur = nodeVPop(ctxt); mov eax, DWORD PTR _ctxt$[ebp] push eax call _nodeVPop add esp, 4 mov DWORD PTR _cur$[ebp], eax ; 5596 : if (cur == NULL) cmp DWORD PTR _cur$[ebp], 0 jne SHORT $LN14@xmlValidat ; 5597 : break; jmp SHORT $LN7@xmlValidat $LN14@xmlValidat: ; 5598 : cur = cur->next; mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+24] mov DWORD PTR _cur$[ebp], edx ; 5599 : } jmp SHORT $LN6@xmlValidat $LN7@xmlValidat: ; 5600 : } jmp $LN2@xmlValidat $done$19: ; 5601 : done: ; 5602 : ctxt->nodeMax = 0; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+20], 0 ; 5603 : ctxt->nodeNr = 0; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+16], 0 ; 5604 : if (ctxt->nodeTab != NULL) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+24], 0 je SHORT $LN15@xmlValidat ; 5605 : xmlFree(ctxt->nodeTab); mov esi, esp mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+24] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 5606 : ctxt->nodeTab = NULL; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+24], 0 $LN15@xmlValidat: ; 5607 : } ; 5608 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlValidat: ; 5609 : } pop esi add esp, 16 ; 00000010H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 2 $LN18@xmlValidat: DD $LN12@xmlValidat DD $LN12@xmlValidat DD $LN10@xmlValidat DD $LN13@xmlValidat DD $LN12@xmlValidat DD $LN12@xmlValidat _xmlValidateOneCdataElement ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateElementContent _TEXT SEGMENT tv91 = -10104 ; size = 4 _list$1 = -10096 ; size = 5000 _expr$2 = -5088 ; size = 5000 _fullname$3 = -84 ; size = 4 _fn$4 = -76 ; size = 50 _exec$5 = -20 ; size = 4 _name$ = -16 ; size = 4 _cont$ = -12 ; size = 4 _cur$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _child$ = 12 ; size = 4 _elemDecl$ = 16 ; size = 4 _warn$ = 20 ; size = 4 _parent$ = 24 ; size = 4 _xmlValidateElementContent PROC ; COMDAT ; 5270 : xmlElementPtr elemDecl, int warn, xmlNodePtr parent) { push ebp mov ebp, esp mov eax, 10104 ; 00002778H call __chkstk push esi push edi lea edi, DWORD PTR [ebp-10104] mov ecx, 2526 ; 000009deH mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 5271 : int ret = 1; mov DWORD PTR _ret$[ebp], 1 ; 5272 : #ifndef LIBXML_REGEXP_ENABLED ; 5273 : xmlNodePtr repl = NULL, last = NULL, tmp; ; 5274 : #endif ; 5275 : xmlNodePtr cur; ; 5276 : xmlElementContentPtr cont; ; 5277 : const xmlChar *name; ; 5278 : ; 5279 : if ((elemDecl == NULL) || (parent == NULL) || (ctxt == NULL)) cmp DWORD PTR _elemDecl$[ebp], 0 je SHORT $LN9@xmlValidat cmp DWORD PTR _parent$[ebp], 0 je SHORT $LN9@xmlValidat cmp DWORD PTR _ctxt$[ebp], 0 jne SHORT $LN8@xmlValidat $LN9@xmlValidat: ; 5280 : return(-1); or eax, -1 jmp $LN1@xmlValidat $LN8@xmlValidat: ; 5281 : cont = elemDecl->content; mov eax, DWORD PTR _elemDecl$[ebp] mov ecx, DWORD PTR [eax+40] mov DWORD PTR _cont$[ebp], ecx ; 5282 : name = elemDecl->name; mov edx, DWORD PTR _elemDecl$[ebp] mov eax, DWORD PTR [edx+8] mov DWORD PTR _name$[ebp], eax ; 5283 : ; 5284 : #ifdef LIBXML_REGEXP_ENABLED ; 5285 : /* Build the regexp associated to the content model */ ; 5286 : if (elemDecl->contModel == NULL) mov ecx, DWORD PTR _elemDecl$[ebp] cmp DWORD PTR [ecx+52], 0 jne SHORT $LN10@xmlValidat ; 5287 : ret = xmlValidBuildContentModel(ctxt, elemDecl); mov edx, DWORD PTR _elemDecl$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlValidBuildContentModel add esp, 8 mov DWORD PTR _ret$[ebp], eax $LN10@xmlValidat: ; 5288 : if (elemDecl->contModel == NULL) { mov ecx, DWORD PTR _elemDecl$[ebp] cmp DWORD PTR [ecx+52], 0 jne SHORT $LN11@xmlValidat ; 5289 : return(-1); or eax, -1 jmp $LN1@xmlValidat ; 5290 : } else { jmp $LN12@xmlValidat $LN11@xmlValidat: ; 5291 : xmlRegExecCtxtPtr exec; ; 5292 : ; 5293 : if (!xmlRegexpIsDeterminist(elemDecl->contModel)) { mov edx, DWORD PTR _elemDecl$[ebp] mov eax, DWORD PTR [edx+52] push eax call _xmlRegexpIsDeterminist add esp, 4 test eax, eax jne SHORT $LN13@xmlValidat ; 5294 : return(-1); or eax, -1 jmp $LN1@xmlValidat $LN13@xmlValidat: ; 5295 : } ; 5296 : ctxt->nodeMax = 0; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+20], 0 ; 5297 : ctxt->nodeNr = 0; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+16], 0 ; 5298 : ctxt->nodeTab = NULL; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+24], 0 ; 5299 : exec = xmlRegNewExecCtxt(elemDecl->contModel, NULL, NULL); push 0 push 0 mov ecx, DWORD PTR _elemDecl$[ebp] mov edx, DWORD PTR [ecx+52] push edx call _xmlRegNewExecCtxt add esp, 12 ; 0000000cH mov DWORD PTR _exec$5[ebp], eax ; 5300 : if (exec != NULL) { cmp DWORD PTR _exec$5[ebp], 0 je $LN12@xmlValidat ; 5301 : cur = child; mov eax, DWORD PTR _child$[ebp] mov DWORD PTR _cur$[ebp], eax $LN2@xmlValidat: ; 5302 : while (cur != NULL) { cmp DWORD PTR _cur$[ebp], 0 je $LN3@xmlValidat ; 5303 : switch (cur->type) { mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+4] mov DWORD PTR tv91[ebp], edx mov eax, DWORD PTR tv91[ebp] sub eax, 1 mov DWORD PTR tv91[ebp], eax cmp DWORD PTR tv91[ebp], 4 ja $LN4@xmlValidat mov ecx, DWORD PTR tv91[ebp] jmp DWORD PTR $LN43@xmlValidat[ecx*4] $LN15@xmlValidat: ; 5304 : case XML_ENTITY_REF_NODE: ; 5305 : /* ; 5306 : * Push the current node to be able to roll back ; 5307 : * and process within the entity ; 5308 : */ ; 5309 : if ((cur->children != NULL) && mov edx, DWORD PTR _cur$[ebp] cmp DWORD PTR [edx+12], 0 je SHORT $LN16@xmlValidat mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+12] cmp DWORD PTR [ecx+12], 0 je SHORT $LN16@xmlValidat ; 5310 : (cur->children->children != NULL)) { ; 5311 : nodeVPush(ctxt, cur); mov edx, DWORD PTR _cur$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _nodeVPush add esp, 8 ; 5312 : cur = cur->children->children; mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+12] mov eax, DWORD PTR [edx+12] mov DWORD PTR _cur$[ebp], eax ; 5313 : continue; jmp SHORT $LN2@xmlValidat $LN16@xmlValidat: ; 5314 : } ; 5315 : break; jmp $LN4@xmlValidat $LN17@xmlValidat: ; 5316 : case XML_TEXT_NODE: ; 5317 : if (xmlIsBlankNode(cur)) mov ecx, DWORD PTR _cur$[ebp] push ecx call _xmlIsBlankNode add esp, 4 test eax, eax je SHORT $LN18@xmlValidat ; 5318 : break; jmp $LN4@xmlValidat $LN18@xmlValidat: ; 5319 : ret = 0; mov DWORD PTR _ret$[ebp], 0 ; 5320 : goto fail; jmp $fail$44 $LN19@xmlValidat: ; 5321 : case XML_CDATA_SECTION_NODE: ; 5322 : /* TODO */ ; 5323 : ret = 0; mov DWORD PTR _ret$[ebp], 0 ; 5324 : goto fail; jmp $fail$44 $LN20@xmlValidat: ; 5325 : case XML_ELEMENT_NODE: ; 5326 : if ((cur->ns != NULL) && (cur->ns->prefix != NULL)) { mov edx, DWORD PTR _cur$[ebp] cmp DWORD PTR [edx+36], 0 je $LN21@xmlValidat mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+36] cmp DWORD PTR [ecx+12], 0 je SHORT $LN21@xmlValidat ; 5327 : xmlChar fn[50]; ; 5328 : xmlChar *fullname; ; 5329 : ; 5330 : fullname = xmlBuildQName(cur->name, push 50 ; 00000032H lea edx, DWORD PTR _fn$4[ebp] push edx mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+36] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlBuildQName add esp, 16 ; 00000010H mov DWORD PTR _fullname$3[ebp], eax ; 5331 : cur->ns->prefix, fn, 50); ; 5332 : if (fullname == NULL) { cmp DWORD PTR _fullname$3[ebp], 0 jne SHORT $LN23@xmlValidat ; 5333 : ret = -1; mov DWORD PTR _ret$[ebp], -1 ; 5334 : goto fail; jmp $fail$44 $LN23@xmlValidat: ; 5335 : } ; 5336 : ret = xmlRegExecPushString(exec, fullname, NULL); push 0 mov edx, DWORD PTR _fullname$3[ebp] push edx mov eax, DWORD PTR _exec$5[ebp] push eax call _xmlRegExecPushString add esp, 12 ; 0000000cH mov DWORD PTR _ret$[ebp], eax ; 5337 : if ((fullname != fn) && (fullname != cur->name)) lea ecx, DWORD PTR _fn$4[ebp] cmp DWORD PTR _fullname$3[ebp], ecx je SHORT $LN24@xmlValidat mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR _fullname$3[ebp] cmp eax, DWORD PTR [edx+8] je SHORT $LN24@xmlValidat ; 5338 : xmlFree(fullname); mov esi, esp mov ecx, DWORD PTR _fullname$3[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN24@xmlValidat: ; 5339 : } else { jmp SHORT $LN4@xmlValidat $LN21@xmlValidat: ; 5340 : ret = xmlRegExecPushString(exec, cur->name, NULL); push 0 mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _exec$5[ebp] push ecx call _xmlRegExecPushString add esp, 12 ; 0000000cH mov DWORD PTR _ret$[ebp], eax $LN4@xmlValidat: ; 5341 : } ; 5342 : break; ; 5343 : default: ; 5344 : break; ; 5345 : } ; 5346 : /* ; 5347 : * Switch to next element ; 5348 : */ ; 5349 : cur = cur->next; mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+24] mov DWORD PTR _cur$[ebp], eax $LN6@xmlValidat: ; 5350 : while (cur == NULL) { cmp DWORD PTR _cur$[ebp], 0 jne SHORT $LN7@xmlValidat ; 5351 : cur = nodeVPop(ctxt); mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _nodeVPop add esp, 4 mov DWORD PTR _cur$[ebp], eax ; 5352 : if (cur == NULL) cmp DWORD PTR _cur$[ebp], 0 jne SHORT $LN26@xmlValidat ; 5353 : break; jmp SHORT $LN7@xmlValidat $LN26@xmlValidat: ; 5354 : cur = cur->next; mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+24] mov DWORD PTR _cur$[ebp], eax ; 5355 : } jmp SHORT $LN6@xmlValidat $LN7@xmlValidat: ; 5356 : } jmp $LN2@xmlValidat $LN3@xmlValidat: ; 5357 : ret = xmlRegExecPushString(exec, NULL, NULL); push 0 push 0 mov ecx, DWORD PTR _exec$5[ebp] push ecx call _xmlRegExecPushString add esp, 12 ; 0000000cH mov DWORD PTR _ret$[ebp], eax $fail$44: ; 5358 : fail: ; 5359 : xmlRegFreeExecCtxt(exec); mov edx, DWORD PTR _exec$5[ebp] push edx call _xmlRegFreeExecCtxt add esp, 4 $LN12@xmlValidat: ; 5360 : } ; 5361 : } ; 5362 : #else /* LIBXML_REGEXP_ENABLED */ ; 5363 : /* ; 5364 : * Allocate the stack ; 5365 : */ ; 5366 : ctxt->vstateMax = 8; ; 5367 : ctxt->vstateTab = (xmlValidState *) xmlMalloc( ; 5368 : ctxt->vstateMax * sizeof(ctxt->vstateTab[0])); ; 5369 : if (ctxt->vstateTab == NULL) { ; 5370 : xmlVErrMemory(ctxt, "malloc failed"); ; 5371 : return(-1); ; 5372 : } ; 5373 : /* ; 5374 : * The first entry in the stack is reserved to the current state ; 5375 : */ ; 5376 : ctxt->nodeMax = 0; ; 5377 : ctxt->nodeNr = 0; ; 5378 : ctxt->nodeTab = NULL; ; 5379 : ctxt->vstate = &ctxt->vstateTab[0]; ; 5380 : ctxt->vstateNr = 1; ; 5381 : CONT = cont; ; 5382 : NODE = child; ; 5383 : DEPTH = 0; ; 5384 : OCCURS = 0; ; 5385 : STATE = 0; ; 5386 : ret = xmlValidateElementType(ctxt); ; 5387 : if ((ret == -3) && (warn)) { ; 5388 : xmlErrValidWarning(ctxt, child, XML_DTD_CONTENT_NOT_DETERMINIST, ; 5389 : "Content model for Element %s is ambiguous\n", ; 5390 : name, NULL, NULL); ; 5391 : } else if (ret == -2) { ; 5392 : /* ; 5393 : * An entities reference appeared at this level. ; 5394 : * Buid a minimal representation of this node content ; 5395 : * sufficient to run the validation process on it ; 5396 : */ ; 5397 : DEBUG_VALID_MSG("Found an entity reference, linearizing"); ; 5398 : cur = child; ; 5399 : while (cur != NULL) { ; 5400 : switch (cur->type) { ; 5401 : case XML_ENTITY_REF_NODE: ; 5402 : /* ; 5403 : * Push the current node to be able to roll back ; 5404 : * and process within the entity ; 5405 : */ ; 5406 : if ((cur->children != NULL) && ; 5407 : (cur->children->children != NULL)) { ; 5408 : nodeVPush(ctxt, cur); ; 5409 : cur = cur->children->children; ; 5410 : continue; ; 5411 : } ; 5412 : break; ; 5413 : case XML_TEXT_NODE: ; 5414 : if (xmlIsBlankNode(cur)) ; 5415 : break; ; 5416 : /* no break on purpose */ ; 5417 : case XML_CDATA_SECTION_NODE: ; 5418 : /* no break on purpose */ ; 5419 : case XML_ELEMENT_NODE: ; 5420 : /* ; 5421 : * Allocate a new node and minimally fills in ; 5422 : * what's required ; 5423 : */ ; 5424 : tmp = (xmlNodePtr) xmlMalloc(sizeof(xmlNode)); ; 5425 : if (tmp == NULL) { ; 5426 : xmlVErrMemory(ctxt, "malloc failed"); ; 5427 : xmlFreeNodeList(repl); ; 5428 : ret = -1; ; 5429 : goto done; ; 5430 : } ; 5431 : tmp->type = cur->type; ; 5432 : tmp->name = cur->name; ; 5433 : tmp->ns = cur->ns; ; 5434 : tmp->next = NULL; ; 5435 : tmp->content = NULL; ; 5436 : if (repl == NULL) ; 5437 : repl = last = tmp; ; 5438 : else { ; 5439 : last->next = tmp; ; 5440 : last = tmp; ; 5441 : } ; 5442 : if (cur->type == XML_CDATA_SECTION_NODE) { ; 5443 : /* ; 5444 : * E59 spaces in CDATA does not match the ; 5445 : * nonterminal S ; 5446 : */ ; 5447 : tmp->content = xmlStrdup(BAD_CAST "CDATA"); ; 5448 : } ; 5449 : break; ; 5450 : default: ; 5451 : break; ; 5452 : } ; 5453 : /* ; 5454 : * Switch to next element ; 5455 : */ ; 5456 : cur = cur->next; ; 5457 : while (cur == NULL) { ; 5458 : cur = nodeVPop(ctxt); ; 5459 : if (cur == NULL) ; 5460 : break; ; 5461 : cur = cur->next; ; 5462 : } ; 5463 : } ; 5464 : ; 5465 : /* ; 5466 : * Relaunch the validation ; 5467 : */ ; 5468 : ctxt->vstate = &ctxt->vstateTab[0]; ; 5469 : ctxt->vstateNr = 1; ; 5470 : CONT = cont; ; 5471 : NODE = repl; ; 5472 : DEPTH = 0; ; 5473 : OCCURS = 0; ; 5474 : STATE = 0; ; 5475 : ret = xmlValidateElementType(ctxt); ; 5476 : } ; 5477 : #endif /* LIBXML_REGEXP_ENABLED */ ; 5478 : if ((warn) && ((ret != 1) && (ret != -3))) { cmp DWORD PTR _warn$[ebp], 0 je $LN27@xmlValidat cmp DWORD PTR _ret$[ebp], 1 je $LN27@xmlValidat cmp DWORD PTR _ret$[ebp], -3 ; fffffffdH je $LN27@xmlValidat ; 5479 : if (ctxt != NULL) { cmp DWORD PTR _ctxt$[ebp], 0 je $LN28@xmlValidat ; 5480 : char expr[5000]; ; 5481 : char list[5000]; ; 5482 : ; 5483 : expr[0] = 0; mov eax, 1 imul ecx, eax, 0 mov BYTE PTR _expr$2[ebp+ecx], 0 ; 5484 : xmlSnprintfElementContent(&expr[0], 5000, cont, 1); push 1 mov edx, DWORD PTR _cont$[ebp] push edx push 5000 ; 00001388H mov eax, 1 imul ecx, eax, 0 lea edx, DWORD PTR _expr$2[ebp+ecx] push edx call _xmlSnprintfElementContent add esp, 16 ; 00000010H ; 5485 : list[0] = 0; mov eax, 1 imul ecx, eax, 0 mov BYTE PTR _list$1[ebp+ecx], 0 ; 5486 : #ifndef LIBXML_REGEXP_ENABLED ; 5487 : if (repl != NULL) ; 5488 : xmlSnprintfElements(&list[0], 5000, repl, 1); ; 5489 : else ; 5490 : #endif /* LIBXML_REGEXP_ENABLED */ ; 5491 : xmlSnprintfElements(&list[0], 5000, child, 1); push 1 mov edx, DWORD PTR _child$[ebp] push edx push 5000 ; 00001388H mov eax, 1 imul ecx, eax, 0 lea edx, DWORD PTR _list$1[ebp+ecx] push edx call _xmlSnprintfElements add esp, 16 ; 00000010H ; 5492 : ; 5493 : if (name != NULL) { cmp DWORD PTR _name$[ebp], 0 je SHORT $LN30@xmlValidat ; 5494 : xmlErrValidNode(ctxt, parent, XML_DTD_CONTENT_MODEL, lea eax, DWORD PTR _list$1[ebp] push eax lea ecx, DWORD PTR _expr$2[ebp] push ecx mov edx, DWORD PTR _name$[ebp] push edx push OFFSET ??_C@_0EC@IAKGOMPC@Element?5?$CFs?5content?5does?5not?5fol@ push 504 ; 000001f8H mov eax, DWORD PTR _parent$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 5495 : "Element %s content does not follow the DTD, expecting %s, got %s\n", ; 5496 : name, BAD_CAST expr, BAD_CAST list); ; 5497 : } else { jmp SHORT $LN31@xmlValidat $LN30@xmlValidat: ; 5498 : xmlErrValidNode(ctxt, parent, XML_DTD_CONTENT_MODEL, push 0 lea edx, DWORD PTR _list$1[ebp] push edx lea eax, DWORD PTR _expr$2[ebp] push eax push OFFSET ??_C@_0DP@CBELDNAH@Element?5content?5does?5not?5follow@ push 504 ; 000001f8H mov ecx, DWORD PTR _parent$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH $LN31@xmlValidat: ; 5499 : "Element content does not follow the DTD, expecting %s, got %s\n", ; 5500 : BAD_CAST expr, BAD_CAST list, NULL); ; 5501 : } ; 5502 : } else { jmp SHORT $LN29@xmlValidat $LN28@xmlValidat: ; 5503 : if (name != NULL) { cmp DWORD PTR _name$[ebp], 0 je SHORT $LN32@xmlValidat ; 5504 : xmlErrValidNode(ctxt, parent, XML_DTD_CONTENT_MODEL, push 0 push 0 mov eax, DWORD PTR _name$[ebp] push eax push OFFSET ??_C@_0CM@BLHDJNNL@Element?5?$CFs?5content?5does?5not?5fol@ push 504 ; 000001f8H mov ecx, DWORD PTR _parent$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 5505 : "Element %s content does not follow the DTD\n", ; 5506 : name, NULL, NULL); ; 5507 : } else { jmp SHORT $LN29@xmlValidat $LN32@xmlValidat: ; 5508 : xmlErrValidNode(ctxt, parent, XML_DTD_CONTENT_MODEL, push 0 push 0 push 0 push OFFSET ??_C@_0CJ@JFPHFAJJ@Element?5content?5does?5not?5follow@ push 504 ; 000001f8H mov eax, DWORD PTR _parent$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH $LN29@xmlValidat: ; 5509 : "Element content does not follow the DTD\n", ; 5510 : NULL, NULL, NULL); ; 5511 : } ; 5512 : } ; 5513 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN27@xmlValidat: ; 5514 : } ; 5515 : if (ret == -3) cmp DWORD PTR _ret$[ebp], -3 ; fffffffdH jne SHORT $LN34@xmlValidat ; 5516 : ret = 1; mov DWORD PTR _ret$[ebp], 1 $LN34@xmlValidat: ; 5517 : ; 5518 : #ifndef LIBXML_REGEXP_ENABLED ; 5519 : done: ; 5520 : /* ; 5521 : * Deallocate the copy if done, and free up the validation stack ; 5522 : */ ; 5523 : while (repl != NULL) { ; 5524 : tmp = repl->next; ; 5525 : xmlFree(repl); ; 5526 : repl = tmp; ; 5527 : } ; 5528 : ctxt->vstateMax = 0; ; 5529 : if (ctxt->vstateTab != NULL) { ; 5530 : xmlFree(ctxt->vstateTab); ; 5531 : ctxt->vstateTab = NULL; ; 5532 : } ; 5533 : #endif ; 5534 : ctxt->nodeMax = 0; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+20], 0 ; 5535 : ctxt->nodeNr = 0; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+16], 0 ; 5536 : if (ctxt->nodeTab != NULL) { mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+24], 0 je SHORT $LN35@xmlValidat ; 5537 : xmlFree(ctxt->nodeTab); mov esi, esp mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+24] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 5538 : ctxt->nodeTab = NULL; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+24], 0 $LN35@xmlValidat: ; 5539 : } ; 5540 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlValidat: ; 5541 : ; 5542 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN42@xmlValidat call @_RTC_CheckStackVars@8 pop eax pop edx pop edi pop esi add esp, 10104 ; 00002778H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 $LN42@xmlValidat: DD 3 DD $LN41@xmlValidat $LN41@xmlValidat: DD -76 ; ffffffb4H DD 50 ; 00000032H DD $LN38@xmlValidat DD -5088 ; ffffec20H DD 5000 ; 00001388H DD $LN39@xmlValidat DD -10096 ; ffffd890H DD 5000 ; 00001388H DD $LN40@xmlValidat $LN40@xmlValidat: DB 108 ; 0000006cH DB 105 ; 00000069H DB 115 ; 00000073H DB 116 ; 00000074H DB 0 $LN39@xmlValidat: DB 101 ; 00000065H DB 120 ; 00000078H DB 112 ; 00000070H DB 114 ; 00000072H DB 0 $LN38@xmlValidat: DB 102 ; 00000066H DB 110 ; 0000006eH DB 0 npad 3 $LN43@xmlValidat: DD $LN20@xmlValidat DD $LN4@xmlValidat DD $LN17@xmlValidat DD $LN19@xmlValidat DD $LN15@xmlValidat _xmlValidateElementContent ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlSnprintfElements _TEXT SEGMENT tv448 = -169 ; size = 1 tv445 = -168 ; size = 4 tv435 = -161 ; size = 1 tv432 = -160 ; size = 4 tv423 = -153 ; size = 1 tv420 = -152 ; size = 4 tv412 = -145 ; size = 1 tv409 = -144 ; size = 4 tv398 = -137 ; size = 1 tv395 = -136 ; size = 4 tv385 = -129 ; size = 1 tv382 = -128 ; size = 4 tv365 = -121 ; size = 1 tv362 = -120 ; size = 4 tv359 = -116 ; size = 4 tv358 = -112 ; size = 4 tv353 = -105 ; size = 1 tv350 = -104 ; size = 4 tv348 = -100 ; size = 4 tv338 = -93 ; size = 1 tv335 = -92 ; size = 4 tv321 = -85 ; size = 1 tv318 = -84 ; size = 4 tv302 = -77 ; size = 1 tv299 = -76 ; size = 4 tv296 = -72 ; size = 4 tv295 = -68 ; size = 4 tv290 = -61 ; size = 1 tv287 = -60 ; size = 4 tv285 = -56 ; size = 4 tv275 = -49 ; size = 1 tv272 = -48 ; size = 4 tv88 = -44 ; size = 4 tv249 = -37 ; size = 1 tv246 = -36 ; size = 4 tv73 = -32 ; size = 4 tv236 = -25 ; size = 1 tv233 = -24 ; size = 4 tv230 = -20 ; size = 4 tv222 = -13 ; size = 1 tv219 = -12 ; size = 4 _len$ = -8 ; size = 4 _cur$ = -4 ; size = 4 _buf$ = 8 ; size = 4 _size$ = 12 ; size = 4 _node$ = 16 ; size = 4 _glob$ = 20 ; size = 4 _xmlSnprintfElements PROC ; COMDAT ; 5181 : xmlSnprintfElements(char *buf, int size, xmlNodePtr node, int glob) { push ebp mov ebp, esp sub esp, 172 ; 000000acH push esi push edi lea edi, DWORD PTR [ebp-172] mov ecx, 43 ; 0000002bH mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 5182 : xmlNodePtr cur; ; 5183 : int len; ; 5184 : ; 5185 : if (node == NULL) return; cmp DWORD PTR _node$[ebp], 0 jne SHORT $LN6@xmlSnprint jmp $LN1@xmlSnprint $LN6@xmlSnprint: ; 5186 : if (glob) strcat(buf, "("); cmp DWORD PTR _glob$[ebp], 0 je SHORT $LN7@xmlSnprint mov eax, DWORD PTR _buf$[ebp] add eax, -1 mov DWORD PTR tv219[ebp], eax $LL26@xmlSnprint: mov ecx, DWORD PTR tv219[ebp] mov dl, BYTE PTR [ecx+1] mov BYTE PTR tv222[ebp], dl add DWORD PTR tv219[ebp], 1 cmp BYTE PTR tv222[ebp], 0 jne SHORT $LL26@xmlSnprint mov edi, DWORD PTR tv219[ebp] mov ax, WORD PTR ??_C@_01ODHLEDKK@?$CI@ mov WORD PTR [edi], ax $LN7@xmlSnprint: ; 5187 : cur = node; mov ecx, DWORD PTR _node$[ebp] mov DWORD PTR _cur$[ebp], ecx $LN2@xmlSnprint: ; 5188 : while (cur != NULL) { cmp DWORD PTR _cur$[ebp], 0 je $LN3@xmlSnprint ; 5189 : len = strlen(buf); mov edx, DWORD PTR _buf$[ebp] mov DWORD PTR tv230[ebp], edx mov eax, DWORD PTR tv230[ebp] add eax, 1 mov DWORD PTR tv233[ebp], eax $LL27@xmlSnprint: mov ecx, DWORD PTR tv230[ebp] mov dl, BYTE PTR [ecx] mov BYTE PTR tv236[ebp], dl add DWORD PTR tv230[ebp], 1 cmp BYTE PTR tv236[ebp], 0 jne SHORT $LL27@xmlSnprint mov eax, DWORD PTR tv230[ebp] sub eax, DWORD PTR tv233[ebp] mov DWORD PTR tv73[ebp], eax mov ecx, DWORD PTR tv73[ebp] mov DWORD PTR _len$[ebp], ecx ; 5190 : if (size - len < 50) { mov edx, DWORD PTR _size$[ebp] sub edx, DWORD PTR _len$[ebp] cmp edx, 50 ; 00000032H jge SHORT $LN8@xmlSnprint ; 5191 : if ((size - len > 4) && (buf[len - 1] != '.')) mov eax, DWORD PTR _size$[ebp] sub eax, DWORD PTR _len$[ebp] cmp eax, 4 jle SHORT $LN9@xmlSnprint mov ecx, DWORD PTR _buf$[ebp] add ecx, DWORD PTR _len$[ebp] movsx edx, BYTE PTR [ecx-1] cmp edx, 46 ; 0000002eH je SHORT $LN9@xmlSnprint ; 5192 : strcat(buf, " ..."); mov eax, DWORD PTR _buf$[ebp] add eax, -1 mov DWORD PTR tv246[ebp], eax $LL28@xmlSnprint: mov ecx, DWORD PTR tv246[ebp] mov dl, BYTE PTR [ecx+1] mov BYTE PTR tv249[ebp], dl add DWORD PTR tv246[ebp], 1 cmp BYTE PTR tv249[ebp], 0 jne SHORT $LL28@xmlSnprint mov edi, DWORD PTR tv246[ebp] mov eax, DWORD PTR ??_C@_04IBCFJNCN@?5?4?4?4@ mov DWORD PTR [edi], eax mov cl, BYTE PTR ??_C@_04IBCFJNCN@?5?4?4?4@+4 mov BYTE PTR [edi+4], cl $LN9@xmlSnprint: ; 5193 : return; jmp $LN1@xmlSnprint $LN8@xmlSnprint: ; 5194 : } ; 5195 : switch (cur->type) { mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+4] mov DWORD PTR tv88[ebp], eax mov ecx, DWORD PTR tv88[ebp] sub ecx, 1 mov DWORD PTR tv88[ebp], ecx cmp DWORD PTR tv88[ebp], 20 ; 00000014H ja $LN4@xmlSnprint mov edx, DWORD PTR tv88[ebp] movzx eax, BYTE PTR $LN29@xmlSnprint[edx] jmp DWORD PTR $LN43@xmlSnprint[eax*4] $LN10@xmlSnprint: ; 5196 : case XML_ELEMENT_NODE: ; 5197 : if ((cur->ns != NULL) && (cur->ns->prefix != NULL)) { mov ecx, DWORD PTR _cur$[ebp] cmp DWORD PTR [ecx+36], 0 je $LN11@xmlSnprint mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+36] cmp DWORD PTR [eax+12], 0 je $LN11@xmlSnprint ; 5198 : if (size - len < xmlStrlen(cur->ns->prefix) + 10) { mov esi, DWORD PTR _size$[ebp] sub esi, DWORD PTR _len$[ebp] mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+36] mov eax, DWORD PTR [edx+12] push eax call _xmlStrlen add esp, 4 add eax, 10 ; 0000000aH cmp esi, eax jge SHORT $LN12@xmlSnprint ; 5199 : if ((size - len > 4) && (buf[len - 1] != '.')) mov ecx, DWORD PTR _size$[ebp] sub ecx, DWORD PTR _len$[ebp] cmp ecx, 4 jle SHORT $LN13@xmlSnprint mov edx, DWORD PTR _buf$[ebp] add edx, DWORD PTR _len$[ebp] movsx eax, BYTE PTR [edx-1] cmp eax, 46 ; 0000002eH je SHORT $LN13@xmlSnprint ; 5200 : strcat(buf, " ..."); mov ecx, DWORD PTR _buf$[ebp] add ecx, -1 mov DWORD PTR tv272[ebp], ecx $LL30@xmlSnprint: mov edx, DWORD PTR tv272[ebp] mov al, BYTE PTR [edx+1] mov BYTE PTR tv275[ebp], al add DWORD PTR tv272[ebp], 1 cmp BYTE PTR tv275[ebp], 0 jne SHORT $LL30@xmlSnprint mov edi, DWORD PTR tv272[ebp] mov ecx, DWORD PTR ??_C@_04IBCFJNCN@?5?4?4?4@ mov DWORD PTR [edi], ecx mov dl, BYTE PTR ??_C@_04IBCFJNCN@?5?4?4?4@+4 mov BYTE PTR [edi+4], dl $LN13@xmlSnprint: ; 5201 : return; jmp $LN1@xmlSnprint $LN12@xmlSnprint: ; 5202 : } ; 5203 : strcat(buf, (char *) cur->ns->prefix); mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+36] mov edx, DWORD PTR [ecx+12] mov DWORD PTR tv285[ebp], edx mov eax, DWORD PTR tv285[ebp] mov DWORD PTR tv287[ebp], eax $LL31@xmlSnprint: mov ecx, DWORD PTR tv285[ebp] mov dl, BYTE PTR [ecx] mov BYTE PTR tv290[ebp], dl add DWORD PTR tv285[ebp], 1 cmp BYTE PTR tv290[ebp], 0 jne SHORT $LL31@xmlSnprint mov eax, DWORD PTR tv285[ebp] sub eax, DWORD PTR tv287[ebp] mov ecx, DWORD PTR tv287[ebp] mov DWORD PTR tv295[ebp], ecx mov DWORD PTR tv296[ebp], eax mov edx, DWORD PTR _buf$[ebp] add edx, -1 mov DWORD PTR tv299[ebp], edx $LL32@xmlSnprint: mov eax, DWORD PTR tv299[ebp] mov cl, BYTE PTR [eax+1] mov BYTE PTR tv302[ebp], cl add DWORD PTR tv299[ebp], 1 cmp BYTE PTR tv302[ebp], 0 jne SHORT $LL32@xmlSnprint mov edi, DWORD PTR tv299[ebp] mov esi, DWORD PTR tv295[ebp] mov edx, DWORD PTR tv296[ebp] mov ecx, edx shr ecx, 2 rep movsd mov ecx, edx and ecx, 3 rep movsb ; 5204 : strcat(buf, ":"); mov eax, DWORD PTR _buf$[ebp] add eax, -1 mov DWORD PTR tv318[ebp], eax $LL33@xmlSnprint: mov ecx, DWORD PTR tv318[ebp] mov dl, BYTE PTR [ecx+1] mov BYTE PTR tv321[ebp], dl add DWORD PTR tv318[ebp], 1 cmp BYTE PTR tv321[ebp], 0 jne SHORT $LL33@xmlSnprint mov edi, DWORD PTR tv318[ebp] mov ax, WORD PTR ??_C@_01JLIPDDHJ@?3@ mov WORD PTR [edi], ax $LN11@xmlSnprint: ; 5205 : } ; 5206 : if (size - len < xmlStrlen(cur->name) + 10) { mov esi, DWORD PTR _size$[ebp] sub esi, DWORD PTR _len$[ebp] mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlStrlen add esp, 4 add eax, 10 ; 0000000aH cmp esi, eax jge SHORT $LN14@xmlSnprint ; 5207 : if ((size - len > 4) && (buf[len - 1] != '.')) mov eax, DWORD PTR _size$[ebp] sub eax, DWORD PTR _len$[ebp] cmp eax, 4 jle SHORT $LN15@xmlSnprint mov ecx, DWORD PTR _buf$[ebp] add ecx, DWORD PTR _len$[ebp] movsx edx, BYTE PTR [ecx-1] cmp edx, 46 ; 0000002eH je SHORT $LN15@xmlSnprint ; 5208 : strcat(buf, " ..."); mov eax, DWORD PTR _buf$[ebp] add eax, -1 mov DWORD PTR tv335[ebp], eax $LL34@xmlSnprint: mov ecx, DWORD PTR tv335[ebp] mov dl, BYTE PTR [ecx+1] mov BYTE PTR tv338[ebp], dl add DWORD PTR tv335[ebp], 1 cmp BYTE PTR tv338[ebp], 0 jne SHORT $LL34@xmlSnprint mov edi, DWORD PTR tv335[ebp] mov eax, DWORD PTR ??_C@_04IBCFJNCN@?5?4?4?4@ mov DWORD PTR [edi], eax mov cl, BYTE PTR ??_C@_04IBCFJNCN@?5?4?4?4@+4 mov BYTE PTR [edi+4], cl $LN15@xmlSnprint: ; 5209 : return; jmp $LN1@xmlSnprint $LN14@xmlSnprint: ; 5210 : } ; 5211 : strcat(buf, (char *) cur->name); mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+8] mov DWORD PTR tv348[ebp], eax mov ecx, DWORD PTR tv348[ebp] mov DWORD PTR tv350[ebp], ecx $LL35@xmlSnprint: mov edx, DWORD PTR tv348[ebp] mov al, BYTE PTR [edx] mov BYTE PTR tv353[ebp], al add DWORD PTR tv348[ebp], 1 cmp BYTE PTR tv353[ebp], 0 jne SHORT $LL35@xmlSnprint mov ecx, DWORD PTR tv348[ebp] sub ecx, DWORD PTR tv350[ebp] mov edx, DWORD PTR tv350[ebp] mov DWORD PTR tv358[ebp], edx mov DWORD PTR tv359[ebp], ecx mov eax, DWORD PTR _buf$[ebp] add eax, -1 mov DWORD PTR tv362[ebp], eax $LL36@xmlSnprint: mov ecx, DWORD PTR tv362[ebp] mov dl, BYTE PTR [ecx+1] mov BYTE PTR tv365[ebp], dl add DWORD PTR tv362[ebp], 1 cmp BYTE PTR tv365[ebp], 0 jne SHORT $LL36@xmlSnprint mov edi, DWORD PTR tv362[ebp] mov esi, DWORD PTR tv358[ebp] mov eax, DWORD PTR tv359[ebp] mov ecx, eax shr ecx, 2 rep movsd mov ecx, eax and ecx, 3 rep movsb ; 5212 : if (cur->next != NULL) mov ecx, DWORD PTR _cur$[ebp] cmp DWORD PTR [ecx+24], 0 je SHORT $LN16@xmlSnprint ; 5213 : strcat(buf, " "); mov edx, DWORD PTR _buf$[ebp] add edx, -1 mov DWORD PTR tv382[ebp], edx $LL37@xmlSnprint: mov eax, DWORD PTR tv382[ebp] mov cl, BYTE PTR [eax+1] mov BYTE PTR tv385[ebp], cl add DWORD PTR tv382[ebp], 1 cmp BYTE PTR tv385[ebp], 0 jne SHORT $LL37@xmlSnprint mov edi, DWORD PTR tv382[ebp] mov dx, WORD PTR ??_C@_01CLKCMJKC@?5@ mov WORD PTR [edi], dx $LN16@xmlSnprint: ; 5214 : break; jmp $LN4@xmlSnprint $LN17@xmlSnprint: ; 5215 : case XML_TEXT_NODE: ; 5216 : if (xmlIsBlankNode(cur)) mov eax, DWORD PTR _cur$[ebp] push eax call _xmlIsBlankNode add esp, 4 test eax, eax je SHORT $LN19@xmlSnprint ; 5217 : break; jmp $LN4@xmlSnprint $LN19@xmlSnprint: ; 5218 : /* Falls through. */ ; 5219 : case XML_CDATA_SECTION_NODE: ; 5220 : case XML_ENTITY_REF_NODE: ; 5221 : strcat(buf, "CDATA"); mov ecx, DWORD PTR _buf$[ebp] add ecx, -1 mov DWORD PTR tv395[ebp], ecx $LL38@xmlSnprint: mov edx, DWORD PTR tv395[ebp] mov al, BYTE PTR [edx+1] mov BYTE PTR tv398[ebp], al add DWORD PTR tv395[ebp], 1 cmp BYTE PTR tv398[ebp], 0 jne SHORT $LL38@xmlSnprint mov edi, DWORD PTR tv395[ebp] mov ecx, DWORD PTR ??_C@_05MLPNBPGH@CDATA@ mov DWORD PTR [edi], ecx mov dx, WORD PTR ??_C@_05MLPNBPGH@CDATA@+4 mov WORD PTR [edi+4], dx ; 5222 : if (cur->next != NULL) mov eax, DWORD PTR _cur$[ebp] cmp DWORD PTR [eax+24], 0 je SHORT $LN20@xmlSnprint ; 5223 : strcat(buf, " "); mov ecx, DWORD PTR _buf$[ebp] add ecx, -1 mov DWORD PTR tv409[ebp], ecx $LL39@xmlSnprint: mov edx, DWORD PTR tv409[ebp] mov al, BYTE PTR [edx+1] mov BYTE PTR tv412[ebp], al add DWORD PTR tv409[ebp], 1 cmp BYTE PTR tv412[ebp], 0 jne SHORT $LL39@xmlSnprint mov edi, DWORD PTR tv409[ebp] mov cx, WORD PTR ??_C@_01CLKCMJKC@?5@ mov WORD PTR [edi], cx $LN20@xmlSnprint: ; 5224 : break; jmp SHORT $LN4@xmlSnprint $LN21@xmlSnprint: ; 5225 : case XML_ATTRIBUTE_NODE: ; 5226 : case XML_DOCUMENT_NODE: ; 5227 : #ifdef LIBXML_DOCB_ENABLED ; 5228 : case XML_DOCB_DOCUMENT_NODE: ; 5229 : #endif ; 5230 : case XML_HTML_DOCUMENT_NODE: ; 5231 : case XML_DOCUMENT_TYPE_NODE: ; 5232 : case XML_DOCUMENT_FRAG_NODE: ; 5233 : case XML_NOTATION_NODE: ; 5234 : case XML_NAMESPACE_DECL: ; 5235 : strcat(buf, "???"); mov edx, DWORD PTR _buf$[ebp] add edx, -1 mov DWORD PTR tv420[ebp], edx $LL40@xmlSnprint: mov eax, DWORD PTR tv420[ebp] mov cl, BYTE PTR [eax+1] mov BYTE PTR tv423[ebp], cl add DWORD PTR tv420[ebp], 1 cmp BYTE PTR tv423[ebp], 0 jne SHORT $LL40@xmlSnprint mov edi, DWORD PTR tv420[ebp] mov edx, DWORD PTR ??_C@_03BBKEAIF@?$DP?$DP?$DP@ mov DWORD PTR [edi], edx ; 5236 : if (cur->next != NULL) mov eax, DWORD PTR _cur$[ebp] cmp DWORD PTR [eax+24], 0 je SHORT $LN4@xmlSnprint ; 5237 : strcat(buf, " "); mov ecx, DWORD PTR _buf$[ebp] add ecx, -1 mov DWORD PTR tv432[ebp], ecx $LL41@xmlSnprint: mov edx, DWORD PTR tv432[ebp] mov al, BYTE PTR [edx+1] mov BYTE PTR tv435[ebp], al add DWORD PTR tv432[ebp], 1 cmp BYTE PTR tv435[ebp], 0 jne SHORT $LL41@xmlSnprint mov edi, DWORD PTR tv432[ebp] mov cx, WORD PTR ??_C@_01CLKCMJKC@?5@ mov WORD PTR [edi], cx $LN4@xmlSnprint: ; 5238 : break; ; 5239 : case XML_ENTITY_NODE: ; 5240 : case XML_PI_NODE: ; 5241 : case XML_DTD_NODE: ; 5242 : case XML_COMMENT_NODE: ; 5243 : case XML_ELEMENT_DECL: ; 5244 : case XML_ATTRIBUTE_DECL: ; 5245 : case XML_ENTITY_DECL: ; 5246 : case XML_XINCLUDE_START: ; 5247 : case XML_XINCLUDE_END: ; 5248 : break; ; 5249 : } ; 5250 : cur = cur->next; mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+24] mov DWORD PTR _cur$[ebp], eax ; 5251 : } jmp $LN2@xmlSnprint $LN3@xmlSnprint: ; 5252 : if (glob) strcat(buf, ")"); cmp DWORD PTR _glob$[ebp], 0 je SHORT $LN1@xmlSnprint mov ecx, DWORD PTR _buf$[ebp] add ecx, -1 mov DWORD PTR tv445[ebp], ecx $LL42@xmlSnprint: mov edx, DWORD PTR tv445[ebp] mov al, BYTE PTR [edx+1] mov BYTE PTR tv448[ebp], al add DWORD PTR tv445[ebp], 1 cmp BYTE PTR tv448[ebp], 0 jne SHORT $LL42@xmlSnprint mov edi, DWORD PTR tv445[ebp] mov cx, WORD PTR ??_C@_01PKGAHCOL@?$CJ@ mov WORD PTR [edi], cx $LN1@xmlSnprint: ; 5253 : } pop edi pop esi add esp, 172 ; 000000acH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 1 $LN43@xmlSnprint: DD $LN10@xmlSnprint DD $LN21@xmlSnprint DD $LN17@xmlSnprint DD $LN19@xmlSnprint DD $LN4@xmlSnprint $LN29@xmlSnprint: DB 0 DB 1 DB 2 DB 3 DB 3 DB 4 DB 4 DB 4 DB 1 DB 1 DB 1 DB 1 DB 1 DB 4 DB 4 DB 4 DB 4 DB 1 DB 4 DB 4 DB 1 _xmlSnprintfElements ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateAttributeIdCallback _TEXT SEGMENT _count$ = -8 ; size = 4 _attr$ = -4 ; size = 4 _payload$ = 8 ; size = 4 _data$ = 12 ; size = 4 _name$ = 16 ; size = 4 _xmlValidateAttributeIdCallback PROC ; COMDAT ; 4123 : const xmlChar *name ATTRIBUTE_UNUSED) { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 4124 : xmlAttributePtr attr = (xmlAttributePtr) payload; mov eax, DWORD PTR _payload$[ebp] mov DWORD PTR _attr$[ebp], eax ; 4125 : int *count = (int *) data; mov ecx, DWORD PTR _data$[ebp] mov DWORD PTR _count$[ebp], ecx ; 4126 : if (attr->atype == XML_ATTRIBUTE_ID) (*count)++; mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+40], 2 jne SHORT $LN1@xmlValidat mov eax, DWORD PTR _count$[ebp] mov ecx, DWORD PTR [eax] add ecx, 1 mov edx, DWORD PTR _count$[ebp] mov DWORD PTR [edx], ecx $LN1@xmlValidat: ; 4127 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlValidateAttributeIdCallback ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateAttributeValue2 _TEXT SEGMENT tv64 = -36 ; size = 4 _nota$1 = -32 ; size = 4 _ent$2 = -28 ; size = 4 _save$3 = -21 ; size = 1 _cur$4 = -20 ; size = 4 _nam$5 = -16 ; size = 4 _dup$6 = -12 ; size = 4 _ent$7 = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _name$ = 16 ; size = 4 _type$ = 20 ; size = 4 _value$ = 24 ; size = 4 _xmlValidateAttributeValue2 PROC ; COMDAT ; 3871 : const xmlChar *name, xmlAttributeType type, const xmlChar *value) { push ebp mov ebp, esp sub esp, 36 ; 00000024H push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-36], eax mov DWORD PTR [ebp-32], eax mov DWORD PTR [ebp-28], eax mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3872 : int ret = 1; mov DWORD PTR _ret$[ebp], 1 ; 3873 : switch (type) { mov eax, DWORD PTR _type$[ebp] mov DWORD PTR tv64[ebp], eax cmp DWORD PTR tv64[ebp], 5 je SHORT $LN11@xmlValidat cmp DWORD PTR tv64[ebp], 6 je $LN16@xmlValidat cmp DWORD PTR tv64[ebp], 10 ; 0000000aH je $LN25@xmlValidat jmp $LN2@xmlValidat ; 3874 : case XML_ATTRIBUTE_IDREFS: ; 3875 : case XML_ATTRIBUTE_IDREF: ; 3876 : case XML_ATTRIBUTE_ID: ; 3877 : case XML_ATTRIBUTE_NMTOKENS: ; 3878 : case XML_ATTRIBUTE_ENUMERATION: ; 3879 : case XML_ATTRIBUTE_NMTOKEN: ; 3880 : case XML_ATTRIBUTE_CDATA: ; 3881 : break; jmp $LN2@xmlValidat $LN11@xmlValidat: ; 3882 : case XML_ATTRIBUTE_ENTITY: { ; 3883 : xmlEntityPtr ent; ; 3884 : ; 3885 : ent = xmlGetDocEntity(doc, value); mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] push edx call _xmlGetDocEntity add esp, 8 mov DWORD PTR _ent$7[ebp], eax ; 3886 : /* yeah it's a bit messy... */ ; 3887 : if ((ent == NULL) && (doc->standalone == 1)) { cmp DWORD PTR _ent$7[ebp], 0 jne SHORT $LN12@xmlValidat mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+40], 1 jne SHORT $LN12@xmlValidat ; 3888 : doc->standalone = 0; mov ecx, DWORD PTR _doc$[ebp] mov DWORD PTR [ecx+40], 0 ; 3889 : ent = xmlGetDocEntity(doc, value); mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _doc$[ebp] push eax call _xmlGetDocEntity add esp, 8 mov DWORD PTR _ent$7[ebp], eax $LN12@xmlValidat: ; 3890 : } ; 3891 : if (ent == NULL) { cmp DWORD PTR _ent$7[ebp], 0 jne SHORT $LN13@xmlValidat ; 3892 : xmlErrValidNode(ctxt, (xmlNodePtr) doc, push 0 mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _name$[ebp] push edx push OFFSET ??_C@_0DG@NHAJHAEC@ENTITY?5attribute?5?$CFs?5reference?5a@ push 535 ; 00000217H mov eax, DWORD PTR _doc$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 3893 : XML_DTD_UNKNOWN_ENTITY, ; 3894 : "ENTITY attribute %s reference an unknown entity \"%s\"\n", ; 3895 : name, value, NULL); ; 3896 : ret = 0; mov DWORD PTR _ret$[ebp], 0 jmp SHORT $LN14@xmlValidat $LN13@xmlValidat: ; 3897 : } else if (ent->etype != XML_EXTERNAL_GENERAL_UNPARSED_ENTITY) { mov edx, DWORD PTR _ent$7[ebp] cmp DWORD PTR [edx+48], 3 je SHORT $LN14@xmlValidat ; 3898 : xmlErrValidNode(ctxt, (xmlNodePtr) doc, push 0 mov eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _name$[ebp] push ecx push OFFSET ??_C@_0DM@CBMBENAH@ENTITY?5attribute?5?$CFs?5reference?5a@ push 511 ; 000001ffH mov edx, DWORD PTR _doc$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH ; 3899 : XML_DTD_ENTITY_TYPE, ; 3900 : "ENTITY attribute %s reference an entity \"%s\" of wrong type\n", ; 3901 : name, value, NULL); ; 3902 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN14@xmlValidat: ; 3903 : } ; 3904 : break; jmp $LN2@xmlValidat $LN16@xmlValidat: ; 3905 : } ; 3906 : case XML_ATTRIBUTE_ENTITIES: { ; 3907 : xmlChar *dup, *nam = NULL, *cur, save; mov DWORD PTR _nam$5[ebp], 0 ; 3908 : xmlEntityPtr ent; ; 3909 : ; 3910 : dup = xmlStrdup(value); mov ecx, DWORD PTR _value$[ebp] push ecx call _xmlStrdup add esp, 4 mov DWORD PTR _dup$6[ebp], eax ; 3911 : if (dup == NULL) cmp DWORD PTR _dup$6[ebp], 0 jne SHORT $LN17@xmlValidat ; 3912 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN17@xmlValidat: ; 3913 : cur = dup; mov edx, DWORD PTR _dup$6[ebp] mov DWORD PTR _cur$4[ebp], edx $LN4@xmlValidat: ; 3914 : while (*cur != 0) { mov eax, DWORD PTR _cur$4[ebp] movzx ecx, BYTE PTR [eax] test ecx, ecx je $LN5@xmlValidat ; 3915 : nam = cur; mov edx, DWORD PTR _cur$4[ebp] mov DWORD PTR _nam$5[ebp], edx $LN6@xmlValidat: ; 3916 : while ((*cur != 0) && (!IS_BLANK_CH(*cur))) cur++; mov eax, DWORD PTR _cur$4[ebp] movzx ecx, BYTE PTR [eax] test ecx, ecx je SHORT $LN7@xmlValidat mov edx, DWORD PTR _cur$4[ebp] movzx eax, BYTE PTR [edx] cmp eax, 32 ; 00000020H je SHORT $LN7@xmlValidat mov ecx, DWORD PTR _cur$4[ebp] movzx edx, BYTE PTR [ecx] cmp edx, 9 jl SHORT $LN18@xmlValidat mov eax, DWORD PTR _cur$4[ebp] movzx ecx, BYTE PTR [eax] cmp ecx, 10 ; 0000000aH jle SHORT $LN7@xmlValidat $LN18@xmlValidat: mov edx, DWORD PTR _cur$4[ebp] movzx eax, BYTE PTR [edx] cmp eax, 13 ; 0000000dH je SHORT $LN7@xmlValidat mov ecx, DWORD PTR _cur$4[ebp] add ecx, 1 mov DWORD PTR _cur$4[ebp], ecx jmp SHORT $LN6@xmlValidat $LN7@xmlValidat: ; 3917 : save = *cur; mov edx, DWORD PTR _cur$4[ebp] mov al, BYTE PTR [edx] mov BYTE PTR _save$3[ebp], al ; 3918 : *cur = 0; mov ecx, DWORD PTR _cur$4[ebp] mov BYTE PTR [ecx], 0 ; 3919 : ent = xmlGetDocEntity(doc, nam); mov edx, DWORD PTR _nam$5[ebp] push edx mov eax, DWORD PTR _doc$[ebp] push eax call _xmlGetDocEntity add esp, 8 mov DWORD PTR _ent$2[ebp], eax ; 3920 : if (ent == NULL) { cmp DWORD PTR _ent$2[ebp], 0 jne SHORT $LN19@xmlValidat ; 3921 : xmlErrValidNode(ctxt, (xmlNodePtr) doc, push 0 mov ecx, DWORD PTR _nam$5[ebp] push ecx mov edx, DWORD PTR _name$[ebp] push edx push OFFSET ??_C@_0DI@MOCJGONA@ENTITIES?5attribute?5?$CFs?5reference@ push 535 ; 00000217H mov eax, DWORD PTR _doc$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 3922 : XML_DTD_UNKNOWN_ENTITY, ; 3923 : "ENTITIES attribute %s reference an unknown entity \"%s\"\n", ; 3924 : name, nam, NULL); ; 3925 : ret = 0; mov DWORD PTR _ret$[ebp], 0 jmp SHORT $LN20@xmlValidat $LN19@xmlValidat: ; 3926 : } else if (ent->etype != XML_EXTERNAL_GENERAL_UNPARSED_ENTITY) { mov edx, DWORD PTR _ent$2[ebp] cmp DWORD PTR [edx+48], 3 je SHORT $LN20@xmlValidat ; 3927 : xmlErrValidNode(ctxt, (xmlNodePtr) doc, push 0 mov eax, DWORD PTR _nam$5[ebp] push eax mov ecx, DWORD PTR _name$[ebp] push ecx push OFFSET ??_C@_0DO@BNHKOEGN@ENTITIES?5attribute?5?$CFs?5reference@ push 511 ; 000001ffH mov edx, DWORD PTR _doc$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH ; 3928 : XML_DTD_ENTITY_TYPE, ; 3929 : "ENTITIES attribute %s reference an entity \"%s\" of wrong type\n", ; 3930 : name, nam, NULL); ; 3931 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN20@xmlValidat: ; 3932 : } ; 3933 : if (save == 0) movzx ecx, BYTE PTR _save$3[ebp] test ecx, ecx jne SHORT $LN22@xmlValidat ; 3934 : break; jmp SHORT $LN5@xmlValidat $LN22@xmlValidat: ; 3935 : *cur = save; mov edx, DWORD PTR _cur$4[ebp] mov al, BYTE PTR _save$3[ebp] mov BYTE PTR [edx], al $LN8@xmlValidat: ; 3936 : while (IS_BLANK_CH(*cur)) cur++; mov ecx, DWORD PTR _cur$4[ebp] movzx edx, BYTE PTR [ecx] cmp edx, 32 ; 00000020H je SHORT $LN23@xmlValidat mov eax, DWORD PTR _cur$4[ebp] movzx ecx, BYTE PTR [eax] cmp ecx, 9 jl SHORT $LN24@xmlValidat mov edx, DWORD PTR _cur$4[ebp] movzx eax, BYTE PTR [edx] cmp eax, 10 ; 0000000aH jle SHORT $LN23@xmlValidat $LN24@xmlValidat: mov ecx, DWORD PTR _cur$4[ebp] movzx edx, BYTE PTR [ecx] cmp edx, 13 ; 0000000dH jne SHORT $LN9@xmlValidat $LN23@xmlValidat: mov eax, DWORD PTR _cur$4[ebp] add eax, 1 mov DWORD PTR _cur$4[ebp], eax jmp SHORT $LN8@xmlValidat $LN9@xmlValidat: ; 3937 : } jmp $LN4@xmlValidat $LN5@xmlValidat: ; 3938 : xmlFree(dup); mov esi, esp mov ecx, DWORD PTR _dup$6[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 3939 : break; jmp SHORT $LN2@xmlValidat $LN25@xmlValidat: ; 3940 : } ; 3941 : case XML_ATTRIBUTE_NOTATION: { ; 3942 : xmlNotationPtr nota; ; 3943 : ; 3944 : nota = xmlGetDtdNotationDesc(doc->intSubset, value); mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+44] push ecx call _xmlGetDtdNotationDesc add esp, 8 mov DWORD PTR _nota$1[ebp], eax ; 3945 : if ((nota == NULL) && (doc->extSubset != NULL)) cmp DWORD PTR _nota$1[ebp], 0 jne SHORT $LN26@xmlValidat mov edx, DWORD PTR _doc$[ebp] cmp DWORD PTR [edx+48], 0 je SHORT $LN26@xmlValidat ; 3946 : nota = xmlGetDtdNotationDesc(doc->extSubset, value); mov eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+48] push edx call _xmlGetDtdNotationDesc add esp, 8 mov DWORD PTR _nota$1[ebp], eax $LN26@xmlValidat: ; 3947 : ; 3948 : if (nota == NULL) { cmp DWORD PTR _nota$1[ebp], 0 jne SHORT $LN2@xmlValidat ; 3949 : xmlErrValidNode(ctxt, (xmlNodePtr) doc, push 0 mov eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _name$[ebp] push ecx push OFFSET ??_C@_0DK@HMAANMLE@NOTATION?5attribute?5?$CFs?5reference@ push 537 ; 00000219H mov edx, DWORD PTR _doc$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH ; 3950 : XML_DTD_UNKNOWN_NOTATION, ; 3951 : "NOTATION attribute %s reference an unknown notation \"%s\"\n", ; 3952 : name, value, NULL); ; 3953 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN2@xmlValidat: ; 3954 : } ; 3955 : break; ; 3956 : } ; 3957 : } ; 3958 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlValidat: ; 3959 : } pop esi add esp, 36 ; 00000024H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlValidateAttributeValue2 ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateNmtokensValueInternal _TEXT SEGMENT tv76 = -28 ; size = 4 tv75 = -24 ; size = 4 _len$ = -16 ; size = 4 _val$ = -8 ; size = 4 _cur$ = -4 ; size = 4 _doc$ = 8 ; size = 4 _value$ = 12 ; size = 4 _xmlValidateNmtokensValueInternal PROC ; COMDAT ; 3691 : xmlValidateNmtokensValueInternal(xmlDocPtr doc, const xmlChar *value) { push ebp mov ebp, esp sub esp, 28 ; 0000001cH mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-28], eax mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3692 : const xmlChar *cur; ; 3693 : int val, len; ; 3694 : ; 3695 : if (value == NULL) return(0); cmp DWORD PTR _value$[ebp], 0 jne SHORT $LN12@xmlValidat xor eax, eax jmp $LN1@xmlValidat $LN12@xmlValidat: ; 3696 : cur = value; mov eax, DWORD PTR _value$[ebp] mov DWORD PTR _cur$[ebp], eax ; 3697 : val = xmlStringCurrentChar(NULL, cur, &len); lea ecx, DWORD PTR _len$[ebp] push ecx mov edx, DWORD PTR _cur$[ebp] push edx push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3698 : cur += len; mov eax, DWORD PTR _cur$[ebp] add eax, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], eax $LN2@xmlValidat: ; 3699 : ; 3700 : while (IS_BLANK(val)) { cmp DWORD PTR _val$[ebp], 256 ; 00000100H jge SHORT $LN21@xmlValidat cmp DWORD PTR _val$[ebp], 32 ; 00000020H je SHORT $LN19@xmlValidat cmp DWORD PTR _val$[ebp], 9 jl SHORT $LN18@xmlValidat cmp DWORD PTR _val$[ebp], 10 ; 0000000aH jle SHORT $LN19@xmlValidat $LN18@xmlValidat: cmp DWORD PTR _val$[ebp], 13 ; 0000000dH je SHORT $LN19@xmlValidat mov DWORD PTR tv75[ebp], 0 jmp SHORT $LN20@xmlValidat $LN19@xmlValidat: mov DWORD PTR tv75[ebp], 1 $LN20@xmlValidat: mov ecx, DWORD PTR tv75[ebp] mov DWORD PTR tv76[ebp], ecx jmp SHORT $LN22@xmlValidat $LN21@xmlValidat: mov DWORD PTR tv76[ebp], 0 $LN22@xmlValidat: cmp DWORD PTR tv76[ebp], 0 je SHORT $LN3@xmlValidat ; 3701 : val = xmlStringCurrentChar(NULL, cur, &len); lea edx, DWORD PTR _len$[ebp] push edx mov eax, DWORD PTR _cur$[ebp] push eax push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3702 : cur += len; mov ecx, DWORD PTR _cur$[ebp] add ecx, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], ecx ; 3703 : } jmp SHORT $LN2@xmlValidat $LN3@xmlValidat: ; 3704 : ; 3705 : if (!xmlIsDocNameChar(doc, val)) mov edx, DWORD PTR _val$[ebp] push edx mov eax, DWORD PTR _doc$[ebp] push eax call _xmlIsDocNameChar add esp, 8 test eax, eax jne SHORT $LN4@xmlValidat ; 3706 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN4@xmlValidat: ; 3707 : ; 3708 : while (xmlIsDocNameChar(doc, val)) { mov ecx, DWORD PTR _val$[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] push edx call _xmlIsDocNameChar add esp, 8 test eax, eax je SHORT $LN6@xmlValidat ; 3709 : val = xmlStringCurrentChar(NULL, cur, &len); lea eax, DWORD PTR _len$[ebp] push eax mov ecx, DWORD PTR _cur$[ebp] push ecx push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3710 : cur += len; mov edx, DWORD PTR _cur$[ebp] add edx, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], edx ; 3711 : } jmp SHORT $LN4@xmlValidat $LN6@xmlValidat: ; 3712 : ; 3713 : /* Should not test IS_BLANK(val) here -- see erratum E20*/ ; 3714 : while (val == 0x20) { cmp DWORD PTR _val$[ebp], 32 ; 00000020H jne $LN7@xmlValidat $LN8@xmlValidat: ; 3715 : while (val == 0x20) { cmp DWORD PTR _val$[ebp], 32 ; 00000020H jne SHORT $LN9@xmlValidat ; 3716 : val = xmlStringCurrentChar(NULL, cur, &len); lea eax, DWORD PTR _len$[ebp] push eax mov ecx, DWORD PTR _cur$[ebp] push ecx push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3717 : cur += len; mov edx, DWORD PTR _cur$[ebp] add edx, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], edx ; 3718 : } jmp SHORT $LN8@xmlValidat $LN9@xmlValidat: ; 3719 : if (val == 0) return(1); cmp DWORD PTR _val$[ebp], 0 jne SHORT $LN14@xmlValidat mov eax, 1 jmp SHORT $LN1@xmlValidat $LN14@xmlValidat: ; 3720 : ; 3721 : if (!xmlIsDocNameChar(doc, val)) mov eax, DWORD PTR _val$[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] push ecx call _xmlIsDocNameChar add esp, 8 test eax, eax jne SHORT $LN15@xmlValidat ; 3722 : return(0); xor eax, eax jmp SHORT $LN1@xmlValidat $LN15@xmlValidat: ; 3723 : ; 3724 : val = xmlStringCurrentChar(NULL, cur, &len); lea edx, DWORD PTR _len$[ebp] push edx mov eax, DWORD PTR _cur$[ebp] push eax push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3725 : cur += len; mov ecx, DWORD PTR _cur$[ebp] add ecx, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], ecx $LN10@xmlValidat: ; 3726 : ; 3727 : while (xmlIsDocNameChar(doc, val)) { mov edx, DWORD PTR _val$[ebp] push edx mov eax, DWORD PTR _doc$[ebp] push eax call _xmlIsDocNameChar add esp, 8 test eax, eax je SHORT $LN11@xmlValidat ; 3728 : val = xmlStringCurrentChar(NULL, cur, &len); lea ecx, DWORD PTR _len$[ebp] push ecx mov edx, DWORD PTR _cur$[ebp] push edx push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3729 : cur += len; mov eax, DWORD PTR _cur$[ebp] add eax, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], eax ; 3730 : } jmp SHORT $LN10@xmlValidat $LN11@xmlValidat: ; 3731 : } jmp $LN6@xmlValidat $LN7@xmlValidat: ; 3732 : ; 3733 : if (val != 0) return(0); cmp DWORD PTR _val$[ebp], 0 je SHORT $LN16@xmlValidat xor eax, eax jmp SHORT $LN1@xmlValidat $LN16@xmlValidat: ; 3734 : ; 3735 : return(1); mov eax, 1 $LN1@xmlValidat: ; 3736 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN25@xmlValidat call @_RTC_CheckStackVars@8 pop eax pop edx add esp, 28 ; 0000001cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 2 $LN25@xmlValidat: DD 1 DD $LN24@xmlValidat $LN24@xmlValidat: DD -16 ; fffffff0H DD 4 DD $LN23@xmlValidat $LN23@xmlValidat: DB 108 ; 0000006cH DB 101 ; 00000065H DB 110 ; 0000006eH DB 0 _xmlValidateNmtokensValueInternal ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateNmtokenValueInternal _TEXT SEGMENT _len$ = -16 ; size = 4 _val$ = -8 ; size = 4 _cur$ = -4 ; size = 4 _doc$ = 8 ; size = 4 _value$ = 12 ; size = 4 _xmlValidateNmtokenValueInternal PROC ; COMDAT ; 3638 : xmlValidateNmtokenValueInternal(xmlDocPtr doc, const xmlChar *value) { push ebp mov ebp, esp sub esp, 20 ; 00000014H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3639 : const xmlChar *cur; ; 3640 : int val, len; ; 3641 : ; 3642 : if (value == NULL) return(0); cmp DWORD PTR _value$[ebp], 0 jne SHORT $LN4@xmlValidat xor eax, eax jmp $LN1@xmlValidat $LN4@xmlValidat: ; 3643 : cur = value; mov eax, DWORD PTR _value$[ebp] mov DWORD PTR _cur$[ebp], eax ; 3644 : val = xmlStringCurrentChar(NULL, cur, &len); lea ecx, DWORD PTR _len$[ebp] push ecx mov edx, DWORD PTR _cur$[ebp] push edx push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3645 : cur += len; mov eax, DWORD PTR _cur$[ebp] add eax, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], eax ; 3646 : ; 3647 : if (!xmlIsDocNameChar(doc, val)) mov ecx, DWORD PTR _val$[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] push edx call _xmlIsDocNameChar add esp, 8 test eax, eax jne SHORT $LN5@xmlValidat ; 3648 : return(0); xor eax, eax jmp SHORT $LN1@xmlValidat $LN5@xmlValidat: ; 3649 : ; 3650 : val = xmlStringCurrentChar(NULL, cur, &len); lea eax, DWORD PTR _len$[ebp] push eax mov ecx, DWORD PTR _cur$[ebp] push ecx push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3651 : cur += len; mov edx, DWORD PTR _cur$[ebp] add edx, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], edx $LN2@xmlValidat: ; 3652 : while (xmlIsDocNameChar(doc, val)) { mov eax, DWORD PTR _val$[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] push ecx call _xmlIsDocNameChar add esp, 8 test eax, eax je SHORT $LN3@xmlValidat ; 3653 : val = xmlStringCurrentChar(NULL, cur, &len); lea edx, DWORD PTR _len$[ebp] push edx mov eax, DWORD PTR _cur$[ebp] push eax push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3654 : cur += len; mov ecx, DWORD PTR _cur$[ebp] add ecx, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], ecx ; 3655 : } jmp SHORT $LN2@xmlValidat $LN3@xmlValidat: ; 3656 : ; 3657 : if (val != 0) return(0); cmp DWORD PTR _val$[ebp], 0 je SHORT $LN6@xmlValidat xor eax, eax jmp SHORT $LN1@xmlValidat $LN6@xmlValidat: ; 3658 : ; 3659 : return(1); mov eax, 1 $LN1@xmlValidat: ; 3660 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN10@xmlValidat call @_RTC_CheckStackVars@8 pop eax pop edx add esp, 20 ; 00000014H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 3 $LN10@xmlValidat: DD 1 DD $LN9@xmlValidat $LN9@xmlValidat: DD -16 ; fffffff0H DD 4 DD $LN8@xmlValidat $LN8@xmlValidat: DB 108 ; 0000006cH DB 101 ; 00000065H DB 110 ; 0000006eH DB 0 _xmlValidateNmtokenValueInternal ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateNamesValueInternal _TEXT SEGMENT _len$ = -16 ; size = 4 _val$ = -8 ; size = 4 _cur$ = -4 ; size = 4 _doc$ = 8 ; size = 4 _value$ = 12 ; size = 4 _xmlValidateNamesValueInternal PROC ; COMDAT ; 3568 : xmlValidateNamesValueInternal(xmlDocPtr doc, const xmlChar *value) { push ebp mov ebp, esp sub esp, 20 ; 00000014H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3569 : const xmlChar *cur; ; 3570 : int val, len; ; 3571 : ; 3572 : if (value == NULL) return(0); cmp DWORD PTR _value$[ebp], 0 jne SHORT $LN10@xmlValidat xor eax, eax jmp $LN1@xmlValidat $LN10@xmlValidat: ; 3573 : cur = value; mov eax, DWORD PTR _value$[ebp] mov DWORD PTR _cur$[ebp], eax ; 3574 : val = xmlStringCurrentChar(NULL, cur, &len); lea ecx, DWORD PTR _len$[ebp] push ecx mov edx, DWORD PTR _cur$[ebp] push edx push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3575 : cur += len; mov eax, DWORD PTR _cur$[ebp] add eax, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], eax ; 3576 : ; 3577 : if (!xmlIsDocNameStartChar(doc, val)) mov ecx, DWORD PTR _val$[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] push edx call _xmlIsDocNameStartChar add esp, 8 test eax, eax jne SHORT $LN11@xmlValidat ; 3578 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN11@xmlValidat: ; 3579 : ; 3580 : val = xmlStringCurrentChar(NULL, cur, &len); lea eax, DWORD PTR _len$[ebp] push eax mov ecx, DWORD PTR _cur$[ebp] push ecx push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3581 : cur += len; mov edx, DWORD PTR _cur$[ebp] add edx, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], edx $LN2@xmlValidat: ; 3582 : while (xmlIsDocNameChar(doc, val)) { mov eax, DWORD PTR _val$[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] push ecx call _xmlIsDocNameChar add esp, 8 test eax, eax je SHORT $LN4@xmlValidat ; 3583 : val = xmlStringCurrentChar(NULL, cur, &len); lea edx, DWORD PTR _len$[ebp] push edx mov eax, DWORD PTR _cur$[ebp] push eax push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3584 : cur += len; mov ecx, DWORD PTR _cur$[ebp] add ecx, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], ecx ; 3585 : } jmp SHORT $LN2@xmlValidat $LN4@xmlValidat: ; 3586 : ; 3587 : /* Should not test IS_BLANK(val) here -- see erratum E20*/ ; 3588 : while (val == 0x20) { cmp DWORD PTR _val$[ebp], 32 ; 00000020H jne $LN5@xmlValidat $LN6@xmlValidat: ; 3589 : while (val == 0x20) { cmp DWORD PTR _val$[ebp], 32 ; 00000020H jne SHORT $LN7@xmlValidat ; 3590 : val = xmlStringCurrentChar(NULL, cur, &len); lea edx, DWORD PTR _len$[ebp] push edx mov eax, DWORD PTR _cur$[ebp] push eax push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3591 : cur += len; mov ecx, DWORD PTR _cur$[ebp] add ecx, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], ecx ; 3592 : } jmp SHORT $LN6@xmlValidat $LN7@xmlValidat: ; 3593 : ; 3594 : if (!xmlIsDocNameStartChar(doc, val)) mov edx, DWORD PTR _val$[ebp] push edx mov eax, DWORD PTR _doc$[ebp] push eax call _xmlIsDocNameStartChar add esp, 8 test eax, eax jne SHORT $LN12@xmlValidat ; 3595 : return(0); xor eax, eax jmp SHORT $LN1@xmlValidat $LN12@xmlValidat: ; 3596 : ; 3597 : val = xmlStringCurrentChar(NULL, cur, &len); lea ecx, DWORD PTR _len$[ebp] push ecx mov edx, DWORD PTR _cur$[ebp] push edx push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3598 : cur += len; mov eax, DWORD PTR _cur$[ebp] add eax, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], eax $LN8@xmlValidat: ; 3599 : ; 3600 : while (xmlIsDocNameChar(doc, val)) { mov ecx, DWORD PTR _val$[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] push edx call _xmlIsDocNameChar add esp, 8 test eax, eax je SHORT $LN9@xmlValidat ; 3601 : val = xmlStringCurrentChar(NULL, cur, &len); lea eax, DWORD PTR _len$[ebp] push eax mov ecx, DWORD PTR _cur$[ebp] push ecx push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3602 : cur += len; mov edx, DWORD PTR _cur$[ebp] add edx, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], edx ; 3603 : } jmp SHORT $LN8@xmlValidat $LN9@xmlValidat: ; 3604 : } jmp $LN4@xmlValidat $LN5@xmlValidat: ; 3605 : ; 3606 : if (val != 0) return(0); cmp DWORD PTR _val$[ebp], 0 je SHORT $LN13@xmlValidat xor eax, eax jmp SHORT $LN1@xmlValidat $LN13@xmlValidat: ; 3607 : ; 3608 : return(1); mov eax, 1 $LN1@xmlValidat: ; 3609 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN17@xmlValidat call @_RTC_CheckStackVars@8 pop eax pop edx add esp, 20 ; 00000014H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 1 $LN17@xmlValidat: DD 1 DD $LN16@xmlValidat $LN16@xmlValidat: DD -16 ; fffffff0H DD 4 DD $LN15@xmlValidat $LN15@xmlValidat: DB 108 ; 0000006cH DB 101 ; 00000065H DB 110 ; 0000006eH DB 0 _xmlValidateNamesValueInternal ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateNameValueInternal _TEXT SEGMENT _len$ = -16 ; size = 4 _val$ = -8 ; size = 4 _cur$ = -4 ; size = 4 _doc$ = 8 ; size = 4 _value$ = 12 ; size = 4 _xmlValidateNameValueInternal PROC ; COMDAT ; 3520 : xmlValidateNameValueInternal(xmlDocPtr doc, const xmlChar *value) { push ebp mov ebp, esp sub esp, 20 ; 00000014H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3521 : const xmlChar *cur; ; 3522 : int val, len; ; 3523 : ; 3524 : if (value == NULL) return(0); cmp DWORD PTR _value$[ebp], 0 jne SHORT $LN4@xmlValidat xor eax, eax jmp $LN1@xmlValidat $LN4@xmlValidat: ; 3525 : cur = value; mov eax, DWORD PTR _value$[ebp] mov DWORD PTR _cur$[ebp], eax ; 3526 : val = xmlStringCurrentChar(NULL, cur, &len); lea ecx, DWORD PTR _len$[ebp] push ecx mov edx, DWORD PTR _cur$[ebp] push edx push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3527 : cur += len; mov eax, DWORD PTR _cur$[ebp] add eax, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], eax ; 3528 : if (!xmlIsDocNameStartChar(doc, val)) mov ecx, DWORD PTR _val$[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] push edx call _xmlIsDocNameStartChar add esp, 8 test eax, eax jne SHORT $LN5@xmlValidat ; 3529 : return(0); xor eax, eax jmp SHORT $LN1@xmlValidat $LN5@xmlValidat: ; 3530 : ; 3531 : val = xmlStringCurrentChar(NULL, cur, &len); lea eax, DWORD PTR _len$[ebp] push eax mov ecx, DWORD PTR _cur$[ebp] push ecx push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3532 : cur += len; mov edx, DWORD PTR _cur$[ebp] add edx, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], edx $LN2@xmlValidat: ; 3533 : while (xmlIsDocNameChar(doc, val)) { mov eax, DWORD PTR _val$[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] push ecx call _xmlIsDocNameChar add esp, 8 test eax, eax je SHORT $LN3@xmlValidat ; 3534 : val = xmlStringCurrentChar(NULL, cur, &len); lea edx, DWORD PTR _len$[ebp] push edx mov eax, DWORD PTR _cur$[ebp] push eax push 0 call _xmlStringCurrentChar add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 3535 : cur += len; mov ecx, DWORD PTR _cur$[ebp] add ecx, DWORD PTR _len$[ebp] mov DWORD PTR _cur$[ebp], ecx ; 3536 : } jmp SHORT $LN2@xmlValidat $LN3@xmlValidat: ; 3537 : ; 3538 : if (val != 0) return(0); cmp DWORD PTR _val$[ebp], 0 je SHORT $LN6@xmlValidat xor eax, eax jmp SHORT $LN1@xmlValidat $LN6@xmlValidat: ; 3539 : ; 3540 : return(1); mov eax, 1 $LN1@xmlValidat: ; 3541 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN10@xmlValidat call @_RTC_CheckStackVars@8 pop eax pop edx add esp, 20 ; 00000014H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 3 $LN10@xmlValidat: DD 1 DD $LN9@xmlValidat $LN9@xmlValidat: DD -16 ; fffffff0H DD 4 DD $LN8@xmlValidat $LN8@xmlValidat: DB 108 ; 0000006cH DB 101 ; 00000065H DB 110 ; 0000006eH DB 0 _xmlValidateNameValueInternal ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlIsDocNameChar _TEXT SEGMENT tv189 = -36 ; size = 4 tv188 = -32 ; size = 4 tv181 = -28 ; size = 4 tv171 = -24 ; size = 4 tv170 = -20 ; size = 4 tv161 = -16 ; size = 4 tv162 = -12 ; size = 4 tv153 = -8 ; size = 4 tv152 = -4 ; size = 4 _doc$ = 8 ; size = 4 _c$ = 12 ; size = 4 _xmlIsDocNameChar PROC ; COMDAT ; 3472 : xmlIsDocNameChar(xmlDocPtr doc, int c) { push ebp mov ebp, esp sub esp, 36 ; 00000024H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-36], eax mov DWORD PTR [ebp-32], eax mov DWORD PTR [ebp-28], eax mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3473 : if ((doc == NULL) || (doc->properties & XML_DOC_OLD10) == 0) { cmp DWORD PTR _doc$[ebp], 0 je SHORT $LN4@xmlIsDocNa mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+92] and ecx, 4 jne $LN2@xmlIsDocNa $LN4@xmlIsDocNa: ; 3474 : /* ; 3475 : * Use the new checks of production [4] [4a] amd [5] of the ; 3476 : * Update 5 of XML-1.0 ; 3477 : */ ; 3478 : if (((c >= 'a') && (c <= 'z')) || ; 3479 : ((c >= 'A') && (c <= 'Z')) || ; 3480 : ((c >= '0') && (c <= '9')) || /* !start */ ; 3481 : (c == '_') || (c == ':') || ; 3482 : (c == '-') || (c == '.') || (c == 0xB7) || /* !start */ ; 3483 : ((c >= 0xC0) && (c <= 0xD6)) || ; 3484 : ((c >= 0xD8) && (c <= 0xF6)) || ; 3485 : ((c >= 0xF8) && (c <= 0x2FF)) || ; 3486 : ((c >= 0x300) && (c <= 0x36F)) || /* !start */ ; 3487 : ((c >= 0x370) && (c <= 0x37D)) || ; 3488 : ((c >= 0x37F) && (c <= 0x1FFF)) || ; 3489 : ((c >= 0x200C) && (c <= 0x200D)) || ; 3490 : ((c >= 0x203F) && (c <= 0x2040)) || /* !start */ ; 3491 : ((c >= 0x2070) && (c <= 0x218F)) || ; 3492 : ((c >= 0x2C00) && (c <= 0x2FEF)) || ; 3493 : ((c >= 0x3001) && (c <= 0xD7FF)) || ; 3494 : ((c >= 0xF900) && (c <= 0xFDCF)) || ; 3495 : ((c >= 0xFDF0) && (c <= 0xFFFD)) || cmp DWORD PTR _c$[ebp], 97 ; 00000061H jl SHORT $LN7@xmlIsDocNa cmp DWORD PTR _c$[ebp], 122 ; 0000007aH jle $LN6@xmlIsDocNa $LN7@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 65 ; 00000041H jl SHORT $LN8@xmlIsDocNa cmp DWORD PTR _c$[ebp], 90 ; 0000005aH jle $LN6@xmlIsDocNa $LN8@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 48 ; 00000030H jl SHORT $LN9@xmlIsDocNa cmp DWORD PTR _c$[ebp], 57 ; 00000039H jle $LN6@xmlIsDocNa $LN9@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 95 ; 0000005fH je $LN6@xmlIsDocNa cmp DWORD PTR _c$[ebp], 58 ; 0000003aH je $LN6@xmlIsDocNa cmp DWORD PTR _c$[ebp], 45 ; 0000002dH je $LN6@xmlIsDocNa cmp DWORD PTR _c$[ebp], 46 ; 0000002eH je $LN6@xmlIsDocNa cmp DWORD PTR _c$[ebp], 183 ; 000000b7H je $LN6@xmlIsDocNa cmp DWORD PTR _c$[ebp], 192 ; 000000c0H jl SHORT $LN10@xmlIsDocNa cmp DWORD PTR _c$[ebp], 214 ; 000000d6H jle $LN6@xmlIsDocNa $LN10@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 216 ; 000000d8H jl SHORT $LN11@xmlIsDocNa cmp DWORD PTR _c$[ebp], 246 ; 000000f6H jle $LN6@xmlIsDocNa $LN11@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 248 ; 000000f8H jl SHORT $LN12@xmlIsDocNa cmp DWORD PTR _c$[ebp], 767 ; 000002ffH jle $LN6@xmlIsDocNa $LN12@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 768 ; 00000300H jl SHORT $LN13@xmlIsDocNa cmp DWORD PTR _c$[ebp], 879 ; 0000036fH jle $LN6@xmlIsDocNa $LN13@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 880 ; 00000370H jl SHORT $LN14@xmlIsDocNa cmp DWORD PTR _c$[ebp], 893 ; 0000037dH jle $LN6@xmlIsDocNa $LN14@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 895 ; 0000037fH jl SHORT $LN15@xmlIsDocNa cmp DWORD PTR _c$[ebp], 8191 ; 00001fffH jle $LN6@xmlIsDocNa $LN15@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 8204 ; 0000200cH jl SHORT $LN16@xmlIsDocNa cmp DWORD PTR _c$[ebp], 8205 ; 0000200dH jle SHORT $LN6@xmlIsDocNa $LN16@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 8255 ; 0000203fH jl SHORT $LN17@xmlIsDocNa cmp DWORD PTR _c$[ebp], 8256 ; 00002040H jle SHORT $LN6@xmlIsDocNa $LN17@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 8304 ; 00002070H jl SHORT $LN18@xmlIsDocNa cmp DWORD PTR _c$[ebp], 8591 ; 0000218fH jle SHORT $LN6@xmlIsDocNa $LN18@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 11264 ; 00002c00H jl SHORT $LN19@xmlIsDocNa cmp DWORD PTR _c$[ebp], 12271 ; 00002fefH jle SHORT $LN6@xmlIsDocNa $LN19@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 12289 ; 00003001H jl SHORT $LN20@xmlIsDocNa cmp DWORD PTR _c$[ebp], 55295 ; 0000d7ffH jle SHORT $LN6@xmlIsDocNa $LN20@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 63744 ; 0000f900H jl SHORT $LN21@xmlIsDocNa cmp DWORD PTR _c$[ebp], 64975 ; 0000fdcfH jle SHORT $LN6@xmlIsDocNa $LN21@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 65008 ; 0000fdf0H jl SHORT $LN22@xmlIsDocNa cmp DWORD PTR _c$[ebp], 65533 ; 0000fffdH jle SHORT $LN6@xmlIsDocNa $LN22@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 65536 ; 00010000H jl SHORT $LN5@xmlIsDocNa cmp DWORD PTR _c$[ebp], 983039 ; 000effffH jg SHORT $LN5@xmlIsDocNa $LN6@xmlIsDocNa: ; 3496 : ((c >= 0x10000) && (c <= 0xEFFFF))) ; 3497 : return(1); mov eax, 1 jmp $LN1@xmlIsDocNa $LN5@xmlIsDocNa: ; 3498 : } else { jmp $LN3@xmlIsDocNa $LN2@xmlIsDocNa: ; 3499 : if ((IS_LETTER(c)) || (IS_DIGIT(c)) || ; 3500 : (c == '.') || (c == '-') || ; 3501 : (c == '_') || (c == ':') || ; 3502 : (IS_COMBINING(c)) || cmp DWORD PTR _c$[ebp], 256 ; 00000100H jge SHORT $LN32@xmlIsDocNa cmp DWORD PTR _c$[ebp], 65 ; 00000041H jl SHORT $LN26@xmlIsDocNa cmp DWORD PTR _c$[ebp], 90 ; 0000005aH jle SHORT $LN28@xmlIsDocNa $LN26@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 97 ; 00000061H jl SHORT $LN27@xmlIsDocNa cmp DWORD PTR _c$[ebp], 122 ; 0000007aH jle SHORT $LN28@xmlIsDocNa $LN27@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 192 ; 000000c0H jl SHORT $LN29@xmlIsDocNa cmp DWORD PTR _c$[ebp], 214 ; 000000d6H jle SHORT $LN28@xmlIsDocNa $LN29@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 216 ; 000000d8H jl SHORT $LN30@xmlIsDocNa cmp DWORD PTR _c$[ebp], 246 ; 000000f6H jle SHORT $LN28@xmlIsDocNa $LN30@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 248 ; 000000f8H jge SHORT $LN28@xmlIsDocNa mov DWORD PTR tv152[ebp], 0 jmp SHORT $LN31@xmlIsDocNa $LN28@xmlIsDocNa: mov DWORD PTR tv152[ebp], 1 $LN31@xmlIsDocNa: mov edx, DWORD PTR tv152[ebp] mov DWORD PTR tv153[ebp], edx jmp SHORT $LN33@xmlIsDocNa $LN32@xmlIsDocNa: push OFFSET _xmlIsBaseCharGroup mov eax, DWORD PTR _c$[ebp] push eax call _xmlCharInRange add esp, 8 mov DWORD PTR tv153[ebp], eax $LN33@xmlIsDocNa: cmp DWORD PTR tv153[ebp], 0 jne $LN24@xmlIsDocNa cmp DWORD PTR _c$[ebp], 256 ; 00000100H jge SHORT $LN38@xmlIsDocNa mov DWORD PTR tv162[ebp], 0 jmp SHORT $LN39@xmlIsDocNa $LN38@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 19968 ; 00004e00H jl SHORT $LN34@xmlIsDocNa cmp DWORD PTR _c$[ebp], 40869 ; 00009fa5H jle SHORT $LN35@xmlIsDocNa $LN34@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 12295 ; 00003007H je SHORT $LN35@xmlIsDocNa cmp DWORD PTR _c$[ebp], 12321 ; 00003021H jl SHORT $LN36@xmlIsDocNa cmp DWORD PTR _c$[ebp], 12329 ; 00003029H jle SHORT $LN35@xmlIsDocNa $LN36@xmlIsDocNa: mov DWORD PTR tv161[ebp], 0 jmp SHORT $LN37@xmlIsDocNa $LN35@xmlIsDocNa: mov DWORD PTR tv161[ebp], 1 $LN37@xmlIsDocNa: mov ecx, DWORD PTR tv161[ebp] mov DWORD PTR tv162[ebp], ecx $LN39@xmlIsDocNa: cmp DWORD PTR tv162[ebp], 0 jne $LN24@xmlIsDocNa cmp DWORD PTR _c$[ebp], 256 ; 00000100H jge SHORT $LN42@xmlIsDocNa cmp DWORD PTR _c$[ebp], 48 ; 00000030H jl SHORT $LN40@xmlIsDocNa cmp DWORD PTR _c$[ebp], 57 ; 00000039H jg SHORT $LN40@xmlIsDocNa mov DWORD PTR tv170[ebp], 1 jmp SHORT $LN41@xmlIsDocNa $LN40@xmlIsDocNa: mov DWORD PTR tv170[ebp], 0 $LN41@xmlIsDocNa: mov edx, DWORD PTR tv170[ebp] mov DWORD PTR tv171[ebp], edx jmp SHORT $LN43@xmlIsDocNa $LN42@xmlIsDocNa: push OFFSET _xmlIsDigitGroup mov eax, DWORD PTR _c$[ebp] push eax call _xmlCharInRange add esp, 8 mov DWORD PTR tv171[ebp], eax $LN43@xmlIsDocNa: cmp DWORD PTR tv171[ebp], 0 jne $LN24@xmlIsDocNa cmp DWORD PTR _c$[ebp], 46 ; 0000002eH je $LN24@xmlIsDocNa cmp DWORD PTR _c$[ebp], 45 ; 0000002dH je SHORT $LN24@xmlIsDocNa cmp DWORD PTR _c$[ebp], 95 ; 0000005fH je SHORT $LN24@xmlIsDocNa cmp DWORD PTR _c$[ebp], 58 ; 0000003aH je SHORT $LN24@xmlIsDocNa cmp DWORD PTR _c$[ebp], 256 ; 00000100H jge SHORT $LN44@xmlIsDocNa mov DWORD PTR tv181[ebp], 0 jmp SHORT $LN45@xmlIsDocNa $LN44@xmlIsDocNa: push OFFSET _xmlIsCombiningGroup mov ecx, DWORD PTR _c$[ebp] push ecx call _xmlCharInRange add esp, 8 mov DWORD PTR tv181[ebp], eax $LN45@xmlIsDocNa: cmp DWORD PTR tv181[ebp], 0 jne SHORT $LN24@xmlIsDocNa cmp DWORD PTR _c$[ebp], 256 ; 00000100H jge SHORT $LN48@xmlIsDocNa cmp DWORD PTR _c$[ebp], 183 ; 000000b7H jne SHORT $LN46@xmlIsDocNa mov DWORD PTR tv188[ebp], 1 jmp SHORT $LN47@xmlIsDocNa $LN46@xmlIsDocNa: mov DWORD PTR tv188[ebp], 0 $LN47@xmlIsDocNa: mov edx, DWORD PTR tv188[ebp] mov DWORD PTR tv189[ebp], edx jmp SHORT $LN49@xmlIsDocNa $LN48@xmlIsDocNa: push OFFSET _xmlIsExtenderGroup mov eax, DWORD PTR _c$[ebp] push eax call _xmlCharInRange add esp, 8 mov DWORD PTR tv189[ebp], eax $LN49@xmlIsDocNa: cmp DWORD PTR tv189[ebp], 0 je SHORT $LN3@xmlIsDocNa $LN24@xmlIsDocNa: ; 3503 : (IS_EXTENDER(c))) ; 3504 : return(1); mov eax, 1 jmp SHORT $LN1@xmlIsDocNa $LN3@xmlIsDocNa: ; 3505 : } ; 3506 : return(0); xor eax, eax $LN1@xmlIsDocNa: ; 3507 : } add esp, 36 ; 00000024H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlIsDocNameChar ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlIsDocNameStartChar _TEXT SEGMENT tv152 = -16 ; size = 4 tv153 = -12 ; size = 4 tv144 = -8 ; size = 4 tv143 = -4 ; size = 4 _doc$ = 8 ; size = 4 _c$ = 12 ; size = 4 _xmlIsDocNameStartChar PROC ; COMDAT ; 3442 : xmlIsDocNameStartChar(xmlDocPtr doc, int c) { push ebp mov ebp, esp sub esp, 16 ; 00000010H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3443 : if ((doc == NULL) || (doc->properties & XML_DOC_OLD10) == 0) { cmp DWORD PTR _doc$[ebp], 0 je SHORT $LN4@xmlIsDocNa mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+92] and ecx, 4 jne $LN2@xmlIsDocNa $LN4@xmlIsDocNa: ; 3444 : /* ; 3445 : * Use the new checks of production [4] [4a] amd [5] of the ; 3446 : * Update 5 of XML-1.0 ; 3447 : */ ; 3448 : if (((c >= 'a') && (c <= 'z')) || ; 3449 : ((c >= 'A') && (c <= 'Z')) || ; 3450 : (c == '_') || (c == ':') || ; 3451 : ((c >= 0xC0) && (c <= 0xD6)) || ; 3452 : ((c >= 0xD8) && (c <= 0xF6)) || ; 3453 : ((c >= 0xF8) && (c <= 0x2FF)) || ; 3454 : ((c >= 0x370) && (c <= 0x37D)) || ; 3455 : ((c >= 0x37F) && (c <= 0x1FFF)) || ; 3456 : ((c >= 0x200C) && (c <= 0x200D)) || ; 3457 : ((c >= 0x2070) && (c <= 0x218F)) || ; 3458 : ((c >= 0x2C00) && (c <= 0x2FEF)) || ; 3459 : ((c >= 0x3001) && (c <= 0xD7FF)) || ; 3460 : ((c >= 0xF900) && (c <= 0xFDCF)) || ; 3461 : ((c >= 0xFDF0) && (c <= 0xFFFD)) || cmp DWORD PTR _c$[ebp], 97 ; 00000061H jl SHORT $LN7@xmlIsDocNa cmp DWORD PTR _c$[ebp], 122 ; 0000007aH jle $LN6@xmlIsDocNa $LN7@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 65 ; 00000041H jl SHORT $LN8@xmlIsDocNa cmp DWORD PTR _c$[ebp], 90 ; 0000005aH jle $LN6@xmlIsDocNa $LN8@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 95 ; 0000005fH je $LN6@xmlIsDocNa cmp DWORD PTR _c$[ebp], 58 ; 0000003aH je $LN6@xmlIsDocNa cmp DWORD PTR _c$[ebp], 192 ; 000000c0H jl SHORT $LN9@xmlIsDocNa cmp DWORD PTR _c$[ebp], 214 ; 000000d6H jle $LN6@xmlIsDocNa $LN9@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 216 ; 000000d8H jl SHORT $LN10@xmlIsDocNa cmp DWORD PTR _c$[ebp], 246 ; 000000f6H jle $LN6@xmlIsDocNa $LN10@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 248 ; 000000f8H jl SHORT $LN11@xmlIsDocNa cmp DWORD PTR _c$[ebp], 767 ; 000002ffH jle $LN6@xmlIsDocNa $LN11@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 880 ; 00000370H jl SHORT $LN12@xmlIsDocNa cmp DWORD PTR _c$[ebp], 893 ; 0000037dH jle $LN6@xmlIsDocNa $LN12@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 895 ; 0000037fH jl SHORT $LN13@xmlIsDocNa cmp DWORD PTR _c$[ebp], 8191 ; 00001fffH jle SHORT $LN6@xmlIsDocNa $LN13@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 8204 ; 0000200cH jl SHORT $LN14@xmlIsDocNa cmp DWORD PTR _c$[ebp], 8205 ; 0000200dH jle SHORT $LN6@xmlIsDocNa $LN14@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 8304 ; 00002070H jl SHORT $LN15@xmlIsDocNa cmp DWORD PTR _c$[ebp], 8591 ; 0000218fH jle SHORT $LN6@xmlIsDocNa $LN15@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 11264 ; 00002c00H jl SHORT $LN16@xmlIsDocNa cmp DWORD PTR _c$[ebp], 12271 ; 00002fefH jle SHORT $LN6@xmlIsDocNa $LN16@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 12289 ; 00003001H jl SHORT $LN17@xmlIsDocNa cmp DWORD PTR _c$[ebp], 55295 ; 0000d7ffH jle SHORT $LN6@xmlIsDocNa $LN17@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 63744 ; 0000f900H jl SHORT $LN18@xmlIsDocNa cmp DWORD PTR _c$[ebp], 64975 ; 0000fdcfH jle SHORT $LN6@xmlIsDocNa $LN18@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 65008 ; 0000fdf0H jl SHORT $LN19@xmlIsDocNa cmp DWORD PTR _c$[ebp], 65533 ; 0000fffdH jle SHORT $LN6@xmlIsDocNa $LN19@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 65536 ; 00010000H jl SHORT $LN5@xmlIsDocNa cmp DWORD PTR _c$[ebp], 983039 ; 000effffH jg SHORT $LN5@xmlIsDocNa $LN6@xmlIsDocNa: ; 3462 : ((c >= 0x10000) && (c <= 0xEFFFF))) ; 3463 : return(1); mov eax, 1 jmp $LN1@xmlIsDocNa $LN5@xmlIsDocNa: ; 3464 : } else { jmp $LN3@xmlIsDocNa $LN2@xmlIsDocNa: ; 3465 : if (IS_LETTER(c) || (c == '_') || (c == ':')) cmp DWORD PTR _c$[ebp], 256 ; 00000100H jge SHORT $LN29@xmlIsDocNa cmp DWORD PTR _c$[ebp], 65 ; 00000041H jl SHORT $LN23@xmlIsDocNa cmp DWORD PTR _c$[ebp], 90 ; 0000005aH jle SHORT $LN25@xmlIsDocNa $LN23@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 97 ; 00000061H jl SHORT $LN24@xmlIsDocNa cmp DWORD PTR _c$[ebp], 122 ; 0000007aH jle SHORT $LN25@xmlIsDocNa $LN24@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 192 ; 000000c0H jl SHORT $LN26@xmlIsDocNa cmp DWORD PTR _c$[ebp], 214 ; 000000d6H jle SHORT $LN25@xmlIsDocNa $LN26@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 216 ; 000000d8H jl SHORT $LN27@xmlIsDocNa cmp DWORD PTR _c$[ebp], 246 ; 000000f6H jle SHORT $LN25@xmlIsDocNa $LN27@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 248 ; 000000f8H jge SHORT $LN25@xmlIsDocNa mov DWORD PTR tv143[ebp], 0 jmp SHORT $LN28@xmlIsDocNa $LN25@xmlIsDocNa: mov DWORD PTR tv143[ebp], 1 $LN28@xmlIsDocNa: mov edx, DWORD PTR tv143[ebp] mov DWORD PTR tv144[ebp], edx jmp SHORT $LN30@xmlIsDocNa $LN29@xmlIsDocNa: push OFFSET _xmlIsBaseCharGroup mov eax, DWORD PTR _c$[ebp] push eax call _xmlCharInRange add esp, 8 mov DWORD PTR tv144[ebp], eax $LN30@xmlIsDocNa: cmp DWORD PTR tv144[ebp], 0 jne SHORT $LN21@xmlIsDocNa cmp DWORD PTR _c$[ebp], 256 ; 00000100H jge SHORT $LN35@xmlIsDocNa mov DWORD PTR tv153[ebp], 0 jmp SHORT $LN36@xmlIsDocNa $LN35@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 19968 ; 00004e00H jl SHORT $LN31@xmlIsDocNa cmp DWORD PTR _c$[ebp], 40869 ; 00009fa5H jle SHORT $LN32@xmlIsDocNa $LN31@xmlIsDocNa: cmp DWORD PTR _c$[ebp], 12295 ; 00003007H je SHORT $LN32@xmlIsDocNa cmp DWORD PTR _c$[ebp], 12321 ; 00003021H jl SHORT $LN33@xmlIsDocNa cmp DWORD PTR _c$[ebp], 12329 ; 00003029H jle SHORT $LN32@xmlIsDocNa $LN33@xmlIsDocNa: mov DWORD PTR tv152[ebp], 0 jmp SHORT $LN34@xmlIsDocNa $LN32@xmlIsDocNa: mov DWORD PTR tv152[ebp], 1 $LN34@xmlIsDocNa: mov ecx, DWORD PTR tv152[ebp] mov DWORD PTR tv153[ebp], ecx $LN36@xmlIsDocNa: cmp DWORD PTR tv153[ebp], 0 jne SHORT $LN21@xmlIsDocNa cmp DWORD PTR _c$[ebp], 95 ; 0000005fH je SHORT $LN21@xmlIsDocNa cmp DWORD PTR _c$[ebp], 58 ; 0000003aH jne SHORT $LN3@xmlIsDocNa $LN21@xmlIsDocNa: ; 3466 : return(1); mov eax, 1 jmp SHORT $LN1@xmlIsDocNa $LN3@xmlIsDocNa: ; 3467 : } ; 3468 : return(0); xor eax, eax $LN1@xmlIsDocNa: ; 3469 : } add esp, 16 ; 00000010H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlIsDocNameStartChar ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlDummyCompare _TEXT SEGMENT _data0$ = 8 ; size = 4 _data1$ = 12 ; size = 4 _xmlDummyCompare PROC ; COMDAT ; 2914 : { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2915 : return (0); xor eax, eax ; 2916 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlDummyCompare ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlWalkRemoveRef _TEXT SEGMENT _ref_list$ = -12 ; size = 4 _attr1$ = -8 ; size = 4 _attr0$ = -4 ; size = 4 _data$ = 8 ; size = 4 _user$ = 12 ; size = 4 _xmlWalkRemoveRef PROC ; COMDAT ; 2892 : { push ebp mov ebp, esp sub esp, 12 ; 0000000cH mov DWORD PTR [ebp-12], -858993460 ; ccccccccH mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2893 : xmlAttrPtr attr0 = ((xmlRefPtr)data)->attr; mov eax, DWORD PTR _data$[ebp] mov ecx, DWORD PTR [eax+8] mov DWORD PTR _attr0$[ebp], ecx ; 2894 : xmlAttrPtr attr1 = ((xmlRemoveMemoPtr)user)->ap; mov edx, DWORD PTR _user$[ebp] mov eax, DWORD PTR [edx+4] mov DWORD PTR _attr1$[ebp], eax ; 2895 : xmlListPtr ref_list = ((xmlRemoveMemoPtr)user)->l; mov ecx, DWORD PTR _user$[ebp] mov edx, DWORD PTR [ecx] mov DWORD PTR _ref_list$[ebp], edx ; 2896 : ; 2897 : if (attr0 == attr1) { /* Matched: remove and terminate walk */ mov eax, DWORD PTR _attr0$[ebp] cmp eax, DWORD PTR _attr1$[ebp] jne SHORT $LN2@xmlWalkRem ; 2898 : xmlListRemoveFirst(ref_list, (void *)data); mov ecx, DWORD PTR _data$[ebp] push ecx mov edx, DWORD PTR _ref_list$[ebp] push edx call _xmlListRemoveFirst add esp, 8 ; 2899 : return 0; xor eax, eax jmp SHORT $LN1@xmlWalkRem $LN2@xmlWalkRem: ; 2900 : } ; 2901 : return 1; mov eax, 1 $LN1@xmlWalkRem: ; 2902 : } add esp, 12 ; 0000000cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlWalkRemoveRef ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeRefTableEntry _TEXT SEGMENT _list_ref$ = -4 ; size = 4 _payload$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlFreeRefTableEntry PROC ; COMDAT ; 2877 : xmlFreeRefTableEntry(void *payload, const xmlChar *name ATTRIBUTE_UNUSED) { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2878 : xmlListPtr list_ref = (xmlListPtr) payload; mov eax, DWORD PTR _payload$[ebp] mov DWORD PTR _list_ref$[ebp], eax ; 2879 : if (list_ref == NULL) return; cmp DWORD PTR _list_ref$[ebp], 0 jne SHORT $LN2@xmlFreeRef jmp SHORT $LN1@xmlFreeRef $LN2@xmlFreeRef: ; 2880 : xmlListDelete(list_ref); mov ecx, DWORD PTR _list_ref$[ebp] push ecx call _xmlListDelete add esp, 4 $LN1@xmlFreeRef: ; 2881 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlFreeRefTableEntry ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeRef _TEXT SEGMENT _ref$ = -4 ; size = 4 _lk$ = 8 ; size = 4 _xmlFreeRef PROC ; COMDAT ; 2860 : xmlFreeRef(xmlLinkPtr lk) { push ebp mov ebp, esp push ecx push esi mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2861 : xmlRefPtr ref = (xmlRefPtr)xmlLinkGetData(lk); mov eax, DWORD PTR _lk$[ebp] push eax call _xmlLinkGetData add esp, 4 mov DWORD PTR _ref$[ebp], eax ; 2862 : if (ref == NULL) return; cmp DWORD PTR _ref$[ebp], 0 jne SHORT $LN2@xmlFreeRef jmp SHORT $LN1@xmlFreeRef $LN2@xmlFreeRef: ; 2863 : if (ref->value != NULL) mov ecx, DWORD PTR _ref$[ebp] cmp DWORD PTR [ecx+4], 0 je SHORT $LN3@xmlFreeRef ; 2864 : xmlFree((xmlChar *)ref->value); mov esi, esp mov edx, DWORD PTR _ref$[ebp] mov eax, DWORD PTR [edx+4] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN3@xmlFreeRef: ; 2865 : if (ref->name != NULL) mov ecx, DWORD PTR _ref$[ebp] cmp DWORD PTR [ecx+12], 0 je SHORT $LN4@xmlFreeRef ; 2866 : xmlFree((xmlChar *)ref->name); mov esi, esp mov edx, DWORD PTR _ref$[ebp] mov eax, DWORD PTR [edx+12] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN4@xmlFreeRef: ; 2867 : xmlFree(ref); mov esi, esp mov ecx, DWORD PTR _ref$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN1@xmlFreeRef: ; 2868 : } pop esi add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlFreeRef ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeIDTableEntry _TEXT SEGMENT _id$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlFreeIDTableEntry PROC ; COMDAT ; 2675 : xmlFreeIDTableEntry(void *id, const xmlChar *name ATTRIBUTE_UNUSED) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2676 : xmlFreeID((xmlIDPtr) id); mov eax, DWORD PTR _id$[ebp] push eax call _xmlFreeID add esp, 4 ; 2677 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlFreeIDTableEntry ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeID _TEXT SEGMENT _dict$ = -4 ; size = 4 _id$ = 8 ; size = 4 _xmlFreeID PROC ; COMDAT ; 2574 : xmlFreeID(xmlIDPtr id) { push ebp mov ebp, esp push ecx push esi mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2575 : xmlDictPtr dict = NULL; mov DWORD PTR _dict$[ebp], 0 ; 2576 : ; 2577 : if (id == NULL) return; cmp DWORD PTR _id$[ebp], 0 jne SHORT $LN2@xmlFreeID jmp $LN1@xmlFreeID $LN2@xmlFreeID: ; 2578 : ; 2579 : if (id->doc != NULL) mov eax, DWORD PTR _id$[ebp] cmp DWORD PTR [eax+20], 0 je SHORT $LN3@xmlFreeID ; 2580 : dict = id->doc->dict; mov ecx, DWORD PTR _id$[ebp] mov edx, DWORD PTR [ecx+20] mov eax, DWORD PTR [edx+80] mov DWORD PTR _dict$[ebp], eax $LN3@xmlFreeID: ; 2581 : ; 2582 : if (id->value != NULL) mov ecx, DWORD PTR _id$[ebp] cmp DWORD PTR [ecx+4], 0 je SHORT $LN4@xmlFreeID ; 2583 : DICT_FREE(id->value) mov edx, DWORD PTR _id$[ebp] cmp DWORD PTR [edx+4], 0 je SHORT $LN4@xmlFreeID cmp DWORD PTR _dict$[ebp], 0 je SHORT $LN6@xmlFreeID mov eax, DWORD PTR _id$[ebp] mov ecx, DWORD PTR [eax+4] push ecx mov edx, DWORD PTR _dict$[ebp] push edx call _xmlDictOwns add esp, 8 test eax, eax jne SHORT $LN4@xmlFreeID $LN6@xmlFreeID: mov esi, esp mov eax, DWORD PTR _id$[ebp] mov ecx, DWORD PTR [eax+4] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN4@xmlFreeID: ; 2584 : if (id->name != NULL) mov edx, DWORD PTR _id$[ebp] cmp DWORD PTR [edx+12], 0 je SHORT $LN7@xmlFreeID ; 2585 : DICT_FREE(id->name) mov eax, DWORD PTR _id$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN7@xmlFreeID cmp DWORD PTR _dict$[ebp], 0 je SHORT $LN9@xmlFreeID mov ecx, DWORD PTR _id$[ebp] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _dict$[ebp] push eax call _xmlDictOwns add esp, 8 test eax, eax jne SHORT $LN7@xmlFreeID $LN9@xmlFreeID: mov esi, esp mov ecx, DWORD PTR _id$[ebp] mov edx, DWORD PTR [ecx+12] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN7@xmlFreeID: ; 2586 : xmlFree(id); mov esi, esp mov eax, DWORD PTR _id$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN1@xmlFreeID: ; 2587 : } pop esi add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlFreeID ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlDumpNotationDeclScan _TEXT SEGMENT _nota$ = 8 ; size = 4 _buf$ = 12 ; size = 4 _name$ = 16 ; size = 4 _xmlDumpNotationDeclScan PROC ; COMDAT ; 2531 : const xmlChar *name ATTRIBUTE_UNUSED) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2532 : xmlDumpNotationDecl((xmlBufferPtr) buf, (xmlNotationPtr) nota); mov eax, DWORD PTR _nota$[ebp] push eax mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlDumpNotationDecl add esp, 8 ; 2533 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlDumpNotationDeclScan ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlCopyNotation _TEXT SEGMENT _cur$ = -8 ; size = 4 _nota$ = -4 ; size = 4 _payload$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlCopyNotation PROC ; COMDAT ; 2456 : xmlCopyNotation(void *payload, const xmlChar *name ATTRIBUTE_UNUSED) { push ebp mov ebp, esp sub esp, 8 push esi mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2457 : xmlNotationPtr nota = (xmlNotationPtr) payload; mov eax, DWORD PTR _payload$[ebp] mov DWORD PTR _nota$[ebp], eax ; 2458 : xmlNotationPtr cur; ; 2459 : ; 2460 : cur = (xmlNotationPtr) xmlMalloc(sizeof(xmlNotation)); mov esi, esp push 12 ; 0000000cH call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _cur$[ebp], eax ; 2461 : if (cur == NULL) { cmp DWORD PTR _cur$[ebp], 0 jne SHORT $LN2@xmlCopyNot ; 2462 : xmlVErrMemory(NULL, "malloc failed"); push OFFSET ??_C@_0O@IMHFIAOC@malloc?5failed@ push 0 call _xmlVErrMemory add esp, 8 ; 2463 : return(NULL); xor eax, eax jmp SHORT $LN1@xmlCopyNot $LN2@xmlCopyNot: ; 2464 : } ; 2465 : if (nota->name != NULL) mov ecx, DWORD PTR _nota$[ebp] cmp DWORD PTR [ecx], 0 je SHORT $LN3@xmlCopyNot ; 2466 : cur->name = xmlStrdup(nota->name); mov edx, DWORD PTR _nota$[ebp] mov eax, DWORD PTR [edx] push eax call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _cur$[ebp] mov DWORD PTR [ecx], eax jmp SHORT $LN4@xmlCopyNot $LN3@xmlCopyNot: ; 2467 : else ; 2468 : cur->name = NULL; mov edx, DWORD PTR _cur$[ebp] mov DWORD PTR [edx], 0 $LN4@xmlCopyNot: ; 2469 : if (nota->PublicID != NULL) mov eax, DWORD PTR _nota$[ebp] cmp DWORD PTR [eax+4], 0 je SHORT $LN5@xmlCopyNot ; 2470 : cur->PublicID = xmlStrdup(nota->PublicID); mov ecx, DWORD PTR _nota$[ebp] mov edx, DWORD PTR [ecx+4] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _cur$[ebp] mov DWORD PTR [ecx+4], eax jmp SHORT $LN6@xmlCopyNot $LN5@xmlCopyNot: ; 2471 : else ; 2472 : cur->PublicID = NULL; mov edx, DWORD PTR _cur$[ebp] mov DWORD PTR [edx+4], 0 $LN6@xmlCopyNot: ; 2473 : if (nota->SystemID != NULL) mov eax, DWORD PTR _nota$[ebp] cmp DWORD PTR [eax+8], 0 je SHORT $LN7@xmlCopyNot ; 2474 : cur->SystemID = xmlStrdup(nota->SystemID); mov ecx, DWORD PTR _nota$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _cur$[ebp] mov DWORD PTR [ecx+8], eax jmp SHORT $LN8@xmlCopyNot $LN7@xmlCopyNot: ; 2475 : else ; 2476 : cur->SystemID = NULL; mov edx, DWORD PTR _cur$[ebp] mov DWORD PTR [edx+8], 0 $LN8@xmlCopyNot: ; 2477 : return(cur); mov eax, DWORD PTR _cur$[ebp] $LN1@xmlCopyNot: ; 2478 : } pop esi add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlCopyNotation ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeNotationTableEntry _TEXT SEGMENT _nota$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlFreeNotationTableEntry PROC ; COMDAT ; 2431 : xmlFreeNotationTableEntry(void *nota, const xmlChar *name ATTRIBUTE_UNUSED) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2432 : xmlFreeNotation((xmlNotationPtr) nota); mov eax, DWORD PTR _nota$[ebp] push eax call _xmlFreeNotation add esp, 4 ; 2433 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlFreeNotationTableEntry ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeNotation _TEXT SEGMENT _nota$ = 8 ; size = 4 _xmlFreeNotation PROC ; COMDAT ; 2340 : xmlFreeNotation(xmlNotationPtr nota) { push ebp mov ebp, esp push esi mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2341 : if (nota == NULL) return; cmp DWORD PTR _nota$[ebp], 0 jne SHORT $LN2@xmlFreeNot jmp SHORT $LN1@xmlFreeNot $LN2@xmlFreeNot: ; 2342 : if (nota->name != NULL) mov eax, DWORD PTR _nota$[ebp] cmp DWORD PTR [eax], 0 je SHORT $LN3@xmlFreeNot ; 2343 : xmlFree((xmlChar *) nota->name); mov esi, esp mov ecx, DWORD PTR _nota$[ebp] mov edx, DWORD PTR [ecx] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN3@xmlFreeNot: ; 2344 : if (nota->PublicID != NULL) mov eax, DWORD PTR _nota$[ebp] cmp DWORD PTR [eax+4], 0 je SHORT $LN4@xmlFreeNot ; 2345 : xmlFree((xmlChar *) nota->PublicID); mov esi, esp mov ecx, DWORD PTR _nota$[ebp] mov edx, DWORD PTR [ecx+4] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN4@xmlFreeNot: ; 2346 : if (nota->SystemID != NULL) mov eax, DWORD PTR _nota$[ebp] cmp DWORD PTR [eax+8], 0 je SHORT $LN5@xmlFreeNot ; 2347 : xmlFree((xmlChar *) nota->SystemID); mov esi, esp mov ecx, DWORD PTR _nota$[ebp] mov edx, DWORD PTR [ecx+8] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN5@xmlFreeNot: ; 2348 : xmlFree(nota); mov esi, esp mov eax, DWORD PTR _nota$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN1@xmlFreeNot: ; 2349 : } pop esi cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlFreeNotation ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlDumpAttributeDeclScan _TEXT SEGMENT _attr$ = 8 ; size = 4 _buf$ = 12 ; size = 4 _name$ = 16 ; size = 4 _xmlDumpAttributeDeclScan PROC ; COMDAT ; 2309 : const xmlChar *name ATTRIBUTE_UNUSED) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2310 : xmlDumpAttributeDecl((xmlBufferPtr) buf, (xmlAttributePtr) attr); mov eax, DWORD PTR _attr$[ebp] push eax mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlDumpAttributeDecl add esp, 8 ; 2311 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlDumpAttributeDeclScan ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlCopyAttribute _TEXT SEGMENT _cur$ = -8 ; size = 4 _attr$ = -4 ; size = 4 _payload$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlCopyAttribute PROC ; COMDAT ; 2178 : xmlCopyAttribute(void *payload, const xmlChar *name ATTRIBUTE_UNUSED) { push ebp mov ebp, esp sub esp, 8 push esi mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2179 : xmlAttributePtr attr = (xmlAttributePtr) payload; mov eax, DWORD PTR _payload$[ebp] mov DWORD PTR _attr$[ebp], eax ; 2180 : xmlAttributePtr cur; ; 2181 : ; 2182 : cur = (xmlAttributePtr) xmlMalloc(sizeof(xmlAttribute)); mov esi, esp push 64 ; 00000040H call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _cur$[ebp], eax ; 2183 : if (cur == NULL) { cmp DWORD PTR _cur$[ebp], 0 jne SHORT $LN2@xmlCopyAtt ; 2184 : xmlVErrMemory(NULL, "malloc failed"); push OFFSET ??_C@_0O@IMHFIAOC@malloc?5failed@ push 0 call _xmlVErrMemory add esp, 8 ; 2185 : return(NULL); xor eax, eax jmp $LN1@xmlCopyAtt $LN2@xmlCopyAtt: ; 2186 : } ; 2187 : memset(cur, 0, sizeof(xmlAttribute)); push 64 ; 00000040H push 0 mov ecx, DWORD PTR _cur$[ebp] push ecx call _memset add esp, 12 ; 0000000cH ; 2188 : cur->type = XML_ATTRIBUTE_DECL; mov edx, DWORD PTR _cur$[ebp] mov DWORD PTR [edx+4], 16 ; 00000010H ; 2189 : cur->atype = attr->atype; mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+40] mov DWORD PTR [eax+40], edx ; 2190 : cur->def = attr->def; mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+44] mov DWORD PTR [eax+44], edx ; 2191 : cur->tree = xmlCopyEnumeration(attr->tree); mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+52] push ecx call _xmlCopyEnumeration add esp, 4 mov edx, DWORD PTR _cur$[ebp] mov DWORD PTR [edx+52], eax ; 2192 : if (attr->elem != NULL) mov eax, DWORD PTR _attr$[ebp] cmp DWORD PTR [eax+60], 0 je SHORT $LN3@xmlCopyAtt ; 2193 : cur->elem = xmlStrdup(attr->elem); mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+60] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _cur$[ebp] mov DWORD PTR [ecx+60], eax $LN3@xmlCopyAtt: ; 2194 : if (attr->name != NULL) mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+8], 0 je SHORT $LN4@xmlCopyAtt ; 2195 : cur->name = xmlStrdup(attr->name); mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlStrdup add esp, 4 mov edx, DWORD PTR _cur$[ebp] mov DWORD PTR [edx+8], eax $LN4@xmlCopyAtt: ; 2196 : if (attr->prefix != NULL) mov eax, DWORD PTR _attr$[ebp] cmp DWORD PTR [eax+56], 0 je SHORT $LN5@xmlCopyAtt ; 2197 : cur->prefix = xmlStrdup(attr->prefix); mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+56] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _cur$[ebp] mov DWORD PTR [ecx+56], eax $LN5@xmlCopyAtt: ; 2198 : if (attr->defaultValue != NULL) mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+48], 0 je SHORT $LN6@xmlCopyAtt ; 2199 : cur->defaultValue = xmlStrdup(attr->defaultValue); mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+48] push ecx call _xmlStrdup add esp, 4 mov edx, DWORD PTR _cur$[ebp] mov DWORD PTR [edx+48], eax $LN6@xmlCopyAtt: ; 2200 : return(cur); mov eax, DWORD PTR _cur$[ebp] $LN1@xmlCopyAtt: ; 2201 : } pop esi add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlCopyAttribute ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeAttributeTableEntry _TEXT SEGMENT _attr$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlFreeAttributeTableEntry PROC ; COMDAT ; 2153 : xmlFreeAttributeTableEntry(void *attr, const xmlChar *name ATTRIBUTE_UNUSED) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2154 : xmlFreeAttribute((xmlAttributePtr) attr); mov eax, DWORD PTR _attr$[ebp] push eax call _xmlFreeAttribute add esp, 4 ; 2155 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlFreeAttributeTableEntry ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeAttribute _TEXT SEGMENT _dict$ = -4 ; size = 4 _attr$ = 8 ; size = 4 _xmlFreeAttribute PROC ; COMDAT ; 1885 : xmlFreeAttribute(xmlAttributePtr attr) { push ebp mov ebp, esp push ecx push esi mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1886 : xmlDictPtr dict; ; 1887 : ; 1888 : if (attr == NULL) return; cmp DWORD PTR _attr$[ebp], 0 jne SHORT $LN2@xmlFreeAtt jmp $LN1@xmlFreeAtt $LN2@xmlFreeAtt: ; 1889 : if (attr->doc != NULL) mov eax, DWORD PTR _attr$[ebp] cmp DWORD PTR [eax+32], 0 je SHORT $LN3@xmlFreeAtt ; 1890 : dict = attr->doc->dict; mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+32] mov eax, DWORD PTR [edx+80] mov DWORD PTR _dict$[ebp], eax jmp SHORT $LN4@xmlFreeAtt $LN3@xmlFreeAtt: ; 1891 : else ; 1892 : dict = NULL; mov DWORD PTR _dict$[ebp], 0 $LN4@xmlFreeAtt: ; 1893 : xmlUnlinkNode((xmlNodePtr) attr); mov ecx, DWORD PTR _attr$[ebp] push ecx call _xmlUnlinkNode add esp, 4 ; 1894 : if (attr->tree != NULL) mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+52], 0 je SHORT $LN5@xmlFreeAtt ; 1895 : xmlFreeEnumeration(attr->tree); mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+52] push ecx call _xmlFreeEnumeration add esp, 4 $LN5@xmlFreeAtt: ; 1896 : if (dict) { cmp DWORD PTR _dict$[ebp], 0 je $LN6@xmlFreeAtt ; 1897 : if ((attr->elem != NULL) && (!xmlDictOwns(dict, attr->elem))) mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+60], 0 je SHORT $LN8@xmlFreeAtt mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+60] push ecx mov edx, DWORD PTR _dict$[ebp] push edx call _xmlDictOwns add esp, 8 test eax, eax jne SHORT $LN8@xmlFreeAtt ; 1898 : xmlFree((xmlChar *) attr->elem); mov esi, esp mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+60] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN8@xmlFreeAtt: ; 1899 : if ((attr->name != NULL) && (!xmlDictOwns(dict, attr->name))) mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+8], 0 je SHORT $LN9@xmlFreeAtt mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _dict$[ebp] push edx call _xmlDictOwns add esp, 8 test eax, eax jne SHORT $LN9@xmlFreeAtt ; 1900 : xmlFree((xmlChar *) attr->name); mov esi, esp mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN9@xmlFreeAtt: ; 1901 : if ((attr->prefix != NULL) && (!xmlDictOwns(dict, attr->prefix))) mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+56], 0 je SHORT $LN10@xmlFreeAtt mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+56] push ecx mov edx, DWORD PTR _dict$[ebp] push edx call _xmlDictOwns add esp, 8 test eax, eax jne SHORT $LN10@xmlFreeAtt ; 1902 : xmlFree((xmlChar *) attr->prefix); mov esi, esp mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+56] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN10@xmlFreeAtt: ; 1903 : if ((attr->defaultValue != NULL) && mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+48], 0 je SHORT $LN11@xmlFreeAtt mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+48] push ecx mov edx, DWORD PTR _dict$[ebp] push edx call _xmlDictOwns add esp, 8 test eax, eax jne SHORT $LN11@xmlFreeAtt ; 1904 : (!xmlDictOwns(dict, attr->defaultValue))) ; 1905 : xmlFree((xmlChar *) attr->defaultValue); mov esi, esp mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+48] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN11@xmlFreeAtt: ; 1906 : } else { jmp $LN7@xmlFreeAtt $LN6@xmlFreeAtt: ; 1907 : if (attr->elem != NULL) mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+60], 0 je SHORT $LN12@xmlFreeAtt ; 1908 : xmlFree((xmlChar *) attr->elem); mov esi, esp mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+60] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN12@xmlFreeAtt: ; 1909 : if (attr->name != NULL) mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+8], 0 je SHORT $LN13@xmlFreeAtt ; 1910 : xmlFree((xmlChar *) attr->name); mov esi, esp mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN13@xmlFreeAtt: ; 1911 : if (attr->defaultValue != NULL) mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+48], 0 je SHORT $LN14@xmlFreeAtt ; 1912 : xmlFree((xmlChar *) attr->defaultValue); mov esi, esp mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+48] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN14@xmlFreeAtt: ; 1913 : if (attr->prefix != NULL) mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+56], 0 je SHORT $LN7@xmlFreeAtt ; 1914 : xmlFree((xmlChar *) attr->prefix); mov esi, esp mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+56] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN7@xmlFreeAtt: ; 1915 : } ; 1916 : xmlFree(attr); mov esi, esp mov edx, DWORD PTR _attr$[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN1@xmlFreeAtt: ; 1917 : } pop esi add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlFreeAttribute ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlScanIDAttributeDecl _TEXT SEGMENT _ret$ = -8 ; size = 4 _cur$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _elem$ = 12 ; size = 4 _err$ = 16 ; size = 4 _xmlScanIDAttributeDecl PROC ; COMDAT ; 1858 : xmlScanIDAttributeDecl(xmlValidCtxtPtr ctxt, xmlElementPtr elem, int err) { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1859 : xmlAttributePtr cur; ; 1860 : int ret = 0; mov DWORD PTR _ret$[ebp], 0 ; 1861 : ; 1862 : if (elem == NULL) return(0); cmp DWORD PTR _elem$[ebp], 0 jne SHORT $LN4@xmlScanIDA xor eax, eax jmp SHORT $LN1@xmlScanIDA $LN4@xmlScanIDA: ; 1863 : cur = elem->attributes; mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+44] mov DWORD PTR _cur$[ebp], ecx $LN2@xmlScanIDA: ; 1864 : while (cur != NULL) { cmp DWORD PTR _cur$[ebp], 0 je SHORT $LN3@xmlScanIDA ; 1865 : if (cur->atype == XML_ATTRIBUTE_ID) { mov edx, DWORD PTR _cur$[ebp] cmp DWORD PTR [edx+40], 2 jne SHORT $LN5@xmlScanIDA ; 1866 : ret ++; mov eax, DWORD PTR _ret$[ebp] add eax, 1 mov DWORD PTR _ret$[ebp], eax ; 1867 : if ((ret > 1) && (err)) cmp DWORD PTR _ret$[ebp], 1 jle SHORT $LN5@xmlScanIDA cmp DWORD PTR _err$[ebp], 0 je SHORT $LN5@xmlScanIDA ; 1868 : xmlErrValidNode(ctxt, (xmlNodePtr) elem, XML_DTD_MULTIPLE_ID, push 0 mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx push OFFSET ??_C@_0DE@EJGKGKMH@Element?5?$CFs?5has?5too?5many?5ID?5attr@ push 520 ; 00000208H mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH $LN5@xmlScanIDA: ; 1869 : "Element %s has too many ID attributes defined : %s\n", ; 1870 : elem->name, cur->name, NULL); ; 1871 : } ; 1872 : cur = cur->nexth; mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+36] mov DWORD PTR _cur$[ebp], edx ; 1873 : } jmp SHORT $LN2@xmlScanIDA $LN3@xmlScanIDA: ; 1874 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlScanIDA: ; 1875 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlScanIDAttributeDecl ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlDumpEnumeration _TEXT SEGMENT _buf$ = 8 ; size = 4 _cur$ = 12 ; size = 4 _xmlDumpEnumeration PROC ; COMDAT ; 1831 : xmlDumpEnumeration(xmlBufferPtr buf, xmlEnumerationPtr cur) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1832 : if ((buf == NULL) || (cur == NULL)) cmp DWORD PTR _buf$[ebp], 0 je SHORT $LN3@xmlDumpEnu cmp DWORD PTR _cur$[ebp], 0 jne SHORT $LN2@xmlDumpEnu $LN3@xmlDumpEnu: ; 1833 : return; jmp SHORT $LN1@xmlDumpEnu $LN2@xmlDumpEnu: ; 1834 : ; 1835 : xmlBufferWriteCHAR(buf, cur->name); mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+4] push ecx mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteCHAR add esp, 8 ; 1836 : if (cur->next == NULL) mov eax, DWORD PTR _cur$[ebp] cmp DWORD PTR [eax], 0 jne SHORT $LN4@xmlDumpEnu ; 1837 : xmlBufferWriteChar(buf, ")"); push OFFSET ??_C@_01PKGAHCOL@?$CJ@ mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteChar add esp, 8 jmp SHORT $LN1@xmlDumpEnu $LN4@xmlDumpEnu: ; 1838 : else { ; 1839 : xmlBufferWriteChar(buf, " | "); push OFFSET ??_C@_03LGOGDKEL@?5?$HM?5@ mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteChar add esp, 8 ; 1840 : xmlDumpEnumeration(buf, cur->next); mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax] push ecx mov edx, DWORD PTR _buf$[ebp] push edx call _xmlDumpEnumeration add esp, 8 $LN1@xmlDumpEnu: ; 1841 : } ; 1842 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlDumpEnumeration ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlDumpElementDeclScan _TEXT SEGMENT _elem$ = 8 ; size = 4 _buf$ = 12 ; size = 4 _name$ = 16 ; size = 4 _xmlDumpElementDeclScan PROC ; COMDAT ; 1737 : const xmlChar *name ATTRIBUTE_UNUSED) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1738 : xmlDumpElementDecl((xmlBufferPtr) buf, (xmlElementPtr) elem); mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlDumpElementDecl add esp, 8 ; 1739 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlDumpElementDeclScan ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlCopyElement _TEXT SEGMENT _cur$ = -8 ; size = 4 _elem$ = -4 ; size = 4 _payload$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlCopyElement PROC ; COMDAT ; 1626 : xmlCopyElement(void *payload, const xmlChar *name ATTRIBUTE_UNUSED) { push ebp mov ebp, esp sub esp, 8 push esi mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1627 : xmlElementPtr elem = (xmlElementPtr) payload; mov eax, DWORD PTR _payload$[ebp] mov DWORD PTR _elem$[ebp], eax ; 1628 : xmlElementPtr cur; ; 1629 : ; 1630 : cur = (xmlElementPtr) xmlMalloc(sizeof(xmlElement)); mov esi, esp push 56 ; 00000038H call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _cur$[ebp], eax ; 1631 : if (cur == NULL) { cmp DWORD PTR _cur$[ebp], 0 jne SHORT $LN2@xmlCopyEle ; 1632 : xmlVErrMemory(NULL, "malloc failed"); push OFFSET ??_C@_0O@IMHFIAOC@malloc?5failed@ push 0 call _xmlVErrMemory add esp, 8 ; 1633 : return(NULL); xor eax, eax jmp $LN1@xmlCopyEle $LN2@xmlCopyEle: ; 1634 : } ; 1635 : memset(cur, 0, sizeof(xmlElement)); push 56 ; 00000038H push 0 mov ecx, DWORD PTR _cur$[ebp] push ecx call _memset add esp, 12 ; 0000000cH ; 1636 : cur->type = XML_ELEMENT_DECL; mov edx, DWORD PTR _cur$[ebp] mov DWORD PTR [edx+4], 15 ; 0000000fH ; 1637 : cur->etype = elem->etype; mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+36] mov DWORD PTR [eax+36], edx ; 1638 : if (elem->name != NULL) mov eax, DWORD PTR _elem$[ebp] cmp DWORD PTR [eax+8], 0 je SHORT $LN3@xmlCopyEle ; 1639 : cur->name = xmlStrdup(elem->name); mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _cur$[ebp] mov DWORD PTR [ecx+8], eax jmp SHORT $LN4@xmlCopyEle $LN3@xmlCopyEle: ; 1640 : else ; 1641 : cur->name = NULL; mov edx, DWORD PTR _cur$[ebp] mov DWORD PTR [edx+8], 0 $LN4@xmlCopyEle: ; 1642 : if (elem->prefix != NULL) mov eax, DWORD PTR _elem$[ebp] cmp DWORD PTR [eax+48], 0 je SHORT $LN5@xmlCopyEle ; 1643 : cur->prefix = xmlStrdup(elem->prefix); mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+48] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _cur$[ebp] mov DWORD PTR [ecx+48], eax jmp SHORT $LN6@xmlCopyEle $LN5@xmlCopyEle: ; 1644 : else ; 1645 : cur->prefix = NULL; mov edx, DWORD PTR _cur$[ebp] mov DWORD PTR [edx+48], 0 $LN6@xmlCopyEle: ; 1646 : cur->content = xmlCopyElementContent(elem->content); mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+40] push ecx call _xmlCopyElementContent add esp, 4 mov edx, DWORD PTR _cur$[ebp] mov DWORD PTR [edx+40], eax ; 1647 : /* TODO : rebuild the attribute list on the copy */ ; 1648 : cur->attributes = NULL; mov eax, DWORD PTR _cur$[ebp] mov DWORD PTR [eax+44], 0 ; 1649 : return(cur); mov eax, DWORD PTR _cur$[ebp] $LN1@xmlCopyEle: ; 1650 : } pop esi add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlCopyElement ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeElementTableEntry _TEXT SEGMENT _elem$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlFreeElementTableEntry PROC ; COMDAT ; 1601 : xmlFreeElementTableEntry(void *elem, const xmlChar *name ATTRIBUTE_UNUSED) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1602 : xmlFreeElement((xmlElementPtr) elem); mov eax, DWORD PTR _elem$[ebp] push eax call _xmlFreeElement add esp, 4 ; 1603 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlFreeElementTableEntry ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeElement _TEXT SEGMENT _elem$ = 8 ; size = 4 _xmlFreeElement PROC ; COMDAT ; 1358 : xmlFreeElement(xmlElementPtr elem) { push ebp mov ebp, esp push esi mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1359 : if (elem == NULL) return; cmp DWORD PTR _elem$[ebp], 0 jne SHORT $LN2@xmlFreeEle jmp $LN1@xmlFreeEle $LN2@xmlFreeEle: ; 1360 : xmlUnlinkNode((xmlNodePtr) elem); mov eax, DWORD PTR _elem$[ebp] push eax call _xmlUnlinkNode add esp, 4 ; 1361 : xmlFreeDocElementContent(elem->doc, elem->content); mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+40] push edx mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+32] push ecx call _xmlFreeDocElementContent add esp, 8 ; 1362 : if (elem->name != NULL) mov edx, DWORD PTR _elem$[ebp] cmp DWORD PTR [edx+8], 0 je SHORT $LN3@xmlFreeEle ; 1363 : xmlFree((xmlChar *) elem->name); mov esi, esp mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN3@xmlFreeEle: ; 1364 : if (elem->prefix != NULL) mov edx, DWORD PTR _elem$[ebp] cmp DWORD PTR [edx+48], 0 je SHORT $LN4@xmlFreeEle ; 1365 : xmlFree((xmlChar *) elem->prefix); mov esi, esp mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+48] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN4@xmlFreeEle: ; 1366 : #ifdef LIBXML_REGEXP_ENABLED ; 1367 : if (elem->contModel != NULL) mov edx, DWORD PTR _elem$[ebp] cmp DWORD PTR [edx+52], 0 je SHORT $LN5@xmlFreeEle ; 1368 : xmlRegFreeRegexp(elem->contModel); mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+52] push ecx call _xmlRegFreeRegexp add esp, 4 $LN5@xmlFreeEle: ; 1369 : #endif ; 1370 : xmlFree(elem); mov esi, esp mov edx, DWORD PTR _elem$[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN1@xmlFreeEle: ; 1371 : } pop esi cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlFreeElement ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlDumpElementContent _TEXT SEGMENT tv198 = -8 ; size = 4 tv69 = -4 ; size = 4 _buf$ = 8 ; size = 4 _content$ = 12 ; size = 4 _glob$ = 16 ; size = 4 _xmlDumpElementContent PROC ; COMDAT ; 1159 : xmlDumpElementContent(xmlBufferPtr buf, xmlElementContentPtr content, int glob) { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1160 : if (content == NULL) return; cmp DWORD PTR _content$[ebp], 0 jne SHORT $LN6@xmlDumpEle jmp $LN1@xmlDumpEle $LN6@xmlDumpEle: ; 1161 : ; 1162 : if (glob) xmlBufferWriteChar(buf, "("); cmp DWORD PTR _glob$[ebp], 0 je SHORT $LN7@xmlDumpEle push OFFSET ??_C@_01ODHLEDKK@?$CI@ mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteChar add esp, 8 $LN7@xmlDumpEle: ; 1163 : switch (content->type) { mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx] mov DWORD PTR tv69[ebp], edx mov eax, DWORD PTR tv69[ebp] sub eax, 1 mov DWORD PTR tv69[ebp], eax cmp DWORD PTR tv69[ebp], 3 ja $LN25@xmlDumpEle mov ecx, DWORD PTR tv69[ebp] jmp DWORD PTR $LN32@xmlDumpEle[ecx*4] $LN8@xmlDumpEle: ; 1164 : case XML_ELEMENT_CONTENT_PCDATA: ; 1165 : xmlBufferWriteChar(buf, "#PCDATA"); push OFFSET ??_C@_07ELDBONKP@?$CDPCDATA@ mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteChar add esp, 8 ; 1166 : break; jmp $LN2@xmlDumpEle $LN9@xmlDumpEle: ; 1167 : case XML_ELEMENT_CONTENT_ELEMENT: ; 1168 : if (content->prefix != NULL) { mov eax, DWORD PTR _content$[ebp] cmp DWORD PTR [eax+24], 0 je SHORT $LN10@xmlDumpEle ; 1169 : xmlBufferWriteCHAR(buf, content->prefix); mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+24] push edx mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteCHAR add esp, 8 ; 1170 : xmlBufferWriteChar(buf, ":"); push OFFSET ??_C@_01JLIPDDHJ@?3@ mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteChar add esp, 8 $LN10@xmlDumpEle: ; 1171 : } ; 1172 : xmlBufferWriteCHAR(buf, content->name); mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteCHAR add esp, 8 ; 1173 : break; jmp $LN2@xmlDumpEle $LN11@xmlDumpEle: ; 1174 : case XML_ELEMENT_CONTENT_SEQ: ; 1175 : if ((content->c1 != NULL) && mov edx, DWORD PTR _content$[ebp] cmp DWORD PTR [edx+12], 0 je SHORT $LN12@xmlDumpEle mov eax, DWORD PTR _content$[ebp] mov ecx, DWORD PTR [eax+12] cmp DWORD PTR [ecx], 4 je SHORT $LN14@xmlDumpEle mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+12] cmp DWORD PTR [eax], 3 jne SHORT $LN12@xmlDumpEle $LN14@xmlDumpEle: ; 1176 : ((content->c1->type == XML_ELEMENT_CONTENT_OR) || ; 1177 : (content->c1->type == XML_ELEMENT_CONTENT_SEQ))) ; 1178 : xmlDumpElementContent(buf, content->c1, 1); push 1 mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _buf$[ebp] push eax call _xmlDumpElementContent add esp, 12 ; 0000000cH jmp SHORT $LN13@xmlDumpEle $LN12@xmlDumpEle: ; 1179 : else ; 1180 : xmlDumpElementContent(buf, content->c1, 0); push 0 mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _buf$[ebp] push eax call _xmlDumpElementContent add esp, 12 ; 0000000cH $LN13@xmlDumpEle: ; 1181 : xmlBufferWriteChar(buf, " , "); push OFFSET ??_C@_03NKFKBEPL@?5?0?5@ mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteChar add esp, 8 ; 1182 : if ((content->c2 != NULL) && mov edx, DWORD PTR _content$[ebp] cmp DWORD PTR [edx+16], 0 je SHORT $LN15@xmlDumpEle mov eax, DWORD PTR _content$[ebp] mov ecx, DWORD PTR [eax+16] cmp DWORD PTR [ecx], 4 je SHORT $LN17@xmlDumpEle mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+16] cmp DWORD PTR [eax], 3 jne SHORT $LN15@xmlDumpEle mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+16] cmp DWORD PTR [edx+4], 1 je SHORT $LN15@xmlDumpEle $LN17@xmlDumpEle: ; 1183 : ((content->c2->type == XML_ELEMENT_CONTENT_OR) || ; 1184 : ((content->c2->type == XML_ELEMENT_CONTENT_SEQ) && ; 1185 : (content->c2->ocur != XML_ELEMENT_CONTENT_ONCE)))) ; 1186 : xmlDumpElementContent(buf, content->c2, 1); push 1 mov eax, DWORD PTR _content$[ebp] mov ecx, DWORD PTR [eax+16] push ecx mov edx, DWORD PTR _buf$[ebp] push edx call _xmlDumpElementContent add esp, 12 ; 0000000cH jmp SHORT $LN16@xmlDumpEle $LN15@xmlDumpEle: ; 1187 : else ; 1188 : xmlDumpElementContent(buf, content->c2, 0); push 0 mov eax, DWORD PTR _content$[ebp] mov ecx, DWORD PTR [eax+16] push ecx mov edx, DWORD PTR _buf$[ebp] push edx call _xmlDumpElementContent add esp, 12 ; 0000000cH $LN16@xmlDumpEle: ; 1189 : break; jmp $LN2@xmlDumpEle $LN18@xmlDumpEle: ; 1190 : case XML_ELEMENT_CONTENT_OR: ; 1191 : if ((content->c1 != NULL) && mov eax, DWORD PTR _content$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN19@xmlDumpEle mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+12] cmp DWORD PTR [edx], 4 je SHORT $LN21@xmlDumpEle mov eax, DWORD PTR _content$[ebp] mov ecx, DWORD PTR [eax+12] cmp DWORD PTR [ecx], 3 jne SHORT $LN19@xmlDumpEle $LN21@xmlDumpEle: ; 1192 : ((content->c1->type == XML_ELEMENT_CONTENT_OR) || ; 1193 : (content->c1->type == XML_ELEMENT_CONTENT_SEQ))) ; 1194 : xmlDumpElementContent(buf, content->c1, 1); push 1 mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+12] push eax mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlDumpElementContent add esp, 12 ; 0000000cH jmp SHORT $LN20@xmlDumpEle $LN19@xmlDumpEle: ; 1195 : else ; 1196 : xmlDumpElementContent(buf, content->c1, 0); push 0 mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+12] push eax mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlDumpElementContent add esp, 12 ; 0000000cH $LN20@xmlDumpEle: ; 1197 : xmlBufferWriteChar(buf, " | "); push OFFSET ??_C@_03LGOGDKEL@?5?$HM?5@ mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteChar add esp, 8 ; 1198 : if ((content->c2 != NULL) && mov eax, DWORD PTR _content$[ebp] cmp DWORD PTR [eax+16], 0 je SHORT $LN22@xmlDumpEle mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+16] cmp DWORD PTR [edx], 3 je SHORT $LN24@xmlDumpEle mov eax, DWORD PTR _content$[ebp] mov ecx, DWORD PTR [eax+16] cmp DWORD PTR [ecx], 4 jne SHORT $LN22@xmlDumpEle mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+16] cmp DWORD PTR [eax+4], 1 je SHORT $LN22@xmlDumpEle $LN24@xmlDumpEle: ; 1199 : ((content->c2->type == XML_ELEMENT_CONTENT_SEQ) || ; 1200 : ((content->c2->type == XML_ELEMENT_CONTENT_OR) && ; 1201 : (content->c2->ocur != XML_ELEMENT_CONTENT_ONCE)))) ; 1202 : xmlDumpElementContent(buf, content->c2, 1); push 1 mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+16] push edx mov eax, DWORD PTR _buf$[ebp] push eax call _xmlDumpElementContent add esp, 12 ; 0000000cH jmp SHORT $LN23@xmlDumpEle $LN22@xmlDumpEle: ; 1203 : else ; 1204 : xmlDumpElementContent(buf, content->c2, 0); push 0 mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+16] push edx mov eax, DWORD PTR _buf$[ebp] push eax call _xmlDumpElementContent add esp, 12 ; 0000000cH $LN23@xmlDumpEle: ; 1205 : break; jmp SHORT $LN2@xmlDumpEle $LN25@xmlDumpEle: ; 1206 : default: ; 1207 : xmlErrValid(NULL, XML_ERR_INTERNAL_ERROR, push 0 push OFFSET ??_C@_0DC@GLPLFDD@Internal?3?5ELEMENT?5content?5corru@ push 1 push 0 call _xmlErrValid add esp, 16 ; 00000010H $LN2@xmlDumpEle: ; 1208 : "Internal: ELEMENT content corrupted invalid type\n", ; 1209 : NULL); ; 1210 : } ; 1211 : if (glob) cmp DWORD PTR _glob$[ebp], 0 je SHORT $LN26@xmlDumpEle ; 1212 : xmlBufferWriteChar(buf, ")"); push OFFSET ??_C@_01PKGAHCOL@?$CJ@ mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteChar add esp, 8 $LN26@xmlDumpEle: ; 1213 : switch (content->ocur) { mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+4] mov DWORD PTR tv198[ebp], eax cmp DWORD PTR tv198[ebp], 2 je SHORT $LN28@xmlDumpEle cmp DWORD PTR tv198[ebp], 3 je SHORT $LN29@xmlDumpEle cmp DWORD PTR tv198[ebp], 4 je SHORT $LN30@xmlDumpEle jmp SHORT $LN1@xmlDumpEle ; 1214 : case XML_ELEMENT_CONTENT_ONCE: ; 1215 : break; jmp SHORT $LN1@xmlDumpEle $LN28@xmlDumpEle: ; 1216 : case XML_ELEMENT_CONTENT_OPT: ; 1217 : xmlBufferWriteChar(buf, "?"); push OFFSET ??_C@_01OGPIMHDM@?$DP@ mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteChar add esp, 8 ; 1218 : break; jmp SHORT $LN1@xmlDumpEle $LN29@xmlDumpEle: ; 1219 : case XML_ELEMENT_CONTENT_MULT: ; 1220 : xmlBufferWriteChar(buf, "*"); push OFFSET ??_C@_01NBENCBCI@?$CK@ mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteChar add esp, 8 ; 1221 : break; jmp SHORT $LN1@xmlDumpEle $LN30@xmlDumpEle: ; 1222 : case XML_ELEMENT_CONTENT_PLUS: ; 1223 : xmlBufferWriteChar(buf, "+"); push OFFSET ??_C@_01MIFGBAGJ@?$CL@ mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteChar add esp, 8 $LN1@xmlDumpEle: ; 1224 : break; ; 1225 : } ; 1226 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 1 $LN32@xmlDumpEle: DD $LN8@xmlDumpEle DD $LN9@xmlDumpEle DD $LN11@xmlDumpEle DD $LN18@xmlDumpEle _xmlDumpElementContent ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidBuildAContentModel _TEXT SEGMENT tv282 = -108 ; size = 4 tv216 = -104 ; size = 4 tv93 = -100 ; size = 4 tv73 = -96 ; size = 4 _ocur$1 = -92 ; size = 4 _oldend$2 = -88 ; size = 4 _oldstate$3 = -84 ; size = 4 _ocur$4 = -80 ; size = 4 _oldend$5 = -76 ; size = 4 _oldstate$6 = -72 ; size = 4 _fullname$7 = -68 ; size = 4 _fn$8 = -60 ; size = 50 _oldstate$9 = -4 ; size = 4 _content$ = 8 ; size = 4 _ctxt$ = 12 ; size = 4 _name$ = 16 ; size = 4 _xmlValidBuildAContentModel PROC ; COMDAT ; 661 : const xmlChar *name) { push ebp mov ebp, esp sub esp, 108 ; 0000006cH push esi push edi lea edi, DWORD PTR [ebp-108] mov ecx, 27 ; 0000001bH mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 662 : if (content == NULL) { cmp DWORD PTR _content$[ebp], 0 jne SHORT $LN16@xmlValidBu ; 663 : xmlErrValidNode(ctxt, NULL, XML_ERR_INTERNAL_ERROR, push 0 push 0 mov eax, DWORD PTR _name$[ebp] push eax push OFFSET ??_C@_0CL@FIAOIAHN@Found?5NULL?5content?5in?5content?5m@ push 1 push 0 mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 664 : "Found NULL content in content model of %s\n", ; 665 : name, NULL, NULL); ; 666 : return(0); xor eax, eax jmp $LN1@xmlValidBu $LN16@xmlValidBu: ; 667 : } ; 668 : switch (content->type) { mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR tv73[ebp], eax mov ecx, DWORD PTR tv73[ebp] sub ecx, 1 mov DWORD PTR tv73[ebp], ecx cmp DWORD PTR tv73[ebp], 3 ja $LN40@xmlValidBu mov edx, DWORD PTR tv73[ebp] jmp DWORD PTR $LN45@xmlValidBu[edx*4] $LN17@xmlValidBu: ; 669 : case XML_ELEMENT_CONTENT_PCDATA: ; 670 : xmlErrValidNode(ctxt, NULL, XML_ERR_INTERNAL_ERROR, push 0 push 0 mov eax, DWORD PTR _name$[ebp] push eax push OFFSET ??_C@_0CF@IIHAKBAI@Found?5PCDATA?5in?5content?5model?5o@ push 1 push 0 mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 671 : "Found PCDATA in content model of %s\n", ; 672 : name, NULL, NULL); ; 673 : return(0); xor eax, eax jmp $LN1@xmlValidBu ; 674 : break; jmp $LN2@xmlValidBu $LN18@xmlValidBu: ; 675 : case XML_ELEMENT_CONTENT_ELEMENT: { ; 676 : xmlAutomataStatePtr oldstate = ctxt->state; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+60] mov DWORD PTR _oldstate$9[ebp], eax ; 677 : xmlChar fn[50]; ; 678 : xmlChar *fullname; ; 679 : ; 680 : fullname = xmlBuildQName(content->name, content->prefix, fn, 50); push 50 ; 00000032H lea ecx, DWORD PTR _fn$8[ebp] push ecx mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+24] push eax mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlBuildQName add esp, 16 ; 00000010H mov DWORD PTR _fullname$7[ebp], eax ; 681 : if (fullname == NULL) { cmp DWORD PTR _fullname$7[ebp], 0 jne SHORT $LN19@xmlValidBu ; 682 : xmlVErrMemory(ctxt, "Building content model"); push OFFSET ??_C@_0BH@INHICIGB@Building?5content?5model@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlVErrMemory add esp, 8 ; 683 : return(0); xor eax, eax jmp $LN1@xmlValidBu $LN19@xmlValidBu: ; 684 : } ; 685 : ; 686 : switch (content->ocur) { mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+4] mov DWORD PTR tv93[ebp], edx mov eax, DWORD PTR tv93[ebp] sub eax, 1 mov DWORD PTR tv93[ebp], eax cmp DWORD PTR tv93[ebp], 3 ja $LN4@xmlValidBu mov ecx, DWORD PTR tv93[ebp] jmp DWORD PTR $LN46@xmlValidBu[ecx*4] $LN20@xmlValidBu: ; 687 : case XML_ELEMENT_CONTENT_ONCE: ; 688 : ctxt->state = xmlAutomataNewTransition(ctxt->am, push 0 mov edx, DWORD PTR _fullname$7[ebp] push edx push 0 mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+60] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+56] push eax call _xmlAutomataNewTransition add esp, 20 ; 00000014H mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+60], eax ; 689 : ctxt->state, NULL, fullname, NULL); ; 690 : break; jmp $LN4@xmlValidBu $LN21@xmlValidBu: ; 691 : case XML_ELEMENT_CONTENT_OPT: ; 692 : ctxt->state = xmlAutomataNewTransition(ctxt->am, push 0 mov edx, DWORD PTR _fullname$7[ebp] push edx push 0 mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+60] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+56] push eax call _xmlAutomataNewTransition add esp, 20 ; 00000014H mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+60], eax ; 693 : ctxt->state, NULL, fullname, NULL); ; 694 : xmlAutomataNewEpsilon(ctxt->am, oldstate, ctxt->state); mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+60] push eax mov ecx, DWORD PTR _oldstate$9[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+56] push eax call _xmlAutomataNewEpsilon add esp, 12 ; 0000000cH ; 695 : break; jmp $LN4@xmlValidBu $LN22@xmlValidBu: ; 696 : case XML_ELEMENT_CONTENT_PLUS: ; 697 : ctxt->state = xmlAutomataNewTransition(ctxt->am, push 0 mov ecx, DWORD PTR _fullname$7[ebp] push ecx push 0 mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+60] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+56] push edx call _xmlAutomataNewTransition add esp, 20 ; 00000014H mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+60], eax ; 698 : ctxt->state, NULL, fullname, NULL); ; 699 : xmlAutomataNewTransition(ctxt->am, ctxt->state, push 0 mov edx, DWORD PTR _fullname$7[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+60] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+60] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+56] push edx call _xmlAutomataNewTransition add esp, 20 ; 00000014H ; 700 : ctxt->state, fullname, NULL); ; 701 : break; jmp SHORT $LN4@xmlValidBu $LN23@xmlValidBu: ; 702 : case XML_ELEMENT_CONTENT_MULT: ; 703 : ctxt->state = xmlAutomataNewEpsilon(ctxt->am, push 0 mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+60] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+56] push eax call _xmlAutomataNewEpsilon add esp, 12 ; 0000000cH mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+60], eax ; 704 : ctxt->state, NULL); ; 705 : xmlAutomataNewTransition(ctxt->am, push 0 mov edx, DWORD PTR _fullname$7[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+60] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+60] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+56] push edx call _xmlAutomataNewTransition add esp, 20 ; 00000014H $LN4@xmlValidBu: ; 706 : ctxt->state, ctxt->state, fullname, NULL); ; 707 : break; ; 708 : } ; 709 : if ((fullname != fn) && (fullname != content->name)) lea eax, DWORD PTR _fn$8[ebp] cmp DWORD PTR _fullname$7[ebp], eax je SHORT $LN24@xmlValidBu mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR _fullname$7[ebp] cmp edx, DWORD PTR [ecx+8] je SHORT $LN24@xmlValidBu ; 710 : xmlFree(fullname); mov esi, esp mov eax, DWORD PTR _fullname$7[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN24@xmlValidBu: ; 711 : break; jmp $LN2@xmlValidBu $LN25@xmlValidBu: ; 712 : } ; 713 : case XML_ELEMENT_CONTENT_SEQ: { ; 714 : xmlAutomataStatePtr oldstate, oldend; ; 715 : xmlElementContentOccur ocur; ; 716 : ; 717 : /* ; 718 : * Simply iterate over the content ; 719 : */ ; 720 : oldstate = ctxt->state; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+60] mov DWORD PTR _oldstate$6[ebp], edx ; 721 : ocur = content->ocur; mov eax, DWORD PTR _content$[ebp] mov ecx, DWORD PTR [eax+4] mov DWORD PTR _ocur$4[ebp], ecx ; 722 : if (ocur != XML_ELEMENT_CONTENT_ONCE) { cmp DWORD PTR _ocur$4[ebp], 1 je SHORT $LN8@xmlValidBu ; 723 : ctxt->state = xmlAutomataNewEpsilon(ctxt->am, oldstate, NULL); push 0 mov edx, DWORD PTR _oldstate$6[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+56] push ecx call _xmlAutomataNewEpsilon add esp, 12 ; 0000000cH mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+60], eax ; 724 : oldstate = ctxt->state; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+60] mov DWORD PTR _oldstate$6[ebp], ecx $LN8@xmlValidBu: ; 725 : } ; 726 : do { ; 727 : xmlValidBuildAContentModel(content->c1, ctxt, name); mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+12] push edx call _xmlValidBuildAContentModel add esp, 12 ; 0000000cH ; 728 : content = content->c2; mov eax, DWORD PTR _content$[ebp] mov ecx, DWORD PTR [eax+16] mov DWORD PTR _content$[ebp], ecx ; 729 : } while ((content->type == XML_ELEMENT_CONTENT_SEQ) && mov edx, DWORD PTR _content$[ebp] cmp DWORD PTR [edx], 3 jne SHORT $LN7@xmlValidBu mov eax, DWORD PTR _content$[ebp] cmp DWORD PTR [eax+4], 1 je SHORT $LN8@xmlValidBu $LN7@xmlValidBu: ; 730 : (content->ocur == XML_ELEMENT_CONTENT_ONCE)); ; 731 : xmlValidBuildAContentModel(content, ctxt, name); mov ecx, DWORD PTR _name$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx mov eax, DWORD PTR _content$[ebp] push eax call _xmlValidBuildAContentModel add esp, 12 ; 0000000cH ; 732 : oldend = ctxt->state; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+60] mov DWORD PTR _oldend$5[ebp], edx ; 733 : ctxt->state = xmlAutomataNewEpsilon(ctxt->am, oldend, NULL); push 0 mov eax, DWORD PTR _oldend$5[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+56] push edx call _xmlAutomataNewEpsilon add esp, 12 ; 0000000cH mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+60], eax ; 734 : switch (ocur) { mov edx, DWORD PTR _ocur$4[ebp] mov DWORD PTR tv216[ebp], edx cmp DWORD PTR tv216[ebp], 2 je SHORT $LN29@xmlValidBu cmp DWORD PTR tv216[ebp], 3 je SHORT $LN30@xmlValidBu cmp DWORD PTR tv216[ebp], 4 je SHORT $LN31@xmlValidBu jmp SHORT $LN9@xmlValidBu ; 735 : case XML_ELEMENT_CONTENT_ONCE: ; 736 : break; jmp SHORT $LN9@xmlValidBu $LN29@xmlValidBu: ; 737 : case XML_ELEMENT_CONTENT_OPT: ; 738 : xmlAutomataNewEpsilon(ctxt->am, oldstate, ctxt->state); mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+60] push ecx mov edx, DWORD PTR _oldstate$6[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+56] push ecx call _xmlAutomataNewEpsilon add esp, 12 ; 0000000cH ; 739 : break; jmp SHORT $LN9@xmlValidBu $LN30@xmlValidBu: ; 740 : case XML_ELEMENT_CONTENT_MULT: ; 741 : xmlAutomataNewEpsilon(ctxt->am, oldstate, ctxt->state); mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+60] push eax mov ecx, DWORD PTR _oldstate$6[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+56] push eax call _xmlAutomataNewEpsilon add esp, 12 ; 0000000cH ; 742 : xmlAutomataNewEpsilon(ctxt->am, oldend, oldstate); mov ecx, DWORD PTR _oldstate$6[ebp] push ecx mov edx, DWORD PTR _oldend$5[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+56] push ecx call _xmlAutomataNewEpsilon add esp, 12 ; 0000000cH ; 743 : break; jmp SHORT $LN9@xmlValidBu $LN31@xmlValidBu: ; 744 : case XML_ELEMENT_CONTENT_PLUS: ; 745 : xmlAutomataNewEpsilon(ctxt->am, oldend, oldstate); mov edx, DWORD PTR _oldstate$6[ebp] push edx mov eax, DWORD PTR _oldend$5[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+56] push edx call _xmlAutomataNewEpsilon add esp, 12 ; 0000000cH $LN9@xmlValidBu: ; 746 : break; ; 747 : } ; 748 : break; jmp $LN2@xmlValidBu $LN32@xmlValidBu: ; 749 : } ; 750 : case XML_ELEMENT_CONTENT_OR: { ; 751 : xmlAutomataStatePtr oldstate, oldend; ; 752 : xmlElementContentOccur ocur; ; 753 : ; 754 : ocur = content->ocur; mov eax, DWORD PTR _content$[ebp] mov ecx, DWORD PTR [eax+4] mov DWORD PTR _ocur$1[ebp], ecx ; 755 : if ((ocur == XML_ELEMENT_CONTENT_PLUS) || cmp DWORD PTR _ocur$1[ebp], 4 je SHORT $LN34@xmlValidBu cmp DWORD PTR _ocur$1[ebp], 3 jne SHORT $LN33@xmlValidBu $LN34@xmlValidBu: ; 756 : (ocur == XML_ELEMENT_CONTENT_MULT)) { ; 757 : ctxt->state = xmlAutomataNewEpsilon(ctxt->am, push 0 mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+60] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+56] push edx call _xmlAutomataNewEpsilon add esp, 12 ; 0000000cH mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+60], eax $LN33@xmlValidBu: ; 758 : ctxt->state, NULL); ; 759 : } ; 760 : oldstate = ctxt->state; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+60] mov DWORD PTR _oldstate$3[ebp], eax ; 761 : oldend = xmlAutomataNewState(ctxt->am); mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+56] push edx call _xmlAutomataNewState add esp, 4 mov DWORD PTR _oldend$2[ebp], eax $LN13@xmlValidBu: ; 762 : ; 763 : /* ; 764 : * iterate over the subtypes and remerge the end with an ; 765 : * epsilon transition ; 766 : */ ; 767 : do { ; 768 : ctxt->state = oldstate; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _oldstate$3[ebp] mov DWORD PTR [eax+60], ecx ; 769 : xmlValidBuildAContentModel(content->c1, ctxt, name); mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+12] push edx call _xmlValidBuildAContentModel add esp, 12 ; 0000000cH ; 770 : xmlAutomataNewEpsilon(ctxt->am, ctxt->state, oldend); mov eax, DWORD PTR _oldend$2[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+60] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+56] push ecx call _xmlAutomataNewEpsilon add esp, 12 ; 0000000cH ; 771 : content = content->c2; mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+16] mov DWORD PTR _content$[ebp], eax ; 772 : } while ((content->type == XML_ELEMENT_CONTENT_OR) && mov ecx, DWORD PTR _content$[ebp] cmp DWORD PTR [ecx], 4 jne SHORT $LN12@xmlValidBu mov edx, DWORD PTR _content$[ebp] cmp DWORD PTR [edx+4], 1 je SHORT $LN13@xmlValidBu $LN12@xmlValidBu: ; 773 : (content->ocur == XML_ELEMENT_CONTENT_ONCE)); ; 774 : ctxt->state = oldstate; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _oldstate$3[ebp] mov DWORD PTR [eax+60], ecx ; 775 : xmlValidBuildAContentModel(content, ctxt, name); mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax mov ecx, DWORD PTR _content$[ebp] push ecx call _xmlValidBuildAContentModel add esp, 12 ; 0000000cH ; 776 : xmlAutomataNewEpsilon(ctxt->am, ctxt->state, oldend); mov edx, DWORD PTR _oldend$2[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+60] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+56] push eax call _xmlAutomataNewEpsilon add esp, 12 ; 0000000cH ; 777 : ctxt->state = xmlAutomataNewEpsilon(ctxt->am, oldend, NULL); push 0 mov ecx, DWORD PTR _oldend$2[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+56] push eax call _xmlAutomataNewEpsilon add esp, 12 ; 0000000cH mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+60], eax ; 778 : switch (ocur) { mov edx, DWORD PTR _ocur$1[ebp] mov DWORD PTR tv282[ebp], edx cmp DWORD PTR tv282[ebp], 2 je SHORT $LN37@xmlValidBu cmp DWORD PTR tv282[ebp], 3 je SHORT $LN38@xmlValidBu cmp DWORD PTR tv282[ebp], 4 je SHORT $LN39@xmlValidBu jmp SHORT $LN14@xmlValidBu ; 779 : case XML_ELEMENT_CONTENT_ONCE: ; 780 : break; jmp SHORT $LN14@xmlValidBu $LN37@xmlValidBu: ; 781 : case XML_ELEMENT_CONTENT_OPT: ; 782 : xmlAutomataNewEpsilon(ctxt->am, oldstate, ctxt->state); mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+60] push ecx mov edx, DWORD PTR _oldstate$3[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+56] push ecx call _xmlAutomataNewEpsilon add esp, 12 ; 0000000cH ; 783 : break; jmp SHORT $LN14@xmlValidBu $LN38@xmlValidBu: ; 784 : case XML_ELEMENT_CONTENT_MULT: ; 785 : xmlAutomataNewEpsilon(ctxt->am, oldstate, ctxt->state); mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+60] push eax mov ecx, DWORD PTR _oldstate$3[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+56] push eax call _xmlAutomataNewEpsilon add esp, 12 ; 0000000cH ; 786 : xmlAutomataNewEpsilon(ctxt->am, oldend, oldstate); mov ecx, DWORD PTR _oldstate$3[ebp] push ecx mov edx, DWORD PTR _oldend$2[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+56] push ecx call _xmlAutomataNewEpsilon add esp, 12 ; 0000000cH ; 787 : break; jmp SHORT $LN14@xmlValidBu $LN39@xmlValidBu: ; 788 : case XML_ELEMENT_CONTENT_PLUS: ; 789 : xmlAutomataNewEpsilon(ctxt->am, oldend, oldstate); mov edx, DWORD PTR _oldstate$3[ebp] push edx mov eax, DWORD PTR _oldend$2[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+56] push edx call _xmlAutomataNewEpsilon add esp, 12 ; 0000000cH $LN14@xmlValidBu: ; 790 : break; ; 791 : } ; 792 : break; jmp SHORT $LN2@xmlValidBu $LN40@xmlValidBu: ; 793 : } ; 794 : default: ; 795 : xmlErrValid(ctxt, XML_ERR_INTERNAL_ERROR, mov eax, DWORD PTR _name$[ebp] push eax push OFFSET ??_C@_0CE@LMBMADBI@ContentModel?5broken?5for?5element@ push 1 mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValid add esp, 16 ; 00000010H ; 796 : "ContentModel broken for element %s\n", ; 797 : (const char *) name); ; 798 : return(0); xor eax, eax jmp SHORT $LN1@xmlValidBu $LN2@xmlValidBu: ; 799 : } ; 800 : return(1); mov eax, 1 $LN1@xmlValidBu: ; 801 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN44@xmlValidBu call @_RTC_CheckStackVars@8 pop eax pop edx pop edi pop esi add esp, 108 ; 0000006cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 2 $LN44@xmlValidBu: DD 1 DD $LN43@xmlValidBu $LN43@xmlValidBu: DD -60 ; ffffffc4H DD 50 ; 00000032H DD $LN42@xmlValidBu $LN42@xmlValidBu: DB 102 ; 00000066H DB 110 ; 0000006eH DB 0 npad 1 $LN45@xmlValidBu: DD $LN17@xmlValidBu DD $LN18@xmlValidBu DD $LN25@xmlValidBu DD $LN32@xmlValidBu $LN46@xmlValidBu: DD $LN20@xmlValidBu DD $LN21@xmlValidBu DD $LN23@xmlValidBu DD $LN22@xmlValidBu _xmlValidBuildAContentModel ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _nodeVPop _TEXT SEGMENT _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _nodeVPop PROC ; COMDAT ; 467 : { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 468 : xmlNodePtr ret; ; 469 : ; 470 : if (ctxt->nodeNr <= 0) mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+16], 0 jg SHORT $LN2@nodeVPop ; 471 : return (NULL); xor eax, eax jmp SHORT $LN1@nodeVPop $LN2@nodeVPop: ; 472 : ctxt->nodeNr--; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+16] sub edx, 1 mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+16], edx ; 473 : if (ctxt->nodeNr > 0) mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+16], 0 jle SHORT $LN3@nodeVPop ; 474 : ctxt->node = ctxt->nodeTab[ctxt->nodeNr - 1]; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+16] mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+24] mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [edx+eax*4-4] mov DWORD PTR [ecx+12], edx jmp SHORT $LN4@nodeVPop $LN3@nodeVPop: ; 475 : else ; 476 : ctxt->node = NULL; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+12], 0 $LN4@nodeVPop: ; 477 : ret = ctxt->nodeTab[ctxt->nodeNr]; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+16] mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+24] mov edx, DWORD PTR [ecx+edx*4] mov DWORD PTR _ret$[ebp], edx ; 478 : ctxt->nodeTab[ctxt->nodeNr] = NULL; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+16] mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+24] mov DWORD PTR [eax+ecx*4], 0 ; 479 : return (ret); mov eax, DWORD PTR _ret$[ebp] $LN1@nodeVPop: ; 480 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _nodeVPop ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _nodeVPush _TEXT SEGMENT tv135 = -8 ; size = 4 _tmp$1 = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _value$ = 12 ; size = 4 _nodeVPush PROC ; COMDAT ; 438 : { push ebp mov ebp, esp sub esp, 8 push esi mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 439 : if (ctxt->nodeMax <= 0) { mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+20], 0 jg SHORT $LN2@nodeVPush ; 440 : ctxt->nodeMax = 4; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+20], 4 ; 441 : ctxt->nodeTab = mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+20] shl eax, 2 mov esi, esp push eax call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+24], eax ; 442 : (xmlNodePtr *) xmlMalloc(ctxt->nodeMax * ; 443 : sizeof(ctxt->nodeTab[0])); ; 444 : if (ctxt->nodeTab == NULL) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+24], 0 jne SHORT $LN2@nodeVPush ; 445 : xmlVErrMemory(ctxt, "malloc failed"); push OFFSET ??_C@_0O@IMHFIAOC@malloc?5failed@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlVErrMemory add esp, 8 ; 446 : ctxt->nodeMax = 0; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+20], 0 ; 447 : return (0); xor eax, eax jmp $LN1@nodeVPush $LN2@nodeVPush: ; 448 : } ; 449 : } ; 450 : if (ctxt->nodeNr >= ctxt->nodeMax) { mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [edx+16] cmp ecx, DWORD PTR [eax+20] jl SHORT $LN4@nodeVPush ; 451 : xmlNodePtr *tmp; ; 452 : tmp = (xmlNodePtr *) xmlRealloc(ctxt->nodeTab, mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+20] shl eax, 1 shl eax, 2 mov esi, esp push eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+24] push edx call DWORD PTR _xmlRealloc add esp, 8 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _tmp$1[ebp], eax ; 453 : ctxt->nodeMax * 2 * sizeof(ctxt->nodeTab[0])); ; 454 : if (tmp == NULL) { cmp DWORD PTR _tmp$1[ebp], 0 jne SHORT $LN5@nodeVPush ; 455 : xmlVErrMemory(ctxt, "realloc failed"); push OFFSET ??_C@_0P@BHJOIPMJ@realloc?5failed@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlVErrMemory add esp, 8 ; 456 : return (0); xor eax, eax jmp SHORT $LN1@nodeVPush $LN5@nodeVPush: ; 457 : } ; 458 : ctxt->nodeMax *= 2; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+20] shl edx, 1 mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+20], edx ; 459 : ctxt->nodeTab = tmp; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR _tmp$1[ebp] mov DWORD PTR [ecx+24], edx $LN4@nodeVPush: ; 460 : } ; 461 : ctxt->nodeTab[ctxt->nodeNr] = value; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+16] mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+24] mov edx, DWORD PTR _value$[ebp] mov DWORD PTR [eax+ecx*4], edx ; 462 : ctxt->node = value; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _value$[ebp] mov DWORD PTR [eax+12], ecx ; 463 : return (ctxt->nodeNr++); mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+16] mov DWORD PTR tv135[ebp], eax mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+16] add edx, 1 mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+16], edx mov eax, DWORD PTR tv135[ebp] $LN1@nodeVPush: ; 464 : } pop esi add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _nodeVPush ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _vstateVPop _TEXT SEGMENT _elemDecl$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _vstateVPop PROC ; COMDAT ; 318 : vstateVPop(xmlValidCtxtPtr ctxt) { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 319 : xmlElementPtr elemDecl; ; 320 : ; 321 : if (ctxt->vstateNr < 1) return(-1); mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+44], 1 jge SHORT $LN2@vstateVPop or eax, -1 jmp $LN1@vstateVPop $LN2@vstateVPop: ; 322 : ctxt->vstateNr--; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+44] sub edx, 1 mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+44], edx ; 323 : elemDecl = ctxt->vstateTab[ctxt->vstateNr].elemDecl; mov ecx, DWORD PTR _ctxt$[ebp] imul edx, DWORD PTR [ecx+44], 12 mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+52] mov edx, DWORD PTR [ecx+edx] mov DWORD PTR _elemDecl$[ebp], edx ; 324 : ctxt->vstateTab[ctxt->vstateNr].elemDecl = NULL; mov eax, DWORD PTR _ctxt$[ebp] imul ecx, DWORD PTR [eax+44], 12 mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] mov DWORD PTR [eax+ecx], 0 ; 325 : ctxt->vstateTab[ctxt->vstateNr].node = NULL; mov ecx, DWORD PTR _ctxt$[ebp] imul edx, DWORD PTR [ecx+44], 12 mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+52] mov DWORD PTR [ecx+edx+4], 0 ; 326 : if ((elemDecl != NULL) && (elemDecl->etype == XML_ELEMENT_TYPE_ELEMENT)) { cmp DWORD PTR _elemDecl$[ebp], 0 je SHORT $LN3@vstateVPop mov edx, DWORD PTR _elemDecl$[ebp] cmp DWORD PTR [edx+36], 4 jne SHORT $LN3@vstateVPop ; 327 : xmlRegFreeExecCtxt(ctxt->vstateTab[ctxt->vstateNr].exec); mov eax, DWORD PTR _ctxt$[ebp] imul ecx, DWORD PTR [eax+44], 12 mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] mov ecx, DWORD PTR [eax+ecx+8] push ecx call _xmlRegFreeExecCtxt add esp, 4 $LN3@vstateVPop: ; 328 : } ; 329 : ctxt->vstateTab[ctxt->vstateNr].exec = NULL; mov edx, DWORD PTR _ctxt$[ebp] imul eax, DWORD PTR [edx+44], 12 mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] mov DWORD PTR [edx+eax+8], 0 ; 330 : if (ctxt->vstateNr >= 1) mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+44], 1 jl SHORT $LN4@vstateVPop ; 331 : ctxt->vstate = &ctxt->vstateTab[ctxt->vstateNr - 1]; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+44] sub edx, 1 imul eax, edx, 12 mov ecx, DWORD PTR _ctxt$[ebp] add eax, DWORD PTR [ecx+52] mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+40], eax jmp SHORT $LN5@vstateVPop $LN4@vstateVPop: ; 332 : else ; 333 : ctxt->vstate = NULL; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+40], 0 $LN5@vstateVPop: ; 334 : return(ctxt->vstateNr); mov ecx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [ecx+44] $LN1@vstateVPop: ; 335 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _vstateVPop ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _vstateVPush _TEXT SEGMENT tv178 = -8 ; size = 4 _tmp$1 = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _elemDecl$ = 12 ; size = 4 _node$ = 16 ; size = 4 _vstateVPush PROC ; COMDAT ; 274 : vstateVPush(xmlValidCtxtPtr ctxt, xmlElementPtr elemDecl, xmlNodePtr node) { push ebp mov ebp, esp sub esp, 8 push esi mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 275 : if ((ctxt->vstateMax == 0) || (ctxt->vstateTab == NULL)) { mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+48], 0 je SHORT $LN3@vstateVPus mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+52], 0 jne SHORT $LN2@vstateVPus $LN3@vstateVPus: ; 276 : ctxt->vstateMax = 10; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+48], 10 ; 0000000aH ; 277 : ctxt->vstateTab = (xmlValidState *) xmlMalloc(ctxt->vstateMax * mov eax, DWORD PTR _ctxt$[ebp] imul ecx, DWORD PTR [eax+48], 12 mov esi, esp push ecx call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+52], eax ; 278 : sizeof(ctxt->vstateTab[0])); ; 279 : if (ctxt->vstateTab == NULL) { mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+52], 0 jne SHORT $LN2@vstateVPus ; 280 : xmlVErrMemory(ctxt, "malloc failed"); push OFFSET ??_C@_0O@IMHFIAOC@malloc?5failed@ mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlVErrMemory add esp, 8 ; 281 : return(-1); or eax, -1 jmp $LN1@vstateVPus $LN2@vstateVPus: ; 282 : } ; 283 : } ; 284 : ; 285 : if (ctxt->vstateNr >= ctxt->vstateMax) { mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [edx+44] cmp ecx, DWORD PTR [eax+48] jl SHORT $LN5@vstateVPus ; 286 : xmlValidState *tmp; ; 287 : ; 288 : tmp = (xmlValidState *) xmlRealloc(ctxt->vstateTab, mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+48] shl eax, 1 imul ecx, eax, 12 mov esi, esp push ecx mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+52] push eax call DWORD PTR _xmlRealloc add esp, 8 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _tmp$1[ebp], eax ; 289 : 2 * ctxt->vstateMax * sizeof(ctxt->vstateTab[0])); ; 290 : if (tmp == NULL) { cmp DWORD PTR _tmp$1[ebp], 0 jne SHORT $LN6@vstateVPus ; 291 : xmlVErrMemory(ctxt, "realloc failed"); push OFFSET ??_C@_0P@BHJOIPMJ@realloc?5failed@ mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlVErrMemory add esp, 8 ; 292 : return(-1); or eax, -1 jmp $LN1@vstateVPus $LN6@vstateVPus: ; 293 : } ; 294 : ctxt->vstateMax *= 2; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+48] shl eax, 1 mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+48], eax ; 295 : ctxt->vstateTab = tmp; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR _tmp$1[ebp] mov DWORD PTR [edx+52], eax $LN5@vstateVPus: ; 296 : } ; 297 : ctxt->vstate = &ctxt->vstateTab[ctxt->vstateNr]; mov ecx, DWORD PTR _ctxt$[ebp] imul edx, DWORD PTR [ecx+44], 12 mov eax, DWORD PTR _ctxt$[ebp] add edx, DWORD PTR [eax+52] mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+40], edx ; 298 : ctxt->vstateTab[ctxt->vstateNr].elemDecl = elemDecl; mov edx, DWORD PTR _ctxt$[ebp] imul eax, DWORD PTR [edx+44], 12 mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] mov ecx, DWORD PTR _elemDecl$[ebp] mov DWORD PTR [edx+eax], ecx ; 299 : ctxt->vstateTab[ctxt->vstateNr].node = node; mov edx, DWORD PTR _ctxt$[ebp] imul eax, DWORD PTR [edx+44], 12 mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] mov ecx, DWORD PTR _node$[ebp] mov DWORD PTR [edx+eax+4], ecx ; 300 : if ((elemDecl != NULL) && (elemDecl->etype == XML_ELEMENT_TYPE_ELEMENT)) { cmp DWORD PTR _elemDecl$[ebp], 0 je $LN7@vstateVPus mov edx, DWORD PTR _elemDecl$[ebp] cmp DWORD PTR [edx+36], 4 jne SHORT $LN7@vstateVPus ; 301 : if (elemDecl->contModel == NULL) mov eax, DWORD PTR _elemDecl$[ebp] cmp DWORD PTR [eax+52], 0 jne SHORT $LN8@vstateVPus ; 302 : xmlValidBuildContentModel(ctxt, elemDecl); mov ecx, DWORD PTR _elemDecl$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlValidBuildContentModel add esp, 8 $LN8@vstateVPus: ; 303 : if (elemDecl->contModel != NULL) { mov eax, DWORD PTR _elemDecl$[ebp] cmp DWORD PTR [eax+52], 0 je SHORT $LN9@vstateVPus ; 304 : ctxt->vstateTab[ctxt->vstateNr].exec = push 0 push 0 mov ecx, DWORD PTR _elemDecl$[ebp] mov edx, DWORD PTR [ecx+52] push edx call _xmlRegNewExecCtxt add esp, 12 ; 0000000cH mov ecx, DWORD PTR _ctxt$[ebp] imul edx, DWORD PTR [ecx+44], 12 mov ecx, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [ecx+52] mov DWORD PTR [ecx+edx+8], eax ; 305 : xmlRegNewExecCtxt(elemDecl->contModel, NULL, NULL); ; 306 : } else { jmp SHORT $LN7@vstateVPus $LN9@vstateVPus: ; 307 : ctxt->vstateTab[ctxt->vstateNr].exec = NULL; mov edx, DWORD PTR _ctxt$[ebp] imul eax, DWORD PTR [edx+44], 12 mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+52] mov DWORD PTR [edx+eax+8], 0 ; 308 : xmlErrValidNode(ctxt, (xmlNodePtr) elemDecl, push 0 push 0 mov eax, DWORD PTR _node$[ebp] mov ecx, DWORD PTR [eax+8] push ecx push OFFSET ??_C@_0CN@GEBFHDLO@Failed?5to?5build?5content?5model?5r@ push 1 mov edx, DWORD PTR _elemDecl$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH $LN7@vstateVPus: ; 309 : XML_ERR_INTERNAL_ERROR, ; 310 : "Failed to build content model regexp for %s\n", ; 311 : node->name, NULL, NULL); ; 312 : } ; 313 : } ; 314 : return(ctxt->vstateNr++); mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+44] mov DWORD PTR tv178[ebp], edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+44] add ecx, 1 mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+44], ecx mov eax, DWORD PTR tv178[ebp] $LN1@vstateVPus: ; 315 : } pop esi add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _vstateVPush ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlErrValidWarning _TEXT SEGMENT _delta$1 = -20 ; size = 4 _data$ = -16 ; size = 4 _pctxt$ = -12 ; size = 4 _channel$ = -8 ; size = 4 _schannel$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _node$ = 12 ; size = 4 _error$ = 16 ; size = 4 _msg$ = 20 ; size = 4 _str1$ = 24 ; size = 4 _str2$ = 28 ; size = 4 _str3$ = 32 ; size = 4 _xmlErrValidWarning PROC ; COMDAT ; 229 : { push ebp mov ebp, esp sub esp, 20 ; 00000014H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 230 : xmlStructuredErrorFunc schannel = NULL; mov DWORD PTR _schannel$[ebp], 0 ; 231 : xmlGenericErrorFunc channel = NULL; mov DWORD PTR _channel$[ebp], 0 ; 232 : xmlParserCtxtPtr pctxt = NULL; mov DWORD PTR _pctxt$[ebp], 0 ; 233 : void *data = NULL; mov DWORD PTR _data$[ebp], 0 ; 234 : ; 235 : if (ctxt != NULL) { cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN2@xmlErrVali ; 236 : channel = ctxt->warning; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+8] mov DWORD PTR _channel$[ebp], ecx ; 237 : data = ctxt->userData; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _data$[ebp], eax ; 238 : /* Use the special values to detect if it is part of a parsing ; 239 : context */ ; 240 : if ((ctxt->finishDtd == XML_CTXT_FINISH_DTD_0) || mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+28], -1412623820 ; abcd1234H je SHORT $LN4@xmlErrVali mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+28], -1412623819 ; abcd1235H jne SHORT $LN2@xmlErrVali $LN4@xmlErrVali: ; 241 : (ctxt->finishDtd == XML_CTXT_FINISH_DTD_1)) { ; 242 : long delta = (char *) ctxt - (char *) ctxt->userData; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _ctxt$[ebp] sub ecx, DWORD PTR [eax] mov DWORD PTR _delta$1[ebp], ecx ; 243 : if ((delta > 0) && (delta < 250)) cmp DWORD PTR _delta$1[ebp], 0 jle SHORT $LN2@xmlErrVali cmp DWORD PTR _delta$1[ebp], 250 ; 000000faH jge SHORT $LN2@xmlErrVali ; 244 : pctxt = ctxt->userData; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _pctxt$[ebp], eax $LN2@xmlErrVali: ; 245 : } ; 246 : } ; 247 : __xmlRaiseError(schannel, channel, data, pctxt, node, XML_FROM_VALID, error, mov ecx, DWORD PTR _str3$[ebp] push ecx mov edx, DWORD PTR _str2$[ebp] push edx mov eax, DWORD PTR _str1$[ebp] push eax mov ecx, DWORD PTR _msg$[ebp] push ecx push 0 push 0 mov edx, DWORD PTR _str3$[ebp] push edx mov eax, DWORD PTR _str2$[ebp] push eax mov ecx, DWORD PTR _str1$[ebp] push ecx push 0 push 0 push 1 mov edx, DWORD PTR _error$[ebp] push edx push 23 ; 00000017H mov eax, DWORD PTR _node$[ebp] push eax mov ecx, DWORD PTR _pctxt$[ebp] push ecx mov edx, DWORD PTR _data$[ebp] push edx mov eax, DWORD PTR _channel$[ebp] push eax mov ecx, DWORD PTR _schannel$[ebp] push ecx call ___xmlRaiseError add esp, 76 ; 0000004cH ; 248 : XML_ERR_WARNING, NULL, 0, ; 249 : (const char *) str1, ; 250 : (const char *) str2, ; 251 : (const char *) str3, 0, 0, msg, str1, str2, str3); ; 252 : } add esp, 20 ; 00000014H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlErrValidWarning ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlErrValidNodeNr _TEXT SEGMENT _delta$1 = -20 ; size = 4 _data$ = -16 ; size = 4 _pctxt$ = -12 ; size = 4 _channel$ = -8 ; size = 4 _schannel$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _node$ = 12 ; size = 4 _error$ = 16 ; size = 4 _msg$ = 20 ; size = 4 _str1$ = 24 ; size = 4 _int2$ = 28 ; size = 4 _str3$ = 32 ; size = 4 _xmlErrValidNodeNr PROC ; COMDAT ; 188 : { push ebp mov ebp, esp sub esp, 20 ; 00000014H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 189 : xmlStructuredErrorFunc schannel = NULL; mov DWORD PTR _schannel$[ebp], 0 ; 190 : xmlGenericErrorFunc channel = NULL; mov DWORD PTR _channel$[ebp], 0 ; 191 : xmlParserCtxtPtr pctxt = NULL; mov DWORD PTR _pctxt$[ebp], 0 ; 192 : void *data = NULL; mov DWORD PTR _data$[ebp], 0 ; 193 : ; 194 : if (ctxt != NULL) { cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN2@xmlErrVali ; 195 : channel = ctxt->error; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+4] mov DWORD PTR _channel$[ebp], ecx ; 196 : data = ctxt->userData; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _data$[ebp], eax ; 197 : /* Use the special values to detect if it is part of a parsing ; 198 : context */ ; 199 : if ((ctxt->finishDtd == XML_CTXT_FINISH_DTD_0) || mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+28], -1412623820 ; abcd1234H je SHORT $LN4@xmlErrVali mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+28], -1412623819 ; abcd1235H jne SHORT $LN2@xmlErrVali $LN4@xmlErrVali: ; 200 : (ctxt->finishDtd == XML_CTXT_FINISH_DTD_1)) { ; 201 : long delta = (char *) ctxt - (char *) ctxt->userData; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _ctxt$[ebp] sub ecx, DWORD PTR [eax] mov DWORD PTR _delta$1[ebp], ecx ; 202 : if ((delta > 0) && (delta < 250)) cmp DWORD PTR _delta$1[ebp], 0 jle SHORT $LN2@xmlErrVali cmp DWORD PTR _delta$1[ebp], 250 ; 000000faH jge SHORT $LN2@xmlErrVali ; 203 : pctxt = ctxt->userData; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _pctxt$[ebp], eax $LN2@xmlErrVali: ; 204 : } ; 205 : } ; 206 : __xmlRaiseError(schannel, channel, data, pctxt, node, XML_FROM_VALID, error, mov ecx, DWORD PTR _str3$[ebp] push ecx mov edx, DWORD PTR _int2$[ebp] push edx mov eax, DWORD PTR _str1$[ebp] push eax mov ecx, DWORD PTR _msg$[ebp] push ecx push 0 mov edx, DWORD PTR _int2$[ebp] push edx push 0 mov eax, DWORD PTR _str3$[ebp] push eax mov ecx, DWORD PTR _str1$[ebp] push ecx push 0 push 0 push 2 mov edx, DWORD PTR _error$[ebp] push edx push 23 ; 00000017H mov eax, DWORD PTR _node$[ebp] push eax mov ecx, DWORD PTR _pctxt$[ebp] push ecx mov edx, DWORD PTR _data$[ebp] push edx mov eax, DWORD PTR _channel$[ebp] push eax mov ecx, DWORD PTR _schannel$[ebp] push ecx call ___xmlRaiseError add esp, 76 ; 0000004cH ; 207 : XML_ERR_ERROR, NULL, 0, ; 208 : (const char *) str1, ; 209 : (const char *) str3, ; 210 : NULL, int2, 0, msg, str1, int2, str3); ; 211 : } add esp, 20 ; 00000014H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlErrValidNodeNr ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlErrValidNode _TEXT SEGMENT _delta$1 = -20 ; size = 4 _data$ = -16 ; size = 4 _pctxt$ = -12 ; size = 4 _channel$ = -8 ; size = 4 _schannel$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _node$ = 12 ; size = 4 _error$ = 16 ; size = 4 _msg$ = 20 ; size = 4 _str1$ = 24 ; size = 4 _str2$ = 28 ; size = 4 _str3$ = 32 ; size = 4 _xmlErrValidNode PROC ; COMDAT ; 145 : { push ebp mov ebp, esp sub esp, 20 ; 00000014H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 146 : xmlStructuredErrorFunc schannel = NULL; mov DWORD PTR _schannel$[ebp], 0 ; 147 : xmlGenericErrorFunc channel = NULL; mov DWORD PTR _channel$[ebp], 0 ; 148 : xmlParserCtxtPtr pctxt = NULL; mov DWORD PTR _pctxt$[ebp], 0 ; 149 : void *data = NULL; mov DWORD PTR _data$[ebp], 0 ; 150 : ; 151 : if (ctxt != NULL) { cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN2@xmlErrVali ; 152 : channel = ctxt->error; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+4] mov DWORD PTR _channel$[ebp], ecx ; 153 : data = ctxt->userData; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _data$[ebp], eax ; 154 : /* Use the special values to detect if it is part of a parsing ; 155 : context */ ; 156 : if ((ctxt->finishDtd == XML_CTXT_FINISH_DTD_0) || mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+28], -1412623820 ; abcd1234H je SHORT $LN4@xmlErrVali mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+28], -1412623819 ; abcd1235H jne SHORT $LN2@xmlErrVali $LN4@xmlErrVali: ; 157 : (ctxt->finishDtd == XML_CTXT_FINISH_DTD_1)) { ; 158 : long delta = (char *) ctxt - (char *) ctxt->userData; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _ctxt$[ebp] sub ecx, DWORD PTR [eax] mov DWORD PTR _delta$1[ebp], ecx ; 159 : if ((delta > 0) && (delta < 250)) cmp DWORD PTR _delta$1[ebp], 0 jle SHORT $LN2@xmlErrVali cmp DWORD PTR _delta$1[ebp], 250 ; 000000faH jge SHORT $LN2@xmlErrVali ; 160 : pctxt = ctxt->userData; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _pctxt$[ebp], eax $LN2@xmlErrVali: ; 161 : } ; 162 : } ; 163 : __xmlRaiseError(schannel, channel, data, pctxt, node, XML_FROM_VALID, error, mov ecx, DWORD PTR _str3$[ebp] push ecx mov edx, DWORD PTR _str2$[ebp] push edx mov eax, DWORD PTR _str1$[ebp] push eax mov ecx, DWORD PTR _msg$[ebp] push ecx push 0 push 0 mov edx, DWORD PTR _str3$[ebp] push edx mov eax, DWORD PTR _str2$[ebp] push eax mov ecx, DWORD PTR _str1$[ebp] push ecx push 0 push 0 push 2 mov edx, DWORD PTR _error$[ebp] push edx push 23 ; 00000017H mov eax, DWORD PTR _node$[ebp] push eax mov ecx, DWORD PTR _pctxt$[ebp] push ecx mov edx, DWORD PTR _data$[ebp] push edx mov eax, DWORD PTR _channel$[ebp] push eax mov ecx, DWORD PTR _schannel$[ebp] push ecx call ___xmlRaiseError add esp, 76 ; 0000004cH ; 164 : XML_ERR_ERROR, NULL, 0, ; 165 : (const char *) str1, ; 166 : (const char *) str2, ; 167 : (const char *) str3, 0, 0, msg, str1, str2, str3); ; 168 : } add esp, 20 ; 00000014H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlErrValidNode ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlErrValid _TEXT SEGMENT _delta$1 = -16 ; size = 4 _data$ = -12 ; size = 4 _pctxt$ = -8 ; size = 4 _channel$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _error$ = 12 ; size = 4 _msg$ = 16 ; size = 4 _extra$ = 20 ; size = 4 _xmlErrValid PROC ; COMDAT ; 99 : { push ebp mov ebp, esp sub esp, 16 ; 00000010H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 100 : xmlGenericErrorFunc channel = NULL; mov DWORD PTR _channel$[ebp], 0 ; 101 : xmlParserCtxtPtr pctxt = NULL; mov DWORD PTR _pctxt$[ebp], 0 ; 102 : void *data = NULL; mov DWORD PTR _data$[ebp], 0 ; 103 : ; 104 : if (ctxt != NULL) { cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN2@xmlErrVali ; 105 : channel = ctxt->error; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+4] mov DWORD PTR _channel$[ebp], ecx ; 106 : data = ctxt->userData; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _data$[ebp], eax ; 107 : /* Use the special values to detect if it is part of a parsing ; 108 : context */ ; 109 : if ((ctxt->finishDtd == XML_CTXT_FINISH_DTD_0) || mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+28], -1412623820 ; abcd1234H je SHORT $LN4@xmlErrVali mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+28], -1412623819 ; abcd1235H jne SHORT $LN2@xmlErrVali $LN4@xmlErrVali: ; 110 : (ctxt->finishDtd == XML_CTXT_FINISH_DTD_1)) { ; 111 : long delta = (char *) ctxt - (char *) ctxt->userData; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _ctxt$[ebp] sub ecx, DWORD PTR [eax] mov DWORD PTR _delta$1[ebp], ecx ; 112 : if ((delta > 0) && (delta < 250)) cmp DWORD PTR _delta$1[ebp], 0 jle SHORT $LN2@xmlErrVali cmp DWORD PTR _delta$1[ebp], 250 ; 000000faH jge SHORT $LN2@xmlErrVali ; 113 : pctxt = ctxt->userData; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _pctxt$[ebp], eax $LN2@xmlErrVali: ; 114 : } ; 115 : } ; 116 : if (extra) cmp DWORD PTR _extra$[ebp], 0 je SHORT $LN6@xmlErrVali ; 117 : __xmlRaiseError(NULL, channel, data, mov ecx, DWORD PTR _extra$[ebp] push ecx mov edx, DWORD PTR _msg$[ebp] push edx push 0 push 0 push 0 push 0 mov eax, DWORD PTR _extra$[ebp] push eax push 0 push 0 push 2 mov ecx, DWORD PTR _error$[ebp] push ecx push 23 ; 00000017H push 0 mov edx, DWORD PTR _pctxt$[ebp] push edx mov eax, DWORD PTR _data$[ebp] push eax mov ecx, DWORD PTR _channel$[ebp] push ecx push 0 call ___xmlRaiseError add esp, 68 ; 00000044H jmp SHORT $LN1@xmlErrVali $LN6@xmlErrVali: ; 118 : pctxt, NULL, XML_FROM_VALID, error, ; 119 : XML_ERR_ERROR, NULL, 0, extra, NULL, NULL, 0, 0, ; 120 : msg, extra); ; 121 : else ; 122 : __xmlRaiseError(NULL, channel, data, mov edx, DWORD PTR _msg$[ebp] push edx push OFFSET ??_C@_02DKCKIIND@?$CFs@ push 0 push 0 push 0 push 0 push 0 push 0 push 0 push 2 mov eax, DWORD PTR _error$[ebp] push eax push 23 ; 00000017H push 0 mov ecx, DWORD PTR _pctxt$[ebp] push ecx mov edx, DWORD PTR _data$[ebp] push edx mov eax, DWORD PTR _channel$[ebp] push eax push 0 call ___xmlRaiseError add esp, 68 ; 00000044H $LN1@xmlErrVali: ; 123 : pctxt, NULL, XML_FROM_VALID, error, ; 124 : XML_ERR_ERROR, NULL, 0, NULL, NULL, NULL, 0, 0, ; 125 : "%s", msg); ; 126 : } add esp, 16 ; 00000010H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlErrValid ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlVErrMemory _TEXT SEGMENT _delta$1 = -16 ; size = 4 _data$ = -12 ; size = 4 _pctxt$ = -8 ; size = 4 _channel$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _extra$ = 12 ; size = 4 _xmlVErrMemory PROC ; COMDAT ; 59 : { push ebp mov ebp, esp sub esp, 16 ; 00000010H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 60 : xmlGenericErrorFunc channel = NULL; mov DWORD PTR _channel$[ebp], 0 ; 61 : xmlParserCtxtPtr pctxt = NULL; mov DWORD PTR _pctxt$[ebp], 0 ; 62 : void *data = NULL; mov DWORD PTR _data$[ebp], 0 ; 63 : ; 64 : if (ctxt != NULL) { cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN2@xmlVErrMem ; 65 : channel = ctxt->error; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+4] mov DWORD PTR _channel$[ebp], ecx ; 66 : data = ctxt->userData; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _data$[ebp], eax ; 67 : /* Use the special values to detect if it is part of a parsing ; 68 : context */ ; 69 : if ((ctxt->finishDtd == XML_CTXT_FINISH_DTD_0) || mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+28], -1412623820 ; abcd1234H je SHORT $LN4@xmlVErrMem mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+28], -1412623819 ; abcd1235H jne SHORT $LN2@xmlVErrMem $LN4@xmlVErrMem: ; 70 : (ctxt->finishDtd == XML_CTXT_FINISH_DTD_1)) { ; 71 : long delta = (char *) ctxt - (char *) ctxt->userData; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _ctxt$[ebp] sub ecx, DWORD PTR [eax] mov DWORD PTR _delta$1[ebp], ecx ; 72 : if ((delta > 0) && (delta < 250)) cmp DWORD PTR _delta$1[ebp], 0 jle SHORT $LN2@xmlVErrMem cmp DWORD PTR _delta$1[ebp], 250 ; 000000faH jge SHORT $LN2@xmlVErrMem ; 73 : pctxt = ctxt->userData; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _pctxt$[ebp], eax $LN2@xmlVErrMem: ; 74 : } ; 75 : } ; 76 : if (extra) cmp DWORD PTR _extra$[ebp], 0 je SHORT $LN6@xmlVErrMem ; 77 : __xmlRaiseError(NULL, channel, data, mov ecx, DWORD PTR _extra$[ebp] push ecx push OFFSET ??_C@_0BP@DJFHNAOK@Memory?5allocation?5failed?5?3?5?$CFs?6@ push 0 push 0 push 0 push 0 mov edx, DWORD PTR _extra$[ebp] push edx push 0 push 0 push 3 push 2 push 23 ; 00000017H push 0 mov eax, DWORD PTR _pctxt$[ebp] push eax mov ecx, DWORD PTR _data$[ebp] push ecx mov edx, DWORD PTR _channel$[ebp] push edx push 0 call ___xmlRaiseError add esp, 68 ; 00000044H jmp SHORT $LN1@xmlVErrMem $LN6@xmlVErrMem: ; 78 : pctxt, NULL, XML_FROM_VALID, XML_ERR_NO_MEMORY, ; 79 : XML_ERR_FATAL, NULL, 0, extra, NULL, NULL, 0, 0, ; 80 : "Memory allocation failed : %s\n", extra); ; 81 : else ; 82 : __xmlRaiseError(NULL, channel, data, push OFFSET ??_C@_0BK@GDFDKGPJ@Memory?5allocation?5failed?6@ push 0 push 0 push 0 push 0 push 0 push 0 push 0 push 3 push 2 push 23 ; 00000017H push 0 mov eax, DWORD PTR _pctxt$[ebp] push eax mov ecx, DWORD PTR _data$[ebp] push ecx mov edx, DWORD PTR _channel$[ebp] push edx push 0 call ___xmlRaiseError add esp, 64 ; 00000040H $LN1@xmlVErrMem: ; 83 : pctxt, NULL, XML_FROM_VALID, XML_ERR_NO_MEMORY, ; 84 : XML_ERR_FATAL, NULL, 0, NULL, NULL, NULL, 0, 0, ; 85 : "Memory allocation failed\n"); ; 86 : } add esp, 16 ; 00000010H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlVErrMemory ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateAttributeValueInternal _TEXT SEGMENT tv64 = -4 ; size = 4 _doc$ = 8 ; size = 4 _type$ = 12 ; size = 4 _value$ = 16 ; size = 4 _xmlValidateAttributeValueInternal PROC ; COMDAT ; 3790 : const xmlChar *value) { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3791 : switch (type) { mov eax, DWORD PTR _type$[ebp] mov DWORD PTR tv64[ebp], eax mov ecx, DWORD PTR tv64[ebp] sub ecx, 2 mov DWORD PTR tv64[ebp], ecx cmp DWORD PTR tv64[ebp], 8 ja SHORT $LN2@xmlValidat mov edx, DWORD PTR tv64[ebp] jmp DWORD PTR $LN10@xmlValidat[edx*4] $LN4@xmlValidat: ; 3792 : case XML_ATTRIBUTE_ENTITIES: ; 3793 : case XML_ATTRIBUTE_IDREFS: ; 3794 : return(xmlValidateNamesValueInternal(doc, value)); mov eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] push ecx call _xmlValidateNamesValueInternal add esp, 8 jmp SHORT $LN1@xmlValidat $LN5@xmlValidat: ; 3795 : case XML_ATTRIBUTE_ENTITY: ; 3796 : case XML_ATTRIBUTE_IDREF: ; 3797 : case XML_ATTRIBUTE_ID: ; 3798 : case XML_ATTRIBUTE_NOTATION: ; 3799 : return(xmlValidateNameValueInternal(doc, value)); mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _doc$[ebp] push eax call _xmlValidateNameValueInternal add esp, 8 jmp SHORT $LN1@xmlValidat $LN6@xmlValidat: ; 3800 : case XML_ATTRIBUTE_NMTOKENS: ; 3801 : case XML_ATTRIBUTE_ENUMERATION: ; 3802 : return(xmlValidateNmtokensValueInternal(doc, value)); mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] push edx call _xmlValidateNmtokensValueInternal add esp, 8 jmp SHORT $LN1@xmlValidat $LN7@xmlValidat: ; 3803 : case XML_ATTRIBUTE_NMTOKEN: ; 3804 : return(xmlValidateNmtokenValueInternal(doc, value)); mov eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] push ecx call _xmlValidateNmtokenValueInternal add esp, 8 jmp SHORT $LN1@xmlValidat $LN2@xmlValidat: ; 3805 : case XML_ATTRIBUTE_CDATA: ; 3806 : break; ; 3807 : } ; 3808 : return(1); mov eax, 1 $LN1@xmlValidat: ; 3809 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 1 $LN10@xmlValidat: DD $LN5@xmlValidat DD $LN5@xmlValidat DD $LN4@xmlValidat DD $LN5@xmlValidat DD $LN4@xmlValidat DD $LN7@xmlValidat DD $LN6@xmlValidat DD $LN6@xmlValidat DD $LN5@xmlValidat _xmlValidateAttributeValueInternal ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlGetDtdElementDesc2 _TEXT SEGMENT _dict$1 = -28 ; size = 4 _prefix$ = -20 ; size = 4 _uqname$ = -12 ; size = 4 _cur$ = -8 ; size = 4 _table$ = -4 ; size = 4 _dtd$ = 8 ; size = 4 _name$ = 12 ; size = 4 _create$ = 16 ; size = 4 _xmlGetDtdElementDesc2 PROC ; COMDAT ; 3206 : xmlGetDtdElementDesc2(xmlDtdPtr dtd, const xmlChar *name, int create) { push ebp mov ebp, esp sub esp, 28 ; 0000001cH push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-28], eax mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3207 : xmlElementTablePtr table; ; 3208 : xmlElementPtr cur; ; 3209 : xmlChar *uqname = NULL, *prefix = NULL; mov DWORD PTR _uqname$[ebp], 0 mov DWORD PTR _prefix$[ebp], 0 ; 3210 : ; 3211 : if (dtd == NULL) return(NULL); cmp DWORD PTR _dtd$[ebp], 0 jne SHORT $LN2@xmlGetDtdE xor eax, eax jmp $LN1@xmlGetDtdE $LN2@xmlGetDtdE: ; 3212 : if (dtd->elements == NULL) { mov eax, DWORD PTR _dtd$[ebp] cmp DWORD PTR [eax+40], 0 jne SHORT $LN3@xmlGetDtdE ; 3213 : xmlDictPtr dict = NULL; mov DWORD PTR _dict$1[ebp], 0 ; 3214 : ; 3215 : if (dtd->doc != NULL) mov ecx, DWORD PTR _dtd$[ebp] cmp DWORD PTR [ecx+32], 0 je SHORT $LN4@xmlGetDtdE ; 3216 : dict = dtd->doc->dict; mov edx, DWORD PTR _dtd$[ebp] mov eax, DWORD PTR [edx+32] mov ecx, DWORD PTR [eax+80] mov DWORD PTR _dict$1[ebp], ecx $LN4@xmlGetDtdE: ; 3217 : ; 3218 : if (!create) cmp DWORD PTR _create$[ebp], 0 jne SHORT $LN5@xmlGetDtdE ; 3219 : return(NULL); xor eax, eax jmp $LN1@xmlGetDtdE $LN5@xmlGetDtdE: ; 3220 : /* ; 3221 : * Create the Element table if needed. ; 3222 : */ ; 3223 : table = (xmlElementTablePtr) dtd->elements; mov edx, DWORD PTR _dtd$[ebp] mov eax, DWORD PTR [edx+40] mov DWORD PTR _table$[ebp], eax ; 3224 : if (table == NULL) { cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN6@xmlGetDtdE ; 3225 : table = xmlHashCreateDict(0, dict); mov ecx, DWORD PTR _dict$1[ebp] push ecx push 0 call _xmlHashCreateDict add esp, 8 mov DWORD PTR _table$[ebp], eax ; 3226 : dtd->elements = (void *) table; mov edx, DWORD PTR _dtd$[ebp] mov eax, DWORD PTR _table$[ebp] mov DWORD PTR [edx+40], eax $LN6@xmlGetDtdE: ; 3227 : } ; 3228 : if (table == NULL) { cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN3@xmlGetDtdE ; 3229 : xmlVErrMemory(NULL, "element table allocation failed"); push OFFSET ??_C@_0CA@OJAJCLMD@element?5table?5allocation?5failed@ push 0 call _xmlVErrMemory add esp, 8 ; 3230 : return(NULL); xor eax, eax jmp $LN1@xmlGetDtdE $LN3@xmlGetDtdE: ; 3231 : } ; 3232 : } ; 3233 : table = (xmlElementTablePtr) dtd->elements; mov ecx, DWORD PTR _dtd$[ebp] mov edx, DWORD PTR [ecx+40] mov DWORD PTR _table$[ebp], edx ; 3234 : ; 3235 : uqname = xmlSplitQName2(name, &prefix); lea eax, DWORD PTR _prefix$[ebp] push eax mov ecx, DWORD PTR _name$[ebp] push ecx call _xmlSplitQName2 add esp, 8 mov DWORD PTR _uqname$[ebp], eax ; 3236 : if (uqname != NULL) cmp DWORD PTR _uqname$[ebp], 0 je SHORT $LN8@xmlGetDtdE ; 3237 : name = uqname; mov edx, DWORD PTR _uqname$[ebp] mov DWORD PTR _name$[ebp], edx $LN8@xmlGetDtdE: ; 3238 : cur = xmlHashLookup2(table, name, prefix); mov eax, DWORD PTR _prefix$[ebp] push eax mov ecx, DWORD PTR _name$[ebp] push ecx mov edx, DWORD PTR _table$[ebp] push edx call _xmlHashLookup2 add esp, 12 ; 0000000cH mov DWORD PTR _cur$[ebp], eax ; 3239 : if ((cur == NULL) && (create)) { cmp DWORD PTR _cur$[ebp], 0 jne $LN9@xmlGetDtdE cmp DWORD PTR _create$[ebp], 0 je $LN9@xmlGetDtdE ; 3240 : cur = (xmlElementPtr) xmlMalloc(sizeof(xmlElement)); mov esi, esp push 56 ; 00000038H call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _cur$[ebp], eax ; 3241 : if (cur == NULL) { cmp DWORD PTR _cur$[ebp], 0 jne SHORT $LN10@xmlGetDtdE ; 3242 : xmlVErrMemory(NULL, "malloc failed"); push OFFSET ??_C@_0O@IMHFIAOC@malloc?5failed@ push 0 call _xmlVErrMemory add esp, 8 ; 3243 : return(NULL); xor eax, eax jmp $LN1@xmlGetDtdE $LN10@xmlGetDtdE: ; 3244 : } ; 3245 : memset(cur, 0, sizeof(xmlElement)); push 56 ; 00000038H push 0 mov eax, DWORD PTR _cur$[ebp] push eax call _memset add esp, 12 ; 0000000cH ; 3246 : cur->type = XML_ELEMENT_DECL; mov ecx, DWORD PTR _cur$[ebp] mov DWORD PTR [ecx+4], 15 ; 0000000fH ; 3247 : ; 3248 : /* ; 3249 : * fill the structure. ; 3250 : */ ; 3251 : cur->name = xmlStrdup(name); mov edx, DWORD PTR _name$[ebp] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _cur$[ebp] mov DWORD PTR [ecx+8], eax ; 3252 : cur->prefix = xmlStrdup(prefix); mov edx, DWORD PTR _prefix$[ebp] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _cur$[ebp] mov DWORD PTR [ecx+48], eax ; 3253 : cur->etype = XML_ELEMENT_TYPE_UNDEFINED; mov edx, DWORD PTR _cur$[ebp] mov DWORD PTR [edx+36], 0 ; 3254 : ; 3255 : xmlHashAddEntry2(table, name, prefix, cur); mov eax, DWORD PTR _cur$[ebp] push eax mov ecx, DWORD PTR _prefix$[ebp] push ecx mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashAddEntry2 add esp, 16 ; 00000010H $LN9@xmlGetDtdE: ; 3256 : } ; 3257 : if (prefix != NULL) xmlFree(prefix); cmp DWORD PTR _prefix$[ebp], 0 je SHORT $LN11@xmlGetDtdE mov esi, esp mov ecx, DWORD PTR _prefix$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN11@xmlGetDtdE: ; 3258 : if (uqname != NULL) xmlFree(uqname); cmp DWORD PTR _uqname$[ebp], 0 je SHORT $LN12@xmlGetDtdE mov esi, esp mov edx, DWORD PTR _uqname$[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN12@xmlGetDtdE: ; 3259 : return(cur); mov eax, DWORD PTR _cur$[ebp] $LN1@xmlGetDtdE: ; 3260 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN16@xmlGetDtdE call @_RTC_CheckStackVars@8 pop eax pop edx pop esi add esp, 28 ; 0000001cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 2 $LN16@xmlGetDtdE: DD 1 DD $LN15@xmlGetDtdE $LN15@xmlGetDtdE: DD -20 ; ffffffecH DD 4 DD $LN14@xmlGetDtdE $LN14@xmlGetDtdE: DB 112 ; 00000070H DB 114 ; 00000072H DB 101 ; 00000065H DB 102 ; 00000066H DB 105 ; 00000069H DB 120 ; 00000078H DB 0 _xmlGetDtdElementDesc2 ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidatePopElement _TEXT SEGMENT _elemDecl$1 = -12 ; size = 4 _state$2 = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _elem$ = 16 ; size = 4 _qname$ = 20 ; size = 4 _xmlValidatePopElement PROC ; COMDAT ; 5922 : const xmlChar *qname ATTRIBUTE_UNUSED) { push ebp mov ebp, esp sub esp, 12 ; 0000000cH mov DWORD PTR [ebp-12], -858993460 ; ccccccccH mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 5923 : int ret = 1; mov DWORD PTR _ret$[ebp], 1 ; 5924 : ; 5925 : if (ctxt == NULL) cmp DWORD PTR _ctxt$[ebp], 0 jne SHORT $LN2@xmlValidat ; 5926 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN2@xmlValidat: ; 5927 : /* printf("PopElem %s\n", qname); */ ; 5928 : if ((ctxt->vstateNr > 0) && (ctxt->vstate != NULL)) { mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+44], 0 jle $LN3@xmlValidat mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+40], 0 je $LN3@xmlValidat ; 5929 : xmlValidStatePtr state = ctxt->vstate; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+40] mov DWORD PTR _state$2[ebp], eax ; 5930 : xmlElementPtr elemDecl; ; 5931 : ; 5932 : /* ; 5933 : * Check the new element against the content model of the new elem. ; 5934 : */ ; 5935 : if (state->elemDecl != NULL) { mov ecx, DWORD PTR _state$2[ebp] cmp DWORD PTR [ecx], 0 je SHORT $LN4@xmlValidat ; 5936 : elemDecl = state->elemDecl; mov edx, DWORD PTR _state$2[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _elemDecl$1[ebp], eax ; 5937 : ; 5938 : if (elemDecl->etype == XML_ELEMENT_TYPE_ELEMENT) { mov ecx, DWORD PTR _elemDecl$1[ebp] cmp DWORD PTR [ecx+36], 4 jne SHORT $LN4@xmlValidat ; 5939 : if (state->exec != NULL) { mov edx, DWORD PTR _state$2[ebp] cmp DWORD PTR [edx+8], 0 je SHORT $LN4@xmlValidat ; 5940 : ret = xmlRegExecPushString(state->exec, NULL, NULL); push 0 push 0 mov eax, DWORD PTR _state$2[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlRegExecPushString add esp, 12 ; 0000000cH mov DWORD PTR _ret$[ebp], eax ; 5941 : if (ret == 0) { cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN7@xmlValidat ; 5942 : xmlErrValidNode(ctxt, state->node, push 0 push 0 mov edx, DWORD PTR _state$2[ebp] mov eax, DWORD PTR [edx+4] mov ecx, DWORD PTR [eax+8] push ecx push OFFSET ??_C@_0EC@JDBIOCJK@Element?5?$CFs?5content?5does?5not?5fol@ push 504 ; 000001f8H mov edx, DWORD PTR _state$2[ebp] mov eax, DWORD PTR [edx+4] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 5943 : XML_DTD_CONTENT_MODEL, ; 5944 : "Element %s content does not follow the DTD, Expecting more child\n", ; 5945 : state->node->name, NULL,NULL); ; 5946 : } else { jmp SHORT $LN4@xmlValidat $LN7@xmlValidat: ; 5947 : /* ; 5948 : * previous validation errors should not generate ; 5949 : * a new one here ; 5950 : */ ; 5951 : ret = 1; mov DWORD PTR _ret$[ebp], 1 $LN4@xmlValidat: ; 5952 : } ; 5953 : } ; 5954 : } ; 5955 : } ; 5956 : vstateVPop(ctxt); mov edx, DWORD PTR _ctxt$[ebp] push edx call _vstateVPop add esp, 4 $LN3@xmlValidat: ; 5957 : } ; 5958 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlValidat: ; 5959 : } add esp, 12 ; 0000000cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlValidatePopElement ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidatePushCData _TEXT SEGMENT tv75 = -20 ; size = 4 _i$1 = -16 ; size = 4 _elemDecl$2 = -12 ; size = 4 _state$3 = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _data$ = 12 ; size = 4 _len$ = 16 ; size = 4 _xmlValidatePushCData PROC ; COMDAT ; 5846 : xmlValidatePushCData(xmlValidCtxtPtr ctxt, const xmlChar *data, int len) { push ebp mov ebp, esp sub esp, 20 ; 00000014H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 5847 : int ret = 1; mov DWORD PTR _ret$[ebp], 1 ; 5848 : ; 5849 : /* printf("CDATA %s %d\n", data, len); */ ; 5850 : if (ctxt == NULL) cmp DWORD PTR _ctxt$[ebp], 0 jne SHORT $LN7@xmlValidat ; 5851 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN7@xmlValidat: ; 5852 : if (len <= 0) cmp DWORD PTR _len$[ebp], 0 jg SHORT $LN8@xmlValidat ; 5853 : return(ret); mov eax, DWORD PTR _ret$[ebp] jmp $LN1@xmlValidat $LN8@xmlValidat: ; 5854 : if ((ctxt->vstateNr > 0) && (ctxt->vstate != NULL)) { mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+44], 0 jle $done$20 mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+40], 0 je $done$20 ; 5855 : xmlValidStatePtr state = ctxt->vstate; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+40] mov DWORD PTR _state$3[ebp], eax ; 5856 : xmlElementPtr elemDecl; ; 5857 : ; 5858 : /* ; 5859 : * Check the new element against the content model of the new elem. ; 5860 : */ ; 5861 : if (state->elemDecl != NULL) { mov ecx, DWORD PTR _state$3[ebp] cmp DWORD PTR [ecx], 0 je $done$20 ; 5862 : elemDecl = state->elemDecl; mov edx, DWORD PTR _state$3[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _elemDecl$2[ebp], eax ; 5863 : ; 5864 : switch(elemDecl->etype) { mov ecx, DWORD PTR _elemDecl$2[ebp] mov edx, DWORD PTR [ecx+36] mov DWORD PTR tv75[ebp], edx cmp DWORD PTR tv75[ebp], 0 je SHORT $LN11@xmlValidat cmp DWORD PTR tv75[ebp], 1 je SHORT $LN12@xmlValidat cmp DWORD PTR tv75[ebp], 4 je SHORT $LN15@xmlValidat jmp $done$20 $LN11@xmlValidat: ; 5865 : case XML_ELEMENT_TYPE_UNDEFINED: ; 5866 : ret = 0; mov DWORD PTR _ret$[ebp], 0 ; 5867 : break; jmp $done$20 $LN12@xmlValidat: ; 5868 : case XML_ELEMENT_TYPE_EMPTY: ; 5869 : xmlErrValidNode(ctxt, state->node, push 0 push 0 mov eax, DWORD PTR _state$3[ebp] mov ecx, DWORD PTR [eax+4] mov edx, DWORD PTR [ecx+8] push edx push OFFSET ??_C@_0DE@KLKCMFPH@Element?5?$CFs?5was?5declared?5EMPTY?5t@ push 528 ; 00000210H mov eax, DWORD PTR _state$3[ebp] mov ecx, DWORD PTR [eax+4] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 5870 : XML_DTD_NOT_EMPTY, ; 5871 : "Element %s was declared EMPTY this one has content\n", ; 5872 : state->node->name, NULL, NULL); ; 5873 : ret = 0; mov DWORD PTR _ret$[ebp], 0 ; 5874 : break; jmp $done$20 ; 5875 : case XML_ELEMENT_TYPE_ANY: ; 5876 : break; jmp $done$20 ; 5877 : case XML_ELEMENT_TYPE_MIXED: ; 5878 : break; jmp $done$20 $LN15@xmlValidat: ; 5879 : case XML_ELEMENT_TYPE_ELEMENT: ; 5880 : if (len > 0) { cmp DWORD PTR _len$[ebp], 0 jle $done$20 ; 5881 : int i; ; 5882 : ; 5883 : for (i = 0;i < len;i++) { mov DWORD PTR _i$1[ebp], 0 jmp SHORT $LN6@xmlValidat $LN4@xmlValidat: mov eax, DWORD PTR _i$1[ebp] add eax, 1 mov DWORD PTR _i$1[ebp], eax $LN6@xmlValidat: mov ecx, DWORD PTR _i$1[ebp] cmp ecx, DWORD PTR _len$[ebp] jge SHORT $done$20 ; 5884 : if (!IS_BLANK_CH(data[i])) { mov edx, DWORD PTR _data$[ebp] add edx, DWORD PTR _i$1[ebp] movzx eax, BYTE PTR [edx] cmp eax, 32 ; 00000020H je SHORT $LN17@xmlValidat mov ecx, DWORD PTR _data$[ebp] add ecx, DWORD PTR _i$1[ebp] movzx edx, BYTE PTR [ecx] cmp edx, 9 jl SHORT $LN18@xmlValidat mov eax, DWORD PTR _data$[ebp] add eax, DWORD PTR _i$1[ebp] movzx ecx, BYTE PTR [eax] cmp ecx, 10 ; 0000000aH jle SHORT $LN17@xmlValidat $LN18@xmlValidat: mov edx, DWORD PTR _data$[ebp] add edx, DWORD PTR _i$1[ebp] movzx eax, BYTE PTR [edx] cmp eax, 13 ; 0000000dH je SHORT $LN17@xmlValidat ; 5885 : xmlErrValidNode(ctxt, state->node, push 0 push 0 mov ecx, DWORD PTR _state$3[ebp] mov edx, DWORD PTR [ecx+4] mov eax, DWORD PTR [edx+8] push eax push OFFSET ??_C@_0DO@HNMIGKJO@Element?5?$CFs?5content?5does?5not?5fol@ push 504 ; 000001f8H mov ecx, DWORD PTR _state$3[ebp] mov edx, DWORD PTR [ecx+4] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH ; 5886 : XML_DTD_CONTENT_MODEL, ; 5887 : "Element %s content does not follow the DTD, Text not allowed\n", ; 5888 : state->node->name, NULL, NULL); ; 5889 : ret = 0; mov DWORD PTR _ret$[ebp], 0 ; 5890 : goto done; jmp SHORT $done$20 $LN17@xmlValidat: ; 5891 : } ; 5892 : } jmp SHORT $LN4@xmlValidat $done$20: ; 5893 : /* ; 5894 : * TODO: ; 5895 : * VC: Standalone Document Declaration ; 5896 : * element types with element content, if white space ; 5897 : * occurs directly within any instance of those types. ; 5898 : */ ; 5899 : } ; 5900 : break; ; 5901 : } ; 5902 : } ; 5903 : } ; 5904 : done: ; 5905 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlValidat: ; 5906 : } add esp, 20 ; 00000014H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlValidatePushCData ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidatePushElement _TEXT SEGMENT tv74 = -32 ; size = 4 _elemDecl$1 = -28 ; size = 4 _state$2 = -24 ; size = 4 _extsubset$ = -16 ; size = 4 _eDecl$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _elem$ = 16 ; size = 4 _qname$ = 20 ; size = 4 _xmlValidatePushElement PROC ; COMDAT ; 5754 : xmlNodePtr elem, const xmlChar *qname) { push ebp mov ebp, esp sub esp, 32 ; 00000020H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-32], eax mov DWORD PTR [ebp-28], eax mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 5755 : int ret = 1; mov DWORD PTR _ret$[ebp], 1 ; 5756 : xmlElementPtr eDecl; ; 5757 : int extsubset = 0; mov DWORD PTR _extsubset$[ebp], 0 ; 5758 : ; 5759 : if (ctxt == NULL) cmp DWORD PTR _ctxt$[ebp], 0 jne SHORT $LN4@xmlValidat ; 5760 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN4@xmlValidat: ; 5761 : /* printf("PushElem %s\n", qname); */ ; 5762 : if ((ctxt->vstateNr > 0) && (ctxt->vstate != NULL)) { mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+44], 0 jle $LN5@xmlValidat mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+40], 0 je $LN5@xmlValidat ; 5763 : xmlValidStatePtr state = ctxt->vstate; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+40] mov DWORD PTR _state$2[ebp], eax ; 5764 : xmlElementPtr elemDecl; ; 5765 : ; 5766 : /* ; 5767 : * Check the new element against the content model of the new elem. ; 5768 : */ ; 5769 : if (state->elemDecl != NULL) { mov ecx, DWORD PTR _state$2[ebp] cmp DWORD PTR [ecx], 0 je $LN5@xmlValidat ; 5770 : elemDecl = state->elemDecl; mov edx, DWORD PTR _state$2[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _elemDecl$1[ebp], eax ; 5771 : ; 5772 : switch(elemDecl->etype) { mov ecx, DWORD PTR _elemDecl$1[ebp] mov edx, DWORD PTR [ecx+36] mov DWORD PTR tv74[ebp], edx cmp DWORD PTR tv74[ebp], 4 ja $LN5@xmlValidat mov eax, DWORD PTR tv74[ebp] jmp DWORD PTR $LN22@xmlValidat[eax*4] $LN7@xmlValidat: ; 5773 : case XML_ELEMENT_TYPE_UNDEFINED: ; 5774 : ret = 0; mov DWORD PTR _ret$[ebp], 0 ; 5775 : break; jmp $LN5@xmlValidat $LN8@xmlValidat: ; 5776 : case XML_ELEMENT_TYPE_EMPTY: ; 5777 : xmlErrValidNode(ctxt, state->node, push 0 push 0 mov ecx, DWORD PTR _state$2[ebp] mov edx, DWORD PTR [ecx+4] mov eax, DWORD PTR [edx+8] push eax push OFFSET ??_C@_0DE@KLKCMFPH@Element?5?$CFs?5was?5declared?5EMPTY?5t@ push 528 ; 00000210H mov ecx, DWORD PTR _state$2[ebp] mov edx, DWORD PTR [ecx+4] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH ; 5778 : XML_DTD_NOT_EMPTY, ; 5779 : "Element %s was declared EMPTY this one has content\n", ; 5780 : state->node->name, NULL, NULL); ; 5781 : ret = 0; mov DWORD PTR _ret$[ebp], 0 ; 5782 : break; jmp $LN5@xmlValidat ; 5783 : case XML_ELEMENT_TYPE_ANY: ; 5784 : /* I don't think anything is required then */ ; 5785 : break; jmp $LN5@xmlValidat $LN10@xmlValidat: ; 5786 : case XML_ELEMENT_TYPE_MIXED: ; 5787 : /* simple case of declared as #PCDATA */ ; 5788 : if ((elemDecl->content != NULL) && mov ecx, DWORD PTR _elemDecl$1[ebp] cmp DWORD PTR [ecx+40], 0 je SHORT $LN11@xmlValidat mov edx, DWORD PTR _elemDecl$1[ebp] mov eax, DWORD PTR [edx+40] cmp DWORD PTR [eax], 1 jne SHORT $LN11@xmlValidat ; 5789 : (elemDecl->content->type == ; 5790 : XML_ELEMENT_CONTENT_PCDATA)) { ; 5791 : xmlErrValidNode(ctxt, state->node, push 0 push 0 mov ecx, DWORD PTR _state$2[ebp] mov edx, DWORD PTR [ecx+4] mov eax, DWORD PTR [edx+8] push eax push OFFSET ??_C@_0DN@CFJCCMLK@Element?5?$CFs?5was?5declared?5?$CDPCDATA@ push 529 ; 00000211H mov ecx, DWORD PTR _state$2[ebp] mov edx, DWORD PTR [ecx+4] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH ; 5792 : XML_DTD_NOT_PCDATA, ; 5793 : "Element %s was declared #PCDATA but contains non text nodes\n", ; 5794 : state->node->name, NULL, NULL); ; 5795 : ret = 0; mov DWORD PTR _ret$[ebp], 0 ; 5796 : } else { jmp SHORT $LN12@xmlValidat $LN11@xmlValidat: ; 5797 : ret = xmlValidateCheckMixed(ctxt, elemDecl->content, mov ecx, DWORD PTR _qname$[ebp] push ecx mov edx, DWORD PTR _elemDecl$1[ebp] mov eax, DWORD PTR [edx+40] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlValidateCheckMixed add esp, 12 ; 0000000cH mov DWORD PTR _ret$[ebp], eax ; 5798 : qname); ; 5799 : if (ret != 1) { cmp DWORD PTR _ret$[ebp], 1 je SHORT $LN12@xmlValidat ; 5800 : xmlErrValidNode(ctxt, state->node, push 0 mov edx, DWORD PTR _state$2[ebp] mov eax, DWORD PTR [edx+4] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _qname$[ebp] push edx push OFFSET ??_C@_0DM@IPIENEI@Element?5?$CFs?5is?5not?5declared?5in?5?$CF@ push 515 ; 00000203H mov eax, DWORD PTR _state$2[ebp] mov ecx, DWORD PTR [eax+4] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH $LN12@xmlValidat: ; 5801 : XML_DTD_INVALID_CHILD, ; 5802 : "Element %s is not declared in %s list of possible children\n", ; 5803 : qname, state->node->name, NULL); ; 5804 : } ; 5805 : } ; 5806 : break; jmp SHORT $LN5@xmlValidat $LN14@xmlValidat: ; 5807 : case XML_ELEMENT_TYPE_ELEMENT: ; 5808 : /* ; 5809 : * TODO: ; 5810 : * VC: Standalone Document Declaration ; 5811 : * - element types with element content, if white space ; 5812 : * occurs directly within any instance of those types. ; 5813 : */ ; 5814 : if (state->exec != NULL) { mov eax, DWORD PTR _state$2[ebp] cmp DWORD PTR [eax+8], 0 je SHORT $LN5@xmlValidat ; 5815 : ret = xmlRegExecPushString(state->exec, qname, NULL); push 0 mov ecx, DWORD PTR _qname$[ebp] push ecx mov edx, DWORD PTR _state$2[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlRegExecPushString add esp, 12 ; 0000000cH mov DWORD PTR _ret$[ebp], eax ; 5816 : if (ret < 0) { cmp DWORD PTR _ret$[ebp], 0 jge SHORT $LN16@xmlValidat ; 5817 : xmlErrValidNode(ctxt, state->node, push 0 mov ecx, DWORD PTR _qname$[ebp] push ecx mov edx, DWORD PTR _state$2[ebp] mov eax, DWORD PTR [edx+4] mov ecx, DWORD PTR [eax+8] push ecx push OFFSET ??_C@_0DK@BGIDCAIC@Element?5?$CFs?5content?5does?5not?5fol@ push 504 ; 000001f8H mov edx, DWORD PTR _state$2[ebp] mov eax, DWORD PTR [edx+4] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 5818 : XML_DTD_CONTENT_MODEL, ; 5819 : "Element %s content does not follow the DTD, Misplaced %s\n", ; 5820 : state->node->name, qname, NULL); ; 5821 : ret = 0; mov DWORD PTR _ret$[ebp], 0 ; 5822 : } else { jmp SHORT $LN5@xmlValidat $LN16@xmlValidat: ; 5823 : ret = 1; mov DWORD PTR _ret$[ebp], 1 $LN5@xmlValidat: ; 5824 : } ; 5825 : } ; 5826 : break; ; 5827 : } ; 5828 : } ; 5829 : } ; 5830 : eDecl = xmlValidGetElemDecl(ctxt, doc, elem, &extsubset); lea edx, DWORD PTR _extsubset$[ebp] push edx mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlValidGetElemDecl add esp, 16 ; 00000010H mov DWORD PTR _eDecl$[ebp], eax ; 5831 : vstateVPush(ctxt, eDecl, elem); mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _eDecl$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _vstateVPush add esp, 12 ; 0000000cH ; 5832 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlValidat: ; 5833 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN21@xmlValidat call @_RTC_CheckStackVars@8 pop eax pop edx add esp, 32 ; 00000020H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 $LN21@xmlValidat: DD 1 DD $LN20@xmlValidat $LN20@xmlValidat: DD -16 ; fffffff0H DD 4 DD $LN19@xmlValidat $LN19@xmlValidat: DB 101 ; 00000065H DB 120 ; 00000078H DB 116 ; 00000074H DB 115 ; 00000073H DB 117 ; 00000075H DB 98 ; 00000062H DB 115 ; 00000073H DB 101 ; 00000065H DB 116 ; 00000074H DB 0 npad 2 $LN22@xmlValidat: DD $LN7@xmlValidat DD $LN8@xmlValidat DD $LN5@xmlValidat DD $LN10@xmlValidat DD $LN14@xmlValidat _xmlValidatePushElement ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidBuildContentModel _TEXT SEGMENT _expr$1 = -5004 ; size = 5000 _ctxt$ = 8 ; size = 4 _elem$ = 12 ; size = 4 _xmlValidBuildContentModel PROC ; COMDAT ; 813 : xmlValidBuildContentModel(xmlValidCtxtPtr ctxt, xmlElementPtr elem) { push ebp mov ebp, esp mov eax, 5008 ; 00001390H call __chkstk push edi lea edi, DWORD PTR [ebp-5008] mov ecx, 1252 ; 000004e4H mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 814 : ; 815 : if ((ctxt == NULL) || (elem == NULL)) cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN3@xmlValidBu cmp DWORD PTR _elem$[ebp], 0 jne SHORT $LN2@xmlValidBu $LN3@xmlValidBu: ; 816 : return(0); xor eax, eax jmp $LN1@xmlValidBu $LN2@xmlValidBu: ; 817 : if (elem->type != XML_ELEMENT_DECL) mov eax, DWORD PTR _elem$[ebp] cmp DWORD PTR [eax+4], 15 ; 0000000fH je SHORT $LN4@xmlValidBu ; 818 : return(0); xor eax, eax jmp $LN1@xmlValidBu $LN4@xmlValidBu: ; 819 : if (elem->etype != XML_ELEMENT_TYPE_ELEMENT) mov ecx, DWORD PTR _elem$[ebp] cmp DWORD PTR [ecx+36], 4 je SHORT $LN5@xmlValidBu ; 820 : return(1); mov eax, 1 jmp $LN1@xmlValidBu $LN5@xmlValidBu: ; 821 : /* TODO: should we rebuild in this case ? */ ; 822 : if (elem->contModel != NULL) { mov edx, DWORD PTR _elem$[ebp] cmp DWORD PTR [edx+52], 0 je SHORT $LN6@xmlValidBu ; 823 : if (!xmlRegexpIsDeterminist(elem->contModel)) { mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+52] push ecx call _xmlRegexpIsDeterminist add esp, 4 test eax, eax jne SHORT $LN7@xmlValidBu ; 824 : ctxt->valid = 0; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+36], 0 ; 825 : return(0); xor eax, eax jmp $LN1@xmlValidBu $LN7@xmlValidBu: ; 826 : } ; 827 : return(1); mov eax, 1 jmp $LN1@xmlValidBu $LN6@xmlValidBu: ; 828 : } ; 829 : ; 830 : ctxt->am = xmlNewAutomata(); call _xmlNewAutomata mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+56], eax ; 831 : if (ctxt->am == NULL) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+56], 0 jne SHORT $LN8@xmlValidBu ; 832 : xmlErrValidNode(ctxt, (xmlNodePtr) elem, push 0 push 0 mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx push OFFSET ??_C@_0CH@LILACHHH@Cannot?5create?5automata?5for?5elem@ push 1 mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH ; 833 : XML_ERR_INTERNAL_ERROR, ; 834 : "Cannot create automata for element %s\n", ; 835 : elem->name, NULL, NULL); ; 836 : return(0); xor eax, eax jmp $LN1@xmlValidBu $LN8@xmlValidBu: ; 837 : } ; 838 : ctxt->state = xmlAutomataGetInitState(ctxt->am); mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+56] push edx call _xmlAutomataGetInitState add esp, 4 mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+60], eax ; 839 : xmlValidBuildAContentModel(elem->content, ctxt, elem->name); mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+40] push eax call _xmlValidBuildAContentModel add esp, 12 ; 0000000cH ; 840 : xmlAutomataSetFinalState(ctxt->am, ctxt->state); mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+60] push edx mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR [eax+56] push ecx call _xmlAutomataSetFinalState add esp, 8 ; 841 : elem->contModel = xmlAutomataCompile(ctxt->am); mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+56] push eax call _xmlAutomataCompile add esp, 4 mov ecx, DWORD PTR _elem$[ebp] mov DWORD PTR [ecx+52], eax ; 842 : if (xmlRegexpIsDeterminist(elem->contModel) != 1) { mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+52] push eax call _xmlRegexpIsDeterminist add esp, 4 cmp eax, 1 je $LN9@xmlValidBu ; 843 : char expr[5000]; ; 844 : expr[0] = 0; mov ecx, 1 imul edx, ecx, 0 mov BYTE PTR _expr$1[ebp+edx], 0 ; 845 : xmlSnprintfElementContent(expr, 5000, elem->content, 1); push 1 mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+40] push ecx push 5000 ; 00001388H lea edx, DWORD PTR _expr$1[ebp] push edx call _xmlSnprintfElementContent add esp, 16 ; 00000010H ; 846 : xmlErrValidNode(ctxt, (xmlNodePtr) elem, push 0 lea eax, DWORD PTR _expr$1[ebp] push eax mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx push OFFSET ??_C@_0CM@GHMIMING@Content?5model?5of?5?$CFs?5is?5not?5dete@ push 505 ; 000001f9H mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 847 : XML_DTD_CONTENT_NOT_DETERMINIST, ; 848 : "Content model of %s is not determinist: %s\n", ; 849 : elem->name, BAD_CAST expr, NULL); ; 850 : #ifdef DEBUG_REGEXP_ALGO ; 851 : xmlRegexpPrint(stderr, elem->contModel); ; 852 : #endif ; 853 : ctxt->valid = 0; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+36], 0 ; 854 : ctxt->state = NULL; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+60], 0 ; 855 : xmlFreeAutomata(ctxt->am); mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+56] push edx call _xmlFreeAutomata add esp, 4 ; 856 : ctxt->am = NULL; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+56], 0 ; 857 : return(0); xor eax, eax jmp SHORT $LN1@xmlValidBu $LN9@xmlValidBu: ; 858 : } ; 859 : ctxt->state = NULL; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+60], 0 ; 860 : xmlFreeAutomata(ctxt->am); mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+56] push eax call _xmlFreeAutomata add esp, 4 ; 861 : ctxt->am = NULL; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+56], 0 ; 862 : return(1); mov eax, 1 $LN1@xmlValidBu: ; 863 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN13@xmlValidBu call @_RTC_CheckStackVars@8 pop eax pop edx pop edi add esp, 5008 ; 00001390H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 3 $LN13@xmlValidBu: DD 1 DD $LN12@xmlValidBu $LN12@xmlValidBu: DD -5004 ; ffffec74H DD 5000 ; 00001388H DD $LN11@xmlValidBu $LN11@xmlValidBu: DB 101 ; 00000065H DB 120 ; 00000078H DB 112 ; 00000070H DB 114 ; 00000072H DB 0 _xmlValidBuildContentModel ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateNmtokensValue _TEXT SEGMENT _value$ = 8 ; size = 4 _xmlValidateNmtokensValue PROC ; COMDAT ; 3750 : xmlValidateNmtokensValue(const xmlChar *value) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3751 : return(xmlValidateNmtokensValueInternal(NULL, value)); mov eax, DWORD PTR _value$[ebp] push eax push 0 call _xmlValidateNmtokensValueInternal add esp, 8 ; 3752 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlValidateNmtokensValue ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateNmtokenValue _TEXT SEGMENT _value$ = 8 ; size = 4 _xmlValidateNmtokenValue PROC ; COMDAT ; 3674 : xmlValidateNmtokenValue(const xmlChar *value) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3675 : return(xmlValidateNmtokenValueInternal(NULL, value)); mov eax, DWORD PTR _value$[ebp] push eax push 0 call _xmlValidateNmtokenValueInternal add esp, 8 ; 3676 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlValidateNmtokenValue ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateNamesValue _TEXT SEGMENT _value$ = 8 ; size = 4 _xmlValidateNamesValue PROC ; COMDAT ; 3621 : xmlValidateNamesValue(const xmlChar *value) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3622 : return(xmlValidateNamesValueInternal(NULL, value)); mov eax, DWORD PTR _value$[ebp] push eax push 0 call _xmlValidateNamesValueInternal add esp, 8 ; 3623 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlValidateNamesValue ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateNameValue _TEXT SEGMENT _value$ = 8 ; size = 4 _xmlValidateNameValue PROC ; COMDAT ; 3553 : xmlValidateNameValue(const xmlChar *value) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3554 : return(xmlValidateNameValueInternal(NULL, value)); mov eax, DWORD PTR _value$[ebp] push eax push 0 call _xmlValidateNameValueInternal add esp, 8 ; 3555 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlValidateNameValue ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidGetValidElements _TEXT SEGMENT tv131 = -1176 ; size = 4 tv128 = -1172 ; size = 4 tv75 = -1168 ; size = 4 _j$1 = -1164 ; size = 4 _element_desc$ = -1160 ; size = 4 _parent_last$ = -1156 ; size = 4 _parent_childs$ = -1152 ; size = 4 _next_prev$ = -1148 ; size = 4 _prev_next$ = -1144 ; size = 4 _test_node$ = -1140 ; size = 4 _parent$ = -1136 ; size = 4 _ref_node$ = -1132 ; size = 4 _name$ = -1128 ; size = 4 _i$ = -1124 ; size = 4 _nb_elements$ = -1116 ; size = 4 _elements$ = -1104 ; size = 1024 _nb_valid_elements$ = -76 ; size = 4 _vctxt$ = -68 ; size = 64 _prev$ = 8 ; size = 4 _next$ = 12 ; size = 4 _names$ = 16 ; size = 4 _max$ = 20 ; size = 4 _xmlValidGetValidElements PROC ; COMDAT ; 6991 : int max) { push ebp mov ebp, esp sub esp, 1176 ; 00000498H push edi lea edi, DWORD PTR [ebp-1176] mov ecx, 294 ; 00000126H mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 6992 : xmlValidCtxt vctxt; ; 6993 : int nb_valid_elements = 0; mov DWORD PTR _nb_valid_elements$[ebp], 0 ; 6994 : const xmlChar *elements[256]={0}; push 1024 ; 00000400H push 0 lea eax, DWORD PTR _elements$[ebp] push eax call _memset add esp, 12 ; 0000000cH ; 6995 : int nb_elements = 0, i; mov DWORD PTR _nb_elements$[ebp], 0 ; 6996 : const xmlChar *name; ; 6997 : ; 6998 : xmlNode *ref_node; ; 6999 : xmlNode *parent; ; 7000 : xmlNode *test_node; ; 7001 : ; 7002 : xmlNode *prev_next; ; 7003 : xmlNode *next_prev; ; 7004 : xmlNode *parent_childs; ; 7005 : xmlNode *parent_last; ; 7006 : ; 7007 : xmlElement *element_desc; ; 7008 : ; 7009 : if (prev == NULL && next == NULL) cmp DWORD PTR _prev$[ebp], 0 jne SHORT $LN8@xmlValidGe cmp DWORD PTR _next$[ebp], 0 jne SHORT $LN8@xmlValidGe ; 7010 : return(-1); or eax, -1 jmp $LN1@xmlValidGe $LN8@xmlValidGe: ; 7011 : ; 7012 : if (names == NULL) return(-1); cmp DWORD PTR _names$[ebp], 0 jne SHORT $LN9@xmlValidGe or eax, -1 jmp $LN1@xmlValidGe $LN9@xmlValidGe: ; 7013 : if (max <= 0) return(-1); cmp DWORD PTR _max$[ebp], 0 jg SHORT $LN10@xmlValidGe or eax, -1 jmp $LN1@xmlValidGe $LN10@xmlValidGe: ; 7014 : ; 7015 : memset(&vctxt, 0, sizeof (xmlValidCtxt)); push 64 ; 00000040H push 0 lea ecx, DWORD PTR _vctxt$[ebp] push ecx call _memset add esp, 12 ; 0000000cH ; 7016 : vctxt.error = xmlNoValidityErr; /* this suppresses err/warn output */ mov DWORD PTR _vctxt$[ebp+4], OFFSET _xmlNoValidityErr ; 7017 : ; 7018 : nb_valid_elements = 0; mov DWORD PTR _nb_valid_elements$[ebp], 0 ; 7019 : ref_node = prev ? prev : next; cmp DWORD PTR _prev$[ebp], 0 je SHORT $LN24@xmlValidGe mov edx, DWORD PTR _prev$[ebp] mov DWORD PTR tv75[ebp], edx jmp SHORT $LN25@xmlValidGe $LN24@xmlValidGe: mov eax, DWORD PTR _next$[ebp] mov DWORD PTR tv75[ebp], eax $LN25@xmlValidGe: mov ecx, DWORD PTR tv75[ebp] mov DWORD PTR _ref_node$[ebp], ecx ; 7020 : parent = ref_node->parent; mov edx, DWORD PTR _ref_node$[ebp] mov eax, DWORD PTR [edx+20] mov DWORD PTR _parent$[ebp], eax ; 7021 : ; 7022 : /* ; 7023 : * Retrieves the parent element declaration ; 7024 : */ ; 7025 : element_desc = xmlGetDtdElementDesc(parent->doc->intSubset, mov ecx, DWORD PTR _parent$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _parent$[ebp] mov ecx, DWORD PTR [eax+32] mov edx, DWORD PTR [ecx+44] push edx call _xmlGetDtdElementDesc add esp, 8 mov DWORD PTR _element_desc$[ebp], eax ; 7026 : parent->name); ; 7027 : if ((element_desc == NULL) && (parent->doc->extSubset != NULL)) cmp DWORD PTR _element_desc$[ebp], 0 jne SHORT $LN11@xmlValidGe mov eax, DWORD PTR _parent$[ebp] mov ecx, DWORD PTR [eax+32] cmp DWORD PTR [ecx+48], 0 je SHORT $LN11@xmlValidGe ; 7028 : element_desc = xmlGetDtdElementDesc(parent->doc->extSubset, mov edx, DWORD PTR _parent$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _parent$[ebp] mov edx, DWORD PTR [ecx+32] mov eax, DWORD PTR [edx+48] push eax call _xmlGetDtdElementDesc add esp, 8 mov DWORD PTR _element_desc$[ebp], eax $LN11@xmlValidGe: ; 7029 : parent->name); ; 7030 : if (element_desc == NULL) return(-1); cmp DWORD PTR _element_desc$[ebp], 0 jne SHORT $LN12@xmlValidGe or eax, -1 jmp $LN1@xmlValidGe $LN12@xmlValidGe: ; 7031 : ; 7032 : /* ; 7033 : * Do a backup of the current tree structure ; 7034 : */ ; 7035 : prev_next = prev ? prev->next : NULL; cmp DWORD PTR _prev$[ebp], 0 je SHORT $LN26@xmlValidGe mov ecx, DWORD PTR _prev$[ebp] mov edx, DWORD PTR [ecx+24] mov DWORD PTR tv128[ebp], edx jmp SHORT $LN27@xmlValidGe $LN26@xmlValidGe: mov DWORD PTR tv128[ebp], 0 $LN27@xmlValidGe: mov eax, DWORD PTR tv128[ebp] mov DWORD PTR _prev_next$[ebp], eax ; 7036 : next_prev = next ? next->prev : NULL; cmp DWORD PTR _next$[ebp], 0 je SHORT $LN28@xmlValidGe mov ecx, DWORD PTR _next$[ebp] mov edx, DWORD PTR [ecx+28] mov DWORD PTR tv131[ebp], edx jmp SHORT $LN29@xmlValidGe $LN28@xmlValidGe: mov DWORD PTR tv131[ebp], 0 $LN29@xmlValidGe: mov eax, DWORD PTR tv131[ebp] mov DWORD PTR _next_prev$[ebp], eax ; 7037 : parent_childs = parent->children; mov ecx, DWORD PTR _parent$[ebp] mov edx, DWORD PTR [ecx+12] mov DWORD PTR _parent_childs$[ebp], edx ; 7038 : parent_last = parent->last; mov eax, DWORD PTR _parent$[ebp] mov ecx, DWORD PTR [eax+16] mov DWORD PTR _parent_last$[ebp], ecx ; 7039 : ; 7040 : /* ; 7041 : * Creates a dummy node and insert it into the tree ; 7042 : */ ; 7043 : test_node = xmlNewDocNode (ref_node->doc, NULL, BAD_CAST "<!dummy?>", NULL); push 0 push OFFSET ??_C@_09LMMMMLKM@?$DM?$CBdummy?$DP?$DO@ push 0 mov edx, DWORD PTR _ref_node$[ebp] mov eax, DWORD PTR [edx+32] push eax call _xmlNewDocNode add esp, 16 ; 00000010H mov DWORD PTR _test_node$[ebp], eax ; 7044 : if (test_node == NULL) cmp DWORD PTR _test_node$[ebp], 0 jne SHORT $LN13@xmlValidGe ; 7045 : return(-1); or eax, -1 jmp $LN1@xmlValidGe $LN13@xmlValidGe: ; 7046 : ; 7047 : test_node->parent = parent; mov ecx, DWORD PTR _test_node$[ebp] mov edx, DWORD PTR _parent$[ebp] mov DWORD PTR [ecx+20], edx ; 7048 : test_node->prev = prev; mov eax, DWORD PTR _test_node$[ebp] mov ecx, DWORD PTR _prev$[ebp] mov DWORD PTR [eax+28], ecx ; 7049 : test_node->next = next; mov edx, DWORD PTR _test_node$[ebp] mov eax, DWORD PTR _next$[ebp] mov DWORD PTR [edx+24], eax ; 7050 : name = test_node->name; mov ecx, DWORD PTR _test_node$[ebp] mov edx, DWORD PTR [ecx+8] mov DWORD PTR _name$[ebp], edx ; 7051 : ; 7052 : if (prev) prev->next = test_node; cmp DWORD PTR _prev$[ebp], 0 je SHORT $LN14@xmlValidGe mov eax, DWORD PTR _prev$[ebp] mov ecx, DWORD PTR _test_node$[ebp] mov DWORD PTR [eax+24], ecx jmp SHORT $LN15@xmlValidGe $LN14@xmlValidGe: ; 7053 : else parent->children = test_node; mov edx, DWORD PTR _parent$[ebp] mov eax, DWORD PTR _test_node$[ebp] mov DWORD PTR [edx+12], eax $LN15@xmlValidGe: ; 7054 : ; 7055 : if (next) next->prev = test_node; cmp DWORD PTR _next$[ebp], 0 je SHORT $LN16@xmlValidGe mov ecx, DWORD PTR _next$[ebp] mov edx, DWORD PTR _test_node$[ebp] mov DWORD PTR [ecx+28], edx jmp SHORT $LN17@xmlValidGe $LN16@xmlValidGe: ; 7056 : else parent->last = test_node; mov eax, DWORD PTR _parent$[ebp] mov ecx, DWORD PTR _test_node$[ebp] mov DWORD PTR [eax+16], ecx $LN17@xmlValidGe: ; 7057 : ; 7058 : /* ; 7059 : * Insert each potential child node and check if the parent is ; 7060 : * still valid ; 7061 : */ ; 7062 : nb_elements = xmlValidGetPotentialChildren(element_desc->content, push 256 ; 00000100H lea edx, DWORD PTR _nb_elements$[ebp] push edx lea eax, DWORD PTR _elements$[ebp] push eax mov ecx, DWORD PTR _element_desc$[ebp] mov edx, DWORD PTR [ecx+40] push edx call _xmlValidGetPotentialChildren add esp, 16 ; 00000010H mov DWORD PTR _nb_elements$[ebp], eax ; 7063 : elements, &nb_elements, 256); ; 7064 : ; 7065 : for (i = 0;i < nb_elements;i++) { mov DWORD PTR _i$[ebp], 0 jmp SHORT $LN4@xmlValidGe $LN2@xmlValidGe: mov eax, DWORD PTR _i$[ebp] add eax, 1 mov DWORD PTR _i$[ebp], eax $LN4@xmlValidGe: mov ecx, DWORD PTR _i$[ebp] cmp ecx, DWORD PTR _nb_elements$[ebp] jge $LN3@xmlValidGe ; 7066 : test_node->name = elements[i]; mov edx, DWORD PTR _test_node$[ebp] mov eax, DWORD PTR _i$[ebp] mov ecx, DWORD PTR _elements$[ebp+eax*4] mov DWORD PTR [edx+8], ecx ; 7067 : if (xmlValidateOneElement(&vctxt, parent->doc, parent)) { mov edx, DWORD PTR _parent$[ebp] push edx mov eax, DWORD PTR _parent$[ebp] mov ecx, DWORD PTR [eax+32] push ecx lea edx, DWORD PTR _vctxt$[ebp] push edx call _xmlValidateOneElement add esp, 12 ; 0000000cH test eax, eax je SHORT $LN18@xmlValidGe ; 7068 : int j; ; 7069 : ; 7070 : for (j = 0; j < nb_valid_elements;j++) mov DWORD PTR _j$1[ebp], 0 jmp SHORT $LN7@xmlValidGe $LN5@xmlValidGe: mov eax, DWORD PTR _j$1[ebp] add eax, 1 mov DWORD PTR _j$1[ebp], eax $LN7@xmlValidGe: mov ecx, DWORD PTR _j$1[ebp] cmp ecx, DWORD PTR _nb_valid_elements$[ebp] jge SHORT $LN6@xmlValidGe ; 7071 : if (xmlStrEqual(elements[i], names[j])) break; mov edx, DWORD PTR _j$1[ebp] mov eax, DWORD PTR _names$[ebp] mov ecx, DWORD PTR [eax+edx*4] push ecx mov edx, DWORD PTR _i$[ebp] mov eax, DWORD PTR _elements$[ebp+edx*4] push eax call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN19@xmlValidGe jmp SHORT $LN6@xmlValidGe $LN19@xmlValidGe: jmp SHORT $LN5@xmlValidGe $LN6@xmlValidGe: ; 7072 : names[nb_valid_elements++] = elements[i]; mov ecx, DWORD PTR _nb_valid_elements$[ebp] mov edx, DWORD PTR _names$[ebp] mov eax, DWORD PTR _i$[ebp] mov eax, DWORD PTR _elements$[ebp+eax*4] mov DWORD PTR [edx+ecx*4], eax mov ecx, DWORD PTR _nb_valid_elements$[ebp] add ecx, 1 mov DWORD PTR _nb_valid_elements$[ebp], ecx ; 7073 : if (nb_valid_elements >= max) break; mov edx, DWORD PTR _nb_valid_elements$[ebp] cmp edx, DWORD PTR _max$[ebp] jl SHORT $LN18@xmlValidGe jmp SHORT $LN3@xmlValidGe $LN18@xmlValidGe: ; 7074 : } ; 7075 : } jmp $LN2@xmlValidGe $LN3@xmlValidGe: ; 7076 : ; 7077 : /* ; 7078 : * Restore the tree structure ; 7079 : */ ; 7080 : if (prev) prev->next = prev_next; cmp DWORD PTR _prev$[ebp], 0 je SHORT $LN21@xmlValidGe mov eax, DWORD PTR _prev$[ebp] mov ecx, DWORD PTR _prev_next$[ebp] mov DWORD PTR [eax+24], ecx $LN21@xmlValidGe: ; 7081 : if (next) next->prev = next_prev; cmp DWORD PTR _next$[ebp], 0 je SHORT $LN22@xmlValidGe mov edx, DWORD PTR _next$[ebp] mov eax, DWORD PTR _next_prev$[ebp] mov DWORD PTR [edx+28], eax $LN22@xmlValidGe: ; 7082 : parent->children = parent_childs; mov ecx, DWORD PTR _parent$[ebp] mov edx, DWORD PTR _parent_childs$[ebp] mov DWORD PTR [ecx+12], edx ; 7083 : parent->last = parent_last; mov eax, DWORD PTR _parent$[ebp] mov ecx, DWORD PTR _parent_last$[ebp] mov DWORD PTR [eax+16], ecx ; 7084 : ; 7085 : /* ; 7086 : * Free up the dummy node ; 7087 : */ ; 7088 : test_node->name = name; mov edx, DWORD PTR _test_node$[ebp] mov eax, DWORD PTR _name$[ebp] mov DWORD PTR [edx+8], eax ; 7089 : xmlFreeNode(test_node); mov ecx, DWORD PTR _test_node$[ebp] push ecx call _xmlFreeNode add esp, 4 ; 7090 : ; 7091 : return(nb_valid_elements); mov eax, DWORD PTR _nb_valid_elements$[ebp] $LN1@xmlValidGe: ; 7092 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN34@xmlValidGe call @_RTC_CheckStackVars@8 pop eax pop edx pop edi add esp, 1176 ; 00000498H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 1 $LN34@xmlValidGe: DD 3 DD $LN33@xmlValidGe $LN33@xmlValidGe: DD -68 ; ffffffbcH DD 64 ; 00000040H DD $LN30@xmlValidGe DD -1104 ; fffffbb0H DD 1024 ; 00000400H DD $LN31@xmlValidGe DD -1116 ; fffffba4H DD 4 DD $LN32@xmlValidGe $LN32@xmlValidGe: DB 110 ; 0000006eH DB 98 ; 00000062H DB 95 ; 0000005fH DB 101 ; 00000065H DB 108 ; 0000006cH DB 101 ; 00000065H DB 109 ; 0000006dH DB 101 ; 00000065H DB 110 ; 0000006eH DB 116 ; 00000074H DB 115 ; 00000073H DB 0 $LN31@xmlValidGe: DB 101 ; 00000065H DB 108 ; 0000006cH DB 101 ; 00000065H DB 109 ; 0000006dH DB 101 ; 00000065H DB 110 ; 0000006eH DB 116 ; 00000074H DB 115 ; 00000073H DB 0 $LN30@xmlValidGe: DB 118 ; 00000076H DB 99 ; 00000063H DB 116 ; 00000074H DB 120 ; 00000078H DB 116 ; 00000074H DB 0 _xmlValidGetValidElements ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidGetPotentialChildren _TEXT SEGMENT tv69 = -8 ; size = 4 _i$ = -4 ; size = 4 _ctree$ = 8 ; size = 4 _names$ = 12 ; size = 4 _len$ = 16 ; size = 4 _max$ = 20 ; size = 4 _xmlValidGetPotentialChildren PROC ; COMDAT ; 6925 : int *len, int max) { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 6926 : int i; ; 6927 : ; 6928 : if ((ctree == NULL) || (names == NULL) || (len == NULL)) cmp DWORD PTR _ctree$[ebp], 0 je SHORT $LN11@xmlValidGe cmp DWORD PTR _names$[ebp], 0 je SHORT $LN11@xmlValidGe cmp DWORD PTR _len$[ebp], 0 jne SHORT $LN10@xmlValidGe $LN11@xmlValidGe: ; 6929 : return(-1); or eax, -1 jmp $LN1@xmlValidGe $LN10@xmlValidGe: ; 6930 : if (*len >= max) return(*len); mov eax, DWORD PTR _len$[ebp] mov ecx, DWORD PTR [eax] cmp ecx, DWORD PTR _max$[ebp] jl SHORT $LN12@xmlValidGe mov edx, DWORD PTR _len$[ebp] mov eax, DWORD PTR [edx] jmp $LN1@xmlValidGe $LN12@xmlValidGe: ; 6931 : ; 6932 : switch (ctree->type) { mov eax, DWORD PTR _ctree$[ebp] mov ecx, DWORD PTR [eax] mov DWORD PTR tv69[ebp], ecx mov edx, DWORD PTR tv69[ebp] sub edx, 1 mov DWORD PTR tv69[ebp], edx cmp DWORD PTR tv69[ebp], 3 ja $LN2@xmlValidGe mov eax, DWORD PTR tv69[ebp] jmp DWORD PTR $LN20@xmlValidGe[eax*4] $LN13@xmlValidGe: ; 6933 : case XML_ELEMENT_CONTENT_PCDATA: ; 6934 : for (i = 0; i < *len;i++) mov DWORD PTR _i$[ebp], 0 jmp SHORT $LN6@xmlValidGe $LN4@xmlValidGe: mov ecx, DWORD PTR _i$[ebp] add ecx, 1 mov DWORD PTR _i$[ebp], ecx $LN6@xmlValidGe: mov edx, DWORD PTR _len$[ebp] mov eax, DWORD PTR _i$[ebp] cmp eax, DWORD PTR [edx] jge SHORT $LN5@xmlValidGe ; 6935 : if (xmlStrEqual(BAD_CAST "#PCDATA", names[i])) return(*len); mov ecx, DWORD PTR _i$[ebp] mov edx, DWORD PTR _names$[ebp] mov eax, DWORD PTR [edx+ecx*4] push eax push OFFSET ??_C@_07ELDBONKP@?$CDPCDATA@ call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN14@xmlValidGe mov ecx, DWORD PTR _len$[ebp] mov eax, DWORD PTR [ecx] jmp $LN1@xmlValidGe $LN14@xmlValidGe: jmp SHORT $LN4@xmlValidGe $LN5@xmlValidGe: ; 6936 : names[(*len)++] = BAD_CAST "#PCDATA"; mov edx, DWORD PTR _len$[ebp] mov eax, DWORD PTR [edx] mov ecx, DWORD PTR _names$[ebp] mov DWORD PTR [ecx+eax*4], OFFSET ??_C@_07ELDBONKP@?$CDPCDATA@ mov edx, DWORD PTR _len$[ebp] mov eax, DWORD PTR [edx] add eax, 1 mov ecx, DWORD PTR _len$[ebp] mov DWORD PTR [ecx], eax ; 6937 : break; jmp $LN2@xmlValidGe $LN15@xmlValidGe: ; 6938 : case XML_ELEMENT_CONTENT_ELEMENT: ; 6939 : for (i = 0; i < *len;i++) mov DWORD PTR _i$[ebp], 0 jmp SHORT $LN9@xmlValidGe $LN7@xmlValidGe: mov edx, DWORD PTR _i$[ebp] add edx, 1 mov DWORD PTR _i$[ebp], edx $LN9@xmlValidGe: mov eax, DWORD PTR _len$[ebp] mov ecx, DWORD PTR _i$[ebp] cmp ecx, DWORD PTR [eax] jge SHORT $LN8@xmlValidGe ; 6940 : if (xmlStrEqual(ctree->name, names[i])) return(*len); mov edx, DWORD PTR _i$[ebp] mov eax, DWORD PTR _names$[ebp] mov ecx, DWORD PTR [eax+edx*4] push ecx mov edx, DWORD PTR _ctree$[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN16@xmlValidGe mov ecx, DWORD PTR _len$[ebp] mov eax, DWORD PTR [ecx] jmp $LN1@xmlValidGe $LN16@xmlValidGe: jmp SHORT $LN7@xmlValidGe $LN8@xmlValidGe: ; 6941 : names[(*len)++] = ctree->name; mov edx, DWORD PTR _len$[ebp] mov eax, DWORD PTR [edx] mov ecx, DWORD PTR _names$[ebp] mov edx, DWORD PTR _ctree$[ebp] mov edx, DWORD PTR [edx+8] mov DWORD PTR [ecx+eax*4], edx mov eax, DWORD PTR _len$[ebp] mov ecx, DWORD PTR [eax] add ecx, 1 mov edx, DWORD PTR _len$[ebp] mov DWORD PTR [edx], ecx ; 6942 : break; jmp SHORT $LN2@xmlValidGe $LN17@xmlValidGe: ; 6943 : case XML_ELEMENT_CONTENT_SEQ: ; 6944 : xmlValidGetPotentialChildren(ctree->c1, names, len, max); mov eax, DWORD PTR _max$[ebp] push eax mov ecx, DWORD PTR _len$[ebp] push ecx mov edx, DWORD PTR _names$[ebp] push edx mov eax, DWORD PTR _ctree$[ebp] mov ecx, DWORD PTR [eax+12] push ecx call _xmlValidGetPotentialChildren add esp, 16 ; 00000010H ; 6945 : xmlValidGetPotentialChildren(ctree->c2, names, len, max); mov edx, DWORD PTR _max$[ebp] push edx mov eax, DWORD PTR _len$[ebp] push eax mov ecx, DWORD PTR _names$[ebp] push ecx mov edx, DWORD PTR _ctree$[ebp] mov eax, DWORD PTR [edx+16] push eax call _xmlValidGetPotentialChildren add esp, 16 ; 00000010H ; 6946 : break; jmp SHORT $LN2@xmlValidGe $LN18@xmlValidGe: ; 6947 : case XML_ELEMENT_CONTENT_OR: ; 6948 : xmlValidGetPotentialChildren(ctree->c1, names, len, max); mov ecx, DWORD PTR _max$[ebp] push ecx mov edx, DWORD PTR _len$[ebp] push edx mov eax, DWORD PTR _names$[ebp] push eax mov ecx, DWORD PTR _ctree$[ebp] mov edx, DWORD PTR [ecx+12] push edx call _xmlValidGetPotentialChildren add esp, 16 ; 00000010H ; 6949 : xmlValidGetPotentialChildren(ctree->c2, names, len, max); mov eax, DWORD PTR _max$[ebp] push eax mov ecx, DWORD PTR _len$[ebp] push ecx mov edx, DWORD PTR _names$[ebp] push edx mov eax, DWORD PTR _ctree$[ebp] mov ecx, DWORD PTR [eax+16] push ecx call _xmlValidGetPotentialChildren add esp, 16 ; 00000010H $LN2@xmlValidGe: ; 6950 : break; ; 6951 : } ; 6952 : ; 6953 : return(*len); mov edx, DWORD PTR _len$[ebp] mov eax, DWORD PTR [edx] $LN1@xmlValidGe: ; 6954 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 1 $LN20@xmlValidGe: DD $LN13@xmlValidGe DD $LN15@xmlValidGe DD $LN17@xmlValidGe DD $LN18@xmlValidGe _xmlValidGetPotentialChildren ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlGetDtdElementDesc _TEXT SEGMENT _prefix$ = -20 ; size = 4 _uqname$ = -12 ; size = 4 _cur$ = -8 ; size = 4 _table$ = -4 ; size = 4 _dtd$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlGetDtdElementDesc PROC ; COMDAT ; 3176 : xmlGetDtdElementDesc(xmlDtdPtr dtd, const xmlChar *name) { push ebp mov ebp, esp sub esp, 24 ; 00000018H push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3177 : xmlElementTablePtr table; ; 3178 : xmlElementPtr cur; ; 3179 : xmlChar *uqname = NULL, *prefix = NULL; mov DWORD PTR _uqname$[ebp], 0 mov DWORD PTR _prefix$[ebp], 0 ; 3180 : ; 3181 : if ((dtd == NULL) || (name == NULL)) return(NULL); cmp DWORD PTR _dtd$[ebp], 0 je SHORT $LN3@xmlGetDtdE cmp DWORD PTR _name$[ebp], 0 jne SHORT $LN2@xmlGetDtdE $LN3@xmlGetDtdE: xor eax, eax jmp $LN1@xmlGetDtdE $LN2@xmlGetDtdE: ; 3182 : if (dtd->elements == NULL) mov eax, DWORD PTR _dtd$[ebp] cmp DWORD PTR [eax+40], 0 jne SHORT $LN4@xmlGetDtdE ; 3183 : return(NULL); xor eax, eax jmp SHORT $LN1@xmlGetDtdE $LN4@xmlGetDtdE: ; 3184 : table = (xmlElementTablePtr) dtd->elements; mov ecx, DWORD PTR _dtd$[ebp] mov edx, DWORD PTR [ecx+40] mov DWORD PTR _table$[ebp], edx ; 3185 : ; 3186 : uqname = xmlSplitQName2(name, &prefix); lea eax, DWORD PTR _prefix$[ebp] push eax mov ecx, DWORD PTR _name$[ebp] push ecx call _xmlSplitQName2 add esp, 8 mov DWORD PTR _uqname$[ebp], eax ; 3187 : if (uqname != NULL) cmp DWORD PTR _uqname$[ebp], 0 je SHORT $LN5@xmlGetDtdE ; 3188 : name = uqname; mov edx, DWORD PTR _uqname$[ebp] mov DWORD PTR _name$[ebp], edx $LN5@xmlGetDtdE: ; 3189 : cur = xmlHashLookup2(table, name, prefix); mov eax, DWORD PTR _prefix$[ebp] push eax mov ecx, DWORD PTR _name$[ebp] push ecx mov edx, DWORD PTR _table$[ebp] push edx call _xmlHashLookup2 add esp, 12 ; 0000000cH mov DWORD PTR _cur$[ebp], eax ; 3190 : if (prefix != NULL) xmlFree(prefix); cmp DWORD PTR _prefix$[ebp], 0 je SHORT $LN6@xmlGetDtdE mov esi, esp mov eax, DWORD PTR _prefix$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN6@xmlGetDtdE: ; 3191 : if (uqname != NULL) xmlFree(uqname); cmp DWORD PTR _uqname$[ebp], 0 je SHORT $LN7@xmlGetDtdE mov esi, esp mov ecx, DWORD PTR _uqname$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN7@xmlGetDtdE: ; 3192 : return(cur); mov eax, DWORD PTR _cur$[ebp] $LN1@xmlGetDtdE: ; 3193 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN11@xmlGetDtdE call @_RTC_CheckStackVars@8 pop eax pop edx pop esi add esp, 24 ; 00000018H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 $LN11@xmlGetDtdE: DD 1 DD $LN10@xmlGetDtdE $LN10@xmlGetDtdE: DD -20 ; ffffffecH DD 4 DD $LN9@xmlGetDtdE $LN9@xmlGetDtdE: DB 112 ; 00000070H DB 114 ; 00000072H DB 101 ; 00000065H DB 102 ; 00000066H DB 105 ; 00000069H DB 120 ; 00000078H DB 0 _xmlGetDtdElementDesc ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlGetDtdQElementDesc _TEXT SEGMENT _table$ = -4 ; size = 4 _dtd$ = 8 ; size = 4 _name$ = 12 ; size = 4 _prefix$ = 16 ; size = 4 _xmlGetDtdQElementDesc PROC ; COMDAT ; 3275 : const xmlChar *prefix) { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3276 : xmlElementTablePtr table; ; 3277 : ; 3278 : if (dtd == NULL) return(NULL); cmp DWORD PTR _dtd$[ebp], 0 jne SHORT $LN2@xmlGetDtdQ xor eax, eax jmp SHORT $LN1@xmlGetDtdQ $LN2@xmlGetDtdQ: ; 3279 : if (dtd->elements == NULL) return(NULL); mov eax, DWORD PTR _dtd$[ebp] cmp DWORD PTR [eax+40], 0 jne SHORT $LN3@xmlGetDtdQ xor eax, eax jmp SHORT $LN1@xmlGetDtdQ $LN3@xmlGetDtdQ: ; 3280 : table = (xmlElementTablePtr) dtd->elements; mov ecx, DWORD PTR _dtd$[ebp] mov edx, DWORD PTR [ecx+40] mov DWORD PTR _table$[ebp], edx ; 3281 : ; 3282 : return(xmlHashLookup2(table, name, prefix)); mov eax, DWORD PTR _prefix$[ebp] push eax mov ecx, DWORD PTR _name$[ebp] push ecx mov edx, DWORD PTR _table$[ebp] push edx call _xmlHashLookup2 add esp, 12 ; 0000000cH $LN1@xmlGetDtdQ: ; 3283 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlGetDtdQElementDesc ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlGetDtdNotationDesc _TEXT SEGMENT _table$ = -4 ; size = 4 _dtd$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlGetDtdNotationDesc PROC ; COMDAT ; 3357 : xmlGetDtdNotationDesc(xmlDtdPtr dtd, const xmlChar *name) { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3358 : xmlNotationTablePtr table; ; 3359 : ; 3360 : if (dtd == NULL) return(NULL); cmp DWORD PTR _dtd$[ebp], 0 jne SHORT $LN2@xmlGetDtdN xor eax, eax jmp SHORT $LN1@xmlGetDtdN $LN2@xmlGetDtdN: ; 3361 : if (dtd->notations == NULL) return(NULL); mov eax, DWORD PTR _dtd$[ebp] cmp DWORD PTR [eax+36], 0 jne SHORT $LN3@xmlGetDtdN xor eax, eax jmp SHORT $LN1@xmlGetDtdN $LN3@xmlGetDtdN: ; 3362 : table = (xmlNotationTablePtr) dtd->notations; mov ecx, DWORD PTR _dtd$[ebp] mov edx, DWORD PTR [ecx+36] mov DWORD PTR _table$[ebp], edx ; 3363 : ; 3364 : return(xmlHashLookup(table, name)); mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _table$[ebp] push ecx call _xmlHashLookup add esp, 8 $LN1@xmlGetDtdN: ; 3365 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlGetDtdNotationDesc ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlGetDtdQAttrDesc _TEXT SEGMENT _table$ = -4 ; size = 4 _dtd$ = 8 ; size = 4 _elem$ = 12 ; size = 4 _name$ = 16 ; size = 4 _prefix$ = 20 ; size = 4 _xmlGetDtdQAttrDesc PROC ; COMDAT ; 3336 : const xmlChar *prefix) { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3337 : xmlAttributeTablePtr table; ; 3338 : ; 3339 : if (dtd == NULL) return(NULL); cmp DWORD PTR _dtd$[ebp], 0 jne SHORT $LN2@xmlGetDtdQ xor eax, eax jmp SHORT $LN1@xmlGetDtdQ $LN2@xmlGetDtdQ: ; 3340 : if (dtd->attributes == NULL) return(NULL); mov eax, DWORD PTR _dtd$[ebp] cmp DWORD PTR [eax+44], 0 jne SHORT $LN3@xmlGetDtdQ xor eax, eax jmp SHORT $LN1@xmlGetDtdQ $LN3@xmlGetDtdQ: ; 3341 : table = (xmlAttributeTablePtr) dtd->attributes; mov ecx, DWORD PTR _dtd$[ebp] mov edx, DWORD PTR [ecx+44] mov DWORD PTR _table$[ebp], edx ; 3342 : ; 3343 : return(xmlHashLookup3(table, name, prefix, elem)); mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _prefix$[ebp] push ecx mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashLookup3 add esp, 16 ; 00000010H $LN1@xmlGetDtdQ: ; 3344 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlGetDtdQAttrDesc ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlGetDtdAttrDesc _TEXT SEGMENT _prefix$ = -20 ; size = 4 _uqname$ = -12 ; size = 4 _cur$ = -8 ; size = 4 _table$ = -4 ; size = 4 _dtd$ = 8 ; size = 4 _elem$ = 12 ; size = 4 _name$ = 16 ; size = 4 _xmlGetDtdAttrDesc PROC ; COMDAT ; 3298 : xmlGetDtdAttrDesc(xmlDtdPtr dtd, const xmlChar *elem, const xmlChar *name) { push ebp mov ebp, esp sub esp, 24 ; 00000018H push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3299 : xmlAttributeTablePtr table; ; 3300 : xmlAttributePtr cur; ; 3301 : xmlChar *uqname = NULL, *prefix = NULL; mov DWORD PTR _uqname$[ebp], 0 mov DWORD PTR _prefix$[ebp], 0 ; 3302 : ; 3303 : if (dtd == NULL) return(NULL); cmp DWORD PTR _dtd$[ebp], 0 jne SHORT $LN2@xmlGetDtdA xor eax, eax jmp $LN1@xmlGetDtdA $LN2@xmlGetDtdA: ; 3304 : if (dtd->attributes == NULL) return(NULL); mov eax, DWORD PTR _dtd$[ebp] cmp DWORD PTR [eax+44], 0 jne SHORT $LN3@xmlGetDtdA xor eax, eax jmp $LN1@xmlGetDtdA $LN3@xmlGetDtdA: ; 3305 : ; 3306 : table = (xmlAttributeTablePtr) dtd->attributes; mov ecx, DWORD PTR _dtd$[ebp] mov edx, DWORD PTR [ecx+44] mov DWORD PTR _table$[ebp], edx ; 3307 : if (table == NULL) cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN4@xmlGetDtdA ; 3308 : return(NULL); xor eax, eax jmp $LN1@xmlGetDtdA $LN4@xmlGetDtdA: ; 3309 : ; 3310 : uqname = xmlSplitQName2(name, &prefix); lea eax, DWORD PTR _prefix$[ebp] push eax mov ecx, DWORD PTR _name$[ebp] push ecx call _xmlSplitQName2 add esp, 8 mov DWORD PTR _uqname$[ebp], eax ; 3311 : ; 3312 : if (uqname != NULL) { cmp DWORD PTR _uqname$[ebp], 0 je SHORT $LN5@xmlGetDtdA ; 3313 : cur = xmlHashLookup3(table, uqname, prefix, elem); mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _prefix$[ebp] push eax mov ecx, DWORD PTR _uqname$[ebp] push ecx mov edx, DWORD PTR _table$[ebp] push edx call _xmlHashLookup3 add esp, 16 ; 00000010H mov DWORD PTR _cur$[ebp], eax ; 3314 : if (prefix != NULL) xmlFree(prefix); cmp DWORD PTR _prefix$[ebp], 0 je SHORT $LN7@xmlGetDtdA mov esi, esp mov eax, DWORD PTR _prefix$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN7@xmlGetDtdA: ; 3315 : if (uqname != NULL) xmlFree(uqname); cmp DWORD PTR _uqname$[ebp], 0 je SHORT $LN8@xmlGetDtdA mov esi, esp mov ecx, DWORD PTR _uqname$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN8@xmlGetDtdA: ; 3316 : } else jmp SHORT $LN6@xmlGetDtdA $LN5@xmlGetDtdA: ; 3317 : cur = xmlHashLookup3(table, name, NULL, elem); mov edx, DWORD PTR _elem$[ebp] push edx push 0 mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _table$[ebp] push ecx call _xmlHashLookup3 add esp, 16 ; 00000010H mov DWORD PTR _cur$[ebp], eax $LN6@xmlGetDtdA: ; 3318 : return(cur); mov eax, DWORD PTR _cur$[ebp] $LN1@xmlGetDtdA: ; 3319 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN12@xmlGetDtdA call @_RTC_CheckStackVars@8 pop eax pop edx pop esi add esp, 24 ; 00000018H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 1 $LN12@xmlGetDtdA: DD 1 DD $LN11@xmlGetDtdA $LN11@xmlGetDtdA: DD -20 ; ffffffecH DD 4 DD $LN10@xmlGetDtdA $LN10@xmlGetDtdA: DB 112 ; 00000070H DB 114 ; 00000072H DB 101 ; 00000065H DB 102 ; 00000066H DB 105 ; 00000069H DB 120 ; 00000078H DB 0 _xmlGetDtdAttrDesc ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlIsMixedElement _TEXT SEGMENT tv80 = -8 ; size = 4 _elemDecl$ = -4 ; size = 4 _doc$ = 8 ; size = 4 _name$ = 12 ; size = 4 _xmlIsMixedElement PROC ; COMDAT ; 3413 : xmlIsMixedElement(xmlDocPtr doc, const xmlChar *name) { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3414 : xmlElementPtr elemDecl; ; 3415 : ; 3416 : if ((doc == NULL) || (doc->intSubset == NULL)) return(-1); cmp DWORD PTR _doc$[ebp], 0 je SHORT $LN5@xmlIsMixed mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+44], 0 jne SHORT $LN4@xmlIsMixed $LN5@xmlIsMixed: or eax, -1 jmp SHORT $LN1@xmlIsMixed $LN4@xmlIsMixed: ; 3417 : ; 3418 : elemDecl = xmlGetDtdElementDesc(doc->intSubset, name); mov ecx, DWORD PTR _name$[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+44] push eax call _xmlGetDtdElementDesc add esp, 8 mov DWORD PTR _elemDecl$[ebp], eax ; 3419 : if ((elemDecl == NULL) && (doc->extSubset != NULL)) cmp DWORD PTR _elemDecl$[ebp], 0 jne SHORT $LN6@xmlIsMixed mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+48], 0 je SHORT $LN6@xmlIsMixed ; 3420 : elemDecl = xmlGetDtdElementDesc(doc->extSubset, name); mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+48] push ecx call _xmlGetDtdElementDesc add esp, 8 mov DWORD PTR _elemDecl$[ebp], eax $LN6@xmlIsMixed: ; 3421 : if (elemDecl == NULL) return(-1); cmp DWORD PTR _elemDecl$[ebp], 0 jne SHORT $LN7@xmlIsMixed or eax, -1 jmp SHORT $LN1@xmlIsMixed $LN7@xmlIsMixed: ; 3422 : switch (elemDecl->etype) { mov edx, DWORD PTR _elemDecl$[ebp] mov eax, DWORD PTR [edx+36] mov DWORD PTR tv80[ebp], eax cmp DWORD PTR tv80[ebp], 4 ja SHORT $LN2@xmlIsMixed mov ecx, DWORD PTR tv80[ebp] jmp DWORD PTR $LN12@xmlIsMixed[ecx*4] $LN8@xmlIsMixed: ; 3423 : case XML_ELEMENT_TYPE_UNDEFINED: ; 3424 : return(-1); or eax, -1 jmp SHORT $LN1@xmlIsMixed $LN9@xmlIsMixed: ; 3425 : case XML_ELEMENT_TYPE_ELEMENT: ; 3426 : return(0); xor eax, eax jmp SHORT $LN1@xmlIsMixed $LN10@xmlIsMixed: ; 3427 : case XML_ELEMENT_TYPE_EMPTY: ; 3428 : /* ; 3429 : * return 1 for EMPTY since we want VC error to pop up ; 3430 : * on <empty> </empty> for example ; 3431 : */ ; 3432 : case XML_ELEMENT_TYPE_ANY: ; 3433 : case XML_ELEMENT_TYPE_MIXED: ; 3434 : return(1); mov eax, 1 jmp SHORT $LN1@xmlIsMixed $LN2@xmlIsMixed: ; 3435 : } ; 3436 : return(1); mov eax, 1 $LN1@xmlIsMixed: ; 3437 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 $LN12@xmlIsMixed: DD $LN8@xmlIsMixed DD $LN10@xmlIsMixed DD $LN10@xmlIsMixed DD $LN10@xmlIsMixed DD $LN9@xmlIsMixed _xmlIsMixedElement ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateNotationUse _TEXT SEGMENT _notaDecl$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _notationName$ = 16 ; size = 4 _xmlValidateNotationUse PROC ; COMDAT ; 3382 : const xmlChar *notationName) { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3383 : xmlNotationPtr notaDecl; ; 3384 : if ((doc == NULL) || (doc->intSubset == NULL) || cmp DWORD PTR _doc$[ebp], 0 je SHORT $LN3@xmlValidat mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+44], 0 je SHORT $LN3@xmlValidat cmp DWORD PTR _notationName$[ebp], 0 jne SHORT $LN2@xmlValidat $LN3@xmlValidat: ; 3385 : (notationName == NULL)) return(-1); or eax, -1 jmp SHORT $LN1@xmlValidat $LN2@xmlValidat: ; 3386 : ; 3387 : notaDecl = xmlGetDtdNotationDesc(doc->intSubset, notationName); mov ecx, DWORD PTR _notationName$[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+44] push eax call _xmlGetDtdNotationDesc add esp, 8 mov DWORD PTR _notaDecl$[ebp], eax ; 3388 : if ((notaDecl == NULL) && (doc->extSubset != NULL)) cmp DWORD PTR _notaDecl$[ebp], 0 jne SHORT $LN4@xmlValidat mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+48], 0 je SHORT $LN4@xmlValidat ; 3389 : notaDecl = xmlGetDtdNotationDesc(doc->extSubset, notationName); mov edx, DWORD PTR _notationName$[ebp] push edx mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+48] push ecx call _xmlGetDtdNotationDesc add esp, 8 mov DWORD PTR _notaDecl$[ebp], eax $LN4@xmlValidat: ; 3390 : ; 3391 : if ((notaDecl == NULL) && (ctxt != NULL)) { cmp DWORD PTR _notaDecl$[ebp], 0 jne SHORT $LN5@xmlValidat cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN5@xmlValidat ; 3392 : xmlErrValidNode(ctxt, (xmlNodePtr) doc, XML_DTD_UNKNOWN_NOTATION, push 0 push 0 mov edx, DWORD PTR _notationName$[ebp] push edx push OFFSET ??_C@_0BN@NONOBNKE@NOTATION?5?$CFs?5is?5not?5declared?6@ push 537 ; 00000219H mov eax, DWORD PTR _doc$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 3393 : "NOTATION %s is not declared\n", ; 3394 : notationName, NULL, NULL); ; 3395 : return(0); xor eax, eax jmp SHORT $LN1@xmlValidat $LN5@xmlValidat: ; 3396 : } ; 3397 : return(1); mov eax, 1 $LN1@xmlValidat: ; 3398 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlValidateNotationUse ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateDocumentFinal _TEXT SEGMENT _save$ = -8 ; size = 4 _table$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _xmlValidateDocumentFinal PROC ; COMDAT ; 6603 : xmlValidateDocumentFinal(xmlValidCtxtPtr ctxt, xmlDocPtr doc) { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 6604 : xmlRefTablePtr table; ; 6605 : unsigned int save; ; 6606 : ; 6607 : if (ctxt == NULL) cmp DWORD PTR _ctxt$[ebp], 0 jne SHORT $LN2@xmlValidat ; 6608 : return(0); xor eax, eax jmp SHORT $LN1@xmlValidat $LN2@xmlValidat: ; 6609 : if (doc == NULL) { cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN3@xmlValidat ; 6610 : xmlErrValid(ctxt, XML_DTD_NO_DOC, push 0 push OFFSET ??_C@_0CH@PKJJCFEM@xmlValidateDocumentFinal?3?5doc?5?$DN@ push 521 ; 00000209H mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValid add esp, 16 ; 00000010H ; 6611 : "xmlValidateDocumentFinal: doc == NULL\n", NULL); ; 6612 : return(0); xor eax, eax jmp SHORT $LN1@xmlValidat $LN3@xmlValidat: ; 6613 : } ; 6614 : ; 6615 : /* trick to get correct line id report */ ; 6616 : save = ctxt->finishDtd; mov ecx, DWORD PTR _ctxt$[ebp] mov edx, DWORD PTR [ecx+28] mov DWORD PTR _save$[ebp], edx ; 6617 : ctxt->finishDtd = 0; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+28], 0 ; 6618 : ; 6619 : /* ; 6620 : * Check all the NOTATION/NOTATIONS attributes ; 6621 : */ ; 6622 : /* ; 6623 : * Check all the ENTITY/ENTITIES attributes definition for validity ; 6624 : */ ; 6625 : /* ; 6626 : * Check all the IDREF/IDREFS attributes definition for validity ; 6627 : */ ; 6628 : table = (xmlRefTablePtr) doc->refs; mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+68] mov DWORD PTR _table$[ebp], edx ; 6629 : ctxt->doc = doc; mov eax, DWORD PTR _ctxt$[ebp] mov ecx, DWORD PTR _doc$[ebp] mov DWORD PTR [eax+32], ecx ; 6630 : ctxt->valid = 1; mov edx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [edx+36], 1 ; 6631 : xmlHashScan(table, xmlValidateCheckRefCallback, ctxt); mov eax, DWORD PTR _ctxt$[ebp] push eax push OFFSET _xmlValidateCheckRefCallback mov ecx, DWORD PTR _table$[ebp] push ecx call _xmlHashScan add esp, 12 ; 0000000cH ; 6632 : ; 6633 : ctxt->finishDtd = save; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR _save$[ebp] mov DWORD PTR [edx+28], eax ; 6634 : return(ctxt->valid); mov ecx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [ecx+36] $LN1@xmlValidat: ; 6635 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlValidateDocumentFinal ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateOneNamespace _TEXT SEGMENT _tree$1 = -88 ; size = 4 _nota$2 = -84 ; size = 4 _tree$3 = -80 ; size = 4 _fullname$4 = -76 ; size = 4 _fn$5 = -68 ; size = 50 _ret$ = -12 ; size = 4 _val$ = -8 ; size = 4 _attrDecl$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _elem$ = 16 ; size = 4 _prefix$ = 20 ; size = 4 _ns$ = 24 ; size = 4 _value$ = 28 ; size = 4 _xmlValidateOneNamespace PROC ; COMDAT ; 4559 : xmlNodePtr elem, const xmlChar *prefix, xmlNsPtr ns, const xmlChar *value) { push ebp mov ebp, esp sub esp, 88 ; 00000058H push esi push edi lea edi, DWORD PTR [ebp-88] mov ecx, 22 ; 00000016H mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 4560 : /* xmlElementPtr elemDecl; */ ; 4561 : xmlAttributePtr attrDecl = NULL; mov DWORD PTR _attrDecl$[ebp], 0 ; 4562 : int val; ; 4563 : int ret = 1; mov DWORD PTR _ret$[ebp], 1 ; 4564 : ; 4565 : CHECK_DTD; cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN6@xmlValidat xor eax, eax jmp $LN1@xmlValidat jmp SHORT $LN7@xmlValidat $LN6@xmlValidat: mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+44], 0 jne SHORT $LN7@xmlValidat mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+48], 0 jne SHORT $LN7@xmlValidat xor eax, eax jmp $LN1@xmlValidat $LN7@xmlValidat: ; 4566 : if ((elem == NULL) || (elem->name == NULL)) return(0); cmp DWORD PTR _elem$[ebp], 0 je SHORT $LN10@xmlValidat mov edx, DWORD PTR _elem$[ebp] cmp DWORD PTR [edx+8], 0 jne SHORT $LN9@xmlValidat $LN10@xmlValidat: xor eax, eax jmp $LN1@xmlValidat $LN9@xmlValidat: ; 4567 : if ((ns == NULL) || (ns->href == NULL)) return(0); cmp DWORD PTR _ns$[ebp], 0 je SHORT $LN12@xmlValidat mov eax, DWORD PTR _ns$[ebp] cmp DWORD PTR [eax+8], 0 jne SHORT $LN11@xmlValidat $LN12@xmlValidat: xor eax, eax jmp $LN1@xmlValidat $LN11@xmlValidat: ; 4568 : ; 4569 : if (prefix != NULL) { cmp DWORD PTR _prefix$[ebp], 0 je $LN13@xmlValidat ; 4570 : xmlChar fn[50]; ; 4571 : xmlChar *fullname; ; 4572 : ; 4573 : fullname = xmlBuildQName(elem->name, prefix, fn, 50); push 50 ; 00000032H lea ecx, DWORD PTR _fn$5[ebp] push ecx mov edx, DWORD PTR _prefix$[ebp] push edx mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlBuildQName add esp, 16 ; 00000010H mov DWORD PTR _fullname$4[ebp], eax ; 4574 : if (fullname == NULL) { cmp DWORD PTR _fullname$4[ebp], 0 jne SHORT $LN14@xmlValidat ; 4575 : xmlVErrMemory(ctxt, "Validating namespace"); push OFFSET ??_C@_0BF@INLCBMIM@Validating?5namespace@ mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlVErrMemory add esp, 8 ; 4576 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN14@xmlValidat: ; 4577 : } ; 4578 : if (ns->prefix != NULL) { mov eax, DWORD PTR _ns$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN15@xmlValidat ; 4579 : attrDecl = xmlGetDtdQAttrDesc(doc->intSubset, fullname, push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov ecx, DWORD PTR _ns$[ebp] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _fullname$4[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+44] push edx call _xmlGetDtdQAttrDesc add esp, 16 ; 00000010H mov DWORD PTR _attrDecl$[ebp], eax ; 4580 : ns->prefix, BAD_CAST "xmlns"); ; 4581 : if ((attrDecl == NULL) && (doc->extSubset != NULL)) cmp DWORD PTR _attrDecl$[ebp], 0 jne SHORT $LN17@xmlValidat mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+48], 0 je SHORT $LN17@xmlValidat ; 4582 : attrDecl = xmlGetDtdQAttrDesc(doc->extSubset, fullname, push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov ecx, DWORD PTR _ns$[ebp] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _fullname$4[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+48] push edx call _xmlGetDtdQAttrDesc add esp, 16 ; 00000010H mov DWORD PTR _attrDecl$[ebp], eax $LN17@xmlValidat: ; 4583 : ns->prefix, BAD_CAST "xmlns"); ; 4584 : } else { jmp SHORT $LN16@xmlValidat $LN15@xmlValidat: ; 4585 : attrDecl = xmlGetDtdAttrDesc(doc->intSubset, fullname, push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov eax, DWORD PTR _fullname$4[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+44] push edx call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$[ebp], eax ; 4586 : BAD_CAST "xmlns"); ; 4587 : if ((attrDecl == NULL) && (doc->extSubset != NULL)) cmp DWORD PTR _attrDecl$[ebp], 0 jne SHORT $LN16@xmlValidat mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+48], 0 je SHORT $LN16@xmlValidat ; 4588 : attrDecl = xmlGetDtdAttrDesc(doc->extSubset, fullname, push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov ecx, DWORD PTR _fullname$4[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+48] push eax call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$[ebp], eax $LN16@xmlValidat: ; 4589 : BAD_CAST "xmlns"); ; 4590 : } ; 4591 : if ((fullname != fn) && (fullname != elem->name)) lea ecx, DWORD PTR _fn$5[ebp] cmp DWORD PTR _fullname$4[ebp], ecx je SHORT $LN13@xmlValidat mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR _fullname$4[ebp] cmp eax, DWORD PTR [edx+8] je SHORT $LN13@xmlValidat ; 4592 : xmlFree(fullname); mov esi, esp mov ecx, DWORD PTR _fullname$4[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN13@xmlValidat: ; 4593 : } ; 4594 : if (attrDecl == NULL) { cmp DWORD PTR _attrDecl$[ebp], 0 jne $LN20@xmlValidat ; 4595 : if (ns->prefix != NULL) { mov edx, DWORD PTR _ns$[ebp] cmp DWORD PTR [edx+12], 0 je SHORT $LN21@xmlValidat ; 4596 : attrDecl = xmlGetDtdQAttrDesc(doc->intSubset, elem->name, push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov eax, DWORD PTR _ns$[ebp] mov ecx, DWORD PTR [eax+12] push ecx mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+44] push edx call _xmlGetDtdQAttrDesc add esp, 16 ; 00000010H mov DWORD PTR _attrDecl$[ebp], eax ; 4597 : ns->prefix, BAD_CAST "xmlns"); ; 4598 : if ((attrDecl == NULL) && (doc->extSubset != NULL)) cmp DWORD PTR _attrDecl$[ebp], 0 jne SHORT $LN23@xmlValidat mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+48], 0 je SHORT $LN23@xmlValidat ; 4599 : attrDecl = xmlGetDtdQAttrDesc(doc->extSubset, elem->name, push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov ecx, DWORD PTR _ns$[ebp] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+48] push eax call _xmlGetDtdQAttrDesc add esp, 16 ; 00000010H mov DWORD PTR _attrDecl$[ebp], eax $LN23@xmlValidat: ; 4600 : ns->prefix, BAD_CAST "xmlns"); ; 4601 : } else { jmp SHORT $LN20@xmlValidat $LN21@xmlValidat: ; 4602 : attrDecl = xmlGetDtdAttrDesc(doc->intSubset, push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+44] push ecx call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$[ebp], eax ; 4603 : elem->name, BAD_CAST "xmlns"); ; 4604 : if ((attrDecl == NULL) && (doc->extSubset != NULL)) cmp DWORD PTR _attrDecl$[ebp], 0 jne SHORT $LN20@xmlValidat mov edx, DWORD PTR _doc$[ebp] cmp DWORD PTR [edx+48], 0 je SHORT $LN20@xmlValidat ; 4605 : attrDecl = xmlGetDtdAttrDesc(doc->extSubset, push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+48] push eax call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$[ebp], eax $LN20@xmlValidat: ; 4606 : elem->name, BAD_CAST "xmlns"); ; 4607 : } ; 4608 : } ; 4609 : ; 4610 : ; 4611 : /* Validity Constraint: Attribute Value Type */ ; 4612 : if (attrDecl == NULL) { cmp DWORD PTR _attrDecl$[ebp], 0 jne SHORT $LN25@xmlValidat ; 4613 : if (ns->prefix != NULL) { mov ecx, DWORD PTR _ns$[ebp] cmp DWORD PTR [ecx+12], 0 je SHORT $LN26@xmlValidat ; 4614 : xmlErrValidNode(ctxt, elem, XML_DTD_UNKNOWN_ATTRIBUTE, push 0 mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _ns$[ebp] mov edx, DWORD PTR [ecx+12] push edx push OFFSET ??_C@_0DF@GJIDMPBO@No?5declaration?5for?5attribute?5xm@ push 533 ; 00000215H mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4615 : "No declaration for attribute xmlns:%s of element %s\n", ; 4616 : ns->prefix, elem->name, NULL); ; 4617 : } else { jmp SHORT $LN27@xmlValidat $LN26@xmlValidat: ; 4618 : xmlErrValidNode(ctxt, elem, XML_DTD_UNKNOWN_ATTRIBUTE, push 0 push 0 mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax push OFFSET ??_C@_0DC@FPONLEAN@No?5declaration?5for?5attribute?5xm@ push 533 ; 00000215H mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH $LN27@xmlValidat: ; 4619 : "No declaration for attribute xmlns of element %s\n", ; 4620 : elem->name, NULL, NULL); ; 4621 : } ; 4622 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN25@xmlValidat: ; 4623 : } ; 4624 : ; 4625 : val = xmlValidateAttributeValueInternal(doc, attrDecl->atype, value); mov eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _attrDecl$[ebp] mov edx, DWORD PTR [ecx+40] push edx mov eax, DWORD PTR _doc$[ebp] push eax call _xmlValidateAttributeValueInternal add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 4626 : if (val == 0) { cmp DWORD PTR _val$[ebp], 0 jne SHORT $LN28@xmlValidat ; 4627 : if (ns->prefix != NULL) { mov ecx, DWORD PTR _ns$[ebp] cmp DWORD PTR [ecx+12], 0 je SHORT $LN29@xmlValidat ; 4628 : xmlErrValidNode(ctxt, elem, XML_DTD_INVALID_DEFAULT, push 0 mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _ns$[ebp] mov edx, DWORD PTR [ecx+12] push edx push OFFSET ??_C@_0DL@CBOACJEL@Syntax?5of?5value?5for?5attribute?5x@ push 516 ; 00000204H mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4629 : "Syntax of value for attribute xmlns:%s of %s is not valid\n", ; 4630 : ns->prefix, elem->name, NULL); ; 4631 : } else { jmp SHORT $LN30@xmlValidat $LN29@xmlValidat: ; 4632 : xmlErrValidNode(ctxt, elem, XML_DTD_INVALID_DEFAULT, push 0 push 0 mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax push OFFSET ??_C@_0DI@HAHGLIKC@Syntax?5of?5value?5for?5attribute?5x@ push 516 ; 00000204H mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH $LN30@xmlValidat: ; 4633 : "Syntax of value for attribute xmlns of %s is not valid\n", ; 4634 : elem->name, NULL, NULL); ; 4635 : } ; 4636 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN28@xmlValidat: ; 4637 : } ; 4638 : ; 4639 : /* Validity constraint: Fixed Attribute Default */ ; 4640 : if (attrDecl->def == XML_ATTRIBUTE_FIXED) { mov eax, DWORD PTR _attrDecl$[ebp] cmp DWORD PTR [eax+44], 4 jne $LN31@xmlValidat ; 4641 : if (!xmlStrEqual(value, attrDecl->defaultValue)) { mov ecx, DWORD PTR _attrDecl$[ebp] mov edx, DWORD PTR [ecx+48] push edx mov eax, DWORD PTR _value$[ebp] push eax call _xmlStrEqual add esp, 8 test eax, eax jne SHORT $LN31@xmlValidat ; 4642 : if (ns->prefix != NULL) { mov ecx, DWORD PTR _ns$[ebp] cmp DWORD PTR [ecx+12], 0 je SHORT $LN33@xmlValidat ; 4643 : xmlErrValidNode(ctxt, elem, XML_DTD_ATTRIBUTE_DEFAULT, mov edx, DWORD PTR _attrDecl$[ebp] mov eax, DWORD PTR [edx+48] push eax mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _ns$[ebp] mov ecx, DWORD PTR [eax+12] push ecx push OFFSET ??_C@_0ED@KAGANNGH@Value?5for?5attribute?5xmlns?3?$CFs?5of@ push 500 ; 000001f4H mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4644 : "Value for attribute xmlns:%s of %s is different from default \"%s\"\n", ; 4645 : ns->prefix, elem->name, attrDecl->defaultValue); ; 4646 : } else { jmp SHORT $LN34@xmlValidat $LN33@xmlValidat: ; 4647 : xmlErrValidNode(ctxt, elem, XML_DTD_ATTRIBUTE_DEFAULT, push 0 mov ecx, DWORD PTR _attrDecl$[ebp] mov edx, DWORD PTR [ecx+48] push edx mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx push OFFSET ??_C@_0EA@HGOHDHBG@Value?5for?5attribute?5xmlns?5of?5?$CFs@ push 500 ; 000001f4H mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH $LN34@xmlValidat: ; 4648 : "Value for attribute xmlns of %s is different from default \"%s\"\n", ; 4649 : elem->name, attrDecl->defaultValue, NULL); ; 4650 : } ; 4651 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN31@xmlValidat: ; 4652 : } ; 4653 : } ; 4654 : ; 4655 : /* ; 4656 : * Casting ns to xmlAttrPtr is wrong. We'd need separate functions ; 4657 : * xmlAddID and xmlAddRef for namespace declarations, but it makes ; 4658 : * no practical sense to use ID types anyway. ; 4659 : */ ; 4660 : #if 0 ; 4661 : /* Validity Constraint: ID uniqueness */ ; 4662 : if (attrDecl->atype == XML_ATTRIBUTE_ID) { ; 4663 : if (xmlAddID(ctxt, doc, value, (xmlAttrPtr) ns) == NULL) ; 4664 : ret = 0; ; 4665 : } ; 4666 : ; 4667 : if ((attrDecl->atype == XML_ATTRIBUTE_IDREF) || ; 4668 : (attrDecl->atype == XML_ATTRIBUTE_IDREFS)) { ; 4669 : if (xmlAddRef(ctxt, doc, value, (xmlAttrPtr) ns) == NULL) ; 4670 : ret = 0; ; 4671 : } ; 4672 : #endif ; 4673 : ; 4674 : /* Validity Constraint: Notation Attributes */ ; 4675 : if (attrDecl->atype == XML_ATTRIBUTE_NOTATION) { mov ecx, DWORD PTR _attrDecl$[ebp] cmp DWORD PTR [ecx+40], 10 ; 0000000aH jne $LN35@xmlValidat ; 4676 : xmlEnumerationPtr tree = attrDecl->tree; mov edx, DWORD PTR _attrDecl$[ebp] mov eax, DWORD PTR [edx+52] mov DWORD PTR _tree$3[ebp], eax ; 4677 : xmlNotationPtr nota; ; 4678 : ; 4679 : /* First check that the given NOTATION was declared */ ; 4680 : nota = xmlGetDtdNotationDesc(doc->intSubset, value); mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+44] push eax call _xmlGetDtdNotationDesc add esp, 8 mov DWORD PTR _nota$2[ebp], eax ; 4681 : if (nota == NULL) cmp DWORD PTR _nota$2[ebp], 0 jne SHORT $LN36@xmlValidat ; 4682 : nota = xmlGetDtdNotationDesc(doc->extSubset, value); mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+48] push eax call _xmlGetDtdNotationDesc add esp, 8 mov DWORD PTR _nota$2[ebp], eax $LN36@xmlValidat: ; 4683 : ; 4684 : if (nota == NULL) { cmp DWORD PTR _nota$2[ebp], 0 jne SHORT $LN2@xmlValidat ; 4685 : if (ns->prefix != NULL) { mov ecx, DWORD PTR _ns$[ebp] cmp DWORD PTR [ecx+12], 0 je SHORT $LN38@xmlValidat ; 4686 : xmlErrValidNode(ctxt, elem, XML_DTD_UNKNOWN_NOTATION, mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _ns$[ebp] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _value$[ebp] push eax push OFFSET ??_C@_0EE@ENPHOLHF@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?3@ push 537 ; 00000219H mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4687 : "Value \"%s\" for attribute xmlns:%s of %s is not a declared Notation\n", ; 4688 : value, ns->prefix, elem->name); ; 4689 : } else { jmp SHORT $LN39@xmlValidat $LN38@xmlValidat: ; 4690 : xmlErrValidNode(ctxt, elem, XML_DTD_UNKNOWN_NOTATION, push 0 mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _value$[ebp] push edx push OFFSET ??_C@_0EB@IKNIAELF@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?5@ push 537 ; 00000219H mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH $LN39@xmlValidat: ; 4691 : "Value \"%s\" for attribute xmlns of %s is not a declared Notation\n", ; 4692 : value, elem->name, NULL); ; 4693 : } ; 4694 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN2@xmlValidat: ; 4695 : } ; 4696 : ; 4697 : /* Second, verify that it's among the list */ ; 4698 : while (tree != NULL) { cmp DWORD PTR _tree$3[ebp], 0 je SHORT $LN3@xmlValidat ; 4699 : if (xmlStrEqual(tree->name, value)) break; mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _tree$3[ebp] mov ecx, DWORD PTR [eax+4] push ecx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN40@xmlValidat jmp SHORT $LN3@xmlValidat $LN40@xmlValidat: ; 4700 : tree = tree->next; mov edx, DWORD PTR _tree$3[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _tree$3[ebp], eax ; 4701 : } jmp SHORT $LN2@xmlValidat $LN3@xmlValidat: ; 4702 : if (tree == NULL) { cmp DWORD PTR _tree$3[ebp], 0 jne SHORT $LN35@xmlValidat ; 4703 : if (ns->prefix != NULL) { mov ecx, DWORD PTR _ns$[ebp] cmp DWORD PTR [ecx+12], 0 je SHORT $LN42@xmlValidat ; 4704 : xmlErrValidNode(ctxt, elem, XML_DTD_NOTATION_VALUE, mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _ns$[ebp] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _value$[ebp] push eax push OFFSET ??_C@_0EP@PJCDPKEK@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?3@ push 527 ; 0000020fH mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4705 : "Value \"%s\" for attribute xmlns:%s of %s is not among the enumerated notations\n", ; 4706 : value, ns->prefix, elem->name); ; 4707 : } else { jmp SHORT $LN43@xmlValidat $LN42@xmlValidat: ; 4708 : xmlErrValidNode(ctxt, elem, XML_DTD_NOTATION_VALUE, push 0 mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _value$[ebp] push edx push OFFSET ??_C@_0EM@LDEIIDJK@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?5@ push 527 ; 0000020fH mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH $LN43@xmlValidat: ; 4709 : "Value \"%s\" for attribute xmlns of %s is not among the enumerated notations\n", ; 4710 : value, elem->name, NULL); ; 4711 : } ; 4712 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN35@xmlValidat: ; 4713 : } ; 4714 : } ; 4715 : ; 4716 : /* Validity Constraint: Enumeration */ ; 4717 : if (attrDecl->atype == XML_ATTRIBUTE_ENUMERATION) { mov edx, DWORD PTR _attrDecl$[ebp] cmp DWORD PTR [edx+40], 9 jne $LN44@xmlValidat ; 4718 : xmlEnumerationPtr tree = attrDecl->tree; mov eax, DWORD PTR _attrDecl$[ebp] mov ecx, DWORD PTR [eax+52] mov DWORD PTR _tree$1[ebp], ecx $LN4@xmlValidat: ; 4719 : while (tree != NULL) { cmp DWORD PTR _tree$1[ebp], 0 je SHORT $LN5@xmlValidat ; 4720 : if (xmlStrEqual(tree->name, value)) break; mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _tree$1[ebp] mov ecx, DWORD PTR [eax+4] push ecx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN45@xmlValidat jmp SHORT $LN5@xmlValidat $LN45@xmlValidat: ; 4721 : tree = tree->next; mov edx, DWORD PTR _tree$1[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _tree$1[ebp], eax ; 4722 : } jmp SHORT $LN4@xmlValidat $LN5@xmlValidat: ; 4723 : if (tree == NULL) { cmp DWORD PTR _tree$1[ebp], 0 jne SHORT $LN44@xmlValidat ; 4724 : if (ns->prefix != NULL) { mov ecx, DWORD PTR _ns$[ebp] cmp DWORD PTR [ecx+12], 0 je SHORT $LN47@xmlValidat ; 4725 : xmlErrValidNode(ctxt, elem, XML_DTD_ATTRIBUTE_VALUE, mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _ns$[ebp] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _value$[ebp] push eax push OFFSET ??_C@_0EJ@PDIHKDMN@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?3@ push 502 ; 000001f6H mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4726 : "Value \"%s\" for attribute xmlns:%s of %s is not among the enumerated set\n", ; 4727 : value, ns->prefix, elem->name); ; 4728 : } else { jmp SHORT $LN48@xmlValidat $LN47@xmlValidat: ; 4729 : xmlErrValidNode(ctxt, elem, XML_DTD_ATTRIBUTE_VALUE, push 0 mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _value$[ebp] push edx push OFFSET ??_C@_0EG@CDCEFKCM@Value?5?$CC?$CFs?$CC?5for?5attribute?5xmlns?5@ push 502 ; 000001f6H mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH $LN48@xmlValidat: ; 4730 : "Value \"%s\" for attribute xmlns of %s is not among the enumerated set\n", ; 4731 : value, elem->name, NULL); ; 4732 : } ; 4733 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN44@xmlValidat: ; 4734 : } ; 4735 : } ; 4736 : ; 4737 : /* Fixed Attribute Default */ ; 4738 : if ((attrDecl->def == XML_ATTRIBUTE_FIXED) && mov edx, DWORD PTR _attrDecl$[ebp] cmp DWORD PTR [edx+44], 4 jne $LN49@xmlValidat mov eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _attrDecl$[ebp] mov edx, DWORD PTR [ecx+48] push edx call _xmlStrEqual add esp, 8 test eax, eax jne SHORT $LN49@xmlValidat ; 4739 : (!xmlStrEqual(attrDecl->defaultValue, value))) { ; 4740 : if (ns->prefix != NULL) { mov eax, DWORD PTR _ns$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN50@xmlValidat ; 4741 : xmlErrValidNode(ctxt, elem, XML_DTD_ELEM_NAMESPACE, mov ecx, DWORD PTR _attrDecl$[ebp] mov edx, DWORD PTR [ecx+48] push edx mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _ns$[ebp] mov eax, DWORD PTR [edx+12] push eax push OFFSET ??_C@_0DB@DPJFCMMB@Value?5for?5attribute?5xmlns?3?$CFs?5of@ push 508 ; 000001fcH mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4742 : "Value for attribute xmlns:%s of %s must be \"%s\"\n", ; 4743 : ns->prefix, elem->name, attrDecl->defaultValue); ; 4744 : } else { jmp SHORT $LN51@xmlValidat $LN50@xmlValidat: ; 4745 : xmlErrValidNode(ctxt, elem, XML_DTD_ELEM_NAMESPACE, push 0 mov eax, DWORD PTR _attrDecl$[ebp] mov ecx, DWORD PTR [eax+48] push ecx mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax push OFFSET ??_C@_0CO@DNGFHLPE@Value?5for?5attribute?5xmlns?5of?5?$CFs@ push 508 ; 000001fcH mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH $LN51@xmlValidat: ; 4746 : "Value for attribute xmlns of %s must be \"%s\"\n", ; 4747 : elem->name, attrDecl->defaultValue, NULL); ; 4748 : } ; 4749 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN49@xmlValidat: ; 4750 : } ; 4751 : ; 4752 : /* Extra check for the attribute value */ ; 4753 : if (ns->prefix != NULL) { mov eax, DWORD PTR _ns$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN52@xmlValidat ; 4754 : ret &= xmlValidateAttributeValue2(ctxt, doc, ns->prefix, mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _attrDecl$[ebp] mov eax, DWORD PTR [edx+40] push eax mov ecx, DWORD PTR _ns$[ebp] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _doc$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlValidateAttributeValue2 add esp, 20 ; 00000014H and eax, DWORD PTR _ret$[ebp] mov DWORD PTR _ret$[ebp], eax ; 4755 : attrDecl->atype, value); ; 4756 : } else { jmp SHORT $LN53@xmlValidat $LN52@xmlValidat: ; 4757 : ret &= xmlValidateAttributeValue2(ctxt, doc, BAD_CAST "xmlns", mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _attrDecl$[ebp] mov ecx, DWORD PTR [eax+40] push ecx push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov edx, DWORD PTR _doc$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlValidateAttributeValue2 add esp, 20 ; 00000014H and eax, DWORD PTR _ret$[ebp] mov DWORD PTR _ret$[ebp], eax $LN53@xmlValidat: ; 4758 : attrDecl->atype, value); ; 4759 : } ; 4760 : ; 4761 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlValidat: ; 4762 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN57@xmlValidat call @_RTC_CheckStackVars@8 pop eax pop edx pop edi pop esi add esp, 88 ; 00000058H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 $LN57@xmlValidat: DD 1 DD $LN56@xmlValidat $LN56@xmlValidat: DD -68 ; ffffffbcH DD 50 ; 00000032H DD $LN55@xmlValidat $LN55@xmlValidat: DB 102 ; 00000066H DB 110 ; 0000006eH DB 0 _xmlValidateOneNamespace ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateOneAttribute _TEXT SEGMENT _tree$1 = -88 ; size = 4 _nota$2 = -84 ; size = 4 _tree$3 = -80 ; size = 4 _fullname$4 = -76 ; size = 4 _fn$5 = -68 ; size = 50 _ret$ = -12 ; size = 4 _val$ = -8 ; size = 4 _attrDecl$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _elem$ = 16 ; size = 4 _attr$ = 20 ; size = 4 _value$ = 24 ; size = 4 _xmlValidateOneAttribute PROC ; COMDAT ; 4383 : { push ebp mov ebp, esp sub esp, 88 ; 00000058H push esi push edi lea edi, DWORD PTR [ebp-88] mov ecx, 22 ; 00000016H mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 4384 : xmlAttributePtr attrDecl = NULL; mov DWORD PTR _attrDecl$[ebp], 0 ; 4385 : int val; ; 4386 : int ret = 1; mov DWORD PTR _ret$[ebp], 1 ; 4387 : ; 4388 : CHECK_DTD; cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN6@xmlValidat xor eax, eax jmp $LN1@xmlValidat jmp SHORT $LN7@xmlValidat $LN6@xmlValidat: mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+44], 0 jne SHORT $LN7@xmlValidat mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+48], 0 jne SHORT $LN7@xmlValidat xor eax, eax jmp $LN1@xmlValidat $LN7@xmlValidat: ; 4389 : if ((elem == NULL) || (elem->name == NULL)) return(0); cmp DWORD PTR _elem$[ebp], 0 je SHORT $LN10@xmlValidat mov edx, DWORD PTR _elem$[ebp] cmp DWORD PTR [edx+8], 0 jne SHORT $LN9@xmlValidat $LN10@xmlValidat: xor eax, eax jmp $LN1@xmlValidat $LN9@xmlValidat: ; 4390 : if ((attr == NULL) || (attr->name == NULL)) return(0); cmp DWORD PTR _attr$[ebp], 0 je SHORT $LN12@xmlValidat mov eax, DWORD PTR _attr$[ebp] cmp DWORD PTR [eax+8], 0 jne SHORT $LN11@xmlValidat $LN12@xmlValidat: xor eax, eax jmp $LN1@xmlValidat $LN11@xmlValidat: ; 4391 : ; 4392 : if ((elem->ns != NULL) && (elem->ns->prefix != NULL)) { mov ecx, DWORD PTR _elem$[ebp] cmp DWORD PTR [ecx+36], 0 je $LN13@xmlValidat mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+36] cmp DWORD PTR [eax+12], 0 je $LN13@xmlValidat ; 4393 : xmlChar fn[50]; ; 4394 : xmlChar *fullname; ; 4395 : ; 4396 : fullname = xmlBuildQName(elem->name, elem->ns->prefix, fn, 50); push 50 ; 00000032H lea ecx, DWORD PTR _fn$5[ebp] push ecx mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+36] mov ecx, DWORD PTR [eax+12] push ecx mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlBuildQName add esp, 16 ; 00000010H mov DWORD PTR _fullname$4[ebp], eax ; 4397 : if (fullname == NULL) cmp DWORD PTR _fullname$4[ebp], 0 jne SHORT $LN14@xmlValidat ; 4398 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN14@xmlValidat: ; 4399 : if (attr->ns != NULL) { mov ecx, DWORD PTR _attr$[ebp] cmp DWORD PTR [ecx+36], 0 je SHORT $LN15@xmlValidat ; 4400 : attrDecl = xmlGetDtdQAttrDesc(doc->intSubset, fullname, mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+36] mov ecx, DWORD PTR [eax+12] push ecx mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _fullname$4[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+44] push eax call _xmlGetDtdQAttrDesc add esp, 16 ; 00000010H mov DWORD PTR _attrDecl$[ebp], eax ; 4401 : attr->name, attr->ns->prefix); ; 4402 : if ((attrDecl == NULL) && (doc->extSubset != NULL)) cmp DWORD PTR _attrDecl$[ebp], 0 jne SHORT $LN17@xmlValidat mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+48], 0 je SHORT $LN17@xmlValidat ; 4403 : attrDecl = xmlGetDtdQAttrDesc(doc->extSubset, fullname, mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+36] mov ecx, DWORD PTR [eax+12] push ecx mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _fullname$4[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+48] push eax call _xmlGetDtdQAttrDesc add esp, 16 ; 00000010H mov DWORD PTR _attrDecl$[ebp], eax $LN17@xmlValidat: ; 4404 : attr->name, attr->ns->prefix); ; 4405 : } else { jmp SHORT $LN16@xmlValidat $LN15@xmlValidat: ; 4406 : attrDecl = xmlGetDtdAttrDesc(doc->intSubset, fullname, attr->name); mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _fullname$4[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+44] push edx call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$[ebp], eax ; 4407 : if ((attrDecl == NULL) && (doc->extSubset != NULL)) cmp DWORD PTR _attrDecl$[ebp], 0 jne SHORT $LN16@xmlValidat mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+48], 0 je SHORT $LN16@xmlValidat ; 4408 : attrDecl = xmlGetDtdAttrDesc(doc->extSubset, mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _fullname$4[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+48] push edx call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$[ebp], eax $LN16@xmlValidat: ; 4409 : fullname, attr->name); ; 4410 : } ; 4411 : if ((fullname != fn) && (fullname != elem->name)) lea eax, DWORD PTR _fn$5[ebp] cmp DWORD PTR _fullname$4[ebp], eax je SHORT $LN13@xmlValidat mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR _fullname$4[ebp] cmp edx, DWORD PTR [ecx+8] je SHORT $LN13@xmlValidat ; 4412 : xmlFree(fullname); mov esi, esp mov eax, DWORD PTR _fullname$4[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN13@xmlValidat: ; 4413 : } ; 4414 : if (attrDecl == NULL) { cmp DWORD PTR _attrDecl$[ebp], 0 jne $LN20@xmlValidat ; 4415 : if (attr->ns != NULL) { mov ecx, DWORD PTR _attr$[ebp] cmp DWORD PTR [ecx+36], 0 je SHORT $LN21@xmlValidat ; 4416 : attrDecl = xmlGetDtdQAttrDesc(doc->intSubset, elem->name, mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+36] mov ecx, DWORD PTR [eax+12] push ecx mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+44] push ecx call _xmlGetDtdQAttrDesc add esp, 16 ; 00000010H mov DWORD PTR _attrDecl$[ebp], eax ; 4417 : attr->name, attr->ns->prefix); ; 4418 : if ((attrDecl == NULL) && (doc->extSubset != NULL)) cmp DWORD PTR _attrDecl$[ebp], 0 jne SHORT $LN23@xmlValidat mov edx, DWORD PTR _doc$[ebp] cmp DWORD PTR [edx+48], 0 je SHORT $LN23@xmlValidat ; 4419 : attrDecl = xmlGetDtdQAttrDesc(doc->extSubset, elem->name, mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+36] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+48] push edx call _xmlGetDtdQAttrDesc add esp, 16 ; 00000010H mov DWORD PTR _attrDecl$[ebp], eax $LN23@xmlValidat: ; 4420 : attr->name, attr->ns->prefix); ; 4421 : } else { jmp SHORT $LN20@xmlValidat $LN21@xmlValidat: ; 4422 : attrDecl = xmlGetDtdAttrDesc(doc->intSubset, mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+44] push edx call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$[ebp], eax ; 4423 : elem->name, attr->name); ; 4424 : if ((attrDecl == NULL) && (doc->extSubset != NULL)) cmp DWORD PTR _attrDecl$[ebp], 0 jne SHORT $LN20@xmlValidat mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+48], 0 je SHORT $LN20@xmlValidat ; 4425 : attrDecl = xmlGetDtdAttrDesc(doc->extSubset, mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+48] push eax call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$[ebp], eax $LN20@xmlValidat: ; 4426 : elem->name, attr->name); ; 4427 : } ; 4428 : } ; 4429 : ; 4430 : ; 4431 : /* Validity Constraint: Attribute Value Type */ ; 4432 : if (attrDecl == NULL) { cmp DWORD PTR _attrDecl$[ebp], 0 jne SHORT $LN25@xmlValidat ; 4433 : xmlErrValidNode(ctxt, elem, XML_DTD_UNKNOWN_ATTRIBUTE, push 0 mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx push OFFSET ??_C@_0CP@IDGJHJLH@No?5declaration?5for?5attribute?5?$CFs@ push 533 ; 00000215H mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4434 : "No declaration for attribute %s of element %s\n", ; 4435 : attr->name, elem->name, NULL); ; 4436 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN25@xmlValidat: ; 4437 : } ; 4438 : attr->atype = attrDecl->atype; mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR _attrDecl$[ebp] mov eax, DWORD PTR [edx+40] mov DWORD PTR [ecx+40], eax ; 4439 : ; 4440 : val = xmlValidateAttributeValueInternal(doc, attrDecl->atype, value); mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _attrDecl$[ebp] mov eax, DWORD PTR [edx+40] push eax mov ecx, DWORD PTR _doc$[ebp] push ecx call _xmlValidateAttributeValueInternal add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 4441 : if (val == 0) { cmp DWORD PTR _val$[ebp], 0 jne SHORT $LN26@xmlValidat ; 4442 : xmlErrValidNode(ctxt, elem, XML_DTD_ATTRIBUTE_VALUE, push 0 mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+8] push edx push OFFSET ??_C@_0DF@PPLCGADM@Syntax?5of?5value?5for?5attribute?5?$CF@ push 502 ; 000001f6H mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4443 : "Syntax of value for attribute %s of %s is not valid\n", ; 4444 : attr->name, elem->name, NULL); ; 4445 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN26@xmlValidat: ; 4446 : } ; 4447 : ; 4448 : /* Validity constraint: Fixed Attribute Default */ ; 4449 : if (attrDecl->def == XML_ATTRIBUTE_FIXED) { mov edx, DWORD PTR _attrDecl$[ebp] cmp DWORD PTR [edx+44], 4 jne SHORT $LN27@xmlValidat ; 4450 : if (!xmlStrEqual(value, attrDecl->defaultValue)) { mov eax, DWORD PTR _attrDecl$[ebp] mov ecx, DWORD PTR [eax+48] push ecx mov edx, DWORD PTR _value$[ebp] push edx call _xmlStrEqual add esp, 8 test eax, eax jne SHORT $LN27@xmlValidat ; 4451 : xmlErrValidNode(ctxt, elem, XML_DTD_ATTRIBUTE_DEFAULT, mov eax, DWORD PTR _attrDecl$[ebp] mov ecx, DWORD PTR [eax+48] push ecx mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+8] push edx push OFFSET ??_C@_0DN@BPCEOAOB@Value?5for?5attribute?5?$CFs?5of?5?$CFs?5is@ push 500 ; 000001f4H mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4452 : "Value for attribute %s of %s is different from default \"%s\"\n", ; 4453 : attr->name, elem->name, attrDecl->defaultValue); ; 4454 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN27@xmlValidat: ; 4455 : } ; 4456 : } ; 4457 : ; 4458 : /* Validity Constraint: ID uniqueness */ ; 4459 : if (attrDecl->atype == XML_ATTRIBUTE_ID) { mov edx, DWORD PTR _attrDecl$[ebp] cmp DWORD PTR [edx+40], 2 jne SHORT $LN29@xmlValidat ; 4460 : if (xmlAddID(ctxt, doc, value, attr) == NULL) mov eax, DWORD PTR _attr$[ebp] push eax mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlAddID add esp, 16 ; 00000010H test eax, eax jne SHORT $LN29@xmlValidat ; 4461 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN29@xmlValidat: ; 4462 : } ; 4463 : ; 4464 : if ((attrDecl->atype == XML_ATTRIBUTE_IDREF) || mov ecx, DWORD PTR _attrDecl$[ebp] cmp DWORD PTR [ecx+40], 3 je SHORT $LN32@xmlValidat mov edx, DWORD PTR _attrDecl$[ebp] cmp DWORD PTR [edx+40], 4 jne SHORT $LN31@xmlValidat $LN32@xmlValidat: ; 4465 : (attrDecl->atype == XML_ATTRIBUTE_IDREFS)) { ; 4466 : if (xmlAddRef(ctxt, doc, value, attr) == NULL) mov eax, DWORD PTR _attr$[ebp] push eax mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlAddRef add esp, 16 ; 00000010H test eax, eax jne SHORT $LN31@xmlValidat ; 4467 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN31@xmlValidat: ; 4468 : } ; 4469 : ; 4470 : /* Validity Constraint: Notation Attributes */ ; 4471 : if (attrDecl->atype == XML_ATTRIBUTE_NOTATION) { mov ecx, DWORD PTR _attrDecl$[ebp] cmp DWORD PTR [ecx+40], 10 ; 0000000aH jne $LN34@xmlValidat ; 4472 : xmlEnumerationPtr tree = attrDecl->tree; mov edx, DWORD PTR _attrDecl$[ebp] mov eax, DWORD PTR [edx+52] mov DWORD PTR _tree$3[ebp], eax ; 4473 : xmlNotationPtr nota; ; 4474 : ; 4475 : /* First check that the given NOTATION was declared */ ; 4476 : nota = xmlGetDtdNotationDesc(doc->intSubset, value); mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+44] push eax call _xmlGetDtdNotationDesc add esp, 8 mov DWORD PTR _nota$2[ebp], eax ; 4477 : if (nota == NULL) cmp DWORD PTR _nota$2[ebp], 0 jne SHORT $LN35@xmlValidat ; 4478 : nota = xmlGetDtdNotationDesc(doc->extSubset, value); mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+48] push eax call _xmlGetDtdNotationDesc add esp, 8 mov DWORD PTR _nota$2[ebp], eax $LN35@xmlValidat: ; 4479 : ; 4480 : if (nota == NULL) { cmp DWORD PTR _nota$2[ebp], 0 jne SHORT $LN2@xmlValidat ; 4481 : xmlErrValidNode(ctxt, elem, XML_DTD_UNKNOWN_NOTATION, mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _value$[ebp] push edx push OFFSET ??_C@_0DO@HAIKKCN@Value?5?$CC?$CFs?$CC?5for?5attribute?5?$CFs?5of?5@ push 537 ; 00000219H mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4482 : "Value \"%s\" for attribute %s of %s is not a declared Notation\n", ; 4483 : value, attr->name, elem->name); ; 4484 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN2@xmlValidat: ; 4485 : } ; 4486 : ; 4487 : /* Second, verify that it's among the list */ ; 4488 : while (tree != NULL) { cmp DWORD PTR _tree$3[ebp], 0 je SHORT $LN3@xmlValidat ; 4489 : if (xmlStrEqual(tree->name, value)) break; mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _tree$3[ebp] mov ecx, DWORD PTR [eax+4] push ecx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN37@xmlValidat jmp SHORT $LN3@xmlValidat $LN37@xmlValidat: ; 4490 : tree = tree->next; mov edx, DWORD PTR _tree$3[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _tree$3[ebp], eax ; 4491 : } jmp SHORT $LN2@xmlValidat $LN3@xmlValidat: ; 4492 : if (tree == NULL) { cmp DWORD PTR _tree$3[ebp], 0 jne SHORT $LN34@xmlValidat ; 4493 : xmlErrValidNode(ctxt, elem, XML_DTD_NOTATION_VALUE, mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _value$[ebp] push edx push OFFSET ??_C@_0EJ@LLDEHINL@Value?5?$CC?$CFs?$CC?5for?5attribute?5?$CFs?5of?5@ push 527 ; 0000020fH mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4494 : "Value \"%s\" for attribute %s of %s is not among the enumerated notations\n", ; 4495 : value, attr->name, elem->name); ; 4496 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN34@xmlValidat: ; 4497 : } ; 4498 : } ; 4499 : ; 4500 : /* Validity Constraint: Enumeration */ ; 4501 : if (attrDecl->atype == XML_ATTRIBUTE_ENUMERATION) { mov edx, DWORD PTR _attrDecl$[ebp] cmp DWORD PTR [edx+40], 9 jne SHORT $LN39@xmlValidat ; 4502 : xmlEnumerationPtr tree = attrDecl->tree; mov eax, DWORD PTR _attrDecl$[ebp] mov ecx, DWORD PTR [eax+52] mov DWORD PTR _tree$1[ebp], ecx $LN4@xmlValidat: ; 4503 : while (tree != NULL) { cmp DWORD PTR _tree$1[ebp], 0 je SHORT $LN5@xmlValidat ; 4504 : if (xmlStrEqual(tree->name, value)) break; mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _tree$1[ebp] mov ecx, DWORD PTR [eax+4] push ecx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN40@xmlValidat jmp SHORT $LN5@xmlValidat $LN40@xmlValidat: ; 4505 : tree = tree->next; mov edx, DWORD PTR _tree$1[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _tree$1[ebp], eax ; 4506 : } jmp SHORT $LN4@xmlValidat $LN5@xmlValidat: ; 4507 : if (tree == NULL) { cmp DWORD PTR _tree$1[ebp], 0 jne SHORT $LN39@xmlValidat ; 4508 : xmlErrValidNode(ctxt, elem, XML_DTD_ATTRIBUTE_VALUE, mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _value$[ebp] push edx push OFFSET ??_C@_0ED@GMECILPN@Value?5?$CC?$CFs?$CC?5for?5attribute?5?$CFs?5of?5@ push 502 ; 000001f6H mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4509 : "Value \"%s\" for attribute %s of %s is not among the enumerated set\n", ; 4510 : value, attr->name, elem->name); ; 4511 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN39@xmlValidat: ; 4512 : } ; 4513 : } ; 4514 : ; 4515 : /* Fixed Attribute Default */ ; 4516 : if ((attrDecl->def == XML_ATTRIBUTE_FIXED) && mov edx, DWORD PTR _attrDecl$[ebp] cmp DWORD PTR [edx+44], 4 jne SHORT $LN42@xmlValidat mov eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _attrDecl$[ebp] mov edx, DWORD PTR [ecx+48] push edx call _xmlStrEqual add esp, 8 test eax, eax jne SHORT $LN42@xmlValidat ; 4517 : (!xmlStrEqual(attrDecl->defaultValue, value))) { ; 4518 : xmlErrValidNode(ctxt, elem, XML_DTD_ATTRIBUTE_VALUE, mov eax, DWORD PTR _attrDecl$[ebp] mov ecx, DWORD PTR [eax+48] push ecx mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+8] push edx push OFFSET ??_C@_0CL@KKBPHLEC@Value?5for?5attribute?5?$CFs?5of?5?$CFs?5mu@ push 502 ; 000001f6H mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4519 : "Value for attribute %s of %s must be \"%s\"\n", ; 4520 : attr->name, elem->name, attrDecl->defaultValue); ; 4521 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN42@xmlValidat: ; 4522 : } ; 4523 : ; 4524 : /* Extra check for the attribute value */ ; 4525 : ret &= xmlValidateAttributeValue2(ctxt, doc, attr->name, mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _attrDecl$[ebp] mov ecx, DWORD PTR [eax+40] push ecx mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _doc$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlValidateAttributeValue2 add esp, 20 ; 00000014H and eax, DWORD PTR _ret$[ebp] mov DWORD PTR _ret$[ebp], eax ; 4526 : attrDecl->atype, value); ; 4527 : ; 4528 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlValidat: ; 4529 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN46@xmlValidat call @_RTC_CheckStackVars@8 pop eax pop edx pop edi pop esi add esp, 88 ; 00000058H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 $LN46@xmlValidat: DD 1 DD $LN45@xmlValidat $LN45@xmlValidat: DD -68 ; ffffffbcH DD 50 ; 00000032H DD $LN44@xmlValidat $LN44@xmlValidat: DB 102 ; 00000066H DB 110 ; 0000006eH DB 0 _xmlValidateOneAttribute ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateOneElement _TEXT SEGMENT tv184 = -144 ; size = 4 tv71 = -140 ; size = 4 _ns$1 = -136 ; size = 4 _ns$2 = -132 ; size = 4 _nameSpace$3 = -128 ; size = 4 _attrib$4 = -124 ; size = 4 _ns$5 = -120 ; size = 4 _ns$6 = -116 ; size = 4 _qualified$7 = -112 ; size = 4 _content$8 = -108 ; size = 4 _fullname$9 = -104 ; size = 4 _fn$10 = -96 ; size = 50 _extsubset$ = -36 ; size = 4 _name$ = -28 ; size = 4 _tmp$ = -24 ; size = 4 _ret$ = -20 ; size = 4 _child$ = -16 ; size = 4 _attr$ = -12 ; size = 4 _cont$ = -8 ; size = 4 _elemDecl$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _elem$ = 16 ; size = 4 _xmlValidateOneElement PROC ; COMDAT ; 5982 : xmlNodePtr elem) { push ebp mov ebp, esp sub esp, 144 ; 00000090H push esi push edi lea edi, DWORD PTR [ebp-144] mov ecx, 36 ; 00000024H mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 5983 : xmlElementPtr elemDecl = NULL; mov DWORD PTR _elemDecl$[ebp], 0 ; 5984 : xmlElementContentPtr cont; ; 5985 : xmlAttributePtr attr; ; 5986 : xmlNodePtr child; ; 5987 : int ret = 1, tmp; mov DWORD PTR _ret$[ebp], 1 ; 5988 : const xmlChar *name; ; 5989 : int extsubset = 0; mov DWORD PTR _extsubset$[ebp], 0 ; 5990 : ; 5991 : CHECK_DTD; cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN28@xmlValidat xor eax, eax jmp $LN1@xmlValidat jmp SHORT $LN29@xmlValidat $LN28@xmlValidat: mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+44], 0 jne SHORT $LN29@xmlValidat mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+48], 0 jne SHORT $LN29@xmlValidat xor eax, eax jmp $LN1@xmlValidat $LN29@xmlValidat: ; 5992 : ; 5993 : if (elem == NULL) return(0); cmp DWORD PTR _elem$[ebp], 0 jne SHORT $LN31@xmlValidat xor eax, eax jmp $LN1@xmlValidat $LN31@xmlValidat: ; 5994 : switch (elem->type) { mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+4] mov DWORD PTR tv71[ebp], eax mov ecx, DWORD PTR tv71[ebp] sub ecx, 1 mov DWORD PTR tv71[ebp], ecx cmp DWORD PTR tv71[ebp], 19 ; 00000013H ja $LN44@xmlValidat mov edx, DWORD PTR tv71[ebp] movzx eax, BYTE PTR $LN117@xmlValidat[edx] jmp DWORD PTR $LN122@xmlValidat[eax*4] $LN32@xmlValidat: ; 5995 : case XML_ATTRIBUTE_NODE: ; 5996 : xmlErrValidNode(ctxt, elem, XML_ERR_INTERNAL_ERROR, push 0 push 0 push 0 push OFFSET ??_C@_0CA@EPFCDFAG@Attribute?5element?5not?5expected?6@ push 1 mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 5997 : "Attribute element not expected\n", NULL, NULL ,NULL); ; 5998 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN33@xmlValidat: ; 5999 : case XML_TEXT_NODE: ; 6000 : if (elem->children != NULL) { mov eax, DWORD PTR _elem$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN34@xmlValidat ; 6001 : xmlErrValidNode(ctxt, elem, XML_ERR_INTERNAL_ERROR, push 0 push 0 push 0 push OFFSET ??_C@_0BN@JALMDBBB@Text?5element?5has?5children?5?$CB?6@ push 1 mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6002 : "Text element has children !\n", ; 6003 : NULL,NULL,NULL); ; 6004 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN34@xmlValidat: ; 6005 : } ; 6006 : if (elem->ns != NULL) { mov eax, DWORD PTR _elem$[ebp] cmp DWORD PTR [eax+36], 0 je SHORT $LN35@xmlValidat ; 6007 : xmlErrValidNode(ctxt, elem, XML_ERR_INTERNAL_ERROR, push 0 push 0 push 0 push OFFSET ??_C@_0BO@NIGEHALL@Text?5element?5has?5namespace?5?$CB?6@ push 1 mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6008 : "Text element has namespace !\n", ; 6009 : NULL,NULL,NULL); ; 6010 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN35@xmlValidat: ; 6011 : } ; 6012 : if (elem->content == NULL) { mov eax, DWORD PTR _elem$[ebp] cmp DWORD PTR [eax+40], 0 jne SHORT $LN36@xmlValidat ; 6013 : xmlErrValidNode(ctxt, elem, XML_ERR_INTERNAL_ERROR, push 0 push 0 push 0 push OFFSET ??_C@_0BP@DPPADDEP@Text?5element?5has?5no?5content?5?$CB?6@ push 1 mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6014 : "Text element has no content !\n", ; 6015 : NULL,NULL,NULL); ; 6016 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN36@xmlValidat: ; 6017 : } ; 6018 : return(1); mov eax, 1 jmp $LN1@xmlValidat $LN37@xmlValidat: ; 6019 : case XML_XINCLUDE_START: ; 6020 : case XML_XINCLUDE_END: ; 6021 : return(1); mov eax, 1 jmp $LN1@xmlValidat $LN38@xmlValidat: ; 6022 : case XML_CDATA_SECTION_NODE: ; 6023 : case XML_ENTITY_REF_NODE: ; 6024 : case XML_PI_NODE: ; 6025 : case XML_COMMENT_NODE: ; 6026 : return(1); mov eax, 1 jmp $LN1@xmlValidat $LN39@xmlValidat: ; 6027 : case XML_ENTITY_NODE: ; 6028 : xmlErrValidNode(ctxt, elem, XML_ERR_INTERNAL_ERROR, push 0 push 0 push 0 push OFFSET ??_C@_0BN@CJFFIPOP@Entity?5element?5not?5expected?6@ push 1 mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6029 : "Entity element not expected\n", NULL, NULL ,NULL); ; 6030 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN40@xmlValidat: ; 6031 : case XML_NOTATION_NODE: ; 6032 : xmlErrValidNode(ctxt, elem, XML_ERR_INTERNAL_ERROR, push 0 push 0 push 0 push OFFSET ??_C@_0BP@FEDJMKLA@Notation?5element?5not?5expected?6@ push 1 mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6033 : "Notation element not expected\n", NULL, NULL ,NULL); ; 6034 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN41@xmlValidat: ; 6035 : case XML_DOCUMENT_NODE: ; 6036 : case XML_DOCUMENT_TYPE_NODE: ; 6037 : case XML_DOCUMENT_FRAG_NODE: ; 6038 : xmlErrValidNode(ctxt, elem, XML_ERR_INTERNAL_ERROR, push 0 push 0 push 0 push OFFSET ??_C@_0BP@LPODOPI@Document?5element?5not?5expected?6@ push 1 mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6039 : "Document element not expected\n", NULL, NULL ,NULL); ; 6040 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN42@xmlValidat: ; 6041 : case XML_HTML_DOCUMENT_NODE: ; 6042 : xmlErrValidNode(ctxt, elem, XML_ERR_INTERNAL_ERROR, push 0 push 0 push 0 push OFFSET ??_C@_0BM@DIBMDMIN@HTML?5Document?5not?5expected?6@ push 1 mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6043 : "HTML Document not expected\n", NULL, NULL ,NULL); ; 6044 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN43@xmlValidat: ; 6045 : case XML_ELEMENT_NODE: ; 6046 : break; jmp SHORT $LN2@xmlValidat $LN44@xmlValidat: ; 6047 : default: ; 6048 : xmlErrValidNode(ctxt, elem, XML_ERR_INTERNAL_ERROR, push 0 push 0 push 0 push OFFSET ??_C@_0BG@CJHPKHPI@unknown?5element?5type?6@ push 1 mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6049 : "unknown element type\n", NULL, NULL ,NULL); ; 6050 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN2@xmlValidat: ; 6051 : } ; 6052 : ; 6053 : /* ; 6054 : * Fetch the declaration ; 6055 : */ ; 6056 : elemDecl = xmlValidGetElemDecl(ctxt, doc, elem, &extsubset); lea ecx, DWORD PTR _extsubset$[ebp] push ecx mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _doc$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlValidGetElemDecl add esp, 16 ; 00000010H mov DWORD PTR _elemDecl$[ebp], eax ; 6057 : if (elemDecl == NULL) cmp DWORD PTR _elemDecl$[ebp], 0 jne SHORT $LN45@xmlValidat ; 6058 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN45@xmlValidat: ; 6059 : ; 6060 : /* ; 6061 : * If vstateNr is not zero that means continuous validation is ; 6062 : * activated, do not try to check the content model at that level. ; 6063 : */ ; 6064 : if (ctxt->vstateNr == 0) { mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+44], 0 jne $LN46@xmlValidat ; 6065 : /* Check that the element content matches the definition */ ; 6066 : switch (elemDecl->etype) { mov eax, DWORD PTR _elemDecl$[ebp] mov ecx, DWORD PTR [eax+36] mov DWORD PTR tv184[ebp], ecx cmp DWORD PTR tv184[ebp], 4 ja $LN46@xmlValidat mov edx, DWORD PTR tv184[ebp] jmp DWORD PTR $LN123@xmlValidat[edx*4] $LN47@xmlValidat: ; 6067 : case XML_ELEMENT_TYPE_UNDEFINED: ; 6068 : xmlErrValidNode(ctxt, elem, XML_DTD_UNKNOWN_ELEM, push 0 push 0 mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx push OFFSET ??_C@_0BP@CMBGNCIM@No?5declaration?5for?5element?5?$CFs?6@ push 534 ; 00000216H mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6069 : "No declaration for element %s\n", ; 6070 : elem->name, NULL, NULL); ; 6071 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN48@xmlValidat: ; 6072 : case XML_ELEMENT_TYPE_EMPTY: ; 6073 : if (elem->children != NULL) { mov ecx, DWORD PTR _elem$[ebp] cmp DWORD PTR [ecx+12], 0 je SHORT $LN49@xmlValidat ; 6074 : xmlErrValidNode(ctxt, elem, XML_DTD_NOT_EMPTY, push 0 push 0 mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax push OFFSET ??_C@_0DE@KLKCMFPH@Element?5?$CFs?5was?5declared?5EMPTY?5t@ push 528 ; 00000210H mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6075 : "Element %s was declared EMPTY this one has content\n", ; 6076 : elem->name, NULL, NULL); ; 6077 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN49@xmlValidat: ; 6078 : } ; 6079 : break; jmp $LN46@xmlValidat ; 6080 : case XML_ELEMENT_TYPE_ANY: ; 6081 : /* I don't think anything is required then */ ; 6082 : break; jmp $LN46@xmlValidat $LN51@xmlValidat: ; 6083 : case XML_ELEMENT_TYPE_MIXED: ; 6084 : ; 6085 : /* simple case of declared as #PCDATA */ ; 6086 : if ((elemDecl->content != NULL) && mov eax, DWORD PTR _elemDecl$[ebp] cmp DWORD PTR [eax+40], 0 je SHORT $LN52@xmlValidat mov ecx, DWORD PTR _elemDecl$[ebp] mov edx, DWORD PTR [ecx+40] cmp DWORD PTR [edx], 1 jne SHORT $LN52@xmlValidat ; 6087 : (elemDecl->content->type == XML_ELEMENT_CONTENT_PCDATA)) { ; 6088 : ret = xmlValidateOneCdataElement(ctxt, doc, elem); mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlValidateOneCdataElement add esp, 12 ; 0000000cH mov DWORD PTR _ret$[ebp], eax ; 6089 : if (!ret) { cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN53@xmlValidat ; 6090 : xmlErrValidNode(ctxt, elem, XML_DTD_NOT_PCDATA, push 0 push 0 mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx push OFFSET ??_C@_0DN@CFJCCMLK@Element?5?$CFs?5was?5declared?5?$CDPCDATA@ push 529 ; 00000211H mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH $LN53@xmlValidat: ; 6091 : "Element %s was declared #PCDATA but contains non text nodes\n", ; 6092 : elem->name, NULL, NULL); ; 6093 : } ; 6094 : break; jmp $LN46@xmlValidat $LN52@xmlValidat: ; 6095 : } ; 6096 : child = elem->children; mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+12] mov DWORD PTR _child$[ebp], edx $LN6@xmlValidat: ; 6097 : /* Hum, this start to get messy */ ; 6098 : while (child != NULL) { cmp DWORD PTR _child$[ebp], 0 je $LN7@xmlValidat ; 6099 : if (child->type == XML_ELEMENT_NODE) { mov eax, DWORD PTR _child$[ebp] cmp DWORD PTR [eax+4], 1 jne $child_ok$124 ; 6100 : name = child->name; mov ecx, DWORD PTR _child$[ebp] mov edx, DWORD PTR [ecx+8] mov DWORD PTR _name$[ebp], edx ; 6101 : if ((child->ns != NULL) && (child->ns->prefix != NULL)) { mov eax, DWORD PTR _child$[ebp] cmp DWORD PTR [eax+36], 0 je $LN55@xmlValidat mov ecx, DWORD PTR _child$[ebp] mov edx, DWORD PTR [ecx+36] cmp DWORD PTR [edx+12], 0 je $LN55@xmlValidat ; 6102 : xmlChar fn[50]; ; 6103 : xmlChar *fullname; ; 6104 : ; 6105 : fullname = xmlBuildQName(child->name, child->ns->prefix, push 50 ; 00000032H lea eax, DWORD PTR _fn$10[ebp] push eax mov ecx, DWORD PTR _child$[ebp] mov edx, DWORD PTR [ecx+36] mov eax, DWORD PTR [edx+12] push eax mov ecx, DWORD PTR _child$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlBuildQName add esp, 16 ; 00000010H mov DWORD PTR _fullname$9[ebp], eax ; 6106 : fn, 50); ; 6107 : if (fullname == NULL) cmp DWORD PTR _fullname$9[ebp], 0 jne SHORT $LN56@xmlValidat ; 6108 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN56@xmlValidat: ; 6109 : cont = elemDecl->content; mov eax, DWORD PTR _elemDecl$[ebp] mov ecx, DWORD PTR [eax+40] mov DWORD PTR _cont$[ebp], ecx $LN8@xmlValidat: ; 6110 : while (cont != NULL) { cmp DWORD PTR _cont$[ebp], 0 je $LN9@xmlValidat ; 6111 : if (cont->type == XML_ELEMENT_CONTENT_ELEMENT) { mov edx, DWORD PTR _cont$[ebp] cmp DWORD PTR [edx], 2 jne SHORT $LN57@xmlValidat ; 6112 : if (xmlStrEqual(cont->name, fullname)) mov eax, DWORD PTR _fullname$9[ebp] push eax mov ecx, DWORD PTR _cont$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN59@xmlValidat ; 6113 : break; jmp SHORT $LN9@xmlValidat $LN59@xmlValidat: ; 6114 : } else if ((cont->type == XML_ELEMENT_CONTENT_OR) && jmp SHORT $LN58@xmlValidat $LN57@xmlValidat: ; 6115 : (cont->c1 != NULL) && mov eax, DWORD PTR _cont$[ebp] cmp DWORD PTR [eax], 4 jne SHORT $LN60@xmlValidat mov ecx, DWORD PTR _cont$[ebp] cmp DWORD PTR [ecx+12], 0 je SHORT $LN60@xmlValidat mov edx, DWORD PTR _cont$[ebp] mov eax, DWORD PTR [edx+12] cmp DWORD PTR [eax], 2 jne SHORT $LN60@xmlValidat ; 6116 : (cont->c1->type == XML_ELEMENT_CONTENT_ELEMENT)){ ; 6117 : if (xmlStrEqual(cont->c1->name, fullname)) mov ecx, DWORD PTR _fullname$9[ebp] push ecx mov edx, DWORD PTR _cont$[ebp] mov eax, DWORD PTR [edx+12] mov ecx, DWORD PTR [eax+8] push ecx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN62@xmlValidat ; 6118 : break; jmp SHORT $LN9@xmlValidat $LN62@xmlValidat: ; 6119 : } else if ((cont->type != XML_ELEMENT_CONTENT_OR) || jmp SHORT $LN58@xmlValidat $LN60@xmlValidat: ; 6120 : (cont->c1 == NULL) || mov edx, DWORD PTR _cont$[ebp] cmp DWORD PTR [edx], 4 jne SHORT $LN64@xmlValidat mov eax, DWORD PTR _cont$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN64@xmlValidat mov ecx, DWORD PTR _cont$[ebp] mov edx, DWORD PTR [ecx+12] cmp DWORD PTR [edx], 1 je SHORT $LN58@xmlValidat $LN64@xmlValidat: ; 6121 : (cont->c1->type != XML_ELEMENT_CONTENT_PCDATA)){ ; 6122 : xmlErrValid(NULL, XML_DTD_MIXED_CORRUPT, push 0 push OFFSET ??_C@_0CC@LMJFIFCG@Internal?3?5MIXED?5struct?5corrupte@ push 519 ; 00000207H push 0 call _xmlErrValid add esp, 16 ; 00000010H ; 6123 : "Internal: MIXED struct corrupted\n", ; 6124 : NULL); ; 6125 : break; jmp SHORT $LN9@xmlValidat $LN58@xmlValidat: ; 6126 : } ; 6127 : cont = cont->c2; mov eax, DWORD PTR _cont$[ebp] mov ecx, DWORD PTR [eax+16] mov DWORD PTR _cont$[ebp], ecx ; 6128 : } jmp $LN8@xmlValidat $LN9@xmlValidat: ; 6129 : if ((fullname != fn) && (fullname != child->name)) lea edx, DWORD PTR _fn$10[ebp] cmp DWORD PTR _fullname$9[ebp], edx je SHORT $LN65@xmlValidat mov eax, DWORD PTR _child$[ebp] mov ecx, DWORD PTR _fullname$9[ebp] cmp ecx, DWORD PTR [eax+8] je SHORT $LN65@xmlValidat ; 6130 : xmlFree(fullname); mov esi, esp mov edx, DWORD PTR _fullname$9[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN65@xmlValidat: ; 6131 : if (cont != NULL) cmp DWORD PTR _cont$[ebp], 0 je SHORT $LN55@xmlValidat ; 6132 : goto child_ok; jmp $child_ok$124 $LN55@xmlValidat: ; 6133 : } ; 6134 : cont = elemDecl->content; mov eax, DWORD PTR _elemDecl$[ebp] mov ecx, DWORD PTR [eax+40] mov DWORD PTR _cont$[ebp], ecx $LN10@xmlValidat: ; 6135 : while (cont != NULL) { cmp DWORD PTR _cont$[ebp], 0 je $LN11@xmlValidat ; 6136 : if (cont->type == XML_ELEMENT_CONTENT_ELEMENT) { mov edx, DWORD PTR _cont$[ebp] cmp DWORD PTR [edx], 2 jne SHORT $LN67@xmlValidat ; 6137 : if (xmlStrEqual(cont->name, name)) break; mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _cont$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN69@xmlValidat jmp $LN11@xmlValidat $LN69@xmlValidat: ; 6138 : } else if ((cont->type == XML_ELEMENT_CONTENT_OR) && jmp SHORT $LN68@xmlValidat $LN67@xmlValidat: ; 6139 : (cont->c1 != NULL) && mov eax, DWORD PTR _cont$[ebp] cmp DWORD PTR [eax], 4 jne SHORT $LN70@xmlValidat mov ecx, DWORD PTR _cont$[ebp] cmp DWORD PTR [ecx+12], 0 je SHORT $LN70@xmlValidat mov edx, DWORD PTR _cont$[ebp] mov eax, DWORD PTR [edx+12] cmp DWORD PTR [eax], 2 jne SHORT $LN70@xmlValidat ; 6140 : (cont->c1->type == XML_ELEMENT_CONTENT_ELEMENT)) { ; 6141 : if (xmlStrEqual(cont->c1->name, name)) break; mov ecx, DWORD PTR _name$[ebp] push ecx mov edx, DWORD PTR _cont$[ebp] mov eax, DWORD PTR [edx+12] mov ecx, DWORD PTR [eax+8] push ecx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN72@xmlValidat jmp SHORT $LN11@xmlValidat $LN72@xmlValidat: ; 6142 : } else if ((cont->type != XML_ELEMENT_CONTENT_OR) || jmp SHORT $LN68@xmlValidat $LN70@xmlValidat: ; 6143 : (cont->c1 == NULL) || mov edx, DWORD PTR _cont$[ebp] cmp DWORD PTR [edx], 4 jne SHORT $LN74@xmlValidat mov eax, DWORD PTR _cont$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN74@xmlValidat mov ecx, DWORD PTR _cont$[ebp] mov edx, DWORD PTR [ecx+12] cmp DWORD PTR [edx], 1 je SHORT $LN68@xmlValidat $LN74@xmlValidat: ; 6144 : (cont->c1->type != XML_ELEMENT_CONTENT_PCDATA)) { ; 6145 : xmlErrValid(ctxt, XML_DTD_MIXED_CORRUPT, push 0 push OFFSET ??_C@_0CC@LMJFIFCG@Internal?3?5MIXED?5struct?5corrupte@ push 519 ; 00000207H mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValid add esp, 16 ; 00000010H ; 6146 : "Internal: MIXED struct corrupted\n", ; 6147 : NULL); ; 6148 : break; jmp SHORT $LN11@xmlValidat $LN68@xmlValidat: ; 6149 : } ; 6150 : cont = cont->c2; mov ecx, DWORD PTR _cont$[ebp] mov edx, DWORD PTR [ecx+16] mov DWORD PTR _cont$[ebp], edx ; 6151 : } jmp $LN10@xmlValidat $LN11@xmlValidat: ; 6152 : if (cont == NULL) { cmp DWORD PTR _cont$[ebp], 0 jne SHORT $child_ok$124 ; 6153 : xmlErrValidNode(ctxt, elem, XML_DTD_INVALID_CHILD, push 0 mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _name$[ebp] push edx push OFFSET ??_C@_0DM@IPIENEI@Element?5?$CFs?5is?5not?5declared?5in?5?$CF@ push 515 ; 00000203H mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6154 : "Element %s is not declared in %s list of possible children\n", ; 6155 : name, elem->name, NULL); ; 6156 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $child_ok$124: ; 6157 : } ; 6158 : } ; 6159 : child_ok: ; 6160 : child = child->next; mov edx, DWORD PTR _child$[ebp] mov eax, DWORD PTR [edx+24] mov DWORD PTR _child$[ebp], eax ; 6161 : } jmp $LN6@xmlValidat $LN7@xmlValidat: ; 6162 : break; jmp $LN46@xmlValidat $LN76@xmlValidat: ; 6163 : case XML_ELEMENT_TYPE_ELEMENT: ; 6164 : if ((doc->standalone == 1) && (extsubset == 1)) { mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+40], 1 jne $LN77@xmlValidat cmp DWORD PTR _extsubset$[ebp], 1 jne $LN77@xmlValidat ; 6165 : /* ; 6166 : * VC: Standalone Document Declaration ; 6167 : * - element types with element content, if white space ; 6168 : * occurs directly within any instance of those types. ; 6169 : */ ; 6170 : child = elem->children; mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+12] mov DWORD PTR _child$[ebp], eax $LN12@xmlValidat: ; 6171 : while (child != NULL) { cmp DWORD PTR _child$[ebp], 0 je $LN77@xmlValidat ; 6172 : if (child->type == XML_TEXT_NODE) { mov ecx, DWORD PTR _child$[ebp] cmp DWORD PTR [ecx+4], 3 jne SHORT $LN78@xmlValidat ; 6173 : const xmlChar *content = child->content; mov edx, DWORD PTR _child$[ebp] mov eax, DWORD PTR [edx+40] mov DWORD PTR _content$8[ebp], eax $LN14@xmlValidat: ; 6174 : ; 6175 : while (IS_BLANK_CH(*content)) mov ecx, DWORD PTR _content$8[ebp] movzx edx, BYTE PTR [ecx] cmp edx, 32 ; 00000020H je SHORT $LN79@xmlValidat mov eax, DWORD PTR _content$8[ebp] movzx ecx, BYTE PTR [eax] cmp ecx, 9 jl SHORT $LN80@xmlValidat mov edx, DWORD PTR _content$8[ebp] movzx eax, BYTE PTR [edx] cmp eax, 10 ; 0000000aH jle SHORT $LN79@xmlValidat $LN80@xmlValidat: mov ecx, DWORD PTR _content$8[ebp] movzx edx, BYTE PTR [ecx] cmp edx, 13 ; 0000000dH jne SHORT $LN15@xmlValidat $LN79@xmlValidat: ; 6176 : content++; mov eax, DWORD PTR _content$8[ebp] add eax, 1 mov DWORD PTR _content$8[ebp], eax jmp SHORT $LN14@xmlValidat $LN15@xmlValidat: ; 6177 : if (*content == 0) { mov ecx, DWORD PTR _content$8[ebp] movzx edx, BYTE PTR [ecx] test edx, edx jne SHORT $LN78@xmlValidat ; 6178 : xmlErrValidNode(ctxt, elem, push 0 push 0 mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx push OFFSET ??_C@_0EM@LHPMEFBO@standalone?3?5?$CFs?5declared?5in?5the?5@ push 532 ; 00000214H mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6179 : XML_DTD_STANDALONE_WHITE_SPACE, ; 6180 : "standalone: %s declared in the external subset contains white spaces nodes\n", ; 6181 : elem->name, NULL, NULL); ; 6182 : ret = 0; mov DWORD PTR _ret$[ebp], 0 ; 6183 : break; jmp SHORT $LN77@xmlValidat $LN78@xmlValidat: ; 6184 : } ; 6185 : } ; 6186 : child =child->next; mov ecx, DWORD PTR _child$[ebp] mov edx, DWORD PTR [ecx+24] mov DWORD PTR _child$[ebp], edx ; 6187 : } jmp $LN12@xmlValidat $LN77@xmlValidat: ; 6188 : } ; 6189 : child = elem->children; mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+12] mov DWORD PTR _child$[ebp], ecx ; 6190 : cont = elemDecl->content; mov edx, DWORD PTR _elemDecl$[ebp] mov eax, DWORD PTR [edx+40] mov DWORD PTR _cont$[ebp], eax ; 6191 : tmp = xmlValidateElementContent(ctxt, child, elemDecl, 1, elem); mov ecx, DWORD PTR _elem$[ebp] push ecx push 1 mov edx, DWORD PTR _elemDecl$[ebp] push edx mov eax, DWORD PTR _child$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlValidateElementContent add esp, 20 ; 00000014H mov DWORD PTR _tmp$[ebp], eax ; 6192 : if (tmp <= 0) cmp DWORD PTR _tmp$[ebp], 0 jg SHORT $LN46@xmlValidat ; 6193 : ret = tmp; mov edx, DWORD PTR _tmp$[ebp] mov DWORD PTR _ret$[ebp], edx $LN46@xmlValidat: ; 6194 : break; ; 6195 : } ; 6196 : } /* not continuous */ ; 6197 : ; 6198 : /* [ VC: Required Attribute ] */ ; 6199 : attr = elemDecl->attributes; mov eax, DWORD PTR _elemDecl$[ebp] mov ecx, DWORD PTR [eax+44] mov DWORD PTR _attr$[ebp], ecx $LN16@xmlValidat: ; 6200 : while (attr != NULL) { cmp DWORD PTR _attr$[ebp], 0 je $LN17@xmlValidat ; 6201 : if (attr->def == XML_ATTRIBUTE_REQUIRED) { mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+44], 2 jne $LN83@xmlValidat ; 6202 : int qualified = -1; mov DWORD PTR _qualified$7[ebp], -1 ; 6203 : ; 6204 : if ((attr->prefix == NULL) && mov eax, DWORD PTR _attr$[ebp] cmp DWORD PTR [eax+56], 0 jne SHORT $LN85@xmlValidat push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN85@xmlValidat ; 6205 : (xmlStrEqual(attr->name, BAD_CAST "xmlns"))) { ; 6206 : xmlNsPtr ns; ; 6207 : ; 6208 : ns = elem->nsDef; mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+48] mov DWORD PTR _ns$6[ebp], ecx $LN18@xmlValidat: ; 6209 : while (ns != NULL) { cmp DWORD PTR _ns$6[ebp], 0 je SHORT $LN19@xmlValidat ; 6210 : if (ns->prefix == NULL) mov edx, DWORD PTR _ns$6[ebp] cmp DWORD PTR [edx+12], 0 jne SHORT $LN87@xmlValidat ; 6211 : goto found; jmp $found$125 $LN87@xmlValidat: ; 6212 : ns = ns->next; mov eax, DWORD PTR _ns$6[ebp] mov ecx, DWORD PTR [eax] mov DWORD PTR _ns$6[ebp], ecx ; 6213 : } jmp SHORT $LN18@xmlValidat $LN19@xmlValidat: ; 6214 : } else if (xmlStrEqual(attr->prefix, BAD_CAST "xmlns")) { jmp $LN86@xmlValidat $LN85@xmlValidat: push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+56] push eax call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN88@xmlValidat ; 6215 : xmlNsPtr ns; ; 6216 : ; 6217 : ns = elem->nsDef; mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+48] mov DWORD PTR _ns$5[ebp], edx $LN20@xmlValidat: ; 6218 : while (ns != NULL) { cmp DWORD PTR _ns$5[ebp], 0 je SHORT $LN21@xmlValidat ; 6219 : if (xmlStrEqual(attr->name, ns->prefix)) mov eax, DWORD PTR _ns$5[ebp] mov ecx, DWORD PTR [eax+12] push ecx mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN90@xmlValidat ; 6220 : goto found; jmp $found$125 $LN90@xmlValidat: ; 6221 : ns = ns->next; mov ecx, DWORD PTR _ns$5[ebp] mov edx, DWORD PTR [ecx] mov DWORD PTR _ns$5[ebp], edx ; 6222 : } jmp SHORT $LN20@xmlValidat $LN21@xmlValidat: ; 6223 : } else { jmp $LN86@xmlValidat $LN88@xmlValidat: ; 6224 : xmlAttrPtr attrib; ; 6225 : ; 6226 : attrib = elem->properties; mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+44] mov DWORD PTR _attrib$4[ebp], ecx $LN22@xmlValidat: ; 6227 : while (attrib != NULL) { cmp DWORD PTR _attrib$4[ebp], 0 je $LN86@xmlValidat ; 6228 : if (xmlStrEqual(attrib->name, attr->name)) { mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _attrib$4[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN91@xmlValidat ; 6229 : if (attr->prefix != NULL) { mov eax, DWORD PTR _attr$[ebp] cmp DWORD PTR [eax+56], 0 je SHORT $LN92@xmlValidat ; 6230 : xmlNsPtr nameSpace = attrib->ns; mov ecx, DWORD PTR _attrib$4[ebp] mov edx, DWORD PTR [ecx+36] mov DWORD PTR _nameSpace$3[ebp], edx ; 6231 : ; 6232 : if (nameSpace == NULL) cmp DWORD PTR _nameSpace$3[ebp], 0 jne SHORT $LN94@xmlValidat ; 6233 : nameSpace = elem->ns; mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+36] mov DWORD PTR _nameSpace$3[ebp], ecx $LN94@xmlValidat: ; 6234 : /* ; 6235 : * qualified names handling is problematic, having a ; 6236 : * different prefix should be possible but DTDs don't ; 6237 : * allow to define the URI instead of the prefix :-( ; 6238 : */ ; 6239 : if (nameSpace == NULL) { cmp DWORD PTR _nameSpace$3[ebp], 0 jne SHORT $LN95@xmlValidat ; 6240 : if (qualified < 0) cmp DWORD PTR _qualified$7[ebp], 0 jge SHORT $LN97@xmlValidat ; 6241 : qualified = 0; mov DWORD PTR _qualified$7[ebp], 0 $LN97@xmlValidat: ; 6242 : } else if (!xmlStrEqual(nameSpace->prefix, jmp SHORT $LN96@xmlValidat $LN95@xmlValidat: mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+56] push eax mov ecx, DWORD PTR _nameSpace$3[ebp] mov edx, DWORD PTR [ecx+12] push edx call _xmlStrEqual add esp, 8 test eax, eax jne SHORT $LN98@xmlValidat ; 6243 : attr->prefix)) { ; 6244 : if (qualified < 1) cmp DWORD PTR _qualified$7[ebp], 1 jge SHORT $LN100@xmlValidat ; 6245 : qualified = 1; mov DWORD PTR _qualified$7[ebp], 1 $LN100@xmlValidat: ; 6246 : } else jmp SHORT $LN96@xmlValidat $LN98@xmlValidat: ; 6247 : goto found; jmp $found$125 $LN96@xmlValidat: ; 6248 : } else { jmp SHORT $LN91@xmlValidat $LN92@xmlValidat: ; 6249 : /* ; 6250 : * We should allow applications to define namespaces ; 6251 : * for their application even if the DTD doesn't ; 6252 : * carry one, otherwise, basically we would always ; 6253 : * break. ; 6254 : */ ; 6255 : goto found; jmp $found$125 $LN91@xmlValidat: ; 6256 : } ; 6257 : } ; 6258 : attrib = attrib->next; mov eax, DWORD PTR _attrib$4[ebp] mov ecx, DWORD PTR [eax+24] mov DWORD PTR _attrib$4[ebp], ecx ; 6259 : } jmp $LN22@xmlValidat $LN86@xmlValidat: ; 6260 : } ; 6261 : if (qualified == -1) { cmp DWORD PTR _qualified$7[ebp], -1 jne SHORT $LN101@xmlValidat ; 6262 : if (attr->prefix == NULL) { mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+56], 0 jne SHORT $LN103@xmlValidat ; 6263 : xmlErrValidNode(ctxt, elem, XML_DTD_MISSING_ATTRIBUTE, push 0 mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax push OFFSET ??_C@_0CI@KOGIECMM@Element?5?$CFs?5does?5not?5carry?5attri@ push 518 ; 00000206H mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6264 : "Element %s does not carry attribute %s\n", ; 6265 : elem->name, attr->name, NULL); ; 6266 : ret = 0; mov DWORD PTR _ret$[ebp], 0 ; 6267 : } else { jmp SHORT $LN104@xmlValidat $LN103@xmlValidat: ; 6268 : xmlErrValidNode(ctxt, elem, XML_DTD_MISSING_ATTRIBUTE, mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+56] push eax mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx push OFFSET ??_C@_0CL@IDAGHCGO@Element?5?$CFs?5does?5not?5carry?5attri@ push 518 ; 00000206H mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6269 : "Element %s does not carry attribute %s:%s\n", ; 6270 : elem->name, attr->prefix,attr->name); ; 6271 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN104@xmlValidat: ; 6272 : } jmp SHORT $LN102@xmlValidat $LN101@xmlValidat: ; 6273 : } else if (qualified == 0) { cmp DWORD PTR _qualified$7[ebp], 0 jne SHORT $LN105@xmlValidat ; 6274 : xmlErrValidWarning(ctxt, elem, XML_DTD_NO_PREFIX, mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+56] push edx mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx push OFFSET ??_C@_0DD@KAGCOGBM@Element?5?$CFs?5required?5attribute?5?$CF@ push 524 ; 0000020cH mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidWarning add esp, 28 ; 0000001cH jmp SHORT $LN102@xmlValidat $LN105@xmlValidat: ; 6275 : "Element %s required attribute %s:%s has no prefix\n", ; 6276 : elem->name, attr->prefix, attr->name); ; 6277 : } else if (qualified == 1) { cmp DWORD PTR _qualified$7[ebp], 1 jne SHORT $LN102@xmlValidat ; 6278 : xmlErrValidWarning(ctxt, elem, XML_DTD_DIFFERENT_PREFIX, mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+56] push ecx mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax push OFFSET ??_C@_0DK@IGLOKJLK@Element?5?$CFs?5required?5attribute?5?$CF@ push 506 ; 000001faH mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidWarning add esp, 28 ; 0000001cH $LN102@xmlValidat: ; 6279 : "Element %s required attribute %s:%s has different prefix\n", ; 6280 : elem->name, attr->prefix, attr->name); ; 6281 : } jmp $found$125 $LN83@xmlValidat: ; 6282 : } else if (attr->def == XML_ATTRIBUTE_FIXED) { mov eax, DWORD PTR _attr$[ebp] cmp DWORD PTR [eax+44], 4 jne $found$125 ; 6283 : /* ; 6284 : * Special tests checking #FIXED namespace declarations ; 6285 : * have the right value since this is not done as an ; 6286 : * attribute checking ; 6287 : */ ; 6288 : if ((attr->prefix == NULL) && mov ecx, DWORD PTR _attr$[ebp] cmp DWORD PTR [ecx+56], 0 jne $LN109@xmlValidat push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlStrEqual add esp, 8 test eax, eax je $LN109@xmlValidat ; 6289 : (xmlStrEqual(attr->name, BAD_CAST "xmlns"))) { ; 6290 : xmlNsPtr ns; ; 6291 : ; 6292 : ns = elem->nsDef; mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+48] mov DWORD PTR _ns$2[ebp], edx $LN24@xmlValidat: ; 6293 : while (ns != NULL) { cmp DWORD PTR _ns$2[ebp], 0 je SHORT $LN25@xmlValidat ; 6294 : if (ns->prefix == NULL) { mov eax, DWORD PTR _ns$2[ebp] cmp DWORD PTR [eax+12], 0 jne SHORT $LN111@xmlValidat ; 6295 : if (!xmlStrEqual(attr->defaultValue, ns->href)) { mov ecx, DWORD PTR _ns$2[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+48] push ecx call _xmlStrEqual add esp, 8 test eax, eax jne SHORT $LN112@xmlValidat ; 6296 : xmlErrValidNode(ctxt, elem, push 0 push 0 mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax push OFFSET ??_C@_0EI@BIBADMEK@Element?5?$CFs?5namespace?5name?5for?5d@ push 507 ; 000001fbH mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6297 : XML_DTD_ELEM_DEFAULT_NAMESPACE, ; 6298 : "Element %s namespace name for default namespace does not match the DTD\n", ; 6299 : elem->name, NULL, NULL); ; 6300 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN112@xmlValidat: ; 6301 : } ; 6302 : goto found; jmp $found$125 $LN111@xmlValidat: ; 6303 : } ; 6304 : ns = ns->next; mov eax, DWORD PTR _ns$2[ebp] mov ecx, DWORD PTR [eax] mov DWORD PTR _ns$2[ebp], ecx ; 6305 : } jmp SHORT $LN24@xmlValidat $LN25@xmlValidat: ; 6306 : } else if (xmlStrEqual(attr->prefix, BAD_CAST "xmlns")) { jmp $found$125 $LN109@xmlValidat: push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+56] push eax call _xmlStrEqual add esp, 8 test eax, eax je $found$125 ; 6307 : xmlNsPtr ns; ; 6308 : ; 6309 : ns = elem->nsDef; mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+48] mov DWORD PTR _ns$1[ebp], edx $LN26@xmlValidat: ; 6310 : while (ns != NULL) { cmp DWORD PTR _ns$1[ebp], 0 je $found$125 ; 6311 : if (xmlStrEqual(attr->name, ns->prefix)) { mov eax, DWORD PTR _ns$1[ebp] mov ecx, DWORD PTR [eax+12] push ecx mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN114@xmlValidat ; 6312 : if (!xmlStrEqual(attr->defaultValue, ns->href)) { mov ecx, DWORD PTR _ns$1[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+48] push ecx call _xmlStrEqual add esp, 8 test eax, eax jne SHORT $LN115@xmlValidat ; 6313 : xmlErrValidNode(ctxt, elem, XML_DTD_ELEM_NAMESPACE, push 0 mov edx, DWORD PTR _ns$1[ebp] mov eax, DWORD PTR [edx+12] push eax mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx push OFFSET ??_C@_0DJ@DDNBGMLL@Element?5?$CFs?5namespace?5name?5for?5?$CF@ push 508 ; 000001fcH mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6314 : "Element %s namespace name for %s does not match the DTD\n", ; 6315 : elem->name, ns->prefix, NULL); ; 6316 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN115@xmlValidat: ; 6317 : } ; 6318 : goto found; jmp SHORT $found$125 $LN114@xmlValidat: ; 6319 : } ; 6320 : ns = ns->next; mov edx, DWORD PTR _ns$1[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _ns$1[ebp], eax ; 6321 : } jmp $LN26@xmlValidat $found$125: ; 6322 : } ; 6323 : } ; 6324 : found: ; 6325 : attr = attr->nexth; mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+36] mov DWORD PTR _attr$[ebp], edx ; 6326 : } jmp $LN16@xmlValidat $LN17@xmlValidat: ; 6327 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlValidat: ; 6328 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN121@xmlValidat call @_RTC_CheckStackVars@8 pop eax pop edx pop edi pop esi add esp, 144 ; 00000090H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 1 $LN121@xmlValidat: DD 2 DD $LN120@xmlValidat $LN120@xmlValidat: DD -36 ; ffffffdcH DD 4 DD $LN118@xmlValidat DD -96 ; ffffffa0H DD 50 ; 00000032H DD $LN119@xmlValidat $LN119@xmlValidat: DB 102 ; 00000066H DB 110 ; 0000006eH DB 0 $LN118@xmlValidat: DB 101 ; 00000065H DB 120 ; 00000078H DB 116 ; 00000074H DB 115 ; 00000073H DB 117 ; 00000075H DB 98 ; 00000062H DB 115 ; 00000073H DB 101 ; 00000065H DB 116 ; 00000074H DB 0 npad 3 $LN122@xmlValidat: DD $LN43@xmlValidat DD $LN32@xmlValidat DD $LN33@xmlValidat DD $LN38@xmlValidat DD $LN39@xmlValidat DD $LN41@xmlValidat DD $LN40@xmlValidat DD $LN42@xmlValidat DD $LN37@xmlValidat DD $LN44@xmlValidat $LN117@xmlValidat: DB 0 DB 1 DB 2 DB 3 DB 3 DB 4 DB 3 DB 3 DB 5 DB 5 DB 5 DB 6 DB 7 DB 9 DB 9 DB 9 DB 9 DB 9 DB 8 DB 8 $LN123@xmlValidat: DD $LN47@xmlValidat DD $LN48@xmlValidat DD $LN46@xmlValidat DD $LN51@xmlValidat DD $LN76@xmlValidat _xmlValidateOneElement ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateElement _TEXT SEGMENT _ret$ = -20 ; size = 4 _value$ = -16 ; size = 4 _ns$ = -12 ; size = 4 _attr$ = -8 ; size = 4 _child$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _elem$ = 16 ; size = 4 _xmlValidateElement PROC ; COMDAT ; 6409 : xmlValidateElement(xmlValidCtxtPtr ctxt, xmlDocPtr doc, xmlNodePtr elem) { push ebp mov ebp, esp sub esp, 20 ; 00000014H push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 6410 : xmlNodePtr child; ; 6411 : xmlAttrPtr attr; ; 6412 : xmlNsPtr ns; ; 6413 : const xmlChar *value; ; 6414 : int ret = 1; mov DWORD PTR _ret$[ebp], 1 ; 6415 : ; 6416 : if (elem == NULL) return(0); cmp DWORD PTR _elem$[ebp], 0 jne SHORT $LN8@xmlValidat xor eax, eax jmp $LN1@xmlValidat $LN8@xmlValidat: ; 6417 : ; 6418 : /* ; 6419 : * XInclude elements were added after parsing in the infoset, ; 6420 : * they don't really mean anything validation wise. ; 6421 : */ ; 6422 : if ((elem->type == XML_XINCLUDE_START) || ; 6423 : (elem->type == XML_XINCLUDE_END) || mov eax, DWORD PTR _elem$[ebp] cmp DWORD PTR [eax+4], 19 ; 00000013H je SHORT $LN10@xmlValidat mov ecx, DWORD PTR _elem$[ebp] cmp DWORD PTR [ecx+4], 20 ; 00000014H je SHORT $LN10@xmlValidat mov edx, DWORD PTR _elem$[ebp] cmp DWORD PTR [edx+4], 18 ; 00000012H jne SHORT $LN9@xmlValidat $LN10@xmlValidat: ; 6424 : (elem->type == XML_NAMESPACE_DECL)) ; 6425 : return(1); mov eax, 1 jmp $LN1@xmlValidat $LN9@xmlValidat: ; 6426 : ; 6427 : CHECK_DTD; cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN11@xmlValidat xor eax, eax jmp $LN1@xmlValidat jmp SHORT $LN12@xmlValidat $LN11@xmlValidat: mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+44], 0 jne SHORT $LN12@xmlValidat mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+48], 0 jne SHORT $LN12@xmlValidat xor eax, eax jmp $LN1@xmlValidat $LN12@xmlValidat: ; 6428 : ; 6429 : /* ; 6430 : * Entities references have to be handled separately ; 6431 : */ ; 6432 : if (elem->type == XML_ENTITY_REF_NODE) { mov edx, DWORD PTR _elem$[ebp] cmp DWORD PTR [edx+4], 5 jne SHORT $LN14@xmlValidat ; 6433 : return(1); mov eax, 1 jmp $LN1@xmlValidat $LN14@xmlValidat: ; 6434 : } ; 6435 : ; 6436 : ret &= xmlValidateOneElement(ctxt, doc, elem); mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlValidateOneElement add esp, 12 ; 0000000cH and eax, DWORD PTR _ret$[ebp] mov DWORD PTR _ret$[ebp], eax ; 6437 : if (elem->type == XML_ELEMENT_NODE) { mov eax, DWORD PTR _elem$[ebp] cmp DWORD PTR [eax+4], 1 jne $LN15@xmlValidat ; 6438 : attr = elem->properties; mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+44] mov DWORD PTR _attr$[ebp], edx $LN2@xmlValidat: ; 6439 : while (attr != NULL) { cmp DWORD PTR _attr$[ebp], 0 je SHORT $LN3@xmlValidat ; 6440 : value = xmlNodeListGetString(doc, attr->children, 0); push 0 mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+12] push ecx mov edx, DWORD PTR _doc$[ebp] push edx call _xmlNodeListGetString add esp, 12 ; 0000000cH mov DWORD PTR _value$[ebp], eax ; 6441 : ret &= xmlValidateOneAttribute(ctxt, doc, elem, attr, value); mov eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _attr$[ebp] push ecx mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _doc$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlValidateOneAttribute add esp, 20 ; 00000014H and eax, DWORD PTR _ret$[ebp] mov DWORD PTR _ret$[ebp], eax ; 6442 : if (value != NULL) cmp DWORD PTR _value$[ebp], 0 je SHORT $LN16@xmlValidat ; 6443 : xmlFree((char *)value); mov esi, esp mov edx, DWORD PTR _value$[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN16@xmlValidat: ; 6444 : attr= attr->next; mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+24] mov DWORD PTR _attr$[ebp], ecx ; 6445 : } jmp SHORT $LN2@xmlValidat $LN3@xmlValidat: ; 6446 : ns = elem->nsDef; mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+48] mov DWORD PTR _ns$[ebp], eax $LN4@xmlValidat: ; 6447 : while (ns != NULL) { cmp DWORD PTR _ns$[ebp], 0 je SHORT $LN15@xmlValidat ; 6448 : if (elem->ns == NULL) mov ecx, DWORD PTR _elem$[ebp] cmp DWORD PTR [ecx+36], 0 jne SHORT $LN17@xmlValidat ; 6449 : ret &= xmlValidateOneNamespace(ctxt, doc, elem, NULL, mov edx, DWORD PTR _ns$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _ns$[ebp] push ecx push 0 mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _doc$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlValidateOneNamespace add esp, 24 ; 00000018H and eax, DWORD PTR _ret$[ebp] mov DWORD PTR _ret$[ebp], eax jmp SHORT $LN18@xmlValidat $LN17@xmlValidat: ; 6450 : ns, ns->href); ; 6451 : else ; 6452 : ret &= xmlValidateOneNamespace(ctxt, doc, elem, mov edx, DWORD PTR _ns$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _ns$[ebp] push ecx mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+36] mov ecx, DWORD PTR [eax+12] push ecx mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _doc$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlValidateOneNamespace add esp, 24 ; 00000018H and eax, DWORD PTR _ret$[ebp] mov DWORD PTR _ret$[ebp], eax $LN18@xmlValidat: ; 6453 : elem->ns->prefix, ns, ns->href); ; 6454 : ns = ns->next; mov edx, DWORD PTR _ns$[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR _ns$[ebp], eax ; 6455 : } jmp SHORT $LN4@xmlValidat $LN15@xmlValidat: ; 6456 : } ; 6457 : child = elem->children; mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+12] mov DWORD PTR _child$[ebp], edx $LN6@xmlValidat: ; 6458 : while (child != NULL) { cmp DWORD PTR _child$[ebp], 0 je SHORT $LN7@xmlValidat ; 6459 : ret &= xmlValidateElement(ctxt, doc, child); mov eax, DWORD PTR _child$[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlValidateElement add esp, 12 ; 0000000cH and eax, DWORD PTR _ret$[ebp] mov DWORD PTR _ret$[ebp], eax ; 6460 : child = child->next; mov eax, DWORD PTR _child$[ebp] mov ecx, DWORD PTR [eax+24] mov DWORD PTR _child$[ebp], ecx ; 6461 : } jmp SHORT $LN6@xmlValidat $LN7@xmlValidat: ; 6462 : ; 6463 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlValidat: ; 6464 : } pop esi add esp, 20 ; 00000014H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlValidateElement ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateDocument _TEXT SEGMENT _sysID$1 = -12 ; size = 4 _root$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _xmlValidateDocument PROC ; COMDAT ; 6844 : xmlValidateDocument(xmlValidCtxtPtr ctxt, xmlDocPtr doc) { push ebp mov ebp, esp sub esp, 12 ; 0000000cH push esi mov DWORD PTR [ebp-12], -858993460 ; ccccccccH mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 6845 : int ret; ; 6846 : xmlNodePtr root; ; 6847 : ; 6848 : if (doc == NULL) cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN2@xmlValidat ; 6849 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN2@xmlValidat: ; 6850 : if ((doc->intSubset == NULL) && (doc->extSubset == NULL)) { mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+44], 0 jne SHORT $LN3@xmlValidat mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+48], 0 jne SHORT $LN3@xmlValidat ; 6851 : xmlErrValid(ctxt, XML_DTD_NO_DTD, push 0 push OFFSET ??_C@_0P@GBEHLCJD@no?5DTD?5found?$CB?6@ push 522 ; 0000020aH mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValid add esp, 16 ; 00000010H ; 6852 : "no DTD found!\n", NULL); ; 6853 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN3@xmlValidat: ; 6854 : } ; 6855 : if ((doc->intSubset != NULL) && ((doc->intSubset->SystemID != NULL) || ; 6856 : (doc->intSubset->ExternalID != NULL)) && (doc->extSubset == NULL)) { mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+44], 0 je $LN4@xmlValidat mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+44] cmp DWORD PTR [edx+56], 0 jne SHORT $LN5@xmlValidat mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+44] cmp DWORD PTR [ecx+52], 0 je $LN4@xmlValidat $LN5@xmlValidat: mov edx, DWORD PTR _doc$[ebp] cmp DWORD PTR [edx+48], 0 jne $LN4@xmlValidat ; 6857 : xmlChar *sysID; ; 6858 : if (doc->intSubset->SystemID != NULL) { mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+44] cmp DWORD PTR [ecx+56], 0 je SHORT $LN6@xmlValidat ; 6859 : sysID = xmlBuildURI(doc->intSubset->SystemID, mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+72] push eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+44] mov eax, DWORD PTR [edx+56] push eax call _xmlBuildURI add esp, 8 mov DWORD PTR _sysID$1[ebp], eax ; 6860 : doc->URL); ; 6861 : if (sysID == NULL) { cmp DWORD PTR _sysID$1[ebp], 0 jne SHORT $LN8@xmlValidat ; 6862 : xmlErrValid(ctxt, XML_DTD_LOAD_ERROR, mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+44] mov eax, DWORD PTR [edx+56] push eax push OFFSET ??_C@_0CO@FGGICOAP@Could?5not?5build?5URI?5for?5externa@ push 517 ; 00000205H mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValid add esp, 16 ; 00000010H ; 6863 : "Could not build URI for external subset \"%s\"\n", ; 6864 : (const char *) doc->intSubset->SystemID); ; 6865 : return 0; xor eax, eax jmp $LN1@xmlValidat $LN8@xmlValidat: ; 6866 : } ; 6867 : } else jmp SHORT $LN7@xmlValidat $LN6@xmlValidat: ; 6868 : sysID = NULL; mov DWORD PTR _sysID$1[ebp], 0 $LN7@xmlValidat: ; 6869 : doc->extSubset = xmlParseDTD(doc->intSubset->ExternalID, mov edx, DWORD PTR _sysID$1[ebp] push edx mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+44] mov edx, DWORD PTR [ecx+52] push edx call _xmlParseDTD add esp, 8 mov ecx, DWORD PTR _doc$[ebp] mov DWORD PTR [ecx+48], eax ; 6870 : (const xmlChar *)sysID); ; 6871 : if (sysID != NULL) cmp DWORD PTR _sysID$1[ebp], 0 je SHORT $LN9@xmlValidat ; 6872 : xmlFree(sysID); mov esi, esp mov edx, DWORD PTR _sysID$1[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN9@xmlValidat: ; 6873 : if (doc->extSubset == NULL) { mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+48], 0 jne SHORT $LN4@xmlValidat ; 6874 : if (doc->intSubset->SystemID != NULL) { mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+44] cmp DWORD PTR [edx+56], 0 je SHORT $LN11@xmlValidat ; 6875 : xmlErrValid(ctxt, XML_DTD_LOAD_ERROR, mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+44] mov edx, DWORD PTR [ecx+56] push edx push OFFSET ??_C@_0CJ@BNOHLKCI@Could?5not?5load?5the?5external?5sub@ push 517 ; 00000205H mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValid add esp, 16 ; 00000010H ; 6876 : "Could not load the external subset \"%s\"\n", ; 6877 : (const char *) doc->intSubset->SystemID); ; 6878 : } else { jmp SHORT $LN12@xmlValidat $LN11@xmlValidat: ; 6879 : xmlErrValid(ctxt, XML_DTD_LOAD_ERROR, mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+44] mov eax, DWORD PTR [edx+52] push eax push OFFSET ??_C@_0CJ@BNOHLKCI@Could?5not?5load?5the?5external?5sub@ push 517 ; 00000205H mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValid add esp, 16 ; 00000010H $LN12@xmlValidat: ; 6880 : "Could not load the external subset \"%s\"\n", ; 6881 : (const char *) doc->intSubset->ExternalID); ; 6882 : } ; 6883 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN4@xmlValidat: ; 6884 : } ; 6885 : } ; 6886 : ; 6887 : if (doc->ids != NULL) { mov edx, DWORD PTR _doc$[ebp] cmp DWORD PTR [edx+64], 0 je SHORT $LN13@xmlValidat ; 6888 : xmlFreeIDTable(doc->ids); mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+64] push ecx call _xmlFreeIDTable add esp, 4 ; 6889 : doc->ids = NULL; mov edx, DWORD PTR _doc$[ebp] mov DWORD PTR [edx+64], 0 $LN13@xmlValidat: ; 6890 : } ; 6891 : if (doc->refs != NULL) { mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+68], 0 je SHORT $LN14@xmlValidat ; 6892 : xmlFreeRefTable(doc->refs); mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+68] push edx call _xmlFreeRefTable add esp, 4 ; 6893 : doc->refs = NULL; mov eax, DWORD PTR _doc$[ebp] mov DWORD PTR [eax+68], 0 $LN14@xmlValidat: ; 6894 : } ; 6895 : ret = xmlValidateDtdFinal(ctxt, doc); mov ecx, DWORD PTR _doc$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlValidateDtdFinal add esp, 8 mov DWORD PTR _ret$[ebp], eax ; 6896 : if (!xmlValidateRoot(ctxt, doc)) return(0); mov eax, DWORD PTR _doc$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlValidateRoot add esp, 8 test eax, eax jne SHORT $LN15@xmlValidat xor eax, eax jmp SHORT $LN1@xmlValidat $LN15@xmlValidat: ; 6897 : ; 6898 : root = xmlDocGetRootElement(doc); mov edx, DWORD PTR _doc$[ebp] push edx call _xmlDocGetRootElement add esp, 4 mov DWORD PTR _root$[ebp], eax ; 6899 : ret &= xmlValidateElement(ctxt, doc, root); mov eax, DWORD PTR _root$[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlValidateElement add esp, 12 ; 0000000cH and eax, DWORD PTR _ret$[ebp] mov DWORD PTR _ret$[ebp], eax ; 6900 : ret &= xmlValidateDocumentFinal(ctxt, doc); mov eax, DWORD PTR _doc$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlValidateDocumentFinal add esp, 8 and eax, DWORD PTR _ret$[ebp] mov DWORD PTR _ret$[ebp], eax ; 6901 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlValidat: ; 6902 : } pop esi add esp, 12 ; 0000000cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlValidateDocument ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateDtdFinal _TEXT SEGMENT _entities$ = -12 ; size = 4 _table$ = -8 ; size = 4 _dtd$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _xmlValidateDtdFinal PROC ; COMDAT ; 6798 : xmlValidateDtdFinal(xmlValidCtxtPtr ctxt, xmlDocPtr doc) { push ebp mov ebp, esp sub esp, 12 ; 0000000cH mov DWORD PTR [ebp-12], -858993460 ; ccccccccH mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 6799 : xmlDtdPtr dtd; ; 6800 : xmlAttributeTablePtr table; ; 6801 : xmlEntitiesTablePtr entities; ; 6802 : ; 6803 : if ((doc == NULL) || (ctxt == NULL)) return(0); cmp DWORD PTR _doc$[ebp], 0 je SHORT $LN3@xmlValidat cmp DWORD PTR _ctxt$[ebp], 0 jne SHORT $LN2@xmlValidat $LN3@xmlValidat: xor eax, eax jmp $LN1@xmlValidat $LN2@xmlValidat: ; 6804 : if ((doc->intSubset == NULL) && (doc->extSubset == NULL)) mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+44], 0 jne SHORT $LN4@xmlValidat mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+48], 0 jne SHORT $LN4@xmlValidat ; 6805 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN4@xmlValidat: ; 6806 : ctxt->doc = doc; mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR _doc$[ebp] mov DWORD PTR [edx+32], eax ; 6807 : ctxt->valid = 1; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+36], 1 ; 6808 : dtd = doc->intSubset; mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+44] mov DWORD PTR _dtd$[ebp], eax ; 6809 : if ((dtd != NULL) && (dtd->attributes != NULL)) { cmp DWORD PTR _dtd$[ebp], 0 je SHORT $LN5@xmlValidat mov ecx, DWORD PTR _dtd$[ebp] cmp DWORD PTR [ecx+44], 0 je SHORT $LN5@xmlValidat ; 6810 : table = (xmlAttributeTablePtr) dtd->attributes; mov edx, DWORD PTR _dtd$[ebp] mov eax, DWORD PTR [edx+44] mov DWORD PTR _table$[ebp], eax ; 6811 : xmlHashScan(table, xmlValidateAttributeCallback, ctxt); mov ecx, DWORD PTR _ctxt$[ebp] push ecx push OFFSET _xmlValidateAttributeCallback mov edx, DWORD PTR _table$[ebp] push edx call _xmlHashScan add esp, 12 ; 0000000cH $LN5@xmlValidat: ; 6812 : } ; 6813 : if ((dtd != NULL) && (dtd->entities != NULL)) { cmp DWORD PTR _dtd$[ebp], 0 je SHORT $LN6@xmlValidat mov eax, DWORD PTR _dtd$[ebp] cmp DWORD PTR [eax+48], 0 je SHORT $LN6@xmlValidat ; 6814 : entities = (xmlEntitiesTablePtr) dtd->entities; mov ecx, DWORD PTR _dtd$[ebp] mov edx, DWORD PTR [ecx+48] mov DWORD PTR _entities$[ebp], edx ; 6815 : xmlHashScan(entities, xmlValidateNotationCallback, ctxt); mov eax, DWORD PTR _ctxt$[ebp] push eax push OFFSET _xmlValidateNotationCallback mov ecx, DWORD PTR _entities$[ebp] push ecx call _xmlHashScan add esp, 12 ; 0000000cH $LN6@xmlValidat: ; 6816 : } ; 6817 : dtd = doc->extSubset; mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+48] mov DWORD PTR _dtd$[ebp], eax ; 6818 : if ((dtd != NULL) && (dtd->attributes != NULL)) { cmp DWORD PTR _dtd$[ebp], 0 je SHORT $LN7@xmlValidat mov ecx, DWORD PTR _dtd$[ebp] cmp DWORD PTR [ecx+44], 0 je SHORT $LN7@xmlValidat ; 6819 : table = (xmlAttributeTablePtr) dtd->attributes; mov edx, DWORD PTR _dtd$[ebp] mov eax, DWORD PTR [edx+44] mov DWORD PTR _table$[ebp], eax ; 6820 : xmlHashScan(table, xmlValidateAttributeCallback, ctxt); mov ecx, DWORD PTR _ctxt$[ebp] push ecx push OFFSET _xmlValidateAttributeCallback mov edx, DWORD PTR _table$[ebp] push edx call _xmlHashScan add esp, 12 ; 0000000cH $LN7@xmlValidat: ; 6821 : } ; 6822 : if ((dtd != NULL) && (dtd->entities != NULL)) { cmp DWORD PTR _dtd$[ebp], 0 je SHORT $LN8@xmlValidat mov eax, DWORD PTR _dtd$[ebp] cmp DWORD PTR [eax+48], 0 je SHORT $LN8@xmlValidat ; 6823 : entities = (xmlEntitiesTablePtr) dtd->entities; mov ecx, DWORD PTR _dtd$[ebp] mov edx, DWORD PTR [ecx+48] mov DWORD PTR _entities$[ebp], edx ; 6824 : xmlHashScan(entities, xmlValidateNotationCallback, ctxt); mov eax, DWORD PTR _ctxt$[ebp] push eax push OFFSET _xmlValidateNotationCallback mov ecx, DWORD PTR _entities$[ebp] push ecx call _xmlHashScan add esp, 12 ; 0000000cH $LN8@xmlValidat: ; 6825 : } ; 6826 : return(ctxt->valid); mov edx, DWORD PTR _ctxt$[ebp] mov eax, DWORD PTR [edx+36] $LN1@xmlValidat: ; 6827 : } add esp, 12 ; 0000000cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlValidateDtdFinal ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateDtd _TEXT SEGMENT _root$ = -16 ; size = 4 _oldInt$ = -12 ; size = 4 _oldExt$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _dtd$ = 16 ; size = 4 _xmlValidateDtd PROC ; COMDAT ; 6654 : xmlValidateDtd(xmlValidCtxtPtr ctxt, xmlDocPtr doc, xmlDtdPtr dtd) { push ebp mov ebp, esp sub esp, 16 ; 00000010H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 6655 : int ret; ; 6656 : xmlDtdPtr oldExt, oldInt; ; 6657 : xmlNodePtr root; ; 6658 : ; 6659 : if (dtd == NULL) return(0); cmp DWORD PTR _dtd$[ebp], 0 jne SHORT $LN2@xmlValidat xor eax, eax jmp $LN1@xmlValidat $LN2@xmlValidat: ; 6660 : if (doc == NULL) return(0); cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN3@xmlValidat xor eax, eax jmp $LN1@xmlValidat $LN3@xmlValidat: ; 6661 : oldExt = doc->extSubset; mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+48] mov DWORD PTR _oldExt$[ebp], ecx ; 6662 : oldInt = doc->intSubset; mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+44] mov DWORD PTR _oldInt$[ebp], eax ; 6663 : doc->extSubset = dtd; mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR _dtd$[ebp] mov DWORD PTR [ecx+48], edx ; 6664 : doc->intSubset = NULL; mov eax, DWORD PTR _doc$[ebp] mov DWORD PTR [eax+44], 0 ; 6665 : ret = xmlValidateRoot(ctxt, doc); mov ecx, DWORD PTR _doc$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlValidateRoot add esp, 8 mov DWORD PTR _ret$[ebp], eax ; 6666 : if (ret == 0) { cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN4@xmlValidat ; 6667 : doc->extSubset = oldExt; mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR _oldExt$[ebp] mov DWORD PTR [eax+48], ecx ; 6668 : doc->intSubset = oldInt; mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR _oldInt$[ebp] mov DWORD PTR [edx+44], eax ; 6669 : return(ret); mov eax, DWORD PTR _ret$[ebp] jmp $LN1@xmlValidat $LN4@xmlValidat: ; 6670 : } ; 6671 : if (doc->ids != NULL) { mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+64], 0 je SHORT $LN5@xmlValidat ; 6672 : xmlFreeIDTable(doc->ids); mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+64] push eax call _xmlFreeIDTable add esp, 4 ; 6673 : doc->ids = NULL; mov ecx, DWORD PTR _doc$[ebp] mov DWORD PTR [ecx+64], 0 $LN5@xmlValidat: ; 6674 : } ; 6675 : if (doc->refs != NULL) { mov edx, DWORD PTR _doc$[ebp] cmp DWORD PTR [edx+68], 0 je SHORT $LN6@xmlValidat ; 6676 : xmlFreeRefTable(doc->refs); mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+68] push ecx call _xmlFreeRefTable add esp, 4 ; 6677 : doc->refs = NULL; mov edx, DWORD PTR _doc$[ebp] mov DWORD PTR [edx+68], 0 $LN6@xmlValidat: ; 6678 : } ; 6679 : root = xmlDocGetRootElement(doc); mov eax, DWORD PTR _doc$[ebp] push eax call _xmlDocGetRootElement add esp, 4 mov DWORD PTR _root$[ebp], eax ; 6680 : ret = xmlValidateElement(ctxt, doc, root); mov ecx, DWORD PTR _root$[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlValidateElement add esp, 12 ; 0000000cH mov DWORD PTR _ret$[ebp], eax ; 6681 : ret &= xmlValidateDocumentFinal(ctxt, doc); mov ecx, DWORD PTR _doc$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlValidateDocumentFinal add esp, 8 and eax, DWORD PTR _ret$[ebp] mov DWORD PTR _ret$[ebp], eax ; 6682 : doc->extSubset = oldExt; mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR _oldExt$[ebp] mov DWORD PTR [eax+48], ecx ; 6683 : doc->intSubset = oldInt; mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR _oldInt$[ebp] mov DWORD PTR [edx+44], eax ; 6684 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlValidat: ; 6685 : } add esp, 16 ; 00000010H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlValidateDtd ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateNotationDecl _TEXT SEGMENT _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _nota$ = 16 ; size = 4 _xmlValidateNotationDecl PROC ; COMDAT ; 3771 : xmlNotationPtr nota ATTRIBUTE_UNUSED) { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3772 : int ret = 1; mov DWORD PTR _ret$[ebp], 1 ; 3773 : ; 3774 : return(ret); mov eax, DWORD PTR _ret$[ebp] ; 3775 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlValidateNotationDecl ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateAttributeValue _TEXT SEGMENT _type$ = 8 ; size = 4 _value$ = 12 ; size = 4 _xmlValidateAttributeValue PROC ; COMDAT ; 3836 : xmlValidateAttributeValue(xmlAttributeType type, const xmlChar *value) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3837 : return(xmlValidateAttributeValueInternal(NULL, type, value)); mov eax, DWORD PTR _value$[ebp] push eax mov ecx, DWORD PTR _type$[ebp] push ecx push 0 call _xmlValidateAttributeValueInternal add esp, 12 ; 0000000cH ; 3838 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlValidateAttributeValue ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateAttributeDecl _TEXT SEGMENT _tree$1 = -36 ; size = 4 _extId$2 = -32 ; size = 4 _table$3 = -28 ; size = 4 _elem$4 = -24 ; size = 4 _nbId$5 = -16 ; size = 4 _val$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _attr$ = 16 ; size = 4 _xmlValidateAttributeDecl PROC ; COMDAT ; 4149 : xmlAttributePtr attr) { push ebp mov ebp, esp sub esp, 36 ; 00000024H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-36], eax mov DWORD PTR [ebp-32], eax mov DWORD PTR [ebp-28], eax mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 4150 : int ret = 1; mov DWORD PTR _ret$[ebp], 1 ; 4151 : int val; ; 4152 : CHECK_DTD; cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN4@xmlValidat xor eax, eax jmp $LN1@xmlValidat jmp SHORT $LN5@xmlValidat $LN4@xmlValidat: mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+44], 0 jne SHORT $LN5@xmlValidat mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+48], 0 jne SHORT $LN5@xmlValidat xor eax, eax jmp $LN1@xmlValidat $LN5@xmlValidat: ; 4153 : if(attr == NULL) return(1); cmp DWORD PTR _attr$[ebp], 0 jne SHORT $LN7@xmlValidat mov eax, 1 jmp $LN1@xmlValidat $LN7@xmlValidat: ; 4154 : ; 4155 : /* Attribute Default Legal */ ; 4156 : /* Enumeration */ ; 4157 : if (attr->defaultValue != NULL) { mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+48], 0 je SHORT $LN8@xmlValidat ; 4158 : val = xmlValidateAttributeValueInternal(doc, attr->atype, mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+48] push ecx mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+40] push eax mov ecx, DWORD PTR _doc$[ebp] push ecx call _xmlValidateAttributeValueInternal add esp, 12 ; 0000000cH mov DWORD PTR _val$[ebp], eax ; 4159 : attr->defaultValue); ; 4160 : if (val == 0) { cmp DWORD PTR _val$[ebp], 0 jne SHORT $LN9@xmlValidat ; 4161 : xmlErrValidNode(ctxt, (xmlNodePtr) attr, XML_DTD_ATTRIBUTE_DEFAULT, push 0 mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+60] push eax mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+8] push edx push OFFSET ??_C@_0DN@MJLCEKEK@Syntax?5of?5default?5value?5for?5att@ push 500 ; 000001f4H mov eax, DWORD PTR _attr$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH $LN9@xmlValidat: ; 4162 : "Syntax of default value for attribute %s of %s is not valid\n", ; 4163 : attr->name, attr->elem, NULL); ; 4164 : } ; 4165 : ret &= val; mov edx, DWORD PTR _ret$[ebp] and edx, DWORD PTR _val$[ebp] mov DWORD PTR _ret$[ebp], edx $LN8@xmlValidat: ; 4166 : } ; 4167 : ; 4168 : /* ID Attribute Default */ ; 4169 : if ((attr->atype == XML_ATTRIBUTE_ID)&& ; 4170 : (attr->def != XML_ATTRIBUTE_IMPLIED) && mov eax, DWORD PTR _attr$[ebp] cmp DWORD PTR [eax+40], 2 jne SHORT $LN10@xmlValidat mov ecx, DWORD PTR _attr$[ebp] cmp DWORD PTR [ecx+44], 3 je SHORT $LN10@xmlValidat mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+44], 2 je SHORT $LN10@xmlValidat ; 4171 : (attr->def != XML_ATTRIBUTE_REQUIRED)) { ; 4172 : xmlErrValidNode(ctxt, (xmlNodePtr) attr, XML_DTD_ID_FIXED, push 0 mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+60] push ecx mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+8] push eax push OFFSET ??_C@_0EC@DNHDHDCI@ID?5attribute?5?$CFs?5of?5?$CFs?5is?5not?5va@ push 512 ; 00000200H mov ecx, DWORD PTR _attr$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4173 : "ID attribute %s of %s is not valid must be #IMPLIED or #REQUIRED\n", ; 4174 : attr->name, attr->elem, NULL); ; 4175 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN10@xmlValidat: ; 4176 : } ; 4177 : ; 4178 : /* One ID per Element Type */ ; 4179 : if (attr->atype == XML_ATTRIBUTE_ID) { mov eax, DWORD PTR _attr$[ebp] cmp DWORD PTR [eax+40], 2 jne $LN11@xmlValidat ; 4180 : int nbId; ; 4181 : ; 4182 : /* the trick is that we parse DtD as their own internal subset */ ; 4183 : xmlElementPtr elem = xmlGetDtdElementDesc(doc->intSubset, mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+60] push edx mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+44] push ecx call _xmlGetDtdElementDesc add esp, 8 mov DWORD PTR _elem$4[ebp], eax ; 4184 : attr->elem); ; 4185 : if (elem != NULL) { cmp DWORD PTR _elem$4[ebp], 0 je SHORT $LN12@xmlValidat ; 4186 : nbId = xmlScanIDAttributeDecl(NULL, elem, 0); push 0 mov edx, DWORD PTR _elem$4[ebp] push edx push 0 call _xmlScanIDAttributeDecl add esp, 12 ; 0000000cH mov DWORD PTR _nbId$5[ebp], eax ; 4187 : } else { jmp SHORT $LN13@xmlValidat $LN12@xmlValidat: ; 4188 : xmlAttributeTablePtr table; ; 4189 : ; 4190 : /* ; 4191 : * The attribute may be declared in the internal subset and the ; 4192 : * element in the external subset. ; 4193 : */ ; 4194 : nbId = 0; mov DWORD PTR _nbId$5[ebp], 0 ; 4195 : if (doc->intSubset != NULL) { mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+44], 0 je SHORT $LN13@xmlValidat ; 4196 : table = (xmlAttributeTablePtr) doc->intSubset->attributes; mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+44] mov eax, DWORD PTR [edx+44] mov DWORD PTR _table$3[ebp], eax ; 4197 : xmlHashScan3(table, NULL, NULL, attr->elem, lea ecx, DWORD PTR _nbId$5[ebp] push ecx push OFFSET _xmlValidateAttributeIdCallback mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+60] push eax push 0 push 0 mov ecx, DWORD PTR _table$3[ebp] push ecx call _xmlHashScan3 add esp, 24 ; 00000018H $LN13@xmlValidat: ; 4198 : xmlValidateAttributeIdCallback, &nbId); ; 4199 : } ; 4200 : } ; 4201 : if (nbId > 1) { cmp DWORD PTR _nbId$5[ebp], 1 jle SHORT $LN15@xmlValidat ; 4202 : ; 4203 : xmlErrValidNodeNr(ctxt, (xmlNodePtr) attr, XML_DTD_ID_SUBSET, mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _nbId$5[ebp] push ecx mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+60] push eax push OFFSET ??_C@_0EE@MLJMMKCM@Element?5?$CFs?5has?5?$CFd?5ID?5attribute?5@ push 514 ; 00000202H mov ecx, DWORD PTR _attr$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNodeNr add esp, 28 ; 0000001cH jmp $LN11@xmlValidat $LN15@xmlValidat: ; 4204 : "Element %s has %d ID attribute defined in the internal subset : %s\n", ; 4205 : attr->elem, nbId, attr->name); ; 4206 : } else if (doc->extSubset != NULL) { mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+48], 0 je $LN11@xmlValidat ; 4207 : int extId = 0; mov DWORD PTR _extId$2[ebp], 0 ; 4208 : elem = xmlGetDtdElementDesc(doc->extSubset, attr->elem); mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+60] push edx mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+48] push ecx call _xmlGetDtdElementDesc add esp, 8 mov DWORD PTR _elem$4[ebp], eax ; 4209 : if (elem != NULL) { cmp DWORD PTR _elem$4[ebp], 0 je SHORT $LN18@xmlValidat ; 4210 : extId = xmlScanIDAttributeDecl(NULL, elem, 0); push 0 mov edx, DWORD PTR _elem$4[ebp] push edx push 0 call _xmlScanIDAttributeDecl add esp, 12 ; 0000000cH mov DWORD PTR _extId$2[ebp], eax $LN18@xmlValidat: ; 4211 : } ; 4212 : if (extId > 1) { cmp DWORD PTR _extId$2[ebp], 1 jle SHORT $LN19@xmlValidat ; 4213 : xmlErrValidNodeNr(ctxt, (xmlNodePtr) attr, XML_DTD_ID_SUBSET, mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _extId$2[ebp] push edx mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+60] push ecx push OFFSET ??_C@_0EE@JDKHGIAG@Element?5?$CFs?5has?5?$CFd?5ID?5attribute?5@ push 514 ; 00000202H mov edx, DWORD PTR _attr$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNodeNr add esp, 28 ; 0000001cH jmp SHORT $LN11@xmlValidat $LN19@xmlValidat: ; 4214 : "Element %s has %d ID attribute defined in the external subset : %s\n", ; 4215 : attr->elem, extId, attr->name); ; 4216 : } else if (extId + nbId > 1) { mov ecx, DWORD PTR _extId$2[ebp] add ecx, DWORD PTR _nbId$5[ebp] cmp ecx, 1 jle SHORT $LN11@xmlValidat ; 4217 : xmlErrValidNode(ctxt, (xmlNodePtr) attr, XML_DTD_ID_SUBSET, push 0 mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+60] push edx push OFFSET ??_C@_0EP@CFLHEJLO@Element?5?$CFs?5has?5ID?5attributes?5de@ push 514 ; 00000202H mov eax, DWORD PTR _attr$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH $LN11@xmlValidat: ; 4218 : "Element %s has ID attributes defined in the internal and external subset : %s\n", ; 4219 : attr->elem, attr->name, NULL); ; 4220 : } ; 4221 : } ; 4222 : } ; 4223 : ; 4224 : /* Validity Constraint: Enumeration */ ; 4225 : if ((attr->defaultValue != NULL) && (attr->tree != NULL)) { mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+48], 0 je SHORT $LN22@xmlValidat mov eax, DWORD PTR _attr$[ebp] cmp DWORD PTR [eax+52], 0 je SHORT $LN22@xmlValidat ; 4226 : xmlEnumerationPtr tree = attr->tree; mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+52] mov DWORD PTR _tree$1[ebp], edx $LN2@xmlValidat: ; 4227 : while (tree != NULL) { cmp DWORD PTR _tree$1[ebp], 0 je SHORT $LN3@xmlValidat ; 4228 : if (xmlStrEqual(tree->name, attr->defaultValue)) break; mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+48] push ecx mov edx, DWORD PTR _tree$1[ebp] mov eax, DWORD PTR [edx+4] push eax call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN23@xmlValidat jmp SHORT $LN3@xmlValidat $LN23@xmlValidat: ; 4229 : tree = tree->next; mov ecx, DWORD PTR _tree$1[ebp] mov edx, DWORD PTR [ecx] mov DWORD PTR _tree$1[ebp], edx ; 4230 : } jmp SHORT $LN2@xmlValidat $LN3@xmlValidat: ; 4231 : if (tree == NULL) { cmp DWORD PTR _tree$1[ebp], 0 jne SHORT $LN22@xmlValidat ; 4232 : xmlErrValidNode(ctxt, (xmlNodePtr) attr, XML_DTD_ATTRIBUTE_VALUE, mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+60] push ecx mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+48] push edx push OFFSET ??_C@_0EL@MPNELAFE@Default?5value?5?$CC?$CFs?$CC?5for?5attribut@ push 502 ; 000001f6H mov eax, DWORD PTR _attr$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4233 : "Default value \"%s\" for attribute %s of %s is not among the enumerated set\n", ; 4234 : attr->defaultValue, attr->name, attr->elem); ; 4235 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN22@xmlValidat: ; 4236 : } ; 4237 : } ; 4238 : ; 4239 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlValidat: ; 4240 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN28@xmlValidat call @_RTC_CheckStackVars@8 pop eax pop edx add esp, 36 ; 00000024H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 2 $LN28@xmlValidat: DD 1 DD $LN27@xmlValidat $LN27@xmlValidat: DD -16 ; fffffff0H DD 4 DD $LN26@xmlValidat $LN26@xmlValidat: DB 110 ; 0000006eH DB 98 ; 00000062H DB 73 ; 00000049H DB 100 ; 00000064H DB 0 _xmlValidateAttributeDecl ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidCtxtNormalizeAttributeValue _TEXT SEGMENT _fullname$1 = -84 ; size = 4 _fn$2 = -76 ; size = 50 _extsubset$ = -20 ; size = 4 _attrDecl$ = -16 ; size = 4 _src$ = -12 ; size = 4 _dst$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _elem$ = 16 ; size = 4 _name$ = 20 ; size = 4 _value$ = 24 ; size = 4 _xmlValidCtxtNormalizeAttributeValue PROC ; COMDAT ; 3987 : xmlNodePtr elem, const xmlChar *name, const xmlChar *value) { push ebp mov ebp, esp sub esp, 84 ; 00000054H push esi push edi lea edi, DWORD PTR [ebp-84] mov ecx, 21 ; 00000015H mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3988 : xmlChar *ret, *dst; ; 3989 : const xmlChar *src; ; 3990 : xmlAttributePtr attrDecl = NULL; mov DWORD PTR _attrDecl$[ebp], 0 ; 3991 : int extsubset = 0; mov DWORD PTR _extsubset$[ebp], 0 ; 3992 : ; 3993 : if (doc == NULL) return(NULL); cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN8@xmlValidCt xor eax, eax jmp $LN1@xmlValidCt $LN8@xmlValidCt: ; 3994 : if (elem == NULL) return(NULL); cmp DWORD PTR _elem$[ebp], 0 jne SHORT $LN9@xmlValidCt xor eax, eax jmp $LN1@xmlValidCt $LN9@xmlValidCt: ; 3995 : if (name == NULL) return(NULL); cmp DWORD PTR _name$[ebp], 0 jne SHORT $LN10@xmlValidCt xor eax, eax jmp $LN1@xmlValidCt $LN10@xmlValidCt: ; 3996 : if (value == NULL) return(NULL); cmp DWORD PTR _value$[ebp], 0 jne SHORT $LN11@xmlValidCt xor eax, eax jmp $LN1@xmlValidCt $LN11@xmlValidCt: ; 3997 : ; 3998 : if ((elem->ns != NULL) && (elem->ns->prefix != NULL)) { mov eax, DWORD PTR _elem$[ebp] cmp DWORD PTR [eax+36], 0 je $LN12@xmlValidCt mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+36] cmp DWORD PTR [edx+12], 0 je $LN12@xmlValidCt ; 3999 : xmlChar fn[50]; ; 4000 : xmlChar *fullname; ; 4001 : ; 4002 : fullname = xmlBuildQName(elem->name, elem->ns->prefix, fn, 50); push 50 ; 00000032H lea eax, DWORD PTR _fn$2[ebp] push eax mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+36] mov eax, DWORD PTR [edx+12] push eax mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlBuildQName add esp, 16 ; 00000010H mov DWORD PTR _fullname$1[ebp], eax ; 4003 : if (fullname == NULL) cmp DWORD PTR _fullname$1[ebp], 0 jne SHORT $LN13@xmlValidCt ; 4004 : return(NULL); xor eax, eax jmp $LN1@xmlValidCt $LN13@xmlValidCt: ; 4005 : attrDecl = xmlGetDtdAttrDesc(doc->intSubset, fullname, name); mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _fullname$1[ebp] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+44] push eax call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$[ebp], eax ; 4006 : if ((attrDecl == NULL) && (doc->extSubset != NULL)) { cmp DWORD PTR _attrDecl$[ebp], 0 jne SHORT $LN14@xmlValidCt mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+48], 0 je SHORT $LN14@xmlValidCt ; 4007 : attrDecl = xmlGetDtdAttrDesc(doc->extSubset, fullname, name); mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _fullname$1[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+48] push edx call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$[ebp], eax ; 4008 : if (attrDecl != NULL) cmp DWORD PTR _attrDecl$[ebp], 0 je SHORT $LN14@xmlValidCt ; 4009 : extsubset = 1; mov DWORD PTR _extsubset$[ebp], 1 $LN14@xmlValidCt: ; 4010 : } ; 4011 : if ((fullname != fn) && (fullname != elem->name)) lea eax, DWORD PTR _fn$2[ebp] cmp DWORD PTR _fullname$1[ebp], eax je SHORT $LN12@xmlValidCt mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR _fullname$1[ebp] cmp edx, DWORD PTR [ecx+8] je SHORT $LN12@xmlValidCt ; 4012 : xmlFree(fullname); mov esi, esp mov eax, DWORD PTR _fullname$1[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN12@xmlValidCt: ; 4013 : } ; 4014 : if ((attrDecl == NULL) && (doc->intSubset != NULL)) cmp DWORD PTR _attrDecl$[ebp], 0 jne SHORT $LN17@xmlValidCt mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+44], 0 je SHORT $LN17@xmlValidCt ; 4015 : attrDecl = xmlGetDtdAttrDesc(doc->intSubset, elem->name, name); mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+44] push eax call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$[ebp], eax $LN17@xmlValidCt: ; 4016 : if ((attrDecl == NULL) && (doc->extSubset != NULL)) { cmp DWORD PTR _attrDecl$[ebp], 0 jne SHORT $LN18@xmlValidCt mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+48], 0 je SHORT $LN18@xmlValidCt ; 4017 : attrDecl = xmlGetDtdAttrDesc(doc->extSubset, elem->name, name); mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+48] push eax call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$[ebp], eax ; 4018 : if (attrDecl != NULL) cmp DWORD PTR _attrDecl$[ebp], 0 je SHORT $LN18@xmlValidCt ; 4019 : extsubset = 1; mov DWORD PTR _extsubset$[ebp], 1 $LN18@xmlValidCt: ; 4020 : } ; 4021 : ; 4022 : if (attrDecl == NULL) cmp DWORD PTR _attrDecl$[ebp], 0 jne SHORT $LN20@xmlValidCt ; 4023 : return(NULL); xor eax, eax jmp $LN1@xmlValidCt $LN20@xmlValidCt: ; 4024 : if (attrDecl->atype == XML_ATTRIBUTE_CDATA) mov ecx, DWORD PTR _attrDecl$[ebp] cmp DWORD PTR [ecx+40], 1 jne SHORT $LN21@xmlValidCt ; 4025 : return(NULL); xor eax, eax jmp $LN1@xmlValidCt $LN21@xmlValidCt: ; 4026 : ; 4027 : ret = xmlStrdup(value); mov edx, DWORD PTR _value$[ebp] push edx call _xmlStrdup add esp, 4 mov DWORD PTR _ret$[ebp], eax ; 4028 : if (ret == NULL) cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN22@xmlValidCt ; 4029 : return(NULL); xor eax, eax jmp $LN1@xmlValidCt $LN22@xmlValidCt: ; 4030 : src = value; mov eax, DWORD PTR _value$[ebp] mov DWORD PTR _src$[ebp], eax ; 4031 : dst = ret; mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR _dst$[ebp], ecx $LN2@xmlValidCt: ; 4032 : while (*src == 0x20) src++; mov edx, DWORD PTR _src$[ebp] movzx eax, BYTE PTR [edx] cmp eax, 32 ; 00000020H jne SHORT $LN4@xmlValidCt mov ecx, DWORD PTR _src$[ebp] add ecx, 1 mov DWORD PTR _src$[ebp], ecx jmp SHORT $LN2@xmlValidCt $LN4@xmlValidCt: ; 4033 : while (*src != 0) { mov edx, DWORD PTR _src$[ebp] movzx eax, BYTE PTR [edx] test eax, eax je SHORT $LN5@xmlValidCt ; 4034 : if (*src == 0x20) { mov ecx, DWORD PTR _src$[ebp] movzx edx, BYTE PTR [ecx] cmp edx, 32 ; 00000020H jne SHORT $LN23@xmlValidCt $LN6@xmlValidCt: ; 4035 : while (*src == 0x20) src++; mov eax, DWORD PTR _src$[ebp] movzx ecx, BYTE PTR [eax] cmp ecx, 32 ; 00000020H jne SHORT $LN7@xmlValidCt mov edx, DWORD PTR _src$[ebp] add edx, 1 mov DWORD PTR _src$[ebp], edx jmp SHORT $LN6@xmlValidCt $LN7@xmlValidCt: ; 4036 : if (*src != 0) mov eax, DWORD PTR _src$[ebp] movzx ecx, BYTE PTR [eax] test ecx, ecx je SHORT $LN25@xmlValidCt ; 4037 : *dst++ = 0x20; mov edx, DWORD PTR _dst$[ebp] mov BYTE PTR [edx], 32 ; 00000020H mov eax, DWORD PTR _dst$[ebp] add eax, 1 mov DWORD PTR _dst$[ebp], eax $LN25@xmlValidCt: ; 4038 : } else { jmp SHORT $LN24@xmlValidCt $LN23@xmlValidCt: ; 4039 : *dst++ = *src++; mov ecx, DWORD PTR _dst$[ebp] mov edx, DWORD PTR _src$[ebp] mov al, BYTE PTR [edx] mov BYTE PTR [ecx], al mov ecx, DWORD PTR _dst$[ebp] add ecx, 1 mov DWORD PTR _dst$[ebp], ecx mov edx, DWORD PTR _src$[ebp] add edx, 1 mov DWORD PTR _src$[ebp], edx $LN24@xmlValidCt: ; 4040 : } ; 4041 : } jmp SHORT $LN4@xmlValidCt $LN5@xmlValidCt: ; 4042 : *dst = 0; mov eax, DWORD PTR _dst$[ebp] mov BYTE PTR [eax], 0 ; 4043 : if ((doc->standalone) && (extsubset == 1) && (!xmlStrEqual(value, ret))) { mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+40], 0 je SHORT $LN26@xmlValidCt cmp DWORD PTR _extsubset$[ebp], 1 jne SHORT $LN26@xmlValidCt mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _value$[ebp] push eax call _xmlStrEqual add esp, 8 test eax, eax jne SHORT $LN26@xmlValidCt ; 4044 : xmlErrValidNode(ctxt, elem, XML_DTD_NOT_STANDALONE, push 0 mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _name$[ebp] push eax push OFFSET ??_C@_0FG@CJEJIEOP@standalone?3?5?$CFs?5on?5?$CFs?5value?5had?5@ push 530 ; 00000212H mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4045 : "standalone: %s on %s value had to be normalized based on external subset declaration\n", ; 4046 : name, elem->name, NULL); ; 4047 : ctxt->valid = 0; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+36], 0 $LN26@xmlValidCt: ; 4048 : } ; 4049 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlValidCt: ; 4050 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN30@xmlValidCt call @_RTC_CheckStackVars@8 pop eax pop edx pop edi pop esi add esp, 84 ; 00000054H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 2 $LN30@xmlValidCt: DD 1 DD $LN29@xmlValidCt $LN29@xmlValidCt: DD -76 ; ffffffb4H DD 50 ; 00000032H DD $LN28@xmlValidCt $LN28@xmlValidCt: DB 102 ; 00000066H DB 110 ; 0000006eH DB 0 _xmlValidCtxtNormalizeAttributeValue ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidNormalizeAttributeValue _TEXT SEGMENT _fullname$1 = -80 ; size = 4 _fn$2 = -72 ; size = 50 _attrDecl$ = -16 ; size = 4 _src$ = -12 ; size = 4 _dst$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _doc$ = 8 ; size = 4 _elem$ = 12 ; size = 4 _name$ = 16 ; size = 4 _value$ = 20 ; size = 4 _xmlValidNormalizeAttributeValue PROC ; COMDAT ; 4073 : const xmlChar *name, const xmlChar *value) { push ebp mov ebp, esp sub esp, 80 ; 00000050H push esi push edi lea edi, DWORD PTR [ebp-80] mov ecx, 20 ; 00000014H mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 4074 : xmlChar *ret, *dst; ; 4075 : const xmlChar *src; ; 4076 : xmlAttributePtr attrDecl = NULL; mov DWORD PTR _attrDecl$[ebp], 0 ; 4077 : ; 4078 : if (doc == NULL) return(NULL); cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN8@xmlValidNo xor eax, eax jmp $LN1@xmlValidNo $LN8@xmlValidNo: ; 4079 : if (elem == NULL) return(NULL); cmp DWORD PTR _elem$[ebp], 0 jne SHORT $LN9@xmlValidNo xor eax, eax jmp $LN1@xmlValidNo $LN9@xmlValidNo: ; 4080 : if (name == NULL) return(NULL); cmp DWORD PTR _name$[ebp], 0 jne SHORT $LN10@xmlValidNo xor eax, eax jmp $LN1@xmlValidNo $LN10@xmlValidNo: ; 4081 : if (value == NULL) return(NULL); cmp DWORD PTR _value$[ebp], 0 jne SHORT $LN11@xmlValidNo xor eax, eax jmp $LN1@xmlValidNo $LN11@xmlValidNo: ; 4082 : ; 4083 : if ((elem->ns != NULL) && (elem->ns->prefix != NULL)) { mov eax, DWORD PTR _elem$[ebp] cmp DWORD PTR [eax+36], 0 je SHORT $LN12@xmlValidNo mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+36] cmp DWORD PTR [edx+12], 0 je SHORT $LN12@xmlValidNo ; 4084 : xmlChar fn[50]; ; 4085 : xmlChar *fullname; ; 4086 : ; 4087 : fullname = xmlBuildQName(elem->name, elem->ns->prefix, fn, 50); push 50 ; 00000032H lea eax, DWORD PTR _fn$2[ebp] push eax mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+36] mov eax, DWORD PTR [edx+12] push eax mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlBuildQName add esp, 16 ; 00000010H mov DWORD PTR _fullname$1[ebp], eax ; 4088 : if (fullname == NULL) cmp DWORD PTR _fullname$1[ebp], 0 jne SHORT $LN13@xmlValidNo ; 4089 : return(NULL); xor eax, eax jmp $LN1@xmlValidNo $LN13@xmlValidNo: ; 4090 : if ((fullname != fn) && (fullname != elem->name)) lea eax, DWORD PTR _fn$2[ebp] cmp DWORD PTR _fullname$1[ebp], eax je SHORT $LN12@xmlValidNo mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR _fullname$1[ebp] cmp edx, DWORD PTR [ecx+8] je SHORT $LN12@xmlValidNo ; 4091 : xmlFree(fullname); mov esi, esp mov eax, DWORD PTR _fullname$1[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN12@xmlValidNo: ; 4092 : } ; 4093 : attrDecl = xmlGetDtdAttrDesc(doc->intSubset, elem->name, name); mov ecx, DWORD PTR _name$[ebp] push ecx mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+44] push edx call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$[ebp], eax ; 4094 : if ((attrDecl == NULL) && (doc->extSubset != NULL)) cmp DWORD PTR _attrDecl$[ebp], 0 jne SHORT $LN15@xmlValidNo mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+48], 0 je SHORT $LN15@xmlValidNo ; 4095 : attrDecl = xmlGetDtdAttrDesc(doc->extSubset, elem->name, name); mov ecx, DWORD PTR _name$[ebp] push ecx mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+48] push edx call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$[ebp], eax $LN15@xmlValidNo: ; 4096 : ; 4097 : if (attrDecl == NULL) cmp DWORD PTR _attrDecl$[ebp], 0 jne SHORT $LN16@xmlValidNo ; 4098 : return(NULL); xor eax, eax jmp $LN1@xmlValidNo $LN16@xmlValidNo: ; 4099 : if (attrDecl->atype == XML_ATTRIBUTE_CDATA) mov eax, DWORD PTR _attrDecl$[ebp] cmp DWORD PTR [eax+40], 1 jne SHORT $LN17@xmlValidNo ; 4100 : return(NULL); xor eax, eax jmp $LN1@xmlValidNo $LN17@xmlValidNo: ; 4101 : ; 4102 : ret = xmlStrdup(value); mov ecx, DWORD PTR _value$[ebp] push ecx call _xmlStrdup add esp, 4 mov DWORD PTR _ret$[ebp], eax ; 4103 : if (ret == NULL) cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN18@xmlValidNo ; 4104 : return(NULL); xor eax, eax jmp $LN1@xmlValidNo $LN18@xmlValidNo: ; 4105 : src = value; mov edx, DWORD PTR _value$[ebp] mov DWORD PTR _src$[ebp], edx ; 4106 : dst = ret; mov eax, DWORD PTR _ret$[ebp] mov DWORD PTR _dst$[ebp], eax $LN2@xmlValidNo: ; 4107 : while (*src == 0x20) src++; mov ecx, DWORD PTR _src$[ebp] movzx edx, BYTE PTR [ecx] cmp edx, 32 ; 00000020H jne SHORT $LN4@xmlValidNo mov eax, DWORD PTR _src$[ebp] add eax, 1 mov DWORD PTR _src$[ebp], eax jmp SHORT $LN2@xmlValidNo $LN4@xmlValidNo: ; 4108 : while (*src != 0) { mov ecx, DWORD PTR _src$[ebp] movzx edx, BYTE PTR [ecx] test edx, edx je SHORT $LN5@xmlValidNo ; 4109 : if (*src == 0x20) { mov eax, DWORD PTR _src$[ebp] movzx ecx, BYTE PTR [eax] cmp ecx, 32 ; 00000020H jne SHORT $LN19@xmlValidNo $LN6@xmlValidNo: ; 4110 : while (*src == 0x20) src++; mov edx, DWORD PTR _src$[ebp] movzx eax, BYTE PTR [edx] cmp eax, 32 ; 00000020H jne SHORT $LN7@xmlValidNo mov ecx, DWORD PTR _src$[ebp] add ecx, 1 mov DWORD PTR _src$[ebp], ecx jmp SHORT $LN6@xmlValidNo $LN7@xmlValidNo: ; 4111 : if (*src != 0) mov edx, DWORD PTR _src$[ebp] movzx eax, BYTE PTR [edx] test eax, eax je SHORT $LN21@xmlValidNo ; 4112 : *dst++ = 0x20; mov ecx, DWORD PTR _dst$[ebp] mov BYTE PTR [ecx], 32 ; 00000020H mov edx, DWORD PTR _dst$[ebp] add edx, 1 mov DWORD PTR _dst$[ebp], edx $LN21@xmlValidNo: ; 4113 : } else { jmp SHORT $LN20@xmlValidNo $LN19@xmlValidNo: ; 4114 : *dst++ = *src++; mov eax, DWORD PTR _dst$[ebp] mov ecx, DWORD PTR _src$[ebp] mov dl, BYTE PTR [ecx] mov BYTE PTR [eax], dl mov eax, DWORD PTR _dst$[ebp] add eax, 1 mov DWORD PTR _dst$[ebp], eax mov ecx, DWORD PTR _src$[ebp] add ecx, 1 mov DWORD PTR _src$[ebp], ecx $LN20@xmlValidNo: ; 4115 : } ; 4116 : } jmp SHORT $LN4@xmlValidNo $LN5@xmlValidNo: ; 4117 : *dst = 0; mov edx, DWORD PTR _dst$[ebp] mov BYTE PTR [edx], 0 ; 4118 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlValidNo: ; 4119 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN25@xmlValidNo call @_RTC_CheckStackVars@8 pop eax pop edx pop edi pop esi add esp, 80 ; 00000050H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 1 $LN25@xmlValidNo: DD 1 DD $LN24@xmlValidNo $LN24@xmlValidNo: DD -72 ; ffffffb8H DD 50 ; 00000032H DD $LN23@xmlValidNo $LN23@xmlValidNo: DB 102 ; 00000066H DB 110 ; 0000006eH DB 0 _xmlValidNormalizeAttributeValue ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateElementDecl _TEXT SEGMENT _name$1 = -20 ; size = 4 _next$2 = -16 ; size = 4 _cur$3 = -12 ; size = 4 _tst$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _elem$ = 16 ; size = 4 _xmlValidateElementDecl PROC ; COMDAT ; 4260 : xmlElementPtr elem) { push ebp mov ebp, esp sub esp, 20 ; 00000014H mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 4261 : int ret = 1; mov DWORD PTR _ret$[ebp], 1 ; 4262 : xmlElementPtr tst; ; 4263 : ; 4264 : CHECK_DTD; cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN6@xmlValidat xor eax, eax jmp $LN1@xmlValidat jmp SHORT $LN7@xmlValidat $LN6@xmlValidat: mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+44], 0 jne SHORT $LN7@xmlValidat mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+48], 0 jne SHORT $LN7@xmlValidat xor eax, eax jmp $LN1@xmlValidat $LN7@xmlValidat: ; 4265 : ; 4266 : if (elem == NULL) return(1); cmp DWORD PTR _elem$[ebp], 0 jne SHORT $LN9@xmlValidat mov eax, 1 jmp $LN1@xmlValidat $LN9@xmlValidat: ; 4267 : ; 4268 : #if 0 ; 4269 : #ifdef LIBXML_REGEXP_ENABLED ; 4270 : /* Build the regexp associated to the content model */ ; 4271 : ret = xmlValidBuildContentModel(ctxt, elem); ; 4272 : #endif ; 4273 : #endif ; 4274 : ; 4275 : /* No Duplicate Types */ ; 4276 : if (elem->etype == XML_ELEMENT_TYPE_MIXED) { mov edx, DWORD PTR _elem$[ebp] cmp DWORD PTR [edx+36], 3 jne $LN10@xmlValidat ; 4277 : xmlElementContentPtr cur, next; ; 4278 : const xmlChar *name; ; 4279 : ; 4280 : cur = elem->content; mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+40] mov DWORD PTR _cur$3[ebp], ecx $LN2@xmlValidat: ; 4281 : while (cur != NULL) { cmp DWORD PTR _cur$3[ebp], 0 je $LN10@xmlValidat ; 4282 : if (cur->type != XML_ELEMENT_CONTENT_OR) break; mov edx, DWORD PTR _cur$3[ebp] cmp DWORD PTR [edx], 4 je SHORT $LN11@xmlValidat jmp $LN10@xmlValidat $LN11@xmlValidat: ; 4283 : if (cur->c1 == NULL) break; mov eax, DWORD PTR _cur$3[ebp] cmp DWORD PTR [eax+12], 0 jne SHORT $LN12@xmlValidat jmp $LN10@xmlValidat $LN12@xmlValidat: ; 4284 : if (cur->c1->type == XML_ELEMENT_CONTENT_ELEMENT) { mov ecx, DWORD PTR _cur$3[ebp] mov edx, DWORD PTR [ecx+12] cmp DWORD PTR [edx], 2 jne $LN13@xmlValidat ; 4285 : name = cur->c1->name; mov eax, DWORD PTR _cur$3[ebp] mov ecx, DWORD PTR [eax+12] mov edx, DWORD PTR [ecx+8] mov DWORD PTR _name$1[ebp], edx ; 4286 : next = cur->c2; mov eax, DWORD PTR _cur$3[ebp] mov ecx, DWORD PTR [eax+16] mov DWORD PTR _next$2[ebp], ecx $LN4@xmlValidat: ; 4287 : while (next != NULL) { cmp DWORD PTR _next$2[ebp], 0 je $LN13@xmlValidat ; 4288 : if (next->type == XML_ELEMENT_CONTENT_ELEMENT) { mov edx, DWORD PTR _next$2[ebp] cmp DWORD PTR [edx], 2 jne $LN14@xmlValidat ; 4289 : if ((xmlStrEqual(next->name, name)) && mov eax, DWORD PTR _name$1[ebp] push eax mov ecx, DWORD PTR _next$2[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlStrEqual add esp, 8 test eax, eax je $LN15@xmlValidat mov eax, DWORD PTR _cur$3[ebp] mov ecx, DWORD PTR [eax+12] mov edx, DWORD PTR [ecx+24] push edx mov eax, DWORD PTR _next$2[ebp] mov ecx, DWORD PTR [eax+24] push ecx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN15@xmlValidat ; 4290 : (xmlStrEqual(next->prefix, cur->c1->prefix))) { ; 4291 : if (cur->c1->prefix == NULL) { mov edx, DWORD PTR _cur$3[ebp] mov eax, DWORD PTR [edx+12] cmp DWORD PTR [eax+24], 0 jne SHORT $LN16@xmlValidat ; 4292 : xmlErrValidNode(ctxt, (xmlNodePtr) elem, XML_DTD_CONTENT_ERROR, push 0 mov ecx, DWORD PTR _name$1[ebp] push ecx mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax push OFFSET ??_C@_0DB@DPGOOPFF@Definition?5of?5?$CFs?5has?5duplicate?5@ push 503 ; 000001f7H mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4293 : "Definition of %s has duplicate references of %s\n", ; 4294 : elem->name, name, NULL); ; 4295 : } else { jmp SHORT $LN17@xmlValidat $LN16@xmlValidat: ; 4296 : xmlErrValidNode(ctxt, (xmlNodePtr) elem, XML_DTD_CONTENT_ERROR, mov eax, DWORD PTR _name$1[ebp] push eax mov ecx, DWORD PTR _cur$3[ebp] mov edx, DWORD PTR [ecx+12] mov eax, DWORD PTR [edx+24] push eax mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx push OFFSET ??_C@_0DE@IDAOJGBB@Definition?5of?5?$CFs?5has?5duplicate?5@ push 503 ; 000001f7H mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH $LN17@xmlValidat: ; 4297 : "Definition of %s has duplicate references of %s:%s\n", ; 4298 : elem->name, cur->c1->prefix, name); ; 4299 : } ; 4300 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN15@xmlValidat: ; 4301 : } ; 4302 : break; jmp $LN13@xmlValidat $LN14@xmlValidat: ; 4303 : } ; 4304 : if (next->c1 == NULL) break; mov edx, DWORD PTR _next$2[ebp] cmp DWORD PTR [edx+12], 0 jne SHORT $LN18@xmlValidat jmp $LN13@xmlValidat $LN18@xmlValidat: ; 4305 : if (next->c1->type != XML_ELEMENT_CONTENT_ELEMENT) break; mov eax, DWORD PTR _next$2[ebp] mov ecx, DWORD PTR [eax+12] cmp DWORD PTR [ecx], 2 je SHORT $LN19@xmlValidat jmp $LN13@xmlValidat $LN19@xmlValidat: ; 4306 : if ((xmlStrEqual(next->c1->name, name)) && mov edx, DWORD PTR _name$1[ebp] push edx mov eax, DWORD PTR _next$2[ebp] mov ecx, DWORD PTR [eax+12] mov edx, DWORD PTR [ecx+8] push edx call _xmlStrEqual add esp, 8 test eax, eax je $LN20@xmlValidat mov eax, DWORD PTR _cur$3[ebp] mov ecx, DWORD PTR [eax+12] mov edx, DWORD PTR [ecx+24] push edx mov eax, DWORD PTR _next$2[ebp] mov ecx, DWORD PTR [eax+12] mov edx, DWORD PTR [ecx+24] push edx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN20@xmlValidat ; 4307 : (xmlStrEqual(next->c1->prefix, cur->c1->prefix))) { ; 4308 : if (cur->c1->prefix == NULL) { mov eax, DWORD PTR _cur$3[ebp] mov ecx, DWORD PTR [eax+12] cmp DWORD PTR [ecx+24], 0 jne SHORT $LN21@xmlValidat ; 4309 : xmlErrValidNode(ctxt, (xmlNodePtr) elem, XML_DTD_CONTENT_ERROR, push 0 mov edx, DWORD PTR _name$1[ebp] push edx mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx push OFFSET ??_C@_0DB@HNLIHGKJ@Definition?5of?5?$CFs?5has?5duplicate?5@ push 503 ; 000001f7H mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4310 : "Definition of %s has duplicate references to %s\n", ; 4311 : elem->name, name, NULL); ; 4312 : } else { jmp SHORT $LN22@xmlValidat $LN21@xmlValidat: ; 4313 : xmlErrValidNode(ctxt, (xmlNodePtr) elem, XML_DTD_CONTENT_ERROR, mov ecx, DWORD PTR _name$1[ebp] push ecx mov edx, DWORD PTR _cur$3[ebp] mov eax, DWORD PTR [edx+12] mov ecx, DWORD PTR [eax+24] push ecx mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax push OFFSET ??_C@_0DE@PAODFKFF@Definition?5of?5?$CFs?5has?5duplicate?5@ push 503 ; 000001f7H mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH $LN22@xmlValidat: ; 4314 : "Definition of %s has duplicate references to %s:%s\n", ; 4315 : elem->name, cur->c1->prefix, name); ; 4316 : } ; 4317 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN20@xmlValidat: ; 4318 : } ; 4319 : next = next->c2; mov eax, DWORD PTR _next$2[ebp] mov ecx, DWORD PTR [eax+16] mov DWORD PTR _next$2[ebp], ecx ; 4320 : } jmp $LN4@xmlValidat $LN13@xmlValidat: ; 4321 : } ; 4322 : cur = cur->c2; mov edx, DWORD PTR _cur$3[ebp] mov eax, DWORD PTR [edx+16] mov DWORD PTR _cur$3[ebp], eax ; 4323 : } jmp $LN2@xmlValidat $LN10@xmlValidat: ; 4324 : } ; 4325 : ; 4326 : /* VC: Unique Element Type Declaration */ ; 4327 : tst = xmlGetDtdElementDesc(doc->intSubset, elem->name); mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+44] push ecx call _xmlGetDtdElementDesc add esp, 8 mov DWORD PTR _tst$[ebp], eax ; 4328 : if ((tst != NULL ) && (tst != elem) && ; 4329 : ((tst->prefix == elem->prefix) || ; 4330 : (xmlStrEqual(tst->prefix, elem->prefix))) && cmp DWORD PTR _tst$[ebp], 0 je SHORT $LN23@xmlValidat mov edx, DWORD PTR _tst$[ebp] cmp edx, DWORD PTR _elem$[ebp] je SHORT $LN23@xmlValidat mov eax, DWORD PTR _tst$[ebp] mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [eax+48] cmp edx, DWORD PTR [ecx+48] je SHORT $LN24@xmlValidat mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+48] push ecx mov edx, DWORD PTR _tst$[ebp] mov eax, DWORD PTR [edx+48] push eax call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN23@xmlValidat $LN24@xmlValidat: mov ecx, DWORD PTR _tst$[ebp] cmp DWORD PTR [ecx+36], 0 je SHORT $LN23@xmlValidat ; 4331 : (tst->etype != XML_ELEMENT_TYPE_UNDEFINED)) { ; 4332 : xmlErrValidNode(ctxt, (xmlNodePtr) elem, XML_DTD_ELEM_REDEFINED, push 0 push 0 mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax push OFFSET ??_C@_0BM@DLJMKEJ@Redefinition?5of?5element?5?$CFs?6@ push 509 ; 000001fdH mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4333 : "Redefinition of element %s\n", ; 4334 : elem->name, NULL, NULL); ; 4335 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN23@xmlValidat: ; 4336 : } ; 4337 : tst = xmlGetDtdElementDesc(doc->extSubset, elem->name); mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+48] push eax call _xmlGetDtdElementDesc add esp, 8 mov DWORD PTR _tst$[ebp], eax ; 4338 : if ((tst != NULL ) && (tst != elem) && ; 4339 : ((tst->prefix == elem->prefix) || ; 4340 : (xmlStrEqual(tst->prefix, elem->prefix))) && cmp DWORD PTR _tst$[ebp], 0 je SHORT $LN25@xmlValidat mov ecx, DWORD PTR _tst$[ebp] cmp ecx, DWORD PTR _elem$[ebp] je SHORT $LN25@xmlValidat mov edx, DWORD PTR _tst$[ebp] mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [edx+48] cmp ecx, DWORD PTR [eax+48] je SHORT $LN26@xmlValidat mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+48] push eax mov ecx, DWORD PTR _tst$[ebp] mov edx, DWORD PTR [ecx+48] push edx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN25@xmlValidat $LN26@xmlValidat: mov eax, DWORD PTR _tst$[ebp] cmp DWORD PTR [eax+36], 0 je SHORT $LN25@xmlValidat ; 4341 : (tst->etype != XML_ELEMENT_TYPE_UNDEFINED)) { ; 4342 : xmlErrValidNode(ctxt, (xmlNodePtr) elem, XML_DTD_ELEM_REDEFINED, push 0 push 0 mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx push OFFSET ??_C@_0BM@DLJMKEJ@Redefinition?5of?5element?5?$CFs?6@ push 509 ; 000001fdH mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 4343 : "Redefinition of element %s\n", ; 4344 : elem->name, NULL, NULL); ; 4345 : ret = 0; mov DWORD PTR _ret$[ebp], 0 $LN25@xmlValidat: ; 4346 : } ; 4347 : /* One ID per Element Type ; 4348 : * already done when registering the attribute ; 4349 : if (xmlScanIDAttributeDecl(ctxt, elem) > 1) { ; 4350 : ret = 0; ; 4351 : } */ ; 4352 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlValidat: ; 4353 : } add esp, 20 ; 00000014H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlValidateElementDecl ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlValidateRoot _TEXT SEGMENT _fullname$1 = -72 ; size = 4 _fn$2 = -64 ; size = 50 _ret$ = -8 ; size = 4 _root$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _xmlValidateRoot PROC ; COMDAT ; 6345 : xmlValidateRoot(xmlValidCtxtPtr ctxt, xmlDocPtr doc) { push ebp mov ebp, esp sub esp, 72 ; 00000048H push esi push edi lea edi, DWORD PTR [ebp-72] mov ecx, 18 ; 00000012H mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 6346 : xmlNodePtr root; ; 6347 : int ret; ; 6348 : ; 6349 : if (doc == NULL) return(0); cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN2@xmlValidat xor eax, eax jmp $LN1@xmlValidat $LN2@xmlValidat: ; 6350 : ; 6351 : root = xmlDocGetRootElement(doc); mov eax, DWORD PTR _doc$[ebp] push eax call _xmlDocGetRootElement add esp, 4 mov DWORD PTR _root$[ebp], eax ; 6352 : if ((root == NULL) || (root->name == NULL)) { cmp DWORD PTR _root$[ebp], 0 je SHORT $LN4@xmlValidat mov ecx, DWORD PTR _root$[ebp] cmp DWORD PTR [ecx+8], 0 jne SHORT $LN3@xmlValidat $LN4@xmlValidat: ; 6353 : xmlErrValid(ctxt, XML_DTD_NO_ROOT, push 0 push OFFSET ??_C@_0BB@JNDFICHA@no?5root?5element?6@ push 525 ; 0000020dH mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValid add esp, 16 ; 00000010H ; 6354 : "no root element\n", NULL); ; 6355 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN3@xmlValidat: ; 6356 : } ; 6357 : ; 6358 : /* ; 6359 : * When doing post validation against a separate DTD, those may ; 6360 : * no internal subset has been generated ; 6361 : */ ; 6362 : if ((doc->intSubset != NULL) && mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+44], 0 je $name_ok$16 mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+44] cmp DWORD PTR [edx+8], 0 je $name_ok$16 ; 6363 : (doc->intSubset->name != NULL)) { ; 6364 : /* ; 6365 : * Check first the document root against the NQName ; 6366 : */ ; 6367 : if (!xmlStrEqual(doc->intSubset->name, root->name)) { mov eax, DWORD PTR _root$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+44] mov ecx, DWORD PTR [eax+8] push ecx call _xmlStrEqual add esp, 8 test eax, eax jne $name_ok$16 ; 6368 : if ((root->ns != NULL) && (root->ns->prefix != NULL)) { mov edx, DWORD PTR _root$[ebp] cmp DWORD PTR [edx+36], 0 je $LN7@xmlValidat mov eax, DWORD PTR _root$[ebp] mov ecx, DWORD PTR [eax+36] cmp DWORD PTR [ecx+12], 0 je $LN7@xmlValidat ; 6369 : xmlChar fn[50]; ; 6370 : xmlChar *fullname; ; 6371 : ; 6372 : fullname = xmlBuildQName(root->name, root->ns->prefix, fn, 50); push 50 ; 00000032H lea edx, DWORD PTR _fn$2[ebp] push edx mov eax, DWORD PTR _root$[ebp] mov ecx, DWORD PTR [eax+36] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _root$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlBuildQName add esp, 16 ; 00000010H mov DWORD PTR _fullname$1[ebp], eax ; 6373 : if (fullname == NULL) { cmp DWORD PTR _fullname$1[ebp], 0 jne SHORT $LN8@xmlValidat ; 6374 : xmlVErrMemory(ctxt, NULL); push 0 mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlVErrMemory add esp, 8 ; 6375 : return(0); xor eax, eax jmp $LN1@xmlValidat $LN8@xmlValidat: ; 6376 : } ; 6377 : ret = xmlStrEqual(doc->intSubset->name, fullname); mov eax, DWORD PTR _fullname$1[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+44] mov eax, DWORD PTR [edx+8] push eax call _xmlStrEqual add esp, 8 mov DWORD PTR _ret$[ebp], eax ; 6378 : if ((fullname != fn) && (fullname != root->name)) lea ecx, DWORD PTR _fn$2[ebp] cmp DWORD PTR _fullname$1[ebp], ecx je SHORT $LN9@xmlValidat mov edx, DWORD PTR _root$[ebp] mov eax, DWORD PTR _fullname$1[ebp] cmp eax, DWORD PTR [edx+8] je SHORT $LN9@xmlValidat ; 6379 : xmlFree(fullname); mov esi, esp mov ecx, DWORD PTR _fullname$1[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN9@xmlValidat: ; 6380 : if (ret == 1) cmp DWORD PTR _ret$[ebp], 1 jne SHORT $LN7@xmlValidat ; 6381 : goto name_ok; jmp SHORT $name_ok$16 $LN7@xmlValidat: ; 6382 : } ; 6383 : if ((xmlStrEqual(doc->intSubset->name, BAD_CAST "HTML")) && push OFFSET ??_C@_04DBLPJNAF@HTML@ mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+44] mov ecx, DWORD PTR [eax+8] push ecx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN11@xmlValidat push OFFSET ??_C@_04PNIFHPHN@html@ mov edx, DWORD PTR _root$[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN11@xmlValidat ; 6384 : (xmlStrEqual(root->name, BAD_CAST "html"))) ; 6385 : goto name_ok; jmp SHORT $name_ok$16 $LN11@xmlValidat: ; 6386 : xmlErrValidNode(ctxt, root, XML_DTD_ROOT_NAME, push 0 mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+44] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _root$[ebp] mov edx, DWORD PTR [ecx+8] push edx push OFFSET ??_C@_0CO@PMJDAMAF@root?5and?5DTD?5name?5do?5not?5match?5@ push 531 ; 00000213H mov eax, DWORD PTR _root$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 6387 : "root and DTD name do not match '%s' and '%s'\n", ; 6388 : root->name, doc->intSubset->name, NULL); ; 6389 : return(0); xor eax, eax jmp SHORT $LN1@xmlValidat $name_ok$16: ; 6390 : } ; 6391 : } ; 6392 : name_ok: ; 6393 : return(1); mov eax, 1 $LN1@xmlValidat: ; 6394 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN15@xmlValidat call @_RTC_CheckStackVars@8 pop eax pop edx pop edi pop esi add esp, 72 ; 00000048H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 3 $LN15@xmlValidat: DD 1 DD $LN14@xmlValidat $LN14@xmlValidat: DD -64 ; ffffffc0H DD 50 ; 00000032H DD $LN13@xmlValidat $LN13@xmlValidat: DB 102 ; 00000066H DB 110 ; 0000006eH DB 0 _xmlValidateRoot ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeValidCtxt _TEXT SEGMENT _cur$ = 8 ; size = 4 _xmlFreeValidCtxt PROC ; COMDAT ; 900 : xmlFreeValidCtxt(xmlValidCtxtPtr cur) { push ebp mov ebp, esp push esi mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 901 : if (cur->vstateTab != NULL) mov eax, DWORD PTR _cur$[ebp] cmp DWORD PTR [eax+52], 0 je SHORT $LN2@xmlFreeVal ; 902 : xmlFree(cur->vstateTab); mov esi, esp mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+52] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN2@xmlFreeVal: ; 903 : if (cur->nodeTab != NULL) mov eax, DWORD PTR _cur$[ebp] cmp DWORD PTR [eax+24], 0 je SHORT $LN3@xmlFreeVal ; 904 : xmlFree(cur->nodeTab); mov esi, esp mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+24] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN3@xmlFreeVal: ; 905 : xmlFree(cur); mov esi, esp mov eax, DWORD PTR _cur$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 906 : } pop esi cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlFreeValidCtxt ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlNewValidCtxt _TEXT SEGMENT _ret$ = -4 ; size = 4 _xmlNewValidCtxt PROC ; COMDAT ; 880 : xmlValidCtxtPtr xmlNewValidCtxt(void) { push ebp mov ebp, esp push ecx push esi mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 881 : xmlValidCtxtPtr ret; ; 882 : ; 883 : if ((ret = xmlMalloc(sizeof (xmlValidCtxt))) == NULL) { mov esi, esp push 64 ; 00000040H call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _ret$[ebp], eax cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN2@xmlNewVali ; 884 : xmlVErrMemory(NULL, "malloc failed"); push OFFSET ??_C@_0O@IMHFIAOC@malloc?5failed@ push 0 call _xmlVErrMemory add esp, 8 ; 885 : return (NULL); xor eax, eax jmp SHORT $LN1@xmlNewVali $LN2@xmlNewVali: ; 886 : } ; 887 : ; 888 : (void) memset(ret, 0, sizeof (xmlValidCtxt)); push 64 ; 00000040H push 0 mov eax, DWORD PTR _ret$[ebp] push eax call _memset add esp, 12 ; 0000000cH ; 889 : ; 890 : return (ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlNewVali: ; 891 : } pop esi add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlNewValidCtxt ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlGetRefs _TEXT SEGMENT _table$ = -4 ; size = 4 _doc$ = 8 ; size = 4 _ID$ = 12 ; size = 4 _xmlGetRefs PROC ; COMDAT ; 3141 : xmlGetRefs(xmlDocPtr doc, const xmlChar *ID) { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3142 : xmlRefTablePtr table; ; 3143 : ; 3144 : if (doc == NULL) { cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN2@xmlGetRefs ; 3145 : return(NULL); xor eax, eax jmp SHORT $LN1@xmlGetRefs $LN2@xmlGetRefs: ; 3146 : } ; 3147 : ; 3148 : if (ID == NULL) { cmp DWORD PTR _ID$[ebp], 0 jne SHORT $LN3@xmlGetRefs ; 3149 : return(NULL); xor eax, eax jmp SHORT $LN1@xmlGetRefs $LN3@xmlGetRefs: ; 3150 : } ; 3151 : ; 3152 : table = (xmlRefTablePtr) doc->refs; mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+68] mov DWORD PTR _table$[ebp], ecx ; 3153 : if (table == NULL) cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN4@xmlGetRefs ; 3154 : return(NULL); xor eax, eax jmp SHORT $LN1@xmlGetRefs $LN4@xmlGetRefs: ; 3155 : ; 3156 : return (xmlHashLookup(table, ID)); mov edx, DWORD PTR _ID$[ebp] push edx mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashLookup add esp, 8 $LN1@xmlGetRefs: ; 3157 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlGetRefs ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlRemoveRef _TEXT SEGMENT _target$ = -24 ; size = 8 _ID$ = -12 ; size = 4 _table$ = -8 ; size = 4 _ref_list$ = -4 ; size = 4 _doc$ = 8 ; size = 4 _attr$ = 12 ; size = 4 _xmlRemoveRef PROC ; COMDAT ; 3085 : xmlRemoveRef(xmlDocPtr doc, xmlAttrPtr attr) { push ebp mov ebp, esp sub esp, 28 ; 0000001cH push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-28], eax mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3086 : xmlListPtr ref_list; ; 3087 : xmlRefTablePtr table; ; 3088 : xmlChar *ID; ; 3089 : xmlRemoveMemo target; ; 3090 : ; 3091 : if (doc == NULL) return(-1); cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN2@xmlRemoveR or eax, -1 jmp $LN1@xmlRemoveR $LN2@xmlRemoveR: ; 3092 : if (attr == NULL) return(-1); cmp DWORD PTR _attr$[ebp], 0 jne SHORT $LN3@xmlRemoveR or eax, -1 jmp $LN1@xmlRemoveR $LN3@xmlRemoveR: ; 3093 : ; 3094 : table = (xmlRefTablePtr) doc->refs; mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+68] mov DWORD PTR _table$[ebp], ecx ; 3095 : if (table == NULL) cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN4@xmlRemoveR ; 3096 : return(-1); or eax, -1 jmp $LN1@xmlRemoveR $LN4@xmlRemoveR: ; 3097 : ; 3098 : ID = xmlNodeListGetString(doc, attr->children, 1); push 1 mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+12] push eax mov ecx, DWORD PTR _doc$[ebp] push ecx call _xmlNodeListGetString add esp, 12 ; 0000000cH mov DWORD PTR _ID$[ebp], eax ; 3099 : if (ID == NULL) cmp DWORD PTR _ID$[ebp], 0 jne SHORT $LN5@xmlRemoveR ; 3100 : return(-1); or eax, -1 jmp $LN1@xmlRemoveR $LN5@xmlRemoveR: ; 3101 : ; 3102 : ref_list = xmlHashLookup(table, ID); mov edx, DWORD PTR _ID$[ebp] push edx mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashLookup add esp, 8 mov DWORD PTR _ref_list$[ebp], eax ; 3103 : if(ref_list == NULL) { cmp DWORD PTR _ref_list$[ebp], 0 jne SHORT $LN6@xmlRemoveR ; 3104 : xmlFree(ID); mov esi, esp mov ecx, DWORD PTR _ID$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 3105 : return (-1); or eax, -1 jmp SHORT $LN1@xmlRemoveR $LN6@xmlRemoveR: ; 3106 : } ; 3107 : ; 3108 : /* At this point, ref_list refers to a list of references which ; 3109 : * have the same key as the supplied attr. Our list of references ; 3110 : * is ordered by reference address and we don't have that information ; 3111 : * here to use when removing. We'll have to walk the list and ; 3112 : * check for a matching attribute, when we find one stop the walk ; 3113 : * and remove the entry. ; 3114 : * The list is ordered by reference, so that means we don't have the ; 3115 : * key. Passing the list and the reference to the walker means we ; 3116 : * will have enough data to be able to remove the entry. ; 3117 : */ ; 3118 : target.l = ref_list; mov edx, DWORD PTR _ref_list$[ebp] mov DWORD PTR _target$[ebp], edx ; 3119 : target.ap = attr; mov eax, DWORD PTR _attr$[ebp] mov DWORD PTR _target$[ebp+4], eax ; 3120 : ; 3121 : /* Remove the supplied attr from our list */ ; 3122 : xmlListWalk(ref_list, xmlWalkRemoveRef, &target); lea ecx, DWORD PTR _target$[ebp] push ecx push OFFSET _xmlWalkRemoveRef mov edx, DWORD PTR _ref_list$[ebp] push edx call _xmlListWalk add esp, 12 ; 0000000cH ; 3123 : ; 3124 : /*If the list is empty then remove the list entry in the hash */ ; 3125 : if (xmlListEmpty(ref_list)) mov eax, DWORD PTR _ref_list$[ebp] push eax call _xmlListEmpty add esp, 4 test eax, eax je SHORT $LN7@xmlRemoveR ; 3126 : xmlHashUpdateEntry(table, ID, NULL, xmlFreeRefTableEntry); push OFFSET _xmlFreeRefTableEntry push 0 mov ecx, DWORD PTR _ID$[ebp] push ecx mov edx, DWORD PTR _table$[ebp] push edx call _xmlHashUpdateEntry add esp, 16 ; 00000010H $LN7@xmlRemoveR: ; 3127 : xmlFree(ID); mov esi, esp mov eax, DWORD PTR _ID$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 3128 : return(0); xor eax, eax $LN1@xmlRemoveR: ; 3129 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN11@xmlRemoveR call @_RTC_CheckStackVars@8 pop eax pop edx pop esi add esp, 28 ; 0000001cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 $LN11@xmlRemoveR: DD 1 DD $LN10@xmlRemoveR $LN10@xmlRemoveR: DD -24 ; ffffffe8H DD 8 DD $LN9@xmlRemoveR $LN9@xmlRemoveR: DB 116 ; 00000074H DB 97 ; 00000061H DB 114 ; 00000072H DB 103 ; 00000067H DB 101 ; 00000065H DB 116 ; 00000074H DB 0 _xmlRemoveRef ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlIsRef _TEXT SEGMENT _attrDecl$1 = -4 ; size = 4 _doc$ = 8 ; size = 4 _elem$ = 12 ; size = 4 _attr$ = 16 ; size = 4 _xmlIsRef PROC ; COMDAT ; 3045 : xmlIsRef(xmlDocPtr doc, xmlNodePtr elem, xmlAttrPtr attr) { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3046 : if (attr == NULL) cmp DWORD PTR _attr$[ebp], 0 jne SHORT $LN2@xmlIsRef ; 3047 : return(0); xor eax, eax jmp $LN1@xmlIsRef $LN2@xmlIsRef: ; 3048 : if (doc == NULL) { cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN3@xmlIsRef ; 3049 : doc = attr->doc; mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+32] mov DWORD PTR _doc$[ebp], ecx ; 3050 : if (doc == NULL) return(0); cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN3@xmlIsRef xor eax, eax jmp $LN1@xmlIsRef $LN3@xmlIsRef: ; 3051 : } ; 3052 : ; 3053 : if ((doc->intSubset == NULL) && (doc->extSubset == NULL)) { mov edx, DWORD PTR _doc$[ebp] cmp DWORD PTR [edx+44], 0 jne SHORT $LN5@xmlIsRef mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+48], 0 jne SHORT $LN5@xmlIsRef ; 3054 : return(0); xor eax, eax jmp $LN1@xmlIsRef jmp $LN6@xmlIsRef $LN5@xmlIsRef: ; 3055 : } else if (doc->type == XML_HTML_DOCUMENT_NODE) { mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+4], 13 ; 0000000dH jne SHORT $LN7@xmlIsRef ; 3056 : /* TODO @@@ */ ; 3057 : return(0); xor eax, eax jmp SHORT $LN1@xmlIsRef ; 3058 : } else { jmp SHORT $LN6@xmlIsRef $LN7@xmlIsRef: ; 3059 : xmlAttributePtr attrDecl; ; 3060 : ; 3061 : if (elem == NULL) return(0); cmp DWORD PTR _elem$[ebp], 0 jne SHORT $LN9@xmlIsRef xor eax, eax jmp SHORT $LN1@xmlIsRef $LN9@xmlIsRef: ; 3062 : attrDecl = xmlGetDtdAttrDesc(doc->intSubset, elem->name, attr->name); mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+44] push ecx call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$1[ebp], eax ; 3063 : if ((attrDecl == NULL) && (doc->extSubset != NULL)) cmp DWORD PTR _attrDecl$1[ebp], 0 jne SHORT $LN10@xmlIsRef mov edx, DWORD PTR _doc$[ebp] cmp DWORD PTR [edx+48], 0 je SHORT $LN10@xmlIsRef ; 3064 : attrDecl = xmlGetDtdAttrDesc(doc->extSubset, mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+48] push edx call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$1[ebp], eax $LN10@xmlIsRef: ; 3065 : elem->name, attr->name); ; 3066 : ; 3067 : if ((attrDecl != NULL) && cmp DWORD PTR _attrDecl$1[ebp], 0 je SHORT $LN6@xmlIsRef mov eax, DWORD PTR _attrDecl$1[ebp] cmp DWORD PTR [eax+40], 3 je SHORT $LN12@xmlIsRef mov ecx, DWORD PTR _attrDecl$1[ebp] cmp DWORD PTR [ecx+40], 4 jne SHORT $LN6@xmlIsRef $LN12@xmlIsRef: ; 3068 : (attrDecl->atype == XML_ATTRIBUTE_IDREF || ; 3069 : attrDecl->atype == XML_ATTRIBUTE_IDREFS)) ; 3070 : return(1); mov eax, 1 jmp SHORT $LN1@xmlIsRef $LN6@xmlIsRef: ; 3071 : } ; 3072 : return(0); xor eax, eax $LN1@xmlIsRef: ; 3073 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlIsRef ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeRefTable _TEXT SEGMENT _table$ = 8 ; size = 4 _xmlFreeRefTable PROC ; COMDAT ; 3028 : xmlFreeRefTable(xmlRefTablePtr table) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 3029 : xmlHashFree(table, xmlFreeRefTableEntry); push OFFSET _xmlFreeRefTableEntry mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashFree add esp, 8 ; 3030 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlFreeRefTable ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlAddRef _TEXT SEGMENT _ref_list$ = -12 ; size = 4 _table$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _value$ = 16 ; size = 4 _attr$ = 20 ; size = 4 _xmlAddRef PROC ; COMDAT ; 2931 : xmlAttrPtr attr) { push ebp mov ebp, esp sub esp, 12 ; 0000000cH push esi mov DWORD PTR [ebp-12], -858993460 ; ccccccccH mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2932 : xmlRefPtr ret; ; 2933 : xmlRefTablePtr table; ; 2934 : xmlListPtr ref_list; ; 2935 : ; 2936 : if (doc == NULL) { cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN2@xmlAddRef ; 2937 : return(NULL); xor eax, eax jmp $LN1@xmlAddRef $LN2@xmlAddRef: ; 2938 : } ; 2939 : if (value == NULL) { cmp DWORD PTR _value$[ebp], 0 jne SHORT $LN3@xmlAddRef ; 2940 : return(NULL); xor eax, eax jmp $LN1@xmlAddRef $LN3@xmlAddRef: ; 2941 : } ; 2942 : if (attr == NULL) { cmp DWORD PTR _attr$[ebp], 0 jne SHORT $LN4@xmlAddRef ; 2943 : return(NULL); xor eax, eax jmp $LN1@xmlAddRef $LN4@xmlAddRef: ; 2944 : } ; 2945 : ; 2946 : /* ; 2947 : * Create the Ref table if needed. ; 2948 : */ ; 2949 : table = (xmlRefTablePtr) doc->refs; mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+68] mov DWORD PTR _table$[ebp], ecx ; 2950 : if (table == NULL) { cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN5@xmlAddRef ; 2951 : doc->refs = table = xmlHashCreateDict(0, doc->dict); mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+80] push eax push 0 call _xmlHashCreateDict add esp, 8 mov DWORD PTR _table$[ebp], eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR _table$[ebp] mov DWORD PTR [ecx+68], edx $LN5@xmlAddRef: ; 2952 : } ; 2953 : if (table == NULL) { cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN6@xmlAddRef ; 2954 : xmlVErrMemory(ctxt, push OFFSET ??_C@_0CD@JKLLCBGN@xmlAddRef?3?5Table?5creation?5faile@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlVErrMemory add esp, 8 ; 2955 : "xmlAddRef: Table creation failed!\n"); ; 2956 : return(NULL); xor eax, eax jmp $LN1@xmlAddRef $LN6@xmlAddRef: ; 2957 : } ; 2958 : ; 2959 : ret = (xmlRefPtr) xmlMalloc(sizeof(xmlRef)); mov esi, esp push 20 ; 00000014H call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _ret$[ebp], eax ; 2960 : if (ret == NULL) { cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN7@xmlAddRef ; 2961 : xmlVErrMemory(ctxt, "malloc failed"); push OFFSET ??_C@_0O@IMHFIAOC@malloc?5failed@ mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlVErrMemory add esp, 8 ; 2962 : return(NULL); xor eax, eax jmp $LN1@xmlAddRef $LN7@xmlAddRef: ; 2963 : } ; 2964 : ; 2965 : /* ; 2966 : * fill the structure. ; 2967 : */ ; 2968 : ret->value = xmlStrdup(value); mov edx, DWORD PTR _value$[ebp] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+4], eax ; 2969 : if ((ctxt != NULL) && (ctxt->vstateNr != 0)) { cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN8@xmlAddRef mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+44], 0 je SHORT $LN8@xmlAddRef ; 2970 : /* ; 2971 : * Operating in streaming mode, attr is gonna disapear ; 2972 : */ ; 2973 : ret->name = xmlStrdup(attr->name); mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlStrdup add esp, 4 mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+12], eax ; 2974 : ret->attr = NULL; mov eax, DWORD PTR _ret$[ebp] mov DWORD PTR [eax+8], 0 ; 2975 : } else { jmp SHORT $LN9@xmlAddRef $LN8@xmlAddRef: ; 2976 : ret->name = NULL; mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+12], 0 ; 2977 : ret->attr = attr; mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR _attr$[ebp] mov DWORD PTR [edx+8], eax $LN9@xmlAddRef: ; 2978 : } ; 2979 : ret->lineno = xmlGetLineNo(attr->parent); mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+20] push edx call _xmlGetLineNo add esp, 4 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+16], eax ; 2980 : ; 2981 : /* To add a reference :- ; 2982 : * References are maintained as a list of references, ; 2983 : * Lookup the entry, if no entry create new nodelist ; 2984 : * Add the owning node to the NodeList ; 2985 : * Return the ref ; 2986 : */ ; 2987 : ; 2988 : if (NULL == (ref_list = xmlHashLookup(table, value))) { mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashLookup add esp, 8 mov DWORD PTR _ref_list$[ebp], eax cmp DWORD PTR _ref_list$[ebp], 0 jne SHORT $LN10@xmlAddRef ; 2989 : if (NULL == (ref_list = xmlListCreate(xmlFreeRef, xmlDummyCompare))) { push OFFSET _xmlDummyCompare push OFFSET _xmlFreeRef call _xmlListCreate add esp, 8 mov DWORD PTR _ref_list$[ebp], eax cmp DWORD PTR _ref_list$[ebp], 0 jne SHORT $LN11@xmlAddRef ; 2990 : xmlErrValid(NULL, XML_ERR_INTERNAL_ERROR, push 0 push OFFSET ??_C@_0CM@EILGCMCJ@xmlAddRef?3?5Reference?5list?5creat@ push 1 push 0 call _xmlErrValid add esp, 16 ; 00000010H ; 2991 : "xmlAddRef: Reference list creation failed!\n", ; 2992 : NULL); ; 2993 : goto failed; jmp SHORT $failed$18 $LN11@xmlAddRef: ; 2994 : } ; 2995 : if (xmlHashAddEntry(table, value, ref_list) < 0) { mov ecx, DWORD PTR _ref_list$[ebp] push ecx mov edx, DWORD PTR _value$[ebp] push edx mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashAddEntry add esp, 12 ; 0000000cH test eax, eax jge SHORT $LN10@xmlAddRef ; 2996 : xmlListDelete(ref_list); mov ecx, DWORD PTR _ref_list$[ebp] push ecx call _xmlListDelete add esp, 4 ; 2997 : xmlErrValid(NULL, XML_ERR_INTERNAL_ERROR, push 0 push OFFSET ??_C@_0CN@CLGHPEIK@xmlAddRef?3?5Reference?5list?5inser@ push 1 push 0 call _xmlErrValid add esp, 16 ; 00000010H ; 2998 : "xmlAddRef: Reference list insertion failed!\n", ; 2999 : NULL); ; 3000 : goto failed; jmp SHORT $failed$18 $LN10@xmlAddRef: ; 3001 : } ; 3002 : } ; 3003 : if (xmlListAppend(ref_list, ret) != 0) { mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _ref_list$[ebp] push eax call _xmlListAppend add esp, 8 test eax, eax je SHORT $LN13@xmlAddRef ; 3004 : xmlErrValid(NULL, XML_ERR_INTERNAL_ERROR, push 0 push OFFSET ??_C@_0CN@CLGHPEIK@xmlAddRef?3?5Reference?5list?5inser@ push 1 push 0 call _xmlErrValid add esp, 16 ; 00000010H ; 3005 : "xmlAddRef: Reference list insertion failed!\n", ; 3006 : NULL); ; 3007 : goto failed; jmp SHORT $failed$18 $LN13@xmlAddRef: ; 3008 : } ; 3009 : return(ret); mov eax, DWORD PTR _ret$[ebp] jmp SHORT $LN1@xmlAddRef $failed$18: ; 3010 : failed: ; 3011 : if (ret != NULL) { cmp DWORD PTR _ret$[ebp], 0 je SHORT $LN14@xmlAddRef ; 3012 : if (ret->value != NULL) mov ecx, DWORD PTR _ret$[ebp] cmp DWORD PTR [ecx+4], 0 je SHORT $LN15@xmlAddRef ; 3013 : xmlFree((char *)ret->value); mov esi, esp mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR [edx+4] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN15@xmlAddRef: ; 3014 : if (ret->name != NULL) mov ecx, DWORD PTR _ret$[ebp] cmp DWORD PTR [ecx+12], 0 je SHORT $LN16@xmlAddRef ; 3015 : xmlFree((char *)ret->name); mov esi, esp mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR [edx+12] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN16@xmlAddRef: ; 3016 : xmlFree(ret); mov esi, esp mov ecx, DWORD PTR _ret$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN14@xmlAddRef: ; 3017 : } ; 3018 : return(NULL); xor eax, eax $LN1@xmlAddRef: ; 3019 : } pop esi add esp, 12 ; 0000000cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlAddRef ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlRemoveID _TEXT SEGMENT _ID$ = -12 ; size = 4 _id$ = -8 ; size = 4 _table$ = -4 ; size = 4 _doc$ = 8 ; size = 4 _attr$ = 12 ; size = 4 _xmlRemoveID PROC ; COMDAT ; 2765 : xmlRemoveID(xmlDocPtr doc, xmlAttrPtr attr) { push ebp mov ebp, esp sub esp, 12 ; 0000000cH push esi mov DWORD PTR [ebp-12], -858993460 ; ccccccccH mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2766 : xmlIDTablePtr table; ; 2767 : xmlIDPtr id; ; 2768 : xmlChar *ID; ; 2769 : ; 2770 : if (doc == NULL) return(-1); cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN2@xmlRemoveI or eax, -1 jmp $LN1@xmlRemoveI $LN2@xmlRemoveI: ; 2771 : if (attr == NULL) return(-1); cmp DWORD PTR _attr$[ebp], 0 jne SHORT $LN3@xmlRemoveI or eax, -1 jmp $LN1@xmlRemoveI $LN3@xmlRemoveI: ; 2772 : ; 2773 : table = (xmlIDTablePtr) doc->ids; mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+64] mov DWORD PTR _table$[ebp], ecx ; 2774 : if (table == NULL) cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN4@xmlRemoveI ; 2775 : return(-1); or eax, -1 jmp $LN1@xmlRemoveI $LN4@xmlRemoveI: ; 2776 : ; 2777 : ID = xmlNodeListGetString(doc, attr->children, 1); push 1 mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+12] push eax mov ecx, DWORD PTR _doc$[ebp] push ecx call _xmlNodeListGetString add esp, 12 ; 0000000cH mov DWORD PTR _ID$[ebp], eax ; 2778 : if (ID == NULL) cmp DWORD PTR _ID$[ebp], 0 jne SHORT $LN5@xmlRemoveI ; 2779 : return(-1); or eax, -1 jmp SHORT $LN1@xmlRemoveI $LN5@xmlRemoveI: ; 2780 : ; 2781 : id = xmlHashLookup(table, ID); mov edx, DWORD PTR _ID$[ebp] push edx mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashLookup add esp, 8 mov DWORD PTR _id$[ebp], eax ; 2782 : if (id == NULL || id->attr != attr) { cmp DWORD PTR _id$[ebp], 0 je SHORT $LN7@xmlRemoveI mov ecx, DWORD PTR _id$[ebp] mov edx, DWORD PTR [ecx+8] cmp edx, DWORD PTR _attr$[ebp] je SHORT $LN6@xmlRemoveI $LN7@xmlRemoveI: ; 2783 : xmlFree(ID); mov esi, esp mov eax, DWORD PTR _ID$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 2784 : return(-1); or eax, -1 jmp SHORT $LN1@xmlRemoveI $LN6@xmlRemoveI: ; 2785 : } ; 2786 : ; 2787 : xmlHashRemoveEntry(table, ID, xmlFreeIDTableEntry); push OFFSET _xmlFreeIDTableEntry mov ecx, DWORD PTR _ID$[ebp] push ecx mov edx, DWORD PTR _table$[ebp] push edx call _xmlHashRemoveEntry add esp, 12 ; 0000000cH ; 2788 : xmlFree(ID); mov esi, esp mov eax, DWORD PTR _ID$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 2789 : attr->atype = 0; mov ecx, DWORD PTR _attr$[ebp] mov DWORD PTR [ecx+40], 0 ; 2790 : return(0); xor eax, eax $LN1@xmlRemoveI: ; 2791 : } pop esi add esp, 12 ; 0000000cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlRemoveID ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlIsID _TEXT SEGMENT tv172 = -180 ; size = 4 tv157 = -176 ; size = 4 tv83 = -172 ; size = 4 tv250 = -168 ; size = 4 tv245 = -162 ; size = 1 tv238 = -161 ; size = 1 tv233 = -160 ; size = 4 tv235 = -156 ; size = 4 tv76 = -152 ; size = 4 tv228 = -148 ; size = 4 tv223 = -142 ; size = 1 tv216 = -141 ; size = 1 tv211 = -140 ; size = 4 tv213 = -136 ; size = 4 _fullattrname$1 = -132 ; size = 4 _fullelemname$2 = -128 ; size = 4 _fattr$3 = -120 ; size = 50 _felem$4 = -60 ; size = 50 _attrDecl$5 = -4 ; size = 4 _doc$ = 8 ; size = 4 _elem$ = 12 ; size = 4 _attr$ = 16 ; size = 4 _xmlIsID PROC ; COMDAT ; 2704 : xmlIsID(xmlDocPtr doc, xmlNodePtr elem, xmlAttrPtr attr) { push ebp mov ebp, esp sub esp, 180 ; 000000b4H push esi push edi lea edi, DWORD PTR [ebp-180] mov ecx, 45 ; 0000002dH mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2705 : if ((attr == NULL) || (attr->name == NULL)) return(0); cmp DWORD PTR _attr$[ebp], 0 je SHORT $LN3@xmlIsID mov eax, DWORD PTR _attr$[ebp] cmp DWORD PTR [eax+8], 0 jne SHORT $LN2@xmlIsID $LN3@xmlIsID: xor eax, eax jmp $LN1@xmlIsID $LN2@xmlIsID: ; 2706 : if ((attr->ns != NULL) && (attr->ns->prefix != NULL) && ; 2707 : (!strcmp((char *) attr->name, "id")) && mov ecx, DWORD PTR _attr$[ebp] cmp DWORD PTR [ecx+36], 0 je $LN4@xmlIsID mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+36] cmp DWORD PTR [eax+12], 0 je $LN4@xmlIsID mov DWORD PTR tv213[ebp], OFFSET ??_C@_02EGCJHIOB@id@ mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+8] mov DWORD PTR tv211[ebp], edx $LL25@xmlIsID: mov eax, DWORD PTR tv211[ebp] mov cl, BYTE PTR [eax] mov BYTE PTR tv216[ebp], cl mov edx, DWORD PTR tv213[ebp] cmp cl, BYTE PTR [edx] jne SHORT $LN26@xmlIsID cmp BYTE PTR tv216[ebp], 0 je SHORT $LN27@xmlIsID mov eax, DWORD PTR tv211[ebp] mov cl, BYTE PTR [eax+1] mov BYTE PTR tv223[ebp], cl mov edx, DWORD PTR tv213[ebp] cmp cl, BYTE PTR [edx+1] jne SHORT $LN26@xmlIsID add DWORD PTR tv211[ebp], 2 add DWORD PTR tv213[ebp], 2 cmp BYTE PTR tv223[ebp], 0 jne SHORT $LL25@xmlIsID $LN27@xmlIsID: mov DWORD PTR tv228[ebp], 0 jmp SHORT $LN28@xmlIsID $LN26@xmlIsID: sbb eax, eax or eax, 1 mov DWORD PTR tv228[ebp], eax $LN28@xmlIsID: mov ecx, DWORD PTR tv228[ebp] mov DWORD PTR tv76[ebp], ecx cmp DWORD PTR tv76[ebp], 0 jne $LN4@xmlIsID mov DWORD PTR tv235[ebp], OFFSET ??_C@_03PJHHNEEI@xml@ mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+36] mov ecx, DWORD PTR [eax+12] mov DWORD PTR tv233[ebp], ecx $LL29@xmlIsID: mov edx, DWORD PTR tv233[ebp] mov al, BYTE PTR [edx] mov BYTE PTR tv238[ebp], al mov ecx, DWORD PTR tv235[ebp] cmp al, BYTE PTR [ecx] jne SHORT $LN30@xmlIsID cmp BYTE PTR tv238[ebp], 0 je SHORT $LN31@xmlIsID mov edx, DWORD PTR tv233[ebp] mov al, BYTE PTR [edx+1] mov BYTE PTR tv245[ebp], al mov ecx, DWORD PTR tv235[ebp] cmp al, BYTE PTR [ecx+1] jne SHORT $LN30@xmlIsID add DWORD PTR tv233[ebp], 2 add DWORD PTR tv235[ebp], 2 cmp BYTE PTR tv245[ebp], 0 jne SHORT $LL29@xmlIsID $LN31@xmlIsID: mov DWORD PTR tv250[ebp], 0 jmp SHORT $LN32@xmlIsID $LN30@xmlIsID: sbb edx, edx or edx, 1 mov DWORD PTR tv250[ebp], edx $LN32@xmlIsID: mov eax, DWORD PTR tv250[ebp] mov DWORD PTR tv83[ebp], eax cmp DWORD PTR tv83[ebp], 0 jne SHORT $LN4@xmlIsID ; 2708 : (!strcmp((char *) attr->ns->prefix, "xml"))) ; 2709 : return(1); mov eax, 1 jmp $LN1@xmlIsID $LN4@xmlIsID: ; 2710 : if (doc == NULL) return(0); cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN5@xmlIsID xor eax, eax jmp $LN1@xmlIsID $LN5@xmlIsID: ; 2711 : if ((doc->intSubset == NULL) && (doc->extSubset == NULL) && mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+44], 0 jne SHORT $LN6@xmlIsID mov edx, DWORD PTR _doc$[ebp] cmp DWORD PTR [edx+48], 0 jne SHORT $LN6@xmlIsID mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+4], 13 ; 0000000dH je SHORT $LN6@xmlIsID ; 2712 : (doc->type != XML_HTML_DOCUMENT_NODE)) { ; 2713 : return(0); xor eax, eax jmp $LN1@xmlIsID jmp $LN7@xmlIsID $LN6@xmlIsID: ; 2714 : } else if (doc->type == XML_HTML_DOCUMENT_NODE) { mov ecx, DWORD PTR _doc$[ebp] cmp DWORD PTR [ecx+4], 13 ; 0000000dH jne SHORT $LN8@xmlIsID ; 2715 : if ((xmlStrEqual(BAD_CAST "id", attr->name)) || mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+8] push eax push OFFSET ??_C@_02EGCJHIOB@id@ call _xmlStrEqual add esp, 8 test eax, eax jne SHORT $LN11@xmlIsID mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+8] push edx push OFFSET ??_C@_04MEMAJGDJ@name@ call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN10@xmlIsID cmp DWORD PTR _elem$[ebp], 0 je SHORT $LN11@xmlIsID push OFFSET ??_C@_01MCMALHOG@a@ mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN10@xmlIsID $LN11@xmlIsID: ; 2716 : ((xmlStrEqual(BAD_CAST "name", attr->name)) && ; 2717 : ((elem == NULL) || (xmlStrEqual(elem->name, BAD_CAST "a"))))) ; 2718 : return(1); mov eax, 1 jmp $LN1@xmlIsID $LN10@xmlIsID: ; 2719 : return(0); xor eax, eax jmp $LN1@xmlIsID jmp $LN7@xmlIsID $LN8@xmlIsID: ; 2720 : } else if (elem == NULL) { cmp DWORD PTR _elem$[ebp], 0 jne SHORT $LN13@xmlIsID ; 2721 : return(0); xor eax, eax jmp $LN1@xmlIsID ; 2722 : } else { jmp $LN7@xmlIsID $LN13@xmlIsID: ; 2723 : xmlAttributePtr attrDecl = NULL; mov DWORD PTR _attrDecl$5[ebp], 0 ; 2724 : ; 2725 : xmlChar felem[50], fattr[50]; ; 2726 : xmlChar *fullelemname, *fullattrname; ; 2727 : ; 2728 : fullelemname = (elem->ns != NULL && elem->ns->prefix != NULL) ? mov edx, DWORD PTR _elem$[ebp] cmp DWORD PTR [edx+36], 0 je SHORT $LN21@xmlIsID mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+36] cmp DWORD PTR [ecx+12], 0 je SHORT $LN21@xmlIsID push 50 ; 00000032H lea edx, DWORD PTR _felem$4[ebp] push edx mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+36] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlBuildQName add esp, 16 ; 00000010H mov DWORD PTR tv157[ebp], eax jmp SHORT $LN22@xmlIsID $LN21@xmlIsID: mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] mov DWORD PTR tv157[ebp], eax $LN22@xmlIsID: mov ecx, DWORD PTR tv157[ebp] mov DWORD PTR _fullelemname$2[ebp], ecx ; 2729 : xmlBuildQName(elem->name, elem->ns->prefix, felem, 50) : ; 2730 : (xmlChar *)elem->name; ; 2731 : ; 2732 : fullattrname = (attr->ns != NULL && attr->ns->prefix != NULL) ? mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+36], 0 je SHORT $LN23@xmlIsID mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+36] cmp DWORD PTR [ecx+12], 0 je SHORT $LN23@xmlIsID push 50 ; 00000032H lea edx, DWORD PTR _fattr$3[ebp] push edx mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+36] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlBuildQName add esp, 16 ; 00000010H mov DWORD PTR tv172[ebp], eax jmp SHORT $LN24@xmlIsID $LN23@xmlIsID: mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+8] mov DWORD PTR tv172[ebp], eax $LN24@xmlIsID: mov ecx, DWORD PTR tv172[ebp] mov DWORD PTR _fullattrname$1[ebp], ecx ; 2733 : xmlBuildQName(attr->name, attr->ns->prefix, fattr, 50) : ; 2734 : (xmlChar *)attr->name; ; 2735 : ; 2736 : if (fullelemname != NULL && fullattrname != NULL) { cmp DWORD PTR _fullelemname$2[ebp], 0 je SHORT $LN15@xmlIsID cmp DWORD PTR _fullattrname$1[ebp], 0 je SHORT $LN15@xmlIsID ; 2737 : attrDecl = xmlGetDtdAttrDesc(doc->intSubset, fullelemname, mov edx, DWORD PTR _fullattrname$1[ebp] push edx mov eax, DWORD PTR _fullelemname$2[ebp] push eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR [ecx+44] push edx call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$5[ebp], eax ; 2738 : fullattrname); ; 2739 : if ((attrDecl == NULL) && (doc->extSubset != NULL)) cmp DWORD PTR _attrDecl$5[ebp], 0 jne SHORT $LN15@xmlIsID mov eax, DWORD PTR _doc$[ebp] cmp DWORD PTR [eax+48], 0 je SHORT $LN15@xmlIsID ; 2740 : attrDecl = xmlGetDtdAttrDesc(doc->extSubset, fullelemname, mov ecx, DWORD PTR _fullattrname$1[ebp] push ecx mov edx, DWORD PTR _fullelemname$2[ebp] push edx mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+48] push ecx call _xmlGetDtdAttrDesc add esp, 12 ; 0000000cH mov DWORD PTR _attrDecl$5[ebp], eax $LN15@xmlIsID: ; 2741 : fullattrname); ; 2742 : } ; 2743 : ; 2744 : if ((fullattrname != fattr) && (fullattrname != attr->name)) lea edx, DWORD PTR _fattr$3[ebp] cmp DWORD PTR _fullattrname$1[ebp], edx je SHORT $LN17@xmlIsID mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR _fullattrname$1[ebp] cmp ecx, DWORD PTR [eax+8] je SHORT $LN17@xmlIsID ; 2745 : xmlFree(fullattrname); mov esi, esp mov edx, DWORD PTR _fullattrname$1[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN17@xmlIsID: ; 2746 : if ((fullelemname != felem) && (fullelemname != elem->name)) lea eax, DWORD PTR _felem$4[ebp] cmp DWORD PTR _fullelemname$2[ebp], eax je SHORT $LN18@xmlIsID mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR _fullelemname$2[ebp] cmp edx, DWORD PTR [ecx+8] je SHORT $LN18@xmlIsID ; 2747 : xmlFree(fullelemname); mov esi, esp mov eax, DWORD PTR _fullelemname$2[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN18@xmlIsID: ; 2748 : ; 2749 : if ((attrDecl != NULL) && (attrDecl->atype == XML_ATTRIBUTE_ID)) cmp DWORD PTR _attrDecl$5[ebp], 0 je SHORT $LN7@xmlIsID mov ecx, DWORD PTR _attrDecl$5[ebp] cmp DWORD PTR [ecx+40], 2 jne SHORT $LN7@xmlIsID ; 2750 : return(1); mov eax, 1 jmp SHORT $LN1@xmlIsID $LN7@xmlIsID: ; 2751 : } ; 2752 : return(0); xor eax, eax $LN1@xmlIsID: ; 2753 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN36@xmlIsID call @_RTC_CheckStackVars@8 pop eax pop edx pop edi pop esi add esp, 180 ; 000000b4H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 3 $LN36@xmlIsID: DD 2 DD $LN35@xmlIsID $LN35@xmlIsID: DD -60 ; ffffffc4H DD 50 ; 00000032H DD $LN33@xmlIsID DD -120 ; ffffff88H DD 50 ; 00000032H DD $LN34@xmlIsID $LN34@xmlIsID: DB 102 ; 00000066H DB 97 ; 00000061H DB 116 ; 00000074H DB 116 ; 00000074H DB 114 ; 00000072H DB 0 $LN33@xmlIsID: DB 102 ; 00000066H DB 101 ; 00000065H DB 108 ; 0000006cH DB 101 ; 00000065H DB 109 ; 0000006dH DB 0 _xmlIsID ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlGetID _TEXT SEGMENT _id$ = -8 ; size = 4 _table$ = -4 ; size = 4 _doc$ = 8 ; size = 4 _ID$ = 12 ; size = 4 _xmlGetID PROC ; COMDAT ; 2803 : xmlGetID(xmlDocPtr doc, const xmlChar *ID) { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2804 : xmlIDTablePtr table; ; 2805 : xmlIDPtr id; ; 2806 : ; 2807 : if (doc == NULL) { cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN2@xmlGetID ; 2808 : return(NULL); xor eax, eax jmp SHORT $LN1@xmlGetID $LN2@xmlGetID: ; 2809 : } ; 2810 : ; 2811 : if (ID == NULL) { cmp DWORD PTR _ID$[ebp], 0 jne SHORT $LN3@xmlGetID ; 2812 : return(NULL); xor eax, eax jmp SHORT $LN1@xmlGetID $LN3@xmlGetID: ; 2813 : } ; 2814 : ; 2815 : table = (xmlIDTablePtr) doc->ids; mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+64] mov DWORD PTR _table$[ebp], ecx ; 2816 : if (table == NULL) cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN4@xmlGetID ; 2817 : return(NULL); xor eax, eax jmp SHORT $LN1@xmlGetID $LN4@xmlGetID: ; 2818 : ; 2819 : id = xmlHashLookup(table, ID); mov edx, DWORD PTR _ID$[ebp] push edx mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashLookup add esp, 8 mov DWORD PTR _id$[ebp], eax ; 2820 : if (id == NULL) cmp DWORD PTR _id$[ebp], 0 jne SHORT $LN5@xmlGetID ; 2821 : return(NULL); xor eax, eax jmp SHORT $LN1@xmlGetID $LN5@xmlGetID: ; 2822 : if (id->attr == NULL) { mov ecx, DWORD PTR _id$[ebp] cmp DWORD PTR [ecx+8], 0 jne SHORT $LN6@xmlGetID ; 2823 : /* ; 2824 : * We are operating on a stream, return a well known reference ; 2825 : * since the attribute node doesn't exist anymore ; 2826 : */ ; 2827 : return((xmlAttrPtr) doc); mov eax, DWORD PTR _doc$[ebp] jmp SHORT $LN1@xmlGetID $LN6@xmlGetID: ; 2828 : } ; 2829 : return(id->attr); mov edx, DWORD PTR _id$[ebp] mov eax, DWORD PTR [edx+8] $LN1@xmlGetID: ; 2830 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlGetID ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeIDTable _TEXT SEGMENT _table$ = 8 ; size = 4 _xmlFreeIDTable PROC ; COMDAT ; 2686 : xmlFreeIDTable(xmlIDTablePtr table) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2687 : xmlHashFree(table, xmlFreeIDTableEntry); push OFFSET _xmlFreeIDTableEntry mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashFree add esp, 8 ; 2688 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlFreeIDTable ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlAddID _TEXT SEGMENT _table$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _doc$ = 12 ; size = 4 _value$ = 16 ; size = 4 _attr$ = 20 ; size = 4 _xmlAddID PROC ; COMDAT ; 2603 : xmlAttrPtr attr) { push ebp mov ebp, esp sub esp, 8 push esi mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2604 : xmlIDPtr ret; ; 2605 : xmlIDTablePtr table; ; 2606 : ; 2607 : if (doc == NULL) { cmp DWORD PTR _doc$[ebp], 0 jne SHORT $LN2@xmlAddID ; 2608 : return(NULL); xor eax, eax jmp $LN1@xmlAddID $LN2@xmlAddID: ; 2609 : } ; 2610 : if (value == NULL) { cmp DWORD PTR _value$[ebp], 0 jne SHORT $LN3@xmlAddID ; 2611 : return(NULL); xor eax, eax jmp $LN1@xmlAddID $LN3@xmlAddID: ; 2612 : } ; 2613 : if (attr == NULL) { cmp DWORD PTR _attr$[ebp], 0 jne SHORT $LN4@xmlAddID ; 2614 : return(NULL); xor eax, eax jmp $LN1@xmlAddID $LN4@xmlAddID: ; 2615 : } ; 2616 : ; 2617 : /* ; 2618 : * Create the ID table if needed. ; 2619 : */ ; 2620 : table = (xmlIDTablePtr) doc->ids; mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+64] mov DWORD PTR _table$[ebp], ecx ; 2621 : if (table == NULL) { cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN5@xmlAddID ; 2622 : doc->ids = table = xmlHashCreateDict(0, doc->dict); mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+80] push eax push 0 call _xmlHashCreateDict add esp, 8 mov DWORD PTR _table$[ebp], eax mov ecx, DWORD PTR _doc$[ebp] mov edx, DWORD PTR _table$[ebp] mov DWORD PTR [ecx+64], edx $LN5@xmlAddID: ; 2623 : } ; 2624 : if (table == NULL) { cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN6@xmlAddID ; 2625 : xmlVErrMemory(ctxt, push OFFSET ??_C@_0CC@HPFDMDEK@xmlAddID?3?5Table?5creation?5failed@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlVErrMemory add esp, 8 ; 2626 : "xmlAddID: Table creation failed!\n"); ; 2627 : return(NULL); xor eax, eax jmp $LN1@xmlAddID $LN6@xmlAddID: ; 2628 : } ; 2629 : ; 2630 : ret = (xmlIDPtr) xmlMalloc(sizeof(xmlID)); mov esi, esp push 24 ; 00000018H call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _ret$[ebp], eax ; 2631 : if (ret == NULL) { cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN7@xmlAddID ; 2632 : xmlVErrMemory(ctxt, "malloc failed"); push OFFSET ??_C@_0O@IMHFIAOC@malloc?5failed@ mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlVErrMemory add esp, 8 ; 2633 : return(NULL); xor eax, eax jmp $LN1@xmlAddID $LN7@xmlAddID: ; 2634 : } ; 2635 : ; 2636 : /* ; 2637 : * fill the structure. ; 2638 : */ ; 2639 : ret->value = xmlStrdup(value); mov edx, DWORD PTR _value$[ebp] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+4], eax ; 2640 : ret->doc = doc; mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR _doc$[ebp] mov DWORD PTR [edx+20], eax ; 2641 : if ((ctxt != NULL) && (ctxt->vstateNr != 0)) { cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN8@xmlAddID mov ecx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [ecx+44], 0 je SHORT $LN8@xmlAddID ; 2642 : /* ; 2643 : * Operating in streaming mode, attr is gonna disapear ; 2644 : */ ; 2645 : if (doc->dict != NULL) mov edx, DWORD PTR _doc$[ebp] cmp DWORD PTR [edx+80], 0 je SHORT $LN10@xmlAddID ; 2646 : ret->name = xmlDictLookup(doc->dict, attr->name, -1); push -1 mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _doc$[ebp] mov eax, DWORD PTR [edx+80] push eax call _xmlDictLookup add esp, 12 ; 0000000cH mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+12], eax jmp SHORT $LN11@xmlAddID $LN10@xmlAddID: ; 2647 : else ; 2648 : ret->name = xmlStrdup(attr->name); mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+12], eax $LN11@xmlAddID: ; 2649 : ret->attr = NULL; mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+8], 0 ; 2650 : } else { jmp SHORT $LN9@xmlAddID $LN8@xmlAddID: ; 2651 : ret->attr = attr; mov eax, DWORD PTR _ret$[ebp] mov ecx, DWORD PTR _attr$[ebp] mov DWORD PTR [eax+8], ecx ; 2652 : ret->name = NULL; mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+12], 0 $LN9@xmlAddID: ; 2653 : } ; 2654 : ret->lineno = xmlGetLineNo(attr->parent); mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+20] push ecx call _xmlGetLineNo add esp, 4 mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+16], eax ; 2655 : ; 2656 : if (xmlHashAddEntry(table, value, ret) < 0) { mov eax, DWORD PTR _ret$[ebp] push eax mov ecx, DWORD PTR _value$[ebp] push ecx mov edx, DWORD PTR _table$[ebp] push edx call _xmlHashAddEntry add esp, 12 ; 0000000cH test eax, eax jge SHORT $LN12@xmlAddID ; 2657 : #ifdef LIBXML_VALID_ENABLED ; 2658 : /* ; 2659 : * The id is already defined in this DTD. ; 2660 : */ ; 2661 : if (ctxt != NULL) { cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN13@xmlAddID ; 2662 : xmlErrValidNode(ctxt, attr->parent, XML_DTD_ID_REDEFINED, push 0 push 0 mov eax, DWORD PTR _value$[ebp] push eax push OFFSET ??_C@_0BH@JKIFIOPN@ID?5?$CFs?5already?5defined?6@ push 513 ; 00000201H mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+20] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH $LN13@xmlAddID: ; 2663 : "ID %s already defined\n", value, NULL, NULL); ; 2664 : } ; 2665 : #endif /* LIBXML_VALID_ENABLED */ ; 2666 : xmlFreeID(ret); mov ecx, DWORD PTR _ret$[ebp] push ecx call _xmlFreeID add esp, 4 ; 2667 : return(NULL); xor eax, eax jmp SHORT $LN1@xmlAddID $LN12@xmlAddID: ; 2668 : } ; 2669 : if (attr != NULL) cmp DWORD PTR _attr$[ebp], 0 je SHORT $LN14@xmlAddID ; 2670 : attr->atype = XML_ATTRIBUTE_ID; mov edx, DWORD PTR _attr$[ebp] mov DWORD PTR [edx+40], 2 $LN14@xmlAddID: ; 2671 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlAddID: ; 2672 : } pop esi add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlAddID ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlDumpAttributeDecl _TEXT SEGMENT tv150 = -8 ; size = 4 tv84 = -4 ; size = 4 _buf$ = 8 ; size = 4 _attr$ = 12 ; size = 4 _xmlDumpAttributeDecl PROC ; COMDAT ; 2227 : xmlDumpAttributeDecl(xmlBufferPtr buf, xmlAttributePtr attr) { push ebp mov ebp, esp sub esp, 8 mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2228 : if ((buf == NULL) || (attr == NULL)) cmp DWORD PTR _buf$[ebp], 0 je SHORT $LN7@xmlDumpAtt cmp DWORD PTR _attr$[ebp], 0 jne SHORT $LN6@xmlDumpAtt $LN7@xmlDumpAtt: ; 2229 : return; jmp $LN1@xmlDumpAtt $LN6@xmlDumpAtt: ; 2230 : xmlBufferWriteChar(buf, "<!ATTLIST "); push OFFSET ??_C@_0L@NDHICKFH@?$DM?$CBATTLIST?5@ mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteChar add esp, 8 ; 2231 : xmlBufferWriteCHAR(buf, attr->elem); mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+60] push edx mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteCHAR add esp, 8 ; 2232 : xmlBufferWriteChar(buf, " "); push OFFSET ??_C@_01CLKCMJKC@?5@ mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteChar add esp, 8 ; 2233 : if (attr->prefix != NULL) { mov edx, DWORD PTR _attr$[ebp] cmp DWORD PTR [edx+56], 0 je SHORT $LN8@xmlDumpAtt ; 2234 : xmlBufferWriteCHAR(buf, attr->prefix); mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+56] push ecx mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteCHAR add esp, 8 ; 2235 : xmlBufferWriteChar(buf, ":"); push OFFSET ??_C@_01JLIPDDHJ@?3@ mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteChar add esp, 8 $LN8@xmlDumpAtt: ; 2236 : } ; 2237 : xmlBufferWriteCHAR(buf, attr->name); mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteCHAR add esp, 8 ; 2238 : switch (attr->atype) { mov ecx, DWORD PTR _attr$[ebp] mov edx, DWORD PTR [ecx+40] mov DWORD PTR tv84[ebp], edx mov eax, DWORD PTR tv84[ebp] sub eax, 1 mov DWORD PTR tv84[ebp], eax cmp DWORD PTR tv84[ebp], 9 ja $LN19@xmlDumpAtt mov ecx, DWORD PTR tv84[ebp] jmp DWORD PTR $LN27@xmlDumpAtt[ecx*4] $LN9@xmlDumpAtt: ; 2239 : case XML_ATTRIBUTE_CDATA: ; 2240 : xmlBufferWriteChar(buf, " CDATA"); push OFFSET ??_C@_06CIOOFICG@?5CDATA@ mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteChar add esp, 8 ; 2241 : break; jmp $LN2@xmlDumpAtt $LN10@xmlDumpAtt: ; 2242 : case XML_ATTRIBUTE_ID: ; 2243 : xmlBufferWriteChar(buf, " ID"); push OFFSET ??_C@_03JFNHLDJD@?5ID@ mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteChar add esp, 8 ; 2244 : break; jmp $LN2@xmlDumpAtt $LN11@xmlDumpAtt: ; 2245 : case XML_ATTRIBUTE_IDREF: ; 2246 : xmlBufferWriteChar(buf, " IDREF"); push OFFSET ??_C@_06JJHMNMLB@?5IDREF@ mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteChar add esp, 8 ; 2247 : break; jmp $LN2@xmlDumpAtt $LN12@xmlDumpAtt: ; 2248 : case XML_ATTRIBUTE_IDREFS: ; 2249 : xmlBufferWriteChar(buf, " IDREFS"); push OFFSET ??_C@_07CNGJPBFB@?5IDREFS@ mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteChar add esp, 8 ; 2250 : break; jmp $LN2@xmlDumpAtt $LN13@xmlDumpAtt: ; 2251 : case XML_ATTRIBUTE_ENTITY: ; 2252 : xmlBufferWriteChar(buf, " ENTITY"); push OFFSET ??_C@_07GLIJGNMP@?5ENTITY@ mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteChar add esp, 8 ; 2253 : break; jmp $LN2@xmlDumpAtt $LN14@xmlDumpAtt: ; 2254 : case XML_ATTRIBUTE_ENTITIES: ; 2255 : xmlBufferWriteChar(buf, " ENTITIES"); push OFFSET ??_C@_09MILPKLMO@?5ENTITIES@ mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteChar add esp, 8 ; 2256 : break; jmp $LN2@xmlDumpAtt $LN15@xmlDumpAtt: ; 2257 : case XML_ATTRIBUTE_NMTOKEN: ; 2258 : xmlBufferWriteChar(buf, " NMTOKEN"); push OFFSET ??_C@_08JLMONKHB@?5NMTOKEN@ mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteChar add esp, 8 ; 2259 : break; jmp SHORT $LN2@xmlDumpAtt $LN16@xmlDumpAtt: ; 2260 : case XML_ATTRIBUTE_NMTOKENS: ; 2261 : xmlBufferWriteChar(buf, " NMTOKENS"); push OFFSET ??_C@_09LGAPIBOH@?5NMTOKENS@ mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteChar add esp, 8 ; 2262 : break; jmp SHORT $LN2@xmlDumpAtt $LN17@xmlDumpAtt: ; 2263 : case XML_ATTRIBUTE_ENUMERATION: ; 2264 : xmlBufferWriteChar(buf, " ("); push OFFSET ??_C@_02GFKOMOKH@?5?$CI@ mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteChar add esp, 8 ; 2265 : xmlDumpEnumeration(buf, attr->tree); mov edx, DWORD PTR _attr$[ebp] mov eax, DWORD PTR [edx+52] push eax mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlDumpEnumeration add esp, 8 ; 2266 : break; jmp SHORT $LN2@xmlDumpAtt $LN18@xmlDumpAtt: ; 2267 : case XML_ATTRIBUTE_NOTATION: ; 2268 : xmlBufferWriteChar(buf, " NOTATION ("); push OFFSET ??_C@_0M@IGKIMAHJ@?5NOTATION?5?$CI@ mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteChar add esp, 8 ; 2269 : xmlDumpEnumeration(buf, attr->tree); mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+52] push ecx mov edx, DWORD PTR _buf$[ebp] push edx call _xmlDumpEnumeration add esp, 8 ; 2270 : break; jmp SHORT $LN2@xmlDumpAtt $LN19@xmlDumpAtt: ; 2271 : default: ; 2272 : xmlErrValid(NULL, XML_ERR_INTERNAL_ERROR, push 0 push OFFSET ??_C@_0DD@NLJCGIHL@Internal?3?5ATTRIBUTE?5struct?5corr@ push 1 push 0 call _xmlErrValid add esp, 16 ; 00000010H $LN2@xmlDumpAtt: ; 2273 : "Internal: ATTRIBUTE struct corrupted invalid type\n", ; 2274 : NULL); ; 2275 : } ; 2276 : switch (attr->def) { mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+44] mov DWORD PTR tv150[ebp], ecx mov edx, DWORD PTR tv150[ebp] sub edx, 1 mov DWORD PTR tv150[ebp], edx cmp DWORD PTR tv150[ebp], 3 ja SHORT $LN24@xmlDumpAtt mov eax, DWORD PTR tv150[ebp] jmp DWORD PTR $LN28@xmlDumpAtt[eax*4] $LN20@xmlDumpAtt: ; 2277 : case XML_ATTRIBUTE_NONE: ; 2278 : break; jmp SHORT $LN4@xmlDumpAtt $LN21@xmlDumpAtt: ; 2279 : case XML_ATTRIBUTE_REQUIRED: ; 2280 : xmlBufferWriteChar(buf, " #REQUIRED"); push OFFSET ??_C@_0L@IEBFJPBC@?5?$CDREQUIRED@ mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteChar add esp, 8 ; 2281 : break; jmp SHORT $LN4@xmlDumpAtt $LN22@xmlDumpAtt: ; 2282 : case XML_ATTRIBUTE_IMPLIED: ; 2283 : xmlBufferWriteChar(buf, " #IMPLIED"); push OFFSET ??_C@_09GOIPIIGC@?5?$CDIMPLIED@ mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteChar add esp, 8 ; 2284 : break; jmp SHORT $LN4@xmlDumpAtt $LN23@xmlDumpAtt: ; 2285 : case XML_ATTRIBUTE_FIXED: ; 2286 : xmlBufferWriteChar(buf, " #FIXED"); push OFFSET ??_C@_07PNOBFAOP@?5?$CDFIXED@ mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteChar add esp, 8 ; 2287 : break; jmp SHORT $LN4@xmlDumpAtt $LN24@xmlDumpAtt: ; 2288 : default: ; 2289 : xmlErrValid(NULL, XML_ERR_INTERNAL_ERROR, push 0 push OFFSET ??_C@_0DC@EJJFJDDL@Internal?3?5ATTRIBUTE?5struct?5corr@ push 1 push 0 call _xmlErrValid add esp, 16 ; 00000010H $LN4@xmlDumpAtt: ; 2290 : "Internal: ATTRIBUTE struct corrupted invalid def\n", ; 2291 : NULL); ; 2292 : } ; 2293 : if (attr->defaultValue != NULL) { mov ecx, DWORD PTR _attr$[ebp] cmp DWORD PTR [ecx+48], 0 je SHORT $LN25@xmlDumpAtt ; 2294 : xmlBufferWriteChar(buf, " "); push OFFSET ??_C@_01CLKCMJKC@?5@ mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteChar add esp, 8 ; 2295 : xmlBufferWriteQuotedString(buf, attr->defaultValue); mov eax, DWORD PTR _attr$[ebp] mov ecx, DWORD PTR [eax+48] push ecx mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteQuotedString add esp, 8 $LN25@xmlDumpAtt: ; 2296 : } ; 2297 : xmlBufferWriteChar(buf, ">\n"); push OFFSET ??_C@_02NEKEAGPN@?$DO?6@ mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteChar add esp, 8 $LN1@xmlDumpAtt: ; 2298 : } add esp, 8 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 1 $LN27@xmlDumpAtt: DD $LN9@xmlDumpAtt DD $LN10@xmlDumpAtt DD $LN11@xmlDumpAtt DD $LN12@xmlDumpAtt DD $LN13@xmlDumpAtt DD $LN14@xmlDumpAtt DD $LN15@xmlDumpAtt DD $LN16@xmlDumpAtt DD $LN17@xmlDumpAtt DD $LN18@xmlDumpAtt $LN28@xmlDumpAtt: DD $LN20@xmlDumpAtt DD $LN21@xmlDumpAtt DD $LN22@xmlDumpAtt DD $LN23@xmlDumpAtt _xmlDumpAttributeDecl ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlDumpAttributeTable _TEXT SEGMENT _buf$ = 8 ; size = 4 _table$ = 12 ; size = 4 _xmlDumpAttributeTable PROC ; COMDAT ; 2321 : xmlDumpAttributeTable(xmlBufferPtr buf, xmlAttributeTablePtr table) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2322 : if ((buf == NULL) || (table == NULL)) cmp DWORD PTR _buf$[ebp], 0 je SHORT $LN3@xmlDumpAtt cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN2@xmlDumpAtt $LN3@xmlDumpAtt: ; 2323 : return; jmp SHORT $LN1@xmlDumpAtt $LN2@xmlDumpAtt: ; 2324 : xmlHashScan(table, xmlDumpAttributeDeclScan, buf); mov eax, DWORD PTR _buf$[ebp] push eax push OFFSET _xmlDumpAttributeDeclScan mov ecx, DWORD PTR _table$[ebp] push ecx call _xmlHashScan add esp, 12 ; 0000000cH $LN1@xmlDumpAtt: ; 2325 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlDumpAttributeTable ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeAttributeTable _TEXT SEGMENT _table$ = 8 ; size = 4 _xmlFreeAttributeTable PROC ; COMDAT ; 2164 : xmlFreeAttributeTable(xmlAttributeTablePtr table) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2165 : xmlHashFree(table, xmlFreeAttributeTableEntry); push OFFSET _xmlFreeAttributeTableEntry mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashFree add esp, 8 ; 2166 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlFreeAttributeTable ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlCopyAttributeTable _TEXT SEGMENT _table$ = 8 ; size = 4 _xmlCopyAttributeTable PROC ; COMDAT ; 2212 : xmlCopyAttributeTable(xmlAttributeTablePtr table) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2213 : return((xmlAttributeTablePtr) xmlHashCopy(table, xmlCopyAttribute)); push OFFSET _xmlCopyAttribute mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashCopy add esp, 8 ; 2214 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlCopyAttributeTable ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlAddAttributeDecl _TEXT SEGMENT tv74 = -24 ; size = 4 _tmp$1 = -20 ; size = 4 _dict$ = -16 ; size = 4 _elemDef$ = -12 ; size = 4 _table$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _dtd$ = 12 ; size = 4 _elem$ = 16 ; size = 4 _name$ = 20 ; size = 4 _ns$ = 24 ; size = 4 _type$ = 28 ; size = 4 _def$ = 32 ; size = 4 _defaultValue$ = 36 ; size = 4 _tree$ = 40 ; size = 4 _xmlAddAttributeDecl PROC ; COMDAT ; 1942 : const xmlChar *defaultValue, xmlEnumerationPtr tree) { push ebp mov ebp, esp sub esp, 24 ; 00000018H push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1943 : xmlAttributePtr ret; ; 1944 : xmlAttributeTablePtr table; ; 1945 : xmlElementPtr elemDef; ; 1946 : xmlDictPtr dict = NULL; mov DWORD PTR _dict$[ebp], 0 ; 1947 : ; 1948 : if (dtd == NULL) { cmp DWORD PTR _dtd$[ebp], 0 jne SHORT $LN6@xmlAddAttr ; 1949 : xmlFreeEnumeration(tree); mov eax, DWORD PTR _tree$[ebp] push eax call _xmlFreeEnumeration add esp, 4 ; 1950 : return(NULL); xor eax, eax jmp $LN1@xmlAddAttr $LN6@xmlAddAttr: ; 1951 : } ; 1952 : if (name == NULL) { cmp DWORD PTR _name$[ebp], 0 jne SHORT $LN7@xmlAddAttr ; 1953 : xmlFreeEnumeration(tree); mov ecx, DWORD PTR _tree$[ebp] push ecx call _xmlFreeEnumeration add esp, 4 ; 1954 : return(NULL); xor eax, eax jmp $LN1@xmlAddAttr $LN7@xmlAddAttr: ; 1955 : } ; 1956 : if (elem == NULL) { cmp DWORD PTR _elem$[ebp], 0 jne SHORT $LN8@xmlAddAttr ; 1957 : xmlFreeEnumeration(tree); mov edx, DWORD PTR _tree$[ebp] push edx call _xmlFreeEnumeration add esp, 4 ; 1958 : return(NULL); xor eax, eax jmp $LN1@xmlAddAttr $LN8@xmlAddAttr: ; 1959 : } ; 1960 : if (dtd->doc != NULL) mov eax, DWORD PTR _dtd$[ebp] cmp DWORD PTR [eax+32], 0 je SHORT $LN9@xmlAddAttr ; 1961 : dict = dtd->doc->dict; mov ecx, DWORD PTR _dtd$[ebp] mov edx, DWORD PTR [ecx+32] mov eax, DWORD PTR [edx+80] mov DWORD PTR _dict$[ebp], eax $LN9@xmlAddAttr: ; 1962 : ; 1963 : #ifdef LIBXML_VALID_ENABLED ; 1964 : /* ; 1965 : * Check the type and possibly the default value. ; 1966 : */ ; 1967 : switch (type) { mov ecx, DWORD PTR _type$[ebp] mov DWORD PTR tv74[ebp], ecx mov edx, DWORD PTR tv74[ebp] sub edx, 1 mov DWORD PTR tv74[ebp], edx cmp DWORD PTR tv74[ebp], 9 ja SHORT $LN20@xmlAddAttr mov eax, DWORD PTR tv74[ebp] jmp DWORD PTR $LN47@xmlAddAttr[eax*4] $LN10@xmlAddAttr: ; 1968 : case XML_ATTRIBUTE_CDATA: ; 1969 : break; jmp SHORT $LN2@xmlAddAttr $LN11@xmlAddAttr: ; 1970 : case XML_ATTRIBUTE_ID: ; 1971 : break; jmp SHORT $LN2@xmlAddAttr $LN12@xmlAddAttr: ; 1972 : case XML_ATTRIBUTE_IDREF: ; 1973 : break; jmp SHORT $LN2@xmlAddAttr $LN13@xmlAddAttr: ; 1974 : case XML_ATTRIBUTE_IDREFS: ; 1975 : break; jmp SHORT $LN2@xmlAddAttr $LN14@xmlAddAttr: ; 1976 : case XML_ATTRIBUTE_ENTITY: ; 1977 : break; jmp SHORT $LN2@xmlAddAttr $LN15@xmlAddAttr: ; 1978 : case XML_ATTRIBUTE_ENTITIES: ; 1979 : break; jmp SHORT $LN2@xmlAddAttr $LN16@xmlAddAttr: ; 1980 : case XML_ATTRIBUTE_NMTOKEN: ; 1981 : break; jmp SHORT $LN2@xmlAddAttr $LN17@xmlAddAttr: ; 1982 : case XML_ATTRIBUTE_NMTOKENS: ; 1983 : break; jmp SHORT $LN2@xmlAddAttr $LN18@xmlAddAttr: ; 1984 : case XML_ATTRIBUTE_ENUMERATION: ; 1985 : break; jmp SHORT $LN2@xmlAddAttr $LN19@xmlAddAttr: ; 1986 : case XML_ATTRIBUTE_NOTATION: ; 1987 : break; jmp SHORT $LN2@xmlAddAttr $LN20@xmlAddAttr: ; 1988 : default: ; 1989 : xmlErrValid(ctxt, XML_ERR_INTERNAL_ERROR, push 0 push OFFSET ??_C@_0DD@NLJCGIHL@Internal?3?5ATTRIBUTE?5struct?5corr@ push 1 mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValid add esp, 16 ; 00000010H ; 1990 : "Internal: ATTRIBUTE struct corrupted invalid type\n", ; 1991 : NULL); ; 1992 : xmlFreeEnumeration(tree); mov edx, DWORD PTR _tree$[ebp] push edx call _xmlFreeEnumeration add esp, 4 ; 1993 : return(NULL); xor eax, eax jmp $LN1@xmlAddAttr $LN2@xmlAddAttr: ; 1994 : } ; 1995 : if ((defaultValue != NULL) && cmp DWORD PTR _defaultValue$[ebp], 0 je SHORT $LN21@xmlAddAttr mov eax, DWORD PTR _defaultValue$[ebp] push eax mov ecx, DWORD PTR _type$[ebp] push ecx mov edx, DWORD PTR _dtd$[ebp] mov eax, DWORD PTR [edx+32] push eax call _xmlValidateAttributeValueInternal add esp, 12 ; 0000000cH test eax, eax jne SHORT $LN21@xmlAddAttr ; 1996 : (!xmlValidateAttributeValueInternal(dtd->doc, type, defaultValue))) { ; 1997 : xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ATTRIBUTE_DEFAULT, mov ecx, DWORD PTR _defaultValue$[ebp] push ecx mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _elem$[ebp] push eax push OFFSET ??_C@_0CL@IHGCOODJ@Attribute?5?$CFs?5of?5?$CFs?3?5invalid?5def@ push 500 ; 000001f4H mov ecx, DWORD PTR _dtd$[ebp] push ecx mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 1998 : "Attribute %s of %s: invalid default value\n", ; 1999 : elem, name, defaultValue); ; 2000 : defaultValue = NULL; mov DWORD PTR _defaultValue$[ebp], 0 ; 2001 : if (ctxt != NULL) cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN21@xmlAddAttr ; 2002 : ctxt->valid = 0; mov eax, DWORD PTR _ctxt$[ebp] mov DWORD PTR [eax+36], 0 $LN21@xmlAddAttr: ; 2003 : } ; 2004 : #endif /* LIBXML_VALID_ENABLED */ ; 2005 : ; 2006 : /* ; 2007 : * Check first that an attribute defined in the external subset wasn't ; 2008 : * already defined in the internal subset ; 2009 : */ ; 2010 : if ((dtd->doc != NULL) && (dtd->doc->extSubset == dtd) && ; 2011 : (dtd->doc->intSubset != NULL) && mov ecx, DWORD PTR _dtd$[ebp] cmp DWORD PTR [ecx+32], 0 je SHORT $LN23@xmlAddAttr mov edx, DWORD PTR _dtd$[ebp] mov eax, DWORD PTR [edx+32] mov ecx, DWORD PTR [eax+48] cmp ecx, DWORD PTR _dtd$[ebp] jne SHORT $LN23@xmlAddAttr mov edx, DWORD PTR _dtd$[ebp] mov eax, DWORD PTR [edx+32] cmp DWORD PTR [eax+44], 0 je SHORT $LN23@xmlAddAttr mov ecx, DWORD PTR _dtd$[ebp] mov edx, DWORD PTR [ecx+32] mov eax, DWORD PTR [edx+44] cmp DWORD PTR [eax+44], 0 je SHORT $LN23@xmlAddAttr ; 2012 : (dtd->doc->intSubset->attributes != NULL)) { ; 2013 : ret = xmlHashLookup3(dtd->doc->intSubset->attributes, name, ns, elem); mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _ns$[ebp] push edx mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _dtd$[ebp] mov edx, DWORD PTR [ecx+32] mov eax, DWORD PTR [edx+44] mov ecx, DWORD PTR [eax+44] push ecx call _xmlHashLookup3 add esp, 16 ; 00000010H mov DWORD PTR _ret$[ebp], eax ; 2014 : if (ret != NULL) { cmp DWORD PTR _ret$[ebp], 0 je SHORT $LN23@xmlAddAttr ; 2015 : xmlFreeEnumeration(tree); mov edx, DWORD PTR _tree$[ebp] push edx call _xmlFreeEnumeration add esp, 4 ; 2016 : return(NULL); xor eax, eax jmp $LN1@xmlAddAttr $LN23@xmlAddAttr: ; 2017 : } ; 2018 : } ; 2019 : ; 2020 : /* ; 2021 : * Create the Attribute table if needed. ; 2022 : */ ; 2023 : table = (xmlAttributeTablePtr) dtd->attributes; mov eax, DWORD PTR _dtd$[ebp] mov ecx, DWORD PTR [eax+44] mov DWORD PTR _table$[ebp], ecx ; 2024 : if (table == NULL) { cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN25@xmlAddAttr ; 2025 : table = xmlHashCreateDict(0, dict); mov edx, DWORD PTR _dict$[ebp] push edx push 0 call _xmlHashCreateDict add esp, 8 mov DWORD PTR _table$[ebp], eax ; 2026 : dtd->attributes = (void *) table; mov eax, DWORD PTR _dtd$[ebp] mov ecx, DWORD PTR _table$[ebp] mov DWORD PTR [eax+44], ecx $LN25@xmlAddAttr: ; 2027 : } ; 2028 : if (table == NULL) { cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN26@xmlAddAttr ; 2029 : xmlVErrMemory(ctxt, push OFFSET ??_C@_0CN@LFDBMMCB@xmlAddAttributeDecl?3?5Table?5crea@ mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlVErrMemory add esp, 8 ; 2030 : "xmlAddAttributeDecl: Table creation failed!\n"); ; 2031 : xmlFreeEnumeration(tree); mov eax, DWORD PTR _tree$[ebp] push eax call _xmlFreeEnumeration add esp, 4 ; 2032 : return(NULL); xor eax, eax jmp $LN1@xmlAddAttr $LN26@xmlAddAttr: ; 2033 : } ; 2034 : ; 2035 : ; 2036 : ret = (xmlAttributePtr) xmlMalloc(sizeof(xmlAttribute)); mov esi, esp push 64 ; 00000040H call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _ret$[ebp], eax ; 2037 : if (ret == NULL) { cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN27@xmlAddAttr ; 2038 : xmlVErrMemory(ctxt, "malloc failed"); push OFFSET ??_C@_0O@IMHFIAOC@malloc?5failed@ mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlVErrMemory add esp, 8 ; 2039 : xmlFreeEnumeration(tree); mov edx, DWORD PTR _tree$[ebp] push edx call _xmlFreeEnumeration add esp, 4 ; 2040 : return(NULL); xor eax, eax jmp $LN1@xmlAddAttr $LN27@xmlAddAttr: ; 2041 : } ; 2042 : memset(ret, 0, sizeof(xmlAttribute)); push 64 ; 00000040H push 0 mov eax, DWORD PTR _ret$[ebp] push eax call _memset add esp, 12 ; 0000000cH ; 2043 : ret->type = XML_ATTRIBUTE_DECL; mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+4], 16 ; 00000010H ; 2044 : ; 2045 : /* ; 2046 : * fill the structure. ; 2047 : */ ; 2048 : ret->atype = type; mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR _type$[ebp] mov DWORD PTR [edx+40], eax ; 2049 : /* ; 2050 : * doc must be set before possible error causes call ; 2051 : * to xmlFreeAttribute (because it's used to check on ; 2052 : * dict use) ; 2053 : */ ; 2054 : ret->doc = dtd->doc; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _dtd$[ebp] mov eax, DWORD PTR [edx+32] mov DWORD PTR [ecx+32], eax ; 2055 : if (dict) { cmp DWORD PTR _dict$[ebp], 0 je SHORT $LN28@xmlAddAttr ; 2056 : ret->name = xmlDictLookup(dict, name, -1); push -1 mov ecx, DWORD PTR _name$[ebp] push ecx mov edx, DWORD PTR _dict$[ebp] push edx call _xmlDictLookup add esp, 12 ; 0000000cH mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+8], eax ; 2057 : ret->prefix = xmlDictLookup(dict, ns, -1); push -1 mov edx, DWORD PTR _ns$[ebp] push edx mov eax, DWORD PTR _dict$[ebp] push eax call _xmlDictLookup add esp, 12 ; 0000000cH mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+56], eax ; 2058 : ret->elem = xmlDictLookup(dict, elem, -1); push -1 mov edx, DWORD PTR _elem$[ebp] push edx mov eax, DWORD PTR _dict$[ebp] push eax call _xmlDictLookup add esp, 12 ; 0000000cH mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+60], eax ; 2059 : } else { jmp SHORT $LN29@xmlAddAttr $LN28@xmlAddAttr: ; 2060 : ret->name = xmlStrdup(name); mov edx, DWORD PTR _name$[ebp] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+8], eax ; 2061 : ret->prefix = xmlStrdup(ns); mov edx, DWORD PTR _ns$[ebp] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+56], eax ; 2062 : ret->elem = xmlStrdup(elem); mov edx, DWORD PTR _elem$[ebp] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+60], eax $LN29@xmlAddAttr: ; 2063 : } ; 2064 : ret->def = def; mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR _def$[ebp] mov DWORD PTR [edx+44], eax ; 2065 : ret->tree = tree; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _tree$[ebp] mov DWORD PTR [ecx+52], edx ; 2066 : if (defaultValue != NULL) { cmp DWORD PTR _defaultValue$[ebp], 0 je SHORT $LN30@xmlAddAttr ; 2067 : if (dict) cmp DWORD PTR _dict$[ebp], 0 je SHORT $LN31@xmlAddAttr ; 2068 : ret->defaultValue = xmlDictLookup(dict, defaultValue, -1); push -1 mov eax, DWORD PTR _defaultValue$[ebp] push eax mov ecx, DWORD PTR _dict$[ebp] push ecx call _xmlDictLookup add esp, 12 ; 0000000cH mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+48], eax jmp SHORT $LN30@xmlAddAttr $LN31@xmlAddAttr: ; 2069 : else ; 2070 : ret->defaultValue = xmlStrdup(defaultValue); mov eax, DWORD PTR _defaultValue$[ebp] push eax call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+48], eax $LN30@xmlAddAttr: ; 2071 : } ; 2072 : ; 2073 : /* ; 2074 : * Validity Check: ; 2075 : * Search the DTD for previous declarations of the ATTLIST ; 2076 : */ ; 2077 : if (xmlHashAddEntry3(table, ret->name, ret->prefix, ret->elem, ret) < 0) { mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _ret$[ebp] mov ecx, DWORD PTR [eax+60] push ecx mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR [edx+56] push eax mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashAddEntry3 add esp, 20 ; 00000014H test eax, eax jge SHORT $LN33@xmlAddAttr ; 2078 : #ifdef LIBXML_VALID_ENABLED ; 2079 : /* ; 2080 : * The attribute is already defined in this DTD. ; 2081 : */ ; 2082 : xmlErrValidWarning(ctxt, (xmlNodePtr) dtd, XML_DTD_ATTRIBUTE_REDEFINED, push 0 mov ecx, DWORD PTR _elem$[ebp] push ecx mov edx, DWORD PTR _name$[ebp] push edx push OFFSET ??_C@_0CN@HJBCFPNE@Attribute?5?$CFs?5of?5element?5?$CFs?3?5alr@ push 501 ; 000001f5H mov eax, DWORD PTR _dtd$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidWarning add esp, 28 ; 0000001cH ; 2083 : "Attribute %s of element %s: already defined\n", ; 2084 : name, elem, NULL); ; 2085 : #endif /* LIBXML_VALID_ENABLED */ ; 2086 : xmlFreeAttribute(ret); mov edx, DWORD PTR _ret$[ebp] push edx call _xmlFreeAttribute add esp, 4 ; 2087 : return(NULL); xor eax, eax jmp $LN1@xmlAddAttr $LN33@xmlAddAttr: ; 2088 : } ; 2089 : ; 2090 : /* ; 2091 : * Validity Check: ; 2092 : * Multiple ID per element ; 2093 : */ ; 2094 : elemDef = xmlGetDtdElementDesc2(dtd, elem, 1); push 1 mov eax, DWORD PTR _elem$[ebp] push eax mov ecx, DWORD PTR _dtd$[ebp] push ecx call _xmlGetDtdElementDesc2 add esp, 12 ; 0000000cH mov DWORD PTR _elemDef$[ebp], eax ; 2095 : if (elemDef != NULL) { cmp DWORD PTR _elemDef$[ebp], 0 je $LN34@xmlAddAttr ; 2096 : ; 2097 : #ifdef LIBXML_VALID_ENABLED ; 2098 : if ((type == XML_ATTRIBUTE_ID) && cmp DWORD PTR _type$[ebp], 2 jne SHORT $LN35@xmlAddAttr push 1 mov edx, DWORD PTR _elemDef$[ebp] push edx push 0 call _xmlScanIDAttributeDecl add esp, 12 ; 0000000cH test eax, eax je SHORT $LN35@xmlAddAttr ; 2099 : (xmlScanIDAttributeDecl(NULL, elemDef, 1) != 0)) { ; 2100 : xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_MULTIPLE_ID, push 0 mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _elem$[ebp] push ecx push OFFSET ??_C@_0DD@GEPJIIIF@Element?5?$CFs?5has?5too?5may?5ID?5attri@ push 520 ; 00000208H mov edx, DWORD PTR _dtd$[ebp] push edx mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValidNode add esp, 28 ; 0000001cH ; 2101 : "Element %s has too may ID attributes defined : %s\n", ; 2102 : elem, name, NULL); ; 2103 : if (ctxt != NULL) cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN35@xmlAddAttr ; 2104 : ctxt->valid = 0; mov ecx, DWORD PTR _ctxt$[ebp] mov DWORD PTR [ecx+36], 0 $LN35@xmlAddAttr: ; 2105 : } ; 2106 : #endif /* LIBXML_VALID_ENABLED */ ; 2107 : ; 2108 : /* ; 2109 : * Insert namespace default def first they need to be ; 2110 : * processed first. ; 2111 : */ ; 2112 : if ((xmlStrEqual(ret->name, BAD_CAST "xmlns")) || push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlStrEqual add esp, 8 test eax, eax jne SHORT $LN39@xmlAddAttr mov ecx, DWORD PTR _ret$[ebp] cmp DWORD PTR [ecx+56], 0 je SHORT $LN37@xmlAddAttr push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR [edx+56] push eax call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN37@xmlAddAttr $LN39@xmlAddAttr: ; 2113 : ((ret->prefix != NULL && ; 2114 : (xmlStrEqual(ret->prefix, BAD_CAST "xmlns"))))) { ; 2115 : ret->nexth = elemDef->attributes; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _elemDef$[ebp] mov eax, DWORD PTR [edx+44] mov DWORD PTR [ecx+36], eax ; 2116 : elemDef->attributes = ret; mov ecx, DWORD PTR _elemDef$[ebp] mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+44], edx ; 2117 : } else { jmp $LN34@xmlAddAttr $LN37@xmlAddAttr: ; 2118 : xmlAttributePtr tmp = elemDef->attributes; mov eax, DWORD PTR _elemDef$[ebp] mov ecx, DWORD PTR [eax+44] mov DWORD PTR _tmp$1[ebp], ecx $LN4@xmlAddAttr: ; 2119 : ; 2120 : while ((tmp != NULL) && cmp DWORD PTR _tmp$1[ebp], 0 je SHORT $LN5@xmlAddAttr push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov edx, DWORD PTR _tmp$1[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlStrEqual add esp, 8 test eax, eax jne SHORT $LN40@xmlAddAttr mov ecx, DWORD PTR _ret$[ebp] cmp DWORD PTR [ecx+56], 0 je SHORT $LN5@xmlAddAttr push OFFSET ??_C@_05PPEFOGKI@xmlns@ mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR [edx+56] push eax call _xmlStrEqual add esp, 8 test eax, eax je SHORT $LN5@xmlAddAttr $LN40@xmlAddAttr: ; 2121 : ((xmlStrEqual(tmp->name, BAD_CAST "xmlns")) || ; 2122 : ((ret->prefix != NULL && ; 2123 : (xmlStrEqual(ret->prefix, BAD_CAST "xmlns")))))) { ; 2124 : if (tmp->nexth == NULL) mov ecx, DWORD PTR _tmp$1[ebp] cmp DWORD PTR [ecx+36], 0 jne SHORT $LN41@xmlAddAttr ; 2125 : break; jmp SHORT $LN5@xmlAddAttr $LN41@xmlAddAttr: ; 2126 : tmp = tmp->nexth; mov edx, DWORD PTR _tmp$1[ebp] mov eax, DWORD PTR [edx+36] mov DWORD PTR _tmp$1[ebp], eax ; 2127 : } jmp SHORT $LN4@xmlAddAttr $LN5@xmlAddAttr: ; 2128 : if (tmp != NULL) { cmp DWORD PTR _tmp$1[ebp], 0 je SHORT $LN42@xmlAddAttr ; 2129 : ret->nexth = tmp->nexth; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _tmp$1[ebp] mov eax, DWORD PTR [edx+36] mov DWORD PTR [ecx+36], eax ; 2130 : tmp->nexth = ret; mov ecx, DWORD PTR _tmp$1[ebp] mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+36], edx ; 2131 : } else { jmp SHORT $LN34@xmlAddAttr $LN42@xmlAddAttr: ; 2132 : ret->nexth = elemDef->attributes; mov eax, DWORD PTR _ret$[ebp] mov ecx, DWORD PTR _elemDef$[ebp] mov edx, DWORD PTR [ecx+44] mov DWORD PTR [eax+36], edx ; 2133 : elemDef->attributes = ret; mov eax, DWORD PTR _elemDef$[ebp] mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [eax+44], ecx $LN34@xmlAddAttr: ; 2134 : } ; 2135 : } ; 2136 : } ; 2137 : ; 2138 : /* ; 2139 : * Link it to the DTD ; 2140 : */ ; 2141 : ret->parent = dtd; mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR _dtd$[ebp] mov DWORD PTR [edx+20], eax ; 2142 : if (dtd->last == NULL) { mov ecx, DWORD PTR _dtd$[ebp] cmp DWORD PTR [ecx+16], 0 jne SHORT $LN44@xmlAddAttr ; 2143 : dtd->children = dtd->last = (xmlNodePtr) ret; mov edx, DWORD PTR _dtd$[ebp] mov eax, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+16], eax mov ecx, DWORD PTR _dtd$[ebp] mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+12], edx ; 2144 : } else { jmp SHORT $LN45@xmlAddAttr $LN44@xmlAddAttr: ; 2145 : dtd->last->next = (xmlNodePtr) ret; mov eax, DWORD PTR _dtd$[ebp] mov ecx, DWORD PTR [eax+16] mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+24], edx ; 2146 : ret->prev = dtd->last; mov eax, DWORD PTR _ret$[ebp] mov ecx, DWORD PTR _dtd$[ebp] mov edx, DWORD PTR [ecx+16] mov DWORD PTR [eax+28], edx ; 2147 : dtd->last = (xmlNodePtr) ret; mov eax, DWORD PTR _dtd$[ebp] mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [eax+16], ecx $LN45@xmlAddAttr: ; 2148 : } ; 2149 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlAddAttr: ; 2150 : } pop esi add esp, 24 ; 00000018H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 1 $LN47@xmlAddAttr: DD $LN10@xmlAddAttr DD $LN11@xmlAddAttr DD $LN12@xmlAddAttr DD $LN13@xmlAddAttr DD $LN14@xmlAddAttr DD $LN15@xmlAddAttr DD $LN16@xmlAddAttr DD $LN17@xmlAddAttr DD $LN18@xmlAddAttr DD $LN19@xmlAddAttr _xmlAddAttributeDecl ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlCopyEnumeration _TEXT SEGMENT _ret$ = -4 ; size = 4 _cur$ = 8 ; size = 4 _xmlCopyEnumeration PROC ; COMDAT ; 1808 : xmlCopyEnumeration(xmlEnumerationPtr cur) { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1809 : xmlEnumerationPtr ret; ; 1810 : ; 1811 : if (cur == NULL) return(NULL); cmp DWORD PTR _cur$[ebp], 0 jne SHORT $LN2@xmlCopyEnu xor eax, eax jmp SHORT $LN1@xmlCopyEnu $LN2@xmlCopyEnu: ; 1812 : ret = xmlCreateEnumeration((xmlChar *) cur->name); mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+4] push ecx call _xmlCreateEnumeration add esp, 4 mov DWORD PTR _ret$[ebp], eax ; 1813 : if (ret == NULL) return(NULL); cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN3@xmlCopyEnu xor eax, eax jmp SHORT $LN1@xmlCopyEnu $LN3@xmlCopyEnu: ; 1814 : ; 1815 : if (cur->next != NULL) ret->next = xmlCopyEnumeration(cur->next); mov edx, DWORD PTR _cur$[ebp] cmp DWORD PTR [edx], 0 je SHORT $LN4@xmlCopyEnu mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax] push ecx call _xmlCopyEnumeration add esp, 4 mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [edx], eax jmp SHORT $LN5@xmlCopyEnu $LN4@xmlCopyEnu: ; 1816 : else ret->next = NULL; mov eax, DWORD PTR _ret$[ebp] mov DWORD PTR [eax], 0 $LN5@xmlCopyEnu: ; 1817 : ; 1818 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlCopyEnu: ; 1819 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlCopyEnumeration ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeEnumeration _TEXT SEGMENT _cur$ = 8 ; size = 4 _xmlFreeEnumeration PROC ; COMDAT ; 1788 : xmlFreeEnumeration(xmlEnumerationPtr cur) { push ebp mov ebp, esp push esi mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1789 : if (cur == NULL) return; cmp DWORD PTR _cur$[ebp], 0 jne SHORT $LN2@xmlFreeEnu jmp SHORT $LN1@xmlFreeEnu $LN2@xmlFreeEnu: ; 1790 : ; 1791 : if (cur->next != NULL) xmlFreeEnumeration(cur->next); mov eax, DWORD PTR _cur$[ebp] cmp DWORD PTR [eax], 0 je SHORT $LN3@xmlFreeEnu mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx] push edx call _xmlFreeEnumeration add esp, 4 $LN3@xmlFreeEnu: ; 1792 : ; 1793 : if (cur->name != NULL) xmlFree((xmlChar *) cur->name); mov eax, DWORD PTR _cur$[ebp] cmp DWORD PTR [eax+4], 0 je SHORT $LN4@xmlFreeEnu mov esi, esp mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+4] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN4@xmlFreeEnu: ; 1794 : xmlFree(cur); mov esi, esp mov eax, DWORD PTR _cur$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN1@xmlFreeEnu: ; 1795 : } pop esi cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlFreeEnumeration ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlCreateEnumeration _TEXT SEGMENT _ret$ = -4 ; size = 4 _name$ = 8 ; size = 4 _xmlCreateEnumeration PROC ; COMDAT ; 1766 : xmlCreateEnumeration(const xmlChar *name) { push ebp mov ebp, esp push ecx push esi mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1767 : xmlEnumerationPtr ret; ; 1768 : ; 1769 : ret = (xmlEnumerationPtr) xmlMalloc(sizeof(xmlEnumeration)); mov esi, esp push 8 call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _ret$[ebp], eax ; 1770 : if (ret == NULL) { cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN2@xmlCreateE ; 1771 : xmlVErrMemory(NULL, "malloc failed"); push OFFSET ??_C@_0O@IMHFIAOC@malloc?5failed@ push 0 call _xmlVErrMemory add esp, 8 ; 1772 : return(NULL); xor eax, eax jmp SHORT $LN1@xmlCreateE $LN2@xmlCreateE: ; 1773 : } ; 1774 : memset(ret, 0, sizeof(xmlEnumeration)); xor eax, eax mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx], eax mov DWORD PTR [ecx+4], eax ; 1775 : ; 1776 : if (name != NULL) cmp DWORD PTR _name$[ebp], 0 je SHORT $LN3@xmlCreateE ; 1777 : ret->name = xmlStrdup(name); mov edx, DWORD PTR _name$[ebp] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+4], eax $LN3@xmlCreateE: ; 1778 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlCreateE: ; 1779 : } pop esi add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlCreateEnumeration ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlDumpElementDecl _TEXT SEGMENT tv67 = -4 ; size = 4 _buf$ = 8 ; size = 4 _elem$ = 12 ; size = 4 _xmlDumpElementDecl PROC ; COMDAT ; 1676 : xmlDumpElementDecl(xmlBufferPtr buf, xmlElementPtr elem) { push ebp mov ebp, esp push ecx mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1677 : if ((buf == NULL) || (elem == NULL)) cmp DWORD PTR _buf$[ebp], 0 je SHORT $LN5@xmlDumpEle cmp DWORD PTR _elem$[ebp], 0 jne SHORT $LN4@xmlDumpEle $LN5@xmlDumpEle: ; 1678 : return; jmp $LN1@xmlDumpEle $LN4@xmlDumpEle: ; 1679 : switch (elem->etype) { mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+36] mov DWORD PTR tv67[ebp], ecx mov edx, DWORD PTR tv67[ebp] sub edx, 1 mov DWORD PTR tv67[ebp], edx cmp DWORD PTR tv67[ebp], 3 ja $LN14@xmlDumpEle mov eax, DWORD PTR tv67[ebp] jmp DWORD PTR $LN16@xmlDumpEle[eax*4] $LN6@xmlDumpEle: ; 1680 : case XML_ELEMENT_TYPE_EMPTY: ; 1681 : xmlBufferWriteChar(buf, "<!ELEMENT "); push OFFSET ??_C@_0L@EMLMHHFJ@?$DM?$CBELEMENT?5@ mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteChar add esp, 8 ; 1682 : if (elem->prefix != NULL) { mov edx, DWORD PTR _elem$[ebp] cmp DWORD PTR [edx+48], 0 je SHORT $LN7@xmlDumpEle ; 1683 : xmlBufferWriteCHAR(buf, elem->prefix); mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+48] push ecx mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteCHAR add esp, 8 ; 1684 : xmlBufferWriteChar(buf, ":"); push OFFSET ??_C@_01JLIPDDHJ@?3@ mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteChar add esp, 8 $LN7@xmlDumpEle: ; 1685 : } ; 1686 : xmlBufferWriteCHAR(buf, elem->name); mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+8] push edx mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteCHAR add esp, 8 ; 1687 : xmlBufferWriteChar(buf, " EMPTY>\n"); push OFFSET ??_C@_08HMKELAAG@?5EMPTY?$DO?6@ mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteChar add esp, 8 ; 1688 : break; jmp $LN1@xmlDumpEle $LN8@xmlDumpEle: ; 1689 : case XML_ELEMENT_TYPE_ANY: ; 1690 : xmlBufferWriteChar(buf, "<!ELEMENT "); push OFFSET ??_C@_0L@EMLMHHFJ@?$DM?$CBELEMENT?5@ mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteChar add esp, 8 ; 1691 : if (elem->prefix != NULL) { mov eax, DWORD PTR _elem$[ebp] cmp DWORD PTR [eax+48], 0 je SHORT $LN9@xmlDumpEle ; 1692 : xmlBufferWriteCHAR(buf, elem->prefix); mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+48] push edx mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteCHAR add esp, 8 ; 1693 : xmlBufferWriteChar(buf, ":"); push OFFSET ??_C@_01JLIPDDHJ@?3@ mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteChar add esp, 8 $LN9@xmlDumpEle: ; 1694 : } ; 1695 : xmlBufferWriteCHAR(buf, elem->name); mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteCHAR add esp, 8 ; 1696 : xmlBufferWriteChar(buf, " ANY>\n"); push OFFSET ??_C@_06OMPGEGME@?5ANY?$DO?6@ mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteChar add esp, 8 ; 1697 : break; jmp $LN1@xmlDumpEle $LN10@xmlDumpEle: ; 1698 : case XML_ELEMENT_TYPE_MIXED: ; 1699 : xmlBufferWriteChar(buf, "<!ELEMENT "); push OFFSET ??_C@_0L@EMLMHHFJ@?$DM?$CBELEMENT?5@ mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteChar add esp, 8 ; 1700 : if (elem->prefix != NULL) { mov ecx, DWORD PTR _elem$[ebp] cmp DWORD PTR [ecx+48], 0 je SHORT $LN11@xmlDumpEle ; 1701 : xmlBufferWriteCHAR(buf, elem->prefix); mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+48] push eax mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteCHAR add esp, 8 ; 1702 : xmlBufferWriteChar(buf, ":"); push OFFSET ??_C@_01JLIPDDHJ@?3@ mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteChar add esp, 8 $LN11@xmlDumpEle: ; 1703 : } ; 1704 : xmlBufferWriteCHAR(buf, elem->name); mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteCHAR add esp, 8 ; 1705 : xmlBufferWriteChar(buf, " "); push OFFSET ??_C@_01CLKCMJKC@?5@ mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteChar add esp, 8 ; 1706 : xmlDumpElementContent(buf, elem->content, 1); push 1 mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+40] push edx mov eax, DWORD PTR _buf$[ebp] push eax call _xmlDumpElementContent add esp, 12 ; 0000000cH ; 1707 : xmlBufferWriteChar(buf, ">\n"); push OFFSET ??_C@_02NEKEAGPN@?$DO?6@ mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteChar add esp, 8 ; 1708 : break; jmp $LN1@xmlDumpEle $LN12@xmlDumpEle: ; 1709 : case XML_ELEMENT_TYPE_ELEMENT: ; 1710 : xmlBufferWriteChar(buf, "<!ELEMENT "); push OFFSET ??_C@_0L@EMLMHHFJ@?$DM?$CBELEMENT?5@ mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteChar add esp, 8 ; 1711 : if (elem->prefix != NULL) { mov eax, DWORD PTR _elem$[ebp] cmp DWORD PTR [eax+48], 0 je SHORT $LN13@xmlDumpEle ; 1712 : xmlBufferWriteCHAR(buf, elem->prefix); mov ecx, DWORD PTR _elem$[ebp] mov edx, DWORD PTR [ecx+48] push edx mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteCHAR add esp, 8 ; 1713 : xmlBufferWriteChar(buf, ":"); push OFFSET ??_C@_01JLIPDDHJ@?3@ mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteChar add esp, 8 $LN13@xmlDumpEle: ; 1714 : } ; 1715 : xmlBufferWriteCHAR(buf, elem->name); mov edx, DWORD PTR _elem$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteCHAR add esp, 8 ; 1716 : xmlBufferWriteChar(buf, " "); push OFFSET ??_C@_01CLKCMJKC@?5@ mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteChar add esp, 8 ; 1717 : xmlDumpElementContent(buf, elem->content, 1); push 1 mov eax, DWORD PTR _elem$[ebp] mov ecx, DWORD PTR [eax+40] push ecx mov edx, DWORD PTR _buf$[ebp] push edx call _xmlDumpElementContent add esp, 12 ; 0000000cH ; 1718 : xmlBufferWriteChar(buf, ">\n"); push OFFSET ??_C@_02NEKEAGPN@?$DO?6@ mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteChar add esp, 8 ; 1719 : break; jmp SHORT $LN1@xmlDumpEle $LN14@xmlDumpEle: ; 1720 : default: ; 1721 : xmlErrValid(NULL, XML_ERR_INTERNAL_ERROR, push 0 push OFFSET ??_C@_0DB@NFLGBMMC@Internal?3?5ELEMENT?5struct?5corrup@ push 1 push 0 call _xmlErrValid add esp, 16 ; 00000010H $LN1@xmlDumpEle: ; 1722 : "Internal: ELEMENT struct corrupted invalid type\n", ; 1723 : NULL); ; 1724 : } ; 1725 : } add esp, 4 cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 2 $LN16@xmlDumpEle: DD $LN6@xmlDumpEle DD $LN8@xmlDumpEle DD $LN10@xmlDumpEle DD $LN12@xmlDumpEle _xmlDumpElementDecl ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlDumpElementTable _TEXT SEGMENT _buf$ = 8 ; size = 4 _table$ = 12 ; size = 4 _xmlDumpElementTable PROC ; COMDAT ; 1749 : xmlDumpElementTable(xmlBufferPtr buf, xmlElementTablePtr table) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1750 : if ((buf == NULL) || (table == NULL)) cmp DWORD PTR _buf$[ebp], 0 je SHORT $LN3@xmlDumpEle cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN2@xmlDumpEle $LN3@xmlDumpEle: ; 1751 : return; jmp SHORT $LN1@xmlDumpEle $LN2@xmlDumpEle: ; 1752 : xmlHashScan(table, xmlDumpElementDeclScan, buf); mov eax, DWORD PTR _buf$[ebp] push eax push OFFSET _xmlDumpElementDeclScan mov ecx, DWORD PTR _table$[ebp] push ecx call _xmlHashScan add esp, 12 ; 0000000cH $LN1@xmlDumpEle: ; 1753 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlDumpElementTable ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeElementTable _TEXT SEGMENT _table$ = 8 ; size = 4 _xmlFreeElementTable PROC ; COMDAT ; 1612 : xmlFreeElementTable(xmlElementTablePtr table) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1613 : xmlHashFree(table, xmlFreeElementTableEntry); push OFFSET _xmlFreeElementTableEntry mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashFree add esp, 8 ; 1614 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlFreeElementTable ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlCopyElementTable _TEXT SEGMENT _table$ = 8 ; size = 4 _xmlCopyElementTable PROC ; COMDAT ; 1661 : xmlCopyElementTable(xmlElementTablePtr table) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1662 : return((xmlElementTablePtr) xmlHashCopy(table, xmlCopyElement)); push OFFSET _xmlCopyElement mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashCopy add esp, 8 ; 1663 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlCopyElementTable ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlAddElementDecl _TEXT SEGMENT tv66 = -36 ; size = 4 _dict$1 = -32 ; size = 4 _uqname$ = -28 ; size = 4 _ns$ = -20 ; size = 4 _oldAttributes$ = -12 ; size = 4 _table$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _dtd$ = 12 ; size = 4 _name$ = 16 ; size = 4 _type$ = 20 ; size = 4 _content$ = 24 ; size = 4 _xmlAddElementDecl PROC ; COMDAT ; 1390 : xmlElementContentPtr content) { push ebp mov ebp, esp sub esp, 36 ; 00000024H push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-36], eax mov DWORD PTR [ebp-32], eax mov DWORD PTR [ebp-28], eax mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1391 : xmlElementPtr ret; ; 1392 : xmlElementTablePtr table; ; 1393 : xmlAttributePtr oldAttributes = NULL; mov DWORD PTR _oldAttributes$[ebp], 0 ; 1394 : xmlChar *ns, *uqname; ; 1395 : ; 1396 : if (dtd == NULL) { cmp DWORD PTR _dtd$[ebp], 0 jne SHORT $LN4@xmlAddElem ; 1397 : return(NULL); xor eax, eax jmp $LN1@xmlAddElem $LN4@xmlAddElem: ; 1398 : } ; 1399 : if (name == NULL) { cmp DWORD PTR _name$[ebp], 0 jne SHORT $LN5@xmlAddElem ; 1400 : return(NULL); xor eax, eax jmp $LN1@xmlAddElem $LN5@xmlAddElem: ; 1401 : } ; 1402 : ; 1403 : switch (type) { mov eax, DWORD PTR _type$[ebp] mov DWORD PTR tv66[ebp], eax mov ecx, DWORD PTR tv66[ebp] sub ecx, 1 mov DWORD PTR tv66[ebp], ecx cmp DWORD PTR tv66[ebp], 3 ja $LN14@xmlAddElem mov edx, DWORD PTR tv66[ebp] jmp DWORD PTR $LN48@xmlAddElem[edx*4] $LN6@xmlAddElem: ; 1404 : case XML_ELEMENT_TYPE_EMPTY: ; 1405 : if (content != NULL) { cmp DWORD PTR _content$[ebp], 0 je SHORT $LN7@xmlAddElem ; 1406 : xmlErrValid(ctxt, XML_ERR_INTERNAL_ERROR, push 0 push OFFSET ??_C@_0CO@BLBNCGCL@xmlAddElementDecl?3?5content?5?$CB?$DN?5N@ push 1 mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValid add esp, 16 ; 00000010H ; 1407 : "xmlAddElementDecl: content != NULL for EMPTY\n", ; 1408 : NULL); ; 1409 : return(NULL); xor eax, eax jmp $LN1@xmlAddElem $LN7@xmlAddElem: ; 1410 : } ; 1411 : break; jmp $LN2@xmlAddElem $LN8@xmlAddElem: ; 1412 : case XML_ELEMENT_TYPE_ANY: ; 1413 : if (content != NULL) { cmp DWORD PTR _content$[ebp], 0 je SHORT $LN9@xmlAddElem ; 1414 : xmlErrValid(ctxt, XML_ERR_INTERNAL_ERROR, push 0 push OFFSET ??_C@_0CM@DBFKJMHA@xmlAddElementDecl?3?5content?5?$CB?$DN?5N@ push 1 mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValid add esp, 16 ; 00000010H ; 1415 : "xmlAddElementDecl: content != NULL for ANY\n", ; 1416 : NULL); ; 1417 : return(NULL); xor eax, eax jmp $LN1@xmlAddElem $LN9@xmlAddElem: ; 1418 : } ; 1419 : break; jmp SHORT $LN2@xmlAddElem $LN10@xmlAddElem: ; 1420 : case XML_ELEMENT_TYPE_MIXED: ; 1421 : if (content == NULL) { cmp DWORD PTR _content$[ebp], 0 jne SHORT $LN11@xmlAddElem ; 1422 : xmlErrValid(ctxt, XML_ERR_INTERNAL_ERROR, push 0 push OFFSET ??_C@_0CO@IMMDEKCP@xmlAddElementDecl?3?5content?5?$DN?$DN?5N@ push 1 mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlErrValid add esp, 16 ; 00000010H ; 1423 : "xmlAddElementDecl: content == NULL for MIXED\n", ; 1424 : NULL); ; 1425 : return(NULL); xor eax, eax jmp $LN1@xmlAddElem $LN11@xmlAddElem: ; 1426 : } ; 1427 : break; jmp SHORT $LN2@xmlAddElem $LN12@xmlAddElem: ; 1428 : case XML_ELEMENT_TYPE_ELEMENT: ; 1429 : if (content == NULL) { cmp DWORD PTR _content$[ebp], 0 jne SHORT $LN13@xmlAddElem ; 1430 : xmlErrValid(ctxt, XML_ERR_INTERNAL_ERROR, push 0 push OFFSET ??_C@_0DA@CFDLEHAD@xmlAddElementDecl?3?5content?5?$DN?$DN?5N@ push 1 mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlErrValid add esp, 16 ; 00000010H ; 1431 : "xmlAddElementDecl: content == NULL for ELEMENT\n", ; 1432 : NULL); ; 1433 : return(NULL); xor eax, eax jmp $LN1@xmlAddElem $LN13@xmlAddElem: ; 1434 : } ; 1435 : break; jmp SHORT $LN2@xmlAddElem $LN14@xmlAddElem: ; 1436 : default: ; 1437 : xmlErrValid(ctxt, XML_ERR_INTERNAL_ERROR, push 0 push OFFSET ??_C@_0CP@HFIOBKAA@Internal?3?5ELEMENT?5decl?5corrupte@ push 1 mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValid add esp, 16 ; 00000010H ; 1438 : "Internal: ELEMENT decl corrupted invalid type\n", ; 1439 : NULL); ; 1440 : return(NULL); xor eax, eax jmp $LN1@xmlAddElem $LN2@xmlAddElem: ; 1441 : } ; 1442 : ; 1443 : /* ; 1444 : * check if name is a QName ; 1445 : */ ; 1446 : uqname = xmlSplitQName2(name, &ns); lea edx, DWORD PTR _ns$[ebp] push edx mov eax, DWORD PTR _name$[ebp] push eax call _xmlSplitQName2 add esp, 8 mov DWORD PTR _uqname$[ebp], eax ; 1447 : if (uqname != NULL) cmp DWORD PTR _uqname$[ebp], 0 je SHORT $LN15@xmlAddElem ; 1448 : name = uqname; mov ecx, DWORD PTR _uqname$[ebp] mov DWORD PTR _name$[ebp], ecx $LN15@xmlAddElem: ; 1449 : ; 1450 : /* ; 1451 : * Create the Element table if needed. ; 1452 : */ ; 1453 : table = (xmlElementTablePtr) dtd->elements; mov edx, DWORD PTR _dtd$[ebp] mov eax, DWORD PTR [edx+40] mov DWORD PTR _table$[ebp], eax ; 1454 : if (table == NULL) { cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN16@xmlAddElem ; 1455 : xmlDictPtr dict = NULL; mov DWORD PTR _dict$1[ebp], 0 ; 1456 : ; 1457 : if (dtd->doc != NULL) mov ecx, DWORD PTR _dtd$[ebp] cmp DWORD PTR [ecx+32], 0 je SHORT $LN17@xmlAddElem ; 1458 : dict = dtd->doc->dict; mov edx, DWORD PTR _dtd$[ebp] mov eax, DWORD PTR [edx+32] mov ecx, DWORD PTR [eax+80] mov DWORD PTR _dict$1[ebp], ecx $LN17@xmlAddElem: ; 1459 : table = xmlHashCreateDict(0, dict); mov edx, DWORD PTR _dict$1[ebp] push edx push 0 call _xmlHashCreateDict add esp, 8 mov DWORD PTR _table$[ebp], eax ; 1460 : dtd->elements = (void *) table; mov eax, DWORD PTR _dtd$[ebp] mov ecx, DWORD PTR _table$[ebp] mov DWORD PTR [eax+40], ecx $LN16@xmlAddElem: ; 1461 : } ; 1462 : if (table == NULL) { cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN18@xmlAddElem ; 1463 : xmlVErrMemory(ctxt, push OFFSET ??_C@_0CL@IICJECDN@xmlAddElementDecl?3?5Table?5creati@ mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlVErrMemory add esp, 8 ; 1464 : "xmlAddElementDecl: Table creation failed!\n"); ; 1465 : if (uqname != NULL) cmp DWORD PTR _uqname$[ebp], 0 je SHORT $LN19@xmlAddElem ; 1466 : xmlFree(uqname); mov esi, esp mov eax, DWORD PTR _uqname$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN19@xmlAddElem: ; 1467 : if (ns != NULL) cmp DWORD PTR _ns$[ebp], 0 je SHORT $LN20@xmlAddElem ; 1468 : xmlFree(ns); mov esi, esp mov ecx, DWORD PTR _ns$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN20@xmlAddElem: ; 1469 : return(NULL); xor eax, eax jmp $LN1@xmlAddElem $LN18@xmlAddElem: ; 1470 : } ; 1471 : ; 1472 : /* ; 1473 : * lookup old attributes inserted on an undefined element in the ; 1474 : * internal subset. ; 1475 : */ ; 1476 : if ((dtd->doc != NULL) && (dtd->doc->intSubset != NULL)) { mov edx, DWORD PTR _dtd$[ebp] cmp DWORD PTR [edx+32], 0 je SHORT $LN21@xmlAddElem mov eax, DWORD PTR _dtd$[ebp] mov ecx, DWORD PTR [eax+32] cmp DWORD PTR [ecx+44], 0 je SHORT $LN21@xmlAddElem ; 1477 : ret = xmlHashLookup2(dtd->doc->intSubset->elements, name, ns); mov edx, DWORD PTR _ns$[ebp] push edx mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _dtd$[ebp] mov edx, DWORD PTR [ecx+32] mov eax, DWORD PTR [edx+44] mov ecx, DWORD PTR [eax+40] push ecx call _xmlHashLookup2 add esp, 12 ; 0000000cH mov DWORD PTR _ret$[ebp], eax ; 1478 : if ((ret != NULL) && (ret->etype == XML_ELEMENT_TYPE_UNDEFINED)) { cmp DWORD PTR _ret$[ebp], 0 je SHORT $LN21@xmlAddElem mov edx, DWORD PTR _ret$[ebp] cmp DWORD PTR [edx+36], 0 jne SHORT $LN21@xmlAddElem ; 1479 : oldAttributes = ret->attributes; mov eax, DWORD PTR _ret$[ebp] mov ecx, DWORD PTR [eax+44] mov DWORD PTR _oldAttributes$[ebp], ecx ; 1480 : ret->attributes = NULL; mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+44], 0 ; 1481 : xmlHashRemoveEntry2(dtd->doc->intSubset->elements, name, ns, NULL); push 0 mov eax, DWORD PTR _ns$[ebp] push eax mov ecx, DWORD PTR _name$[ebp] push ecx mov edx, DWORD PTR _dtd$[ebp] mov eax, DWORD PTR [edx+32] mov ecx, DWORD PTR [eax+44] mov edx, DWORD PTR [ecx+40] push edx call _xmlHashRemoveEntry2 add esp, 16 ; 00000010H ; 1482 : xmlFreeElement(ret); mov eax, DWORD PTR _ret$[ebp] push eax call _xmlFreeElement add esp, 4 $LN21@xmlAddElem: ; 1483 : } ; 1484 : } ; 1485 : ; 1486 : /* ; 1487 : * The element may already be present if one of its attribute ; 1488 : * was registered first ; 1489 : */ ; 1490 : ret = xmlHashLookup2(table, name, ns); mov ecx, DWORD PTR _ns$[ebp] push ecx mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashLookup2 add esp, 12 ; 0000000cH mov DWORD PTR _ret$[ebp], eax ; 1491 : if (ret != NULL) { cmp DWORD PTR _ret$[ebp], 0 je $LN23@xmlAddElem ; 1492 : if (ret->etype != XML_ELEMENT_TYPE_UNDEFINED) { mov ecx, DWORD PTR _ret$[ebp] cmp DWORD PTR [ecx+36], 0 je SHORT $LN25@xmlAddElem ; 1493 : #ifdef LIBXML_VALID_ENABLED ; 1494 : /* ; 1495 : * The element is already defined in this DTD. ; 1496 : */ ; 1497 : xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ELEM_REDEFINED, push 0 push 0 mov edx, DWORD PTR _name$[ebp] push edx push OFFSET ??_C@_0BM@DLJMKEJ@Redefinition?5of?5element?5?$CFs?6@ push 509 ; 000001fdH mov eax, DWORD PTR _dtd$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 1498 : "Redefinition of element %s\n", ; 1499 : name, NULL, NULL); ; 1500 : #endif /* LIBXML_VALID_ENABLED */ ; 1501 : if (uqname != NULL) cmp DWORD PTR _uqname$[ebp], 0 je SHORT $LN26@xmlAddElem ; 1502 : xmlFree(uqname); mov esi, esp mov edx, DWORD PTR _uqname$[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN26@xmlAddElem: ; 1503 : if (ns != NULL) cmp DWORD PTR _ns$[ebp], 0 je SHORT $LN27@xmlAddElem ; 1504 : xmlFree(ns); mov esi, esp mov eax, DWORD PTR _ns$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN27@xmlAddElem: ; 1505 : return(NULL); xor eax, eax jmp $LN1@xmlAddElem $LN25@xmlAddElem: ; 1506 : } ; 1507 : if (ns != NULL) { cmp DWORD PTR _ns$[ebp], 0 je SHORT $LN28@xmlAddElem ; 1508 : xmlFree(ns); mov esi, esp mov ecx, DWORD PTR _ns$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 1509 : ns = NULL; mov DWORD PTR _ns$[ebp], 0 $LN28@xmlAddElem: ; 1510 : } ; 1511 : } else { jmp $LN24@xmlAddElem $LN23@xmlAddElem: ; 1512 : ret = (xmlElementPtr) xmlMalloc(sizeof(xmlElement)); mov esi, esp push 56 ; 00000038H call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _ret$[ebp], eax ; 1513 : if (ret == NULL) { cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN29@xmlAddElem ; 1514 : xmlVErrMemory(ctxt, "malloc failed"); push OFFSET ??_C@_0O@IMHFIAOC@malloc?5failed@ mov edx, DWORD PTR _ctxt$[ebp] push edx call _xmlVErrMemory add esp, 8 ; 1515 : if (uqname != NULL) cmp DWORD PTR _uqname$[ebp], 0 je SHORT $LN30@xmlAddElem ; 1516 : xmlFree(uqname); mov esi, esp mov eax, DWORD PTR _uqname$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN30@xmlAddElem: ; 1517 : if (ns != NULL) cmp DWORD PTR _ns$[ebp], 0 je SHORT $LN31@xmlAddElem ; 1518 : xmlFree(ns); mov esi, esp mov ecx, DWORD PTR _ns$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN31@xmlAddElem: ; 1519 : return(NULL); xor eax, eax jmp $LN1@xmlAddElem $LN29@xmlAddElem: ; 1520 : } ; 1521 : memset(ret, 0, sizeof(xmlElement)); push 56 ; 00000038H push 0 mov edx, DWORD PTR _ret$[ebp] push edx call _memset add esp, 12 ; 0000000cH ; 1522 : ret->type = XML_ELEMENT_DECL; mov eax, DWORD PTR _ret$[ebp] mov DWORD PTR [eax+4], 15 ; 0000000fH ; 1523 : ; 1524 : /* ; 1525 : * fill the structure. ; 1526 : */ ; 1527 : ret->name = xmlStrdup(name); mov ecx, DWORD PTR _name$[ebp] push ecx call _xmlStrdup add esp, 4 mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+8], eax ; 1528 : if (ret->name == NULL) { mov eax, DWORD PTR _ret$[ebp] cmp DWORD PTR [eax+8], 0 jne SHORT $LN32@xmlAddElem ; 1529 : xmlVErrMemory(ctxt, "malloc failed"); push OFFSET ??_C@_0O@IMHFIAOC@malloc?5failed@ mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlVErrMemory add esp, 8 ; 1530 : if (uqname != NULL) cmp DWORD PTR _uqname$[ebp], 0 je SHORT $LN33@xmlAddElem ; 1531 : xmlFree(uqname); mov esi, esp mov edx, DWORD PTR _uqname$[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN33@xmlAddElem: ; 1532 : if (ns != NULL) cmp DWORD PTR _ns$[ebp], 0 je SHORT $LN34@xmlAddElem ; 1533 : xmlFree(ns); mov esi, esp mov eax, DWORD PTR _ns$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN34@xmlAddElem: ; 1534 : xmlFree(ret); mov esi, esp mov ecx, DWORD PTR _ret$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 1535 : return(NULL); xor eax, eax jmp $LN1@xmlAddElem $LN32@xmlAddElem: ; 1536 : } ; 1537 : ret->prefix = ns; mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR _ns$[ebp] mov DWORD PTR [edx+48], eax ; 1538 : ; 1539 : /* ; 1540 : * Validity Check: ; 1541 : * Insertion must not fail ; 1542 : */ ; 1543 : if (xmlHashAddEntry2(table, name, ns, ret)) { mov ecx, DWORD PTR _ret$[ebp] push ecx mov edx, DWORD PTR _ns$[ebp] push edx mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _table$[ebp] push ecx call _xmlHashAddEntry2 add esp, 16 ; 00000010H test eax, eax je SHORT $LN35@xmlAddElem ; 1544 : #ifdef LIBXML_VALID_ENABLED ; 1545 : /* ; 1546 : * The element is already defined in this DTD. ; 1547 : */ ; 1548 : xmlErrValidNode(ctxt, (xmlNodePtr) dtd, XML_DTD_ELEM_REDEFINED, push 0 push 0 mov edx, DWORD PTR _name$[ebp] push edx push OFFSET ??_C@_0BM@DLJMKEJ@Redefinition?5of?5element?5?$CFs?6@ push 509 ; 000001fdH mov eax, DWORD PTR _dtd$[ebp] push eax mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlErrValidNode add esp, 28 ; 0000001cH ; 1549 : "Redefinition of element %s\n", ; 1550 : name, NULL, NULL); ; 1551 : #endif /* LIBXML_VALID_ENABLED */ ; 1552 : xmlFreeElement(ret); mov edx, DWORD PTR _ret$[ebp] push edx call _xmlFreeElement add esp, 4 ; 1553 : if (uqname != NULL) cmp DWORD PTR _uqname$[ebp], 0 je SHORT $LN36@xmlAddElem ; 1554 : xmlFree(uqname); mov esi, esp mov eax, DWORD PTR _uqname$[ebp] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN36@xmlAddElem: ; 1555 : return(NULL); xor eax, eax jmp $LN1@xmlAddElem $LN35@xmlAddElem: ; 1556 : } ; 1557 : /* ; 1558 : * For new element, may have attributes from earlier ; 1559 : * definition in internal subset ; 1560 : */ ; 1561 : ret->attributes = oldAttributes; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _oldAttributes$[ebp] mov DWORD PTR [ecx+44], edx $LN24@xmlAddElem: ; 1562 : } ; 1563 : ; 1564 : /* ; 1565 : * Finish to fill the structure. ; 1566 : */ ; 1567 : ret->etype = type; mov eax, DWORD PTR _ret$[ebp] mov ecx, DWORD PTR _type$[ebp] mov DWORD PTR [eax+36], ecx ; 1568 : /* ; 1569 : * Avoid a stupid copy when called by the parser ; 1570 : * and flag it by setting a special parent value ; 1571 : * so the parser doesn't unallocate it. ; 1572 : */ ; 1573 : if ((ctxt != NULL) && cmp DWORD PTR _ctxt$[ebp], 0 je SHORT $LN37@xmlAddElem mov edx, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [edx+28], -1412623820 ; abcd1234H je SHORT $LN39@xmlAddElem mov eax, DWORD PTR _ctxt$[ebp] cmp DWORD PTR [eax+28], -1412623819 ; abcd1235H jne SHORT $LN37@xmlAddElem $LN39@xmlAddElem: ; 1574 : ((ctxt->finishDtd == XML_CTXT_FINISH_DTD_0) || ; 1575 : (ctxt->finishDtd == XML_CTXT_FINISH_DTD_1))) { ; 1576 : ret->content = content; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _content$[ebp] mov DWORD PTR [ecx+40], edx ; 1577 : if (content != NULL) cmp DWORD PTR _content$[ebp], 0 je SHORT $LN40@xmlAddElem ; 1578 : content->parent = (xmlElementContentPtr) 1; mov eax, DWORD PTR _content$[ebp] mov DWORD PTR [eax+20], 1 $LN40@xmlAddElem: ; 1579 : } else { jmp SHORT $LN38@xmlAddElem $LN37@xmlAddElem: ; 1580 : ret->content = xmlCopyDocElementContent(dtd->doc, content); mov ecx, DWORD PTR _content$[ebp] push ecx mov edx, DWORD PTR _dtd$[ebp] mov eax, DWORD PTR [edx+32] push eax call _xmlCopyDocElementContent add esp, 8 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+40], eax $LN38@xmlAddElem: ; 1581 : } ; 1582 : ; 1583 : /* ; 1584 : * Link it to the DTD ; 1585 : */ ; 1586 : ret->parent = dtd; mov edx, DWORD PTR _ret$[ebp] mov eax, DWORD PTR _dtd$[ebp] mov DWORD PTR [edx+20], eax ; 1587 : ret->doc = dtd->doc; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _dtd$[ebp] mov eax, DWORD PTR [edx+32] mov DWORD PTR [ecx+32], eax ; 1588 : if (dtd->last == NULL) { mov ecx, DWORD PTR _dtd$[ebp] cmp DWORD PTR [ecx+16], 0 jne SHORT $LN41@xmlAddElem ; 1589 : dtd->children = dtd->last = (xmlNodePtr) ret; mov edx, DWORD PTR _dtd$[ebp] mov eax, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+16], eax mov ecx, DWORD PTR _dtd$[ebp] mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+12], edx ; 1590 : } else { jmp SHORT $LN42@xmlAddElem $LN41@xmlAddElem: ; 1591 : dtd->last->next = (xmlNodePtr) ret; mov eax, DWORD PTR _dtd$[ebp] mov ecx, DWORD PTR [eax+16] mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+24], edx ; 1592 : ret->prev = dtd->last; mov eax, DWORD PTR _ret$[ebp] mov ecx, DWORD PTR _dtd$[ebp] mov edx, DWORD PTR [ecx+16] mov DWORD PTR [eax+28], edx ; 1593 : dtd->last = (xmlNodePtr) ret; mov eax, DWORD PTR _dtd$[ebp] mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [eax+16], ecx $LN42@xmlAddElem: ; 1594 : } ; 1595 : if (uqname != NULL) cmp DWORD PTR _uqname$[ebp], 0 je SHORT $LN43@xmlAddElem ; 1596 : xmlFree(uqname); mov esi, esp mov edx, DWORD PTR _uqname$[ebp] push edx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN43@xmlAddElem: ; 1597 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlAddElem: ; 1598 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN47@xmlAddElem call @_RTC_CheckStackVars@8 pop eax pop edx pop esi add esp, 36 ; 00000024H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 1 $LN47@xmlAddElem: DD 1 DD $LN46@xmlAddElem $LN46@xmlAddElem: DD -20 ; ffffffecH DD 4 DD $LN45@xmlAddElem $LN45@xmlAddElem: DB 110 ; 0000006eH DB 115 ; 00000073H DB 0 npad 1 $LN48@xmlAddElem: DD $LN6@xmlAddElem DD $LN8@xmlAddElem DD $LN10@xmlAddElem DD $LN12@xmlAddElem _xmlAddElementDecl ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlSprintfElementContent _TEXT SEGMENT _buf$ = 8 ; size = 4 _content$ = 12 ; size = 4 _englob$ = 16 ; size = 4 _xmlSprintfElementContent PROC ; COMDAT ; 1239 : int englob ATTRIBUTE_UNUSED) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1240 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlSprintfElementContent ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlSnprintfElementContent _TEXT SEGMENT tv639 = -237 ; size = 1 tv636 = -236 ; size = 4 tv628 = -229 ; size = 1 tv625 = -228 ; size = 4 tv617 = -221 ; size = 1 tv614 = -220 ; size = 4 tv282 = -216 ; size = 4 tv604 = -209 ; size = 1 tv601 = -208 ; size = 4 tv273 = -204 ; size = 4 tv594 = -197 ; size = 1 tv591 = -196 ; size = 4 tv588 = -192 ; size = 4 tv570 = -185 ; size = 1 tv567 = -184 ; size = 4 tv557 = -177 ; size = 1 tv554 = -176 ; size = 4 tv232 = -172 ; size = 4 tv544 = -165 ; size = 1 tv541 = -164 ; size = 4 tv538 = -160 ; size = 4 tv510 = -153 ; size = 1 tv507 = -152 ; size = 4 tv497 = -145 ; size = 1 tv494 = -144 ; size = 4 tv177 = -140 ; size = 4 tv484 = -133 ; size = 1 tv481 = -132 ; size = 4 tv478 = -128 ; size = 4 tv453 = -121 ; size = 1 tv450 = -120 ; size = 4 tv447 = -116 ; size = 4 tv446 = -112 ; size = 4 tv441 = -105 ; size = 1 tv438 = -104 ; size = 4 tv436 = -100 ; size = 4 tv427 = -93 ; size = 1 tv424 = -92 ; size = 4 tv408 = -85 ; size = 1 tv405 = -84 ; size = 4 tv402 = -80 ; size = 4 tv401 = -76 ; size = 4 tv396 = -69 ; size = 1 tv393 = -68 ; size = 4 tv391 = -64 ; size = 4 tv380 = -57 ; size = 1 tv377 = -56 ; size = 4 tv357 = -49 ; size = 1 tv354 = -48 ; size = 4 tv87 = -44 ; size = 4 tv342 = -37 ; size = 1 tv339 = -36 ; size = 4 tv329 = -29 ; size = 1 tv326 = -28 ; size = 4 tv67 = -24 ; size = 4 tv316 = -17 ; size = 1 tv313 = -16 ; size = 4 tv310 = -12 ; size = 4 _qnameLen$1 = -8 ; size = 4 _len$ = -4 ; size = 4 _buf$ = 8 ; size = 4 _size$ = 12 ; size = 4 _content$ = 16 ; size = 4 _englob$ = 20 ; size = 4 _xmlSnprintfElementContent PROC ; COMDAT ; 1254 : xmlSnprintfElementContent(char *buf, int size, xmlElementContentPtr content, int englob) { push ebp mov ebp, esp sub esp, 240 ; 000000f0H push esi push edi lea edi, DWORD PTR [ebp-240] mov ecx, 60 ; 0000003cH mov eax, -858993460 ; ccccccccH rep stosd mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1255 : int len; ; 1256 : ; 1257 : if (content == NULL) return; cmp DWORD PTR _content$[ebp], 0 jne SHORT $LN6@xmlSnprint jmp $LN1@xmlSnprint $LN6@xmlSnprint: ; 1258 : len = strlen(buf); mov eax, DWORD PTR _buf$[ebp] mov DWORD PTR tv310[ebp], eax mov ecx, DWORD PTR tv310[ebp] add ecx, 1 mov DWORD PTR tv313[ebp], ecx $LL41@xmlSnprint: mov edx, DWORD PTR tv310[ebp] mov al, BYTE PTR [edx] mov BYTE PTR tv316[ebp], al add DWORD PTR tv310[ebp], 1 cmp BYTE PTR tv316[ebp], 0 jne SHORT $LL41@xmlSnprint mov ecx, DWORD PTR tv310[ebp] sub ecx, DWORD PTR tv313[ebp] mov DWORD PTR tv67[ebp], ecx mov edx, DWORD PTR tv67[ebp] mov DWORD PTR _len$[ebp], edx ; 1259 : if (size - len < 50) { mov eax, DWORD PTR _size$[ebp] sub eax, DWORD PTR _len$[ebp] cmp eax, 50 ; 00000032H jge SHORT $LN7@xmlSnprint ; 1260 : if ((size - len > 4) && (buf[len - 1] != '.')) mov ecx, DWORD PTR _size$[ebp] sub ecx, DWORD PTR _len$[ebp] cmp ecx, 4 jle SHORT $LN8@xmlSnprint mov edx, DWORD PTR _buf$[ebp] add edx, DWORD PTR _len$[ebp] movsx eax, BYTE PTR [edx-1] cmp eax, 46 ; 0000002eH je SHORT $LN8@xmlSnprint ; 1261 : strcat(buf, " ..."); mov ecx, DWORD PTR _buf$[ebp] add ecx, -1 mov DWORD PTR tv326[ebp], ecx $LL42@xmlSnprint: mov edx, DWORD PTR tv326[ebp] mov al, BYTE PTR [edx+1] mov BYTE PTR tv329[ebp], al add DWORD PTR tv326[ebp], 1 cmp BYTE PTR tv329[ebp], 0 jne SHORT $LL42@xmlSnprint mov edi, DWORD PTR tv326[ebp] mov ecx, DWORD PTR ??_C@_04IBCFJNCN@?5?4?4?4@ mov DWORD PTR [edi], ecx mov dl, BYTE PTR ??_C@_04IBCFJNCN@?5?4?4?4@+4 mov BYTE PTR [edi+4], dl $LN8@xmlSnprint: ; 1262 : return; jmp $LN1@xmlSnprint $LN7@xmlSnprint: ; 1263 : } ; 1264 : if (englob) strcat(buf, "("); cmp DWORD PTR _englob$[ebp], 0 je SHORT $LN9@xmlSnprint mov eax, DWORD PTR _buf$[ebp] add eax, -1 mov DWORD PTR tv339[ebp], eax $LL43@xmlSnprint: mov ecx, DWORD PTR tv339[ebp] mov dl, BYTE PTR [ecx+1] mov BYTE PTR tv342[ebp], dl add DWORD PTR tv339[ebp], 1 cmp BYTE PTR tv342[ebp], 0 jne SHORT $LL43@xmlSnprint mov edi, DWORD PTR tv339[ebp] mov ax, WORD PTR ??_C@_01ODHLEDKK@?$CI@ mov WORD PTR [edi], ax $LN9@xmlSnprint: ; 1265 : switch (content->type) { mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx] mov DWORD PTR tv87[ebp], edx mov eax, DWORD PTR tv87[ebp] sub eax, 1 mov DWORD PTR tv87[ebp], eax cmp DWORD PTR tv87[ebp], 3 ja $LN2@xmlSnprint mov ecx, DWORD PTR tv87[ebp] jmp DWORD PTR $LN62@xmlSnprint[ecx*4] $LN10@xmlSnprint: ; 1266 : case XML_ELEMENT_CONTENT_PCDATA: ; 1267 : strcat(buf, "#PCDATA"); mov edx, DWORD PTR _buf$[ebp] add edx, -1 mov DWORD PTR tv354[ebp], edx $LL44@xmlSnprint: mov eax, DWORD PTR tv354[ebp] mov cl, BYTE PTR [eax+1] mov BYTE PTR tv357[ebp], cl add DWORD PTR tv354[ebp], 1 cmp BYTE PTR tv357[ebp], 0 jne SHORT $LL44@xmlSnprint mov edi, DWORD PTR tv354[ebp] mov edx, DWORD PTR ??_C@_07ELDBONKP@?$CDPCDATA@ mov DWORD PTR [edi], edx mov eax, DWORD PTR ??_C@_07ELDBONKP@?$CDPCDATA@+4 mov DWORD PTR [edi+4], eax ; 1268 : break; jmp $LN2@xmlSnprint $LN11@xmlSnprint: ; 1269 : case XML_ELEMENT_CONTENT_ELEMENT: { ; 1270 : int qnameLen = xmlStrlen(content->name); mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+8] push edx call _xmlStrlen add esp, 4 mov DWORD PTR _qnameLen$1[ebp], eax ; 1271 : ; 1272 : if (content->prefix != NULL) mov eax, DWORD PTR _content$[ebp] cmp DWORD PTR [eax+24], 0 je SHORT $LN12@xmlSnprint ; 1273 : qnameLen += xmlStrlen(content->prefix) + 1; mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+24] push edx call _xmlStrlen add esp, 4 mov ecx, DWORD PTR _qnameLen$1[ebp] lea edx, DWORD PTR [ecx+eax+1] mov DWORD PTR _qnameLen$1[ebp], edx $LN12@xmlSnprint: ; 1274 : if (size - len < qnameLen + 10) { mov eax, DWORD PTR _size$[ebp] sub eax, DWORD PTR _len$[ebp] mov ecx, DWORD PTR _qnameLen$1[ebp] add ecx, 10 ; 0000000aH cmp eax, ecx jge SHORT $LN13@xmlSnprint ; 1275 : strcat(buf, " ..."); mov edx, DWORD PTR _buf$[ebp] add edx, -1 mov DWORD PTR tv377[ebp], edx $LL45@xmlSnprint: mov eax, DWORD PTR tv377[ebp] mov cl, BYTE PTR [eax+1] mov BYTE PTR tv380[ebp], cl add DWORD PTR tv377[ebp], 1 cmp BYTE PTR tv380[ebp], 0 jne SHORT $LL45@xmlSnprint mov edi, DWORD PTR tv377[ebp] mov edx, DWORD PTR ??_C@_04IBCFJNCN@?5?4?4?4@ mov DWORD PTR [edi], edx mov al, BYTE PTR ??_C@_04IBCFJNCN@?5?4?4?4@+4 mov BYTE PTR [edi+4], al ; 1276 : return; jmp $LN1@xmlSnprint $LN13@xmlSnprint: ; 1277 : } ; 1278 : if (content->prefix != NULL) { mov ecx, DWORD PTR _content$[ebp] cmp DWORD PTR [ecx+24], 0 je $LN14@xmlSnprint ; 1279 : strcat(buf, (char *) content->prefix); mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+24] mov DWORD PTR tv391[ebp], eax mov ecx, DWORD PTR tv391[ebp] mov DWORD PTR tv393[ebp], ecx $LL46@xmlSnprint: mov edx, DWORD PTR tv391[ebp] mov al, BYTE PTR [edx] mov BYTE PTR tv396[ebp], al add DWORD PTR tv391[ebp], 1 cmp BYTE PTR tv396[ebp], 0 jne SHORT $LL46@xmlSnprint mov ecx, DWORD PTR tv391[ebp] sub ecx, DWORD PTR tv393[ebp] mov edx, DWORD PTR tv393[ebp] mov DWORD PTR tv401[ebp], edx mov DWORD PTR tv402[ebp], ecx mov eax, DWORD PTR _buf$[ebp] add eax, -1 mov DWORD PTR tv405[ebp], eax $LL47@xmlSnprint: mov ecx, DWORD PTR tv405[ebp] mov dl, BYTE PTR [ecx+1] mov BYTE PTR tv408[ebp], dl add DWORD PTR tv405[ebp], 1 cmp BYTE PTR tv408[ebp], 0 jne SHORT $LL47@xmlSnprint mov edi, DWORD PTR tv405[ebp] mov esi, DWORD PTR tv401[ebp] mov eax, DWORD PTR tv402[ebp] mov ecx, eax shr ecx, 2 rep movsd mov ecx, eax and ecx, 3 rep movsb ; 1280 : strcat(buf, ":"); mov ecx, DWORD PTR _buf$[ebp] add ecx, -1 mov DWORD PTR tv424[ebp], ecx $LL48@xmlSnprint: mov edx, DWORD PTR tv424[ebp] mov al, BYTE PTR [edx+1] mov BYTE PTR tv427[ebp], al add DWORD PTR tv424[ebp], 1 cmp BYTE PTR tv427[ebp], 0 jne SHORT $LL48@xmlSnprint mov edi, DWORD PTR tv424[ebp] mov cx, WORD PTR ??_C@_01JLIPDDHJ@?3@ mov WORD PTR [edi], cx $LN14@xmlSnprint: ; 1281 : } ; 1282 : if (content->name != NULL) mov edx, DWORD PTR _content$[ebp] cmp DWORD PTR [edx+8], 0 je SHORT $LN15@xmlSnprint ; 1283 : strcat(buf, (char *) content->name); mov eax, DWORD PTR _content$[ebp] mov ecx, DWORD PTR [eax+8] mov DWORD PTR tv436[ebp], ecx mov edx, DWORD PTR tv436[ebp] mov DWORD PTR tv438[ebp], edx $LL49@xmlSnprint: mov eax, DWORD PTR tv436[ebp] mov cl, BYTE PTR [eax] mov BYTE PTR tv441[ebp], cl add DWORD PTR tv436[ebp], 1 cmp BYTE PTR tv441[ebp], 0 jne SHORT $LL49@xmlSnprint mov edx, DWORD PTR tv436[ebp] sub edx, DWORD PTR tv438[ebp] mov eax, DWORD PTR tv438[ebp] mov DWORD PTR tv446[ebp], eax mov DWORD PTR tv447[ebp], edx mov ecx, DWORD PTR _buf$[ebp] add ecx, -1 mov DWORD PTR tv450[ebp], ecx $LL50@xmlSnprint: mov edx, DWORD PTR tv450[ebp] mov al, BYTE PTR [edx+1] mov BYTE PTR tv453[ebp], al add DWORD PTR tv450[ebp], 1 cmp BYTE PTR tv453[ebp], 0 jne SHORT $LL50@xmlSnprint mov edi, DWORD PTR tv450[ebp] mov esi, DWORD PTR tv446[ebp] mov edx, DWORD PTR tv447[ebp] mov ecx, edx shr ecx, 2 rep movsd mov ecx, edx and ecx, 3 rep movsb $LN15@xmlSnprint: ; 1284 : break; jmp $LN2@xmlSnprint $LN16@xmlSnprint: ; 1285 : } ; 1286 : case XML_ELEMENT_CONTENT_SEQ: ; 1287 : if ((content->c1->type == XML_ELEMENT_CONTENT_OR) || mov eax, DWORD PTR _content$[ebp] mov ecx, DWORD PTR [eax+12] cmp DWORD PTR [ecx], 4 je SHORT $LN19@xmlSnprint mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+12] cmp DWORD PTR [eax], 3 jne SHORT $LN17@xmlSnprint $LN19@xmlSnprint: ; 1288 : (content->c1->type == XML_ELEMENT_CONTENT_SEQ)) ; 1289 : xmlSnprintfElementContent(buf, size, content->c1, 1); push 1 mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _size$[ebp] push eax mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlSnprintfElementContent add esp, 16 ; 00000010H jmp SHORT $LN18@xmlSnprint $LN17@xmlSnprint: ; 1290 : else ; 1291 : xmlSnprintfElementContent(buf, size, content->c1, 0); push 0 mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+12] push eax mov ecx, DWORD PTR _size$[ebp] push ecx mov edx, DWORD PTR _buf$[ebp] push edx call _xmlSnprintfElementContent add esp, 16 ; 00000010H $LN18@xmlSnprint: ; 1292 : len = strlen(buf); mov eax, DWORD PTR _buf$[ebp] mov DWORD PTR tv478[ebp], eax mov ecx, DWORD PTR tv478[ebp] add ecx, 1 mov DWORD PTR tv481[ebp], ecx $LL51@xmlSnprint: mov edx, DWORD PTR tv478[ebp] mov al, BYTE PTR [edx] mov BYTE PTR tv484[ebp], al add DWORD PTR tv478[ebp], 1 cmp BYTE PTR tv484[ebp], 0 jne SHORT $LL51@xmlSnprint mov ecx, DWORD PTR tv478[ebp] sub ecx, DWORD PTR tv481[ebp] mov DWORD PTR tv177[ebp], ecx mov edx, DWORD PTR tv177[ebp] mov DWORD PTR _len$[ebp], edx ; 1293 : if (size - len < 50) { mov eax, DWORD PTR _size$[ebp] sub eax, DWORD PTR _len$[ebp] cmp eax, 50 ; 00000032H jge SHORT $LN20@xmlSnprint ; 1294 : if ((size - len > 4) && (buf[len - 1] != '.')) mov ecx, DWORD PTR _size$[ebp] sub ecx, DWORD PTR _len$[ebp] cmp ecx, 4 jle SHORT $LN21@xmlSnprint mov edx, DWORD PTR _buf$[ebp] add edx, DWORD PTR _len$[ebp] movsx eax, BYTE PTR [edx-1] cmp eax, 46 ; 0000002eH je SHORT $LN21@xmlSnprint ; 1295 : strcat(buf, " ..."); mov ecx, DWORD PTR _buf$[ebp] add ecx, -1 mov DWORD PTR tv494[ebp], ecx $LL52@xmlSnprint: mov edx, DWORD PTR tv494[ebp] mov al, BYTE PTR [edx+1] mov BYTE PTR tv497[ebp], al add DWORD PTR tv494[ebp], 1 cmp BYTE PTR tv497[ebp], 0 jne SHORT $LL52@xmlSnprint mov edi, DWORD PTR tv494[ebp] mov ecx, DWORD PTR ??_C@_04IBCFJNCN@?5?4?4?4@ mov DWORD PTR [edi], ecx mov dl, BYTE PTR ??_C@_04IBCFJNCN@?5?4?4?4@+4 mov BYTE PTR [edi+4], dl $LN21@xmlSnprint: ; 1296 : return; jmp $LN1@xmlSnprint $LN20@xmlSnprint: ; 1297 : } ; 1298 : strcat(buf, " , "); mov eax, DWORD PTR _buf$[ebp] add eax, -1 mov DWORD PTR tv507[ebp], eax $LL53@xmlSnprint: mov ecx, DWORD PTR tv507[ebp] mov dl, BYTE PTR [ecx+1] mov BYTE PTR tv510[ebp], dl add DWORD PTR tv507[ebp], 1 cmp BYTE PTR tv510[ebp], 0 jne SHORT $LL53@xmlSnprint mov edi, DWORD PTR tv507[ebp] mov eax, DWORD PTR ??_C@_03NKFKBEPL@?5?0?5@ mov DWORD PTR [edi], eax ; 1299 : if (((content->c2->type == XML_ELEMENT_CONTENT_OR) || ; 1300 : (content->c2->ocur != XML_ELEMENT_CONTENT_ONCE)) && mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+16] cmp DWORD PTR [edx], 4 je SHORT $LN24@xmlSnprint mov eax, DWORD PTR _content$[ebp] mov ecx, DWORD PTR [eax+16] cmp DWORD PTR [ecx+4], 1 je SHORT $LN22@xmlSnprint $LN24@xmlSnprint: mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+16] cmp DWORD PTR [eax], 2 je SHORT $LN22@xmlSnprint ; 1301 : (content->c2->type != XML_ELEMENT_CONTENT_ELEMENT)) ; 1302 : xmlSnprintfElementContent(buf, size, content->c2, 1); push 1 mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+16] push edx mov eax, DWORD PTR _size$[ebp] push eax mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlSnprintfElementContent add esp, 16 ; 00000010H jmp SHORT $LN23@xmlSnprint $LN22@xmlSnprint: ; 1303 : else ; 1304 : xmlSnprintfElementContent(buf, size, content->c2, 0); push 0 mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+16] push eax mov ecx, DWORD PTR _size$[ebp] push ecx mov edx, DWORD PTR _buf$[ebp] push edx call _xmlSnprintfElementContent add esp, 16 ; 00000010H $LN23@xmlSnprint: ; 1305 : break; jmp $LN2@xmlSnprint $LN25@xmlSnprint: ; 1306 : case XML_ELEMENT_CONTENT_OR: ; 1307 : if ((content->c1->type == XML_ELEMENT_CONTENT_OR) || mov eax, DWORD PTR _content$[ebp] mov ecx, DWORD PTR [eax+12] cmp DWORD PTR [ecx], 4 je SHORT $LN28@xmlSnprint mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+12] cmp DWORD PTR [eax], 3 jne SHORT $LN26@xmlSnprint $LN28@xmlSnprint: ; 1308 : (content->c1->type == XML_ELEMENT_CONTENT_SEQ)) ; 1309 : xmlSnprintfElementContent(buf, size, content->c1, 1); push 1 mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _size$[ebp] push eax mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlSnprintfElementContent add esp, 16 ; 00000010H jmp SHORT $LN27@xmlSnprint $LN26@xmlSnprint: ; 1310 : else ; 1311 : xmlSnprintfElementContent(buf, size, content->c1, 0); push 0 mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+12] push eax mov ecx, DWORD PTR _size$[ebp] push ecx mov edx, DWORD PTR _buf$[ebp] push edx call _xmlSnprintfElementContent add esp, 16 ; 00000010H $LN27@xmlSnprint: ; 1312 : len = strlen(buf); mov eax, DWORD PTR _buf$[ebp] mov DWORD PTR tv538[ebp], eax mov ecx, DWORD PTR tv538[ebp] add ecx, 1 mov DWORD PTR tv541[ebp], ecx $LL54@xmlSnprint: mov edx, DWORD PTR tv538[ebp] mov al, BYTE PTR [edx] mov BYTE PTR tv544[ebp], al add DWORD PTR tv538[ebp], 1 cmp BYTE PTR tv544[ebp], 0 jne SHORT $LL54@xmlSnprint mov ecx, DWORD PTR tv538[ebp] sub ecx, DWORD PTR tv541[ebp] mov DWORD PTR tv232[ebp], ecx mov edx, DWORD PTR tv232[ebp] mov DWORD PTR _len$[ebp], edx ; 1313 : if (size - len < 50) { mov eax, DWORD PTR _size$[ebp] sub eax, DWORD PTR _len$[ebp] cmp eax, 50 ; 00000032H jge SHORT $LN29@xmlSnprint ; 1314 : if ((size - len > 4) && (buf[len - 1] != '.')) mov ecx, DWORD PTR _size$[ebp] sub ecx, DWORD PTR _len$[ebp] cmp ecx, 4 jle SHORT $LN30@xmlSnprint mov edx, DWORD PTR _buf$[ebp] add edx, DWORD PTR _len$[ebp] movsx eax, BYTE PTR [edx-1] cmp eax, 46 ; 0000002eH je SHORT $LN30@xmlSnprint ; 1315 : strcat(buf, " ..."); mov ecx, DWORD PTR _buf$[ebp] add ecx, -1 mov DWORD PTR tv554[ebp], ecx $LL55@xmlSnprint: mov edx, DWORD PTR tv554[ebp] mov al, BYTE PTR [edx+1] mov BYTE PTR tv557[ebp], al add DWORD PTR tv554[ebp], 1 cmp BYTE PTR tv557[ebp], 0 jne SHORT $LL55@xmlSnprint mov edi, DWORD PTR tv554[ebp] mov ecx, DWORD PTR ??_C@_04IBCFJNCN@?5?4?4?4@ mov DWORD PTR [edi], ecx mov dl, BYTE PTR ??_C@_04IBCFJNCN@?5?4?4?4@+4 mov BYTE PTR [edi+4], dl $LN30@xmlSnprint: ; 1316 : return; jmp $LN1@xmlSnprint $LN29@xmlSnprint: ; 1317 : } ; 1318 : strcat(buf, " | "); mov eax, DWORD PTR _buf$[ebp] add eax, -1 mov DWORD PTR tv567[ebp], eax $LL56@xmlSnprint: mov ecx, DWORD PTR tv567[ebp] mov dl, BYTE PTR [ecx+1] mov BYTE PTR tv570[ebp], dl add DWORD PTR tv567[ebp], 1 cmp BYTE PTR tv570[ebp], 0 jne SHORT $LL56@xmlSnprint mov edi, DWORD PTR tv567[ebp] mov eax, DWORD PTR ??_C@_03LGOGDKEL@?5?$HM?5@ mov DWORD PTR [edi], eax ; 1319 : if (((content->c2->type == XML_ELEMENT_CONTENT_SEQ) || ; 1320 : (content->c2->ocur != XML_ELEMENT_CONTENT_ONCE)) && mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+16] cmp DWORD PTR [edx], 3 je SHORT $LN33@xmlSnprint mov eax, DWORD PTR _content$[ebp] mov ecx, DWORD PTR [eax+16] cmp DWORD PTR [ecx+4], 1 je SHORT $LN31@xmlSnprint $LN33@xmlSnprint: mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+16] cmp DWORD PTR [eax], 2 je SHORT $LN31@xmlSnprint ; 1321 : (content->c2->type != XML_ELEMENT_CONTENT_ELEMENT)) ; 1322 : xmlSnprintfElementContent(buf, size, content->c2, 1); push 1 mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+16] push edx mov eax, DWORD PTR _size$[ebp] push eax mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlSnprintfElementContent add esp, 16 ; 00000010H jmp SHORT $LN2@xmlSnprint $LN31@xmlSnprint: ; 1323 : else ; 1324 : xmlSnprintfElementContent(buf, size, content->c2, 0); push 0 mov edx, DWORD PTR _content$[ebp] mov eax, DWORD PTR [edx+16] push eax mov ecx, DWORD PTR _size$[ebp] push ecx mov edx, DWORD PTR _buf$[ebp] push edx call _xmlSnprintfElementContent add esp, 16 ; 00000010H $LN2@xmlSnprint: ; 1325 : break; ; 1326 : } ; 1327 : if (size - strlen(buf) <= 2) return; mov eax, DWORD PTR _buf$[ebp] mov DWORD PTR tv588[ebp], eax mov ecx, DWORD PTR tv588[ebp] add ecx, 1 mov DWORD PTR tv591[ebp], ecx $LL57@xmlSnprint: mov edx, DWORD PTR tv588[ebp] mov al, BYTE PTR [edx] mov BYTE PTR tv594[ebp], al add DWORD PTR tv588[ebp], 1 cmp BYTE PTR tv594[ebp], 0 jne SHORT $LL57@xmlSnprint mov ecx, DWORD PTR tv588[ebp] sub ecx, DWORD PTR tv591[ebp] mov DWORD PTR tv273[ebp], ecx mov edx, DWORD PTR _size$[ebp] sub edx, DWORD PTR tv273[ebp] cmp edx, 2 ja SHORT $LN34@xmlSnprint jmp $LN1@xmlSnprint $LN34@xmlSnprint: ; 1328 : if (englob) cmp DWORD PTR _englob$[ebp], 0 je SHORT $LN35@xmlSnprint ; 1329 : strcat(buf, ")"); mov eax, DWORD PTR _buf$[ebp] add eax, -1 mov DWORD PTR tv601[ebp], eax $LL58@xmlSnprint: mov ecx, DWORD PTR tv601[ebp] mov dl, BYTE PTR [ecx+1] mov BYTE PTR tv604[ebp], dl add DWORD PTR tv601[ebp], 1 cmp BYTE PTR tv604[ebp], 0 jne SHORT $LL58@xmlSnprint mov edi, DWORD PTR tv601[ebp] mov ax, WORD PTR ??_C@_01PKGAHCOL@?$CJ@ mov WORD PTR [edi], ax $LN35@xmlSnprint: ; 1330 : switch (content->ocur) { mov ecx, DWORD PTR _content$[ebp] mov edx, DWORD PTR [ecx+4] mov DWORD PTR tv282[ebp], edx cmp DWORD PTR tv282[ebp], 2 je SHORT $LN37@xmlSnprint cmp DWORD PTR tv282[ebp], 3 je SHORT $LN38@xmlSnprint cmp DWORD PTR tv282[ebp], 4 je $LN39@xmlSnprint jmp $LN1@xmlSnprint ; 1331 : case XML_ELEMENT_CONTENT_ONCE: ; 1332 : break; jmp $LN1@xmlSnprint $LN37@xmlSnprint: ; 1333 : case XML_ELEMENT_CONTENT_OPT: ; 1334 : strcat(buf, "?"); mov eax, DWORD PTR _buf$[ebp] add eax, -1 mov DWORD PTR tv614[ebp], eax $LL59@xmlSnprint: mov ecx, DWORD PTR tv614[ebp] mov dl, BYTE PTR [ecx+1] mov BYTE PTR tv617[ebp], dl add DWORD PTR tv614[ebp], 1 cmp BYTE PTR tv617[ebp], 0 jne SHORT $LL59@xmlSnprint mov edi, DWORD PTR tv614[ebp] mov ax, WORD PTR ??_C@_01OGPIMHDM@?$DP@ mov WORD PTR [edi], ax ; 1335 : break; jmp SHORT $LN1@xmlSnprint $LN38@xmlSnprint: ; 1336 : case XML_ELEMENT_CONTENT_MULT: ; 1337 : strcat(buf, "*"); mov ecx, DWORD PTR _buf$[ebp] add ecx, -1 mov DWORD PTR tv625[ebp], ecx $LL60@xmlSnprint: mov edx, DWORD PTR tv625[ebp] mov al, BYTE PTR [edx+1] mov BYTE PTR tv628[ebp], al add DWORD PTR tv625[ebp], 1 cmp BYTE PTR tv628[ebp], 0 jne SHORT $LL60@xmlSnprint mov edi, DWORD PTR tv625[ebp] mov cx, WORD PTR ??_C@_01NBENCBCI@?$CK@ mov WORD PTR [edi], cx ; 1338 : break; jmp SHORT $LN1@xmlSnprint $LN39@xmlSnprint: ; 1339 : case XML_ELEMENT_CONTENT_PLUS: ; 1340 : strcat(buf, "+"); mov edx, DWORD PTR _buf$[ebp] add edx, -1 mov DWORD PTR tv636[ebp], edx $LL61@xmlSnprint: mov eax, DWORD PTR tv636[ebp] mov cl, BYTE PTR [eax+1] mov BYTE PTR tv639[ebp], cl add DWORD PTR tv636[ebp], 1 cmp BYTE PTR tv639[ebp], 0 jne SHORT $LL61@xmlSnprint mov edi, DWORD PTR tv636[ebp] mov dx, WORD PTR ??_C@_01MIFGBAGJ@?$CL@ mov WORD PTR [edi], dx $LN1@xmlSnprint: ; 1341 : break; ; 1342 : } ; 1343 : } pop edi pop esi add esp, 240 ; 000000f0H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 $LN62@xmlSnprint: DD $LN10@xmlSnprint DD $LN11@xmlSnprint DD $LN16@xmlSnprint DD $LN25@xmlSnprint _xmlSnprintfElementContent ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeDocElementContent _TEXT SEGMENT tv69 = -12 ; size = 4 _dict$ = -8 ; size = 4 _next$ = -4 ; size = 4 _doc$ = 8 ; size = 4 _cur$ = 12 ; size = 4 _xmlFreeDocElementContent PROC ; COMDAT ; 1101 : xmlFreeDocElementContent(xmlDocPtr doc, xmlElementContentPtr cur) { push ebp mov ebp, esp sub esp, 12 ; 0000000cH push esi mov DWORD PTR [ebp-12], -858993460 ; ccccccccH mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1102 : xmlElementContentPtr next; ; 1103 : xmlDictPtr dict = NULL; mov DWORD PTR _dict$[ebp], 0 ; 1104 : ; 1105 : if (doc != NULL) cmp DWORD PTR _doc$[ebp], 0 je SHORT $LN2@xmlFreeDoc ; 1106 : dict = doc->dict; mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+80] mov DWORD PTR _dict$[ebp], ecx $LN2@xmlFreeDoc: ; 1107 : ; 1108 : while (cur != NULL) { cmp DWORD PTR _cur$[ebp], 0 je $LN1@xmlFreeDoc ; 1109 : next = cur->c2; mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+16] mov DWORD PTR _next$[ebp], eax ; 1110 : switch (cur->type) { mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx] mov DWORD PTR tv69[ebp], edx cmp DWORD PTR tv69[ebp], 0 jle SHORT $LN8@xmlFreeDoc cmp DWORD PTR tv69[ebp], 4 jle SHORT $LN7@xmlFreeDoc jmp SHORT $LN8@xmlFreeDoc $LN7@xmlFreeDoc: ; 1111 : case XML_ELEMENT_CONTENT_PCDATA: ; 1112 : case XML_ELEMENT_CONTENT_ELEMENT: ; 1113 : case XML_ELEMENT_CONTENT_SEQ: ; 1114 : case XML_ELEMENT_CONTENT_OR: ; 1115 : break; jmp SHORT $LN4@xmlFreeDoc $LN8@xmlFreeDoc: ; 1116 : default: ; 1117 : xmlErrValid(NULL, XML_ERR_INTERNAL_ERROR, push 0 push OFFSET ??_C@_0DC@GLPLFDD@Internal?3?5ELEMENT?5content?5corru@ push 1 push 0 call _xmlErrValid add esp, 16 ; 00000010H ; 1118 : "Internal: ELEMENT content corrupted invalid type\n", ; 1119 : NULL); ; 1120 : return; jmp $LN1@xmlFreeDoc $LN4@xmlFreeDoc: ; 1121 : } ; 1122 : if (cur->c1 != NULL) xmlFreeDocElementContent(doc, cur->c1); mov eax, DWORD PTR _cur$[ebp] cmp DWORD PTR [eax+12], 0 je SHORT $LN9@xmlFreeDoc mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+12] push edx mov eax, DWORD PTR _doc$[ebp] push eax call _xmlFreeDocElementContent add esp, 8 $LN9@xmlFreeDoc: ; 1123 : if (dict) { cmp DWORD PTR _dict$[ebp], 0 je SHORT $LN10@xmlFreeDoc ; 1124 : if ((cur->name != NULL) && (!xmlDictOwns(dict, cur->name))) mov ecx, DWORD PTR _cur$[ebp] cmp DWORD PTR [ecx+8], 0 je SHORT $LN12@xmlFreeDoc mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _dict$[ebp] push ecx call _xmlDictOwns add esp, 8 test eax, eax jne SHORT $LN12@xmlFreeDoc ; 1125 : xmlFree((xmlChar *) cur->name); mov esi, esp mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+8] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN12@xmlFreeDoc: ; 1126 : if ((cur->prefix != NULL) && (!xmlDictOwns(dict, cur->prefix))) mov ecx, DWORD PTR _cur$[ebp] cmp DWORD PTR [ecx+24], 0 je SHORT $LN13@xmlFreeDoc mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+24] push eax mov ecx, DWORD PTR _dict$[ebp] push ecx call _xmlDictOwns add esp, 8 test eax, eax jne SHORT $LN13@xmlFreeDoc ; 1127 : xmlFree((xmlChar *) cur->prefix); mov esi, esp mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+24] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN13@xmlFreeDoc: ; 1128 : } else { jmp SHORT $LN11@xmlFreeDoc $LN10@xmlFreeDoc: ; 1129 : if (cur->name != NULL) xmlFree((xmlChar *) cur->name); mov ecx, DWORD PTR _cur$[ebp] cmp DWORD PTR [ecx+8], 0 je SHORT $LN14@xmlFreeDoc mov esi, esp mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+8] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN14@xmlFreeDoc: ; 1130 : if (cur->prefix != NULL) xmlFree((xmlChar *) cur->prefix); mov ecx, DWORD PTR _cur$[ebp] cmp DWORD PTR [ecx+24], 0 je SHORT $LN11@xmlFreeDoc mov esi, esp mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+24] push eax call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp $LN11@xmlFreeDoc: ; 1131 : } ; 1132 : xmlFree(cur); mov esi, esp mov ecx, DWORD PTR _cur$[ebp] push ecx call DWORD PTR _xmlFree add esp, 4 cmp esi, esp call __RTC_CheckEsp ; 1133 : cur = next; mov edx, DWORD PTR _next$[ebp] mov DWORD PTR _cur$[ebp], edx ; 1134 : } jmp $LN2@xmlFreeDoc $LN1@xmlFreeDoc: ; 1135 : } pop esi add esp, 12 ; 0000000cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlFreeDocElementContent ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlCopyDocElementContent _TEXT SEGMENT _dict$ = -16 ; size = 4 _tmp$ = -12 ; size = 4 _prev$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _doc$ = 8 ; size = 4 _cur$ = 12 ; size = 4 _xmlCopyDocElementContent PROC ; COMDAT ; 1008 : xmlCopyDocElementContent(xmlDocPtr doc, xmlElementContentPtr cur) { push ebp mov ebp, esp sub esp, 16 ; 00000010H push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1009 : xmlElementContentPtr ret = NULL, prev = NULL, tmp; mov DWORD PTR _ret$[ebp], 0 mov DWORD PTR _prev$[ebp], 0 ; 1010 : xmlDictPtr dict = NULL; mov DWORD PTR _dict$[ebp], 0 ; 1011 : ; 1012 : if (cur == NULL) return(NULL); cmp DWORD PTR _cur$[ebp], 0 jne SHORT $LN4@xmlCopyDoc xor eax, eax jmp $LN1@xmlCopyDoc $LN4@xmlCopyDoc: ; 1013 : ; 1014 : if (doc != NULL) cmp DWORD PTR _doc$[ebp], 0 je SHORT $LN5@xmlCopyDoc ; 1015 : dict = doc->dict; mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+80] mov DWORD PTR _dict$[ebp], ecx $LN5@xmlCopyDoc: ; 1016 : ; 1017 : ret = (xmlElementContentPtr) xmlMalloc(sizeof(xmlElementContent)); mov esi, esp push 28 ; 0000001cH call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _ret$[ebp], eax ; 1018 : if (ret == NULL) { cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN6@xmlCopyDoc ; 1019 : xmlVErrMemory(NULL, "malloc failed"); push OFFSET ??_C@_0O@IMHFIAOC@malloc?5failed@ push 0 call _xmlVErrMemory add esp, 8 ; 1020 : return(NULL); xor eax, eax jmp $LN1@xmlCopyDoc $LN6@xmlCopyDoc: ; 1021 : } ; 1022 : memset(ret, 0, sizeof(xmlElementContent)); xor edx, edx mov eax, DWORD PTR _ret$[ebp] mov DWORD PTR [eax], edx mov DWORD PTR [eax+4], edx mov DWORD PTR [eax+8], edx mov DWORD PTR [eax+12], edx mov DWORD PTR [eax+16], edx mov DWORD PTR [eax+20], edx mov DWORD PTR [eax+24], edx ; 1023 : ret->type = cur->type; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx] mov DWORD PTR [ecx], eax ; 1024 : ret->ocur = cur->ocur; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+4] mov DWORD PTR [ecx+4], eax ; 1025 : if (cur->name != NULL) { mov ecx, DWORD PTR _cur$[ebp] cmp DWORD PTR [ecx+8], 0 je SHORT $LN7@xmlCopyDoc ; 1026 : if (dict) cmp DWORD PTR _dict$[ebp], 0 je SHORT $LN8@xmlCopyDoc ; 1027 : ret->name = xmlDictLookup(dict, cur->name, -1); push -1 mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _dict$[ebp] push ecx call _xmlDictLookup add esp, 12 ; 0000000cH mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+8], eax jmp SHORT $LN7@xmlCopyDoc $LN8@xmlCopyDoc: ; 1028 : else ; 1029 : ret->name = xmlStrdup(cur->name); mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+8] push ecx call _xmlStrdup add esp, 4 mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+8], eax $LN7@xmlCopyDoc: ; 1030 : } ; 1031 : ; 1032 : if (cur->prefix != NULL) { mov eax, DWORD PTR _cur$[ebp] cmp DWORD PTR [eax+24], 0 je SHORT $LN10@xmlCopyDoc ; 1033 : if (dict) cmp DWORD PTR _dict$[ebp], 0 je SHORT $LN11@xmlCopyDoc ; 1034 : ret->prefix = xmlDictLookup(dict, cur->prefix, -1); push -1 mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+24] push edx mov eax, DWORD PTR _dict$[ebp] push eax call _xmlDictLookup add esp, 12 ; 0000000cH mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+24], eax jmp SHORT $LN10@xmlCopyDoc $LN11@xmlCopyDoc: ; 1035 : else ; 1036 : ret->prefix = xmlStrdup(cur->prefix); mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+24] push eax call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+24], eax $LN10@xmlCopyDoc: ; 1037 : } ; 1038 : if (cur->c1 != NULL) mov edx, DWORD PTR _cur$[ebp] cmp DWORD PTR [edx+12], 0 je SHORT $LN13@xmlCopyDoc ; 1039 : ret->c1 = xmlCopyDocElementContent(doc, cur->c1); mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+12] push ecx mov edx, DWORD PTR _doc$[ebp] push edx call _xmlCopyDocElementContent add esp, 8 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+12], eax $LN13@xmlCopyDoc: ; 1040 : if (ret->c1 != NULL) mov edx, DWORD PTR _ret$[ebp] cmp DWORD PTR [edx+12], 0 je SHORT $LN14@xmlCopyDoc ; 1041 : ret->c1->parent = ret; mov eax, DWORD PTR _ret$[ebp] mov ecx, DWORD PTR [eax+12] mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+20], edx $LN14@xmlCopyDoc: ; 1042 : if (cur->c2 != NULL) { mov eax, DWORD PTR _cur$[ebp] cmp DWORD PTR [eax+16], 0 je $LN15@xmlCopyDoc ; 1043 : prev = ret; mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR _prev$[ebp], ecx ; 1044 : cur = cur->c2; mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+16] mov DWORD PTR _cur$[ebp], eax $LN2@xmlCopyDoc: ; 1045 : while (cur != NULL) { cmp DWORD PTR _cur$[ebp], 0 je $LN15@xmlCopyDoc ; 1046 : tmp = (xmlElementContentPtr) xmlMalloc(sizeof(xmlElementContent)); mov esi, esp push 28 ; 0000001cH call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _tmp$[ebp], eax ; 1047 : if (tmp == NULL) { cmp DWORD PTR _tmp$[ebp], 0 jne SHORT $LN16@xmlCopyDoc ; 1048 : xmlVErrMemory(NULL, "malloc failed"); push OFFSET ??_C@_0O@IMHFIAOC@malloc?5failed@ push 0 call _xmlVErrMemory add esp, 8 ; 1049 : return(ret); mov eax, DWORD PTR _ret$[ebp] jmp $LN1@xmlCopyDoc $LN16@xmlCopyDoc: ; 1050 : } ; 1051 : memset(tmp, 0, sizeof(xmlElementContent)); xor ecx, ecx mov edx, DWORD PTR _tmp$[ebp] mov DWORD PTR [edx], ecx mov DWORD PTR [edx+4], ecx mov DWORD PTR [edx+8], ecx mov DWORD PTR [edx+12], ecx mov DWORD PTR [edx+16], ecx mov DWORD PTR [edx+20], ecx mov DWORD PTR [edx+24], ecx ; 1052 : tmp->type = cur->type; mov eax, DWORD PTR _tmp$[ebp] mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx] mov DWORD PTR [eax], edx ; 1053 : tmp->ocur = cur->ocur; mov eax, DWORD PTR _tmp$[ebp] mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+4] mov DWORD PTR [eax+4], edx ; 1054 : prev->c2 = tmp; mov eax, DWORD PTR _prev$[ebp] mov ecx, DWORD PTR _tmp$[ebp] mov DWORD PTR [eax+16], ecx ; 1055 : if (cur->name != NULL) { mov edx, DWORD PTR _cur$[ebp] cmp DWORD PTR [edx+8], 0 je SHORT $LN17@xmlCopyDoc ; 1056 : if (dict) cmp DWORD PTR _dict$[ebp], 0 je SHORT $LN18@xmlCopyDoc ; 1057 : tmp->name = xmlDictLookup(dict, cur->name, -1); push -1 mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _dict$[ebp] push edx call _xmlDictLookup add esp, 12 ; 0000000cH mov ecx, DWORD PTR _tmp$[ebp] mov DWORD PTR [ecx+8], eax jmp SHORT $LN17@xmlCopyDoc $LN18@xmlCopyDoc: ; 1058 : else ; 1059 : tmp->name = xmlStrdup(cur->name); mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+8] push eax call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _tmp$[ebp] mov DWORD PTR [ecx+8], eax $LN17@xmlCopyDoc: ; 1060 : } ; 1061 : ; 1062 : if (cur->prefix != NULL) { mov edx, DWORD PTR _cur$[ebp] cmp DWORD PTR [edx+24], 0 je SHORT $LN20@xmlCopyDoc ; 1063 : if (dict) cmp DWORD PTR _dict$[ebp], 0 je SHORT $LN21@xmlCopyDoc ; 1064 : tmp->prefix = xmlDictLookup(dict, cur->prefix, -1); push -1 mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+24] push ecx mov edx, DWORD PTR _dict$[ebp] push edx call _xmlDictLookup add esp, 12 ; 0000000cH mov ecx, DWORD PTR _tmp$[ebp] mov DWORD PTR [ecx+24], eax jmp SHORT $LN20@xmlCopyDoc $LN21@xmlCopyDoc: ; 1065 : else ; 1066 : tmp->prefix = xmlStrdup(cur->prefix); mov edx, DWORD PTR _cur$[ebp] mov eax, DWORD PTR [edx+24] push eax call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _tmp$[ebp] mov DWORD PTR [ecx+24], eax $LN20@xmlCopyDoc: ; 1067 : } ; 1068 : if (cur->c1 != NULL) mov edx, DWORD PTR _cur$[ebp] cmp DWORD PTR [edx+12], 0 je SHORT $LN23@xmlCopyDoc ; 1069 : tmp->c1 = xmlCopyDocElementContent(doc,cur->c1); mov eax, DWORD PTR _cur$[ebp] mov ecx, DWORD PTR [eax+12] push ecx mov edx, DWORD PTR _doc$[ebp] push edx call _xmlCopyDocElementContent add esp, 8 mov ecx, DWORD PTR _tmp$[ebp] mov DWORD PTR [ecx+12], eax $LN23@xmlCopyDoc: ; 1070 : if (tmp->c1 != NULL) mov edx, DWORD PTR _tmp$[ebp] cmp DWORD PTR [edx+12], 0 je SHORT $LN24@xmlCopyDoc ; 1071 : tmp->c1->parent = ret; mov eax, DWORD PTR _tmp$[ebp] mov ecx, DWORD PTR [eax+12] mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+20], edx $LN24@xmlCopyDoc: ; 1072 : prev = tmp; mov eax, DWORD PTR _tmp$[ebp] mov DWORD PTR _prev$[ebp], eax ; 1073 : cur = cur->c2; mov ecx, DWORD PTR _cur$[ebp] mov edx, DWORD PTR [ecx+16] mov DWORD PTR _cur$[ebp], edx ; 1074 : } jmp $LN2@xmlCopyDoc $LN15@xmlCopyDoc: ; 1075 : } ; 1076 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlCopyDoc: ; 1077 : } pop esi add esp, 16 ; 00000010H cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlCopyDocElementContent ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlNewDocElementContent _TEXT SEGMENT tv66 = -28 ; size = 4 _tmp$1 = -24 ; size = 4 _l$2 = -16 ; size = 4 _dict$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _doc$ = 8 ; size = 4 _name$ = 12 ; size = 4 _type$ = 16 ; size = 4 _xmlNewDocElementContent PROC ; COMDAT ; 922 : xmlElementContentType type) { push ebp mov ebp, esp sub esp, 28 ; 0000001cH push esi mov eax, -858993460 ; ccccccccH mov DWORD PTR [ebp-28], eax mov DWORD PTR [ebp-24], eax mov DWORD PTR [ebp-20], eax mov DWORD PTR [ebp-16], eax mov DWORD PTR [ebp-12], eax mov DWORD PTR [ebp-8], eax mov DWORD PTR [ebp-4], eax mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 923 : xmlElementContentPtr ret; ; 924 : xmlDictPtr dict = NULL; mov DWORD PTR _dict$[ebp], 0 ; 925 : ; 926 : if (doc != NULL) cmp DWORD PTR _doc$[ebp], 0 je SHORT $LN4@xmlNewDocE ; 927 : dict = doc->dict; mov eax, DWORD PTR _doc$[ebp] mov ecx, DWORD PTR [eax+80] mov DWORD PTR _dict$[ebp], ecx $LN4@xmlNewDocE: ; 928 : ; 929 : switch(type) { mov edx, DWORD PTR _type$[ebp] mov DWORD PTR tv66[ebp], edx mov eax, DWORD PTR tv66[ebp] sub eax, 1 mov DWORD PTR tv66[ebp], eax cmp DWORD PTR tv66[ebp], 3 ja SHORT $LN9@xmlNewDocE mov ecx, DWORD PTR tv66[ebp] jmp DWORD PTR $LN22@xmlNewDocE[ecx*4] $LN5@xmlNewDocE: ; 930 : case XML_ELEMENT_CONTENT_ELEMENT: ; 931 : if (name == NULL) { cmp DWORD PTR _name$[ebp], 0 jne SHORT $LN6@xmlNewDocE ; 932 : xmlErrValid(NULL, XML_ERR_INTERNAL_ERROR, push 0 push OFFSET ??_C@_0CH@ODCBAOPP@xmlNewElementContent?5?3?5name?5?$DN?$DN?5@ push 1 push 0 call _xmlErrValid add esp, 16 ; 00000010H $LN6@xmlNewDocE: ; 933 : "xmlNewElementContent : name == NULL !\n", ; 934 : NULL); ; 935 : } ; 936 : break; jmp SHORT $LN2@xmlNewDocE $LN7@xmlNewDocE: ; 937 : case XML_ELEMENT_CONTENT_PCDATA: ; 938 : case XML_ELEMENT_CONTENT_SEQ: ; 939 : case XML_ELEMENT_CONTENT_OR: ; 940 : if (name != NULL) { cmp DWORD PTR _name$[ebp], 0 je SHORT $LN8@xmlNewDocE ; 941 : xmlErrValid(NULL, XML_ERR_INTERNAL_ERROR, push 0 push OFFSET ??_C@_0CH@EHMNFIPD@xmlNewElementContent?5?3?5name?5?$CB?$DN?5@ push 1 push 0 call _xmlErrValid add esp, 16 ; 00000010H $LN8@xmlNewDocE: ; 942 : "xmlNewElementContent : name != NULL !\n", ; 943 : NULL); ; 944 : } ; 945 : break; jmp SHORT $LN2@xmlNewDocE $LN9@xmlNewDocE: ; 946 : default: ; 947 : xmlErrValid(NULL, XML_ERR_INTERNAL_ERROR, push 0 push OFFSET ??_C@_0DC@GLPLFDD@Internal?3?5ELEMENT?5content?5corru@ push 1 push 0 call _xmlErrValid add esp, 16 ; 00000010H ; 948 : "Internal: ELEMENT content corrupted invalid type\n", ; 949 : NULL); ; 950 : return(NULL); xor eax, eax jmp $LN1@xmlNewDocE $LN2@xmlNewDocE: ; 951 : } ; 952 : ret = (xmlElementContentPtr) xmlMalloc(sizeof(xmlElementContent)); mov esi, esp push 28 ; 0000001cH call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _ret$[ebp], eax ; 953 : if (ret == NULL) { cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN10@xmlNewDocE ; 954 : xmlVErrMemory(NULL, "malloc failed"); push OFFSET ??_C@_0O@IMHFIAOC@malloc?5failed@ push 0 call _xmlVErrMemory add esp, 8 ; 955 : return(NULL); xor eax, eax jmp $LN1@xmlNewDocE $LN10@xmlNewDocE: ; 956 : } ; 957 : memset(ret, 0, sizeof(xmlElementContent)); xor edx, edx mov eax, DWORD PTR _ret$[ebp] mov DWORD PTR [eax], edx mov DWORD PTR [eax+4], edx mov DWORD PTR [eax+8], edx mov DWORD PTR [eax+12], edx mov DWORD PTR [eax+16], edx mov DWORD PTR [eax+20], edx mov DWORD PTR [eax+24], edx ; 958 : ret->type = type; mov ecx, DWORD PTR _ret$[ebp] mov edx, DWORD PTR _type$[ebp] mov DWORD PTR [ecx], edx ; 959 : ret->ocur = XML_ELEMENT_CONTENT_ONCE; mov eax, DWORD PTR _ret$[ebp] mov DWORD PTR [eax+4], 1 ; 960 : if (name != NULL) { cmp DWORD PTR _name$[ebp], 0 je $LN11@xmlNewDocE ; 961 : int l; ; 962 : const xmlChar *tmp; ; 963 : ; 964 : tmp = xmlSplitQName3(name, &l); lea ecx, DWORD PTR _l$2[ebp] push ecx mov edx, DWORD PTR _name$[ebp] push edx call _xmlSplitQName3 add esp, 8 mov DWORD PTR _tmp$1[ebp], eax ; 965 : if (tmp == NULL) { cmp DWORD PTR _tmp$1[ebp], 0 jne SHORT $LN12@xmlNewDocE ; 966 : if (dict == NULL) cmp DWORD PTR _dict$[ebp], 0 jne SHORT $LN14@xmlNewDocE ; 967 : ret->name = xmlStrdup(name); mov eax, DWORD PTR _name$[ebp] push eax call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+8], eax jmp SHORT $LN15@xmlNewDocE $LN14@xmlNewDocE: ; 968 : else ; 969 : ret->name = xmlDictLookup(dict, name, -1); push -1 mov edx, DWORD PTR _name$[ebp] push edx mov eax, DWORD PTR _dict$[ebp] push eax call _xmlDictLookup add esp, 12 ; 0000000cH mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+8], eax $LN15@xmlNewDocE: ; 970 : } else { jmp SHORT $LN11@xmlNewDocE $LN12@xmlNewDocE: ; 971 : if (dict == NULL) { cmp DWORD PTR _dict$[ebp], 0 jne SHORT $LN16@xmlNewDocE ; 972 : ret->prefix = xmlStrndup(name, l); mov edx, DWORD PTR _l$2[ebp] push edx mov eax, DWORD PTR _name$[ebp] push eax call _xmlStrndup add esp, 8 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+24], eax ; 973 : ret->name = xmlStrdup(tmp); mov edx, DWORD PTR _tmp$1[ebp] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+8], eax ; 974 : } else { jmp SHORT $LN11@xmlNewDocE $LN16@xmlNewDocE: ; 975 : ret->prefix = xmlDictLookup(dict, name, l); mov edx, DWORD PTR _l$2[ebp] push edx mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _dict$[ebp] push ecx call _xmlDictLookup add esp, 12 ; 0000000cH mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+24], eax ; 976 : ret->name = xmlDictLookup(dict, tmp, -1); push -1 mov eax, DWORD PTR _tmp$1[ebp] push eax mov ecx, DWORD PTR _dict$[ebp] push ecx call _xmlDictLookup add esp, 12 ; 0000000cH mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [edx+8], eax $LN11@xmlNewDocE: ; 977 : } ; 978 : } ; 979 : } ; 980 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlNewDocE: ; 981 : } push edx mov ecx, ebp push eax lea edx, DWORD PTR $LN21@xmlNewDocE call @_RTC_CheckStackVars@8 pop eax pop edx pop esi add esp, 28 ; 0000001cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 npad 2 $LN21@xmlNewDocE: DD 1 DD $LN20@xmlNewDocE $LN20@xmlNewDocE: DD -16 ; fffffff0H DD 4 DD $LN19@xmlNewDocE $LN19@xmlNewDocE: DB 108 ; 0000006cH DB 0 npad 2 $LN22@xmlNewDocE: DD $LN7@xmlNewDocE DD $LN5@xmlNewDocE DD $LN7@xmlNewDocE DD $LN7@xmlNewDocE _xmlNewDocElementContent ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeElementContent _TEXT SEGMENT _cur$ = 8 ; size = 4 _xmlFreeElementContent PROC ; COMDAT ; 1145 : xmlFreeElementContent(xmlElementContentPtr cur) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1146 : xmlFreeDocElementContent(NULL, cur); mov eax, DWORD PTR _cur$[ebp] push eax push 0 call _xmlFreeDocElementContent add esp, 8 ; 1147 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlFreeElementContent ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlCopyElementContent _TEXT SEGMENT _cur$ = 8 ; size = 4 _xmlCopyElementContent PROC ; COMDAT ; 1089 : xmlCopyElementContent(xmlElementContentPtr cur) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 1090 : return(xmlCopyDocElementContent(NULL, cur)); mov eax, DWORD PTR _cur$[ebp] push eax push 0 call _xmlCopyDocElementContent add esp, 8 ; 1091 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlCopyElementContent ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlNewElementContent _TEXT SEGMENT _name$ = 8 ; size = 4 _type$ = 12 ; size = 4 _xmlNewElementContent PROC ; COMDAT ; 994 : xmlNewElementContent(const xmlChar *name, xmlElementContentType type) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 995 : return(xmlNewDocElementContent(NULL, name, type)); mov eax, DWORD PTR _type$[ebp] push eax mov ecx, DWORD PTR _name$[ebp] push ecx push 0 call _xmlNewDocElementContent add esp, 12 ; 0000000cH ; 996 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlNewElementContent ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlDumpNotationTable _TEXT SEGMENT _buf$ = 8 ; size = 4 _table$ = 12 ; size = 4 _xmlDumpNotationTable PROC ; COMDAT ; 2543 : xmlDumpNotationTable(xmlBufferPtr buf, xmlNotationTablePtr table) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2544 : if ((buf == NULL) || (table == NULL)) cmp DWORD PTR _buf$[ebp], 0 je SHORT $LN3@xmlDumpNot cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN2@xmlDumpNot $LN3@xmlDumpNot: ; 2545 : return; jmp SHORT $LN1@xmlDumpNot $LN2@xmlDumpNot: ; 2546 : xmlHashScan(table, xmlDumpNotationDeclScan, buf); mov eax, DWORD PTR _buf$[ebp] push eax push OFFSET _xmlDumpNotationDeclScan mov ecx, DWORD PTR _table$[ebp] push ecx call _xmlHashScan add esp, 12 ; 0000000cH $LN1@xmlDumpNot: ; 2547 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlDumpNotationTable ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlDumpNotationDecl _TEXT SEGMENT _buf$ = 8 ; size = 4 _nota$ = 12 ; size = 4 _xmlDumpNotationDecl PROC ; COMDAT ; 2503 : xmlDumpNotationDecl(xmlBufferPtr buf, xmlNotationPtr nota) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2504 : if ((buf == NULL) || (nota == NULL)) cmp DWORD PTR _buf$[ebp], 0 je SHORT $LN3@xmlDumpNot cmp DWORD PTR _nota$[ebp], 0 jne SHORT $LN2@xmlDumpNot $LN3@xmlDumpNot: ; 2505 : return; jmp $LN1@xmlDumpNot $LN2@xmlDumpNot: ; 2506 : xmlBufferWriteChar(buf, "<!NOTATION "); push OFFSET ??_C@_0M@IOFINGOM@?$DM?$CBNOTATION?5@ mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteChar add esp, 8 ; 2507 : xmlBufferWriteCHAR(buf, nota->name); mov ecx, DWORD PTR _nota$[ebp] mov edx, DWORD PTR [ecx] push edx mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteCHAR add esp, 8 ; 2508 : if (nota->PublicID != NULL) { mov ecx, DWORD PTR _nota$[ebp] cmp DWORD PTR [ecx+4], 0 je SHORT $LN4@xmlDumpNot ; 2509 : xmlBufferWriteChar(buf, " PUBLIC "); push OFFSET ??_C@_08GBBLECIH@?5PUBLIC?5@ mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteChar add esp, 8 ; 2510 : xmlBufferWriteQuotedString(buf, nota->PublicID); mov eax, DWORD PTR _nota$[ebp] mov ecx, DWORD PTR [eax+4] push ecx mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteQuotedString add esp, 8 ; 2511 : if (nota->SystemID != NULL) { mov eax, DWORD PTR _nota$[ebp] cmp DWORD PTR [eax+8], 0 je SHORT $LN6@xmlDumpNot ; 2512 : xmlBufferWriteChar(buf, " "); push OFFSET ??_C@_01CLKCMJKC@?5@ mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteChar add esp, 8 ; 2513 : xmlBufferWriteQuotedString(buf, nota->SystemID); mov edx, DWORD PTR _nota$[ebp] mov eax, DWORD PTR [edx+8] push eax mov ecx, DWORD PTR _buf$[ebp] push ecx call _xmlBufferWriteQuotedString add esp, 8 $LN6@xmlDumpNot: ; 2514 : } ; 2515 : } else { jmp SHORT $LN5@xmlDumpNot $LN4@xmlDumpNot: ; 2516 : xmlBufferWriteChar(buf, " SYSTEM "); push OFFSET ??_C@_08PAGGLANP@?5SYSTEM?5@ mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteChar add esp, 8 ; 2517 : xmlBufferWriteQuotedString(buf, nota->SystemID); mov eax, DWORD PTR _nota$[ebp] mov ecx, DWORD PTR [eax+8] push ecx mov edx, DWORD PTR _buf$[ebp] push edx call _xmlBufferWriteQuotedString add esp, 8 $LN5@xmlDumpNot: ; 2518 : } ; 2519 : xmlBufferWriteChar(buf, " >\n"); push OFFSET ??_C@_03KKJDKPMN@?5?$DO?6@ mov eax, DWORD PTR _buf$[ebp] push eax call _xmlBufferWriteChar add esp, 8 $LN1@xmlDumpNot: ; 2520 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlDumpNotationDecl ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlFreeNotationTable _TEXT SEGMENT _table$ = 8 ; size = 4 _xmlFreeNotationTable PROC ; COMDAT ; 2442 : xmlFreeNotationTable(xmlNotationTablePtr table) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2443 : xmlHashFree(table, xmlFreeNotationTableEntry); push OFFSET _xmlFreeNotationTableEntry mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashFree add esp, 8 ; 2444 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlFreeNotationTable ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlCopyNotationTable _TEXT SEGMENT _table$ = 8 ; size = 4 _xmlCopyNotationTable PROC ; COMDAT ; 2489 : xmlCopyNotationTable(xmlNotationTablePtr table) { push ebp mov ebp, esp mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2490 : return((xmlNotationTablePtr) xmlHashCopy(table, xmlCopyNotation)); push OFFSET _xmlCopyNotation mov eax, DWORD PTR _table$[ebp] push eax call _xmlHashCopy add esp, 8 ; 2491 : } cmp ebp, esp call __RTC_CheckEsp pop ebp ret 0 _xmlCopyNotationTable ENDP _TEXT ENDS ; Function compile flags: /Odtp /RTCsu ; File c:\users\dag\documents\_clients\codeproject authors group\windows on arm\libxml2\libxml2-2.9.9\valid.c ; COMDAT _xmlAddNotationDecl _TEXT SEGMENT _dict$1 = -12 ; size = 4 _table$ = -8 ; size = 4 _ret$ = -4 ; size = 4 _ctxt$ = 8 ; size = 4 _dtd$ = 12 ; size = 4 _name$ = 16 ; size = 4 _PublicID$ = 20 ; size = 4 _SystemID$ = 24 ; size = 4 _xmlAddNotationDecl PROC ; COMDAT ; 2367 : const xmlChar *PublicID, const xmlChar *SystemID) { push ebp mov ebp, esp sub esp, 12 ; 0000000cH push esi mov DWORD PTR [ebp-12], -858993460 ; ccccccccH mov DWORD PTR [ebp-8], -858993460 ; ccccccccH mov DWORD PTR [ebp-4], -858993460 ; ccccccccH mov ecx, OFFSET __56F63275_valid@c call @__CheckForDebuggerJustMyCode@4 ; 2368 : xmlNotationPtr ret; ; 2369 : xmlNotationTablePtr table; ; 2370 : ; 2371 : if (dtd == NULL) { cmp DWORD PTR _dtd$[ebp], 0 jne SHORT $LN2@xmlAddNota ; 2372 : return(NULL); xor eax, eax jmp $LN1@xmlAddNota $LN2@xmlAddNota: ; 2373 : } ; 2374 : if (name == NULL) { cmp DWORD PTR _name$[ebp], 0 jne SHORT $LN3@xmlAddNota ; 2375 : return(NULL); xor eax, eax jmp $LN1@xmlAddNota $LN3@xmlAddNota: ; 2376 : } ; 2377 : if ((PublicID == NULL) && (SystemID == NULL)) { cmp DWORD PTR _PublicID$[ebp], 0 jne SHORT $LN4@xmlAddNota cmp DWORD PTR _SystemID$[ebp], 0 jne SHORT $LN4@xmlAddNota ; 2378 : return(NULL); xor eax, eax jmp $LN1@xmlAddNota $LN4@xmlAddNota: ; 2379 : } ; 2380 : ; 2381 : /* ; 2382 : * Create the Notation table if needed. ; 2383 : */ ; 2384 : table = (xmlNotationTablePtr) dtd->notations; mov eax, DWORD PTR _dtd$[ebp] mov ecx, DWORD PTR [eax+36] mov DWORD PTR _table$[ebp], ecx ; 2385 : if (table == NULL) { cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN5@xmlAddNota ; 2386 : xmlDictPtr dict = NULL; mov DWORD PTR _dict$1[ebp], 0 ; 2387 : if (dtd->doc != NULL) mov edx, DWORD PTR _dtd$[ebp] cmp DWORD PTR [edx+32], 0 je SHORT $LN6@xmlAddNota ; 2388 : dict = dtd->doc->dict; mov eax, DWORD PTR _dtd$[ebp] mov ecx, DWORD PTR [eax+32] mov edx, DWORD PTR [ecx+80] mov DWORD PTR _dict$1[ebp], edx $LN6@xmlAddNota: ; 2389 : ; 2390 : dtd->notations = table = xmlHashCreateDict(0, dict); mov eax, DWORD PTR _dict$1[ebp] push eax push 0 call _xmlHashCreateDict add esp, 8 mov DWORD PTR _table$[ebp], eax mov ecx, DWORD PTR _dtd$[ebp] mov edx, DWORD PTR _table$[ebp] mov DWORD PTR [ecx+36], edx $LN5@xmlAddNota: ; 2391 : } ; 2392 : if (table == NULL) { cmp DWORD PTR _table$[ebp], 0 jne SHORT $LN7@xmlAddNota ; 2393 : xmlVErrMemory(ctxt, push OFFSET ??_C@_0CM@PJBPJANJ@xmlAddNotationDecl?3?5Table?5creat@ mov eax, DWORD PTR _ctxt$[ebp] push eax call _xmlVErrMemory add esp, 8 ; 2394 : "xmlAddNotationDecl: Table creation failed!\n"); ; 2395 : return(NULL); xor eax, eax jmp $LN1@xmlAddNota $LN7@xmlAddNota: ; 2396 : } ; 2397 : ; 2398 : ret = (xmlNotationPtr) xmlMalloc(sizeof(xmlNotation)); mov esi, esp push 12 ; 0000000cH call DWORD PTR _xmlMalloc add esp, 4 cmp esi, esp call __RTC_CheckEsp mov DWORD PTR _ret$[ebp], eax ; 2399 : if (ret == NULL) { cmp DWORD PTR _ret$[ebp], 0 jne SHORT $LN8@xmlAddNota ; 2400 : xmlVErrMemory(ctxt, "malloc failed"); push OFFSET ??_C@_0O@IMHFIAOC@malloc?5failed@ mov ecx, DWORD PTR _ctxt$[ebp] push ecx call _xmlVErrMemory add esp, 8 ; 2401 : return(NULL); xor eax, eax jmp $LN1@xmlAddNota $LN8@xmlAddNota: ; 2402 : } ; 2403 : memset(ret, 0, sizeof(xmlNotation)); xor edx, edx mov eax, DWORD PTR _ret$[ebp] mov DWORD PTR [eax], edx mov DWORD PTR [eax+4], edx mov DWORD PTR [eax+8], edx ; 2404 : ; 2405 : /* ; 2406 : * fill the structure. ; 2407 : */ ; 2408 : ret->name = xmlStrdup(name); mov ecx, DWORD PTR _name$[ebp] push ecx call _xmlStrdup add esp, 4 mov edx, DWORD PTR _ret$[ebp] mov DWORD PTR [edx], eax ; 2409 : if (SystemID != NULL) cmp DWORD PTR _SystemID$[ebp], 0 je SHORT $LN9@xmlAddNota ; 2410 : ret->SystemID = xmlStrdup(SystemID); mov eax, DWORD PTR _SystemID$[ebp] push eax call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+8], eax $LN9@xmlAddNota: ; 2411 : if (PublicID != NULL) cmp DWORD PTR _PublicID$[ebp], 0 je SHORT $LN10@xmlAddNota ; 2412 : ret->PublicID = xmlStrdup(PublicID); mov edx, DWORD PTR _PublicID$[ebp] push edx call _xmlStrdup add esp, 4 mov ecx, DWORD PTR _ret$[ebp] mov DWORD PTR [ecx+4], eax $LN10@xmlAddNota: ; 2413 : ; 2414 : /* ; 2415 : * Validity Check: ; 2416 : * Check the DTD for previous declarations of the ATTLIST ; 2417 : */ ; 2418 : if (xmlHashAddEntry(table, name, ret)) { mov edx, DWORD PTR _ret$[ebp] push edx mov eax, DWORD PTR _name$[ebp] push eax mov ecx, DWORD PTR _table$[ebp] push ecx call _xmlHashAddEntry add esp, 12 ; 0000000cH test eax, eax je SHORT $LN11@xmlAddNota ; 2419 : #ifdef LIBXML_VALID_ENABLED ; 2420 : xmlErrValid(NULL, XML_DTD_NOTATION_REDEFINED, mov edx, DWORD PTR _name$[ebp] push edx push OFFSET ??_C@_0CI@HFJJKKEO@xmlAddNotationDecl?3?5?$CFs?5already?5@ push 526 ; 0000020eH push 0 call _xmlErrValid add esp, 16 ; 00000010H ; 2421 : "xmlAddNotationDecl: %s already defined\n", ; 2422 : (const char *) name); ; 2423 : #endif /* LIBXML_VALID_ENABLED */ ; 2424 : xmlFreeNotation(ret); mov eax, DWORD PTR _ret$[ebp] push eax call _xmlFreeNotation add esp, 4 ; 2425 : return(NULL); xor eax, eax jmp SHORT $LN1@xmlAddNota $LN11@xmlAddNota: ; 2426 : } ; 2427 : return(ret); mov eax, DWORD PTR _ret$[ebp] $LN1@xmlAddNota: ; 2428 : } pop esi add esp, 12 ; 0000000cH cmp ebp, esp call __RTC_CheckEsp mov esp, ebp pop ebp ret 0 _xmlAddNotationDecl ENDP _TEXT ENDS END
;; ;; Copyright (c) 2020-2021, Intel Corporation ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are met: ;; ;; * Redistributions of source code must retain the above copyright notice, ;; this list of conditions and the following disclaimer. ;; * Redistributions in binary form must reproduce the above copyright ;; notice, this list of conditions and the following disclaimer in the ;; documentation and/or other materials provided with the distribution. ;; * Neither the name of Intel Corporation nor the names of its contributors ;; may be used to endorse or promote products derived from this software ;; without specific prior written permission. ;; ;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ;; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ;; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ;; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE ;; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR ;; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER ;; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ;; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE ;; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ;; %ifndef AES_CBC_MAC %define NROUNDS 13 %define AES_CBC_MAC aes256_cbc_mac_vaes_avx512 %define SUBMIT_JOB_AES_CCM_AUTH submit_job_aes256_ccm_auth_vaes_avx512 %define FLUSH_JOB_AES_CCM_AUTH flush_job_aes256_ccm_auth_vaes_avx512 %endif %include "avx512/mb_mgr_aes_ccm_auth_submit_flush_vaes_avx512.asm"
; A264895: a(n) = n*(4*n - 3)*(16*n^2 - 12*n - 3). ; 0,1,370,2835,10660,28645,63126,121975,214600,351945,546490,812251,1164780,1621165,2200030,2921535,3807376,4880785,6166530,7690915,9481780,11568501,13981990,16754695,19920600,23515225,27575626,32140395,37249660,42945085,49269870,56268751,63988000,72475425,81780370,91953715,103047876,115116805,128215990,142402455,157734760,174273001,192078810,211215355,231747340,253741005,277264126,302386015,329177520,357711025,388060450,420301251,454510420,490766485,529149510,569741095,612624376,657884025,705606250,755878795,808790940,864433501,922898830,984280815,1048674880,1116177985,1186888626,1260906835,1338334180,1419273765,1503830230,1592109751,1684220040,1780270345,1880371450,1984635675,2093176876,2206110445,2323553310,2445623935,2572442320,2704130001,2840810050,2982607075,3129647220,3282058165,3439969126,3603510855,3772815640,3948017305,4129251210,4316654251,4510364860,4710523005,4917270190,5130749455,5351105376,5578484065,5813033170,6054901875 mov $1,$0 mul $0,8 sub $0,2 sub $1,1 mul $1,2 mul $1,$0 add $0,$1 sub $0,3 bin $0,2 div $0,2
obj/user/faultreadkernel: file format elf32-i386 Disassembly of section .text: 00800020 <_start>: // starts us running when we are initially loaded into a new environment. .text .globl _start _start: // See if we were started with arguments on the stack cmpl $USTACKTOP, %esp 800020: 81 fc 00 e0 bf ee cmp $0xeebfe000,%esp jne args_exist 800026: 75 04 jne 80002c <args_exist> // If not, push dummy argc/argv arguments. // This happens when we are loaded by the kernel, // because the kernel does not know about passing arguments. pushl $0 800028: 6a 00 push $0x0 pushl $0 80002a: 6a 00 push $0x0 0080002c <args_exist>: args_exist: call libmain 80002c: e8 32 00 00 00 call 800063 <libmain> 1: jmp 1b 800031: eb fe jmp 800031 <args_exist+0x5> 00800033 <umain>: #include <inc/lib.h> void umain(int argc, char **argv) { 800033: 55 push %ebp 800034: 89 e5 mov %esp,%ebp 800036: 53 push %ebx 800037: 83 ec 0c sub $0xc,%esp 80003a: e8 20 00 00 00 call 80005f <__x86.get_pc_thunk.bx> 80003f: 81 c3 c1 1f 00 00 add $0x1fc1,%ebx cprintf("I read %08x from location 0xf0100000!\n", *(unsigned*)0xf0100000); 800045: ff 35 00 00 10 f0 pushl 0xf0100000 80004b: 8d 83 dc ee ff ff lea -0x1124(%ebx),%eax 800051: 50 push %eax 800052: e8 3c 01 00 00 call 800193 <cprintf> } 800057: 83 c4 10 add $0x10,%esp 80005a: 8b 5d fc mov -0x4(%ebp),%ebx 80005d: c9 leave 80005e: c3 ret 0080005f <__x86.get_pc_thunk.bx>: 80005f: 8b 1c 24 mov (%esp),%ebx 800062: c3 ret 00800063 <libmain>: const volatile struct Env *thisenv; const char *binaryname = "<unknown>"; void libmain(int argc, char **argv) { 800063: 55 push %ebp 800064: 89 e5 mov %esp,%ebp 800066: 57 push %edi 800067: 56 push %esi 800068: 53 push %ebx 800069: 83 ec 0c sub $0xc,%esp 80006c: e8 ee ff ff ff call 80005f <__x86.get_pc_thunk.bx> 800071: 81 c3 8f 1f 00 00 add $0x1f8f,%ebx 800077: 8b 75 08 mov 0x8(%ebp),%esi 80007a: 8b 7d 0c mov 0xc(%ebp),%edi // set thisenv to point at our Env structure in envs[]. // LAB 3: Your code here. thisenv = &envs[ENVX(sys_getenvid())]; 80007d: e8 a0 0b 00 00 call 800c22 <sys_getenvid> 800082: 25 ff 03 00 00 and $0x3ff,%eax 800087: 8d 04 40 lea (%eax,%eax,2),%eax 80008a: c1 e0 05 shl $0x5,%eax 80008d: 81 c0 00 00 c0 ee add $0xeec00000,%eax 800093: c7 c2 2c 20 80 00 mov $0x80202c,%edx 800099: 89 02 mov %eax,(%edx) // save the name of the program so that panic() can use it if (argc > 0) 80009b: 85 f6 test %esi,%esi 80009d: 7e 08 jle 8000a7 <libmain+0x44> binaryname = argv[0]; 80009f: 8b 07 mov (%edi),%eax 8000a1: 89 83 0c 00 00 00 mov %eax,0xc(%ebx) // call user main routine umain(argc, argv); 8000a7: 83 ec 08 sub $0x8,%esp 8000aa: 57 push %edi 8000ab: 56 push %esi 8000ac: e8 82 ff ff ff call 800033 <umain> // exit gracefully exit(); 8000b1: e8 0b 00 00 00 call 8000c1 <exit> } 8000b6: 83 c4 10 add $0x10,%esp 8000b9: 8d 65 f4 lea -0xc(%ebp),%esp 8000bc: 5b pop %ebx 8000bd: 5e pop %esi 8000be: 5f pop %edi 8000bf: 5d pop %ebp 8000c0: c3 ret 008000c1 <exit>: #include <inc/lib.h> void exit(void) { 8000c1: 55 push %ebp 8000c2: 89 e5 mov %esp,%ebp 8000c4: 53 push %ebx 8000c5: 83 ec 10 sub $0x10,%esp 8000c8: e8 92 ff ff ff call 80005f <__x86.get_pc_thunk.bx> 8000cd: 81 c3 33 1f 00 00 add $0x1f33,%ebx sys_env_destroy(0); 8000d3: 6a 00 push $0x0 8000d5: e8 f3 0a 00 00 call 800bcd <sys_env_destroy> } 8000da: 83 c4 10 add $0x10,%esp 8000dd: 8b 5d fc mov -0x4(%ebp),%ebx 8000e0: c9 leave 8000e1: c3 ret 008000e2 <putch>: }; static void putch(int ch, struct printbuf *b) { 8000e2: 55 push %ebp 8000e3: 89 e5 mov %esp,%ebp 8000e5: 56 push %esi 8000e6: 53 push %ebx 8000e7: e8 73 ff ff ff call 80005f <__x86.get_pc_thunk.bx> 8000ec: 81 c3 14 1f 00 00 add $0x1f14,%ebx 8000f2: 8b 75 0c mov 0xc(%ebp),%esi b->buf[b->idx++] = ch; 8000f5: 8b 16 mov (%esi),%edx 8000f7: 8d 42 01 lea 0x1(%edx),%eax 8000fa: 89 06 mov %eax,(%esi) 8000fc: 8b 4d 08 mov 0x8(%ebp),%ecx 8000ff: 88 4c 16 08 mov %cl,0x8(%esi,%edx,1) if (b->idx == 256-1) { 800103: 3d ff 00 00 00 cmp $0xff,%eax 800108: 74 0b je 800115 <putch+0x33> sys_cputs(b->buf, b->idx); b->idx = 0; } b->cnt++; 80010a: 83 46 04 01 addl $0x1,0x4(%esi) } 80010e: 8d 65 f8 lea -0x8(%ebp),%esp 800111: 5b pop %ebx 800112: 5e pop %esi 800113: 5d pop %ebp 800114: c3 ret sys_cputs(b->buf, b->idx); 800115: 83 ec 08 sub $0x8,%esp 800118: 68 ff 00 00 00 push $0xff 80011d: 8d 46 08 lea 0x8(%esi),%eax 800120: 50 push %eax 800121: e8 6a 0a 00 00 call 800b90 <sys_cputs> b->idx = 0; 800126: c7 06 00 00 00 00 movl $0x0,(%esi) 80012c: 83 c4 10 add $0x10,%esp 80012f: eb d9 jmp 80010a <putch+0x28> 00800131 <vcprintf>: int vcprintf(const char *fmt, va_list ap) { 800131: 55 push %ebp 800132: 89 e5 mov %esp,%ebp 800134: 53 push %ebx 800135: 81 ec 14 01 00 00 sub $0x114,%esp 80013b: e8 1f ff ff ff call 80005f <__x86.get_pc_thunk.bx> 800140: 81 c3 c0 1e 00 00 add $0x1ec0,%ebx struct printbuf b; b.idx = 0; 800146: c7 85 f0 fe ff ff 00 movl $0x0,-0x110(%ebp) 80014d: 00 00 00 b.cnt = 0; 800150: c7 85 f4 fe ff ff 00 movl $0x0,-0x10c(%ebp) 800157: 00 00 00 vprintfmt((void*)putch, &b, fmt, ap); 80015a: ff 75 0c pushl 0xc(%ebp) 80015d: ff 75 08 pushl 0x8(%ebp) 800160: 8d 85 f0 fe ff ff lea -0x110(%ebp),%eax 800166: 50 push %eax 800167: 8d 83 e2 e0 ff ff lea -0x1f1e(%ebx),%eax 80016d: 50 push %eax 80016e: e8 38 01 00 00 call 8002ab <vprintfmt> sys_cputs(b.buf, b.idx); 800173: 83 c4 08 add $0x8,%esp 800176: ff b5 f0 fe ff ff pushl -0x110(%ebp) 80017c: 8d 85 f8 fe ff ff lea -0x108(%ebp),%eax 800182: 50 push %eax 800183: e8 08 0a 00 00 call 800b90 <sys_cputs> return b.cnt; } 800188: 8b 85 f4 fe ff ff mov -0x10c(%ebp),%eax 80018e: 8b 5d fc mov -0x4(%ebp),%ebx 800191: c9 leave 800192: c3 ret 00800193 <cprintf>: int cprintf(const char *fmt, ...) { 800193: 55 push %ebp 800194: 89 e5 mov %esp,%ebp 800196: 83 ec 10 sub $0x10,%esp va_list ap; int cnt; va_start(ap, fmt); 800199: 8d 45 0c lea 0xc(%ebp),%eax cnt = vcprintf(fmt, ap); 80019c: 50 push %eax 80019d: ff 75 08 pushl 0x8(%ebp) 8001a0: e8 8c ff ff ff call 800131 <vcprintf> va_end(ap); return cnt; } 8001a5: c9 leave 8001a6: c3 ret 008001a7 <printnum>: * using specified putch function and associated pointer putdat. */ static void printnum(void (*putch)(int, void*), void *putdat, unsigned long long num, unsigned base, int width, int padc) { 8001a7: 55 push %ebp 8001a8: 89 e5 mov %esp,%ebp 8001aa: 57 push %edi 8001ab: 56 push %esi 8001ac: 53 push %ebx 8001ad: 83 ec 2c sub $0x2c,%esp 8001b0: e8 63 06 00 00 call 800818 <__x86.get_pc_thunk.cx> 8001b5: 81 c1 4b 1e 00 00 add $0x1e4b,%ecx 8001bb: 89 4d e4 mov %ecx,-0x1c(%ebp) 8001be: 89 c7 mov %eax,%edi 8001c0: 89 d6 mov %edx,%esi 8001c2: 8b 45 08 mov 0x8(%ebp),%eax 8001c5: 8b 55 0c mov 0xc(%ebp),%edx 8001c8: 89 45 d0 mov %eax,-0x30(%ebp) 8001cb: 89 55 d4 mov %edx,-0x2c(%ebp) // first recursively print all preceding (more significant) digits if (num >= base) { 8001ce: 8b 4d 10 mov 0x10(%ebp),%ecx 8001d1: bb 00 00 00 00 mov $0x0,%ebx 8001d6: 89 4d d8 mov %ecx,-0x28(%ebp) 8001d9: 89 5d dc mov %ebx,-0x24(%ebp) 8001dc: 39 d3 cmp %edx,%ebx 8001de: 72 09 jb 8001e9 <printnum+0x42> 8001e0: 39 45 10 cmp %eax,0x10(%ebp) 8001e3: 0f 87 83 00 00 00 ja 80026c <printnum+0xc5> printnum(putch, putdat, num / base, base, width - 1, padc); 8001e9: 83 ec 0c sub $0xc,%esp 8001ec: ff 75 18 pushl 0x18(%ebp) 8001ef: 8b 45 14 mov 0x14(%ebp),%eax 8001f2: 8d 58 ff lea -0x1(%eax),%ebx 8001f5: 53 push %ebx 8001f6: ff 75 10 pushl 0x10(%ebp) 8001f9: 83 ec 08 sub $0x8,%esp 8001fc: ff 75 dc pushl -0x24(%ebp) 8001ff: ff 75 d8 pushl -0x28(%ebp) 800202: ff 75 d4 pushl -0x2c(%ebp) 800205: ff 75 d0 pushl -0x30(%ebp) 800208: 8b 5d e4 mov -0x1c(%ebp),%ebx 80020b: e8 90 0a 00 00 call 800ca0 <__udivdi3> 800210: 83 c4 18 add $0x18,%esp 800213: 52 push %edx 800214: 50 push %eax 800215: 89 f2 mov %esi,%edx 800217: 89 f8 mov %edi,%eax 800219: e8 89 ff ff ff call 8001a7 <printnum> 80021e: 83 c4 20 add $0x20,%esp 800221: eb 13 jmp 800236 <printnum+0x8f> } else { // print any needed pad characters before first digit while (--width > 0) putch(padc, putdat); 800223: 83 ec 08 sub $0x8,%esp 800226: 56 push %esi 800227: ff 75 18 pushl 0x18(%ebp) 80022a: ff d7 call *%edi 80022c: 83 c4 10 add $0x10,%esp while (--width > 0) 80022f: 83 eb 01 sub $0x1,%ebx 800232: 85 db test %ebx,%ebx 800234: 7f ed jg 800223 <printnum+0x7c> } // then print this (the least significant) digit putch("0123456789abcdef"[num % base], putdat); 800236: 83 ec 08 sub $0x8,%esp 800239: 56 push %esi 80023a: 83 ec 04 sub $0x4,%esp 80023d: ff 75 dc pushl -0x24(%ebp) 800240: ff 75 d8 pushl -0x28(%ebp) 800243: ff 75 d4 pushl -0x2c(%ebp) 800246: ff 75 d0 pushl -0x30(%ebp) 800249: 8b 75 e4 mov -0x1c(%ebp),%esi 80024c: 89 f3 mov %esi,%ebx 80024e: e8 6d 0b 00 00 call 800dc0 <__umoddi3> 800253: 83 c4 14 add $0x14,%esp 800256: 0f be 84 06 0d ef ff movsbl -0x10f3(%esi,%eax,1),%eax 80025d: ff 80025e: 50 push %eax 80025f: ff d7 call *%edi } 800261: 83 c4 10 add $0x10,%esp 800264: 8d 65 f4 lea -0xc(%ebp),%esp 800267: 5b pop %ebx 800268: 5e pop %esi 800269: 5f pop %edi 80026a: 5d pop %ebp 80026b: c3 ret 80026c: 8b 5d 14 mov 0x14(%ebp),%ebx 80026f: eb be jmp 80022f <printnum+0x88> 00800271 <sprintputch>: int cnt; }; static void sprintputch(int ch, struct sprintbuf *b) { 800271: 55 push %ebp 800272: 89 e5 mov %esp,%ebp 800274: 8b 45 0c mov 0xc(%ebp),%eax b->cnt++; 800277: 83 40 08 01 addl $0x1,0x8(%eax) if (b->buf < b->ebuf) 80027b: 8b 10 mov (%eax),%edx 80027d: 3b 50 04 cmp 0x4(%eax),%edx 800280: 73 0a jae 80028c <sprintputch+0x1b> *b->buf++ = ch; 800282: 8d 4a 01 lea 0x1(%edx),%ecx 800285: 89 08 mov %ecx,(%eax) 800287: 8b 45 08 mov 0x8(%ebp),%eax 80028a: 88 02 mov %al,(%edx) } 80028c: 5d pop %ebp 80028d: c3 ret 0080028e <printfmt>: { 80028e: 55 push %ebp 80028f: 89 e5 mov %esp,%ebp 800291: 83 ec 08 sub $0x8,%esp va_start(ap, fmt); 800294: 8d 45 14 lea 0x14(%ebp),%eax vprintfmt(putch, putdat, fmt, ap); 800297: 50 push %eax 800298: ff 75 10 pushl 0x10(%ebp) 80029b: ff 75 0c pushl 0xc(%ebp) 80029e: ff 75 08 pushl 0x8(%ebp) 8002a1: e8 05 00 00 00 call 8002ab <vprintfmt> } 8002a6: 83 c4 10 add $0x10,%esp 8002a9: c9 leave 8002aa: c3 ret 008002ab <vprintfmt>: { 8002ab: 55 push %ebp 8002ac: 89 e5 mov %esp,%ebp 8002ae: 57 push %edi 8002af: 56 push %esi 8002b0: 53 push %ebx 8002b1: 83 ec 2c sub $0x2c,%esp 8002b4: e8 a6 fd ff ff call 80005f <__x86.get_pc_thunk.bx> 8002b9: 81 c3 47 1d 00 00 add $0x1d47,%ebx 8002bf: 8b 75 10 mov 0x10(%ebp),%esi int textcolor = 0x0700; 8002c2: c7 45 e4 00 07 00 00 movl $0x700,-0x1c(%ebp) 8002c9: 89 f7 mov %esi,%edi while ((ch = *(unsigned char *) fmt++) != '%') { 8002cb: 8d 77 01 lea 0x1(%edi),%esi 8002ce: 0f b6 07 movzbl (%edi),%eax 8002d1: 83 f8 25 cmp $0x25,%eax 8002d4: 74 1c je 8002f2 <vprintfmt+0x47> if (ch == '\0') 8002d6: 85 c0 test %eax,%eax 8002d8: 0f 84 b9 04 00 00 je 800797 <.L21+0x20> putch(ch, putdat); 8002de: 83 ec 08 sub $0x8,%esp 8002e1: ff 75 0c pushl 0xc(%ebp) ch |= textcolor; 8002e4: 0b 45 e4 or -0x1c(%ebp),%eax putch(ch, putdat); 8002e7: 50 push %eax 8002e8: ff 55 08 call *0x8(%ebp) 8002eb: 83 c4 10 add $0x10,%esp while ((ch = *(unsigned char *) fmt++) != '%') { 8002ee: 89 f7 mov %esi,%edi 8002f0: eb d9 jmp 8002cb <vprintfmt+0x20> padc = ' '; 8002f2: c6 45 d0 20 movb $0x20,-0x30(%ebp) altflag = 0; 8002f6: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) precision = -1; 8002fd: c7 45 cc ff ff ff ff movl $0xffffffff,-0x34(%ebp) width = -1; 800304: c7 45 e0 ff ff ff ff movl $0xffffffff,-0x20(%ebp) lflag = 0; 80030b: b9 00 00 00 00 mov $0x0,%ecx 800310: 89 4d d4 mov %ecx,-0x2c(%ebp) switch (ch = *(unsigned char *) fmt++) { 800313: 8d 7e 01 lea 0x1(%esi),%edi 800316: 0f b6 16 movzbl (%esi),%edx 800319: 8d 42 dd lea -0x23(%edx),%eax 80031c: 3c 55 cmp $0x55,%al 80031e: 0f 87 53 04 00 00 ja 800777 <.L21> 800324: 0f b6 c0 movzbl %al,%eax 800327: 89 d9 mov %ebx,%ecx 800329: 03 8c 83 9c ef ff ff add -0x1064(%ebx,%eax,4),%ecx 800330: ff e1 jmp *%ecx 00800332 <.L73>: 800332: 89 fe mov %edi,%esi padc = '-'; 800334: c6 45 d0 2d movb $0x2d,-0x30(%ebp) 800338: eb d9 jmp 800313 <vprintfmt+0x68> 0080033a <.L27>: switch (ch = *(unsigned char *) fmt++) { 80033a: 89 fe mov %edi,%esi padc = '0'; 80033c: c6 45 d0 30 movb $0x30,-0x30(%ebp) 800340: eb d1 jmp 800313 <vprintfmt+0x68> 00800342 <.L28>: switch (ch = *(unsigned char *) fmt++) { 800342: 0f b6 d2 movzbl %dl,%edx 800345: 89 fe mov %edi,%esi for (precision = 0; ; ++fmt) { 800347: b8 00 00 00 00 mov $0x0,%eax 80034c: 8b 4d d4 mov -0x2c(%ebp),%ecx precision = precision * 10 + ch - '0'; 80034f: 8d 04 80 lea (%eax,%eax,4),%eax 800352: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax ch = *fmt; 800356: 0f be 16 movsbl (%esi),%edx if (ch < '0' || ch > '9') 800359: 8d 7a d0 lea -0x30(%edx),%edi 80035c: 83 ff 09 cmp $0x9,%edi 80035f: 0f 87 94 00 00 00 ja 8003f9 <.L33+0x42> for (precision = 0; ; ++fmt) { 800365: 83 c6 01 add $0x1,%esi precision = precision * 10 + ch - '0'; 800368: eb e5 jmp 80034f <.L28+0xd> 0080036a <.L25>: precision = va_arg(ap, int); 80036a: 8b 45 14 mov 0x14(%ebp),%eax 80036d: 8b 00 mov (%eax),%eax 80036f: 89 45 cc mov %eax,-0x34(%ebp) 800372: 8b 45 14 mov 0x14(%ebp),%eax 800375: 8d 40 04 lea 0x4(%eax),%eax 800378: 89 45 14 mov %eax,0x14(%ebp) switch (ch = *(unsigned char *) fmt++) { 80037b: 89 fe mov %edi,%esi if (width < 0) 80037d: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 800381: 79 90 jns 800313 <vprintfmt+0x68> width = precision, precision = -1; 800383: 8b 45 cc mov -0x34(%ebp),%eax 800386: 89 45 e0 mov %eax,-0x20(%ebp) 800389: c7 45 cc ff ff ff ff movl $0xffffffff,-0x34(%ebp) 800390: eb 81 jmp 800313 <vprintfmt+0x68> 00800392 <.L26>: 800392: 8b 45 e0 mov -0x20(%ebp),%eax 800395: 85 c0 test %eax,%eax 800397: ba 00 00 00 00 mov $0x0,%edx 80039c: 0f 49 d0 cmovns %eax,%edx 80039f: 89 55 e0 mov %edx,-0x20(%ebp) switch (ch = *(unsigned char *) fmt++) { 8003a2: 89 fe mov %edi,%esi 8003a4: e9 6a ff ff ff jmp 800313 <vprintfmt+0x68> 008003a9 <.L22>: 8003a9: 89 fe mov %edi,%esi altflag = 1; 8003ab: c7 45 d8 01 00 00 00 movl $0x1,-0x28(%ebp) goto reswitch; 8003b2: e9 5c ff ff ff jmp 800313 <vprintfmt+0x68> 008003b7 <.L33>: 8003b7: 8b 4d d4 mov -0x2c(%ebp),%ecx if (lflag >= 2) 8003ba: 83 f9 01 cmp $0x1,%ecx 8003bd: 7e 16 jle 8003d5 <.L33+0x1e> return va_arg(*ap, long long); 8003bf: 8b 45 14 mov 0x14(%ebp),%eax 8003c2: 8b 00 mov (%eax),%eax 8003c4: 8b 4d 14 mov 0x14(%ebp),%ecx 8003c7: 8d 49 08 lea 0x8(%ecx),%ecx 8003ca: 89 4d 14 mov %ecx,0x14(%ebp) textcolor = getint(&ap, lflag); 8003cd: 89 45 e4 mov %eax,-0x1c(%ebp) break; 8003d0: e9 f6 fe ff ff jmp 8002cb <vprintfmt+0x20> else if (lflag) 8003d5: 85 c9 test %ecx,%ecx 8003d7: 75 10 jne 8003e9 <.L33+0x32> return va_arg(*ap, int); 8003d9: 8b 45 14 mov 0x14(%ebp),%eax 8003dc: 8b 00 mov (%eax),%eax 8003de: 8b 4d 14 mov 0x14(%ebp),%ecx 8003e1: 8d 49 04 lea 0x4(%ecx),%ecx 8003e4: 89 4d 14 mov %ecx,0x14(%ebp) 8003e7: eb e4 jmp 8003cd <.L33+0x16> return va_arg(*ap, long); 8003e9: 8b 45 14 mov 0x14(%ebp),%eax 8003ec: 8b 00 mov (%eax),%eax 8003ee: 8b 4d 14 mov 0x14(%ebp),%ecx 8003f1: 8d 49 04 lea 0x4(%ecx),%ecx 8003f4: 89 4d 14 mov %ecx,0x14(%ebp) 8003f7: eb d4 jmp 8003cd <.L33+0x16> 8003f9: 89 4d d4 mov %ecx,-0x2c(%ebp) 8003fc: 89 45 cc mov %eax,-0x34(%ebp) 8003ff: e9 79 ff ff ff jmp 80037d <.L25+0x13> 00800404 <.L32>: lflag++; 800404: 83 45 d4 01 addl $0x1,-0x2c(%ebp) switch (ch = *(unsigned char *) fmt++) { 800408: 89 fe mov %edi,%esi goto reswitch; 80040a: e9 04 ff ff ff jmp 800313 <vprintfmt+0x68> 0080040f <.L29>: putch(va_arg(ap, int), putdat); 80040f: 8b 45 14 mov 0x14(%ebp),%eax 800412: 8d 70 04 lea 0x4(%eax),%esi 800415: 83 ec 08 sub $0x8,%esp 800418: ff 75 0c pushl 0xc(%ebp) 80041b: ff 30 pushl (%eax) 80041d: ff 55 08 call *0x8(%ebp) break; 800420: 83 c4 10 add $0x10,%esp putch(va_arg(ap, int), putdat); 800423: 89 75 14 mov %esi,0x14(%ebp) break; 800426: e9 a0 fe ff ff jmp 8002cb <vprintfmt+0x20> 0080042b <.L31>: err = va_arg(ap, int); 80042b: 8b 45 14 mov 0x14(%ebp),%eax 80042e: 8d 70 04 lea 0x4(%eax),%esi 800431: 8b 00 mov (%eax),%eax 800433: 99 cltd 800434: 31 d0 xor %edx,%eax 800436: 29 d0 sub %edx,%eax if (err >= MAXERROR || (p = error_string[err]) == NULL) 800438: 83 f8 06 cmp $0x6,%eax 80043b: 7f 29 jg 800466 <.L31+0x3b> 80043d: 8b 94 83 10 00 00 00 mov 0x10(%ebx,%eax,4),%edx 800444: 85 d2 test %edx,%edx 800446: 74 1e je 800466 <.L31+0x3b> printfmt(putch, putdat, "%s", p); 800448: 52 push %edx 800449: 8d 83 2e ef ff ff lea -0x10d2(%ebx),%eax 80044f: 50 push %eax 800450: ff 75 0c pushl 0xc(%ebp) 800453: ff 75 08 pushl 0x8(%ebp) 800456: e8 33 fe ff ff call 80028e <printfmt> 80045b: 83 c4 10 add $0x10,%esp err = va_arg(ap, int); 80045e: 89 75 14 mov %esi,0x14(%ebp) 800461: e9 65 fe ff ff jmp 8002cb <vprintfmt+0x20> printfmt(putch, putdat, "error %d", err); 800466: 50 push %eax 800467: 8d 83 25 ef ff ff lea -0x10db(%ebx),%eax 80046d: 50 push %eax 80046e: ff 75 0c pushl 0xc(%ebp) 800471: ff 75 08 pushl 0x8(%ebp) 800474: e8 15 fe ff ff call 80028e <printfmt> 800479: 83 c4 10 add $0x10,%esp err = va_arg(ap, int); 80047c: 89 75 14 mov %esi,0x14(%ebp) printfmt(putch, putdat, "error %d", err); 80047f: e9 47 fe ff ff jmp 8002cb <vprintfmt+0x20> 00800484 <.L36>: if ((p = va_arg(ap, char *)) == NULL) 800484: 8b 45 14 mov 0x14(%ebp),%eax 800487: 83 c0 04 add $0x4,%eax 80048a: 89 45 d4 mov %eax,-0x2c(%ebp) 80048d: 8b 45 14 mov 0x14(%ebp),%eax 800490: 8b 30 mov (%eax),%esi p = "(null)"; 800492: 85 f6 test %esi,%esi 800494: 8d 83 1e ef ff ff lea -0x10e2(%ebx),%eax 80049a: 0f 44 f0 cmove %eax,%esi if (width > 0 && padc != '-') 80049d: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 8004a1: 0f 8e b4 00 00 00 jle 80055b <.L36+0xd7> 8004a7: 80 7d d0 2d cmpb $0x2d,-0x30(%ebp) 8004ab: 75 08 jne 8004b5 <.L36+0x31> 8004ad: 89 7d 10 mov %edi,0x10(%ebp) 8004b0: 8b 7d cc mov -0x34(%ebp),%edi 8004b3: eb 6c jmp 800521 <.L36+0x9d> for (width -= strnlen(p, precision); width > 0; width--) 8004b5: 83 ec 08 sub $0x8,%esp 8004b8: ff 75 cc pushl -0x34(%ebp) 8004bb: 56 push %esi 8004bc: e8 73 03 00 00 call 800834 <strnlen> 8004c1: 8b 55 e0 mov -0x20(%ebp),%edx 8004c4: 29 c2 sub %eax,%edx 8004c6: 89 55 e0 mov %edx,-0x20(%ebp) 8004c9: 83 c4 10 add $0x10,%esp putch(padc, putdat); 8004cc: 0f be 45 d0 movsbl -0x30(%ebp),%eax 8004d0: 89 75 d0 mov %esi,-0x30(%ebp) 8004d3: 89 d6 mov %edx,%esi 8004d5: 89 7d 10 mov %edi,0x10(%ebp) 8004d8: 89 c7 mov %eax,%edi for (width -= strnlen(p, precision); width > 0; width--) 8004da: eb 10 jmp 8004ec <.L36+0x68> putch(padc, putdat); 8004dc: 83 ec 08 sub $0x8,%esp 8004df: ff 75 0c pushl 0xc(%ebp) 8004e2: 57 push %edi 8004e3: ff 55 08 call *0x8(%ebp) for (width -= strnlen(p, precision); width > 0; width--) 8004e6: 83 ee 01 sub $0x1,%esi 8004e9: 83 c4 10 add $0x10,%esp 8004ec: 85 f6 test %esi,%esi 8004ee: 7f ec jg 8004dc <.L36+0x58> 8004f0: 8b 75 d0 mov -0x30(%ebp),%esi 8004f3: 8b 55 e0 mov -0x20(%ebp),%edx 8004f6: 85 d2 test %edx,%edx 8004f8: b8 00 00 00 00 mov $0x0,%eax 8004fd: 0f 49 c2 cmovns %edx,%eax 800500: 29 c2 sub %eax,%edx 800502: 89 55 e0 mov %edx,-0x20(%ebp) 800505: 8b 7d cc mov -0x34(%ebp),%edi 800508: eb 17 jmp 800521 <.L36+0x9d> if (altflag && (ch < ' ' || ch > '~')) 80050a: 83 7d d8 00 cmpl $0x0,-0x28(%ebp) 80050e: 75 30 jne 800540 <.L36+0xbc> putch(ch, putdat); 800510: 83 ec 08 sub $0x8,%esp 800513: ff 75 0c pushl 0xc(%ebp) 800516: 50 push %eax 800517: ff 55 08 call *0x8(%ebp) 80051a: 83 c4 10 add $0x10,%esp for (; (ch = *p++) != '\0' && (precision < 0 || --precision >= 0); width--) 80051d: 83 6d e0 01 subl $0x1,-0x20(%ebp) 800521: 83 c6 01 add $0x1,%esi 800524: 0f b6 56 ff movzbl -0x1(%esi),%edx 800528: 0f be c2 movsbl %dl,%eax 80052b: 85 c0 test %eax,%eax 80052d: 74 58 je 800587 <.L36+0x103> 80052f: 85 ff test %edi,%edi 800531: 78 d7 js 80050a <.L36+0x86> 800533: 83 ef 01 sub $0x1,%edi 800536: 79 d2 jns 80050a <.L36+0x86> 800538: 8b 75 e0 mov -0x20(%ebp),%esi 80053b: 8b 7d 0c mov 0xc(%ebp),%edi 80053e: eb 32 jmp 800572 <.L36+0xee> if (altflag && (ch < ' ' || ch > '~')) 800540: 0f be d2 movsbl %dl,%edx 800543: 83 ea 20 sub $0x20,%edx 800546: 83 fa 5e cmp $0x5e,%edx 800549: 76 c5 jbe 800510 <.L36+0x8c> putch('?', putdat); 80054b: 83 ec 08 sub $0x8,%esp 80054e: ff 75 0c pushl 0xc(%ebp) 800551: 6a 3f push $0x3f 800553: ff 55 08 call *0x8(%ebp) 800556: 83 c4 10 add $0x10,%esp 800559: eb c2 jmp 80051d <.L36+0x99> 80055b: 89 7d 10 mov %edi,0x10(%ebp) 80055e: 8b 7d cc mov -0x34(%ebp),%edi 800561: eb be jmp 800521 <.L36+0x9d> putch(' ', putdat); 800563: 83 ec 08 sub $0x8,%esp 800566: 57 push %edi 800567: 6a 20 push $0x20 800569: ff 55 08 call *0x8(%ebp) for (; width > 0; width--) 80056c: 83 ee 01 sub $0x1,%esi 80056f: 83 c4 10 add $0x10,%esp 800572: 85 f6 test %esi,%esi 800574: 7f ed jg 800563 <.L36+0xdf> 800576: 89 7d 0c mov %edi,0xc(%ebp) 800579: 8b 7d 10 mov 0x10(%ebp),%edi if ((p = va_arg(ap, char *)) == NULL) 80057c: 8b 45 d4 mov -0x2c(%ebp),%eax 80057f: 89 45 14 mov %eax,0x14(%ebp) 800582: e9 44 fd ff ff jmp 8002cb <vprintfmt+0x20> 800587: 8b 75 e0 mov -0x20(%ebp),%esi 80058a: 8b 7d 0c mov 0xc(%ebp),%edi 80058d: eb e3 jmp 800572 <.L36+0xee> 0080058f <.L30>: 80058f: 8b 4d d4 mov -0x2c(%ebp),%ecx if (lflag >= 2) 800592: 83 f9 01 cmp $0x1,%ecx 800595: 7e 42 jle 8005d9 <.L30+0x4a> return va_arg(*ap, long long); 800597: 8b 45 14 mov 0x14(%ebp),%eax 80059a: 8b 50 04 mov 0x4(%eax),%edx 80059d: 8b 00 mov (%eax),%eax 80059f: 89 45 d8 mov %eax,-0x28(%ebp) 8005a2: 89 55 dc mov %edx,-0x24(%ebp) 8005a5: 8b 45 14 mov 0x14(%ebp),%eax 8005a8: 8d 40 08 lea 0x8(%eax),%eax 8005ab: 89 45 14 mov %eax,0x14(%ebp) if ((long long) num < 0) { 8005ae: 83 7d dc 00 cmpl $0x0,-0x24(%ebp) 8005b2: 79 5f jns 800613 <.L30+0x84> putch('-', putdat); 8005b4: 83 ec 08 sub $0x8,%esp 8005b7: ff 75 0c pushl 0xc(%ebp) 8005ba: 6a 2d push $0x2d 8005bc: ff 55 08 call *0x8(%ebp) num = -(long long) num; 8005bf: 8b 55 d8 mov -0x28(%ebp),%edx 8005c2: 8b 4d dc mov -0x24(%ebp),%ecx 8005c5: f7 da neg %edx 8005c7: 83 d1 00 adc $0x0,%ecx 8005ca: f7 d9 neg %ecx 8005cc: 83 c4 10 add $0x10,%esp base = 10; 8005cf: b8 0a 00 00 00 mov $0xa,%eax 8005d4: e9 b8 00 00 00 jmp 800691 <.L34+0x22> else if (lflag) 8005d9: 85 c9 test %ecx,%ecx 8005db: 75 1b jne 8005f8 <.L30+0x69> return va_arg(*ap, int); 8005dd: 8b 45 14 mov 0x14(%ebp),%eax 8005e0: 8b 30 mov (%eax),%esi 8005e2: 89 75 d8 mov %esi,-0x28(%ebp) 8005e5: 89 f0 mov %esi,%eax 8005e7: c1 f8 1f sar $0x1f,%eax 8005ea: 89 45 dc mov %eax,-0x24(%ebp) 8005ed: 8b 45 14 mov 0x14(%ebp),%eax 8005f0: 8d 40 04 lea 0x4(%eax),%eax 8005f3: 89 45 14 mov %eax,0x14(%ebp) 8005f6: eb b6 jmp 8005ae <.L30+0x1f> return va_arg(*ap, long); 8005f8: 8b 45 14 mov 0x14(%ebp),%eax 8005fb: 8b 30 mov (%eax),%esi 8005fd: 89 75 d8 mov %esi,-0x28(%ebp) 800600: 89 f0 mov %esi,%eax 800602: c1 f8 1f sar $0x1f,%eax 800605: 89 45 dc mov %eax,-0x24(%ebp) 800608: 8b 45 14 mov 0x14(%ebp),%eax 80060b: 8d 40 04 lea 0x4(%eax),%eax 80060e: 89 45 14 mov %eax,0x14(%ebp) 800611: eb 9b jmp 8005ae <.L30+0x1f> num = getint(&ap, lflag); 800613: 8b 55 d8 mov -0x28(%ebp),%edx 800616: 8b 4d dc mov -0x24(%ebp),%ecx base = 10; 800619: b8 0a 00 00 00 mov $0xa,%eax 80061e: eb 71 jmp 800691 <.L34+0x22> 00800620 <.L37>: 800620: 8b 4d d4 mov -0x2c(%ebp),%ecx if (lflag >= 2) 800623: 83 f9 01 cmp $0x1,%ecx 800626: 7e 15 jle 80063d <.L37+0x1d> return va_arg(*ap, unsigned long long); 800628: 8b 45 14 mov 0x14(%ebp),%eax 80062b: 8b 10 mov (%eax),%edx 80062d: 8b 48 04 mov 0x4(%eax),%ecx 800630: 8d 40 08 lea 0x8(%eax),%eax 800633: 89 45 14 mov %eax,0x14(%ebp) base = 10; 800636: b8 0a 00 00 00 mov $0xa,%eax 80063b: eb 54 jmp 800691 <.L34+0x22> else if (lflag) 80063d: 85 c9 test %ecx,%ecx 80063f: 75 17 jne 800658 <.L37+0x38> return va_arg(*ap, unsigned int); 800641: 8b 45 14 mov 0x14(%ebp),%eax 800644: 8b 10 mov (%eax),%edx 800646: b9 00 00 00 00 mov $0x0,%ecx 80064b: 8d 40 04 lea 0x4(%eax),%eax 80064e: 89 45 14 mov %eax,0x14(%ebp) base = 10; 800651: b8 0a 00 00 00 mov $0xa,%eax 800656: eb 39 jmp 800691 <.L34+0x22> return va_arg(*ap, unsigned long); 800658: 8b 45 14 mov 0x14(%ebp),%eax 80065b: 8b 10 mov (%eax),%edx 80065d: b9 00 00 00 00 mov $0x0,%ecx 800662: 8d 40 04 lea 0x4(%eax),%eax 800665: 89 45 14 mov %eax,0x14(%ebp) base = 10; 800668: b8 0a 00 00 00 mov $0xa,%eax 80066d: eb 22 jmp 800691 <.L34+0x22> 0080066f <.L34>: 80066f: 8b 4d d4 mov -0x2c(%ebp),%ecx if (lflag >= 2) 800672: 83 f9 01 cmp $0x1,%ecx 800675: 7e 3b jle 8006b2 <.L34+0x43> return va_arg(*ap, long long); 800677: 8b 45 14 mov 0x14(%ebp),%eax 80067a: 8b 50 04 mov 0x4(%eax),%edx 80067d: 8b 00 mov (%eax),%eax 80067f: 8b 4d 14 mov 0x14(%ebp),%ecx 800682: 8d 49 08 lea 0x8(%ecx),%ecx 800685: 89 4d 14 mov %ecx,0x14(%ebp) num = getint(&ap, lflag); 800688: 89 d1 mov %edx,%ecx 80068a: 89 c2 mov %eax,%edx base = 8; 80068c: b8 08 00 00 00 mov $0x8,%eax printnum(putch, putdat, num, base, width, padc); 800691: 83 ec 0c sub $0xc,%esp 800694: 0f be 75 d0 movsbl -0x30(%ebp),%esi 800698: 56 push %esi 800699: ff 75 e0 pushl -0x20(%ebp) 80069c: 50 push %eax 80069d: 51 push %ecx 80069e: 52 push %edx 80069f: 8b 55 0c mov 0xc(%ebp),%edx 8006a2: 8b 45 08 mov 0x8(%ebp),%eax 8006a5: e8 fd fa ff ff call 8001a7 <printnum> break; 8006aa: 83 c4 20 add $0x20,%esp 8006ad: e9 19 fc ff ff jmp 8002cb <vprintfmt+0x20> else if (lflag) 8006b2: 85 c9 test %ecx,%ecx 8006b4: 75 13 jne 8006c9 <.L34+0x5a> return va_arg(*ap, int); 8006b6: 8b 45 14 mov 0x14(%ebp),%eax 8006b9: 8b 10 mov (%eax),%edx 8006bb: 89 d0 mov %edx,%eax 8006bd: 99 cltd 8006be: 8b 4d 14 mov 0x14(%ebp),%ecx 8006c1: 8d 49 04 lea 0x4(%ecx),%ecx 8006c4: 89 4d 14 mov %ecx,0x14(%ebp) 8006c7: eb bf jmp 800688 <.L34+0x19> return va_arg(*ap, long); 8006c9: 8b 45 14 mov 0x14(%ebp),%eax 8006cc: 8b 10 mov (%eax),%edx 8006ce: 89 d0 mov %edx,%eax 8006d0: 99 cltd 8006d1: 8b 4d 14 mov 0x14(%ebp),%ecx 8006d4: 8d 49 04 lea 0x4(%ecx),%ecx 8006d7: 89 4d 14 mov %ecx,0x14(%ebp) 8006da: eb ac jmp 800688 <.L34+0x19> 008006dc <.L35>: putch('0', putdat); 8006dc: 83 ec 08 sub $0x8,%esp 8006df: ff 75 0c pushl 0xc(%ebp) 8006e2: 6a 30 push $0x30 8006e4: ff 55 08 call *0x8(%ebp) putch('x', putdat); 8006e7: 83 c4 08 add $0x8,%esp 8006ea: ff 75 0c pushl 0xc(%ebp) 8006ed: 6a 78 push $0x78 8006ef: ff 55 08 call *0x8(%ebp) num = (unsigned long long) 8006f2: 8b 45 14 mov 0x14(%ebp),%eax 8006f5: 8b 10 mov (%eax),%edx 8006f7: b9 00 00 00 00 mov $0x0,%ecx goto number; 8006fc: 83 c4 10 add $0x10,%esp (uintptr_t) va_arg(ap, void *); 8006ff: 8d 40 04 lea 0x4(%eax),%eax 800702: 89 45 14 mov %eax,0x14(%ebp) base = 16; 800705: b8 10 00 00 00 mov $0x10,%eax goto number; 80070a: eb 85 jmp 800691 <.L34+0x22> 0080070c <.L38>: 80070c: 8b 4d d4 mov -0x2c(%ebp),%ecx if (lflag >= 2) 80070f: 83 f9 01 cmp $0x1,%ecx 800712: 7e 18 jle 80072c <.L38+0x20> return va_arg(*ap, unsigned long long); 800714: 8b 45 14 mov 0x14(%ebp),%eax 800717: 8b 10 mov (%eax),%edx 800719: 8b 48 04 mov 0x4(%eax),%ecx 80071c: 8d 40 08 lea 0x8(%eax),%eax 80071f: 89 45 14 mov %eax,0x14(%ebp) base = 16; 800722: b8 10 00 00 00 mov $0x10,%eax 800727: e9 65 ff ff ff jmp 800691 <.L34+0x22> else if (lflag) 80072c: 85 c9 test %ecx,%ecx 80072e: 75 1a jne 80074a <.L38+0x3e> return va_arg(*ap, unsigned int); 800730: 8b 45 14 mov 0x14(%ebp),%eax 800733: 8b 10 mov (%eax),%edx 800735: b9 00 00 00 00 mov $0x0,%ecx 80073a: 8d 40 04 lea 0x4(%eax),%eax 80073d: 89 45 14 mov %eax,0x14(%ebp) base = 16; 800740: b8 10 00 00 00 mov $0x10,%eax 800745: e9 47 ff ff ff jmp 800691 <.L34+0x22> return va_arg(*ap, unsigned long); 80074a: 8b 45 14 mov 0x14(%ebp),%eax 80074d: 8b 10 mov (%eax),%edx 80074f: b9 00 00 00 00 mov $0x0,%ecx 800754: 8d 40 04 lea 0x4(%eax),%eax 800757: 89 45 14 mov %eax,0x14(%ebp) base = 16; 80075a: b8 10 00 00 00 mov $0x10,%eax 80075f: e9 2d ff ff ff jmp 800691 <.L34+0x22> 00800764 <.L24>: putch(ch, putdat); 800764: 83 ec 08 sub $0x8,%esp 800767: ff 75 0c pushl 0xc(%ebp) 80076a: 6a 25 push $0x25 80076c: ff 55 08 call *0x8(%ebp) break; 80076f: 83 c4 10 add $0x10,%esp 800772: e9 54 fb ff ff jmp 8002cb <vprintfmt+0x20> 00800777 <.L21>: putch('%', putdat); 800777: 83 ec 08 sub $0x8,%esp 80077a: ff 75 0c pushl 0xc(%ebp) 80077d: 6a 25 push $0x25 80077f: ff 55 08 call *0x8(%ebp) for (fmt--; fmt[-1] != '%'; fmt--) 800782: 83 c4 10 add $0x10,%esp 800785: 89 f7 mov %esi,%edi 800787: eb 03 jmp 80078c <.L21+0x15> 800789: 83 ef 01 sub $0x1,%edi 80078c: 80 7f ff 25 cmpb $0x25,-0x1(%edi) 800790: 75 f7 jne 800789 <.L21+0x12> 800792: e9 34 fb ff ff jmp 8002cb <vprintfmt+0x20> } 800797: 8d 65 f4 lea -0xc(%ebp),%esp 80079a: 5b pop %ebx 80079b: 5e pop %esi 80079c: 5f pop %edi 80079d: 5d pop %ebp 80079e: c3 ret 0080079f <vsnprintf>: int vsnprintf(char *buf, int n, const char *fmt, va_list ap) { 80079f: 55 push %ebp 8007a0: 89 e5 mov %esp,%ebp 8007a2: 53 push %ebx 8007a3: 83 ec 14 sub $0x14,%esp 8007a6: e8 b4 f8 ff ff call 80005f <__x86.get_pc_thunk.bx> 8007ab: 81 c3 55 18 00 00 add $0x1855,%ebx 8007b1: 8b 45 08 mov 0x8(%ebp),%eax 8007b4: 8b 55 0c mov 0xc(%ebp),%edx struct sprintbuf b = {buf, buf+n-1, 0}; 8007b7: 89 45 ec mov %eax,-0x14(%ebp) 8007ba: 8d 4c 10 ff lea -0x1(%eax,%edx,1),%ecx 8007be: 89 4d f0 mov %ecx,-0x10(%ebp) 8007c1: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) if (buf == NULL || n < 1) 8007c8: 85 c0 test %eax,%eax 8007ca: 74 2b je 8007f7 <vsnprintf+0x58> 8007cc: 85 d2 test %edx,%edx 8007ce: 7e 27 jle 8007f7 <vsnprintf+0x58> return -E_INVAL; // print the string to the buffer vprintfmt((void*)sprintputch, &b, fmt, ap); 8007d0: ff 75 14 pushl 0x14(%ebp) 8007d3: ff 75 10 pushl 0x10(%ebp) 8007d6: 8d 45 ec lea -0x14(%ebp),%eax 8007d9: 50 push %eax 8007da: 8d 83 71 e2 ff ff lea -0x1d8f(%ebx),%eax 8007e0: 50 push %eax 8007e1: e8 c5 fa ff ff call 8002ab <vprintfmt> // null terminate the buffer *b.buf = '\0'; 8007e6: 8b 45 ec mov -0x14(%ebp),%eax 8007e9: c6 00 00 movb $0x0,(%eax) return b.cnt; 8007ec: 8b 45 f4 mov -0xc(%ebp),%eax 8007ef: 83 c4 10 add $0x10,%esp } 8007f2: 8b 5d fc mov -0x4(%ebp),%ebx 8007f5: c9 leave 8007f6: c3 ret return -E_INVAL; 8007f7: b8 fd ff ff ff mov $0xfffffffd,%eax 8007fc: eb f4 jmp 8007f2 <vsnprintf+0x53> 008007fe <snprintf>: int snprintf(char *buf, int n, const char *fmt, ...) { 8007fe: 55 push %ebp 8007ff: 89 e5 mov %esp,%ebp 800801: 83 ec 08 sub $0x8,%esp va_list ap; int rc; va_start(ap, fmt); 800804: 8d 45 14 lea 0x14(%ebp),%eax rc = vsnprintf(buf, n, fmt, ap); 800807: 50 push %eax 800808: ff 75 10 pushl 0x10(%ebp) 80080b: ff 75 0c pushl 0xc(%ebp) 80080e: ff 75 08 pushl 0x8(%ebp) 800811: e8 89 ff ff ff call 80079f <vsnprintf> va_end(ap); return rc; } 800816: c9 leave 800817: c3 ret 00800818 <__x86.get_pc_thunk.cx>: 800818: 8b 0c 24 mov (%esp),%ecx 80081b: c3 ret 0080081c <strlen>: // Primespipe runs 3x faster this way. #define ASM 1 int strlen(const char *s) { 80081c: 55 push %ebp 80081d: 89 e5 mov %esp,%ebp 80081f: 8b 55 08 mov 0x8(%ebp),%edx int n; for (n = 0; *s != '\0'; s++) 800822: b8 00 00 00 00 mov $0x0,%eax 800827: eb 03 jmp 80082c <strlen+0x10> n++; 800829: 83 c0 01 add $0x1,%eax for (n = 0; *s != '\0'; s++) 80082c: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1) 800830: 75 f7 jne 800829 <strlen+0xd> return n; } 800832: 5d pop %ebp 800833: c3 ret 00800834 <strnlen>: int strnlen(const char *s, size_t size) { 800834: 55 push %ebp 800835: 89 e5 mov %esp,%ebp 800837: 8b 4d 08 mov 0x8(%ebp),%ecx 80083a: 8b 55 0c mov 0xc(%ebp),%edx int n; for (n = 0; size > 0 && *s != '\0'; s++, size--) 80083d: b8 00 00 00 00 mov $0x0,%eax 800842: eb 03 jmp 800847 <strnlen+0x13> n++; 800844: 83 c0 01 add $0x1,%eax for (n = 0; size > 0 && *s != '\0'; s++, size--) 800847: 39 d0 cmp %edx,%eax 800849: 74 06 je 800851 <strnlen+0x1d> 80084b: 80 3c 01 00 cmpb $0x0,(%ecx,%eax,1) 80084f: 75 f3 jne 800844 <strnlen+0x10> return n; } 800851: 5d pop %ebp 800852: c3 ret 00800853 <strcpy>: char * strcpy(char *dst, const char *src) { 800853: 55 push %ebp 800854: 89 e5 mov %esp,%ebp 800856: 53 push %ebx 800857: 8b 45 08 mov 0x8(%ebp),%eax 80085a: 8b 4d 0c mov 0xc(%ebp),%ecx char *ret; ret = dst; while ((*dst++ = *src++) != '\0') 80085d: 89 c2 mov %eax,%edx 80085f: 83 c1 01 add $0x1,%ecx 800862: 83 c2 01 add $0x1,%edx 800865: 0f b6 59 ff movzbl -0x1(%ecx),%ebx 800869: 88 5a ff mov %bl,-0x1(%edx) 80086c: 84 db test %bl,%bl 80086e: 75 ef jne 80085f <strcpy+0xc> /* do nothing */; return ret; } 800870: 5b pop %ebx 800871: 5d pop %ebp 800872: c3 ret 00800873 <strcat>: char * strcat(char *dst, const char *src) { 800873: 55 push %ebp 800874: 89 e5 mov %esp,%ebp 800876: 53 push %ebx 800877: 8b 5d 08 mov 0x8(%ebp),%ebx int len = strlen(dst); 80087a: 53 push %ebx 80087b: e8 9c ff ff ff call 80081c <strlen> 800880: 83 c4 04 add $0x4,%esp strcpy(dst + len, src); 800883: ff 75 0c pushl 0xc(%ebp) 800886: 01 d8 add %ebx,%eax 800888: 50 push %eax 800889: e8 c5 ff ff ff call 800853 <strcpy> return dst; } 80088e: 89 d8 mov %ebx,%eax 800890: 8b 5d fc mov -0x4(%ebp),%ebx 800893: c9 leave 800894: c3 ret 00800895 <strncpy>: char * strncpy(char *dst, const char *src, size_t size) { 800895: 55 push %ebp 800896: 89 e5 mov %esp,%ebp 800898: 56 push %esi 800899: 53 push %ebx 80089a: 8b 75 08 mov 0x8(%ebp),%esi 80089d: 8b 4d 0c mov 0xc(%ebp),%ecx 8008a0: 89 f3 mov %esi,%ebx 8008a2: 03 5d 10 add 0x10(%ebp),%ebx size_t i; char *ret; ret = dst; for (i = 0; i < size; i++) { 8008a5: 89 f2 mov %esi,%edx 8008a7: eb 0f jmp 8008b8 <strncpy+0x23> *dst++ = *src; 8008a9: 83 c2 01 add $0x1,%edx 8008ac: 0f b6 01 movzbl (%ecx),%eax 8008af: 88 42 ff mov %al,-0x1(%edx) // If strlen(src) < size, null-pad 'dst' out to 'size' chars if (*src != '\0') src++; 8008b2: 80 39 01 cmpb $0x1,(%ecx) 8008b5: 83 d9 ff sbb $0xffffffff,%ecx for (i = 0; i < size; i++) { 8008b8: 39 da cmp %ebx,%edx 8008ba: 75 ed jne 8008a9 <strncpy+0x14> } return ret; } 8008bc: 89 f0 mov %esi,%eax 8008be: 5b pop %ebx 8008bf: 5e pop %esi 8008c0: 5d pop %ebp 8008c1: c3 ret 008008c2 <strlcpy>: size_t strlcpy(char *dst, const char *src, size_t size) { 8008c2: 55 push %ebp 8008c3: 89 e5 mov %esp,%ebp 8008c5: 56 push %esi 8008c6: 53 push %ebx 8008c7: 8b 75 08 mov 0x8(%ebp),%esi 8008ca: 8b 55 0c mov 0xc(%ebp),%edx 8008cd: 8b 4d 10 mov 0x10(%ebp),%ecx 8008d0: 89 f0 mov %esi,%eax 8008d2: 8d 5c 0e ff lea -0x1(%esi,%ecx,1),%ebx char *dst_in; dst_in = dst; if (size > 0) { 8008d6: 85 c9 test %ecx,%ecx 8008d8: 75 0b jne 8008e5 <strlcpy+0x23> 8008da: eb 17 jmp 8008f3 <strlcpy+0x31> while (--size > 0 && *src != '\0') *dst++ = *src++; 8008dc: 83 c2 01 add $0x1,%edx 8008df: 83 c0 01 add $0x1,%eax 8008e2: 88 48 ff mov %cl,-0x1(%eax) while (--size > 0 && *src != '\0') 8008e5: 39 d8 cmp %ebx,%eax 8008e7: 74 07 je 8008f0 <strlcpy+0x2e> 8008e9: 0f b6 0a movzbl (%edx),%ecx 8008ec: 84 c9 test %cl,%cl 8008ee: 75 ec jne 8008dc <strlcpy+0x1a> *dst = '\0'; 8008f0: c6 00 00 movb $0x0,(%eax) } return dst - dst_in; 8008f3: 29 f0 sub %esi,%eax } 8008f5: 5b pop %ebx 8008f6: 5e pop %esi 8008f7: 5d pop %ebp 8008f8: c3 ret 008008f9 <strcmp>: int strcmp(const char *p, const char *q) { 8008f9: 55 push %ebp 8008fa: 89 e5 mov %esp,%ebp 8008fc: 8b 4d 08 mov 0x8(%ebp),%ecx 8008ff: 8b 55 0c mov 0xc(%ebp),%edx while (*p && *p == *q) 800902: eb 06 jmp 80090a <strcmp+0x11> p++, q++; 800904: 83 c1 01 add $0x1,%ecx 800907: 83 c2 01 add $0x1,%edx while (*p && *p == *q) 80090a: 0f b6 01 movzbl (%ecx),%eax 80090d: 84 c0 test %al,%al 80090f: 74 04 je 800915 <strcmp+0x1c> 800911: 3a 02 cmp (%edx),%al 800913: 74 ef je 800904 <strcmp+0xb> return (int) ((unsigned char) *p - (unsigned char) *q); 800915: 0f b6 c0 movzbl %al,%eax 800918: 0f b6 12 movzbl (%edx),%edx 80091b: 29 d0 sub %edx,%eax } 80091d: 5d pop %ebp 80091e: c3 ret 0080091f <strncmp>: int strncmp(const char *p, const char *q, size_t n) { 80091f: 55 push %ebp 800920: 89 e5 mov %esp,%ebp 800922: 53 push %ebx 800923: 8b 45 08 mov 0x8(%ebp),%eax 800926: 8b 55 0c mov 0xc(%ebp),%edx 800929: 89 c3 mov %eax,%ebx 80092b: 03 5d 10 add 0x10(%ebp),%ebx while (n > 0 && *p && *p == *q) 80092e: eb 06 jmp 800936 <strncmp+0x17> n--, p++, q++; 800930: 83 c0 01 add $0x1,%eax 800933: 83 c2 01 add $0x1,%edx while (n > 0 && *p && *p == *q) 800936: 39 d8 cmp %ebx,%eax 800938: 74 16 je 800950 <strncmp+0x31> 80093a: 0f b6 08 movzbl (%eax),%ecx 80093d: 84 c9 test %cl,%cl 80093f: 74 04 je 800945 <strncmp+0x26> 800941: 3a 0a cmp (%edx),%cl 800943: 74 eb je 800930 <strncmp+0x11> if (n == 0) return 0; else return (int) ((unsigned char) *p - (unsigned char) *q); 800945: 0f b6 00 movzbl (%eax),%eax 800948: 0f b6 12 movzbl (%edx),%edx 80094b: 29 d0 sub %edx,%eax } 80094d: 5b pop %ebx 80094e: 5d pop %ebp 80094f: c3 ret return 0; 800950: b8 00 00 00 00 mov $0x0,%eax 800955: eb f6 jmp 80094d <strncmp+0x2e> 00800957 <strchr>: // Return a pointer to the first occurrence of 'c' in 's', // or a null pointer if the string has no 'c'. char * strchr(const char *s, char c) { 800957: 55 push %ebp 800958: 89 e5 mov %esp,%ebp 80095a: 8b 45 08 mov 0x8(%ebp),%eax 80095d: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for (; *s; s++) 800961: 0f b6 10 movzbl (%eax),%edx 800964: 84 d2 test %dl,%dl 800966: 74 09 je 800971 <strchr+0x1a> if (*s == c) 800968: 38 ca cmp %cl,%dl 80096a: 74 0a je 800976 <strchr+0x1f> for (; *s; s++) 80096c: 83 c0 01 add $0x1,%eax 80096f: eb f0 jmp 800961 <strchr+0xa> return (char *) s; return 0; 800971: b8 00 00 00 00 mov $0x0,%eax } 800976: 5d pop %ebp 800977: c3 ret 00800978 <strfind>: // Return a pointer to the first occurrence of 'c' in 's', // or a pointer to the string-ending null character if the string has no 'c'. char * strfind(const char *s, char c) { 800978: 55 push %ebp 800979: 89 e5 mov %esp,%ebp 80097b: 8b 45 08 mov 0x8(%ebp),%eax 80097e: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx for (; *s; s++) 800982: eb 03 jmp 800987 <strfind+0xf> 800984: 83 c0 01 add $0x1,%eax 800987: 0f b6 10 movzbl (%eax),%edx if (*s == c) 80098a: 38 ca cmp %cl,%dl 80098c: 74 04 je 800992 <strfind+0x1a> 80098e: 84 d2 test %dl,%dl 800990: 75 f2 jne 800984 <strfind+0xc> break; return (char *) s; } 800992: 5d pop %ebp 800993: c3 ret 00800994 <memset>: #if ASM void * memset(void *v, int c, size_t n) { 800994: 55 push %ebp 800995: 89 e5 mov %esp,%ebp 800997: 57 push %edi 800998: 56 push %esi 800999: 53 push %ebx 80099a: 8b 7d 08 mov 0x8(%ebp),%edi 80099d: 8b 4d 10 mov 0x10(%ebp),%ecx char *p; if (n == 0) 8009a0: 85 c9 test %ecx,%ecx 8009a2: 74 13 je 8009b7 <memset+0x23> return v; if ((int)v%4 == 0 && n%4 == 0) { 8009a4: f7 c7 03 00 00 00 test $0x3,%edi 8009aa: 75 05 jne 8009b1 <memset+0x1d> 8009ac: f6 c1 03 test $0x3,%cl 8009af: 74 0d je 8009be <memset+0x2a> c = (c<<24)|(c<<16)|(c<<8)|c; asm volatile("cld; rep stosl\n" :: "D" (v), "a" (c), "c" (n/4) : "cc", "memory"); } else asm volatile("cld; rep stosb\n" 8009b1: 8b 45 0c mov 0xc(%ebp),%eax 8009b4: fc cld 8009b5: f3 aa rep stos %al,%es:(%edi) :: "D" (v), "a" (c), "c" (n) : "cc", "memory"); return v; } 8009b7: 89 f8 mov %edi,%eax 8009b9: 5b pop %ebx 8009ba: 5e pop %esi 8009bb: 5f pop %edi 8009bc: 5d pop %ebp 8009bd: c3 ret c &= 0xFF; 8009be: 0f b6 55 0c movzbl 0xc(%ebp),%edx c = (c<<24)|(c<<16)|(c<<8)|c; 8009c2: 89 d3 mov %edx,%ebx 8009c4: c1 e3 08 shl $0x8,%ebx 8009c7: 89 d0 mov %edx,%eax 8009c9: c1 e0 18 shl $0x18,%eax 8009cc: 89 d6 mov %edx,%esi 8009ce: c1 e6 10 shl $0x10,%esi 8009d1: 09 f0 or %esi,%eax 8009d3: 09 c2 or %eax,%edx 8009d5: 09 da or %ebx,%edx :: "D" (v), "a" (c), "c" (n/4) 8009d7: c1 e9 02 shr $0x2,%ecx asm volatile("cld; rep stosl\n" 8009da: 89 d0 mov %edx,%eax 8009dc: fc cld 8009dd: f3 ab rep stos %eax,%es:(%edi) 8009df: eb d6 jmp 8009b7 <memset+0x23> 008009e1 <memmove>: void * memmove(void *dst, const void *src, size_t n) { 8009e1: 55 push %ebp 8009e2: 89 e5 mov %esp,%ebp 8009e4: 57 push %edi 8009e5: 56 push %esi 8009e6: 8b 45 08 mov 0x8(%ebp),%eax 8009e9: 8b 75 0c mov 0xc(%ebp),%esi 8009ec: 8b 4d 10 mov 0x10(%ebp),%ecx const char *s; char *d; s = src; d = dst; if (s < d && s + n > d) { 8009ef: 39 c6 cmp %eax,%esi 8009f1: 73 35 jae 800a28 <memmove+0x47> 8009f3: 8d 14 0e lea (%esi,%ecx,1),%edx 8009f6: 39 c2 cmp %eax,%edx 8009f8: 76 2e jbe 800a28 <memmove+0x47> s += n; d += n; 8009fa: 8d 3c 08 lea (%eax,%ecx,1),%edi if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0) 8009fd: 89 d6 mov %edx,%esi 8009ff: 09 fe or %edi,%esi 800a01: f7 c6 03 00 00 00 test $0x3,%esi 800a07: 74 0c je 800a15 <memmove+0x34> asm volatile("std; rep movsl\n" :: "D" (d-4), "S" (s-4), "c" (n/4) : "cc", "memory"); else asm volatile("std; rep movsb\n" :: "D" (d-1), "S" (s-1), "c" (n) : "cc", "memory"); 800a09: 83 ef 01 sub $0x1,%edi 800a0c: 8d 72 ff lea -0x1(%edx),%esi asm volatile("std; rep movsb\n" 800a0f: fd std 800a10: f3 a4 rep movsb %ds:(%esi),%es:(%edi) // Some versions of GCC rely on DF being clear asm volatile("cld" ::: "cc"); 800a12: fc cld 800a13: eb 21 jmp 800a36 <memmove+0x55> if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0) 800a15: f6 c1 03 test $0x3,%cl 800a18: 75 ef jne 800a09 <memmove+0x28> :: "D" (d-4), "S" (s-4), "c" (n/4) : "cc", "memory"); 800a1a: 83 ef 04 sub $0x4,%edi 800a1d: 8d 72 fc lea -0x4(%edx),%esi 800a20: c1 e9 02 shr $0x2,%ecx asm volatile("std; rep movsl\n" 800a23: fd std 800a24: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 800a26: eb ea jmp 800a12 <memmove+0x31> } else { if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0) 800a28: 89 f2 mov %esi,%edx 800a2a: 09 c2 or %eax,%edx 800a2c: f6 c2 03 test $0x3,%dl 800a2f: 74 09 je 800a3a <memmove+0x59> asm volatile("cld; rep movsl\n" :: "D" (d), "S" (s), "c" (n/4) : "cc", "memory"); else asm volatile("cld; rep movsb\n" 800a31: 89 c7 mov %eax,%edi 800a33: fc cld 800a34: f3 a4 rep movsb %ds:(%esi),%es:(%edi) :: "D" (d), "S" (s), "c" (n) : "cc", "memory"); } return dst; } 800a36: 5e pop %esi 800a37: 5f pop %edi 800a38: 5d pop %ebp 800a39: c3 ret if ((int)s%4 == 0 && (int)d%4 == 0 && n%4 == 0) 800a3a: f6 c1 03 test $0x3,%cl 800a3d: 75 f2 jne 800a31 <memmove+0x50> :: "D" (d), "S" (s), "c" (n/4) : "cc", "memory"); 800a3f: c1 e9 02 shr $0x2,%ecx asm volatile("cld; rep movsl\n" 800a42: 89 c7 mov %eax,%edi 800a44: fc cld 800a45: f3 a5 rep movsl %ds:(%esi),%es:(%edi) 800a47: eb ed jmp 800a36 <memmove+0x55> 00800a49 <memcpy>: } #endif void * memcpy(void *dst, const void *src, size_t n) { 800a49: 55 push %ebp 800a4a: 89 e5 mov %esp,%ebp return memmove(dst, src, n); 800a4c: ff 75 10 pushl 0x10(%ebp) 800a4f: ff 75 0c pushl 0xc(%ebp) 800a52: ff 75 08 pushl 0x8(%ebp) 800a55: e8 87 ff ff ff call 8009e1 <memmove> } 800a5a: c9 leave 800a5b: c3 ret 00800a5c <memcmp>: int memcmp(const void *v1, const void *v2, size_t n) { 800a5c: 55 push %ebp 800a5d: 89 e5 mov %esp,%ebp 800a5f: 56 push %esi 800a60: 53 push %ebx 800a61: 8b 45 08 mov 0x8(%ebp),%eax 800a64: 8b 55 0c mov 0xc(%ebp),%edx 800a67: 89 c6 mov %eax,%esi 800a69: 03 75 10 add 0x10(%ebp),%esi const uint8_t *s1 = (const uint8_t *) v1; const uint8_t *s2 = (const uint8_t *) v2; while (n-- > 0) { 800a6c: 39 f0 cmp %esi,%eax 800a6e: 74 1c je 800a8c <memcmp+0x30> if (*s1 != *s2) 800a70: 0f b6 08 movzbl (%eax),%ecx 800a73: 0f b6 1a movzbl (%edx),%ebx 800a76: 38 d9 cmp %bl,%cl 800a78: 75 08 jne 800a82 <memcmp+0x26> return (int) *s1 - (int) *s2; s1++, s2++; 800a7a: 83 c0 01 add $0x1,%eax 800a7d: 83 c2 01 add $0x1,%edx 800a80: eb ea jmp 800a6c <memcmp+0x10> return (int) *s1 - (int) *s2; 800a82: 0f b6 c1 movzbl %cl,%eax 800a85: 0f b6 db movzbl %bl,%ebx 800a88: 29 d8 sub %ebx,%eax 800a8a: eb 05 jmp 800a91 <memcmp+0x35> } return 0; 800a8c: b8 00 00 00 00 mov $0x0,%eax } 800a91: 5b pop %ebx 800a92: 5e pop %esi 800a93: 5d pop %ebp 800a94: c3 ret 00800a95 <memfind>: void * memfind(const void *s, int c, size_t n) { 800a95: 55 push %ebp 800a96: 89 e5 mov %esp,%ebp 800a98: 8b 45 08 mov 0x8(%ebp),%eax 800a9b: 8b 4d 0c mov 0xc(%ebp),%ecx const void *ends = (const char *) s + n; 800a9e: 89 c2 mov %eax,%edx 800aa0: 03 55 10 add 0x10(%ebp),%edx for (; s < ends; s++) 800aa3: 39 d0 cmp %edx,%eax 800aa5: 73 09 jae 800ab0 <memfind+0x1b> if (*(const unsigned char *) s == (unsigned char) c) 800aa7: 38 08 cmp %cl,(%eax) 800aa9: 74 05 je 800ab0 <memfind+0x1b> for (; s < ends; s++) 800aab: 83 c0 01 add $0x1,%eax 800aae: eb f3 jmp 800aa3 <memfind+0xe> break; return (void *) s; } 800ab0: 5d pop %ebp 800ab1: c3 ret 00800ab2 <strtol>: long strtol(const char *s, char **endptr, int base) { 800ab2: 55 push %ebp 800ab3: 89 e5 mov %esp,%ebp 800ab5: 57 push %edi 800ab6: 56 push %esi 800ab7: 53 push %ebx 800ab8: 8b 4d 08 mov 0x8(%ebp),%ecx 800abb: 8b 5d 10 mov 0x10(%ebp),%ebx int neg = 0; long val = 0; // gobble initial whitespace while (*s == ' ' || *s == '\t') 800abe: eb 03 jmp 800ac3 <strtol+0x11> s++; 800ac0: 83 c1 01 add $0x1,%ecx while (*s == ' ' || *s == '\t') 800ac3: 0f b6 01 movzbl (%ecx),%eax 800ac6: 3c 20 cmp $0x20,%al 800ac8: 74 f6 je 800ac0 <strtol+0xe> 800aca: 3c 09 cmp $0x9,%al 800acc: 74 f2 je 800ac0 <strtol+0xe> // plus/minus sign if (*s == '+') 800ace: 3c 2b cmp $0x2b,%al 800ad0: 74 2e je 800b00 <strtol+0x4e> int neg = 0; 800ad2: bf 00 00 00 00 mov $0x0,%edi s++; else if (*s == '-') 800ad7: 3c 2d cmp $0x2d,%al 800ad9: 74 2f je 800b0a <strtol+0x58> s++, neg = 1; // hex or octal base prefix if ((base == 0 || base == 16) && (s[0] == '0' && s[1] == 'x')) 800adb: f7 c3 ef ff ff ff test $0xffffffef,%ebx 800ae1: 75 05 jne 800ae8 <strtol+0x36> 800ae3: 80 39 30 cmpb $0x30,(%ecx) 800ae6: 74 2c je 800b14 <strtol+0x62> s += 2, base = 16; else if (base == 0 && s[0] == '0') 800ae8: 85 db test %ebx,%ebx 800aea: 75 0a jne 800af6 <strtol+0x44> s++, base = 8; else if (base == 0) base = 10; 800aec: bb 0a 00 00 00 mov $0xa,%ebx else if (base == 0 && s[0] == '0') 800af1: 80 39 30 cmpb $0x30,(%ecx) 800af4: 74 28 je 800b1e <strtol+0x6c> base = 10; 800af6: b8 00 00 00 00 mov $0x0,%eax 800afb: 89 5d 10 mov %ebx,0x10(%ebp) 800afe: eb 50 jmp 800b50 <strtol+0x9e> s++; 800b00: 83 c1 01 add $0x1,%ecx int neg = 0; 800b03: bf 00 00 00 00 mov $0x0,%edi 800b08: eb d1 jmp 800adb <strtol+0x29> s++, neg = 1; 800b0a: 83 c1 01 add $0x1,%ecx 800b0d: bf 01 00 00 00 mov $0x1,%edi 800b12: eb c7 jmp 800adb <strtol+0x29> if ((base == 0 || base == 16) && (s[0] == '0' && s[1] == 'x')) 800b14: 80 79 01 78 cmpb $0x78,0x1(%ecx) 800b18: 74 0e je 800b28 <strtol+0x76> else if (base == 0 && s[0] == '0') 800b1a: 85 db test %ebx,%ebx 800b1c: 75 d8 jne 800af6 <strtol+0x44> s++, base = 8; 800b1e: 83 c1 01 add $0x1,%ecx 800b21: bb 08 00 00 00 mov $0x8,%ebx 800b26: eb ce jmp 800af6 <strtol+0x44> s += 2, base = 16; 800b28: 83 c1 02 add $0x2,%ecx 800b2b: bb 10 00 00 00 mov $0x10,%ebx 800b30: eb c4 jmp 800af6 <strtol+0x44> while (1) { int dig; if (*s >= '0' && *s <= '9') dig = *s - '0'; else if (*s >= 'a' && *s <= 'z') 800b32: 8d 72 9f lea -0x61(%edx),%esi 800b35: 89 f3 mov %esi,%ebx 800b37: 80 fb 19 cmp $0x19,%bl 800b3a: 77 29 ja 800b65 <strtol+0xb3> dig = *s - 'a' + 10; 800b3c: 0f be d2 movsbl %dl,%edx 800b3f: 83 ea 57 sub $0x57,%edx else if (*s >= 'A' && *s <= 'Z') dig = *s - 'A' + 10; else break; if (dig >= base) 800b42: 3b 55 10 cmp 0x10(%ebp),%edx 800b45: 7d 30 jge 800b77 <strtol+0xc5> break; s++, val = (val * base) + dig; 800b47: 83 c1 01 add $0x1,%ecx 800b4a: 0f af 45 10 imul 0x10(%ebp),%eax 800b4e: 01 d0 add %edx,%eax if (*s >= '0' && *s <= '9') 800b50: 0f b6 11 movzbl (%ecx),%edx 800b53: 8d 72 d0 lea -0x30(%edx),%esi 800b56: 89 f3 mov %esi,%ebx 800b58: 80 fb 09 cmp $0x9,%bl 800b5b: 77 d5 ja 800b32 <strtol+0x80> dig = *s - '0'; 800b5d: 0f be d2 movsbl %dl,%edx 800b60: 83 ea 30 sub $0x30,%edx 800b63: eb dd jmp 800b42 <strtol+0x90> else if (*s >= 'A' && *s <= 'Z') 800b65: 8d 72 bf lea -0x41(%edx),%esi 800b68: 89 f3 mov %esi,%ebx 800b6a: 80 fb 19 cmp $0x19,%bl 800b6d: 77 08 ja 800b77 <strtol+0xc5> dig = *s - 'A' + 10; 800b6f: 0f be d2 movsbl %dl,%edx 800b72: 83 ea 37 sub $0x37,%edx 800b75: eb cb jmp 800b42 <strtol+0x90> // we don't properly detect overflow! } if (endptr) 800b77: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 800b7b: 74 05 je 800b82 <strtol+0xd0> *endptr = (char *) s; 800b7d: 8b 75 0c mov 0xc(%ebp),%esi 800b80: 89 0e mov %ecx,(%esi) return (neg ? -val : val); 800b82: 89 c2 mov %eax,%edx 800b84: f7 da neg %edx 800b86: 85 ff test %edi,%edi 800b88: 0f 45 c2 cmovne %edx,%eax } 800b8b: 5b pop %ebx 800b8c: 5e pop %esi 800b8d: 5f pop %edi 800b8e: 5d pop %ebp 800b8f: c3 ret 00800b90 <sys_cputs>: return ret; } void sys_cputs(const char *s, size_t len) { 800b90: 55 push %ebp 800b91: 89 e5 mov %esp,%ebp 800b93: 57 push %edi 800b94: 56 push %esi 800b95: 53 push %ebx asm volatile("int %1\n" 800b96: b8 00 00 00 00 mov $0x0,%eax 800b9b: 8b 55 08 mov 0x8(%ebp),%edx 800b9e: 8b 4d 0c mov 0xc(%ebp),%ecx 800ba1: 89 c3 mov %eax,%ebx 800ba3: 89 c7 mov %eax,%edi 800ba5: 89 c6 mov %eax,%esi 800ba7: cd 30 int $0x30 syscall(SYS_cputs, 0, (uint32_t)s, len, 0, 0, 0); } 800ba9: 5b pop %ebx 800baa: 5e pop %esi 800bab: 5f pop %edi 800bac: 5d pop %ebp 800bad: c3 ret 00800bae <sys_cgetc>: int sys_cgetc(void) { 800bae: 55 push %ebp 800baf: 89 e5 mov %esp,%ebp 800bb1: 57 push %edi 800bb2: 56 push %esi 800bb3: 53 push %ebx asm volatile("int %1\n" 800bb4: ba 00 00 00 00 mov $0x0,%edx 800bb9: b8 01 00 00 00 mov $0x1,%eax 800bbe: 89 d1 mov %edx,%ecx 800bc0: 89 d3 mov %edx,%ebx 800bc2: 89 d7 mov %edx,%edi 800bc4: 89 d6 mov %edx,%esi 800bc6: cd 30 int $0x30 return syscall(SYS_cgetc, 0, 0, 0, 0, 0, 0); } 800bc8: 5b pop %ebx 800bc9: 5e pop %esi 800bca: 5f pop %edi 800bcb: 5d pop %ebp 800bcc: c3 ret 00800bcd <sys_env_destroy>: int sys_env_destroy(envid_t envid) { 800bcd: 55 push %ebp 800bce: 89 e5 mov %esp,%ebp 800bd0: 57 push %edi 800bd1: 56 push %esi 800bd2: 53 push %ebx 800bd3: 83 ec 1c sub $0x1c,%esp 800bd6: e8 66 00 00 00 call 800c41 <__x86.get_pc_thunk.ax> 800bdb: 05 25 14 00 00 add $0x1425,%eax 800be0: 89 45 e4 mov %eax,-0x1c(%ebp) asm volatile("int %1\n" 800be3: b9 00 00 00 00 mov $0x0,%ecx 800be8: 8b 55 08 mov 0x8(%ebp),%edx 800beb: b8 03 00 00 00 mov $0x3,%eax 800bf0: 89 cb mov %ecx,%ebx 800bf2: 89 cf mov %ecx,%edi 800bf4: 89 ce mov %ecx,%esi 800bf6: cd 30 int $0x30 if(check && ret > 0) 800bf8: 85 c0 test %eax,%eax 800bfa: 7f 08 jg 800c04 <sys_env_destroy+0x37> return syscall(SYS_env_destroy, 1, envid, 0, 0, 0, 0); } 800bfc: 8d 65 f4 lea -0xc(%ebp),%esp 800bff: 5b pop %ebx 800c00: 5e pop %esi 800c01: 5f pop %edi 800c02: 5d pop %ebp 800c03: c3 ret panic("syscall %d returned %d (> 0)", num, ret); 800c04: 83 ec 0c sub $0xc,%esp 800c07: 50 push %eax 800c08: 6a 03 push $0x3 800c0a: 8b 5d e4 mov -0x1c(%ebp),%ebx 800c0d: 8d 83 f4 f0 ff ff lea -0xf0c(%ebx),%eax 800c13: 50 push %eax 800c14: 6a 26 push $0x26 800c16: 8d 83 11 f1 ff ff lea -0xeef(%ebx),%eax 800c1c: 50 push %eax 800c1d: e8 23 00 00 00 call 800c45 <_panic> 00800c22 <sys_getenvid>: envid_t sys_getenvid(void) { 800c22: 55 push %ebp 800c23: 89 e5 mov %esp,%ebp 800c25: 57 push %edi 800c26: 56 push %esi 800c27: 53 push %ebx asm volatile("int %1\n" 800c28: ba 00 00 00 00 mov $0x0,%edx 800c2d: b8 02 00 00 00 mov $0x2,%eax 800c32: 89 d1 mov %edx,%ecx 800c34: 89 d3 mov %edx,%ebx 800c36: 89 d7 mov %edx,%edi 800c38: 89 d6 mov %edx,%esi 800c3a: cd 30 int $0x30 return syscall(SYS_getenvid, 0, 0, 0, 0, 0, 0); } 800c3c: 5b pop %ebx 800c3d: 5e pop %esi 800c3e: 5f pop %edi 800c3f: 5d pop %ebp 800c40: c3 ret 00800c41 <__x86.get_pc_thunk.ax>: 800c41: 8b 04 24 mov (%esp),%eax 800c44: c3 ret 00800c45 <_panic>: * It prints "panic: <message>", then causes a breakpoint exception, * which causes JOS to enter the JOS kernel monitor. */ void _panic(const char *file, int line, const char *fmt, ...) { 800c45: 55 push %ebp 800c46: 89 e5 mov %esp,%ebp 800c48: 57 push %edi 800c49: 56 push %esi 800c4a: 53 push %ebx 800c4b: 83 ec 0c sub $0xc,%esp 800c4e: e8 0c f4 ff ff call 80005f <__x86.get_pc_thunk.bx> 800c53: 81 c3 ad 13 00 00 add $0x13ad,%ebx va_list ap; va_start(ap, fmt); 800c59: 8d 75 14 lea 0x14(%ebp),%esi // Print the panic message cprintf("[%08x] user panic in %s at %s:%d: ", 800c5c: c7 c0 0c 20 80 00 mov $0x80200c,%eax 800c62: 8b 38 mov (%eax),%edi 800c64: e8 b9 ff ff ff call 800c22 <sys_getenvid> 800c69: 83 ec 0c sub $0xc,%esp 800c6c: ff 75 0c pushl 0xc(%ebp) 800c6f: ff 75 08 pushl 0x8(%ebp) 800c72: 57 push %edi 800c73: 50 push %eax 800c74: 8d 83 20 f1 ff ff lea -0xee0(%ebx),%eax 800c7a: 50 push %eax 800c7b: e8 13 f5 ff ff call 800193 <cprintf> sys_getenvid(), binaryname, file, line); vcprintf(fmt, ap); 800c80: 83 c4 18 add $0x18,%esp 800c83: 56 push %esi 800c84: ff 75 10 pushl 0x10(%ebp) 800c87: e8 a5 f4 ff ff call 800131 <vcprintf> cprintf("\n"); 800c8c: 8d 83 44 f1 ff ff lea -0xebc(%ebx),%eax 800c92: 89 04 24 mov %eax,(%esp) 800c95: e8 f9 f4 ff ff call 800193 <cprintf> 800c9a: 83 c4 10 add $0x10,%esp // Cause a breakpoint exception while (1) asm volatile("int3"); 800c9d: cc int3 800c9e: eb fd jmp 800c9d <_panic+0x58> 00800ca0 <__udivdi3>: 800ca0: 55 push %ebp 800ca1: 57 push %edi 800ca2: 56 push %esi 800ca3: 53 push %ebx 800ca4: 83 ec 1c sub $0x1c,%esp 800ca7: 8b 54 24 3c mov 0x3c(%esp),%edx 800cab: 8b 6c 24 30 mov 0x30(%esp),%ebp 800caf: 8b 74 24 34 mov 0x34(%esp),%esi 800cb3: 8b 5c 24 38 mov 0x38(%esp),%ebx 800cb7: 85 d2 test %edx,%edx 800cb9: 75 35 jne 800cf0 <__udivdi3+0x50> 800cbb: 39 f3 cmp %esi,%ebx 800cbd: 0f 87 bd 00 00 00 ja 800d80 <__udivdi3+0xe0> 800cc3: 85 db test %ebx,%ebx 800cc5: 89 d9 mov %ebx,%ecx 800cc7: 75 0b jne 800cd4 <__udivdi3+0x34> 800cc9: b8 01 00 00 00 mov $0x1,%eax 800cce: 31 d2 xor %edx,%edx 800cd0: f7 f3 div %ebx 800cd2: 89 c1 mov %eax,%ecx 800cd4: 31 d2 xor %edx,%edx 800cd6: 89 f0 mov %esi,%eax 800cd8: f7 f1 div %ecx 800cda: 89 c6 mov %eax,%esi 800cdc: 89 e8 mov %ebp,%eax 800cde: 89 f7 mov %esi,%edi 800ce0: f7 f1 div %ecx 800ce2: 89 fa mov %edi,%edx 800ce4: 83 c4 1c add $0x1c,%esp 800ce7: 5b pop %ebx 800ce8: 5e pop %esi 800ce9: 5f pop %edi 800cea: 5d pop %ebp 800ceb: c3 ret 800cec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 800cf0: 39 f2 cmp %esi,%edx 800cf2: 77 7c ja 800d70 <__udivdi3+0xd0> 800cf4: 0f bd fa bsr %edx,%edi 800cf7: 83 f7 1f xor $0x1f,%edi 800cfa: 0f 84 98 00 00 00 je 800d98 <__udivdi3+0xf8> 800d00: 89 f9 mov %edi,%ecx 800d02: b8 20 00 00 00 mov $0x20,%eax 800d07: 29 f8 sub %edi,%eax 800d09: d3 e2 shl %cl,%edx 800d0b: 89 54 24 08 mov %edx,0x8(%esp) 800d0f: 89 c1 mov %eax,%ecx 800d11: 89 da mov %ebx,%edx 800d13: d3 ea shr %cl,%edx 800d15: 8b 4c 24 08 mov 0x8(%esp),%ecx 800d19: 09 d1 or %edx,%ecx 800d1b: 89 f2 mov %esi,%edx 800d1d: 89 4c 24 08 mov %ecx,0x8(%esp) 800d21: 89 f9 mov %edi,%ecx 800d23: d3 e3 shl %cl,%ebx 800d25: 89 c1 mov %eax,%ecx 800d27: d3 ea shr %cl,%edx 800d29: 89 f9 mov %edi,%ecx 800d2b: 89 5c 24 0c mov %ebx,0xc(%esp) 800d2f: d3 e6 shl %cl,%esi 800d31: 89 eb mov %ebp,%ebx 800d33: 89 c1 mov %eax,%ecx 800d35: d3 eb shr %cl,%ebx 800d37: 09 de or %ebx,%esi 800d39: 89 f0 mov %esi,%eax 800d3b: f7 74 24 08 divl 0x8(%esp) 800d3f: 89 d6 mov %edx,%esi 800d41: 89 c3 mov %eax,%ebx 800d43: f7 64 24 0c mull 0xc(%esp) 800d47: 39 d6 cmp %edx,%esi 800d49: 72 0c jb 800d57 <__udivdi3+0xb7> 800d4b: 89 f9 mov %edi,%ecx 800d4d: d3 e5 shl %cl,%ebp 800d4f: 39 c5 cmp %eax,%ebp 800d51: 73 5d jae 800db0 <__udivdi3+0x110> 800d53: 39 d6 cmp %edx,%esi 800d55: 75 59 jne 800db0 <__udivdi3+0x110> 800d57: 8d 43 ff lea -0x1(%ebx),%eax 800d5a: 31 ff xor %edi,%edi 800d5c: 89 fa mov %edi,%edx 800d5e: 83 c4 1c add $0x1c,%esp 800d61: 5b pop %ebx 800d62: 5e pop %esi 800d63: 5f pop %edi 800d64: 5d pop %ebp 800d65: c3 ret 800d66: 8d 76 00 lea 0x0(%esi),%esi 800d69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 800d70: 31 ff xor %edi,%edi 800d72: 31 c0 xor %eax,%eax 800d74: 89 fa mov %edi,%edx 800d76: 83 c4 1c add $0x1c,%esp 800d79: 5b pop %ebx 800d7a: 5e pop %esi 800d7b: 5f pop %edi 800d7c: 5d pop %ebp 800d7d: c3 ret 800d7e: 66 90 xchg %ax,%ax 800d80: 31 ff xor %edi,%edi 800d82: 89 e8 mov %ebp,%eax 800d84: 89 f2 mov %esi,%edx 800d86: f7 f3 div %ebx 800d88: 89 fa mov %edi,%edx 800d8a: 83 c4 1c add $0x1c,%esp 800d8d: 5b pop %ebx 800d8e: 5e pop %esi 800d8f: 5f pop %edi 800d90: 5d pop %ebp 800d91: c3 ret 800d92: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 800d98: 39 f2 cmp %esi,%edx 800d9a: 72 06 jb 800da2 <__udivdi3+0x102> 800d9c: 31 c0 xor %eax,%eax 800d9e: 39 eb cmp %ebp,%ebx 800da0: 77 d2 ja 800d74 <__udivdi3+0xd4> 800da2: b8 01 00 00 00 mov $0x1,%eax 800da7: eb cb jmp 800d74 <__udivdi3+0xd4> 800da9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 800db0: 89 d8 mov %ebx,%eax 800db2: 31 ff xor %edi,%edi 800db4: eb be jmp 800d74 <__udivdi3+0xd4> 800db6: 66 90 xchg %ax,%ax 800db8: 66 90 xchg %ax,%ax 800dba: 66 90 xchg %ax,%ax 800dbc: 66 90 xchg %ax,%ax 800dbe: 66 90 xchg %ax,%ax 00800dc0 <__umoddi3>: 800dc0: 55 push %ebp 800dc1: 57 push %edi 800dc2: 56 push %esi 800dc3: 53 push %ebx 800dc4: 83 ec 1c sub $0x1c,%esp 800dc7: 8b 6c 24 3c mov 0x3c(%esp),%ebp 800dcb: 8b 74 24 30 mov 0x30(%esp),%esi 800dcf: 8b 5c 24 34 mov 0x34(%esp),%ebx 800dd3: 8b 7c 24 38 mov 0x38(%esp),%edi 800dd7: 85 ed test %ebp,%ebp 800dd9: 89 f0 mov %esi,%eax 800ddb: 89 da mov %ebx,%edx 800ddd: 75 19 jne 800df8 <__umoddi3+0x38> 800ddf: 39 df cmp %ebx,%edi 800de1: 0f 86 b1 00 00 00 jbe 800e98 <__umoddi3+0xd8> 800de7: f7 f7 div %edi 800de9: 89 d0 mov %edx,%eax 800deb: 31 d2 xor %edx,%edx 800ded: 83 c4 1c add $0x1c,%esp 800df0: 5b pop %ebx 800df1: 5e pop %esi 800df2: 5f pop %edi 800df3: 5d pop %ebp 800df4: c3 ret 800df5: 8d 76 00 lea 0x0(%esi),%esi 800df8: 39 dd cmp %ebx,%ebp 800dfa: 77 f1 ja 800ded <__umoddi3+0x2d> 800dfc: 0f bd cd bsr %ebp,%ecx 800dff: 83 f1 1f xor $0x1f,%ecx 800e02: 89 4c 24 04 mov %ecx,0x4(%esp) 800e06: 0f 84 b4 00 00 00 je 800ec0 <__umoddi3+0x100> 800e0c: b8 20 00 00 00 mov $0x20,%eax 800e11: 89 c2 mov %eax,%edx 800e13: 8b 44 24 04 mov 0x4(%esp),%eax 800e17: 29 c2 sub %eax,%edx 800e19: 89 c1 mov %eax,%ecx 800e1b: 89 f8 mov %edi,%eax 800e1d: d3 e5 shl %cl,%ebp 800e1f: 89 d1 mov %edx,%ecx 800e21: 89 54 24 0c mov %edx,0xc(%esp) 800e25: d3 e8 shr %cl,%eax 800e27: 09 c5 or %eax,%ebp 800e29: 8b 44 24 04 mov 0x4(%esp),%eax 800e2d: 89 c1 mov %eax,%ecx 800e2f: d3 e7 shl %cl,%edi 800e31: 89 d1 mov %edx,%ecx 800e33: 89 7c 24 08 mov %edi,0x8(%esp) 800e37: 89 df mov %ebx,%edi 800e39: d3 ef shr %cl,%edi 800e3b: 89 c1 mov %eax,%ecx 800e3d: 89 f0 mov %esi,%eax 800e3f: d3 e3 shl %cl,%ebx 800e41: 89 d1 mov %edx,%ecx 800e43: 89 fa mov %edi,%edx 800e45: d3 e8 shr %cl,%eax 800e47: 0f b6 4c 24 04 movzbl 0x4(%esp),%ecx 800e4c: 09 d8 or %ebx,%eax 800e4e: f7 f5 div %ebp 800e50: d3 e6 shl %cl,%esi 800e52: 89 d1 mov %edx,%ecx 800e54: f7 64 24 08 mull 0x8(%esp) 800e58: 39 d1 cmp %edx,%ecx 800e5a: 89 c3 mov %eax,%ebx 800e5c: 89 d7 mov %edx,%edi 800e5e: 72 06 jb 800e66 <__umoddi3+0xa6> 800e60: 75 0e jne 800e70 <__umoddi3+0xb0> 800e62: 39 c6 cmp %eax,%esi 800e64: 73 0a jae 800e70 <__umoddi3+0xb0> 800e66: 2b 44 24 08 sub 0x8(%esp),%eax 800e6a: 19 ea sbb %ebp,%edx 800e6c: 89 d7 mov %edx,%edi 800e6e: 89 c3 mov %eax,%ebx 800e70: 89 ca mov %ecx,%edx 800e72: 0f b6 4c 24 0c movzbl 0xc(%esp),%ecx 800e77: 29 de sub %ebx,%esi 800e79: 19 fa sbb %edi,%edx 800e7b: 8b 5c 24 04 mov 0x4(%esp),%ebx 800e7f: 89 d0 mov %edx,%eax 800e81: d3 e0 shl %cl,%eax 800e83: 89 d9 mov %ebx,%ecx 800e85: d3 ee shr %cl,%esi 800e87: d3 ea shr %cl,%edx 800e89: 09 f0 or %esi,%eax 800e8b: 83 c4 1c add $0x1c,%esp 800e8e: 5b pop %ebx 800e8f: 5e pop %esi 800e90: 5f pop %edi 800e91: 5d pop %ebp 800e92: c3 ret 800e93: 90 nop 800e94: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 800e98: 85 ff test %edi,%edi 800e9a: 89 f9 mov %edi,%ecx 800e9c: 75 0b jne 800ea9 <__umoddi3+0xe9> 800e9e: b8 01 00 00 00 mov $0x1,%eax 800ea3: 31 d2 xor %edx,%edx 800ea5: f7 f7 div %edi 800ea7: 89 c1 mov %eax,%ecx 800ea9: 89 d8 mov %ebx,%eax 800eab: 31 d2 xor %edx,%edx 800ead: f7 f1 div %ecx 800eaf: 89 f0 mov %esi,%eax 800eb1: f7 f1 div %ecx 800eb3: e9 31 ff ff ff jmp 800de9 <__umoddi3+0x29> 800eb8: 90 nop 800eb9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 800ec0: 39 dd cmp %ebx,%ebp 800ec2: 72 08 jb 800ecc <__umoddi3+0x10c> 800ec4: 39 f7 cmp %esi,%edi 800ec6: 0f 87 21 ff ff ff ja 800ded <__umoddi3+0x2d> 800ecc: 89 da mov %ebx,%edx 800ece: 89 f0 mov %esi,%eax 800ed0: 29 f8 sub %edi,%eax 800ed2: 19 ea sbb %ebp,%edx 800ed4: e9 14 ff ff ff jmp 800ded <__umoddi3+0x2d>
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r8 push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0x3d0f, %rsi lea addresses_WT_ht+0x140b5, %rdi clflush (%rsi) cmp %r8, %r8 mov $89, %rcx rep movsq nop nop inc %rsi lea addresses_WT_ht+0x7eb5, %rsi lea addresses_WC_ht+0x39a8, %rdi nop nop nop nop dec %rbp mov $46, %rcx rep movsb nop nop cmp %r8, %r8 lea addresses_A_ht+0x7675, %rsi lea addresses_UC_ht+0x1298d, %rdi nop sub $22932, %r13 mov $105, %rcx rep movsb nop nop nop dec %r8 lea addresses_WC_ht+0xa9b5, %rcx nop nop nop nop nop dec %rbp mov $0x6162636465666768, %rsi movq %rsi, %xmm1 and $0xffffffffffffffc0, %rcx vmovaps %ymm1, (%rcx) nop inc %rbp lea addresses_normal_ht+0x1f35, %rdi nop nop nop nop sub $46047, %r10 mov $0x6162636465666768, %rcx movq %rcx, %xmm2 and $0xffffffffffffffc0, %rdi vmovntdq %ymm2, (%rdi) nop nop nop nop nop inc %rdi lea addresses_UC_ht+0x14b5, %rcx nop inc %rsi mov $0x6162636465666768, %rbp movq %rbp, %xmm2 and $0xffffffffffffffc0, %rcx vmovaps %ymm2, (%rcx) nop nop nop nop nop and $7330, %r10 lea addresses_WT_ht+0x184b5, %r10 nop nop xor $20970, %rsi movb (%r10), %r13b nop nop nop nop add $23032, %r13 lea addresses_normal_ht+0x1957e, %rbp nop nop dec %r10 movups (%rbp), %xmm5 vpextrq $1, %xmm5, %rcx nop nop nop nop add %r13, %r13 lea addresses_WT_ht+0xc8b5, %rsi lea addresses_WC_ht+0x117b5, %rdi nop nop nop cmp $5501, %r12 mov $44, %rcx rep movsl nop nop nop nop xor %rbp, %rbp lea addresses_D_ht+0xa246, %r13 clflush (%r13) nop nop nop nop and %r10, %r10 mov (%r13), %r12d nop nop nop nop nop sub $9921, %rcx lea addresses_WT_ht+0x14ab5, %rsi inc %r8 mov $0x6162636465666768, %r13 movq %r13, (%rsi) nop nop nop nop nop add $30025, %r12 lea addresses_normal_ht+0x1a881, %rcx nop nop inc %r8 movb (%rcx), %r12b nop nop and $59108, %rsi lea addresses_normal_ht+0x1afb5, %rsi lea addresses_WC_ht+0x1d2e5, %rdi nop nop nop nop cmp %r10, %r10 mov $72, %rcx rep movsq nop nop nop xor %r12, %r12 lea addresses_UC_ht+0x10e35, %rsi lea addresses_WC_ht+0x191b5, %rdi nop nop nop nop cmp %r8, %r8 mov $45, %rcx rep movsl nop nop nop xor $21800, %rsi lea addresses_normal_ht+0x68b5, %rcx nop nop nop nop inc %rdi vmovups (%rcx), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $0, %xmm5, %r13 nop nop add %r8, %r8 pop %rsi pop %rdi pop %rcx pop %rbp pop %r8 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r15 push %r9 push %rbp push %rcx // Store lea addresses_WC+0x223d, %r11 nop nop nop nop cmp %r9, %r9 movw $0x5152, (%r11) dec %r11 // Store lea addresses_WC+0x12d25, %r9 nop nop nop and $62297, %r13 movl $0x51525354, (%r9) inc %r9 // Store lea addresses_PSE+0xebf9, %r15 nop cmp $17258, %rcx movb $0x51, (%r15) nop nop nop cmp %r11, %r11 // Store lea addresses_PSE+0x22b5, %rcx nop nop nop nop and $44587, %r11 movl $0x51525354, (%rcx) nop nop nop nop nop xor %rbp, %rbp // Faulty Load lea addresses_WC+0x64b5, %r11 clflush (%r11) xor %r13, %r13 movb (%r11), %r9b lea oracles, %r11 and $0xff, %r9 shlq $12, %r9 mov (%r11,%r9,1), %r9 pop %rcx pop %rbp pop %r9 pop %r15 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 4}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 2}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 8}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}, 'dst': {'same': True, 'congruent': 8, 'type': 'addresses_WT_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_WC_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_A_ht'}, 'dst': {'same': True, 'congruent': 3, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 8}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 6}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 11}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}, 'dst': {'same': True, 'congruent': 7, 'type': 'addresses_WC_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 8}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 1}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_UC_ht'}, 'dst': {'same': True, 'congruent': 8, 'type': 'addresses_WC_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10}} {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
; A212714: Number of (w,x,y,z) with all terms in {1,...,n} and |w-x| >= w + |y-z|. ; 0,0,2,10,32,78,162,300,512,820,1250,1830,2592,3570,4802,6328,8192,10440,13122,16290,20000,24310,29282,34980,41472,48828,57122,66430,76832,88410,101250,115440,131072,148240,167042,187578,209952,234270,260642,289180,320000,353220,388962,427350,468512,512578,559682,609960,663552,720600,781250,845650,913952,986310,1062882,1143828,1229312,1319500,1414562,1514670,1620000,1730730,1847042,1969120,2097152,2231328,2371842,2518890,2672672,2833390,3001250,3176460,3359232,3549780,3748322,3955078,4170272,4394130,4626882,4868760,5120000,5380840,5651522,5932290,6223392,6525078,6837602,7161220,7496192,7842780,8201250,8571870,8954912,9350650,9759362,10181328,10616832,11066160,11529602,12007450,12500000,13007550,13530402,14068860,14623232,15193828,15780962,16384950,17006112,17644770,18301250,18975880,19668992,20380920,21112002,21862578,22632992,23423590,24234722,25066740,25920000,26794860,27691682,28610830,29552672,30517578,31505922,32518080,33554432,34615360,35701250,36812490,37949472,39112590,40302242,41518828,42762752,44034420,45334242,46662630,48020000,49406770,50823362,52270200,53747712,55256328,56796482,58368610,59973152,61610550,63281250,64985700,66724352,68497660,70306082,72150078,74030112,75946650,77900162,79891120,81920000,83987280,86093442,88238970,90424352,92650078,94916642,97224540,99574272,101966340,104401250,106879510,109401632,111968130,114579522,117236328,119939072,122688280,125484482,128328210,131220000,134160390,137149922,140189140,143278592,146418828,149610402,152853870,156149792,159498730,162901250,166357920,169869312,173436000,177058562,180737578,184473632,188267310,192119202,196029900,200000000,204030100,208120802,212272710,216486432,220762578,225101762,229504600,233971712,238503720,243101250,247764930,252495392,257293270,262159202,267093828,272097792,277171740,282316322,287532190,292820000,298180410,303614082,309121680,314703872,320361328,326094722,331904730,337792032,343757310,349801250,355924540,362127872,368411940,374777442,381225078,387755552,394369570,401067842,407851080,414720000,421675320,428717762,435848050,443066912,450375078,457773282,465262260,472842752,480515500 pow $0,4 div $0,8 mov $1,$0
; A168642: a(n) = (8*2^n + (-1)^n)/3 for n > 0; a(0) = 1. ; 1,5,11,21,43,85,171,341,683,1365,2731,5461,10923,21845,43691,87381,174763,349525,699051,1398101,2796203,5592405,11184811,22369621,44739243,89478485,178956971,357913941,715827883,1431655765,2863311531,5726623061,11453246123,22906492245,45812984491,91625968981,183251937963,366503875925,733007751851,1466015503701,2932031007403,5864062014805,11728124029611,23456248059221,46912496118443,93824992236885,187649984473771,375299968947541,750599937895083,1501199875790165,3002399751580331,6004799503160661 mov $2,$0 lpb $2 add $0,3 mov $1,2 pow $1,$0 sub $2,$2 lpe div $1,6 mul $1,2 add $1,1
;Encrypt Function push ebp mov ebp,esp mov eax, 4;this can be any number and will encrypt the number then store it in ebx sub eax, 0x18 xor eax, 0x7a69 not eax xor eax, 0x11e61 xor eax, 0x37 add eax, 0x26 mov ebx, eax ;Decrypt sub eax, 0x26;this takes the encrypted number from eax and decrpts it, in the registers you can can compare the number as it is being decrypted and the decrypted number is stored in eax xor eax, 0x37 xor eax, 0x11e61 not eax xor eax, 0x7a69 add eax, 0x18 pop ebp ret
/*Exercise 3 - Repeatition Convert the C program given below which calculates the Factorial of a number that you input from the keyboard to a C++ program. Please Note that the input command in C++ is std::cin. This is a representation of the Keyboard.*/ #include <iostream> int main() { int no; long fac; std::cout << "Enter a Number : "; std::cin >> no; fac = 1; for (int r=no; r >= 1; r--) { fac = fac * r; } std::cout <<"Factorial of " << no << " is " << fac << std::endl; return 0; }
//===--- SerializedDiagnosticConsumer.cpp - Serialize Diagnostics ---------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// // // This file implements the SerializedDiagnosticConsumer class. // //===----------------------------------------------------------------------===// #include "swift/Frontend/SerializedDiagnosticConsumer.h" #include "swift/AST/DiagnosticConsumer.h" #include "swift/AST/DiagnosticsFrontend.h" #include "swift/Basic/LLVM.h" #include "swift/Basic/SourceManager.h" #include "swift/Frontend/PrintingDiagnosticConsumer.h" #include "swift/Parse/Lexer.h" #include "llvm/ADT/StringRef.h" #include "llvm/ADT/Twine.h" #include "llvm/ADT/DenseMap.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/raw_ostream.h" #include "llvm/ADT/IntrusiveRefCntPtr.h" #include "llvm/ADT/SmallString.h" #include "llvm/Bitcode/BitstreamWriter.h" // For constant values only. #include "clang/Frontend/SerializedDiagnosticPrinter.h" using namespace swift; //===----------------------------------------------------------------------===// // These must match Clang's diagnostic IDs. We can consider sharing the // header files to avoid this copy-paste. //===----------------------------------------------------------------------===// enum BlockIDs { /// \brief A top-level block which represents any meta data associated /// with the diagnostics, including versioning of the format. BLOCK_META = llvm::bitc::FIRST_APPLICATION_BLOCKID, /// \brief The this block acts as a container for all the information /// for a specific diagnostic. BLOCK_DIAG }; enum RecordIDs { RECORD_VERSION = 1, RECORD_DIAG, RECORD_SOURCE_RANGE, RECORD_DIAG_FLAG, RECORD_CATEGORY, RECORD_FILENAME, RECORD_FIXIT, RECORD_FIRST = RECORD_VERSION, RECORD_LAST = RECORD_FIXIT }; //===----------------------------------------------------------------------===// namespace { class AbbreviationMap { llvm::DenseMap<unsigned, unsigned> Abbrevs; public: AbbreviationMap() {} void set(unsigned recordID, unsigned abbrevID) { assert(Abbrevs.find(recordID) == Abbrevs.end() && "Abbreviation already set."); Abbrevs[recordID] = abbrevID; } unsigned get(unsigned recordID) { assert(Abbrevs.find(recordID) != Abbrevs.end() && "Abbreviation not set."); return Abbrevs[recordID]; } }; using RecordData = SmallVector<uint64_t, 64>; using RecordDataImpl = SmallVectorImpl<uint64_t>; struct SharedState : llvm::RefCountedBase<SharedState> { SharedState(StringRef serializedDiagnosticsPath) : Stream(Buffer), SerializedDiagnosticsPath(serializedDiagnosticsPath), EmittedAnyDiagBlocks(false) {} /// \brief The byte buffer for the serialized content. llvm::SmallString<1024> Buffer; /// \brief The BitStreamWriter for the serialized diagnostics. llvm::BitstreamWriter Stream; /// \brief The path of the diagnostics file. std::string SerializedDiagnosticsPath; /// \brief The set of constructed record abbreviations. AbbreviationMap Abbrevs; /// \brief A utility buffer for constructing record content. RecordData Record; /// \brief A text buffer for rendering diagnostic text. llvm::SmallString<256> diagBuf; /// \brief The collection of files used. llvm::DenseMap<const char *, unsigned> Files; using DiagFlagsTy = llvm::DenseMap<const void *, std::pair<unsigned, StringRef>>; /// \brief Map for uniquing strings. DiagFlagsTy DiagFlags; /// \brief Whether we have already started emission of any DIAG blocks. Once /// this becomes \c true, we never close a DIAG block until we know that we're /// starting another one or we're done. bool EmittedAnyDiagBlocks; }; /// \brief Diagnostic consumer that serializes diagnostics to a stream. class SerializedDiagnosticConsumer : public DiagnosticConsumer { /// \brief State shared among the various clones of this diagnostic consumer. llvm::IntrusiveRefCntPtr<SharedState> State; bool CalledFinishProcessing = false; public: SerializedDiagnosticConsumer(StringRef serializedDiagnosticsPath) : State(new SharedState(serializedDiagnosticsPath)) { emitPreamble(); } ~SerializedDiagnosticConsumer() { assert(CalledFinishProcessing && "did not call finishProcessing()"); } bool finishProcessing() override { assert(!CalledFinishProcessing && "called finishProcessing() multiple times"); CalledFinishProcessing = true; // NOTE: clang also does check for shared instances. We don't // have these yet in Swift, but if we do we need to add an extra // check here. // Finish off any diagnostic we were in the process of emitting. if (State->EmittedAnyDiagBlocks) exitDiagBlock(); // Write the generated bitstream to the file. std::error_code EC; std::unique_ptr<llvm::raw_fd_ostream> OS; OS.reset(new llvm::raw_fd_ostream(State->SerializedDiagnosticsPath, EC, llvm::sys::fs::F_None)); if (EC) { // Create a temporary diagnostics engine to print the error to stderr. SourceManager dummyMgr; DiagnosticEngine DE(dummyMgr); PrintingDiagnosticConsumer PDC; DE.addConsumer(PDC); DE.diagnose(SourceLoc(), diag::cannot_open_serialized_file, State->SerializedDiagnosticsPath, EC.message()); return true; } OS->write((char *)&State->Buffer.front(), State->Buffer.size()); OS->flush(); return false; } void handleDiagnostic(SourceManager &SM, SourceLoc Loc, DiagnosticKind Kind, StringRef FormatString, ArrayRef<DiagnosticArgument> FormatArgs, const DiagnosticInfo &Info) override; /// \brief The version of the diagnostics file. enum { Version = 1 }; private: /// \brief Emit bitcode for the preamble. void emitPreamble(); /// \brief Emit bitcode for the BlockInfoBlock (part of the preamble). void emitBlockInfoBlock(); /// \brief Emit bitcode for metadata block (part of preamble). void emitMetaBlock(); /// \brief Emit bitcode to enter a block for a diagnostic. void enterDiagBlock() { State->Stream.EnterSubblock(BLOCK_DIAG, 4); } /// \brief Emit bitcode to exit a block for a diagnostic. void exitDiagBlock() { State->Stream.ExitBlock(); } // Record identifier for the file. unsigned getEmitFile(StringRef Filename); /// \brief Add a source location to a record. void addLocToRecord(SourceLoc Loc, SourceManager &SM, StringRef Filename, RecordDataImpl &Record); void addRangeToRecord(CharSourceRange Range, SourceManager &SM, StringRef Filename, RecordDataImpl &Record); /// \brief Emit the message payload of a diagnostic to bitcode. void emitDiagnosticMessage(SourceManager &SM, SourceLoc Loc, DiagnosticKind Kind, StringRef Text, const DiagnosticInfo &Info); }; } // end anonymous namespace namespace swift { namespace serialized_diagnostics { std::unique_ptr<DiagnosticConsumer> createConsumer(StringRef outputPath) { return llvm::make_unique<SerializedDiagnosticConsumer>(outputPath); } } // namespace serialized_diagnostics } // namespace swift unsigned SerializedDiagnosticConsumer::getEmitFile(StringRef Filename) { // NOTE: Using Filename.data() here relies on SourceMgr using // const char* as buffer identifiers. This is fast, but may // be brittle. We can always switch over to using a StringMap. unsigned &entry = State->Files[Filename.data()]; if (entry) return entry; // Lazily generate the record for the file. Note that in // practice we only expect there to be one file, but this is // general and is what the diagnostic file expects. entry = State->Files.size(); RecordData Record; Record.push_back(RECORD_FILENAME); Record.push_back(entry); Record.push_back(0); // For legacy. Record.push_back(0); // For legacy. Record.push_back(Filename.size()); State->Stream.EmitRecordWithBlob(State->Abbrevs.get(RECORD_FILENAME), Record, Filename.data()); return entry; } void SerializedDiagnosticConsumer::addLocToRecord(SourceLoc Loc, SourceManager &SM, StringRef Filename, RecordDataImpl &Record) { if (!Loc.isValid()) { // Emit a "sentinel" location. Record.push_back((unsigned)0); // File. Record.push_back((unsigned)0); // Line. Record.push_back((unsigned)0); // Column. Record.push_back((unsigned)0); // Offset. return; } auto bufferId = SM.findBufferContainingLoc(Loc); unsigned line, col; std::tie(line, col) = SM.getLineAndColumn(Loc); Record.push_back(getEmitFile(Filename)); Record.push_back(line); Record.push_back(col); Record.push_back(SM.getLocOffsetInBuffer(Loc, bufferId)); } void SerializedDiagnosticConsumer::addRangeToRecord(CharSourceRange Range, SourceManager &SM, StringRef Filename, RecordDataImpl &Record) { assert(Range.isValid()); addLocToRecord(Range.getStart(), SM, Filename, Record); addLocToRecord(Range.getEnd(), SM, Filename, Record); } /// \brief Map a Swift DiagnosticKind to the diagnostic level expected /// for serialized diagnostics. static clang::serialized_diags::Level getDiagnosticLevel(DiagnosticKind Kind) { switch (Kind) { case DiagnosticKind::Error: return clang::serialized_diags::Error; case DiagnosticKind::Note: return clang::serialized_diags::Note; case DiagnosticKind::Warning: return clang::serialized_diags::Warning; case DiagnosticKind::Remark: return clang::serialized_diags::Remark; } llvm_unreachable("Unhandled DiagnosticKind in switch."); } void SerializedDiagnosticConsumer::emitPreamble() { State->Stream.Emit((unsigned)'D', 8); State->Stream.Emit((unsigned)'I', 8); State->Stream.Emit((unsigned)'A', 8); State->Stream.Emit((unsigned)'G', 8); emitBlockInfoBlock(); emitMetaBlock(); } void SerializedDiagnosticConsumer::emitMetaBlock() { llvm::BitstreamWriter &Stream = State->Stream; RecordData &Record = State->Record; AbbreviationMap &Abbrevs = State->Abbrevs; Stream.EnterSubblock(BLOCK_META, 3); Record.clear(); Record.push_back(RECORD_VERSION); Record.push_back(Version); Stream.EmitRecordWithAbbrev(Abbrevs.get(RECORD_VERSION), Record); Stream.ExitBlock(); } /// \brief Emits a block ID in the BLOCKINFO block. static void emitBlockID(unsigned ID, const char *Name, llvm::BitstreamWriter &Stream, RecordDataImpl &Record) { Record.clear(); Record.push_back(ID); Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_SETBID, Record); // Emit the block name if present. if (Name == nullptr || Name[0] == 0) return; Record.clear(); while (*Name) Record.push_back(*Name++); Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_BLOCKNAME, Record); } /// \brief Emits a record ID in the BLOCKINFO block. static void emitRecordID(unsigned ID, const char *Name, llvm::BitstreamWriter &Stream, RecordDataImpl &Record) { Record.clear(); Record.push_back(ID); while (*Name) Record.push_back(*Name++); Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_SETRECORDNAME, Record); } /// \brief Emit bitcode for abbreviation for source locations. static void addSourceLocationAbbrev(std::shared_ptr<llvm::BitCodeAbbrev> Abbrev) { using namespace llvm; Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 10)); // File ID. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Line. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Column. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Offset; } /// \brief Emit bitcode for abbreviation for source ranges. static void addRangeLocationAbbrev(std::shared_ptr<llvm::BitCodeAbbrev> Abbrev) { addSourceLocationAbbrev(Abbrev); addSourceLocationAbbrev(Abbrev); } void SerializedDiagnosticConsumer::emitBlockInfoBlock() { State->Stream.EnterBlockInfoBlock(); using namespace llvm; llvm::BitstreamWriter &Stream = State->Stream; RecordData &Record = State->Record; AbbreviationMap &Abbrevs = State->Abbrevs; // ==---------------------------------------------------------------------==// // The subsequent records and Abbrevs are for the "Meta" block. // ==---------------------------------------------------------------------==// emitBlockID(BLOCK_META, "Meta", Stream, Record); emitRecordID(RECORD_VERSION, "Version", Stream, Record); auto Abbrev = std::make_shared<BitCodeAbbrev>(); Abbrev->Add(BitCodeAbbrevOp(RECORD_VERSION)); Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); Abbrevs.set(RECORD_VERSION, Stream.EmitBlockInfoAbbrev(BLOCK_META, Abbrev)); // ==---------------------------------------------------------------------==// // The subsequent records and Abbrevs are for the "Diagnostic" block. // ==---------------------------------------------------------------------==// emitBlockID(BLOCK_DIAG, "Diag", Stream, Record); emitRecordID(RECORD_DIAG, "DiagInfo", Stream, Record); emitRecordID(RECORD_SOURCE_RANGE, "SrcRange", Stream, Record); emitRecordID(RECORD_CATEGORY, "CatName", Stream, Record); emitRecordID(RECORD_DIAG_FLAG, "DiagFlag", Stream, Record); emitRecordID(RECORD_FILENAME, "FileName", Stream, Record); emitRecordID(RECORD_FIXIT, "FixIt", Stream, Record); // Emit abbreviation for RECORD_DIAG. Abbrev = std::make_shared<BitCodeAbbrev>(); Abbrev->Add(BitCodeAbbrevOp(RECORD_DIAG)); Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 3)); // Diag level. addSourceLocationAbbrev(Abbrev); Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 10)); // Category. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 10)); // Mapped Diag ID. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 16)); // Text size. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); // Diagnostic text. Abbrevs.set(RECORD_DIAG, Stream.EmitBlockInfoAbbrev(BLOCK_DIAG, Abbrev)); // Emit abbreviation for RECORD_CATEGORY. Abbrev = std::make_shared<BitCodeAbbrev>(); Abbrev->Add(BitCodeAbbrevOp(RECORD_CATEGORY)); Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 16)); // Category ID. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 8)); // Text size. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); // Category text. Abbrevs.set(RECORD_CATEGORY, Stream.EmitBlockInfoAbbrev(BLOCK_DIAG, Abbrev)); // Emit abbreviation for RECORD_SOURCE_RANGE. Abbrev = std::make_shared<BitCodeAbbrev>(); Abbrev->Add(BitCodeAbbrevOp(RECORD_SOURCE_RANGE)); addRangeLocationAbbrev(Abbrev); Abbrevs.set(RECORD_SOURCE_RANGE, Stream.EmitBlockInfoAbbrev(BLOCK_DIAG, Abbrev)); // Emit the abbreviation for RECORD_DIAG_FLAG. Abbrev = std::make_shared<BitCodeAbbrev>(); Abbrev->Add(BitCodeAbbrevOp(RECORD_DIAG_FLAG)); Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 10)); // Mapped Diag ID. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 16)); // Text size. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); // Flag name text. Abbrevs.set(RECORD_DIAG_FLAG, Stream.EmitBlockInfoAbbrev(BLOCK_DIAG, Abbrev)); // Emit the abbreviation for RECORD_FILENAME. Abbrev = std::make_shared<BitCodeAbbrev>(); Abbrev->Add(BitCodeAbbrevOp(RECORD_FILENAME)); Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 10)); // Mapped file ID. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Size. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Modification time. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 16)); // Text size. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); // File name text. Abbrevs.set(RECORD_FILENAME, Stream.EmitBlockInfoAbbrev(BLOCK_DIAG, Abbrev)); // Emit the abbreviation for RECORD_FIXIT. Abbrev = std::make_shared<BitCodeAbbrev>(); Abbrev->Add(BitCodeAbbrevOp(RECORD_FIXIT)); addRangeLocationAbbrev(Abbrev); Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 16)); // Text size. Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); // FixIt text. Abbrevs.set(RECORD_FIXIT, Stream.EmitBlockInfoAbbrev(BLOCK_DIAG, Abbrev)); Stream.ExitBlock(); } void SerializedDiagnosticConsumer:: emitDiagnosticMessage(SourceManager &SM, SourceLoc Loc, DiagnosticKind Kind, StringRef Text, const DiagnosticInfo &Info) { // Emit the diagnostic to bitcode. llvm::BitstreamWriter &Stream = State->Stream; RecordData &Record = State->Record; AbbreviationMap &Abbrevs = State->Abbrevs; StringRef filename = ""; if (Loc.isValid()) filename = SM.getIdentifierForBuffer(SM.findBufferContainingLoc(Loc)); // Emit the RECORD_DIAG record. Record.clear(); Record.push_back(RECORD_DIAG); Record.push_back(getDiagnosticLevel(Kind)); addLocToRecord(Loc, SM, filename, Record); // FIXME: Swift diagnostics currently have no category. Record.push_back(0); // FIXME: Swift diagnostics currently have no flags. Record.push_back(0); // Emit the message. Record.push_back(Text.size()); Stream.EmitRecordWithBlob(Abbrevs.get(RECORD_DIAG), Record, Text); // If the location is invalid, do not emit source ranges or fixits. if (Loc.isInvalid()) return; // Emit source ranges. auto RangeAbbrev = State->Abbrevs.get(RECORD_SOURCE_RANGE); for (const auto &R : Info.Ranges) { if (R.isInvalid()) continue; State->Record.clear(); State->Record.push_back(RECORD_SOURCE_RANGE); addRangeToRecord(R, SM, filename, State->Record); State->Stream.EmitRecordWithAbbrev(RangeAbbrev, State->Record); } // Emit FixIts. auto FixItAbbrev = State->Abbrevs.get(RECORD_FIXIT); for (const auto &F : Info.FixIts) { if (F.getRange().isValid()) { State->Record.clear(); State->Record.push_back(RECORD_FIXIT); addRangeToRecord(F.getRange(), SM, filename, State->Record); State->Record.push_back(F.getText().size()); Stream.EmitRecordWithBlob(FixItAbbrev, Record, F.getText()); } } } void SerializedDiagnosticConsumer::handleDiagnostic( SourceManager &SM, SourceLoc Loc, DiagnosticKind Kind, StringRef FormatString, ArrayRef<DiagnosticArgument> FormatArgs, const DiagnosticInfo &Info) { // Enter the block for a non-note diagnostic immediately, rather // than waiting for beginDiagnostic, in case associated notes // are emitted before we get there. if (Kind != DiagnosticKind::Note) { if (State->EmittedAnyDiagBlocks) exitDiagBlock(); enterDiagBlock(); State->EmittedAnyDiagBlocks = true; } // Special-case diagnostics with no location. // Make sure we bracket all notes as "sub-diagnostics". bool bracketDiagnostic = (Kind == DiagnosticKind::Note); if (bracketDiagnostic) enterDiagBlock(); // Actually substitute the diagnostic arguments into the diagnostic text. llvm::SmallString<256> Text; { llvm::raw_svector_ostream Out(Text); DiagnosticEngine::formatDiagnosticText(Out, FormatString, FormatArgs); } emitDiagnosticMessage(SM, Loc, Kind, Text, Info); if (bracketDiagnostic) exitDiagBlock(); }
if not defined PRINT_BIN ; Input: HL ; Output: "+(2^+exp)*1.mant issa" ; Pollutes: nothing PRINT_BIN: PUSH AF ; 1:11 PUSH BC ; 1:11 PUSH DE ; 1:11 PUSH HL ; 1:11 ADD HL, HL ; 1:11 Sign LD A, $95 ; 2:7 ADC A, $00 ; 2:7 $95, $96 RLCA ; 1:4 $2B = '+', $2D = '-' LD (PRINT_BIN_STR), A ; 3:13 XOR A ; 1:4 LD B, EXP_BITS ; 2:7 PRINT_BIN_READ_EXP: ADD HL, HL ; 1:11 ADC A, A ; 1:4 DJNZ PRINT_BIN_READ_EXP ; 2:13/8 EX DE, HL ; 1:4 Save HL LD HL, PRINT_BIN_EXP ; 3:10 LD (HL), '+' ; 2:10 $2B SUB BIAS / EXP_PLUS_ONE ; 2:7 JR nc, PRINT_BIN_PEXP ; 2:12/7 LD (HL), '-' ; 2:10 $2D NEG ; 2:8 PRINT_BIN_PEXP: INC HL ; 1:6 LD B, $0A ; 2:7 CALL A_DIV_B ; 3:17 ADD A, '0' ; 2:7 LD (HL), A ; 1:7 EX DE, HL ; 1:4 LD DE, PRINT_BIN_MAN_0 ; 3:10 LD B, $04 ; 2:7 CALL PRINT_BIN_MANTISSA ; 3:17 LD DE, PRINT_BIN_MAN_4 ; 3:10 LD B, $04 ; 2:7 CALL PRINT_BIN_MANTISSA ; 3:17 LD DE, PRINT_BIN_MAN_8 ; 3:10 LD B, MANT_BITS-$08 ; 2:7 CALL PRINT_BIN_MANTISSA ; 3:17 LD L, $1A ; 2:7 Upper screen CALL $1605 ; 3:17 Open channel LD DE, PRINT_BIN_STR ; 3:10 Address of string LD BC, PRINT_BIN_LEN-1 ; 3:10 Length-1 of string to print CALL $2040 ; 3:17 Print our string POP HL ; 1:10 POP DE ; 1:10 POP BC ; 1:10 POP AF ; 1:10 ; HALT ; HALT RET ; 1:10 ; In: DE Address, B number bits, HL source ; Out: DE += B, B = 0 PRINT_BIN_MANTISSA: XOR A ; 1:4 ADD HL, HL ; 1:11 ADC A, '0' ; 2:7 $30, $31 LD (DE), A ; 1:7 INC DE ; 1:6 DJNZ PRINT_BIN_MANTISSA ; 2:13/8 RET ; 1:10 ; In: A, B, HL = Adress ; Out: C = '0' + A / B, A = A mod B, HL++ A_DIV_B: LD C, '0'-1 ; 2:7 A_DIV_B_LOOP: INC C ; 1:4 SUB B ; 1:4 JR nc, A_DIV_B_LOOP ; 2:12/7 LD (HL), C ; 1:7 INC HL ; 1:6 ADD A, B ; 1:4 RET ; 1:10 PRINT_BIN_STR: DEFB '+(2', $5E PRINT_BIN_EXP: DEFB '+00)*1.' PRINT_BIN_MAN_0: DEFS 4 DEFB BRIGHT, 1, ' ' PRINT_BIN_MAN_4: DEFS 4 DEFB BRIGHT, 0, ' ' PRINT_BIN_MAN_8: DEFS MANT_BITS-8 PRINT_BIN_LEN EQU $-PRINT_BIN_STR endif
;------------------------------------------------------------------------------ ; ; Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR> ; SPDX-License-Identifier: BSD-2-Clause-Patent ; ; Module Name: ; ; EnableCache.Asm ; ; Abstract: ; ; Flush all caches with a WBINVD instruction, clear the CD bit of CR0 to 0, and clear ; the NW bit of CR0 to 0 ; ; Notes: ; ;------------------------------------------------------------------------------ DEFAULT REL SECTION .text ;------------------------------------------------------------------------------ ; VOID ; EFIAPI ; AsmEnableCache ( ; VOID ; ); ;------------------------------------------------------------------------------ global ASM_PFX(AsmEnableCache) ASM_PFX(AsmEnableCache): wbinvd mov rax, cr0 btr rax, 29 btr rax, 30 mov cr0, rax ret
; A175454: a(n) = number of divisors of n(n+1) that divide neither n nor n+1. ; Submitted by Jon Maiga ; 0,1,2,2,3,3,3,6,6,3,5,5,3,9,12,4,5,5,5,15,9,3,7,14,6,9,15,5,7,7,5,15,9,9,24,8,3,9,21,7,7,7,5,25,15,3,9,18,10,15,15,5,7,21,21,21,9,3,11,11,3,15,30,18,21,7,5,15,21,7,11,11,3,15,25,15,21,7,9,36,12,3,11,33,9,9,21,7,11,33,15,15,9,9,33,11,5,25,40,8 mov $2,$0 mov $3,2 lpb $3 mov $0,$2 add $1,$4 sub $3,1 add $0,$3 max $0,0 seq $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n. sub $0,1 mov $4,$0 lpe mul $1,$0 mov $0,$1
; A120152: a(1)=6; a(n)=floor((19+sum(a(1) to a(n-1)))/3). ; 6,8,11,14,19,25,34,45,60,80,107,142,190,253,337,450,600,800,1066,1422,1896,2528,3370,4494,5992,7989,10652,14203,18937,25249,33666,44888,59850,79800,106400,141867,189156,252208,336277,448370 mov $1,1 mov $2,1 lpb $0 sub $0,1 add $2,$1 mov $1,8 add $1,$2 div $1,3 add $2,5 lpe add $1,5 mov $0,$1
// ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_PrimalItemAmmo_ArrowStone_parameters.hpp" namespace sdk { //--------------------------------------------------------------------------- //Functions //--------------------------------------------------------------------------- // Function PrimalItemAmmo_ArrowStone.PrimalItemAmmo_ArrowStone_C.ExecuteUbergraph_PrimalItemAmmo_ArrowStone // () // Parameters: // int EntryPoint (Parm, ZeroConstructor, IsPlainOldData) void UPrimalItemAmmo_ArrowStone_C::ExecuteUbergraph_PrimalItemAmmo_ArrowStone(int EntryPoint) { static auto fn = UObject::FindObject<UFunction>("Function PrimalItemAmmo_ArrowStone.PrimalItemAmmo_ArrowStone_C.ExecuteUbergraph_PrimalItemAmmo_ArrowStone"); UPrimalItemAmmo_ArrowStone_C_ExecuteUbergraph_PrimalItemAmmo_ArrowStone_Params params; params.EntryPoint = EntryPoint; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } } #ifdef _MSC_VER #pragma pack(pop) #endif
// Copyright (c) 2009-2019 Satoshi Nakamoto // Copyright (c) 2009-2019 The Bitcoin Developers // Copyright (c) 2013-2019 Emercoin Developers // Copyright (c) 2014-2019 The Dash Core Developers // Copyright (c) 2016-2019 Duality Blockchain Solutions Developers // Copyright (c) 2017-2019 Credits Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "primitives/transaction.h" #include "hash.h" #include "tinyformat.h" #include "utilstrencodings.h" std::string COutPoint::ToString() const { return strprintf("COutPoint(%s, %u)", hash.ToString()/*.substr(0,10)*/, n); } std::string COutPoint::ToStringShort() const { return strprintf("%s-%u", hash.ToString().substr(0,64), n); } CTxIn::CTxIn(COutPoint prevoutIn, CScript scriptSigIn, uint32_t nSequenceIn) { prevout = prevoutIn; scriptSig = scriptSigIn; nSequence = nSequenceIn; } CTxIn::CTxIn(uint256 hashPrevTx, uint32_t nOut, CScript scriptSigIn, uint32_t nSequenceIn) { prevout = COutPoint(hashPrevTx, nOut); scriptSig = scriptSigIn; nSequence = nSequenceIn; } std::string CTxIn::ToString() const { std::string str; str += "CTxIn("; str += prevout.ToString(); if (prevout.IsNull()) str += strprintf(", coinbase %s", HexStr(scriptSig)); else str += strprintf(", scriptSig=%s", HexStr(scriptSig).substr(0, 24)); if (nSequence != SEQUENCE_FINAL) str += strprintf(", nSequence=%u", nSequence); str += ")"; return str; } CTxOut::CTxOut(const CAmount& nValueIn, CScript scriptPubKeyIn) { nValue = nValueIn; scriptPubKey = scriptPubKeyIn; nRounds = -10; } uint256 CTxOut::GetHash() const { return SerializeHash(*this); } std::string CTxOut::ToString() const { return strprintf("CTxOut(nValue=%d.%08d, scriptPubKey=%s)", nValue / COIN, nValue % COIN, HexStr(scriptPubKey).substr(0, 30)); } CMutableTransaction::CMutableTransaction() : nVersion(CTransaction::CURRENT_VERSION), nLockTime(0) {} CMutableTransaction::CMutableTransaction(const CTransaction& tx) : nVersion(tx.nVersion), vin(tx.vin), vout(tx.vout), nLockTime(tx.nLockTime) {} uint256 CMutableTransaction::GetHash() const { return SerializeHash(*this); } std::string CMutableTransaction::ToString() const { std::string str; str += strprintf("CMutableTransaction(hash=%s, ver=%d, vin.size=%u, vout.size=%u, nLockTime=%u)\n", GetHash().ToString().substr(0,10), nVersion, vin.size(), vout.size(), nLockTime); for (unsigned int i = 0; i < vin.size(); i++) str += " " + vin[i].ToString() + "\n"; for (unsigned int i = 0; i < vout.size(); i++) str += " " + vout[i].ToString() + "\n"; return str; } void CTransaction::UpdateHash() const { *const_cast<uint256*>(&hash) = SerializeHash(*this); } CTransaction::CTransaction() : nVersion(CTransaction::CURRENT_VERSION), vin(), vout(), nLockTime(0) { } CTransaction::CTransaction(const CMutableTransaction &tx) : nVersion(tx.nVersion), vin(tx.vin), vout(tx.vout), nLockTime(tx.nLockTime) { UpdateHash(); } CTransaction& CTransaction::operator=(const CTransaction &tx) { *const_cast<int*>(&nVersion) = tx.nVersion; *const_cast<std::vector<CTxIn>*>(&vin) = tx.vin; *const_cast<std::vector<CTxOut>*>(&vout) = tx.vout; *const_cast<unsigned int*>(&nLockTime) = tx.nLockTime; *const_cast<uint256*>(&hash) = tx.hash; return *this; } CAmount CTransaction::GetValueOut() const { CAmount nValueOut = 0; for (std::vector<CTxOut>::const_iterator it(vout.begin()); it != vout.end(); ++it) { nValueOut += it->nValue; if (!MoneyRange(it->nValue) || !MoneyRange(nValueOut)) throw std::runtime_error("CTransaction::GetValueOut(): value out of range"); } return nValueOut; } double CTransaction::ComputePriority(double dPriorityInputs, unsigned int nTxSize) const { nTxSize = CalculateModifiedSize(nTxSize); if (nTxSize == 0) return 0.0; return dPriorityInputs / nTxSize; } unsigned int CTransaction::CalculateModifiedSize(unsigned int nTxSize) const { // In order to avoid disincentivizing cleaning up the UTXO set we don't count // the constant overhead for each txin and up to 110 bytes of scriptSig (which // is enough to cover a compressed pubkey p2sh redemption) for priority. // Providing any more cleanup incentive than making additional inputs free would // risk encouraging people to create junk outputs to redeem later. if (nTxSize == 0) nTxSize = ::GetSerializeSize(*this, SER_NETWORK, PROTOCOL_VERSION); for (std::vector<CTxIn>::const_iterator it(vin.begin()); it != vin.end(); ++it) { unsigned int offset = 41U + std::min(110U, (unsigned int)it->scriptSig.size()); if (nTxSize > offset) nTxSize -= offset; } return nTxSize; } std::string CTransaction::ToString() const { std::string str; str += strprintf("CTransaction(hash=%s, ver=%d, vin.size=%u, vout.size=%u, nLockTime=%u)\n", GetHash().ToString().substr(0,10), nVersion, vin.size(), vout.size(), nLockTime); for (unsigned int i = 0; i < vin.size(); i++) str += " " + vin[i].ToString() + "\n"; for (unsigned int i = 0; i < vout.size(); i++) str += " " + vout[i].ToString() + "\n"; return str; }
;-----------------------------------------------------------------------------; ; Author: Ty Miller @ Threat Intelligence ; Compatible: Windows 7, 2008, Vista, 2003, XP, 2000, NT4 ; Version: 1.0 (2nd December 2011) ;-----------------------------------------------------------------------------; [BITS 32] ; Input: None ; Output: None. Sleeps for specified seconds. ; Clobbers: None push 1000 ; milliseconds push 0xE035F044 ; hash (kernel32.dll, Sleep) call ebp ; Sleep(1000ms)
// AUTOGENERATED FILE - DO NOT MODIFY! // This file generated by Djinni from http_client.djinni #include "HttpClient.hpp" // my header #include "HttpRequest.hpp" namespace djinni_generated { HttpClient::HttpClient() : ::djinni::JniInterface<::ledger::core::api::HttpClient, HttpClient>() {} HttpClient::~HttpClient() = default; HttpClient::JavaProxy::JavaProxy(JniType j) : Handle(::djinni::jniGetThreadEnv(), j) { } HttpClient::JavaProxy::~JavaProxy() = default; void HttpClient::JavaProxy::execute(const std::shared_ptr<::ledger::core::api::HttpRequest> & c_request) { auto jniEnv = ::djinni::jniGetThreadEnv(); ::djinni::JniLocalScope jscope(jniEnv, 10); const auto& data = ::djinni::JniClass<::djinni_generated::HttpClient>::get(); jniEnv->CallVoidMethod(Handle::get().get(), data.method_execute, ::djinni::get(::djinni_generated::HttpRequest::fromCpp(jniEnv, c_request))); ::djinni::jniExceptionCheck(jniEnv); } } // namespace djinni_generated
; A173834: a(n)=10^n-2*n ; 1,8,96,994,9992,99990,999988,9999986,99999984,999999982,9999999980,99999999978,999999999976,9999999999974,99999999999972,999999999999970,9999999999999968,99999999999999966,999999999999999964,9999999999999999962,99999999999999999960,999999999999999999958,9999999999999999999956,99999999999999999999954,999999999999999999999952,9999999999999999999999950,99999999999999999999999948,999999999999999999999999946,9999999999999999999999999944,99999999999999999999999999942,999999999999999999999999999940 mov $1,10 pow $1,$0 sub $1,$0 sub $1,$0 mov $0,$1
// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availability visit https://mfem.org. // // MFEM is free software; you can redistribute it and/or modify it under the // terms of the BSD-3 license. We welcome feedback and contributions, see file // CONTRIBUTING.md for details. #include "../config/config.hpp" #ifdef MFEM_USE_MPI #include "linalg.hpp" #include "../fem/fem.hpp" #include <fstream> #include <iomanip> #include <cmath> #include <cstdlib> using namespace std; namespace mfem { template<typename TargetT, typename SourceT> static TargetT *DuplicateAs(const SourceT *array, int size, bool cplusplus = true) { TargetT *target_array = cplusplus ? (TargetT*) Memory<TargetT>(size) /* */ : mfem_hypre_TAlloc(TargetT, size); for (int i = 0; i < size; i++) { target_array[i] = array[i]; } return target_array; } inline void HypreParVector::_SetDataAndSize_() { SetDataAndSize(hypre_VectorData(hypre_ParVectorLocalVector(x)), internal::to_int( hypre_VectorSize(hypre_ParVectorLocalVector(x)))); } HypreParVector::HypreParVector(MPI_Comm comm, HYPRE_Int glob_size, HYPRE_Int *col) : Vector() { x = hypre_ParVectorCreate(comm,glob_size,col); hypre_ParVectorInitialize(x); hypre_ParVectorSetPartitioningOwner(x,0); // The data will be destroyed by hypre (this is the default) hypre_ParVectorSetDataOwner(x,1); hypre_SeqVectorSetDataOwner(hypre_ParVectorLocalVector(x),1); _SetDataAndSize_(); own_ParVector = 1; } HypreParVector::HypreParVector(MPI_Comm comm, HYPRE_Int glob_size, double *_data, HYPRE_Int *col) : Vector() { x = hypre_ParVectorCreate(comm,glob_size,col); hypre_ParVectorSetDataOwner(x,1); // owns the seq vector hypre_SeqVectorSetDataOwner(hypre_ParVectorLocalVector(x),0); hypre_ParVectorSetPartitioningOwner(x,0); double tmp = 0.0; hypre_VectorData(hypre_ParVectorLocalVector(x)) = &tmp; // If hypre_ParVectorLocalVector(x) and &tmp are non-NULL, // hypre_ParVectorInitialize(x) does not allocate memory! hypre_ParVectorInitialize(x); // Set the internal data array to the one passed in hypre_VectorData(hypre_ParVectorLocalVector(x)) = _data; _SetDataAndSize_(); own_ParVector = 1; } HypreParVector::HypreParVector(const HypreParVector &y) : Vector() { x = hypre_ParVectorCreate(y.x -> comm, y.x -> global_size, y.x -> partitioning); hypre_ParVectorInitialize(x); hypre_ParVectorSetPartitioningOwner(x,0); hypre_ParVectorSetDataOwner(x,1); hypre_SeqVectorSetDataOwner(hypre_ParVectorLocalVector(x),1); _SetDataAndSize_(); own_ParVector = 1; } HypreParVector::HypreParVector(const HypreParMatrix &A, int transpose) : Vector() { if (!transpose) { x = hypre_ParVectorInDomainOf(const_cast<HypreParMatrix&>(A)); } else { x = hypre_ParVectorInRangeOf(const_cast<HypreParMatrix&>(A)); } _SetDataAndSize_(); own_ParVector = 1; } HypreParVector::HypreParVector(HYPRE_ParVector y) : Vector() { x = (hypre_ParVector *) y; _SetDataAndSize_(); own_ParVector = 0; } HypreParVector::HypreParVector(ParFiniteElementSpace *pfes) { x = hypre_ParVectorCreate(pfes->GetComm(), pfes->GlobalTrueVSize(), pfes->GetTrueDofOffsets()); hypre_ParVectorInitialize(x); hypre_ParVectorSetPartitioningOwner(x,0); // The data will be destroyed by hypre (this is the default) hypre_ParVectorSetDataOwner(x,1); hypre_SeqVectorSetDataOwner(hypre_ParVectorLocalVector(x),1); _SetDataAndSize_(); own_ParVector = 1; } Vector * HypreParVector::GlobalVector() const { hypre_Vector *hv = hypre_ParVectorToVectorAll(*this); Vector *v = new Vector(hv->data, internal::to_int(hv->size)); v->MakeDataOwner(); hypre_SeqVectorSetDataOwner(hv,0); hypre_SeqVectorDestroy(hv); return v; } HypreParVector& HypreParVector::operator=(double d) { Vector::operator=(d); return *this; } HypreParVector& HypreParVector::operator=(const HypreParVector &y) { #ifdef MFEM_DEBUG if (size != y.Size()) { mfem_error("HypreParVector::operator="); } #endif Vector::operator=(y); return *this; } void HypreParVector::SetData(double *_data) { hypre_VectorData(hypre_ParVectorLocalVector(x)) = _data; Vector::SetData(_data); } HYPRE_Int HypreParVector::Randomize(HYPRE_Int seed) { return hypre_ParVectorSetRandomValues(x,seed); } void HypreParVector::Print(const char *fname) const { hypre_ParVectorPrint(x,fname); } HypreParVector::~HypreParVector() { if (own_ParVector) { hypre_ParVectorDestroy(x); } } #ifdef MFEM_USE_SUNDIALS void HypreParVector::ToNVector(N_Vector &nv) { MFEM_ASSERT(nv && N_VGetVectorID(nv) == SUNDIALS_NVEC_PARHYP, "invalid N_Vector"); N_VectorContent_ParHyp nv_c = (N_VectorContent_ParHyp)(nv->content); MFEM_ASSERT(nv_c->own_parvector == SUNFALSE, "invalid N_Vector"); nv_c->local_length = x->local_vector->size; nv_c->global_length = x->global_size; nv_c->comm = x->comm; nv_c->x = x; } #endif // MFEM_USE_SUNDIALS double InnerProduct(HypreParVector *x, HypreParVector *y) { return hypre_ParVectorInnerProd(*x, *y); } double InnerProduct(HypreParVector &x, HypreParVector &y) { return hypre_ParVectorInnerProd(x, y); } double ParNormlp(const Vector &vec, double p, MPI_Comm comm) { double norm = 0.0; if (p == 1.0) { double loc_norm = vec.Norml1(); MPI_Allreduce(&loc_norm, &norm, 1, MPI_DOUBLE, MPI_SUM, comm); } if (p == 2.0) { double loc_norm = vec*vec; MPI_Allreduce(&loc_norm, &norm, 1, MPI_DOUBLE, MPI_SUM, comm); norm = sqrt(norm); } if (p < infinity()) { double sum = 0.0; for (int i = 0; i < vec.Size(); i++) { sum += pow(fabs(vec(i)), p); } MPI_Allreduce(&sum, &norm, 1, MPI_DOUBLE, MPI_SUM, comm); norm = pow(norm, 1.0/p); } else { double loc_norm = vec.Normlinf(); MPI_Allreduce(&loc_norm, &norm, 1, MPI_DOUBLE, MPI_MAX, comm); } return norm; } void HypreParMatrix::Init() { A = NULL; X = Y = NULL; diagOwner = offdOwner = colMapOwner = -1; ParCSROwner = 1; } HypreParMatrix::HypreParMatrix() { Init(); height = width = 0; } char HypreParMatrix::CopyCSR(SparseMatrix *csr, hypre_CSRMatrix *hypre_csr) { hypre_CSRMatrixData(hypre_csr) = csr->GetData(); #ifndef HYPRE_BIGINT hypre_CSRMatrixI(hypre_csr) = csr->GetI(); hypre_CSRMatrixJ(hypre_csr) = csr->GetJ(); // Prevent hypre from destroying hypre_csr->{i,j,data} return 0; #else hypre_CSRMatrixI(hypre_csr) = DuplicateAs<HYPRE_Int>(csr->GetI(), csr->Height()+1); hypre_CSRMatrixJ(hypre_csr) = DuplicateAs<HYPRE_Int>(csr->GetJ(), csr->NumNonZeroElems()); // Prevent hypre from destroying hypre_csr->{i,j,data}, own {i,j} return 1; #endif } char HypreParMatrix::CopyBoolCSR(Table *bool_csr, hypre_CSRMatrix *hypre_csr) { int nnz = bool_csr->Size_of_connections(); double *data = new double[nnz]; for (int i = 0; i < nnz; i++) { data[i] = 1.0; } hypre_CSRMatrixData(hypre_csr) = data; #ifndef HYPRE_BIGINT hypre_CSRMatrixI(hypre_csr) = bool_csr->GetI(); hypre_CSRMatrixJ(hypre_csr) = bool_csr->GetJ(); // Prevent hypre from destroying hypre_csr->{i,j,data}, own {data} return 2; #else hypre_CSRMatrixI(hypre_csr) = DuplicateAs<HYPRE_Int>(bool_csr->GetI(), bool_csr->Size()+1); hypre_CSRMatrixJ(hypre_csr) = DuplicateAs<HYPRE_Int>(bool_csr->GetJ(), nnz); // Prevent hypre from destroying hypre_csr->{i,j,data}, own {i,j,data} return 3; #endif } void HypreParMatrix::CopyCSR_J(hypre_CSRMatrix *hypre_csr, int *J) { HYPRE_Int nnz = hypre_CSRMatrixNumNonzeros(hypre_csr); for (HYPRE_Int j = 0; j < nnz; j++) { J[j] = int(hypre_CSRMatrixJ(hypre_csr)[j]); } } // Square block-diagonal constructor (4 arguments, v1) HypreParMatrix::HypreParMatrix(MPI_Comm comm, HYPRE_Int glob_size, HYPRE_Int *row_starts, SparseMatrix *diag) : Operator(diag->Height(), diag->Width()) { Init(); A = hypre_ParCSRMatrixCreate(comm, glob_size, glob_size, row_starts, row_starts, 0, diag->NumNonZeroElems(), 0); hypre_ParCSRMatrixSetDataOwner(A,1); hypre_ParCSRMatrixSetRowStartsOwner(A,0); hypre_ParCSRMatrixSetColStartsOwner(A,0); hypre_CSRMatrixSetDataOwner(A->diag,0); diagOwner = CopyCSR(diag, A->diag); hypre_CSRMatrixSetRownnz(A->diag); hypre_CSRMatrixSetDataOwner(A->offd,1); hypre_CSRMatrixI(A->offd) = mfem_hypre_CTAlloc(HYPRE_Int, diag->Height()+1); /* Don't need to call these, since they allocate memory only if it was not already allocated */ // hypre_CSRMatrixInitialize(A->diag); // hypre_ParCSRMatrixInitialize(A); hypre_ParCSRMatrixSetNumNonzeros(A); /* Make sure that the first entry in each row is the diagonal one. */ hypre_CSRMatrixReorder(hypre_ParCSRMatrixDiag(A)); #ifdef HYPRE_BIGINT CopyCSR_J(A->diag, diag->GetJ()); #endif hypre_MatvecCommPkgCreate(A); } // Rectangular block-diagonal constructor (6 arguments, v1) HypreParMatrix::HypreParMatrix(MPI_Comm comm, HYPRE_Int global_num_rows, HYPRE_Int global_num_cols, HYPRE_Int *row_starts, HYPRE_Int *col_starts, SparseMatrix *diag) : Operator(diag->Height(), diag->Width()) { Init(); A = hypre_ParCSRMatrixCreate(comm, global_num_rows, global_num_cols, row_starts, col_starts, 0, diag->NumNonZeroElems(), 0); hypre_ParCSRMatrixSetDataOwner(A,1); hypre_ParCSRMatrixSetRowStartsOwner(A,0); hypre_ParCSRMatrixSetColStartsOwner(A,0); hypre_CSRMatrixSetDataOwner(A->diag,0); diagOwner = CopyCSR(diag, A->diag); hypre_CSRMatrixSetRownnz(A->diag); hypre_CSRMatrixSetDataOwner(A->offd,1); hypre_CSRMatrixI(A->offd) = mfem_hypre_CTAlloc(HYPRE_Int, diag->Height()+1); hypre_ParCSRMatrixSetNumNonzeros(A); /* Make sure that the first entry in each row is the diagonal one. */ if (row_starts == col_starts) { hypre_CSRMatrixReorder(hypre_ParCSRMatrixDiag(A)); #ifdef HYPRE_BIGINT CopyCSR_J(A->diag, diag->GetJ()); #endif } hypre_MatvecCommPkgCreate(A); } // General rectangular constructor with diagonal and off-diagonal (8 arguments) HypreParMatrix::HypreParMatrix(MPI_Comm comm, HYPRE_Int global_num_rows, HYPRE_Int global_num_cols, HYPRE_Int *row_starts, HYPRE_Int *col_starts, SparseMatrix *diag, SparseMatrix *offd, HYPRE_Int *cmap) : Operator(diag->Height(), diag->Width()) { Init(); A = hypre_ParCSRMatrixCreate(comm, global_num_rows, global_num_cols, row_starts, col_starts, offd->Width(), diag->NumNonZeroElems(), offd->NumNonZeroElems()); hypre_ParCSRMatrixSetDataOwner(A,1); hypre_ParCSRMatrixSetRowStartsOwner(A,0); hypre_ParCSRMatrixSetColStartsOwner(A,0); hypre_CSRMatrixSetDataOwner(A->diag,0); diagOwner = CopyCSR(diag, A->diag); hypre_CSRMatrixSetRownnz(A->diag); hypre_CSRMatrixSetDataOwner(A->offd,0); offdOwner = CopyCSR(offd, A->offd); hypre_CSRMatrixSetRownnz(A->offd); hypre_ParCSRMatrixColMapOffd(A) = cmap; // Prevent hypre from destroying A->col_map_offd colMapOwner = 0; hypre_ParCSRMatrixSetNumNonzeros(A); /* Make sure that the first entry in each row is the diagonal one. */ if (row_starts == col_starts) { hypre_CSRMatrixReorder(hypre_ParCSRMatrixDiag(A)); #ifdef HYPRE_BIGINT CopyCSR_J(A->diag, diag->GetJ()); #endif } hypre_MatvecCommPkgCreate(A); } // General rectangular constructor with diagonal and off-diagonal (13 arguments) HypreParMatrix::HypreParMatrix( MPI_Comm comm, HYPRE_Int global_num_rows, HYPRE_Int global_num_cols, HYPRE_Int *row_starts, HYPRE_Int *col_starts, HYPRE_Int *diag_i, HYPRE_Int *diag_j, double *diag_data, HYPRE_Int *offd_i, HYPRE_Int *offd_j, double *offd_data, HYPRE_Int offd_num_cols, HYPRE_Int *offd_col_map) { Init(); A = hypre_ParCSRMatrixCreate(comm, global_num_rows, global_num_cols, row_starts, col_starts, offd_num_cols, 0, 0); hypre_ParCSRMatrixSetDataOwner(A,1); hypre_ParCSRMatrixSetRowStartsOwner(A,0); hypre_ParCSRMatrixSetColStartsOwner(A,0); HYPRE_Int local_num_rows = hypre_CSRMatrixNumRows(A->diag); hypre_CSRMatrixSetDataOwner(A->diag,0); hypre_CSRMatrixI(A->diag) = diag_i; hypre_CSRMatrixJ(A->diag) = diag_j; hypre_CSRMatrixData(A->diag) = diag_data; hypre_CSRMatrixNumNonzeros(A->diag) = diag_i[local_num_rows]; hypre_CSRMatrixSetRownnz(A->diag); // Prevent hypre from destroying A->diag->{i,j,data}, own A->diag->{i,j,data} diagOwner = 3; hypre_CSRMatrixSetDataOwner(A->offd,0); hypre_CSRMatrixI(A->offd) = offd_i; hypre_CSRMatrixJ(A->offd) = offd_j; hypre_CSRMatrixData(A->offd) = offd_data; hypre_CSRMatrixNumNonzeros(A->offd) = offd_i[local_num_rows]; hypre_CSRMatrixSetRownnz(A->offd); // Prevent hypre from destroying A->offd->{i,j,data}, own A->offd->{i,j,data} offdOwner = 3; hypre_ParCSRMatrixColMapOffd(A) = offd_col_map; // Prevent hypre from destroying A->col_map_offd, own A->col_map_offd colMapOwner = 1; hypre_ParCSRMatrixSetNumNonzeros(A); /* Make sure that the first entry in each row is the diagonal one. */ if (row_starts == col_starts) { hypre_CSRMatrixReorder(hypre_ParCSRMatrixDiag(A)); } hypre_MatvecCommPkgCreate(A); height = GetNumRows(); width = GetNumCols(); } // Constructor from a CSR matrix on rank 0 (4 arguments, v2) HypreParMatrix::HypreParMatrix(MPI_Comm comm, HYPRE_Int *row_starts, HYPRE_Int *col_starts, SparseMatrix *sm_a) { MFEM_ASSERT(sm_a != NULL, "invalid input"); MFEM_VERIFY(!HYPRE_AssumedPartitionCheck(), "this method can not be used with assumed partition"); Init(); hypre_CSRMatrix *csr_a; csr_a = hypre_CSRMatrixCreate(sm_a -> Height(), sm_a -> Width(), sm_a -> NumNonZeroElems()); hypre_CSRMatrixSetDataOwner(csr_a,0); CopyCSR(sm_a, csr_a); hypre_CSRMatrixSetRownnz(csr_a); A = hypre_CSRMatrixToParCSRMatrix(comm, csr_a, row_starts, col_starts); #ifdef HYPRE_BIGINT delete [] hypre_CSRMatrixI(csr_a); delete [] hypre_CSRMatrixJ(csr_a); #endif hypre_CSRMatrixI(csr_a) = NULL; hypre_CSRMatrixDestroy(csr_a); height = GetNumRows(); width = GetNumCols(); /* Make sure that the first entry in each row is the diagonal one. */ if (row_starts == col_starts) { hypre_CSRMatrixReorder(hypre_ParCSRMatrixDiag(A)); } hypre_MatvecCommPkgCreate(A); } // Boolean, rectangular, block-diagonal constructor (6 arguments, v2) HypreParMatrix::HypreParMatrix(MPI_Comm comm, HYPRE_Int global_num_rows, HYPRE_Int global_num_cols, HYPRE_Int *row_starts, HYPRE_Int *col_starts, Table *diag) { Init(); int nnz = diag->Size_of_connections(); A = hypre_ParCSRMatrixCreate(comm, global_num_rows, global_num_cols, row_starts, col_starts, 0, nnz, 0); hypre_ParCSRMatrixSetDataOwner(A,1); hypre_ParCSRMatrixSetRowStartsOwner(A,0); hypre_ParCSRMatrixSetColStartsOwner(A,0); hypre_CSRMatrixSetDataOwner(A->diag,0); diagOwner = CopyBoolCSR(diag, A->diag); hypre_CSRMatrixSetRownnz(A->diag); hypre_CSRMatrixSetDataOwner(A->offd,1); hypre_CSRMatrixI(A->offd) = mfem_hypre_CTAlloc(HYPRE_Int, diag->Size()+1); hypre_ParCSRMatrixSetNumNonzeros(A); /* Make sure that the first entry in each row is the diagonal one. */ if (row_starts == col_starts) { hypre_CSRMatrixReorder(hypre_ParCSRMatrixDiag(A)); #ifdef HYPRE_BIGINT CopyCSR_J(A->diag, diag->GetJ()); #endif } hypre_MatvecCommPkgCreate(A); height = GetNumRows(); width = GetNumCols(); } // Boolean, general rectangular constructor with diagonal and off-diagonal // (11 arguments) HypreParMatrix::HypreParMatrix(MPI_Comm comm, int id, int np, HYPRE_Int *row, HYPRE_Int *col, HYPRE_Int *i_diag, HYPRE_Int *j_diag, HYPRE_Int *i_offd, HYPRE_Int *j_offd, HYPRE_Int *cmap, HYPRE_Int cmap_size) { HYPRE_Int diag_nnz, offd_nnz; Init(); if (HYPRE_AssumedPartitionCheck()) { diag_nnz = i_diag[row[1]-row[0]]; offd_nnz = i_offd[row[1]-row[0]]; A = hypre_ParCSRMatrixCreate(comm, row[2], col[2], row, col, cmap_size, diag_nnz, offd_nnz); } else { diag_nnz = i_diag[row[id+1]-row[id]]; offd_nnz = i_offd[row[id+1]-row[id]]; A = hypre_ParCSRMatrixCreate(comm, row[np], col[np], row, col, cmap_size, diag_nnz, offd_nnz); } hypre_ParCSRMatrixSetDataOwner(A,1); hypre_ParCSRMatrixSetRowStartsOwner(A,0); hypre_ParCSRMatrixSetColStartsOwner(A,0); HYPRE_Int i; double *a_diag = Memory<double>(diag_nnz); for (i = 0; i < diag_nnz; i++) { a_diag[i] = 1.0; } double *a_offd = Memory<double>(offd_nnz); for (i = 0; i < offd_nnz; i++) { a_offd[i] = 1.0; } hypre_CSRMatrixSetDataOwner(A->diag,0); hypre_CSRMatrixI(A->diag) = i_diag; hypre_CSRMatrixJ(A->diag) = j_diag; hypre_CSRMatrixData(A->diag) = a_diag; hypre_CSRMatrixSetRownnz(A->diag); // Prevent hypre from destroying A->diag->{i,j,data}, own A->diag->{i,j,data} diagOwner = 3; hypre_CSRMatrixSetDataOwner(A->offd,0); hypre_CSRMatrixI(A->offd) = i_offd; hypre_CSRMatrixJ(A->offd) = j_offd; hypre_CSRMatrixData(A->offd) = a_offd; hypre_CSRMatrixSetRownnz(A->offd); // Prevent hypre from destroying A->offd->{i,j,data}, own A->offd->{i,j,data} offdOwner = 3; hypre_ParCSRMatrixColMapOffd(A) = cmap; // Prevent hypre from destroying A->col_map_offd, own A->col_map_offd colMapOwner = 1; hypre_ParCSRMatrixSetNumNonzeros(A); /* Make sure that the first entry in each row is the diagonal one. */ if (row == col) { hypre_CSRMatrixReorder(hypre_ParCSRMatrixDiag(A)); } hypre_MatvecCommPkgCreate(A); height = GetNumRows(); width = GetNumCols(); } // General rectangular constructor with diagonal and off-diagonal constructed // from a CSR matrix that contains both diagonal and off-diagonal blocks // (9 arguments) HypreParMatrix::HypreParMatrix(MPI_Comm comm, int nrows, HYPRE_Int glob_nrows, HYPRE_Int glob_ncols, int *I, HYPRE_Int *J, double *data, HYPRE_Int *rows, HYPRE_Int *cols) { Init(); // Determine partitioning size, and my column start and end int part_size; HYPRE_Int my_col_start, my_col_end; // my range: [my_col_start, my_col_end) if (HYPRE_AssumedPartitionCheck()) { part_size = 2; my_col_start = cols[0]; my_col_end = cols[1]; } else { int myid; MPI_Comm_rank(comm, &myid); MPI_Comm_size(comm, &part_size); part_size++; my_col_start = cols[myid]; my_col_end = cols[myid+1]; } // Copy in the row and column partitionings HYPRE_Int *row_starts, *col_starts; if (rows == cols) { row_starts = col_starts = mfem_hypre_TAlloc(HYPRE_Int, part_size); for (int i = 0; i < part_size; i++) { row_starts[i] = rows[i]; } } else { row_starts = mfem_hypre_TAlloc(HYPRE_Int, part_size); col_starts = mfem_hypre_TAlloc(HYPRE_Int, part_size); for (int i = 0; i < part_size; i++) { row_starts[i] = rows[i]; col_starts[i] = cols[i]; } } // Create a map for the off-diagonal indices - global to local. Count the // number of diagonal and off-diagonal entries. HYPRE_Int diag_nnz = 0, offd_nnz = 0, offd_num_cols = 0; map<HYPRE_Int, HYPRE_Int> offd_map; for (HYPRE_Int j = 0, loc_nnz = I[nrows]; j < loc_nnz; j++) { HYPRE_Int glob_col = J[j]; if (my_col_start <= glob_col && glob_col < my_col_end) { diag_nnz++; } else { offd_map.insert(pair<const HYPRE_Int, HYPRE_Int>(glob_col, -1)); offd_nnz++; } } // count the number of columns in the off-diagonal and set the local indices for (map<HYPRE_Int, HYPRE_Int>::iterator it = offd_map.begin(); it != offd_map.end(); ++it) { it->second = offd_num_cols++; } // construct the global ParCSR matrix A = hypre_ParCSRMatrixCreate(comm, glob_nrows, glob_ncols, row_starts, col_starts, offd_num_cols, diag_nnz, offd_nnz); hypre_ParCSRMatrixInitialize(A); HYPRE_Int *diag_i, *diag_j, *offd_i, *offd_j, *offd_col_map; double *diag_data, *offd_data; diag_i = A->diag->i; diag_j = A->diag->j; diag_data = A->diag->data; offd_i = A->offd->i; offd_j = A->offd->j; offd_data = A->offd->data; offd_col_map = A->col_map_offd; diag_nnz = offd_nnz = 0; for (HYPRE_Int i = 0, j = 0; i < nrows; i++) { diag_i[i] = diag_nnz; offd_i[i] = offd_nnz; for (HYPRE_Int j_end = I[i+1]; j < j_end; j++) { HYPRE_Int glob_col = J[j]; if (my_col_start <= glob_col && glob_col < my_col_end) { diag_j[diag_nnz] = glob_col - my_col_start; diag_data[diag_nnz] = data[j]; diag_nnz++; } else { offd_j[offd_nnz] = offd_map[glob_col]; offd_data[offd_nnz] = data[j]; offd_nnz++; } } } diag_i[nrows] = diag_nnz; offd_i[nrows] = offd_nnz; for (map<HYPRE_Int, HYPRE_Int>::iterator it = offd_map.begin(); it != offd_map.end(); ++it) { offd_col_map[it->second] = it->first; } hypre_ParCSRMatrixSetNumNonzeros(A); /* Make sure that the first entry in each row is the diagonal one. */ if (row_starts == col_starts) { hypre_CSRMatrixReorder(hypre_ParCSRMatrixDiag(A)); } hypre_MatvecCommPkgCreate(A); height = GetNumRows(); width = GetNumCols(); } HypreParMatrix::HypreParMatrix(const HypreParMatrix &P) { hypre_ParCSRMatrix *Ph = static_cast<hypre_ParCSRMatrix *>(P); Init(); // Clone the structure A = hypre_ParCSRMatrixCompleteClone(Ph); // Make a deep copy of the data from the source hypre_ParCSRMatrixCopy(Ph, A, 1); height = GetNumRows(); width = GetNumCols(); CopyRowStarts(); CopyColStarts(); hypre_ParCSRMatrixSetNumNonzeros(A); hypre_MatvecCommPkgCreate(A); } void HypreParMatrix::MakeRef(const HypreParMatrix &master) { Destroy(); Init(); A = master.A; ParCSROwner = 0; height = master.GetNumRows(); width = master.GetNumCols(); } hypre_ParCSRMatrix* HypreParMatrix::StealData() { // Only safe when (diagOwner == -1 && offdOwner == -1 && colMapOwner == -1) // Otherwise, there may be memory leaks or hypre may destroy arrays allocated // with operator new. MFEM_ASSERT(diagOwner == -1 && offdOwner == -1 && colMapOwner == -1, ""); MFEM_ASSERT(ParCSROwner, ""); hypre_ParCSRMatrix *R = A; A = NULL; Destroy(); Init(); return R; } void HypreParMatrix::CopyRowStarts() { if (!A || hypre_ParCSRMatrixOwnsRowStarts(A) || (hypre_ParCSRMatrixRowStarts(A) == hypre_ParCSRMatrixColStarts(A) && hypre_ParCSRMatrixOwnsColStarts(A))) { return; } int row_starts_size; if (HYPRE_AssumedPartitionCheck()) { row_starts_size = 2; } else { MPI_Comm_size(hypre_ParCSRMatrixComm(A), &row_starts_size); row_starts_size++; // num_proc + 1 } HYPRE_Int *old_row_starts = hypre_ParCSRMatrixRowStarts(A); HYPRE_Int *new_row_starts = mfem_hypre_CTAlloc(HYPRE_Int, row_starts_size); for (int i = 0; i < row_starts_size; i++) { new_row_starts[i] = old_row_starts[i]; } hypre_ParCSRMatrixRowStarts(A) = new_row_starts; hypre_ParCSRMatrixOwnsRowStarts(A) = 1; if (hypre_ParCSRMatrixColStarts(A) == old_row_starts) { hypre_ParCSRMatrixColStarts(A) = new_row_starts; hypre_ParCSRMatrixOwnsColStarts(A) = 0; } } void HypreParMatrix::CopyColStarts() { if (!A || hypre_ParCSRMatrixOwnsColStarts(A) || (hypre_ParCSRMatrixRowStarts(A) == hypre_ParCSRMatrixColStarts(A) && hypre_ParCSRMatrixOwnsRowStarts(A))) { return; } int col_starts_size; if (HYPRE_AssumedPartitionCheck()) { col_starts_size = 2; } else { MPI_Comm_size(hypre_ParCSRMatrixComm(A), &col_starts_size); col_starts_size++; // num_proc + 1 } HYPRE_Int *old_col_starts = hypre_ParCSRMatrixColStarts(A); HYPRE_Int *new_col_starts = mfem_hypre_CTAlloc(HYPRE_Int, col_starts_size); for (int i = 0; i < col_starts_size; i++) { new_col_starts[i] = old_col_starts[i]; } hypre_ParCSRMatrixColStarts(A) = new_col_starts; if (hypre_ParCSRMatrixRowStarts(A) == old_col_starts) { hypre_ParCSRMatrixRowStarts(A) = new_col_starts; hypre_ParCSRMatrixOwnsRowStarts(A) = 1; hypre_ParCSRMatrixOwnsColStarts(A) = 0; } else { hypre_ParCSRMatrixOwnsColStarts(A) = 1; } } void HypreParMatrix::GetDiag(Vector &diag) const { int size = Height(); diag.SetSize(size); for (int j = 0; j < size; j++) { diag(j) = A->diag->data[A->diag->i[j]]; MFEM_ASSERT(A->diag->j[A->diag->i[j]] == j, "the first entry in each row must be the diagonal one"); } } static void MakeWrapper(const hypre_CSRMatrix *mat, SparseMatrix &wrapper) { HYPRE_Int nr = hypre_CSRMatrixNumRows(mat); HYPRE_Int nc = hypre_CSRMatrixNumCols(mat); #ifndef HYPRE_BIGINT SparseMatrix tmp(hypre_CSRMatrixI(mat), hypre_CSRMatrixJ(mat), hypre_CSRMatrixData(mat), nr, nc, false, false, false); #else HYPRE_Int nnz = hypre_CSRMatrixNumNonzeros(mat); SparseMatrix tmp(DuplicateAs<int>(hypre_CSRMatrixI(mat), nr+1), DuplicateAs<int>(hypre_CSRMatrixJ(mat), nnz), hypre_CSRMatrixData(mat), nr, nc, true, false, false); #endif wrapper.Swap(tmp); } void HypreParMatrix::GetDiag(SparseMatrix &diag) const { MakeWrapper(A->diag, diag); } void HypreParMatrix::GetOffd(SparseMatrix &offd, HYPRE_Int* &cmap) const { MakeWrapper(A->offd, offd); cmap = A->col_map_offd; } void HypreParMatrix::GetBlocks(Array2D<HypreParMatrix*> &blocks, bool interleaved_rows, bool interleaved_cols) const { int nr = blocks.NumRows(); int nc = blocks.NumCols(); hypre_ParCSRMatrix **hypre_blocks = new hypre_ParCSRMatrix*[nr * nc]; internal::hypre_ParCSRMatrixSplit(A, nr, nc, hypre_blocks, interleaved_rows, interleaved_cols); for (int i = 0; i < nr; i++) { for (int j = 0; j < nc; j++) { blocks[i][j] = new HypreParMatrix(hypre_blocks[i*nc + j]); } } delete [] hypre_blocks; } HypreParMatrix * HypreParMatrix::Transpose() const { hypre_ParCSRMatrix * At; hypre_ParCSRMatrixTranspose(A, &At, 1); hypre_ParCSRMatrixSetNumNonzeros(At); hypre_MatvecCommPkgCreate(At); if ( M() == N() ) { /* If the matrix is square, make sure that the first entry in each row is the diagonal one. */ hypre_CSRMatrixReorder(hypre_ParCSRMatrixDiag(At)); } return new HypreParMatrix(At); } HYPRE_Int HypreParMatrix::Mult(HypreParVector &x, HypreParVector &y, double a, double b) { x.HostRead(); (b == 0.0) ? y.HostWrite() : y.HostReadWrite(); return hypre_ParCSRMatrixMatvec(a, A, x, b, y); } void HypreParMatrix::Mult(double a, const Vector &x, double b, Vector &y) const { MFEM_ASSERT(x.Size() == Width(), "invalid x.Size() = " << x.Size() << ", expected size = " << Width()); MFEM_ASSERT(y.Size() == Height(), "invalid y.Size() = " << y.Size() << ", expected size = " << Height()); auto x_data = x.HostRead(); auto y_data = (b == 0.0) ? y.HostWrite() : y.HostReadWrite(); if (X == NULL) { X = new HypreParVector(A->comm, GetGlobalNumCols(), const_cast<double*>(x_data), GetColStarts()); Y = new HypreParVector(A->comm, GetGlobalNumRows(), y_data, GetRowStarts()); } else { X->SetData(const_cast<double*>(x_data)); Y->SetData(y_data); } hypre_ParCSRMatrixMatvec(a, A, *X, b, *Y); } void HypreParMatrix::MultTranspose(double a, const Vector &x, double b, Vector &y) const { MFEM_ASSERT(x.Size() == Height(), "invalid x.Size() = " << x.Size() << ", expected size = " << Height()); MFEM_ASSERT(y.Size() == Width(), "invalid y.Size() = " << y.Size() << ", expected size = " << Width()); // Note: x has the dimensions of Y (height), and // y has the dimensions of X (width) auto x_data = x.HostRead(); auto y_data = (b == 0.0) ? y.HostWrite() : y.HostReadWrite(); if (X == NULL) { X = new HypreParVector(A->comm, GetGlobalNumCols(), y_data, GetColStarts()); Y = new HypreParVector(A->comm, GetGlobalNumRows(), const_cast<double*>(x_data), GetRowStarts()); } else { X->SetData(y_data); Y->SetData(const_cast<double*>(x_data)); } hypre_ParCSRMatrixMatvecT(a, A, *Y, b, *X); } HYPRE_Int HypreParMatrix::Mult(HYPRE_ParVector x, HYPRE_ParVector y, double a, double b) { return hypre_ParCSRMatrixMatvec(a, A, (hypre_ParVector *) x, b, (hypre_ParVector *) y); } HYPRE_Int HypreParMatrix::MultTranspose(HypreParVector & x, HypreParVector & y, double a, double b) { return hypre_ParCSRMatrixMatvecT(a, A, x, b, y); } HypreParMatrix* HypreParMatrix::LeftDiagMult(const SparseMatrix &D, HYPRE_Int* row_starts) const { const bool assumed_partition = HYPRE_AssumedPartitionCheck(); const bool row_starts_given = (row_starts != NULL); if (!row_starts_given) { row_starts = hypre_ParCSRMatrixRowStarts(A); MFEM_VERIFY(D.Height() == hypre_CSRMatrixNumRows(A->diag), "the matrix D is NOT compatible with the row starts of" " this HypreParMatrix, row_starts must be given."); } else { int offset; if (assumed_partition) { offset = 0; } else { MPI_Comm_rank(GetComm(), &offset); } int local_num_rows = row_starts[offset+1]-row_starts[offset]; MFEM_VERIFY(local_num_rows == D.Height(), "the number of rows in D is " " not compatible with the given row_starts"); } // D.Width() will be checked for compatibility by the SparseMatrix // multiplication function, mfem::Mult(), called below. int part_size; HYPRE_Int global_num_rows; if (assumed_partition) { part_size = 2; if (row_starts_given) { global_num_rows = row_starts[2]; // Here, we use row_starts[2], so row_starts must come from the // methods GetDofOffsets/GetTrueDofOffsets of ParFiniteElementSpace // (HYPRE's partitions have only 2 entries). } else { global_num_rows = hypre_ParCSRMatrixGlobalNumRows(A); } } else { MPI_Comm_size(GetComm(), &part_size); global_num_rows = row_starts[part_size]; part_size++; } HYPRE_Int *col_starts = hypre_ParCSRMatrixColStarts(A); HYPRE_Int *col_map_offd; // get the diag and offd blocks as SparseMatrix wrappers SparseMatrix A_diag, A_offd; GetDiag(A_diag); GetOffd(A_offd, col_map_offd); // multiply the blocks with D and create a new HypreParMatrix SparseMatrix* DA_diag = mfem::Mult(D, A_diag); SparseMatrix* DA_offd = mfem::Mult(D, A_offd); HypreParMatrix* DA = new HypreParMatrix(GetComm(), global_num_rows, hypre_ParCSRMatrixGlobalNumCols(A), DuplicateAs<HYPRE_Int>(row_starts, part_size, false), DuplicateAs<HYPRE_Int>(col_starts, part_size, false), DA_diag, DA_offd, DuplicateAs<HYPRE_Int>(col_map_offd, A_offd.Width())); // When HYPRE_BIGINT is defined, we want DA_{diag,offd} to delete their I and // J arrays but not their data arrays; when HYPRE_BIGINT is not defined, we // don't want DA_{diag,offd} to delete anything. #ifndef HYPRE_BIGINT DA_diag->LoseData(); DA_offd->LoseData(); #else DA_diag->SetDataOwner(false); DA_offd->SetDataOwner(false); #endif delete DA_diag; delete DA_offd; hypre_ParCSRMatrixSetRowStartsOwner(DA->A, 1); hypre_ParCSRMatrixSetColStartsOwner(DA->A, 1); DA->diagOwner = DA->offdOwner = 3; DA->colMapOwner = 1; return DA; } void HypreParMatrix::ScaleRows(const Vector &diag) { if (hypre_CSRMatrixNumRows(A->diag) != hypre_CSRMatrixNumRows(A->offd)) { mfem_error("Row does not match"); } if (hypre_CSRMatrixNumRows(A->diag) != diag.Size()) { mfem_error("Note the Vector diag is not of compatible dimensions with A\n"); } int size = Height(); double *Adiag_data = hypre_CSRMatrixData(A->diag); HYPRE_Int *Adiag_i = hypre_CSRMatrixI(A->diag); double *Aoffd_data = hypre_CSRMatrixData(A->offd); HYPRE_Int *Aoffd_i = hypre_CSRMatrixI(A->offd); double val; HYPRE_Int jj; for (int i(0); i < size; ++i) { val = diag[i]; for (jj = Adiag_i[i]; jj < Adiag_i[i+1]; ++jj) { Adiag_data[jj] *= val; } for (jj = Aoffd_i[i]; jj < Aoffd_i[i+1]; ++jj) { Aoffd_data[jj] *= val; } } } void HypreParMatrix::InvScaleRows(const Vector &diag) { if (hypre_CSRMatrixNumRows(A->diag) != hypre_CSRMatrixNumRows(A->offd)) { mfem_error("Row does not match"); } if (hypre_CSRMatrixNumRows(A->diag) != diag.Size()) { mfem_error("Note the Vector diag is not of compatible dimensions with A\n"); } int size = Height(); double *Adiag_data = hypre_CSRMatrixData(A->diag); HYPRE_Int *Adiag_i = hypre_CSRMatrixI(A->diag); double *Aoffd_data = hypre_CSRMatrixData(A->offd); HYPRE_Int *Aoffd_i = hypre_CSRMatrixI(A->offd); double val; HYPRE_Int jj; for (int i(0); i < size; ++i) { #ifdef MFEM_DEBUG if (0.0 == diag(i)) { mfem_error("HypreParMatrix::InvDiagScale : Division by 0"); } #endif val = 1./diag(i); for (jj = Adiag_i[i]; jj < Adiag_i[i+1]; ++jj) { Adiag_data[jj] *= val; } for (jj = Aoffd_i[i]; jj < Aoffd_i[i+1]; ++jj) { Aoffd_data[jj] *= val; } } } void HypreParMatrix::operator*=(double s) { if (hypre_CSRMatrixNumRows(A->diag) != hypre_CSRMatrixNumRows(A->offd)) { mfem_error("Row does not match"); } HYPRE_Int size=hypre_CSRMatrixNumRows(A->diag); HYPRE_Int jj; double *Adiag_data = hypre_CSRMatrixData(A->diag); HYPRE_Int *Adiag_i = hypre_CSRMatrixI(A->diag); for (jj = 0; jj < Adiag_i[size]; ++jj) { Adiag_data[jj] *= s; } double *Aoffd_data = hypre_CSRMatrixData(A->offd); HYPRE_Int *Aoffd_i = hypre_CSRMatrixI(A->offd); for (jj = 0; jj < Aoffd_i[size]; ++jj) { Aoffd_data[jj] *= s; } } static void get_sorted_rows_cols(const Array<int> &rows_cols, Array<HYPRE_Int> &hypre_sorted) { hypre_sorted.SetSize(rows_cols.Size()); bool sorted = true; for (int i = 0; i < rows_cols.Size(); i++) { hypre_sorted[i] = rows_cols[i]; if (i && rows_cols[i-1] > rows_cols[i]) { sorted = false; } } if (!sorted) { hypre_sorted.Sort(); } } void HypreParMatrix::Threshold(double threshold) { int ierr = 0; MPI_Comm comm; hypre_CSRMatrix * csr_A; hypre_CSRMatrix * csr_A_wo_z; hypre_ParCSRMatrix * parcsr_A_ptr; HYPRE_Int * row_starts = NULL; HYPRE_Int * col_starts = NULL; HYPRE_Int row_start = -1; HYPRE_Int row_end = -1; HYPRE_Int col_start = -1; HYPRE_Int col_end = -1; comm = hypre_ParCSRMatrixComm(A); ierr += hypre_ParCSRMatrixGetLocalRange(A, &row_start,&row_end, &col_start,&col_end ); row_starts = hypre_ParCSRMatrixRowStarts(A); col_starts = hypre_ParCSRMatrixColStarts(A); bool old_owns_row = hypre_ParCSRMatrixOwnsRowStarts(A); bool old_owns_col = hypre_ParCSRMatrixOwnsColStarts(A); HYPRE_Int global_num_rows = hypre_ParCSRMatrixGlobalNumRows(A); HYPRE_Int global_num_cols = hypre_ParCSRMatrixGlobalNumCols(A); parcsr_A_ptr = hypre_ParCSRMatrixCreate(comm, global_num_rows, global_num_cols, row_starts, col_starts, 0, 0, 0); hypre_ParCSRMatrixOwnsRowStarts(parcsr_A_ptr) = old_owns_row; hypre_ParCSRMatrixOwnsColStarts(parcsr_A_ptr) = old_owns_col; hypre_ParCSRMatrixOwnsRowStarts(A) = 0; hypre_ParCSRMatrixOwnsColStarts(A) = 0; csr_A = hypre_MergeDiagAndOffd(A); // Free A, if owned Destroy(); Init(); csr_A_wo_z = hypre_CSRMatrixDeleteZeros(csr_A,threshold); /* hypre_CSRMatrixDeleteZeros will return a NULL pointer rather than a usable CSR matrix if it finds no non-zeros */ if (csr_A_wo_z == NULL) { csr_A_wo_z = csr_A; } else { ierr += hypre_CSRMatrixDestroy(csr_A); } /* TODO: GenerateDiagAndOffd() uses an int array of size equal to the number of columns in csr_A_wo_z which is the global number of columns in A. This does not scale well. */ ierr += GenerateDiagAndOffd(csr_A_wo_z,parcsr_A_ptr, col_start,col_end); ierr += hypre_CSRMatrixDestroy(csr_A_wo_z); MFEM_VERIFY(ierr == 0, ""); A = parcsr_A_ptr; hypre_ParCSRMatrixSetNumNonzeros(A); /* Make sure that the first entry in each row is the diagonal one. */ if (row_starts == col_starts) { hypre_CSRMatrixReorder(hypre_ParCSRMatrixDiag(A)); } hypre_MatvecCommPkgCreate(A); height = GetNumRows(); width = GetNumCols(); } void HypreParMatrix::EliminateRowsCols(const Array<int> &rows_cols, const HypreParVector &X, HypreParVector &B) { Array<HYPRE_Int> rc_sorted; get_sorted_rows_cols(rows_cols, rc_sorted); internal::hypre_ParCSRMatrixEliminateAXB( A, rc_sorted.Size(), rc_sorted.GetData(), X, B); } HypreParMatrix* HypreParMatrix::EliminateRowsCols(const Array<int> &rows_cols) { Array<HYPRE_Int> rc_sorted; get_sorted_rows_cols(rows_cols, rc_sorted); hypre_ParCSRMatrix* Ae; internal::hypre_ParCSRMatrixEliminateAAe( A, &Ae, rc_sorted.Size(), rc_sorted.GetData()); return new HypreParMatrix(Ae); } HypreParMatrix* HypreParMatrix::EliminateCols(const Array<int> &cols) { Array<HYPRE_Int> rc_sorted; get_sorted_rows_cols(cols, rc_sorted); hypre_ParCSRMatrix* Ae; internal::hypre_ParCSRMatrixEliminateAAe( A, &Ae, rc_sorted.Size(), rc_sorted.GetData(), 1); return new HypreParMatrix(Ae); } void HypreParMatrix::EliminateRows(const Array<int> &rows) { if (rows.Size() > 0) { Array<HYPRE_Int> r_sorted; get_sorted_rows_cols(rows, r_sorted); internal::hypre_ParCSRMatrixEliminateRows(A, r_sorted.Size(), r_sorted.GetData()); } } void HypreParMatrix::Print(const char *fname, HYPRE_Int offi, HYPRE_Int offj) { hypre_ParCSRMatrixPrintIJ(A,offi,offj,fname); } void HypreParMatrix::Read(MPI_Comm comm, const char *fname) { Destroy(); Init(); HYPRE_Int base_i, base_j; hypre_ParCSRMatrixReadIJ(comm, fname, &base_i, &base_j, &A); hypre_ParCSRMatrixSetNumNonzeros(A); hypre_MatvecCommPkgCreate(A); height = GetNumRows(); width = GetNumCols(); } void HypreParMatrix::Read_IJMatrix(MPI_Comm comm, const char *fname) { Destroy(); Init(); HYPRE_IJMatrix A_ij; HYPRE_IJMatrixRead(fname, comm, 5555, &A_ij); // HYPRE_PARCSR = 5555 HYPRE_ParCSRMatrix A_parcsr; HYPRE_IJMatrixGetObject(A_ij, (void**) &A_parcsr); A = (hypre_ParCSRMatrix*)A_parcsr; hypre_ParCSRMatrixSetNumNonzeros(A); hypre_MatvecCommPkgCreate(A); height = GetNumRows(); width = GetNumCols(); } void HypreParMatrix::PrintCommPkg(std::ostream &out) const { hypre_ParCSRCommPkg *comm_pkg = A->comm_pkg; MPI_Comm comm = A->comm; char c = '\0'; const int tag = 46801; int myid, nproc; MPI_Comm_rank(comm, &myid); MPI_Comm_size(comm, &nproc); if (myid != 0) { MPI_Recv(&c, 1, MPI_CHAR, myid-1, tag, comm, MPI_STATUS_IGNORE); } else { out << "\nHypreParMatrix: hypre_ParCSRCommPkg:\n"; } out << "Rank " << myid << ":\n" " number of sends = " << comm_pkg->num_sends << " (" << sizeof(double)*comm_pkg->send_map_starts[comm_pkg->num_sends] << " bytes)\n" " number of recvs = " << comm_pkg->num_recvs << " (" << sizeof(double)*comm_pkg->recv_vec_starts[comm_pkg->num_recvs] << " bytes)\n"; if (myid != nproc-1) { out << std::flush; MPI_Send(&c, 1, MPI_CHAR, myid+1, tag, comm); } else { out << std::endl; } MPI_Barrier(comm); } inline void delete_hypre_CSRMatrixData(hypre_CSRMatrix *M) { HYPRE_Complex *data = hypre_CSRMatrixData(M); Memory<HYPRE_Complex>(data, M->num_nonzeros, true).Delete(); } inline void delete_hypre_ParCSRMatrixColMapOffd(hypre_ParCSRMatrix *A) { HYPRE_Int *A_col_map_offd = hypre_ParCSRMatrixColMapOffd(A); int size = hypre_CSRMatrixNumCols(hypre_ParCSRMatrixOffd(A)); Memory<HYPRE_Int>(A_col_map_offd, size, true).Delete(); } inline void delete_hypre_CSRMatrixI(hypre_CSRMatrix *M) { HYPRE_Int *I = hypre_CSRMatrixI(M); int size = hypre_CSRMatrixNumRows(M) + 1; Memory<HYPRE_Int>(I, size, true).Delete(); } inline void delete_hypre_CSRMatrixJ(hypre_CSRMatrix *M) { HYPRE_Int *J = hypre_CSRMatrixJ(M); int size = hypre_CSRMatrixNumNonzeros(M); Memory<HYPRE_Int>(J, size, true).Delete(); } void HypreParMatrix::Destroy() { if ( X != NULL ) { delete X; } if ( Y != NULL ) { delete Y; } if (A == NULL) { return; } if (diagOwner >= 0) { if (diagOwner & 1) { delete_hypre_CSRMatrixI(A->diag); delete_hypre_CSRMatrixJ(A->diag); } hypre_CSRMatrixI(A->diag) = NULL; hypre_CSRMatrixJ(A->diag) = NULL; if (diagOwner & 2) { delete_hypre_CSRMatrixData(A->diag); } hypre_CSRMatrixData(A->diag) = NULL; } if (offdOwner >= 0) { if (offdOwner & 1) { delete_hypre_CSRMatrixI(A->offd); delete_hypre_CSRMatrixJ(A->offd); } hypre_CSRMatrixI(A->offd) = NULL; hypre_CSRMatrixJ(A->offd) = NULL; if (offdOwner & 2) { delete_hypre_CSRMatrixData(A->offd); } hypre_CSRMatrixData(A->offd) = NULL; } if (colMapOwner >= 0) { if (colMapOwner & 1) { delete_hypre_ParCSRMatrixColMapOffd(A); } hypre_ParCSRMatrixColMapOffd(A) = NULL; } if (ParCSROwner) { hypre_ParCSRMatrixDestroy(A); } } #if MFEM_HYPRE_VERSION < 21400 HypreParMatrix *Add(double alpha, const HypreParMatrix &A, double beta, const HypreParMatrix &B) { hypre_ParCSRMatrix *C_hypre = internal::hypre_ParCSRMatrixAdd(const_cast<HypreParMatrix &>(A), const_cast<HypreParMatrix &>(B)); MFEM_VERIFY(C_hypre, "error in hypre_ParCSRMatrixAdd"); hypre_MatvecCommPkgCreate(C_hypre); HypreParMatrix *C = new HypreParMatrix(C_hypre); *C = 0.0; C->Add(alpha, A); C->Add(beta, B); return C; } HypreParMatrix * ParAdd(const HypreParMatrix *A, const HypreParMatrix *B) { hypre_ParCSRMatrix * C = internal::hypre_ParCSRMatrixAdd(*A,*B); hypre_MatvecCommPkgCreate(C); return new HypreParMatrix(C); } #else HypreParMatrix *Add(double alpha, const HypreParMatrix &A, double beta, const HypreParMatrix &B) { hypre_ParCSRMatrix *C; hypre_ParcsrAdd(alpha, A, beta, B, &C); hypre_MatvecCommPkgCreate(C); return new HypreParMatrix(C); } HypreParMatrix * ParAdd(const HypreParMatrix *A, const HypreParMatrix *B) { hypre_ParCSRMatrix *C; hypre_ParcsrAdd(1.0, *A, 1.0, *B, &C); hypre_MatvecCommPkgCreate(C); return new HypreParMatrix(C); } #endif HypreParMatrix * ParMult(const HypreParMatrix *A, const HypreParMatrix *B, bool own_matrix) { hypre_ParCSRMatrix * ab; ab = hypre_ParMatmul(*A,*B); hypre_ParCSRMatrixSetNumNonzeros(ab); hypre_MatvecCommPkgCreate(ab); HypreParMatrix *C = new HypreParMatrix(ab); if (own_matrix) { C->CopyRowStarts(); C->CopyColStarts(); } return C; } HypreParMatrix * RAP(const HypreParMatrix *A, const HypreParMatrix *P) { HYPRE_Int P_owns_its_col_starts = hypre_ParCSRMatrixOwnsColStarts((hypre_ParCSRMatrix*)(*P)); hypre_ParCSRMatrix * rap; hypre_BoomerAMGBuildCoarseOperator(*P,*A,*P,&rap); hypre_ParCSRMatrixSetNumNonzeros(rap); // hypre_MatvecCommPkgCreate(rap); /* Warning: hypre_BoomerAMGBuildCoarseOperator steals the col_starts from P (even if it does not own them)! */ hypre_ParCSRMatrixSetRowStartsOwner(rap,0); hypre_ParCSRMatrixSetColStartsOwner(rap,0); if (P_owns_its_col_starts) { hypre_ParCSRMatrixSetColStartsOwner(*P, 1); } return new HypreParMatrix(rap); } HypreParMatrix * RAP(const HypreParMatrix * Rt, const HypreParMatrix *A, const HypreParMatrix *P) { HYPRE_Int P_owns_its_col_starts = hypre_ParCSRMatrixOwnsColStarts((hypre_ParCSRMatrix*)(*P)); HYPRE_Int Rt_owns_its_col_starts = hypre_ParCSRMatrixOwnsColStarts((hypre_ParCSRMatrix*)(*Rt)); hypre_ParCSRMatrix * rap; hypre_BoomerAMGBuildCoarseOperator(*Rt,*A,*P,&rap); hypre_ParCSRMatrixSetNumNonzeros(rap); // hypre_MatvecCommPkgCreate(rap); /* Warning: hypre_BoomerAMGBuildCoarseOperator steals the col_starts from Rt and P (even if they do not own them)! */ hypre_ParCSRMatrixSetRowStartsOwner(rap,0); hypre_ParCSRMatrixSetColStartsOwner(rap,0); if (P_owns_its_col_starts) { hypre_ParCSRMatrixSetColStartsOwner(*P, 1); } if (Rt_owns_its_col_starts) { hypre_ParCSRMatrixSetColStartsOwner(*Rt, 1); } return new HypreParMatrix(rap); } // Helper function for HypreParMatrixFromBlocks. Note that scalability to // extremely large processor counts is limited by the use of MPI_Allgather. void GatherBlockOffsetData(MPI_Comm comm, const int rank, const int nprocs, const int num_loc, Array<int> &offsets, std::vector<int> &all_num_loc, const int numBlocks, std::vector<std::vector<int>> &blockProcOffsets, std::vector<int> &procOffsets, std::vector<std::vector<int>> &procBlockOffsets, int &firstLocal, int &globalNum) { std::vector<std::vector<int>> all_block_num_loc(numBlocks); MPI_Allgather(&num_loc, 1, MPI_INT, all_num_loc.data(), 1, MPI_INT, comm); for (int j = 0; j < numBlocks; ++j) { all_block_num_loc[j].resize(nprocs); blockProcOffsets[j].resize(nprocs); const int blockNumRows = offsets[j + 1] - offsets[j]; MPI_Allgather(&blockNumRows, 1, MPI_INT, all_block_num_loc[j].data(), 1, MPI_INT, comm); blockProcOffsets[j][0] = 0; for (int i = 0; i < nprocs - 1; ++i) { blockProcOffsets[j][i + 1] = blockProcOffsets[j][i] + all_block_num_loc[j][i]; } } firstLocal = 0; globalNum = 0; procOffsets[0] = 0; for (int i = 0; i < nprocs; ++i) { globalNum += all_num_loc[i]; if (i < rank) { firstLocal += all_num_loc[i]; } if (i < nprocs - 1) { procOffsets[i + 1] = procOffsets[i] + all_num_loc[i]; } procBlockOffsets[i].resize(numBlocks); procBlockOffsets[i][0] = 0; for (int j = 1; j < numBlocks; ++j) { procBlockOffsets[i][j] = procBlockOffsets[i][j - 1] + all_block_num_loc[j - 1][i]; } } } HypreParMatrix * HypreParMatrixFromBlocks(Array2D<HypreParMatrix*> &blocks, Array2D<double> *blockCoeff) { const int numBlockRows = blocks.NumRows(); const int numBlockCols = blocks.NumCols(); MFEM_VERIFY(numBlockRows > 0 && numBlockCols > 0, "Invalid input to HypreParMatrixFromBlocks"); if (blockCoeff != NULL) { MFEM_VERIFY(numBlockRows == blockCoeff->NumRows() && numBlockCols == blockCoeff->NumCols(), "Invalid input to HypreParMatrixFromBlocks"); } Array<int> rowOffsets(numBlockRows+1); Array<int> colOffsets(numBlockCols+1); int nonNullBlockRow0 = -1; for (int j=0; j<numBlockCols; ++j) { if (blocks(0,j) != NULL) { nonNullBlockRow0 = j; break; } } MFEM_VERIFY(nonNullBlockRow0 >= 0, "Null row of blocks"); MPI_Comm comm = blocks(0,nonNullBlockRow0)->GetComm(); // Set offsets based on the number of rows or columns in each block. rowOffsets = 0; colOffsets = 0; for (int i=0; i<numBlockRows; ++i) { for (int j=0; j<numBlockCols; ++j) { if (blocks(i,j) != NULL) { const int nrows = blocks(i,j)->NumRows(); const int ncols = blocks(i,j)->NumCols(); MFEM_VERIFY(nrows > 0 && ncols > 0, "Invalid block in HypreParMatrixFromBlocks"); if (rowOffsets[i+1] == 0) { rowOffsets[i+1] = nrows; } else { MFEM_VERIFY(rowOffsets[i+1] == nrows, "Inconsistent blocks in HypreParMatrixFromBlocks"); } if (colOffsets[j+1] == 0) { colOffsets[j+1] = ncols; } else { MFEM_VERIFY(colOffsets[j+1] == ncols, "Inconsistent blocks in HypreParMatrixFromBlocks"); } } } MFEM_VERIFY(rowOffsets[i+1] > 0, "Invalid input blocks"); rowOffsets[i+1] += rowOffsets[i]; } for (int j=0; j<numBlockCols; ++j) { MFEM_VERIFY(colOffsets[j+1] > 0, "Invalid input blocks"); colOffsets[j+1] += colOffsets[j]; } const int num_loc_rows = rowOffsets[numBlockRows]; const int num_loc_cols = colOffsets[numBlockCols]; int nprocs, rank; MPI_Comm_rank(comm, &rank); MPI_Comm_size(comm, &nprocs); std::vector<int> all_num_loc_rows(nprocs); std::vector<int> all_num_loc_cols(nprocs); std::vector<int> procRowOffsets(nprocs); std::vector<int> procColOffsets(nprocs); std::vector<std::vector<int>> blockRowProcOffsets(numBlockRows); std::vector<std::vector<int>> blockColProcOffsets(numBlockCols); std::vector<std::vector<int>> procBlockRowOffsets(nprocs); std::vector<std::vector<int>> procBlockColOffsets(nprocs); int first_loc_row, glob_nrows, first_loc_col, glob_ncols; GatherBlockOffsetData(comm, rank, nprocs, num_loc_rows, rowOffsets, all_num_loc_rows, numBlockRows, blockRowProcOffsets, procRowOffsets, procBlockRowOffsets, first_loc_row, glob_nrows); GatherBlockOffsetData(comm, rank, nprocs, num_loc_cols, colOffsets, all_num_loc_cols, numBlockCols, blockColProcOffsets, procColOffsets, procBlockColOffsets, first_loc_col, glob_ncols); std::vector<int> opI(num_loc_rows + 1); std::vector<int> cnt(num_loc_rows); for (int i = 0; i < num_loc_rows; ++i) { opI[i] = 0; cnt[i] = 0; } opI[num_loc_rows] = 0; Array2D<hypre_CSRMatrix *> csr_blocks(numBlockRows, numBlockCols); // Loop over all blocks, to determine nnz for each row. for (int i = 0; i < numBlockRows; ++i) { for (int j = 0; j < numBlockCols; ++j) { if (blocks(i, j) == NULL) { csr_blocks(i, j) = NULL; } else { { hypre_ParCSRMatrix *parcsr_op = (hypre_ParCSRMatrix*) const_cast<HypreParMatrix&> (*(blocks(i, j))); MFEM_ASSERT(parcsr_op != NULL, "const_cast failed"); csr_blocks(i, j) = hypre_MergeDiagAndOffd(parcsr_op); } for (int k = 0; k < csr_blocks(i, j)->num_rows; ++k) { opI[rowOffsets[i] + k + 1] += csr_blocks(i, j)->i[k + 1] - csr_blocks(i, j)->i[k]; } } } } // Now opI[i] is nnz for row i-1. Do a partial sum to get offsets. for (int i = 0; i < num_loc_rows; ++i) { opI[i + 1] += opI[i]; } const int nnz = opI[num_loc_rows]; std::vector<HYPRE_Int> opJ(nnz); std::vector<double> data(nnz); // Loop over all blocks, to set matrix data. for (int i = 0; i < numBlockRows; ++i) { for (int j = 0; j < numBlockCols; ++j) { if (csr_blocks(i, j) != NULL) { const int nrows = csr_blocks(i, j)->num_rows; const double cij = blockCoeff ? (*blockCoeff)(i, j) : 1.0; for (int k = 0; k < nrows; ++k) { const int rowg = rowOffsets[i] + k; // process-local row const int nnz_k = csr_blocks(i,j)->i[k+1]-csr_blocks(i,j)->i[k]; const int osk = csr_blocks(i, j)->i[k]; for (int l = 0; l < nnz_k; ++l) { // Find the column process offset for the block. const int bcol = csr_blocks(i, j)->j[osk + l]; int bcolproc = 0; for (int p = 1; p < nprocs; ++p) { if (blockColProcOffsets[j][p] > bcol) { bcolproc = p - 1; break; } } if (blockColProcOffsets[j][nprocs - 1] <= bcol) { bcolproc = nprocs - 1; } opJ[opI[rowg] + cnt[rowg]] = procColOffsets[bcolproc] + procBlockColOffsets[bcolproc][j] + bcol - blockColProcOffsets[j][bcolproc]; data[opI[rowg] + cnt[rowg]] = cij * csr_blocks(i, j)->data[osk + l]; cnt[rowg]++; } } } } } for (int i = 0; i < numBlockRows; ++i) { for (int j = 0; j < numBlockCols; ++j) { if (csr_blocks(i, j) != NULL) { hypre_CSRMatrixDestroy(csr_blocks(i, j)); } } } std::vector<HYPRE_Int> rowStarts2(2); rowStarts2[0] = first_loc_row; rowStarts2[1] = first_loc_row + all_num_loc_rows[rank]; std::vector<HYPRE_Int> colStarts2(2); colStarts2[0] = first_loc_col; colStarts2[1] = first_loc_col + all_num_loc_cols[rank]; return new HypreParMatrix(comm, num_loc_rows, glob_nrows, glob_ncols, (int *)opI.data(), (HYPRE_Int *)opJ.data(), (double *)data.data(), (HYPRE_Int *)rowStarts2.data(), (HYPRE_Int *)colStarts2.data()); } void EliminateBC(HypreParMatrix &A, HypreParMatrix &Ae, const Array<int> &ess_dof_list, const Vector &X, Vector &B) { // B -= Ae*X Ae.Mult(-1.0, X, 1.0, B); hypre_CSRMatrix *A_diag = hypre_ParCSRMatrixDiag((hypre_ParCSRMatrix *)A); double *data = hypre_CSRMatrixData(A_diag); HYPRE_Int *I = hypre_CSRMatrixI(A_diag); #ifdef MFEM_DEBUG HYPRE_Int *J = hypre_CSRMatrixJ(A_diag); hypre_CSRMatrix *A_offd = hypre_ParCSRMatrixOffd((hypre_ParCSRMatrix *)A); HYPRE_Int *I_offd = hypre_CSRMatrixI(A_offd); double *data_offd = hypre_CSRMatrixData(A_offd); #endif for (int i = 0; i < ess_dof_list.Size(); i++) { int r = ess_dof_list[i]; B(r) = data[I[r]] * X(r); #ifdef MFEM_DEBUG // Check that in the rows specified by the ess_dof_list, the matrix A has // only one entry -- the diagonal. // if (I[r+1] != I[r]+1 || J[I[r]] != r || I_offd[r] != I_offd[r+1]) if (J[I[r]] != r) { MFEM_ABORT("the diagonal entry must be the first entry in the row!"); } for (int j = I[r]+1; j < I[r+1]; j++) { if (data[j] != 0.0) { MFEM_ABORT("all off-diagonal entries must be zero!"); } } for (int j = I_offd[r]; j < I_offd[r+1]; j++) { if (data_offd[j] != 0.0) { MFEM_ABORT("all off-diagonal entries must be zero!"); } } #endif } } // Taubin or "lambda-mu" scheme, which alternates between positive and // negative step sizes to approximate low-pass filter effect. int ParCSRRelax_Taubin(hypre_ParCSRMatrix *A, // matrix to relax with hypre_ParVector *f, // right-hand side double lambda, double mu, int N, double max_eig, hypre_ParVector *u, // initial/updated approximation hypre_ParVector *r // another temp vector ) { hypre_CSRMatrix *A_diag = hypre_ParCSRMatrixDiag(A); HYPRE_Int num_rows = hypre_CSRMatrixNumRows(A_diag); double *u_data = hypre_VectorData(hypre_ParVectorLocalVector(u)); double *r_data = hypre_VectorData(hypre_ParVectorLocalVector(r)); for (int i = 0; i < N; i++) { // get residual: r = f - A*u hypre_ParVectorCopy(f, r); hypre_ParCSRMatrixMatvec(-1.0, A, u, 1.0, r); double coef; (0 == (i % 2)) ? coef = lambda : coef = mu; for (HYPRE_Int j = 0; j < num_rows; j++) { u_data[j] += coef*r_data[j] / max_eig; } } return 0; } // FIR scheme, which uses Chebyshev polynomials and a window function // to approximate a low-pass step filter. int ParCSRRelax_FIR(hypre_ParCSRMatrix *A, // matrix to relax with hypre_ParVector *f, // right-hand side double max_eig, int poly_order, double* fir_coeffs, hypre_ParVector *u, // initial/updated approximation hypre_ParVector *x0, // temporaries hypre_ParVector *x1, hypre_ParVector *x2, hypre_ParVector *x3) { hypre_CSRMatrix *A_diag = hypre_ParCSRMatrixDiag(A); HYPRE_Int num_rows = hypre_CSRMatrixNumRows(A_diag); double *u_data = hypre_VectorData(hypre_ParVectorLocalVector(u)); double *x0_data = hypre_VectorData(hypre_ParVectorLocalVector(x0)); double *x1_data = hypre_VectorData(hypre_ParVectorLocalVector(x1)); double *x2_data = hypre_VectorData(hypre_ParVectorLocalVector(x2)); double *x3_data = hypre_VectorData(hypre_ParVectorLocalVector(x3)); hypre_ParVectorCopy(u, x0); // x1 = f -A*x0/max_eig hypre_ParVectorCopy(f, x1); hypre_ParCSRMatrixMatvec(-1.0, A, x0, 1.0, x1); for (HYPRE_Int i = 0; i < num_rows; i++) { x1_data[i] /= -max_eig; } // x1 = x0 -x1 for (HYPRE_Int i = 0; i < num_rows; i++) { x1_data[i] = x0_data[i] -x1_data[i]; } // x3 = f0*x0 +f1*x1 for (HYPRE_Int i = 0; i < num_rows; i++) { x3_data[i] = fir_coeffs[0]*x0_data[i] +fir_coeffs[1]*x1_data[i]; } for (int n = 2; n <= poly_order; n++) { // x2 = f - A*x1/max_eig hypre_ParVectorCopy(f, x2); hypre_ParCSRMatrixMatvec(-1.0, A, x1, 1.0, x2); for (HYPRE_Int i = 0; i < num_rows; i++) { x2_data[i] /= -max_eig; } // x2 = (x1-x0) +(x1-2*x2) // x3 = x3 +f[n]*x2 // x0 = x1 // x1 = x2 for (HYPRE_Int i = 0; i < num_rows; i++) { x2_data[i] = (x1_data[i]-x0_data[i]) +(x1_data[i]-2*x2_data[i]); x3_data[i] += fir_coeffs[n]*x2_data[i]; x0_data[i] = x1_data[i]; x1_data[i] = x2_data[i]; } } for (HYPRE_Int i = 0; i < num_rows; i++) { u_data[i] = x3_data[i]; } return 0; } HypreSmoother::HypreSmoother() : Solver() { type = 2; relax_times = 1; relax_weight = 1.0; omega = 1.0; poly_order = 2; poly_fraction = .3; lambda = 0.5; mu = -0.5; taubin_iter = 40; l1_norms = NULL; pos_l1_norms = false; B = X = V = Z = NULL; X0 = X1 = NULL; fir_coeffs = NULL; } HypreSmoother::HypreSmoother(HypreParMatrix &_A, int _type, int _relax_times, double _relax_weight, double _omega, int _poly_order, double _poly_fraction) { type = _type; relax_times = _relax_times; relax_weight = _relax_weight; omega = _omega; poly_order = _poly_order; poly_fraction = _poly_fraction; l1_norms = NULL; pos_l1_norms = false; B = X = V = Z = NULL; X0 = X1 = NULL; fir_coeffs = NULL; SetOperator(_A); } void HypreSmoother::SetType(HypreSmoother::Type _type, int _relax_times) { type = static_cast<int>(_type); relax_times = _relax_times; } void HypreSmoother::SetSOROptions(double _relax_weight, double _omega) { relax_weight = _relax_weight; omega = _omega; } void HypreSmoother::SetPolyOptions(int _poly_order, double _poly_fraction) { poly_order = _poly_order; poly_fraction = _poly_fraction; } void HypreSmoother::SetTaubinOptions(double _lambda, double _mu, int _taubin_iter) { lambda = _lambda; mu = _mu; taubin_iter = _taubin_iter; } void HypreSmoother::SetWindowByName(const char* name) { double a = -1, b, c; if (!strcmp(name,"Rectangular")) { a = 1.0, b = 0.0, c = 0.0; } if (!strcmp(name,"Hanning")) { a = 0.5, b = 0.5, c = 0.0; } if (!strcmp(name,"Hamming")) { a = 0.54, b = 0.46, c = 0.0; } if (!strcmp(name,"Blackman")) { a = 0.42, b = 0.50, c = 0.08; } if (a < 0) { mfem_error("HypreSmoother::SetWindowByName : name not recognized!"); } SetWindowParameters(a, b, c); } void HypreSmoother::SetWindowParameters(double a, double b, double c) { window_params[0] = a; window_params[1] = b; window_params[2] = c; } void HypreSmoother::SetOperator(const Operator &op) { A = const_cast<HypreParMatrix *>(dynamic_cast<const HypreParMatrix *>(&op)); if (A == NULL) { mfem_error("HypreSmoother::SetOperator : not HypreParMatrix!"); } height = A->Height(); width = A->Width(); if (B) { delete B; } if (X) { delete X; } if (V) { delete V; } if (Z) { delete Z; } if (l1_norms) { mfem_hypre_TFree(l1_norms); } delete X0; delete X1; X1 = X0 = Z = V = B = X = NULL; if (type >= 1 && type <= 4) { hypre_ParCSRComputeL1Norms(*A, type, NULL, &l1_norms); } else if (type == 5) { l1_norms = mfem_hypre_CTAlloc(double, height); Vector ones(height), diag(l1_norms, height); ones = 1.0; A->Mult(ones, diag); type = 1; } else { l1_norms = NULL; } if (l1_norms && pos_l1_norms) { for (int i = 0; i < height; i++) { l1_norms[i] = std::abs(l1_norms[i]); } } if (type == 16) { poly_scale = 1; hypre_ParCSRMaxEigEstimateCG(*A, poly_scale, 10, &max_eig_est, &min_eig_est); Z = new HypreParVector(*A); } else if (type == 1001 || type == 1002) { poly_scale = 0; hypre_ParCSRMaxEigEstimateCG(*A, poly_scale, 10, &max_eig_est, &min_eig_est); // The Taubin and FIR polynomials are defined on [0, 2] max_eig_est /= 2; // Compute window function, Chebyshev coefficients, and allocate temps. if (type == 1002) { // Temporaries for Chebyshev recursive evaluation Z = new HypreParVector(*A); X0 = new HypreParVector(*A); X1 = new HypreParVector(*A); SetFIRCoefficients(max_eig_est); } } } void HypreSmoother::SetFIRCoefficients(double max_eig) { if (fir_coeffs) { delete [] fir_coeffs; } fir_coeffs = new double[poly_order+1]; double* window_coeffs = new double[poly_order+1]; double* cheby_coeffs = new double[poly_order+1]; double a = window_params[0]; double b = window_params[1]; double c = window_params[2]; for (int i = 0; i <= poly_order; i++) { double t = (i*M_PI)/(poly_order+1); window_coeffs[i] = a + b*cos(t) +c*cos(2*t); } double k_pb = poly_fraction*max_eig; double theta_pb = acos(1.0 -0.5*k_pb); double sigma = 0.0; cheby_coeffs[0] = (theta_pb +sigma)/M_PI; for (int i = 1; i <= poly_order; i++) { double t = i*(theta_pb+sigma); cheby_coeffs[i] = 2.0*sin(t)/(i*M_PI); } for (int i = 0; i <= poly_order; i++) { fir_coeffs[i] = window_coeffs[i]*cheby_coeffs[i]; } delete[] window_coeffs; delete[] cheby_coeffs; } void HypreSmoother::Mult(const HypreParVector &b, HypreParVector &x) const { if (A == NULL) { mfem_error("HypreSmoother::Mult (...) : HypreParMatrix A is missing"); return; } b.HostRead(); if (!iterative_mode) { if (type == 0 && relax_times == 1) { x.HostWrite(); HYPRE_ParCSRDiagScale(NULL, *A, b, x); if (relax_weight != 1.0) { x *= relax_weight; } return; } x = 0.0; } x.HostReadWrite(); if (V == NULL) { V = new HypreParVector(*A); } if (type == 1001) { for (int sweep = 0; sweep < relax_times; sweep++) { ParCSRRelax_Taubin(*A, b, lambda, mu, taubin_iter, max_eig_est, x, *V); } } else if (type == 1002) { for (int sweep = 0; sweep < relax_times; sweep++) { ParCSRRelax_FIR(*A, b, max_eig_est, poly_order, fir_coeffs, x, *X0, *X1, *V, *Z); } } else { if (Z == NULL) hypre_ParCSRRelax(*A, b, type, relax_times, l1_norms, relax_weight, omega, max_eig_est, min_eig_est, poly_order, poly_fraction, x, *V, NULL); else hypre_ParCSRRelax(*A, b, type, relax_times, l1_norms, relax_weight, omega, max_eig_est, min_eig_est, poly_order, poly_fraction, x, *V, *Z); } } void HypreSmoother::Mult(const Vector &b, Vector &x) const { if (A == NULL) { mfem_error("HypreSmoother::Mult (...) : HypreParMatrix A is missing"); return; } auto b_data = b.HostRead(); auto x_data = iterative_mode ? x.HostReadWrite() : x.HostWrite(); if (B == NULL) { B = new HypreParVector(A->GetComm(), A -> GetGlobalNumRows(), const_cast<double*>(b_data), A -> GetRowStarts()); X = new HypreParVector(A->GetComm(), A -> GetGlobalNumCols(), x_data, A -> GetColStarts()); } else { B -> SetData(const_cast<double*>(b_data)); X -> SetData(x_data); } Mult(*B, *X); } HypreSmoother::~HypreSmoother() { if (B) { delete B; } if (X) { delete X; } if (V) { delete V; } if (Z) { delete Z; } if (l1_norms) { mfem_hypre_TFree(l1_norms); } if (fir_coeffs) { delete [] fir_coeffs; } if (X0) { delete X0; } if (X1) { delete X1; } } HypreSolver::HypreSolver() { A = NULL; setup_called = 0; B = X = NULL; error_mode = ABORT_HYPRE_ERRORS; } HypreSolver::HypreSolver(HypreParMatrix *_A) : Solver(_A->Height(), _A->Width()) { A = _A; setup_called = 0; B = X = NULL; error_mode = ABORT_HYPRE_ERRORS; } void HypreSolver::Mult(const HypreParVector &b, HypreParVector &x) const { HYPRE_Int err; if (A == NULL) { mfem_error("HypreSolver::Mult (...) : HypreParMatrix A is missing"); return; } if (!setup_called) { err = SetupFcn()(*this, *A, b, x); if (error_mode == WARN_HYPRE_ERRORS) { if (err) { MFEM_WARNING("Error during setup! Error code: " << err); } } else if (error_mode == ABORT_HYPRE_ERRORS) { MFEM_VERIFY(!err, "Error during setup! Error code: " << err); } hypre_error_flag = 0; setup_called = 1; } if (!iterative_mode) { x = 0.0; } err = SolveFcn()(*this, *A, b, x); if (error_mode == WARN_HYPRE_ERRORS) { if (err) { MFEM_WARNING("Error during solve! Error code: " << err); } } else if (error_mode == ABORT_HYPRE_ERRORS) { MFEM_VERIFY(!err, "Error during solve! Error code: " << err); } hypre_error_flag = 0; } void HypreSolver::Mult(const Vector &b, Vector &x) const { if (A == NULL) { mfem_error("HypreSolver::Mult (...) : HypreParMatrix A is missing"); return; } auto b_data = b.HostRead(); auto x_data = x.HostWrite(); if (B == NULL) { B = new HypreParVector(A->GetComm(), A -> GetGlobalNumRows(), const_cast<double*>(b_data), A -> GetRowStarts()); X = new HypreParVector(A->GetComm(), A -> GetGlobalNumCols(), x_data, A -> GetColStarts()); } else { B -> SetData(const_cast<double*>(b_data)); X -> SetData(x_data); } Mult(*B, *X); } HypreSolver::~HypreSolver() { if (B) { delete B; } if (X) { delete X; } } HyprePCG::HyprePCG(MPI_Comm comm) : precond(NULL) { iterative_mode = true; HYPRE_ParCSRPCGCreate(comm, &pcg_solver); } HyprePCG::HyprePCG(HypreParMatrix &_A) : HypreSolver(&_A), precond(NULL) { MPI_Comm comm; iterative_mode = true; HYPRE_ParCSRMatrixGetComm(*A, &comm); HYPRE_ParCSRPCGCreate(comm, &pcg_solver); } void HyprePCG::SetOperator(const Operator &op) { const HypreParMatrix *new_A = dynamic_cast<const HypreParMatrix *>(&op); MFEM_VERIFY(new_A, "new Operator must be a HypreParMatrix!"); // update base classes: Operator, Solver, HypreSolver height = new_A->Height(); width = new_A->Width(); A = const_cast<HypreParMatrix *>(new_A); if (precond) { precond->SetOperator(*A); this->SetPreconditioner(*precond); } setup_called = 0; delete X; delete B; B = X = NULL; } void HyprePCG::SetTol(double tol) { HYPRE_PCGSetTol(pcg_solver, tol); } void HyprePCG::SetMaxIter(int max_iter) { HYPRE_PCGSetMaxIter(pcg_solver, max_iter); } void HyprePCG::SetLogging(int logging) { HYPRE_PCGSetLogging(pcg_solver, logging); } void HyprePCG::SetPrintLevel(int print_lvl) { HYPRE_ParCSRPCGSetPrintLevel(pcg_solver, print_lvl); } void HyprePCG::SetPreconditioner(HypreSolver &_precond) { precond = &_precond; HYPRE_ParCSRPCGSetPrecond(pcg_solver, _precond.SolveFcn(), _precond.SetupFcn(), _precond); } void HyprePCG::SetResidualConvergenceOptions(int res_frequency, double rtol) { HYPRE_PCGSetTwoNorm(pcg_solver, 1); if (res_frequency > 0) { HYPRE_PCGSetRecomputeResidualP(pcg_solver, res_frequency); } if (rtol > 0.0) { HYPRE_PCGSetResidualTol(pcg_solver, rtol); } } void HyprePCG::Mult(const HypreParVector &b, HypreParVector &x) const { int myid; HYPRE_Int time_index = 0; HYPRE_Int num_iterations; double final_res_norm; MPI_Comm comm; HYPRE_Int print_level; HYPRE_PCGGetPrintLevel(pcg_solver, &print_level); HYPRE_ParCSRPCGSetPrintLevel(pcg_solver, print_level%3); HYPRE_ParCSRMatrixGetComm(*A, &comm); if (!setup_called) { if (print_level > 0 && print_level < 3) { time_index = hypre_InitializeTiming("PCG Setup"); hypre_BeginTiming(time_index); } HYPRE_ParCSRPCGSetup(pcg_solver, *A, b, x); setup_called = 1; if (print_level > 0 && print_level < 3) { hypre_EndTiming(time_index); hypre_PrintTiming("Setup phase times", comm); hypre_FinalizeTiming(time_index); hypre_ClearTiming(); } } if (print_level > 0 && print_level < 3) { time_index = hypre_InitializeTiming("PCG Solve"); hypre_BeginTiming(time_index); } if (!iterative_mode) { x = 0.0; } b.HostRead(); x.HostReadWrite(); HYPRE_ParCSRPCGSolve(pcg_solver, *A, b, x); if (print_level > 0) { if (print_level < 3) { hypre_EndTiming(time_index); hypre_PrintTiming("Solve phase times", comm); hypre_FinalizeTiming(time_index); hypre_ClearTiming(); } HYPRE_ParCSRPCGGetNumIterations(pcg_solver, &num_iterations); HYPRE_ParCSRPCGGetFinalRelativeResidualNorm(pcg_solver, &final_res_norm); MPI_Comm_rank(comm, &myid); if (myid == 0) { mfem::out << "PCG Iterations = " << num_iterations << endl << "Final PCG Relative Residual Norm = " << final_res_norm << endl; } } HYPRE_ParCSRPCGSetPrintLevel(pcg_solver, print_level); } HyprePCG::~HyprePCG() { HYPRE_ParCSRPCGDestroy(pcg_solver); } HypreGMRES::HypreGMRES(MPI_Comm comm) : precond(NULL) { iterative_mode = true; HYPRE_ParCSRGMRESCreate(comm, &gmres_solver); SetDefaultOptions(); } HypreGMRES::HypreGMRES(HypreParMatrix &_A) : HypreSolver(&_A) { MPI_Comm comm; iterative_mode = true; HYPRE_ParCSRMatrixGetComm(*A, &comm); HYPRE_ParCSRGMRESCreate(comm, &gmres_solver); SetDefaultOptions(); } void HypreGMRES::SetDefaultOptions() { int k_dim = 50; int max_iter = 100; double tol = 1e-6; HYPRE_ParCSRGMRESSetKDim(gmres_solver, k_dim); HYPRE_ParCSRGMRESSetMaxIter(gmres_solver, max_iter); HYPRE_ParCSRGMRESSetTol(gmres_solver, tol); } void HypreGMRES::SetOperator(const Operator &op) { const HypreParMatrix *new_A = dynamic_cast<const HypreParMatrix *>(&op); MFEM_VERIFY(new_A, "new Operator must be a HypreParMatrix!"); // update base classes: Operator, Solver, HypreSolver height = new_A->Height(); width = new_A->Width(); A = const_cast<HypreParMatrix *>(new_A); if (precond) { precond->SetOperator(*A); this->SetPreconditioner(*precond); } setup_called = 0; delete X; delete B; B = X = NULL; } void HypreGMRES::SetTol(double tol) { HYPRE_GMRESSetTol(gmres_solver, tol); } void HypreGMRES::SetMaxIter(int max_iter) { HYPRE_GMRESSetMaxIter(gmres_solver, max_iter); } void HypreGMRES::SetKDim(int k_dim) { HYPRE_GMRESSetKDim(gmres_solver, k_dim); } void HypreGMRES::SetLogging(int logging) { HYPRE_GMRESSetLogging(gmres_solver, logging); } void HypreGMRES::SetPrintLevel(int print_lvl) { HYPRE_GMRESSetPrintLevel(gmres_solver, print_lvl); } void HypreGMRES::SetPreconditioner(HypreSolver &_precond) { precond = &_precond; HYPRE_ParCSRGMRESSetPrecond(gmres_solver, _precond.SolveFcn(), _precond.SetupFcn(), _precond); } void HypreGMRES::Mult(const HypreParVector &b, HypreParVector &x) const { int myid; HYPRE_Int time_index = 0; HYPRE_Int num_iterations; double final_res_norm; MPI_Comm comm; HYPRE_Int print_level; HYPRE_GMRESGetPrintLevel(gmres_solver, &print_level); HYPRE_ParCSRMatrixGetComm(*A, &comm); if (!setup_called) { if (print_level > 0) { time_index = hypre_InitializeTiming("GMRES Setup"); hypre_BeginTiming(time_index); } HYPRE_ParCSRGMRESSetup(gmres_solver, *A, b, x); setup_called = 1; if (print_level > 0) { hypre_EndTiming(time_index); hypre_PrintTiming("Setup phase times", comm); hypre_FinalizeTiming(time_index); hypre_ClearTiming(); } } if (print_level > 0) { time_index = hypre_InitializeTiming("GMRES Solve"); hypre_BeginTiming(time_index); } if (!iterative_mode) { x = 0.0; } HYPRE_ParCSRGMRESSolve(gmres_solver, *A, b, x); if (print_level > 0) { hypre_EndTiming(time_index); hypre_PrintTiming("Solve phase times", comm); hypre_FinalizeTiming(time_index); hypre_ClearTiming(); HYPRE_ParCSRGMRESGetNumIterations(gmres_solver, &num_iterations); HYPRE_ParCSRGMRESGetFinalRelativeResidualNorm(gmres_solver, &final_res_norm); MPI_Comm_rank(comm, &myid); if (myid == 0) { mfem::out << "GMRES Iterations = " << num_iterations << endl << "Final GMRES Relative Residual Norm = " << final_res_norm << endl; } } } HypreGMRES::~HypreGMRES() { HYPRE_ParCSRGMRESDestroy(gmres_solver); } void HypreDiagScale::SetOperator(const Operator &op) { const HypreParMatrix *new_A = dynamic_cast<const HypreParMatrix *>(&op); MFEM_VERIFY(new_A, "new Operator must be a HypreParMatrix!"); // update base classes: Operator, Solver, HypreSolver height = new_A->Height(); width = new_A->Width(); A = const_cast<HypreParMatrix *>(new_A); setup_called = 0; delete X; delete B; B = X = NULL; } HypreParaSails::HypreParaSails(MPI_Comm comm) { HYPRE_ParaSailsCreate(comm, &sai_precond); SetDefaultOptions(); } HypreParaSails::HypreParaSails(HypreParMatrix &A) : HypreSolver(&A) { MPI_Comm comm; HYPRE_ParCSRMatrixGetComm(A, &comm); HYPRE_ParaSailsCreate(comm, &sai_precond); SetDefaultOptions(); } void HypreParaSails::SetDefaultOptions() { int sai_max_levels = 1; double sai_threshold = 0.1; double sai_filter = 0.1; int sai_sym = 0; double sai_loadbal = 0.0; int sai_reuse = 0; int sai_logging = 1; HYPRE_ParaSailsSetParams(sai_precond, sai_threshold, sai_max_levels); HYPRE_ParaSailsSetFilter(sai_precond, sai_filter); HYPRE_ParaSailsSetSym(sai_precond, sai_sym); HYPRE_ParaSailsSetLoadbal(sai_precond, sai_loadbal); HYPRE_ParaSailsSetReuse(sai_precond, sai_reuse); HYPRE_ParaSailsSetLogging(sai_precond, sai_logging); } void HypreParaSails::ResetSAIPrecond(MPI_Comm comm) { HYPRE_Int sai_max_levels; HYPRE_Real sai_threshold; HYPRE_Real sai_filter; HYPRE_Int sai_sym; HYPRE_Real sai_loadbal; HYPRE_Int sai_reuse; HYPRE_Int sai_logging; // hypre_ParAMGData *amg_data = (hypre_ParAMGData *)sai_precond; HYPRE_ParaSailsGetNlevels(sai_precond, &sai_max_levels); HYPRE_ParaSailsGetThresh(sai_precond, &sai_threshold); HYPRE_ParaSailsGetFilter(sai_precond, &sai_filter); HYPRE_ParaSailsGetSym(sai_precond, &sai_sym); HYPRE_ParaSailsGetLoadbal(sai_precond, &sai_loadbal); HYPRE_ParaSailsGetReuse(sai_precond, &sai_reuse); HYPRE_ParaSailsGetLogging(sai_precond, &sai_logging); HYPRE_ParaSailsDestroy(sai_precond); HYPRE_ParaSailsCreate(comm, &sai_precond); HYPRE_ParaSailsSetParams(sai_precond, sai_threshold, sai_max_levels); HYPRE_ParaSailsSetFilter(sai_precond, sai_filter); HYPRE_ParaSailsSetSym(sai_precond, sai_sym); HYPRE_ParaSailsSetLoadbal(sai_precond, sai_loadbal); HYPRE_ParaSailsSetReuse(sai_precond, sai_reuse); HYPRE_ParaSailsSetLogging(sai_precond, sai_logging); } void HypreParaSails::SetOperator(const Operator &op) { const HypreParMatrix *new_A = dynamic_cast<const HypreParMatrix *>(&op); MFEM_VERIFY(new_A, "new Operator must be a HypreParMatrix!"); if (A) { MPI_Comm comm; HYPRE_ParCSRMatrixGetComm(*A, &comm); ResetSAIPrecond(comm); } // update base classes: Operator, Solver, HypreSolver height = new_A->Height(); width = new_A->Width(); A = const_cast<HypreParMatrix *>(new_A); setup_called = 0; delete X; delete B; B = X = NULL; } void HypreParaSails::SetSymmetry(int sym) { HYPRE_ParaSailsSetSym(sai_precond, sym); } HypreParaSails::~HypreParaSails() { HYPRE_ParaSailsDestroy(sai_precond); } HypreEuclid::HypreEuclid(MPI_Comm comm) { HYPRE_EuclidCreate(comm, &euc_precond); SetDefaultOptions(); } HypreEuclid::HypreEuclid(HypreParMatrix &A) : HypreSolver(&A) { MPI_Comm comm; HYPRE_ParCSRMatrixGetComm(A, &comm); HYPRE_EuclidCreate(comm, &euc_precond); SetDefaultOptions(); } void HypreEuclid::SetDefaultOptions() { int euc_level = 1; // We use ILU(1) int euc_stats = 0; // No logging int euc_mem = 0; // No memory logging int euc_bj = 0; // 1: Use Block Jacobi int euc_ro_sc = 0; // 1: Use Row scaling HYPRE_EuclidSetLevel(euc_precond, euc_level); HYPRE_EuclidSetStats(euc_precond, euc_stats); HYPRE_EuclidSetMem(euc_precond, euc_mem); HYPRE_EuclidSetBJ(euc_precond, euc_bj); HYPRE_EuclidSetRowScale(euc_precond, euc_ro_sc); } void HypreEuclid::ResetEuclidPrecond(MPI_Comm comm) { // Euclid does not seem to offer access to its current configuration, so we // simply reset it to its default options. HYPRE_EuclidDestroy(euc_precond); HYPRE_EuclidCreate(comm, &euc_precond); SetDefaultOptions(); } void HypreEuclid::SetOperator(const Operator &op) { const HypreParMatrix *new_A = dynamic_cast<const HypreParMatrix *>(&op); MFEM_VERIFY(new_A, "new Operator must be a HypreParMatrix!"); if (A) { MPI_Comm comm; HYPRE_ParCSRMatrixGetComm(*new_A, &comm); ResetEuclidPrecond(comm); } // update base classes: Operator, Solver, HypreSolver height = new_A->Height(); width = new_A->Width(); A = const_cast<HypreParMatrix *>(new_A); setup_called = 0; delete X; delete B; B = X = NULL; } HypreEuclid::~HypreEuclid() { HYPRE_EuclidDestroy(euc_precond); } HypreBoomerAMG::HypreBoomerAMG() { HYPRE_BoomerAMGCreate(&amg_precond); SetDefaultOptions(); } HypreBoomerAMG::HypreBoomerAMG(HypreParMatrix &A) : HypreSolver(&A) { HYPRE_BoomerAMGCreate(&amg_precond); SetDefaultOptions(); } void HypreBoomerAMG::SetDefaultOptions() { // AMG coarsening options: int coarsen_type = 10; // 10 = HMIS, 8 = PMIS, 6 = Falgout, 0 = CLJP int agg_levels = 1; // number of aggressive coarsening levels double theta = 0.25; // strength threshold: 0.25, 0.5, 0.8 // AMG interpolation options: int interp_type = 6; // 6 = extended+i, 0 = classical int Pmax = 4; // max number of elements per row in P // AMG relaxation options: int relax_type = 8; // 8 = l1-GS, 6 = symm. GS, 3 = GS, 18 = l1-Jacobi int relax_sweeps = 1; // relaxation sweeps on each level // Additional options: int print_level = 1; // print AMG iterations? 1 = no, 2 = yes int max_levels = 25; // max number of levels in AMG hierarchy HYPRE_BoomerAMGSetCoarsenType(amg_precond, coarsen_type); HYPRE_BoomerAMGSetAggNumLevels(amg_precond, agg_levels); HYPRE_BoomerAMGSetRelaxType(amg_precond, relax_type); HYPRE_BoomerAMGSetNumSweeps(amg_precond, relax_sweeps); HYPRE_BoomerAMGSetStrongThreshold(amg_precond, theta); HYPRE_BoomerAMGSetInterpType(amg_precond, interp_type); HYPRE_BoomerAMGSetPMaxElmts(amg_precond, Pmax); HYPRE_BoomerAMGSetPrintLevel(amg_precond, print_level); HYPRE_BoomerAMGSetMaxLevels(amg_precond, max_levels); // Use as a preconditioner (one V-cycle, zero tolerance) HYPRE_BoomerAMGSetMaxIter(amg_precond, 1); HYPRE_BoomerAMGSetTol(amg_precond, 0.0); } void HypreBoomerAMG::ResetAMGPrecond() { HYPRE_Int coarsen_type; HYPRE_Int agg_levels; HYPRE_Int relax_type; HYPRE_Int relax_sweeps; HYPRE_Real theta; HYPRE_Int interp_type; HYPRE_Int Pmax; HYPRE_Int print_level; HYPRE_Int dim; HYPRE_Int nrbms = rbms.Size(); HYPRE_Int nodal; HYPRE_Int nodal_diag; HYPRE_Int relax_coarse; HYPRE_Int interp_vec_variant; HYPRE_Int q_max; HYPRE_Int smooth_interp_vectors; HYPRE_Int interp_refine; hypre_ParAMGData *amg_data = (hypre_ParAMGData *)amg_precond; // read options from amg_precond HYPRE_BoomerAMGGetCoarsenType(amg_precond, &coarsen_type); agg_levels = hypre_ParAMGDataAggNumLevels(amg_data); relax_type = hypre_ParAMGDataUserRelaxType(amg_data); relax_sweeps = hypre_ParAMGDataUserNumSweeps(amg_data); HYPRE_BoomerAMGGetStrongThreshold(amg_precond, &theta); hypre_BoomerAMGGetInterpType(amg_precond, &interp_type); HYPRE_BoomerAMGGetPMaxElmts(amg_precond, &Pmax); HYPRE_BoomerAMGGetPrintLevel(amg_precond, &print_level); HYPRE_BoomerAMGGetNumFunctions(amg_precond, &dim); if (nrbms) // elasticity solver options { nodal = hypre_ParAMGDataNodal(amg_data); nodal_diag = hypre_ParAMGDataNodalDiag(amg_data); HYPRE_BoomerAMGGetCycleRelaxType(amg_precond, &relax_coarse, 3); interp_vec_variant = hypre_ParAMGInterpVecVariant(amg_data); q_max = hypre_ParAMGInterpVecQMax(amg_data); smooth_interp_vectors = hypre_ParAMGSmoothInterpVectors(amg_data); interp_refine = hypre_ParAMGInterpRefine(amg_data); } HYPRE_BoomerAMGDestroy(amg_precond); HYPRE_BoomerAMGCreate(&amg_precond); HYPRE_BoomerAMGSetCoarsenType(amg_precond, coarsen_type); HYPRE_BoomerAMGSetAggNumLevels(amg_precond, agg_levels); HYPRE_BoomerAMGSetRelaxType(amg_precond, relax_type); HYPRE_BoomerAMGSetNumSweeps(amg_precond, relax_sweeps); HYPRE_BoomerAMGSetMaxLevels(amg_precond, 25); HYPRE_BoomerAMGSetTol(amg_precond, 0.0); HYPRE_BoomerAMGSetMaxIter(amg_precond, 1); // one V-cycle HYPRE_BoomerAMGSetStrongThreshold(amg_precond, theta); HYPRE_BoomerAMGSetInterpType(amg_precond, interp_type); HYPRE_BoomerAMGSetPMaxElmts(amg_precond, Pmax); HYPRE_BoomerAMGSetPrintLevel(amg_precond, print_level); HYPRE_BoomerAMGSetNumFunctions(amg_precond, dim); if (nrbms) { HYPRE_BoomerAMGSetNodal(amg_precond, nodal); HYPRE_BoomerAMGSetNodalDiag(amg_precond, nodal_diag); HYPRE_BoomerAMGSetCycleRelaxType(amg_precond, relax_coarse, 3); HYPRE_BoomerAMGSetInterpVecVariant(amg_precond, interp_vec_variant); HYPRE_BoomerAMGSetInterpVecQMax(amg_precond, q_max); HYPRE_BoomerAMGSetSmoothInterpVectors(amg_precond, smooth_interp_vectors); HYPRE_BoomerAMGSetInterpRefine(amg_precond, interp_refine); RecomputeRBMs(); HYPRE_BoomerAMGSetInterpVectors(amg_precond, rbms.Size(), rbms.GetData()); } } void HypreBoomerAMG::SetOperator(const Operator &op) { const HypreParMatrix *new_A = dynamic_cast<const HypreParMatrix *>(&op); MFEM_VERIFY(new_A, "new Operator must be a HypreParMatrix!"); if (A) { ResetAMGPrecond(); } // update base classes: Operator, Solver, HypreSolver height = new_A->Height(); width = new_A->Width(); A = const_cast<HypreParMatrix *>(new_A); setup_called = 0; delete X; delete B; B = X = NULL; } void HypreBoomerAMG::SetSystemsOptions(int dim) { HYPRE_BoomerAMGSetNumFunctions(amg_precond, dim); // More robust options with respect to convergence HYPRE_BoomerAMGSetAggNumLevels(amg_precond, 0); HYPRE_BoomerAMGSetStrongThreshold(amg_precond, 0.5); } // Rotational rigid-body mode functions, used in SetElasticityOptions() static void func_rxy(const Vector &x, Vector &y) { y = 0.0; y(0) = x(1); y(1) = -x(0); } static void func_ryz(const Vector &x, Vector &y) { y = 0.0; y(1) = x(2); y(2) = -x(1); } static void func_rzx(const Vector &x, Vector &y) { y = 0.0; y(2) = x(0); y(0) = -x(2); } void HypreBoomerAMG::RecomputeRBMs() { int nrbms; Array<HypreParVector*> gf_rbms; int dim = fespace->GetParMesh()->Dimension(); for (int i = 0; i < rbms.Size(); i++) { HYPRE_ParVectorDestroy(rbms[i]); } if (dim == 2) { nrbms = 1; VectorFunctionCoefficient coeff_rxy(2, func_rxy); ParGridFunction rbms_rxy(fespace); rbms_rxy.ProjectCoefficient(coeff_rxy); rbms.SetSize(nrbms); gf_rbms.SetSize(nrbms); gf_rbms[0] = rbms_rxy.ParallelAverage(); } else if (dim == 3) { nrbms = 3; VectorFunctionCoefficient coeff_rxy(3, func_rxy); VectorFunctionCoefficient coeff_ryz(3, func_ryz); VectorFunctionCoefficient coeff_rzx(3, func_rzx); ParGridFunction rbms_rxy(fespace); ParGridFunction rbms_ryz(fespace); ParGridFunction rbms_rzx(fespace); rbms_rxy.ProjectCoefficient(coeff_rxy); rbms_ryz.ProjectCoefficient(coeff_ryz); rbms_rzx.ProjectCoefficient(coeff_rzx); rbms.SetSize(nrbms); gf_rbms.SetSize(nrbms); gf_rbms[0] = rbms_rxy.ParallelAverage(); gf_rbms[1] = rbms_ryz.ParallelAverage(); gf_rbms[2] = rbms_rzx.ParallelAverage(); } else { nrbms = 0; rbms.SetSize(nrbms); } // Transfer the RBMs from the ParGridFunction to the HYPRE_ParVector objects for (int i = 0; i < nrbms; i++) { rbms[i] = gf_rbms[i]->StealParVector(); delete gf_rbms[i]; } } void HypreBoomerAMG::SetElasticityOptions(ParFiniteElementSpace *fespace) { // Save the finite element space to support multiple calls to SetOperator() this->fespace = fespace; // Make sure the systems AMG options are set int dim = fespace->GetParMesh()->Dimension(); SetSystemsOptions(dim); // Nodal coarsening options (nodal coarsening is required for this solver) // See hypre's new_ij driver and the paper for descriptions. int nodal = 4; // strength reduction norm: 1, 3 or 4 int nodal_diag = 1; // diagonal in strength matrix: 0, 1 or 2 int relax_coarse = 8; // smoother on the coarsest grid: 8, 99 or 29 // Elasticity interpolation options int interp_vec_variant = 2; // 1 = GM-1, 2 = GM-2, 3 = LN int q_max = 4; // max elements per row for each Q int smooth_interp_vectors = 1; // smooth the rigid-body modes? // Optionally pre-process the interpolation matrix through iterative weight // refinement (this is generally applicable for any system) int interp_refine = 1; HYPRE_BoomerAMGSetNodal(amg_precond, nodal); HYPRE_BoomerAMGSetNodalDiag(amg_precond, nodal_diag); HYPRE_BoomerAMGSetCycleRelaxType(amg_precond, relax_coarse, 3); HYPRE_BoomerAMGSetInterpVecVariant(amg_precond, interp_vec_variant); HYPRE_BoomerAMGSetInterpVecQMax(amg_precond, q_max); HYPRE_BoomerAMGSetSmoothInterpVectors(amg_precond, smooth_interp_vectors); HYPRE_BoomerAMGSetInterpRefine(amg_precond, interp_refine); RecomputeRBMs(); HYPRE_BoomerAMGSetInterpVectors(amg_precond, rbms.Size(), rbms.GetData()); // The above BoomerAMG options may result in singular matrices on the coarse // grids, which are handled correctly in hypre's Solve method, but can produce // hypre errors in the Setup (specifically in the l1 row norm computation). // See the documentation of SetErrorMode() for more details. error_mode = IGNORE_HYPRE_ERRORS; } HypreBoomerAMG::~HypreBoomerAMG() { for (int i = 0; i < rbms.Size(); i++) { HYPRE_ParVectorDestroy(rbms[i]); } HYPRE_BoomerAMGDestroy(amg_precond); } HypreAMS::HypreAMS(ParFiniteElementSpace *edge_fespace) { Init(edge_fespace); } HypreAMS::HypreAMS(HypreParMatrix &A, ParFiniteElementSpace *edge_fespace) : HypreSolver(&A) { Init(edge_fespace); } void HypreAMS::Init(ParFiniteElementSpace *edge_fespace) { int cycle_type = 13; int rlx_type = 2; int rlx_sweeps = 1; double rlx_weight = 1.0; double rlx_omega = 1.0; int amg_coarsen_type = 10; int amg_agg_levels = 1; int amg_rlx_type = 8; double theta = 0.25; int amg_interp_type = 6; int amg_Pmax = 4; int dim = edge_fespace->GetMesh()->Dimension(); int sdim = edge_fespace->GetMesh()->SpaceDimension(); const FiniteElementCollection *edge_fec = edge_fespace->FEColl(); bool trace_space, rt_trace_space; ND_Trace_FECollection *nd_tr_fec = NULL; trace_space = dynamic_cast<const ND_Trace_FECollection*>(edge_fec); rt_trace_space = dynamic_cast<const RT_Trace_FECollection*>(edge_fec); trace_space = trace_space || rt_trace_space; int p = 1; if (edge_fespace->GetNE() > 0) { if (trace_space) { p = edge_fespace->GetFaceOrder(0); if (dim == 2) { p++; } } else { p = edge_fespace->GetOrder(0); } } ParMesh *pmesh = edge_fespace->GetParMesh(); if (rt_trace_space) { nd_tr_fec = new ND_Trace_FECollection(p, dim); edge_fespace = new ParFiniteElementSpace(pmesh, nd_tr_fec); } HYPRE_AMSCreate(&ams); HYPRE_AMSSetDimension(ams, sdim); // 2D H(div) and 3D H(curl) problems HYPRE_AMSSetTol(ams, 0.0); HYPRE_AMSSetMaxIter(ams, 1); // use as a preconditioner HYPRE_AMSSetCycleType(ams, cycle_type); HYPRE_AMSSetPrintLevel(ams, 1); // define the nodal linear finite element space associated with edge_fespace FiniteElementCollection *vert_fec; if (trace_space) { vert_fec = new H1_Trace_FECollection(p, dim); } else { vert_fec = new H1_FECollection(p, dim); } ParFiniteElementSpace *vert_fespace = new ParFiniteElementSpace(pmesh, vert_fec); // generate and set the vertex coordinates if (p == 1) { ParGridFunction x_coord(vert_fespace); ParGridFunction y_coord(vert_fespace); ParGridFunction z_coord(vert_fespace); double *coord; for (int i = 0; i < pmesh->GetNV(); i++) { coord = pmesh -> GetVertex(i); x_coord(i) = coord[0]; y_coord(i) = coord[1]; if (sdim == 3) { z_coord(i) = coord[2]; } } x = x_coord.ParallelProject(); y = y_coord.ParallelProject(); if (sdim == 2) { z = NULL; HYPRE_AMSSetCoordinateVectors(ams, *x, *y, NULL); } else { z = z_coord.ParallelProject(); HYPRE_AMSSetCoordinateVectors(ams, *x, *y, *z); } } else { x = NULL; y = NULL; z = NULL; } // generate and set the discrete gradient ParDiscreteLinearOperator *grad; grad = new ParDiscreteLinearOperator(vert_fespace, edge_fespace); if (trace_space) { grad->AddTraceFaceInterpolator(new GradientInterpolator); } else { grad->AddDomainInterpolator(new GradientInterpolator); } grad->Assemble(); grad->Finalize(); G = grad->ParallelAssemble(); HYPRE_AMSSetDiscreteGradient(ams, *G); delete grad; // generate and set the Nedelec interpolation matrices Pi = Pix = Piy = Piz = NULL; if (p > 1) { ParFiniteElementSpace *vert_fespace_d = new ParFiniteElementSpace(pmesh, vert_fec, sdim, Ordering::byVDIM); ParDiscreteLinearOperator *id_ND; id_ND = new ParDiscreteLinearOperator(vert_fespace_d, edge_fespace); if (trace_space) { id_ND->AddTraceFaceInterpolator(new IdentityInterpolator); } else { id_ND->AddDomainInterpolator(new IdentityInterpolator); } id_ND->Assemble(); id_ND->Finalize(); if (cycle_type < 10) { Pi = id_ND->ParallelAssemble(); } else { Array2D<HypreParMatrix *> Pi_blocks; id_ND->GetParBlocks(Pi_blocks); Pix = Pi_blocks(0,0); Piy = Pi_blocks(0,1); if (sdim == 3) { Piz = Pi_blocks(0,2); } } delete id_ND; HYPRE_ParCSRMatrix HY_Pi = (Pi) ? (HYPRE_ParCSRMatrix) *Pi : NULL; HYPRE_ParCSRMatrix HY_Pix = (Pix) ? (HYPRE_ParCSRMatrix) *Pix : NULL; HYPRE_ParCSRMatrix HY_Piy = (Piy) ? (HYPRE_ParCSRMatrix) *Piy : NULL; HYPRE_ParCSRMatrix HY_Piz = (Piz) ? (HYPRE_ParCSRMatrix) *Piz : NULL; HYPRE_AMSSetInterpolations(ams, HY_Pi, HY_Pix, HY_Piy, HY_Piz); delete vert_fespace_d; } delete vert_fespace; delete vert_fec; if (rt_trace_space) { delete edge_fespace; delete nd_tr_fec; } // set additional AMS options HYPRE_AMSSetSmoothingOptions(ams, rlx_type, rlx_sweeps, rlx_weight, rlx_omega); HYPRE_AMSSetAlphaAMGOptions(ams, amg_coarsen_type, amg_agg_levels, amg_rlx_type, theta, amg_interp_type, amg_Pmax); HYPRE_AMSSetBetaAMGOptions(ams, amg_coarsen_type, amg_agg_levels, amg_rlx_type, theta, amg_interp_type, amg_Pmax); // The AMS preconditioner may sometimes require inverting singular matrices // with BoomerAMG, which are handled correctly in hypre's Solve method, but // can produce hypre errors in the Setup (specifically in the l1 row norm // computation). See the documentation of SetErrorMode() for more details. error_mode = IGNORE_HYPRE_ERRORS; } void HypreAMS::SetOperator(const Operator &op) { const HypreParMatrix *new_A = dynamic_cast<const HypreParMatrix *>(&op); MFEM_VERIFY(new_A, "new Operator must be a HypreParMatrix!"); // update base classes: Operator, Solver, HypreSolver height = new_A->Height(); width = new_A->Width(); A = const_cast<HypreParMatrix *>(new_A); setup_called = 0; delete X; delete B; B = X = NULL; } HypreAMS::~HypreAMS() { HYPRE_AMSDestroy(ams); delete x; delete y; delete z; delete G; delete Pi; delete Pix; delete Piy; delete Piz; } void HypreAMS::SetPrintLevel(int print_lvl) { HYPRE_AMSSetPrintLevel(ams, print_lvl); } HypreADS::HypreADS(ParFiniteElementSpace *face_fespace) { Init(face_fespace); } HypreADS::HypreADS(HypreParMatrix &A, ParFiniteElementSpace *face_fespace) : HypreSolver(&A) { Init(face_fespace); } void HypreADS::Init(ParFiniteElementSpace *face_fespace) { int cycle_type = 11; int rlx_type = 2; int rlx_sweeps = 1; double rlx_weight = 1.0; double rlx_omega = 1.0; int amg_coarsen_type = 10; int amg_agg_levels = 1; int amg_rlx_type = 8; double theta = 0.25; int amg_interp_type = 6; int amg_Pmax = 4; int ams_cycle_type = 14; const FiniteElementCollection *face_fec = face_fespace->FEColl(); bool trace_space = (dynamic_cast<const RT_Trace_FECollection*>(face_fec) != NULL); int p = 1; if (face_fespace->GetNE() > 0) { if (trace_space) { p = face_fespace->GetFaceOrder(0) + 1; } else { p = face_fespace->GetOrder(0); } } HYPRE_ADSCreate(&ads); HYPRE_ADSSetTol(ads, 0.0); HYPRE_ADSSetMaxIter(ads, 1); // use as a preconditioner HYPRE_ADSSetCycleType(ads, cycle_type); HYPRE_ADSSetPrintLevel(ads, 1); // define the nodal and edge finite element spaces associated with face_fespace ParMesh *pmesh = (ParMesh *) face_fespace->GetMesh(); FiniteElementCollection *vert_fec, *edge_fec; if (trace_space) { vert_fec = new H1_Trace_FECollection(p, 3); edge_fec = new ND_Trace_FECollection(p, 3); } else { vert_fec = new H1_FECollection(p, 3); edge_fec = new ND_FECollection(p, 3); } ParFiniteElementSpace *vert_fespace = new ParFiniteElementSpace(pmesh, vert_fec); ParFiniteElementSpace *edge_fespace = new ParFiniteElementSpace(pmesh, edge_fec); // generate and set the vertex coordinates if (p == 1) { ParGridFunction x_coord(vert_fespace); ParGridFunction y_coord(vert_fespace); ParGridFunction z_coord(vert_fespace); double *coord; for (int i = 0; i < pmesh->GetNV(); i++) { coord = pmesh -> GetVertex(i); x_coord(i) = coord[0]; y_coord(i) = coord[1]; z_coord(i) = coord[2]; } x = x_coord.ParallelProject(); y = y_coord.ParallelProject(); z = z_coord.ParallelProject(); HYPRE_ADSSetCoordinateVectors(ads, *x, *y, *z); } else { x = NULL; y = NULL; z = NULL; } // generate and set the discrete curl ParDiscreteLinearOperator *curl; curl = new ParDiscreteLinearOperator(edge_fespace, face_fespace); if (trace_space) { curl->AddTraceFaceInterpolator(new CurlInterpolator); } else { curl->AddDomainInterpolator(new CurlInterpolator); } curl->Assemble(); curl->Finalize(); C = curl->ParallelAssemble(); C->CopyColStarts(); // since we'll delete edge_fespace HYPRE_ADSSetDiscreteCurl(ads, *C); delete curl; // generate and set the discrete gradient ParDiscreteLinearOperator *grad; grad = new ParDiscreteLinearOperator(vert_fespace, edge_fespace); if (trace_space) { grad->AddTraceFaceInterpolator(new GradientInterpolator); } else { grad->AddDomainInterpolator(new GradientInterpolator); } grad->Assemble(); grad->Finalize(); G = grad->ParallelAssemble(); G->CopyColStarts(); // since we'll delete vert_fespace G->CopyRowStarts(); // since we'll delete edge_fespace HYPRE_ADSSetDiscreteGradient(ads, *G); delete grad; // generate and set the Nedelec and Raviart-Thomas interpolation matrices RT_Pi = RT_Pix = RT_Piy = RT_Piz = NULL; ND_Pi = ND_Pix = ND_Piy = ND_Piz = NULL; if (p > 1) { ParFiniteElementSpace *vert_fespace_d = new ParFiniteElementSpace(pmesh, vert_fec, 3, Ordering::byVDIM); ParDiscreteLinearOperator *id_ND; id_ND = new ParDiscreteLinearOperator(vert_fespace_d, edge_fespace); if (trace_space) { id_ND->AddTraceFaceInterpolator(new IdentityInterpolator); } else { id_ND->AddDomainInterpolator(new IdentityInterpolator); } id_ND->Assemble(); id_ND->Finalize(); if (ams_cycle_type < 10) { ND_Pi = id_ND->ParallelAssemble(); ND_Pi->CopyColStarts(); // since we'll delete vert_fespace_d ND_Pi->CopyRowStarts(); // since we'll delete edge_fespace } else { Array2D<HypreParMatrix *> ND_Pi_blocks; id_ND->GetParBlocks(ND_Pi_blocks); ND_Pix = ND_Pi_blocks(0,0); ND_Piy = ND_Pi_blocks(0,1); ND_Piz = ND_Pi_blocks(0,2); } delete id_ND; ParDiscreteLinearOperator *id_RT; id_RT = new ParDiscreteLinearOperator(vert_fespace_d, face_fespace); if (trace_space) { id_RT->AddTraceFaceInterpolator(new NormalInterpolator); } else { id_RT->AddDomainInterpolator(new IdentityInterpolator); } id_RT->Assemble(); id_RT->Finalize(); if (cycle_type < 10) { RT_Pi = id_RT->ParallelAssemble(); RT_Pi->CopyColStarts(); // since we'll delete vert_fespace_d } else { Array2D<HypreParMatrix *> RT_Pi_blocks; id_RT->GetParBlocks(RT_Pi_blocks); RT_Pix = RT_Pi_blocks(0,0); RT_Piy = RT_Pi_blocks(0,1); RT_Piz = RT_Pi_blocks(0,2); } delete id_RT; HYPRE_ParCSRMatrix HY_RT_Pi, HY_RT_Pix, HY_RT_Piy, HY_RT_Piz; HY_RT_Pi = (RT_Pi) ? (HYPRE_ParCSRMatrix) *RT_Pi : NULL; HY_RT_Pix = (RT_Pix) ? (HYPRE_ParCSRMatrix) *RT_Pix : NULL; HY_RT_Piy = (RT_Piy) ? (HYPRE_ParCSRMatrix) *RT_Piy : NULL; HY_RT_Piz = (RT_Piz) ? (HYPRE_ParCSRMatrix) *RT_Piz : NULL; HYPRE_ParCSRMatrix HY_ND_Pi, HY_ND_Pix, HY_ND_Piy, HY_ND_Piz; HY_ND_Pi = (ND_Pi) ? (HYPRE_ParCSRMatrix) *ND_Pi : NULL; HY_ND_Pix = (ND_Pix) ? (HYPRE_ParCSRMatrix) *ND_Pix : NULL; HY_ND_Piy = (ND_Piy) ? (HYPRE_ParCSRMatrix) *ND_Piy : NULL; HY_ND_Piz = (ND_Piz) ? (HYPRE_ParCSRMatrix) *ND_Piz : NULL; HYPRE_ADSSetInterpolations(ads, HY_RT_Pi, HY_RT_Pix, HY_RT_Piy, HY_RT_Piz, HY_ND_Pi, HY_ND_Pix, HY_ND_Piy, HY_ND_Piz); delete vert_fespace_d; } delete vert_fec; delete vert_fespace; delete edge_fec; delete edge_fespace; // set additional ADS options HYPRE_ADSSetSmoothingOptions(ads, rlx_type, rlx_sweeps, rlx_weight, rlx_omega); HYPRE_ADSSetAMGOptions(ads, amg_coarsen_type, amg_agg_levels, amg_rlx_type, theta, amg_interp_type, amg_Pmax); HYPRE_ADSSetAMSOptions(ads, ams_cycle_type, amg_coarsen_type, amg_agg_levels, amg_rlx_type, theta, amg_interp_type, amg_Pmax); // The ADS preconditioner requires inverting singular matrices with BoomerAMG, // which are handled correctly in hypre's Solve method, but can produce hypre // errors in the Setup (specifically in the l1 row norm computation). See the // documentation of SetErrorMode() for more details. error_mode = IGNORE_HYPRE_ERRORS; } void HypreADS::SetOperator(const Operator &op) { const HypreParMatrix *new_A = dynamic_cast<const HypreParMatrix *>(&op); MFEM_VERIFY(new_A, "new Operator must be a HypreParMatrix!"); // update base classes: Operator, Solver, HypreSolver height = new_A->Height(); width = new_A->Width(); A = const_cast<HypreParMatrix *>(new_A); setup_called = 0; delete X; delete B; B = X = NULL; } HypreADS::~HypreADS() { HYPRE_ADSDestroy(ads); delete x; delete y; delete z; delete G; delete C; delete RT_Pi; delete RT_Pix; delete RT_Piy; delete RT_Piz; delete ND_Pi; delete ND_Pix; delete ND_Piy; delete ND_Piz; } void HypreADS::SetPrintLevel(int print_lvl) { HYPRE_ADSSetPrintLevel(ads, print_lvl); } HypreLOBPCG::HypreMultiVector::HypreMultiVector(int n, HypreParVector & v, mv_InterfaceInterpreter & interpreter) : hpv(NULL), nv(n) { mv_ptr = mv_MultiVectorCreateFromSampleVector(&interpreter, nv, (HYPRE_ParVector)v); HYPRE_ParVector* vecs = NULL; { mv_TempMultiVector* tmp = (mv_TempMultiVector*)mv_MultiVectorGetData(mv_ptr); vecs = (HYPRE_ParVector*)(tmp -> vector); } hpv = new HypreParVector*[nv]; for (int i=0; i<nv; i++) { hpv[i] = new HypreParVector(vecs[i]); } } HypreLOBPCG::HypreMultiVector::~HypreMultiVector() { if ( hpv != NULL ) { for (int i=0; i<nv; i++) { delete hpv[i]; } delete [] hpv; } mv_MultiVectorDestroy(mv_ptr); } void HypreLOBPCG::HypreMultiVector::Randomize(HYPRE_Int seed) { mv_MultiVectorSetRandom(mv_ptr, seed); } HypreParVector & HypreLOBPCG::HypreMultiVector::GetVector(unsigned int i) { MFEM_ASSERT((int)i < nv, "index out of range"); return ( *hpv[i] ); } HypreParVector ** HypreLOBPCG::HypreMultiVector::StealVectors() { HypreParVector ** hpv_ret = hpv; hpv = NULL; mv_TempMultiVector * mv_tmp = (mv_TempMultiVector*)mv_MultiVectorGetData(mv_ptr); mv_tmp->ownsVectors = 0; for (int i=0; i<nv; i++) { hpv_ret[i]->SetOwnership(1); } return hpv_ret; } HypreLOBPCG::HypreLOBPCG(MPI_Comm c) : comm(c), myid(0), numProcs(1), nev(10), seed(75), glbSize(-1), part(NULL), multi_vec(NULL), x(NULL), subSpaceProj(NULL) { MPI_Comm_size(comm,&numProcs); MPI_Comm_rank(comm,&myid); HYPRE_ParCSRSetupInterpreter(&interpreter); HYPRE_ParCSRSetupMatvec(&matvec_fn); HYPRE_LOBPCGCreate(&interpreter, &matvec_fn, &lobpcg_solver); } HypreLOBPCG::~HypreLOBPCG() { delete multi_vec; delete x; delete [] part; HYPRE_LOBPCGDestroy(lobpcg_solver); } void HypreLOBPCG::SetTol(double tol) { HYPRE_LOBPCGSetTol(lobpcg_solver, tol); } void HypreLOBPCG::SetRelTol(double rel_tol) { #if MFEM_HYPRE_VERSION >= 21101 HYPRE_LOBPCGSetRTol(lobpcg_solver, rel_tol); #else MFEM_ABORT("This method requires HYPRE version >= 2.11.1"); #endif } void HypreLOBPCG::SetMaxIter(int max_iter) { HYPRE_LOBPCGSetMaxIter(lobpcg_solver, max_iter); } void HypreLOBPCG::SetPrintLevel(int logging) { if (myid == 0) { HYPRE_LOBPCGSetPrintLevel(lobpcg_solver, logging); } } void HypreLOBPCG::SetPrecondUsageMode(int pcg_mode) { HYPRE_LOBPCGSetPrecondUsageMode(lobpcg_solver, pcg_mode); } void HypreLOBPCG::SetPreconditioner(Solver & precond) { HYPRE_LOBPCGSetPrecond(lobpcg_solver, (HYPRE_PtrToSolverFcn)this->PrecondSolve, (HYPRE_PtrToSolverFcn)this->PrecondSetup, (HYPRE_Solver)&precond); } void HypreLOBPCG::SetOperator(Operator & A) { HYPRE_Int locSize = A.Width(); if (HYPRE_AssumedPartitionCheck()) { part = new HYPRE_Int[2]; MPI_Scan(&locSize, &part[1], 1, HYPRE_MPI_INT, MPI_SUM, comm); part[0] = part[1] - locSize; MPI_Allreduce(&locSize, &glbSize, 1, HYPRE_MPI_INT, MPI_SUM, comm); } else { part = new HYPRE_Int[numProcs+1]; MPI_Allgather(&locSize, 1, HYPRE_MPI_INT, &part[1], 1, HYPRE_MPI_INT, comm); part[0] = 0; for (int i=0; i<numProcs; i++) { part[i+1] += part[i]; } glbSize = part[numProcs]; } if ( x != NULL ) { delete x; } // Create a distributed vector without a data array. x = new HypreParVector(comm,glbSize,NULL,part); matvec_fn.MatvecCreate = this->OperatorMatvecCreate; matvec_fn.Matvec = this->OperatorMatvec; matvec_fn.MatvecDestroy = this->OperatorMatvecDestroy; HYPRE_LOBPCGSetup(lobpcg_solver,(HYPRE_Matrix)&A,NULL,NULL); } void HypreLOBPCG::SetMassMatrix(Operator & M) { matvec_fn.MatvecCreate = this->OperatorMatvecCreate; matvec_fn.Matvec = this->OperatorMatvec; matvec_fn.MatvecDestroy = this->OperatorMatvecDestroy; HYPRE_LOBPCGSetupB(lobpcg_solver,(HYPRE_Matrix)&M,NULL); } void HypreLOBPCG::GetEigenvalues(Array<double> & eigs) { // Initialize eigenvalues array with marker values eigs.SetSize(nev); for (int i=0; i<nev; i++) { eigs[i] = eigenvalues[i]; } } HypreParVector & HypreLOBPCG::GetEigenvector(unsigned int i) { return multi_vec->GetVector(i); } void HypreLOBPCG::SetInitialVectors(int num_vecs, HypreParVector ** vecs) { // Initialize HypreMultiVector object if necessary if ( multi_vec == NULL ) { MFEM_ASSERT(x != NULL, "In HypreLOBPCG::SetInitialVectors()"); multi_vec = new HypreMultiVector(nev, *x, interpreter); } // Copy the vectors provided for (int i=0; i < min(num_vecs,nev); i++) { multi_vec->GetVector(i) = *vecs[i]; } // Randomize any remaining vectors for (int i=min(num_vecs,nev); i < nev; i++) { multi_vec->GetVector(i).Randomize(seed); } // Ensure all vectors are in the proper subspace if ( subSpaceProj != NULL ) { HypreParVector y(*x); y = multi_vec->GetVector(0); for (int i=1; i<nev; i++) { subSpaceProj->Mult(multi_vec->GetVector(i), multi_vec->GetVector(i-1)); } subSpaceProj->Mult(y, multi_vec->GetVector(nev-1)); } } void HypreLOBPCG::Solve() { // Initialize HypreMultiVector object if necessary if ( multi_vec == NULL ) { MFEM_ASSERT(x != NULL, "In HypreLOBPCG::Solve()"); multi_vec = new HypreMultiVector(nev, *x, interpreter); multi_vec->Randomize(seed); if ( subSpaceProj != NULL ) { HypreParVector y(*x); y = multi_vec->GetVector(0); for (int i=1; i<nev; i++) { subSpaceProj->Mult(multi_vec->GetVector(i), multi_vec->GetVector(i-1)); } subSpaceProj->Mult(y, multi_vec->GetVector(nev-1)); } } eigenvalues.SetSize(nev); eigenvalues = NAN; // Perform eigenmode calculation // // The eigenvalues are computed in ascending order (internally the // order is determined by the LAPACK routine 'dsydv'.) HYPRE_LOBPCGSolve(lobpcg_solver, NULL, *multi_vec, eigenvalues); } void * HypreLOBPCG::OperatorMatvecCreate( void *A, void *x ) { void *matvec_data; matvec_data = NULL; return ( matvec_data ); } HYPRE_Int HypreLOBPCG::OperatorMatvec( void *matvec_data, HYPRE_Complex alpha, void *A, void *x, HYPRE_Complex beta, void *y ) { MFEM_VERIFY(alpha == 1.0 && beta == 0.0, "values not supported"); Operator *Aop = (Operator*)A; int width = Aop->Width(); hypre_ParVector * xPar = (hypre_ParVector *)x; hypre_ParVector * yPar = (hypre_ParVector *)y; Vector xVec(xPar->local_vector->data, width); Vector yVec(yPar->local_vector->data, width); Aop->Mult( xVec, yVec ); return 0; } HYPRE_Int HypreLOBPCG::OperatorMatvecDestroy( void *matvec_data ) { return 0; } HYPRE_Int HypreLOBPCG::PrecondSolve(void *solver, void *A, void *b, void *x) { Solver *PC = (Solver*)solver; Operator *OP = (Operator*)A; int width = OP->Width(); hypre_ParVector * bPar = (hypre_ParVector *)b; hypre_ParVector * xPar = (hypre_ParVector *)x; Vector bVec(bPar->local_vector->data, width); Vector xVec(xPar->local_vector->data, width); PC->Mult( bVec, xVec ); return 0; } HYPRE_Int HypreLOBPCG::PrecondSetup(void *solver, void *A, void *b, void *x) { return 0; } HypreAME::HypreAME(MPI_Comm comm) : myid(0), numProcs(1), nev(10), setT(false), ams_precond(NULL), eigenvalues(NULL), multi_vec(NULL), eigenvectors(NULL) { MPI_Comm_size(comm,&numProcs); MPI_Comm_rank(comm,&myid); HYPRE_AMECreate(&ame_solver); HYPRE_AMESetPrintLevel(ame_solver, 0); } HypreAME::~HypreAME() { if ( multi_vec ) { mfem_hypre_TFree(multi_vec); } if ( eigenvectors ) { for (int i=0; i<nev; i++) { delete eigenvectors[i]; } } delete [] eigenvectors; if ( eigenvalues ) { mfem_hypre_TFree(eigenvalues); } HYPRE_AMEDestroy(ame_solver); } void HypreAME::SetNumModes(int num_eigs) { nev = num_eigs; HYPRE_AMESetBlockSize(ame_solver, nev); } void HypreAME::SetTol(double tol) { HYPRE_AMESetTol(ame_solver, tol); } void HypreAME::SetRelTol(double rel_tol) { #if MFEM_HYPRE_VERSION >= 21101 HYPRE_AMESetRTol(ame_solver, rel_tol); #else MFEM_ABORT("This method requires HYPRE version >= 2.11.1"); #endif } void HypreAME::SetMaxIter(int max_iter) { HYPRE_AMESetMaxIter(ame_solver, max_iter); } void HypreAME::SetPrintLevel(int logging) { if (myid == 0) { HYPRE_AMESetPrintLevel(ame_solver, logging); } } void HypreAME::SetPreconditioner(HypreSolver & precond) { ams_precond = &precond; } void HypreAME::SetOperator(HypreParMatrix & A) { if ( !setT ) { HYPRE_Solver ams_precond_ptr = (HYPRE_Solver)*ams_precond; ams_precond->SetupFcn()(*ams_precond,A,NULL,NULL); HYPRE_AMESetAMSSolver(ame_solver, ams_precond_ptr); } HYPRE_AMESetup(ame_solver); } void HypreAME::SetMassMatrix(HypreParMatrix & M) { HYPRE_ParCSRMatrix parcsr_M = M; HYPRE_AMESetMassMatrix(ame_solver,(HYPRE_ParCSRMatrix)parcsr_M); } void HypreAME::Solve() { HYPRE_AMESolve(ame_solver); } void HypreAME::GetEigenvalues(Array<double> & eigs) { // Initialize eigenvalues array with marker values eigs.SetSize(nev); eigs = -1.0; if ( eigenvalues == NULL ) { // Grab eigenvalues from AME HYPRE_AMEGetEigenvalues(ame_solver,&eigenvalues); } // Copy eigenvalues to eigs array for (int i=0; i<nev; i++) { eigs[i] = eigenvalues[i]; } } void HypreAME::createDummyVectors() { if ( multi_vec == NULL ) { HYPRE_AMEGetEigenvectors(ame_solver,&multi_vec); } eigenvectors = new HypreParVector*[nev]; for (int i=0; i<nev; i++) { eigenvectors[i] = new HypreParVector(multi_vec[i]); eigenvectors[i]->SetOwnership(1); } } HypreParVector & HypreAME::GetEigenvector(unsigned int i) { if ( eigenvectors == NULL ) { this->createDummyVectors(); } return *eigenvectors[i]; } HypreParVector ** HypreAME::StealEigenvectors() { if ( eigenvectors == NULL ) { this->createDummyVectors(); } // Set the local pointers to NULL so that they won't be deleted later HypreParVector ** vecs = eigenvectors; eigenvectors = NULL; multi_vec = NULL; return vecs; } } #endif
/* * Copyright (C) 2016 The Android Open Source Project * * 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. * */ #include <atomic> #include <stdio.h> #include <string.h> #include "messagequeue.h" namespace nativemididemo { static const int messageBufferSize = 64 * 1024; static char messageBuffer[messageBufferSize]; static std::atomic_ullong messagesLastWritePosition; void writeMessage(const char* message) { static unsigned long long lastWritePos = 0; size_t messageLen = strlen(message); if (messageLen == 0) return; messageLen += 1; // Also count in the null terminator. char buffer[1024]; if (messageLen >= messageBufferSize) { snprintf(buffer, sizeof(buffer), "!!! Message too long: %zu bytes !!!", messageLen); message = buffer; messageLen = strlen(message); } size_t wrappedWritePos = lastWritePos % messageBufferSize; if (wrappedWritePos + messageLen >= messageBufferSize) { size_t tailLen = messageBufferSize - wrappedWritePos; memset(messageBuffer + wrappedWritePos, 0, tailLen); lastWritePos += tailLen; wrappedWritePos = 0; } memcpy(messageBuffer + wrappedWritePos, message, messageLen); lastWritePos += messageLen; messagesLastWritePosition.store(lastWritePos); } static char messageBufferCopy[messageBufferSize]; jobjectArray getRecentMessagesForJava(JNIEnv* env, jobject) { static unsigned long long lastReadPos = 0; const char* overrunMessage = ""; size_t messagesCount = 0; jobjectArray result = NULL; // First we copy the portion of the message buffer into messageBufferCopy. If after finishing // the copy we notice that the writer has mutated the portion of the buffer that we were // copying, we report an overrun. Afterwards we can safely read messages from the copy. memset(messageBufferCopy, 0, sizeof(messageBufferCopy)); unsigned long long lastWritePos = messagesLastWritePosition.load(); if (lastWritePos - lastReadPos > messageBufferSize) { overrunMessage = "!!! Message buffer overrun !!!"; messagesCount = 1; lastReadPos = lastWritePos; goto create_array; } if (lastWritePos == lastReadPos) return result; if (lastWritePos / messageBufferSize == lastReadPos / messageBufferSize) { size_t wrappedReadPos = lastReadPos % messageBufferSize; memcpy(messageBufferCopy + wrappedReadPos, messageBuffer + wrappedReadPos, lastWritePos % messageBufferSize - wrappedReadPos); } else { size_t wrappedReadPos = lastReadPos % messageBufferSize; memcpy(messageBufferCopy, messageBuffer, lastWritePos % messageBufferSize); memcpy(messageBufferCopy + wrappedReadPos, messageBuffer + wrappedReadPos, messageBufferSize - wrappedReadPos); } { unsigned long long newLastWritePos = messagesLastWritePosition.load(); if (newLastWritePos - lastReadPos > messageBufferSize) { overrunMessage = "!!! Message buffer overrun !!!"; messagesCount = 1; lastReadPos = lastWritePos = newLastWritePos; goto create_array; } } // Otherwise we ignore newLastWritePos, since we only have a copy of the buffer // up to lastWritePos. for (unsigned long long readPos = lastReadPos; readPos < lastWritePos; ) { size_t messageLen = strlen(messageBufferCopy + (readPos % messageBufferSize)); if (messageLen != 0) { readPos += messageLen + 1; messagesCount++; } else { // Skip to the beginning of the buffer. readPos = (readPos / messageBufferSize + 1) * messageBufferSize; } } if (messagesCount == 0) { lastReadPos = lastWritePos; return result; } create_array: result = env->NewObjectArray( messagesCount, env->FindClass("java/lang/String"), env->NewStringUTF(overrunMessage)); if (lastWritePos == lastReadPos) return result; jsize arrayIndex = 0; while (lastReadPos < lastWritePos) { size_t wrappedReadPos = lastReadPos % messageBufferSize; if (messageBufferCopy[wrappedReadPos] != '\0') { jstring message = env->NewStringUTF(messageBufferCopy + wrappedReadPos); env->SetObjectArrayElement(result, arrayIndex++, message); lastReadPos += env->GetStringLength(message) + 1; env->DeleteLocalRef(message); } else { // Skip to the beginning of the buffer. lastReadPos = (lastReadPos / messageBufferSize + 1) * messageBufferSize; } } return result; } } // namespace nativemididemo
MoonMons1: db $0A db 8,ZUBAT db 9,ZUBAT db 10,GEODUDE db 6,SANDSHREW db 7,SWINNUB db 10,SWINNUB db 10,GEODUDE db 11,GLIGAR db 12,SANDSHREW db 11,CLEFAIRY db $00
; A143803: a(n) = 2*A001614(n) - 1 where A001614 lists the Connell numbers. ; 1,3,7,9,13,17,19,23,27,31,33,37,41,45,49,51,55,59,63,67,71,73,77,81,85,89,93,97,99,103,107,111,115,119,123,127,129,133,137,141,145,149,153,157,161,163,167,171,175,179,183,187,191,195,199 mov $1,$0 mov $2,$0 lpb $0 sub $0,1 sub $1,1 add $3,1 trn $0,$3 lpe mul $1,2 lpb $2 add $1,2 sub $2,1 lpe add $1,1
; vi:syntax=z80 ; ZEnv - Forth for the ZX Spectrum ; Copyright 2021 (C) - Christopher Leonard, MIT Licence ; https://github.com/veltas/zenv ; Dictionary words ; \ Remove named word and everything in dictionary after ; ( " name" --) ; : FORGET HEADER forget, "FORGET", 0 forget: CALL colon_code ; BL WORD DX bl: DX word ; ( str) ; SYM-LAST @ DX sym_last: DX fetch ; ( str sym) ; BEGIN .begin: ; ?DUP 0= IF CWHAT? THEN DX question_dup: DX zero_equals: DX if_raw: DB .then-$-1: DX cwhat_question .then: ; 2DUP >SYM ROT COUNT COMPARE WHILE DX two_dup: DX to_sym: DX rot: DX count: DX compare: DX if_raw DB .repeat-$-1 ; @ DX fetch ; REPEAT DX again_raw DB .begin-$+256 .repeat: ; NIP DX nip ; ( sym) ; DUP @ SWAP DX dup: DX fetch: DX swap ; ( prev-sym sym) ; H ! DX h_: DX store ; ( prev-sym) ; SYM-LAST ! ; DX sym_last: DX store: DX exit
%include "macros/patch.inc" %include "macros/datatypes.inc" ; limit the height of the sidebar to max 1052 (equals 1920*1200 -> 19 icons). The game goes out of bounds with more icons and starts to corrupt memory cextern InfoPanel gint BottomInfoPanel, 0 ; Gets set in sidebar.c hack 0x005F2766 cmp eax, 1052 jbe .noChange mov eax, 1052 .noChange: cmp dword[InfoPanel], -1 je .reg cmp dword[BottomInfoPanel], 0 jz .reg sub eax, 153 ; For info panel .reg: mov dword[0x0074C24C], eax ; SidebarHeightStuff jmp hackend hack 0x005F60D7 cmp eax, 1052 jbe .noChange mov eax, 1052 .noChange: cmp dword[InfoPanel], -1 je .reg cmp dword[BottomInfoPanel], 0 jz .reg sub eax, 153 ; For info panel .reg: mov dword[0x0074C24C], eax ; SidebarHeightStuff jmp hackend
/* * Copyright Andrey Semashev 2007 - 2013. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ /*! * \file unbounded_ordering_queue.hpp * \author Andrey Semashev * \date 24.07.2011 * * The header contains implementation of unbounded ordering record queueing strategy for * the asynchronous sink frontend. */ #ifndef BOOST_LOG_SINKS_UNBOUNDED_ORDERING_QUEUE_HPP_INCLUDED_ #define BOOST_LOG_SINKS_UNBOUNDED_ORDERING_QUEUE_HPP_INCLUDED_ #include <boost/log/detail/config.hpp> #ifdef BOOST_LOG_HAS_PRAGMA_ONCE #pragma once #endif #if defined(BOOST_LOG_NO_THREADS) #error Boost.Log: This header content is only supported in multithreaded environment #endif #include <queue> #include <vector> #include <boost/cstdint.hpp> #include <boost/move/core.hpp> #include <boost/move/utility.hpp> #include <boost/thread/locks.hpp> #include <boost/thread/mutex.hpp> #include <boost/thread/condition_variable.hpp> #include <boost/thread/thread_time.hpp> #include <boost/date_time/posix_time/posix_time_types.hpp> #include <boost/log/detail/timestamp.hpp> #include <boost/log/keywords/order.hpp> #include <boost/log/keywords/ordering_window.hpp> #include <boost/log/core/record_view.hpp> #include <boost/log/detail/header.hpp> namespace boost { BOOST_LOG_OPEN_NAMESPACE namespace sinks { /*! * \brief Unbounded ordering log record queueing strategy * * The \c unbounded_ordering_queue class is intended to be used with * the \c asynchronous_sink frontend as a log record queueing strategy. * * This strategy provides the following properties to the record queueing mechanism: * * \li The queue has no size limits. * \li The queue has a fixed latency window. This means that each log record put * into the queue will normally not be dequeued for a certain period of time. * \li The queue performs stable record ordering within the latency window. * The ordering predicate can be specified in the \c OrderT template parameter. * * Since this queue has no size limits, it may grow uncontrollably if sink backends * dequeue log records not fast enough. When this is an issue, it is recommended to * use one of the bounded strategies. */ template< typename OrderT > class unbounded_ordering_queue { private: typedef boost::mutex mutex_type; //! Log record with enqueueing timestamp class enqueued_record { BOOST_COPYABLE_AND_MOVABLE(enqueued_record) public: //! Ordering predicate struct order : public OrderT { typedef typename OrderT::result_type result_type; order() {} order(order const& that) : OrderT(static_cast< OrderT const& >(that)) {} order(OrderT const& that) : OrderT(that) {} result_type operator() (enqueued_record const& left, enqueued_record const& right) const { // std::priority_queue requires ordering with semantics of std::greater, so we swap arguments return OrderT::operator() (right.m_record, left.m_record); } }; boost::log::aux::timestamp m_timestamp; record_view m_record; enqueued_record(enqueued_record const& that) : m_timestamp(that.m_timestamp), m_record(that.m_record) { } enqueued_record(BOOST_RV_REF(enqueued_record) that) : m_timestamp(that.m_timestamp), m_record(boost::move(that.m_record)) { } explicit enqueued_record(record_view const& rec) : m_timestamp(boost::log::aux::get_timestamp()), m_record(rec) { } enqueued_record& operator= (BOOST_COPY_ASSIGN_REF(enqueued_record) that) { m_timestamp = that.m_timestamp; m_record = that.m_record; return *this; } enqueued_record& operator= (BOOST_RV_REF(enqueued_record) that) { m_timestamp = that.m_timestamp; m_record = boost::move(that.m_record); return *this; } }; typedef std::priority_queue< enqueued_record, std::vector< enqueued_record >, typename enqueued_record::order > queue_type; private: //! Ordering window duration, in milliseconds const uint64_t m_ordering_window; //! Synchronization mutex mutex_type m_mutex; //! Condition for blocking condition_variable m_cond; //! Thread-safe queue queue_type m_queue; //! Interruption flag bool m_interruption_requested; public: /*! * Returns ordering window size specified during initialization */ posix_time::time_duration get_ordering_window() const { return posix_time::milliseconds(m_ordering_window); } /*! * Returns default ordering window size. * The default window size is specific to the operating system thread scheduling mechanism. */ static posix_time::time_duration get_default_ordering_window() { // The main idea behind this parameter is that the ordering window should be large enough // to allow the frontend to order records from different threads on an attribute // that contains system time. Thus this value should be: // * No less than the minimum time resolution quant that Boost.DateTime provides on the current OS. // For instance, on Windows it defaults to around 15-16 ms. // * No less than thread switching quant on the current OS. For now 30 ms is large enough window size to // switch threads on any known OS. It can be tuned for other platforms as needed. return posix_time::milliseconds(30); } protected: //! Initializing constructor template< typename ArgsT > explicit unbounded_ordering_queue(ArgsT const& args) : m_ordering_window(args[keywords::ordering_window || &unbounded_ordering_queue::get_default_ordering_window].total_milliseconds()), m_queue(args[keywords::order]), m_interruption_requested(false) { } //! Enqueues log record to the queue void enqueue(record_view const& rec) { lock_guard< mutex_type > lock(m_mutex); enqueue_unlocked(rec); } //! Attempts to enqueue log record to the queue bool try_enqueue(record_view const& rec) { unique_lock< mutex_type > lock(m_mutex, try_to_lock); if (lock.owns_lock()) { enqueue_unlocked(rec); return true; } else return false; } //! Attempts to dequeue a log record ready for processing from the queue, does not block if no log records are ready to be processed bool try_dequeue_ready(record_view& rec) { lock_guard< mutex_type > lock(m_mutex); if (!m_queue.empty()) { const boost::log::aux::timestamp now = boost::log::aux::get_timestamp(); enqueued_record const& elem = m_queue.top(); if (static_cast< uint64_t >((now - elem.m_timestamp).milliseconds()) >= m_ordering_window) { // We got a new element rec = elem.m_record; m_queue.pop(); return true; } } return false; } //! Attempts to dequeue log record from the queue, does not block. bool try_dequeue(record_view& rec) { lock_guard< mutex_type > lock(m_mutex); if (!m_queue.empty()) { enqueued_record const& elem = m_queue.top(); rec = elem.m_record; m_queue.pop(); return true; } return false; } //! Dequeues log record from the queue, blocks if no log records are ready to be processed bool dequeue_ready(record_view& rec) { unique_lock< mutex_type > lock(m_mutex); while (!m_interruption_requested) { if (!m_queue.empty()) { const boost::log::aux::timestamp now = boost::log::aux::get_timestamp(); enqueued_record const& elem = m_queue.top(); const uint64_t difference = (now - elem.m_timestamp).milliseconds(); if (difference >= m_ordering_window) { // We got a new element rec = elem.m_record; m_queue.pop(); return true; } else { // Wait until the element becomes ready to be processed m_cond.timed_wait(lock, posix_time::milliseconds(m_ordering_window - difference)); } } else { // Wait for an element to come m_cond.wait(lock); } } m_interruption_requested = false; return false; } //! Wakes a thread possibly blocked in the \c dequeue method void interrupt_dequeue() { lock_guard< mutex_type > lock(m_mutex); m_interruption_requested = true; m_cond.notify_one(); } private: //! Enqueues a log record void enqueue_unlocked(record_view const& rec) { const bool was_empty = m_queue.empty(); m_queue.push(enqueued_record(rec)); if (was_empty) m_cond.notify_one(); } }; } // namespace sinks BOOST_LOG_CLOSE_NAMESPACE // namespace log } // namespace boost #include <boost/log/detail/footer.hpp> #endif // BOOST_LOG_SINKS_UNBOUNDED_ORDERING_QUEUE_HPP_INCLUDED_
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x15d58, %rsi lea addresses_WT_ht+0x1070, %rdi nop nop and %rdx, %rdx mov $74, %rcx rep movsq nop nop cmp $36951, %rsi lea addresses_WC_ht+0x1c470, %r11 nop nop nop nop nop sub %rdi, %rdi movw $0x6162, (%r11) nop nop nop nop inc %rcx lea addresses_WT_ht+0x1670, %rsi lea addresses_A_ht+0xef10, %rdi nop nop nop and %r11, %r11 mov $108, %rcx rep movsl xor $63389, %rdx lea addresses_A_ht+0x41f8, %rsi lea addresses_normal_ht+0x5ef0, %rdi nop add $33995, %r9 mov $2, %rcx rep movsq nop nop nop nop add $32703, %r10 lea addresses_normal_ht+0x111f0, %rdi nop nop nop nop inc %rcx mov (%rdi), %r10d nop nop nop nop nop add $52374, %r11 lea addresses_WC_ht+0x17030, %rdi nop nop nop nop nop cmp $37929, %rsi mov (%rdi), %rdx nop nop nop nop nop inc %r9 lea addresses_D_ht+0xec50, %rdx nop nop nop nop nop dec %r11 mov $0x6162636465666768, %rdi movq %rdi, (%rdx) nop add %r11, %r11 lea addresses_WT_ht+0x15c70, %rdx nop cmp %rcx, %rcx mov $0x6162636465666768, %r9 movq %r9, %xmm2 vmovups %ymm2, (%rdx) nop nop sub $59273, %rdi lea addresses_UC_ht+0x17cec, %rsi lea addresses_A_ht+0x1a370, %rdi clflush (%rdi) nop cmp $47988, %r9 mov $60, %rcx rep movsl nop nop inc %r9 pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %r9 push %rbp push %rdx // Faulty Load lea addresses_normal+0x1c870, %r13 nop nop nop sub %rbp, %rbp mov (%r13), %r10 lea oracles, %rbp and $0xff, %r10 shlq $12, %r10 mov (%rbp,%r10,1), %r10 pop %rdx pop %rbp pop %r9 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal', 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': True, 'size': 8, 'type': 'addresses_normal', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}} {'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 2, 'type': 'addresses_WC_ht', 'congruent': 9}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}} {'dst': {'same': False, 'congruent': 6, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_normal_ht', 'congruent': 7}} {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 4}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_D_ht', 'congruent': 4}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WT_ht', 'congruent': 9}, 'OP': 'STOR'} {'dst': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
OPTION DOTNAME .text$ SEGMENT ALIGN(256) 'CODE' PUBLIC ct_inverse_mod_383 ALIGN 32 ct_inverse_mod_383 PROC PUBLIC DB 243,15,30,250 mov QWORD PTR[8+rsp],rdi ;WIN64 prologue mov QWORD PTR[16+rsp],rsi mov r11,rsp $L$SEH_begin_ct_inverse_mod_383:: mov rdi,rcx mov rsi,rdx mov rdx,r8 push rbp push rbx push r12 push r13 push r14 push r15 sub rsp,1112 $L$SEH_body_ct_inverse_mod_383:: lea rax,QWORD PTR[((88+511))+rsp] and rax,-512 mov QWORD PTR[32+rsp],rdi mov QWORD PTR[40+rsp],rdx mov r8,QWORD PTR[rsi] mov r9,QWORD PTR[8+rsi] mov r10,QWORD PTR[16+rsi] mov r11,QWORD PTR[24+rsi] mov r12,QWORD PTR[32+rsi] mov r13,QWORD PTR[40+rsi] mov r14,QWORD PTR[rdx] mov r15,QWORD PTR[8+rdx] mov rbx,QWORD PTR[16+rdx] mov rbp,QWORD PTR[24+rdx] mov rsi,QWORD PTR[32+rdx] mov rdi,QWORD PTR[40+rdx] mov QWORD PTR[rax],r8 mov QWORD PTR[8+rax],r9 mov QWORD PTR[16+rax],r10 mov QWORD PTR[24+rax],r11 mov QWORD PTR[32+rax],r12 mov QWORD PTR[40+rax],r13 mov QWORD PTR[48+rax],r14 mov QWORD PTR[56+rax],r15 mov QWORD PTR[64+rax],rbx mov QWORD PTR[72+rax],rbp mov QWORD PTR[80+rax],rsi mov rsi,rax mov QWORD PTR[88+rax],rdi mov edi,62 call __ab_approximation_62 mov QWORD PTR[72+rsp],r12 mov QWORD PTR[80+rsp],r13 mov rdi,256 xor rdi,rsi call __smulq_383_n_shift_by_62 mov QWORD PTR[96+rdi],rdx mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_383_n_shift_by_62 mov QWORD PTR[96+rdi],rdx xor rsi,256 mov edi,62 call __ab_approximation_62 mov QWORD PTR[72+rsp],r12 mov QWORD PTR[80+rsp],r13 mov rdi,256 xor rdi,rsi call __smulq_383_n_shift_by_62 mov QWORD PTR[56+rsp],rdx mov QWORD PTR[64+rsp],rcx mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_383_n_shift_by_62 mov rax,QWORD PTR[96+rsi] mov r11,QWORD PTR[144+rsi] mov rbx,rdx mov r10,rax imul QWORD PTR[56+rsp] mov r8,rax mov rax,r11 mov r9,rdx imul QWORD PTR[64+rsp] add r8,rax adc r9,rdx mov QWORD PTR[48+rdi],r8 mov QWORD PTR[56+rdi],r9 sar r9,63 mov QWORD PTR[64+rdi],r9 mov QWORD PTR[72+rdi],r9 mov QWORD PTR[80+rdi],r9 mov QWORD PTR[88+rdi],r9 lea rsi,QWORD PTR[96+rsi] mov rax,r10 imul rbx mov r8,rax mov rax,r11 mov r9,rdx imul rcx add r8,rax adc r9,rdx mov QWORD PTR[96+rdi],r8 mov QWORD PTR[104+rdi],r9 sar r9,63 mov QWORD PTR[112+rdi],r9 mov QWORD PTR[120+rdi],r9 mov QWORD PTR[128+rdi],r9 mov QWORD PTR[136+rdi],r9 xor rsi,256+8*12 mov edi,62 call __ab_approximation_62 mov QWORD PTR[72+rsp],r12 mov QWORD PTR[80+rsp],r13 mov rdi,256 xor rdi,rsi call __smulq_383_n_shift_by_62 mov QWORD PTR[56+rsp],rdx mov QWORD PTR[64+rsp],rcx mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_383_n_shift_by_62 mov QWORD PTR[72+rsp],rdx mov QWORD PTR[80+rsp],rcx mov rdx,QWORD PTR[56+rsp] mov rcx,QWORD PTR[64+rsp] lea rsi,QWORD PTR[96+rsi] lea rdi,QWORD PTR[48+rdi] call __smulq_383x63 mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_383x63 xor rsi,256+8*12 mov edi,62 call __ab_approximation_62 mov QWORD PTR[72+rsp],r12 mov QWORD PTR[80+rsp],r13 mov rdi,256 xor rdi,rsi call __smulq_383_n_shift_by_62 mov QWORD PTR[56+rsp],rdx mov QWORD PTR[64+rsp],rcx mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_383_n_shift_by_62 mov QWORD PTR[72+rsp],rdx mov QWORD PTR[80+rsp],rcx mov rdx,QWORD PTR[56+rsp] mov rcx,QWORD PTR[64+rsp] lea rsi,QWORD PTR[96+rsi] lea rdi,QWORD PTR[48+rdi] call __smulq_383x63 mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_383x63 xor rsi,256+8*12 mov edi,62 call __ab_approximation_62 mov QWORD PTR[72+rsp],r12 mov QWORD PTR[80+rsp],r13 mov rdi,256 xor rdi,rsi call __smulq_383_n_shift_by_62 mov QWORD PTR[56+rsp],rdx mov QWORD PTR[64+rsp],rcx mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_383_n_shift_by_62 mov QWORD PTR[72+rsp],rdx mov QWORD PTR[80+rsp],rcx mov rdx,QWORD PTR[56+rsp] mov rcx,QWORD PTR[64+rsp] lea rsi,QWORD PTR[96+rsi] lea rdi,QWORD PTR[48+rdi] call __smulq_383x63 mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_383x63 xor rsi,256+8*12 mov edi,62 call __ab_approximation_62 mov QWORD PTR[72+rsp],r12 mov QWORD PTR[80+rsp],r13 mov rdi,256 xor rdi,rsi call __smulq_383_n_shift_by_62 mov QWORD PTR[56+rsp],rdx mov QWORD PTR[64+rsp],rcx mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_383_n_shift_by_62 mov QWORD PTR[72+rsp],rdx mov QWORD PTR[80+rsp],rcx mov rdx,QWORD PTR[56+rsp] mov rcx,QWORD PTR[64+rsp] lea rsi,QWORD PTR[96+rsi] lea rdi,QWORD PTR[48+rdi] call __smulq_383x63 mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_383x63 sar r13,63 mov QWORD PTR[48+rdi],r13 mov QWORD PTR[56+rdi],r13 mov QWORD PTR[64+rdi],r13 mov QWORD PTR[72+rdi],r13 mov QWORD PTR[80+rdi],r13 mov QWORD PTR[88+rdi],r13 xor rsi,256+8*12 mov edi,62 call __ab_approximation_62 mov QWORD PTR[72+rsp],r12 mov QWORD PTR[80+rsp],r13 mov rdi,256 xor rdi,rsi call __smulq_383_n_shift_by_62 mov QWORD PTR[56+rsp],rdx mov QWORD PTR[64+rsp],rcx mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_383_n_shift_by_62 mov QWORD PTR[72+rsp],rdx mov QWORD PTR[80+rsp],rcx mov rdx,QWORD PTR[56+rsp] mov rcx,QWORD PTR[64+rsp] lea rsi,QWORD PTR[96+rsi] lea rdi,QWORD PTR[48+rdi] call __smulq_383x63 mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_767x63 xor rsi,256+8*12 mov edi,62 call __ab_approximation_62 mov QWORD PTR[72+rsp],r12 mov QWORD PTR[80+rsp],r13 mov rdi,256 xor rdi,rsi call __smulq_383_n_shift_by_62 mov QWORD PTR[56+rsp],rdx mov QWORD PTR[64+rsp],rcx mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_383_n_shift_by_62 mov QWORD PTR[72+rsp],rdx mov QWORD PTR[80+rsp],rcx mov rdx,QWORD PTR[56+rsp] mov rcx,QWORD PTR[64+rsp] lea rsi,QWORD PTR[96+rsi] lea rdi,QWORD PTR[48+rdi] call __smulq_383x63 mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_767x63 xor rsi,256+8*12 mov edi,62 call __ab_approximation_62 mov QWORD PTR[72+rsp],r12 mov QWORD PTR[80+rsp],r13 mov rdi,256 xor rdi,rsi call __smulq_383_n_shift_by_62 mov QWORD PTR[56+rsp],rdx mov QWORD PTR[64+rsp],rcx mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_383_n_shift_by_62 mov QWORD PTR[72+rsp],rdx mov QWORD PTR[80+rsp],rcx mov rdx,QWORD PTR[56+rsp] mov rcx,QWORD PTR[64+rsp] lea rsi,QWORD PTR[96+rsi] lea rdi,QWORD PTR[48+rdi] call __smulq_383x63 mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_767x63 xor rsi,256+8*12 mov edi,62 call __ab_approximation_62 mov QWORD PTR[72+rsp],r12 mov QWORD PTR[80+rsp],r13 mov rdi,256 xor rdi,rsi call __smulq_383_n_shift_by_62 mov QWORD PTR[56+rsp],rdx mov QWORD PTR[64+rsp],rcx mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_383_n_shift_by_62 mov QWORD PTR[72+rsp],rdx mov QWORD PTR[80+rsp],rcx mov rdx,QWORD PTR[56+rsp] mov rcx,QWORD PTR[64+rsp] lea rsi,QWORD PTR[96+rsi] lea rdi,QWORD PTR[48+rdi] call __smulq_383x63 mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_767x63 xor rsi,256+8*12 mov edi,62 call __ab_approximation_62 mov QWORD PTR[72+rsp],r12 mov QWORD PTR[80+rsp],r13 mov rdi,256 xor rdi,rsi call __smulq_383_n_shift_by_62 mov QWORD PTR[56+rsp],rdx mov QWORD PTR[64+rsp],rcx mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_383_n_shift_by_62 mov QWORD PTR[72+rsp],rdx mov QWORD PTR[80+rsp],rcx mov rdx,QWORD PTR[56+rsp] mov rcx,QWORD PTR[64+rsp] lea rsi,QWORD PTR[96+rsi] lea rdi,QWORD PTR[48+rdi] call __smulq_383x63 mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_767x63 xor rsi,256+8*12 mov edi,62 mov r8,QWORD PTR[rsi] mov r9,QWORD PTR[8+rsi] mov r10,QWORD PTR[48+rsi] mov r11,QWORD PTR[56+rsi] call __inner_loop_62 mov QWORD PTR[72+rsp],r12 mov QWORD PTR[80+rsp],r13 mov rdi,256 xor rdi,rsi mov QWORD PTR[rdi],r8 mov QWORD PTR[48+rdi],r10 lea rsi,QWORD PTR[96+rsi] lea rdi,QWORD PTR[96+rdi] call __smulq_383x63 mov rdx,QWORD PTR[72+rsp] mov rcx,QWORD PTR[80+rsp] lea rdi,QWORD PTR[48+rdi] call __smulq_767x63 xor rsi,256+8*12 mov edi,24 mov r8,QWORD PTR[rsi] xor r9,r9 mov r10,QWORD PTR[48+rsi] xor r11,r11 call __inner_loop_62 lea rsi,QWORD PTR[96+rsi] mov rdx,r12 mov rcx,r13 mov rdi,QWORD PTR[32+rsp] call __smulq_767x63 mov rsi,QWORD PTR[40+rsp] mov rdx,rax sar rax,63 mov r8,rax mov r9,rax mov r10,rax and r8,QWORD PTR[rsi] and r9,QWORD PTR[8+rsi] mov r11,rax and r10,QWORD PTR[16+rsi] and r11,QWORD PTR[24+rsi] mov r12,rax and r12,QWORD PTR[32+rsi] and rax,QWORD PTR[40+rsi] add r14,r8 adc r15,r9 adc rbx,r10 adc rbp,r11 adc rcx,r12 adc rdx,rax mov QWORD PTR[48+rdi],r14 mov QWORD PTR[56+rdi],r15 mov QWORD PTR[64+rdi],rbx mov QWORD PTR[72+rdi],rbp mov QWORD PTR[80+rdi],rcx mov QWORD PTR[88+rdi],rdx lea r8,QWORD PTR[1112+rsp] mov r15,QWORD PTR[r8] mov r14,QWORD PTR[8+r8] mov r13,QWORD PTR[16+r8] mov r12,QWORD PTR[24+r8] mov rbx,QWORD PTR[32+r8] mov rbp,QWORD PTR[40+r8] lea rsp,QWORD PTR[48+r8] $L$SEH_epilogue_ct_inverse_mod_383:: mov rdi,QWORD PTR[8+rsp] ;WIN64 epilogue mov rsi,QWORD PTR[16+rsp] DB 0F3h,0C3h ;repret $L$SEH_end_ct_inverse_mod_383:: ct_inverse_mod_383 ENDP ALIGN 32 __smulq_767x63 PROC PRIVATE DB 243,15,30,250 mov r8,QWORD PTR[rsi] mov r9,QWORD PTR[8+rsi] mov r10,QWORD PTR[16+rsi] mov r11,QWORD PTR[24+rsi] mov r12,QWORD PTR[32+rsi] mov r13,QWORD PTR[40+rsi] mov rbp,rdx sar rdx,63 xor rax,rax sub rax,rdx mov QWORD PTR[8+rsp],rdi mov QWORD PTR[16+rsp],rsi lea rsi,QWORD PTR[48+rsi] xor rbp,rdx add rbp,rax xor r8,rdx xor r9,rdx xor r10,rdx xor r11,rdx xor r12,rdx xor r13,rdx add rax,r8 adc r9,0 adc r10,0 adc r11,0 adc r12,0 adc r13,0 mul rbp mov QWORD PTR[rdi],rax mov rax,r9 mov r9,rdx mul rbp add r9,rax mov rax,r10 adc rdx,0 mov r10,rdx mov QWORD PTR[8+rdi],r9 mul rbp add r10,rax mov rax,r11 adc rdx,0 mov r11,rdx mov QWORD PTR[16+rdi],r10 mul rbp add r11,rax mov rax,r12 adc rdx,0 mov r12,rdx mov QWORD PTR[24+rdi],r11 mul rbp add r12,rax mov rax,r13 adc rdx,0 mov r13,rdx mov QWORD PTR[32+rdi],r12 imul rbp add r13,rax adc rdx,0 mov QWORD PTR[40+rdi],r13 mov QWORD PTR[48+rdi],rdx sar rdx,63 mov QWORD PTR[56+rdi],rdx mov rdx,rcx mov r8,QWORD PTR[rsi] mov r9,QWORD PTR[8+rsi] mov r10,QWORD PTR[16+rsi] mov r11,QWORD PTR[24+rsi] mov r12,QWORD PTR[32+rsi] mov r13,QWORD PTR[40+rsi] mov r14,QWORD PTR[48+rsi] mov r15,QWORD PTR[56+rsi] mov rbx,QWORD PTR[64+rsi] mov rbp,QWORD PTR[72+rsi] mov rcx,QWORD PTR[80+rsi] mov rdi,QWORD PTR[88+rsi] mov rsi,rdx sar rdx,63 xor rax,rax sub rax,rdx xor rsi,rdx add rsi,rax xor r8,rdx xor r9,rdx xor r10,rdx xor r11,rdx xor r12,rdx xor r13,rdx xor r14,rdx xor r15,rdx xor rbx,rdx xor rbp,rdx xor rcx,rdx xor rdi,rdx add rax,r8 adc r9,0 adc r10,0 adc r11,0 adc r12,0 adc r13,0 adc r14,0 adc r15,0 adc rbx,0 adc rbp,0 adc rcx,0 adc rdi,0 mul rsi mov r8,rax mov rax,r9 mov r9,rdx mul rsi add r9,rax mov rax,r10 adc rdx,0 mov r10,rdx mul rsi add r10,rax mov rax,r11 adc rdx,0 mov r11,rdx mul rsi add r11,rax mov rax,r12 adc rdx,0 mov r12,rdx mul rsi add r12,rax mov rax,r13 adc rdx,0 mov r13,rdx mul rsi add r13,rax mov rax,r14 adc rdx,0 mov r14,rdx mul rsi add r14,rax mov rax,r15 adc rdx,0 mov r15,rdx mul rsi add r15,rax mov rax,rbx adc rdx,0 mov rbx,rdx mul rsi add rbx,rax mov rax,rbp adc rdx,0 mov rbp,rdx mul rsi add rbp,rax mov rax,rcx adc rdx,0 mov rcx,rdx mul rsi add rcx,rax mov rax,rdi adc rdx,0 mov rdi,rdx mov rdx,QWORD PTR[8+rsp] imul rax,rsi mov rsi,QWORD PTR[16+rsp] add rax,rdi add r8,QWORD PTR[rdx] adc r9,QWORD PTR[8+rdx] adc r10,QWORD PTR[16+rdx] adc r11,QWORD PTR[24+rdx] adc r12,QWORD PTR[32+rdx] adc r13,QWORD PTR[40+rdx] adc r14,QWORD PTR[48+rdx] mov rdi,QWORD PTR[56+rdx] adc r15,rdi adc rbx,rdi adc rbp,rdi adc rcx,rdi adc rax,rdi mov rdi,rdx mov QWORD PTR[rdx],r8 mov QWORD PTR[8+rdx],r9 mov QWORD PTR[16+rdx],r10 mov QWORD PTR[24+rdx],r11 mov QWORD PTR[32+rdx],r12 mov QWORD PTR[40+rdx],r13 mov QWORD PTR[48+rdx],r14 mov QWORD PTR[56+rdx],r15 mov QWORD PTR[64+rdx],rbx mov QWORD PTR[72+rdx],rbp mov QWORD PTR[80+rdx],rcx mov QWORD PTR[88+rdx],rax DB 0F3h,0C3h ;repret __smulq_767x63 ENDP ALIGN 32 __smulq_383x63 PROC PRIVATE DB 243,15,30,250 mov r8,QWORD PTR[rsi] mov r9,QWORD PTR[8+rsi] mov r10,QWORD PTR[16+rsi] mov r11,QWORD PTR[24+rsi] mov r12,QWORD PTR[32+rsi] mov r13,QWORD PTR[40+rsi] mov rbp,rdx sar rdx,63 xor rax,rax sub rax,rdx xor rbp,rdx add rbp,rax xor r8,rdx xor r9,rdx xor r10,rdx xor r11,rdx xor r12,rdx xor r13,rdx add rax,r8 adc r9,0 adc r10,0 adc r11,0 adc r12,0 adc r13,0 mul rbp mov r8,rax mov rax,r9 mov r9,rdx mul rbp add r9,rax mov rax,r10 adc rdx,0 mov r10,rdx mul rbp add r10,rax mov rax,r11 adc rdx,0 mov r11,rdx mul rbp add r11,rax mov rax,r12 adc rdx,0 mov r12,rdx mul rbp add r12,rax mov rax,r13 adc rdx,0 mov r13,rdx imul rax,rbp add r13,rax lea rsi,QWORD PTR[48+rsi] mov rdx,rcx mov QWORD PTR[rdi],r8 mov QWORD PTR[8+rdi],r9 mov QWORD PTR[16+rdi],r10 mov QWORD PTR[24+rdi],r11 mov QWORD PTR[32+rdi],r12 mov QWORD PTR[40+rdi],r13 mov r8,QWORD PTR[rsi] mov r9,QWORD PTR[8+rsi] mov r10,QWORD PTR[16+rsi] mov r11,QWORD PTR[24+rsi] mov r12,QWORD PTR[32+rsi] mov r13,QWORD PTR[40+rsi] mov rbp,rdx sar rdx,63 xor rax,rax sub rax,rdx xor rbp,rdx add rbp,rax xor r8,rdx xor r9,rdx xor r10,rdx xor r11,rdx xor r12,rdx xor r13,rdx add rax,r8 adc r9,0 adc r10,0 adc r11,0 adc r12,0 adc r13,0 mul rbp mov r8,rax mov rax,r9 mov r9,rdx mul rbp add r9,rax mov rax,r10 adc rdx,0 mov r10,rdx mul rbp add r10,rax mov rax,r11 adc rdx,0 mov r11,rdx mul rbp add r11,rax mov rax,r12 adc rdx,0 mov r12,rdx mul rbp add r12,rax mov rax,r13 adc rdx,0 mov r13,rdx imul rax,rbp add r13,rax lea rsi,QWORD PTR[((-48))+rsi] add r8,QWORD PTR[rdi] adc r9,QWORD PTR[8+rdi] adc r10,QWORD PTR[16+rdi] adc r11,QWORD PTR[24+rdi] adc r12,QWORD PTR[32+rdi] adc r13,QWORD PTR[40+rdi] mov QWORD PTR[rdi],r8 mov QWORD PTR[8+rdi],r9 mov QWORD PTR[16+rdi],r10 mov QWORD PTR[24+rdi],r11 mov QWORD PTR[32+rdi],r12 mov QWORD PTR[40+rdi],r13 DB 0F3h,0C3h ;repret __smulq_383x63 ENDP ALIGN 32 __smulq_383_n_shift_by_62 PROC PRIVATE DB 243,15,30,250 mov rbx,rdx mov r8,QWORD PTR[rsi] mov r9,QWORD PTR[8+rsi] mov r10,QWORD PTR[16+rsi] mov r11,QWORD PTR[24+rsi] mov r12,QWORD PTR[32+rsi] mov r13,QWORD PTR[40+rsi] mov rbp,rdx sar rdx,63 xor rax,rax sub rax,rdx xor rbp,rdx add rbp,rax xor r8,rdx xor r9,rdx xor r10,rdx xor r11,rdx xor r12,rdx xor r13,rdx add rax,r8 adc r9,0 adc r10,0 adc r11,0 adc r12,0 adc r13,0 mul rbp mov r8,rax mov rax,r9 mov r9,rdx mul rbp add r9,rax mov rax,r10 adc rdx,0 mov r10,rdx mul rbp add r10,rax mov rax,r11 adc rdx,0 mov r11,rdx mul rbp add r11,rax mov rax,r12 adc rdx,0 mov r12,rdx mul rbp add r12,rax mov rax,r13 adc rdx,0 mov r13,rdx imul rbp add r13,rax adc rdx,0 lea rsi,QWORD PTR[48+rsi] mov r14,rdx mov rdx,rcx mov QWORD PTR[rdi],r8 mov QWORD PTR[8+rdi],r9 mov QWORD PTR[16+rdi],r10 mov QWORD PTR[24+rdi],r11 mov QWORD PTR[32+rdi],r12 mov QWORD PTR[40+rdi],r13 mov r8,QWORD PTR[rsi] mov r9,QWORD PTR[8+rsi] mov r10,QWORD PTR[16+rsi] mov r11,QWORD PTR[24+rsi] mov r12,QWORD PTR[32+rsi] mov r13,QWORD PTR[40+rsi] mov rbp,rdx sar rdx,63 xor rax,rax sub rax,rdx xor rbp,rdx add rbp,rax xor r8,rdx xor r9,rdx xor r10,rdx xor r11,rdx xor r12,rdx xor r13,rdx add rax,r8 adc r9,0 adc r10,0 adc r11,0 adc r12,0 adc r13,0 mul rbp mov r8,rax mov rax,r9 mov r9,rdx mul rbp add r9,rax mov rax,r10 adc rdx,0 mov r10,rdx mul rbp add r10,rax mov rax,r11 adc rdx,0 mov r11,rdx mul rbp add r11,rax mov rax,r12 adc rdx,0 mov r12,rdx mul rbp add r12,rax mov rax,r13 adc rdx,0 mov r13,rdx imul rbp add r13,rax adc rdx,0 lea rsi,QWORD PTR[((-48))+rsi] add r8,QWORD PTR[rdi] adc r9,QWORD PTR[8+rdi] adc r10,QWORD PTR[16+rdi] adc r11,QWORD PTR[24+rdi] adc r12,QWORD PTR[32+rdi] adc r13,QWORD PTR[40+rdi] adc r14,rdx mov rdx,rbx shrd r8,r9,62 shrd r9,r10,62 shrd r10,r11,62 shrd r11,r12,62 shrd r12,r13,62 shrd r13,r14,62 sar r14,63 xor rbp,rbp sub rbp,r14 xor r8,r14 xor r9,r14 xor r10,r14 xor r11,r14 xor r12,r14 xor r13,r14 add r8,rbp adc r9,0 adc r10,0 adc r11,0 adc r12,0 adc r13,0 mov QWORD PTR[rdi],r8 mov QWORD PTR[8+rdi],r9 mov QWORD PTR[16+rdi],r10 mov QWORD PTR[24+rdi],r11 mov QWORD PTR[32+rdi],r12 mov QWORD PTR[40+rdi],r13 xor rdx,r14 xor rcx,r14 add rdx,rbp add rcx,rbp DB 0F3h,0C3h ;repret __smulq_383_n_shift_by_62 ENDP ALIGN 32 __ab_approximation_62 PROC PRIVATE DB 243,15,30,250 mov r9,QWORD PTR[40+rsi] mov r11,QWORD PTR[88+rsi] mov rbx,QWORD PTR[32+rsi] mov rbp,QWORD PTR[80+rsi] mov r8,QWORD PTR[24+rsi] mov r10,QWORD PTR[72+rsi] mov rax,r9 or rax,r11 cmovz r9,rbx cmovz r11,rbp cmovz rbx,r8 cmovz rbp,r10 mov r8,QWORD PTR[16+rsi] mov r10,QWORD PTR[64+rsi] mov rax,r9 or rax,r11 cmovz r9,rbx cmovz r11,rbp cmovz rbx,r8 cmovz rbp,r10 mov r8,QWORD PTR[8+rsi] mov r10,QWORD PTR[56+rsi] mov rax,r9 or rax,r11 cmovz r9,rbx cmovz r11,rbp cmovz rbx,r8 cmovz rbp,r10 mov r8,QWORD PTR[rsi] mov r10,QWORD PTR[48+rsi] mov rax,r9 or rax,r11 bsr rcx,rax lea rcx,QWORD PTR[1+rcx] cmovz r9,rbx cmovz r11,rbp cmovz rcx,rax neg rcx shld r9,rbx,cl shld r11,rbp,cl mov rcx,r9 or rcx,r11 sar rcx,63 and ecx,2 shr r9,cl shr r11,cl shl r8,cl shl r10,cl shrd r8,r9,cl shrd r10,r11,cl shr r9,cl shr r11,cl jmp __inner_loop_62 DB 0F3h,0C3h ;repret __ab_approximation_62 ENDP ALIGN 8 DD 0 __inner_loop_62 PROC PRIVATE DB 243,15,30,250 mov rdx,1 xor rcx,rcx xor r12,r12 mov r13,1 mov QWORD PTR[8+rsp],rsi $L$oop_62:: xor rax,rax xor rbx,rbx test r8,1 mov rbp,r10 mov r14,r11 cmovnz rax,r10 cmovnz rbx,r11 sub rbp,r8 sbb r14,r9 mov r15,r8 mov rsi,r9 sub r8,rax sbb r9,rbx cmovc r8,rbp cmovc r9,r14 cmovc r10,r15 cmovc r11,rsi mov rax,rdx cmovc rdx,r12 cmovc r12,rax mov rbx,rcx cmovc rcx,r13 cmovc r13,rbx xor rax,rax xor rbx,rbx shrd r8,r9,1 shr r9,1 test r15,1 cmovnz rax,r12 cmovnz rbx,r13 add r12,r12 add r13,r13 sub rdx,rax sub rcx,rbx sub edi,1 jnz $L$oop_62 mov rsi,QWORD PTR[8+rsp] DB 0F3h,0C3h ;repret __inner_loop_62 ENDP .text$ ENDS .pdata SEGMENT READONLY ALIGN(4) ALIGN 4 DD imagerel $L$SEH_begin_ct_inverse_mod_383 DD imagerel $L$SEH_body_ct_inverse_mod_383 DD imagerel $L$SEH_info_ct_inverse_mod_383_prologue DD imagerel $L$SEH_body_ct_inverse_mod_383 DD imagerel $L$SEH_epilogue_ct_inverse_mod_383 DD imagerel $L$SEH_info_ct_inverse_mod_383_body DD imagerel $L$SEH_epilogue_ct_inverse_mod_383 DD imagerel $L$SEH_end_ct_inverse_mod_383 DD imagerel $L$SEH_info_ct_inverse_mod_383_epilogue .pdata ENDS .xdata SEGMENT READONLY ALIGN(8) ALIGN 8 $L$SEH_info_ct_inverse_mod_383_prologue:: DB 1,0,5,00bh DB 0,074h,1,0 DB 0,064h,2,0 DB 0,003h DB 0,0 $L$SEH_info_ct_inverse_mod_383_body:: DB 1,0,18,0 DB 000h,0f4h,08bh,000h DB 000h,0e4h,08ch,000h DB 000h,0d4h,08dh,000h DB 000h,0c4h,08eh,000h DB 000h,034h,08fh,000h DB 000h,054h,090h,000h DB 000h,074h,092h,000h DB 000h,064h,093h,000h DB 000h,001h,091h,000h $L$SEH_info_ct_inverse_mod_383_epilogue:: DB 1,0,4,0 DB 000h,074h,001h,000h DB 000h,064h,002h,000h DB 000h,000h,000h,000h .xdata ENDS END
.size 8000 .text@48 jp lstatint .text@100 jp lbegin .data@143 80 .text@150 lbegin: ld a, ff ldff(45), a ld b, 91 call lwaitly_b ld hl, fe00 ld d, 10 ld a, d ld(hl++), a ld a, 08 ld(hl++), a inc l inc l ld a, d ld(hl++), a ld(hl++), a inc l inc l ld(hl++), a ld a, 18 ld(hl++), a inc l inc l ld a, d ld(hl++), a ld a, 20 ld(hl++), a inc l inc l ld a, d ld(hl++), a ld a, 28 ld(hl++), a inc l inc l ld a, d ld(hl++), a ld a, 30 ld(hl++), a inc l inc l ld a, d ld(hl++), a ld a, 38 ld(hl++), a inc l inc l ld a, d ld(hl++), a ld a, 40 ld(hl++), a inc l inc l ld a, d ld(hl++), a ld a, 48 ld(hl++), a inc l inc l ld a, d ld(hl++), a ld a, 50 ld(hl++), a ld a, 40 ldff(41), a ld a, 02 ldff(ff), a xor a, a ldff(0f), a ei ld a, 01 ldff(45), a ld a, 93 ldff(40), a ld hl, 8000 ld(hl), 00 .text@1000 lstatint: nop .text@104f ld a, (hl--) and a, 03 jp lprint_a .text@7000 lprint_a: push af ld b, 91 call lwaitly_b xor a, a ldff(40), a pop af ld(9800), a ld bc, 7a00 ld hl, 8000 ld d, a0 lprint_copytiles: ld a, (bc) inc bc ld(hl++), a dec d jrnz lprint_copytiles ld a, c0 ldff(47), a ld a, 80 ldff(68), a ld a, ff ldff(69), a ldff(69), a ldff(69), a ldff(69), a ldff(69), a ldff(69), a xor a, a ldff(69), a ldff(69), a ldff(43), a ld a, 91 ldff(40), a lprint_limbo: jr lprint_limbo .text@7400 lwaitly_b: ld c, 44 lwaitly_b_loop: ldff a, (c) cmp a, b jrnz lwaitly_b_loop ret .data@7a00 00 00 7f 7f 41 41 41 41 41 41 41 41 41 41 7f 7f 00 00 08 08 08 08 08 08 08 08 08 08 08 08 08 08 00 00 7f 7f 01 01 01 01 7f 7f 40 40 40 40 7f 7f 00 00 7f 7f 01 01 01 01 3f 3f 01 01 01 01 7f 7f 00 00 41 41 41 41 41 41 7f 7f 01 01 01 01 01 01 00 00 7f 7f 40 40 40 40 7e 7e 01 01 01 01 7e 7e 00 00 7f 7f 40 40 40 40 7f 7f 41 41 41 41 7f 7f 00 00 7f 7f 01 01 02 02 04 04 08 08 10 10 10 10 00 00 3e 3e 41 41 41 41 3e 3e 41 41 41 41 3e 3e 00 00 7f 7f 41 41 41 41 7f 7f 01 01 01 01 7f 7f
///////////////////////////////////////////////////////////////////////////// // Name: src/common/arrstr.cpp // Purpose: wxArrayString class // Author: Vadim Zeitlin // Modified by: // Created: 29/01/98 // Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr> // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // =========================================================================== // headers, declarations, constants // =========================================================================== // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #include "wx/arrstr.h" #include "wx/regex.h" #include "wx/scopedarray.h" #include "wx/wxcrt.h" #include "wx/beforestd.h" #include <algorithm> #include <functional> #include "wx/afterstd.h" #if defined( __WINDOWS__ ) #include <shlwapi.h> #endif // ============================================================================ // ArrayString // ============================================================================ wxArrayString::wxArrayString(size_t sz, const char** a) { #if !wxUSE_STD_CONTAINERS Init(false); #endif assign(a, a + sz); } wxArrayString::wxArrayString(size_t sz, const wchar_t** a) { #if !wxUSE_STD_CONTAINERS Init(false); #endif assign(a, a + sz); } wxArrayString::wxArrayString(size_t sz, const wxString* a) { #if !wxUSE_STD_CONTAINERS Init(false); #endif assign(a, a + sz); } #if wxUSE_STD_CONTAINERS #include "wx/arrstr.h" #if __cplusplus >= 201103L || wxCHECK_VISUALC_VERSION(14) int wxArrayString::Index(const wxString& str, bool bCase, bool WXUNUSED(bFromEnd)) const { int n = 0; for ( const auto& s: *this ) { if ( s.IsSameAs(str, bCase) ) return n; ++n; } return wxNOT_FOUND; } #else // C++98 version #include "wx/beforestd.h" #include <functional> #include "wx/afterstd.h" // some compilers (Sun CC being the only known example) distinguish between // extern "C" functions and the functions with C++ linkage and ptr_fun and // wxStringCompareLess can't take wxStrcmp/wxStricmp directly as arguments in // this case, we need the wrappers below to make this work struct wxStringCmp { typedef wxString first_argument_type; typedef wxString second_argument_type; typedef int result_type; int operator()(const wxString& s1, const wxString& s2) const { return s1.compare(s2); } }; struct wxStringCmpNoCase { typedef wxString first_argument_type; typedef wxString second_argument_type; typedef int result_type; int operator()(const wxString& s1, const wxString& s2) const { return s1.CmpNoCase(s2); } }; int wxArrayString::Index(const wxString& str, bool bCase, bool WXUNUSED(bFromEnd)) const { wxArrayString::const_iterator it; if (bCase) { it = std::find_if(begin(), end(), std::not1( std::bind2nd( wxStringCmp(), str))); } else // !bCase { it = std::find_if(begin(), end(), std::not1( std::bind2nd( wxStringCmpNoCase(), str))); } return it == end() ? wxNOT_FOUND : it - begin(); } template<class F> class wxStringCompareLess { public: wxStringCompareLess(F f) : m_f(f) { } bool operator()(const wxString& s1, const wxString& s2) { return m_f(s1, s2) < 0; } private: F m_f; }; template<class F> wxStringCompareLess<F> wxStringCompare(F f) { return wxStringCompareLess<F>(f); } #endif // C++11/C++98 void wxArrayString::Sort(CompareFunction function) { std::sort(begin(), end(), #if __cplusplus >= 201103L || wxCHECK_VISUALC_VERSION(14) [function](const wxString& s1, const wxString& s2) { return function(s1, s2) < 0; } #else // C++98 version wxStringCompare(function) #endif // C++11/C++98 ); } void wxArrayString::Sort(bool reverseOrder) { if (reverseOrder) { std::sort(begin(), end(), std::greater<wxString>()); } else { std::sort(begin(), end()); } } int wxSortedArrayString::Index(const wxString& str, bool WXUNUSED_UNLESS_DEBUG(bCase), bool WXUNUSED_UNLESS_DEBUG(bFromEnd)) const { wxASSERT_MSG( bCase && !bFromEnd, "search parameters ignored for sorted array" ); wxSortedArrayString::const_iterator it = std::lower_bound(begin(), end(), str, #if __cplusplus >= 201103L || wxCHECK_VISUALC_VERSION(14) [](const wxString& s1, const wxString& s2) { return s1 < s2; } #else // C++98 version wxStringCompare(wxStringCmp()) #endif // C++11/C++98 ); if ( it == end() || str.Cmp(*it) != 0 ) return wxNOT_FOUND; return it - begin(); } #else // !wxUSE_STD_CONTAINERS #ifndef ARRAY_DEFAULT_INITIAL_SIZE // also defined in dynarray.h #define ARRAY_DEFAULT_INITIAL_SIZE (16) #endif // ctor void wxArrayString::Init(bool autoSort) { m_nSize = m_nCount = 0; m_pItems = NULL; m_compareFunction = NULL; m_autoSort = autoSort; } // copy ctor wxArrayString::wxArrayString(const wxArrayString& src) { Init(src.m_autoSort); *this = src; } // assignment operator wxArrayString& wxArrayString::operator=(const wxArrayString& src) { if ( m_nSize > 0 ) { // Do this test here to avoid unnecessary overhead when assigning to an // empty array, in that case there is no harm in self-assignment. if ( &src == this ) return *this; Clear(); } Copy(src); m_autoSort = src.m_autoSort; return *this; } void wxArrayString::Copy(const wxArrayString& src) { if ( src.m_nCount > ARRAY_DEFAULT_INITIAL_SIZE ) Alloc(src.m_nCount); for ( size_t n = 0; n < src.m_nCount; n++ ) Add(src[n]); } // grow the array wxString *wxArrayString::Grow(size_t nIncrement) { if ( (m_nSize - m_nCount) >= nIncrement ) { // We already have enough space. return NULL; } // if ARRAY_DEFAULT_INITIAL_SIZE were set to 0, the initially empty would // be never resized! #if ARRAY_DEFAULT_INITIAL_SIZE == 0 #error "ARRAY_DEFAULT_INITIAL_SIZE must be > 0!" #endif if ( m_nSize == 0 ) { // was empty, alloc some memory m_nSize = ARRAY_DEFAULT_INITIAL_SIZE; if (m_nSize < nIncrement) m_nSize = nIncrement; m_pItems = new wxString[m_nSize]; // Nothing to free, we hadn't had any memory before. return NULL; } else { // otherwise when it's called for the first time, nIncrement would be 0 // and the array would never be expanded size_t ndefIncrement = m_nSize < ARRAY_DEFAULT_INITIAL_SIZE ? ARRAY_DEFAULT_INITIAL_SIZE : m_nSize; if ( nIncrement < ndefIncrement ) nIncrement = ndefIncrement; m_nSize += nIncrement; wxString *pNew = new wxString[m_nSize]; // copy data to new location for ( size_t j = 0; j < m_nCount; j++ ) pNew[j] = m_pItems[j]; wxString* const pItemsOld = m_pItems; m_pItems = pNew; return pItemsOld; } } // deletes all the strings from the list void wxArrayString::Empty() { m_nCount = 0; } // as Empty, but also frees memory void wxArrayString::Clear() { m_nSize = m_nCount = 0; wxDELETEA(m_pItems); } // dtor wxArrayString::~wxArrayString() { delete [] m_pItems; } void wxArrayString::reserve(size_t nSize) { Alloc(nSize); } // pre-allocates memory (frees the previous data!) void wxArrayString::Alloc(size_t nSize) { // only if old buffer was not big enough if ( nSize > m_nSize ) { wxString *pNew = new wxString[nSize]; if ( !pNew ) return; for ( size_t j = 0; j < m_nCount; j++ ) pNew[j] = m_pItems[j]; delete [] m_pItems; m_pItems = pNew; m_nSize = nSize; } } // minimizes the memory usage by freeing unused memory void wxArrayString::Shrink() { // only do it if we have some memory to free if( m_nCount < m_nSize ) { // allocates exactly as much memory as we need wxString *pNew = new wxString[m_nCount]; // copy data to new location for ( size_t j = 0; j < m_nCount; j++ ) pNew[j] = m_pItems[j]; delete [] m_pItems; m_pItems = pNew; m_nSize = m_nCount; } } // searches the array for an item (forward or backwards) int wxArrayString::Index(const wxString& str, bool bCase, bool bFromEnd) const { if ( m_autoSort ) { // use binary search in the sorted array wxASSERT_MSG( bCase && !bFromEnd, wxT("search parameters ignored for auto sorted array") ); size_t lo = 0, hi = m_nCount; while ( lo < hi ) { size_t i; i = (lo + hi)/2; int res; res = str.compare(m_pItems[i]); if ( res < 0 ) hi = i; else if ( res > 0 ) lo = i + 1; else return i; } return wxNOT_FOUND; } else { // use linear search in unsorted array if ( bFromEnd ) { if ( m_nCount > 0 ) { size_t ui = m_nCount; do { if ( m_pItems[--ui].IsSameAs(str, bCase) ) return ui; } while ( ui != 0 ); } } else { for( size_t ui = 0; ui < m_nCount; ui++ ) { if( m_pItems[ui].IsSameAs(str, bCase) ) return ui; } } } return wxNOT_FOUND; } // add item at the end size_t wxArrayString::Add(const wxString& str, size_t nInsert) { if ( m_autoSort ) { // insert the string at the correct position to keep the array sorted size_t lo = 0, hi = m_nCount; while ( lo < hi ) { size_t i; i = (lo + hi)/2; int res; res = m_compareFunction ? m_compareFunction(str, m_pItems[i]) : str.Cmp(m_pItems[i]); if ( res < 0 ) hi = i; else if ( res > 0 ) lo = i + 1; else { lo = hi = i; break; } } wxASSERT_MSG( lo == hi, wxT("binary search broken") ); Insert(str, lo, nInsert); return (size_t)lo; } else { // Now that we must postpone freeing the old memory until we don't need it // any more, i.e. don't reference "str" which could be a reference to one // of our own strings. wxScopedArray<wxString> oldStrings(Grow(nInsert)); for (size_t i = 0; i < nInsert; i++) { // just append m_pItems[m_nCount + i] = str; } size_t ret = m_nCount; m_nCount += nInsert; return ret; } } // add item at the given position void wxArrayString::Insert(const wxString& str, size_t nIndex, size_t nInsert) { wxCHECK_RET( nIndex <= m_nCount, wxT("bad index in wxArrayString::Insert") ); wxCHECK_RET( m_nCount <= m_nCount + nInsert, wxT("array size overflow in wxArrayString::Insert") ); wxScopedArray<wxString> oldStrings(Grow(nInsert)); for (int j = m_nCount - nIndex - 1; j >= 0; j--) m_pItems[nIndex + nInsert + j] = m_pItems[nIndex + j]; for (size_t i = 0; i < nInsert; i++) { m_pItems[nIndex + i] = str; } m_nCount += nInsert; } // range insert (STL 23.2.4.3) void wxArrayString::insert(iterator it, const_iterator first, const_iterator last) { const int idx = it - begin(); // grow it once wxScopedArray<wxString> oldStrings(Grow(last - first)); // reset "it" since it can change inside Grow() it = begin() + idx; while ( first != last ) { it = insert(it, *first); // insert returns an iterator to the last element inserted but we need // insert the next after this one, that is before the next one ++it; ++first; } } void wxArrayString::resize(size_type n, value_type v) { if ( n < m_nCount ) m_nCount = n; else if ( n > m_nCount ) Add(v, n - m_nCount); } // expand the array void wxArrayString::SetCount(size_t count) { Alloc(count); wxString s; while ( m_nCount < count ) m_pItems[m_nCount++] = s; } // removes item from array (by index) void wxArrayString::RemoveAt(size_t nIndex, size_t nRemove) { wxCHECK_RET( nIndex < m_nCount, wxT("bad index in wxArrayString::Remove") ); wxCHECK_RET( nIndex + nRemove <= m_nCount, wxT("removing too many elements in wxArrayString::Remove") ); for ( size_t j = 0; j < m_nCount - nIndex -nRemove; j++) m_pItems[nIndex + j] = m_pItems[nIndex + nRemove + j]; m_nCount -= nRemove; } // removes item from array (by value) void wxArrayString::Remove(const wxString& sz) { int iIndex = Index(sz); wxCHECK_RET( iIndex != wxNOT_FOUND, wxT("removing inexistent element in wxArrayString::Remove") ); RemoveAt(iIndex); } // ---------------------------------------------------------------------------- // sorting // ---------------------------------------------------------------------------- // we need an adaptor as our predicates use qsort() convention and so return // negative, null or positive value depending on whether the first item is less // than, equal to or greater than the other one while we need a real boolean // predicate now that we use std::sort() struct wxSortPredicateAdaptor { wxSortPredicateAdaptor(wxArrayString::CompareFunction compareFunction) : m_compareFunction(compareFunction) { } bool operator()(const wxString& first, const wxString& second) const { return (*m_compareFunction)(first, second) < 0; } wxArrayString::CompareFunction m_compareFunction; }; void wxArrayString::Sort(CompareFunction compareFunction) { wxCHECK_RET( !m_autoSort, wxT("can't use this method with sorted arrays") ); std::sort(m_pItems, m_pItems + m_nCount, wxSortPredicateAdaptor(compareFunction)); } struct wxSortPredicateAdaptor2 { wxSortPredicateAdaptor2(wxArrayString::CompareFunction2 compareFunction) : m_compareFunction(compareFunction) { } bool operator()(const wxString& first, const wxString& second) const { return (*m_compareFunction)(const_cast<wxString *>(&first), const_cast<wxString *>(&second)) < 0; } wxArrayString::CompareFunction2 m_compareFunction; }; void wxArrayString::Sort(CompareFunction2 compareFunction) { std::sort(m_pItems, m_pItems + m_nCount, wxSortPredicateAdaptor2(compareFunction)); } void wxArrayString::Sort(bool reverseOrder) { if ( reverseOrder ) std::sort(m_pItems, m_pItems + m_nCount, std::greater<wxString>()); else // normal sort std::sort(m_pItems, m_pItems + m_nCount); } bool wxArrayString::operator==(const wxArrayString& a) const { if ( m_nCount != a.m_nCount ) return false; for ( size_t n = 0; n < m_nCount; n++ ) { if ( Item(n) != a[n] ) return false; } return true; } #endif // !wxUSE_STD_CONTAINERS // =========================================================================== // wxJoin and wxSplit // =========================================================================== #include "wx/tokenzr.h" wxString wxJoin(const wxArrayString& arr, const wxChar sep, const wxChar escape) { wxString str; size_t count = arr.size(); if ( count == 0 ) return str; // pre-allocate memory using the estimation of the average length of the // strings in the given array: this is very imprecise, of course, but // better than nothing str.reserve(count*(arr[0].length() + arr[count-1].length()) / 2); if ( escape == wxT('\0') ) { // escaping is disabled: for ( size_t i = 0; i < count; i++ ) { if ( i ) str += sep; str += arr[i]; } } else // use escape character { for ( size_t n = 0; n < count; n++ ) { if ( n ) str += sep; for ( wxString::const_iterator i = arr[n].begin(), end = arr[n].end(); i != end; ++i ) { const wxChar ch = *i; if ( ch == sep ) str += escape; // escape this separator str += ch; } } } str.Shrink(); // release extra memory if we allocated too much return str; } wxArrayString wxSplit(const wxString& str, const wxChar sep, const wxChar escape) { if ( escape == wxT('\0') ) { // simple case: we don't need to honour the escape character return wxStringTokenize(str, sep, wxTOKEN_RET_EMPTY_ALL); } wxArrayString ret; wxString curr; wxChar prev = wxT('\0'); for ( wxString::const_iterator i = str.begin(), end = str.end(); i != end; ++i ) { const wxChar ch = *i; if ( ch == sep ) { if ( prev == escape ) { // remove the escape character and don't consider this // occurrence of 'sep' as a real separator *curr.rbegin() = sep; } else // real separator { ret.push_back(curr); curr.clear(); } } else // normal character { curr += ch; } prev = ch; } // add the last token if ( !curr.empty() || prev == sep ) ret.Add(curr); return ret; } #if wxUSE_REGEX namespace // helpers needed by wxCmpNaturalGeneric() { // Used for comparison of string parts struct wxStringFragment { // Fragment types are generally sorted like this: // Empty < SpaceOrPunct < Digit < LetterOrSymbol // Fragments of the same type are compared as follows: // SpaceOrPunct - collated, Digit - as numbers using value // LetterOrSymbol - lower-cased and then collated enum Type { Empty, SpaceOrPunct, // whitespace or punctuation Digit, // a sequence of decimal digits LetterOrSymbol // letters and symbols, i.e., anything not covered by the above types }; wxStringFragment() : type(Empty), value(0) {} Type type; wxString text; wxUint64 value; // used only for Digit type }; wxStringFragment GetFragment(wxString& text) { static const wxRegEx reSpaceOrPunct(wxS("^([[:space:]]|[[:punct:]])+")); // Limit the length to make sure the value will fit into a wxUint64 static const wxRegEx reDigit(wxS("^[[:digit:]]{1,19}")); static const wxRegEx reLetterOrSymbol("^[^[:space:]|[:punct:]|[:digit:]]+"); if ( text.empty() ) return wxStringFragment(); wxStringFragment fragment; size_t length = 0; // In attempt to minimize the number of wxRegEx.Matches() calls, // try to do them from the most expected to the least expected // string fragment type. if ( reLetterOrSymbol.Matches(text) ) { if ( reLetterOrSymbol.GetMatch(NULL, &length) ) { fragment.type = wxStringFragment::LetterOrSymbol; fragment.text = text.Left(length); } } else if ( reDigit.Matches(text) ) { if ( reDigit.GetMatch(NULL, &length) ) { fragment.type = wxStringFragment::Digit; fragment.text = text.Left(length); fragment.text.ToULongLong(&fragment.value); } } else if ( reSpaceOrPunct.Matches(text) ) { if ( reSpaceOrPunct.GetMatch(NULL, &length) ) { fragment.type = wxStringFragment::SpaceOrPunct; fragment.text = text.Left(length); } } text.erase(0, length); return fragment; } int CompareFragmentNatural(const wxStringFragment& lhs, const wxStringFragment& rhs) { switch ( lhs.type ) { case wxStringFragment::Empty: switch ( rhs.type ) { case wxStringFragment::Empty: return 0; case wxStringFragment::SpaceOrPunct: case wxStringFragment::Digit: case wxStringFragment::LetterOrSymbol: return -1; } break; case wxStringFragment::SpaceOrPunct: switch ( rhs.type ) { case wxStringFragment::Empty: return 1; case wxStringFragment::SpaceOrPunct: return wxStrcoll_String(lhs.text, rhs.text); case wxStringFragment::Digit: case wxStringFragment::LetterOrSymbol: return -1; } break; case wxStringFragment::Digit: switch ( rhs.type ) { case wxStringFragment::Empty: case wxStringFragment::SpaceOrPunct: return 1; case wxStringFragment::Digit: if ( lhs.value > rhs.value ) return 1; else if ( lhs.value < rhs.value ) return -1; else return 0; case wxStringFragment::LetterOrSymbol: return -1; } break; case wxStringFragment::LetterOrSymbol: switch ( rhs.type ) { case wxStringFragment::Empty: case wxStringFragment::SpaceOrPunct: case wxStringFragment::Digit: return 1; case wxStringFragment::LetterOrSymbol: return wxStrcoll_String(lhs.text.Lower(), rhs.text.Lower()); } break; } // all possible cases should be covered by the switch above // but return also from here to prevent the compiler warning return 1; } } // unnamed namespace // ---------------------------------------------------------------------------- // wxCmpNaturalGeneric // ---------------------------------------------------------------------------- // int wxCMPFUNC_CONV wxCmpNaturalGeneric(const wxString& s1, const wxString& s2) { wxString lhs(s1); wxString rhs(s2); int comparison = 0; while ( (comparison == 0) && (!lhs.empty() || !rhs.empty()) ) { const wxStringFragment fragmentLHS = GetFragment(lhs); const wxStringFragment fragmentRHS = GetFragment(rhs); comparison = CompareFragmentNatural(fragmentLHS, fragmentRHS); } return comparison; } #else int wxCMPFUNC_CONV wxCmpNaturalGeneric(const wxString& s1, const wxString& s2) { return wxStrcoll_String(s1.Lower(), s2.Lower()); } #endif // #if wxUSE_REGEX // ---------------------------------------------------------------------------- // Declaration of StrCmpLogicalW() // ---------------------------------------------------------------------------- // // In some distributions of MinGW32, this function is exported in the library, // but not declared in shlwapi.h. Therefore we declare it here. #if defined( __MINGW32_TOOLCHAIN__ ) extern "C" __declspec(dllimport) int WINAPI StrCmpLogicalW(LPCWSTR psz1, LPCWSTR psz2); #endif // ---------------------------------------------------------------------------- // wxCmpNatural // ---------------------------------------------------------------------------- // // If a native version of Natural sort is available, then use that, otherwise // use the generic version. inline int wxCMPFUNC_CONV wxCmpNatural(const wxString& s1, const wxString& s2) { #if defined( __WINDOWS__ ) return StrCmpLogicalW(s1.wc_str(), s2.wc_str()); #else return wxCmpNaturalGeneric(s1, s2); #endif // #if defined( __WINDOWS__ ) }
// Copyright (c) 2011-2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <qt/bitcoin.h> #include <qt/bitcoingui.h> #include <chainparams.h> #include <qt/clientmodel.h> #include <fs.h> #include <qt/guiconstants.h> #include <qt/guiutil.h> #include <qt/intro.h> #include <qt/networkstyle.h> #include <qt/optionsmodel.h> #include <qt/platformstyle.h> #include <qt/splashscreen.h> #include <qt/utilitydialog.h> #include <qt/winshutdownmonitor.h> #ifdef ENABLE_WALLET #include <qt/paymentserver.h> #include <qt/walletcontroller.h> #endif #include <interfaces/handler.h> #include <interfaces/node.h> #include <noui.h> #include <rpc/server.h> #include <ui_interface.h> #include <uint256.h> #include <util/system.h> #include <warnings.h> #include <walletinitinterface.h> #include <memory> #include <stdint.h> #include <boost/thread.hpp> #include <QApplication> #include <QDebug> #include <QLibraryInfo> #include <QLocale> #include <QMessageBox> #include <QSettings> #include <QThread> #include <QTimer> #include <QTranslator> #if defined(QT_STATICPLUGIN) #include <QtPlugin> #if defined(QT_QPA_PLATFORM_XCB) Q_IMPORT_PLUGIN(QXcbIntegrationPlugin); #elif defined(QT_QPA_PLATFORM_WINDOWS) Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin); #elif defined(QT_QPA_PLATFORM_COCOA) Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin); #endif #endif // Declare meta types used for QMetaObject::invokeMethod Q_DECLARE_METATYPE(bool*) Q_DECLARE_METATYPE(CAmount) Q_DECLARE_METATYPE(uint256) static QString GetLangTerritory() { QSettings settings; // Get desired locale (e.g. "de_DE") // 1) System default language QString lang_territory = QLocale::system().name(); // 2) Language from QSettings QString lang_territory_qsettings = settings.value("language", "").toString(); if(!lang_territory_qsettings.isEmpty()) lang_territory = lang_territory_qsettings; // 3) -lang command line argument lang_territory = QString::fromStdString(gArgs.GetArg("-lang", lang_territory.toStdString())); return lang_territory; } /** Set up translations */ static void initTranslations(QTranslator &qtTranslatorBase, QTranslator &qtTranslator, QTranslator &translatorBase, QTranslator &translator) { // Remove old translators QApplication::removeTranslator(&qtTranslatorBase); QApplication::removeTranslator(&qtTranslator); QApplication::removeTranslator(&translatorBase); QApplication::removeTranslator(&translator); // Get desired locale (e.g. "de_DE") // 1) System default language QString lang_territory = GetLangTerritory(); // Convert to "de" only by truncating "_DE" QString lang = lang_territory; lang.truncate(lang_territory.lastIndexOf('_')); // Load language files for configured locale: // - First load the translator for the base language, without territory // - Then load the more specific locale translator // Load e.g. qt_de.qm if (qtTranslatorBase.load("qt_" + lang, QLibraryInfo::location(QLibraryInfo::TranslationsPath))) QApplication::installTranslator(&qtTranslatorBase); // Load e.g. qt_de_DE.qm if (qtTranslator.load("qt_" + lang_territory, QLibraryInfo::location(QLibraryInfo::TranslationsPath))) QApplication::installTranslator(&qtTranslator); // Load e.g. bitcoin_de.qm (shortcut "de" needs to be defined in bitcoin.qrc) if (translatorBase.load(lang, ":/translations/")) QApplication::installTranslator(&translatorBase); // Load e.g. bitcoin_de_DE.qm (shortcut "de_DE" needs to be defined in bitcoin.qrc) if (translator.load(lang_territory, ":/translations/")) QApplication::installTranslator(&translator); } /* qDebug() message handler --> debug.log */ void DebugMessageHandler(QtMsgType type, const QMessageLogContext& context, const QString &msg) { Q_UNUSED(context); if (type == QtDebugMsg) { LogPrint(BCLog::QT, "GUI: %s\n", msg.toStdString()); } else { LogPrintf("GUI: %s\n", msg.toStdString()); } } BitcoinCore::BitcoinCore(interfaces::Node& node) : QObject(), m_node(node) { } void BitcoinCore::handleRunawayException(const std::exception *e) { PrintExceptionContinue(e, "Runaway exception"); Q_EMIT runawayException(QString::fromStdString(m_node.getWarnings("gui"))); } void BitcoinCore::initialize() { try { qDebug() << __func__ << ": Running initialization in thread"; bool rv = m_node.appInitMain(); Q_EMIT initializeResult(rv); } catch (const std::exception& e) { handleRunawayException(&e); } catch (...) { handleRunawayException(nullptr); } } void BitcoinCore::shutdown() { try { qDebug() << __func__ << ": Running Shutdown in thread"; m_node.appShutdown(); qDebug() << __func__ << ": Shutdown finished"; Q_EMIT shutdownResult(); } catch (const std::exception& e) { handleRunawayException(&e); } catch (...) { handleRunawayException(nullptr); } } BitcoinApplication::BitcoinApplication(interfaces::Node& node, int &argc, char **argv): QApplication(argc, argv), coreThread(nullptr), m_node(node), optionsModel(nullptr), clientModel(nullptr), window(nullptr), pollShutdownTimer(nullptr), returnValue(0), platformStyle(nullptr) { setQuitOnLastWindowClosed(false); } void BitcoinApplication::setupPlatformStyle() { // UI per-platform customization // This must be done inside the BitcoinApplication constructor, or after it, because // PlatformStyle::instantiate requires a QApplication std::string platformName; platformName = gArgs.GetArg("-uiplatform", BitcoinGUI::DEFAULT_UIPLATFORM); platformStyle = PlatformStyle::instantiate(QString::fromStdString(platformName)); if (!platformStyle) // Fall back to "other" if specified name not found platformStyle = PlatformStyle::instantiate("other"); assert(platformStyle); } BitcoinApplication::~BitcoinApplication() { if(coreThread) { qDebug() << __func__ << ": Stopping thread"; coreThread->quit(); coreThread->wait(); qDebug() << __func__ << ": Stopped thread"; } delete window; window = nullptr; #ifdef ENABLE_WALLET delete paymentServer; paymentServer = nullptr; delete m_wallet_controller; m_wallet_controller = nullptr; #endif delete optionsModel; optionsModel = nullptr; delete platformStyle; platformStyle = nullptr; } #ifdef ENABLE_WALLET void BitcoinApplication::createPaymentServer() { paymentServer = new PaymentServer(this); } #endif void BitcoinApplication::createOptionsModel(bool resetSettings) { optionsModel = new OptionsModel(m_node, nullptr, resetSettings); } void BitcoinApplication::createWindow(const NetworkStyle *networkStyle) { window = new BitcoinGUI(m_node, platformStyle, networkStyle, nullptr); pollShutdownTimer = new QTimer(window); connect(pollShutdownTimer, &QTimer::timeout, window, &BitcoinGUI::detectShutdown); } void BitcoinApplication::createSplashScreen(const NetworkStyle *networkStyle) { SplashScreen *splash = new SplashScreen(m_node, nullptr, networkStyle); // We don't hold a direct pointer to the splash screen after creation, but the splash // screen will take care of deleting itself when finish() happens. splash->show(); connect(this, &BitcoinApplication::splashFinished, splash, &SplashScreen::finish); connect(this, &BitcoinApplication::requestedShutdown, splash, &QWidget::close); } bool BitcoinApplication::baseInitialize() { return m_node.baseInitialize(); } void BitcoinApplication::startThread() { if(coreThread) return; coreThread = new QThread(this); BitcoinCore *executor = new BitcoinCore(m_node); executor->moveToThread(coreThread); /* communication to and from thread */ connect(executor, &BitcoinCore::initializeResult, this, &BitcoinApplication::initializeResult); connect(executor, &BitcoinCore::shutdownResult, this, &BitcoinApplication::shutdownResult); connect(executor, &BitcoinCore::runawayException, this, &BitcoinApplication::handleRunawayException); connect(this, &BitcoinApplication::requestedInitialize, executor, &BitcoinCore::initialize); connect(this, &BitcoinApplication::requestedShutdown, executor, &BitcoinCore::shutdown); /* make sure executor object is deleted in its own thread */ connect(coreThread, &QThread::finished, executor, &QObject::deleteLater); coreThread->start(); } void BitcoinApplication::parameterSetup() { // Default printtoconsole to false for the GUI. GUI programs should not // print to the console unnecessarily. gArgs.SoftSetBoolArg("-printtoconsole", false); m_node.initLogging(); m_node.initParameterInteraction(); } void BitcoinApplication::requestInitialize() { qDebug() << __func__ << ": Requesting initialize"; startThread(); Q_EMIT requestedInitialize(); } void BitcoinApplication::requestShutdown() { // Show a simple window indicating shutdown status // Do this first as some of the steps may take some time below, // for example the RPC console may still be executing a command. shutdownWindow.reset(ShutdownWindow::showShutdownWindow(window)); qDebug() << __func__ << ": Requesting shutdown"; startThread(); window->hide(); // Must disconnect node signals otherwise current thread can deadlock since // no event loop is running. window->unsubscribeFromCoreSignals(); // Request node shutdown, which can interrupt long operations, like // rescanning a wallet. m_node.startShutdown(); // Unsetting the client model can cause the current thread to wait for node // to complete an operation, like wait for a RPC execution to complate. window->setClientModel(nullptr); pollShutdownTimer->stop(); delete clientModel; clientModel = nullptr; // Request shutdown from core thread Q_EMIT requestedShutdown(); } void BitcoinApplication::initializeResult(bool success) { qDebug() << __func__ << ": Initialization result: " << success; // Set exit result. returnValue = success ? EXIT_SUCCESS : EXIT_FAILURE; if(success) { // Log this only after AppInitMain finishes, as then logging setup is guaranteed complete qWarning() << "Platform customization:" << platformStyle->getName(); #ifdef ENABLE_WALLET m_wallet_controller = new WalletController(m_node, platformStyle, optionsModel, this); #ifdef ENABLE_BIP70 PaymentServer::LoadRootCAs(); #endif if (paymentServer) { paymentServer->setOptionsModel(optionsModel); #ifdef ENABLE_BIP70 connect(m_wallet_controller, &WalletController::coinsSent, paymentServer, &PaymentServer::fetchPaymentACK); #endif } #endif clientModel = new ClientModel(m_node, optionsModel); window->setClientModel(clientModel); #ifdef ENABLE_WALLET window->setWalletController(m_wallet_controller); #endif // If -min option passed, start window minimized (iconified) or minimized to tray if (!gArgs.GetBoolArg("-min", false)) { window->show(); } else if (clientModel->getOptionsModel()->getMinimizeToTray() && window->hasTrayIcon()) { // do nothing as the window is managed by the tray icon } else { window->showMinimized(); } Q_EMIT splashFinished(); Q_EMIT windowShown(window); #ifdef ENABLE_WALLET // Now that initialization/startup is done, process any command-line // bitcoin: URIs or payment requests: if (paymentServer) { connect(paymentServer, &PaymentServer::receivedPaymentRequest, window, &BitcoinGUI::handlePaymentRequest); connect(window, &BitcoinGUI::receivedURI, paymentServer, &PaymentServer::handleURIOrFile); connect(paymentServer, &PaymentServer::message, [this](const QString& title, const QString& message, unsigned int style) { window->message(title, message, style); }); QTimer::singleShot(100, paymentServer, &PaymentServer::uiReady); } #endif pollShutdownTimer->start(200); } else { Q_EMIT splashFinished(); // Make sure splash screen doesn't stick around during shutdown quit(); // Exit first main loop invocation } } void BitcoinApplication::shutdownResult() { quit(); // Exit second main loop invocation after shutdown finished } void BitcoinApplication::handleRunawayException(const QString &message) { QMessageBox::critical(nullptr, "Runaway exception", BitcoinGUI::tr("A fatal error occurred. Lava can no longer continue safely and will quit.") + QString("\n\n") + message); ::exit(EXIT_FAILURE); } WId BitcoinApplication::getMainWinId() const { if (!window) return 0; return window->winId(); } static void SetupUIArgs() { #if defined(ENABLE_WALLET) && defined(ENABLE_BIP70) gArgs.AddArg("-allowselfsignedrootcertificates", strprintf("Allow self signed root certificates (default: %u)", DEFAULT_SELFSIGNED_ROOTCERTS), true, OptionsCategory::GUI); #endif gArgs.AddArg("-choosedatadir", strprintf("Choose data directory on startup (default: %u)", DEFAULT_CHOOSE_DATADIR), false, OptionsCategory::GUI); gArgs.AddArg("-lang=<lang>", "Set language, for example \"de_DE\" (default: system locale)", false, OptionsCategory::GUI); gArgs.AddArg("-min", "Start minimized", false, OptionsCategory::GUI); gArgs.AddArg("-resetguisettings", "Reset all settings changed in the GUI", false, OptionsCategory::GUI); gArgs.AddArg("-rootcertificates=<file>", "Set SSL root certificates for payment request (default: -system-)", false, OptionsCategory::GUI); gArgs.AddArg("-splash", strprintf("Show splash screen on startup (default: %u)", DEFAULT_SPLASHSCREEN), false, OptionsCategory::GUI); gArgs.AddArg("-uiplatform", strprintf("Select platform to customize UI for (one of windows, macosx, other; default: %s)", BitcoinGUI::DEFAULT_UIPLATFORM), true, OptionsCategory::GUI); } #ifndef BITCOIN_QT_TEST int GuiMain(int argc, char* argv[]) { #ifdef WIN32 util::WinCmdLineArgs winArgs; std::tie(argc, argv) = winArgs.get(); #endif SetupEnvironment(); std::unique_ptr<interfaces::Node> node = interfaces::MakeNode(); // Subscribe to global signals from core std::unique_ptr<interfaces::Handler> handler_message_box = node->handleMessageBox(noui_ThreadSafeMessageBox); std::unique_ptr<interfaces::Handler> handler_question = node->handleQuestion(noui_ThreadSafeQuestion); std::unique_ptr<interfaces::Handler> handler_init_message = node->handleInitMessage(noui_InitMessage); // Do not refer to data directory yet, this can be overridden by Intro::pickDataDirectory /// 1. Basic Qt initialization (not dependent on parameters or configuration) Q_INIT_RESOURCE(bitcoin); Q_INIT_RESOURCE(bitcoin_locale); #if QT_VERSION >= 0x050600 QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); #endif BitcoinApplication app(*node, argc, argv); // Generate high-dpi pixmaps QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); #ifdef Q_OS_MAC QApplication::setAttribute(Qt::AA_DontShowIconsInMenus); #endif // Register meta types used for QMetaObject::invokeMethod qRegisterMetaType< bool* >(); // Need to pass name here as CAmount is a typedef (see http://qt-project.org/doc/qt-5/qmetatype.html#qRegisterMetaType) // IMPORTANT if it is no longer a typedef use the normal variant above qRegisterMetaType< CAmount >("CAmount"); qRegisterMetaType< std::function<void()> >("std::function<void()>"); qRegisterMetaType<QMessageBox::Icon>("QMessageBox::Icon"); /// 2. Parse command-line options. We do this after qt in order to show an error if there are problems parsing these // Command-line options take precedence: node->setupServerArgs(); SetupUIArgs(); std::string error; if (!node->parseParameters(argc, argv, error)) { QMessageBox::critical(nullptr, QObject::tr(PACKAGE_NAME), QObject::tr("Error parsing command line arguments: %1.").arg(QString::fromStdString(error))); return EXIT_FAILURE; } // Now that the QApplication is setup and we have parsed our parameters, we can set the platform style app.setupPlatformStyle(); /// 3. Application identification // must be set before OptionsModel is initialized or translations are loaded, // as it is used to locate QSettings QApplication::setOrganizationName(QAPP_ORG_NAME); QApplication::setOrganizationDomain(QAPP_ORG_DOMAIN); QApplication::setApplicationName(QAPP_APP_NAME_DEFAULT); /// 4. Initialization of translations, so that intro dialog is in user's language // Now that QSettings are accessible, initialize translations QTranslator qtTranslatorBase, qtTranslator, translatorBase, translator; initTranslations(qtTranslatorBase, qtTranslator, translatorBase, translator); // Show help message immediately after parsing command-line options (for "-lang") and setting locale, // but before showing splash screen. if (HelpRequested(gArgs) || gArgs.IsArgSet("-version")) { HelpMessageDialog help(*node, nullptr, gArgs.IsArgSet("-version")); help.showOrPrint(); return EXIT_SUCCESS; } /// 5. Now that settings and translations are available, ask user for data directory // User language is set up: pick a data directory if (!Intro::pickDataDirectory(*node)) return EXIT_SUCCESS; /// 6. Determine availability of data and blocks directory and parse bitcoin.conf /// - Do not call GetDataDir(true) before this step finishes if (!fs::is_directory(GetDataDir(false))) { QMessageBox::critical(nullptr, QObject::tr(PACKAGE_NAME), QObject::tr("Error: Specified data directory \"%1\" does not exist.").arg(QString::fromStdString(gArgs.GetArg("-datadir", "")))); return EXIT_FAILURE; } if (!node->readConfigFiles(error)) { QMessageBox::critical(nullptr, QObject::tr(PACKAGE_NAME), QObject::tr("Error: Cannot parse configuration file: %1.").arg(QString::fromStdString(error))); return EXIT_FAILURE; } /// 7. Determine network (and switch to network specific options) // - Do not call Params() before this step // - Do this after parsing the configuration file, as the network can be switched there // - QSettings() will use the new application name after this, resulting in network-specific settings // - Needs to be done before createOptionsModel // Check for -testnet or -regtest parameter (Params() calls are only valid after this clause) try { node->selectParams(gArgs.GetChainName()); } catch(std::exception &e) { QMessageBox::critical(nullptr, QObject::tr(PACKAGE_NAME), QObject::tr("Error: %1").arg(e.what())); return EXIT_FAILURE; } #ifdef ENABLE_WALLET // Parse URIs on command line -- this can affect Params() PaymentServer::ipcParseCommandLine(*node, argc, argv); #endif QScopedPointer<const NetworkStyle> networkStyle(NetworkStyle::instantiate(QString::fromStdString(Params().NetworkIDString()))); assert(!networkStyle.isNull()); // Allow for separate UI settings for testnets QApplication::setApplicationName(networkStyle->getAppName()); // Re-initialize translations after changing application name (language in network-specific settings can be different) initTranslations(qtTranslatorBase, qtTranslator, translatorBase, translator); #ifdef ENABLE_WALLET /// 8. URI IPC sending // - Do this early as we don't want to bother initializing if we are just calling IPC // - Do this *after* setting up the data directory, as the data directory hash is used in the name // of the server. // - Do this after creating app and setting up translations, so errors are // translated properly. if (PaymentServer::ipcSendCommandLine()) exit(EXIT_SUCCESS); // Start up the payment server early, too, so impatient users that click on // bitcoin: links repeatedly have their payment requests routed to this process: app.createPaymentServer(); #endif /// 9. Main GUI initialization // Install global event filter that makes sure that long tooltips can be word-wrapped app.installEventFilter(new GUIUtil::ToolTipToRichTextFilter(TOOLTIP_WRAP_THRESHOLD, &app)); #if defined(Q_OS_WIN) // Install global event filter for processing Windows session related Windows messages (WM_QUERYENDSESSION and WM_ENDSESSION) qApp->installNativeEventFilter(new WinShutdownMonitor()); #endif // Install qDebug() message handler to route to debug.log qInstallMessageHandler(DebugMessageHandler); // Allow parameter interaction before we create the options model app.parameterSetup(); // Load GUI settings from QSettings app.createOptionsModel(gArgs.GetBoolArg("-resetguisettings", false)); if (gArgs.GetBoolArg("-splash", DEFAULT_SPLASHSCREEN) && !gArgs.GetBoolArg("-min", false)) app.createSplashScreen(networkStyle.data()); int rv = EXIT_SUCCESS; try { app.createWindow(networkStyle.data()); // Perform base initialization before spinning up initialization/shutdown thread // This is acceptable because this function only contains steps that are quick to execute, // so the GUI thread won't be held up. if (app.baseInitialize()) { app.requestInitialize(); #if defined(Q_OS_WIN) WinShutdownMonitor::registerShutdownBlockReason(QObject::tr("%1 didn't yet exit safely...").arg(QObject::tr(PACKAGE_NAME)), (HWND)app.getMainWinId()); #endif app.exec(); app.requestShutdown(); app.exec(); rv = app.getReturnValue(); } else { // A dialog with detailed error will have been shown by InitError() rv = EXIT_FAILURE; } } catch (const std::exception& e) { PrintExceptionContinue(&e, "Runaway exception"); app.handleRunawayException(QString::fromStdString(node->getWarnings("gui"))); } catch (...) { PrintExceptionContinue(nullptr, "Runaway exception"); app.handleRunawayException(QString::fromStdString(node->getWarnings("gui"))); } return rv; } #endif // BITCOIN_QT_TEST
//%Header { /***************************************************************************** * * File: src/GL/GLState.cpp * * Copyright: Andy Southgate 2002-2007, 2020 * * 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. * ****************************************************************************/ //%Header } JORJRJO5qgoZ+1jDEcdONg /* * $Id: GLState.cpp,v 1.18 2006/06/01 15:38:52 southa Exp $ * $Log: GLState.cpp,v $ * Revision 1.18 2006/06/01 15:38:52 southa * DrawArray verification and fixes * * Revision 1.17 2005/05/19 13:02:00 southa * Mac release work * * Revision 1.16 2005/04/11 23:31:40 southa * Startup and registration screen * * Revision 1.15 2005/04/10 00:09:22 southa * Registration * * Revision 1.14 2004/01/02 21:13:05 southa * Source conditioning * * Revision 1.13 2003/09/17 19:40:30 southa * Source conditioning upgrades * * Revision 1.12 2003/08/21 23:08:29 southa * Fixed file headers * * Revision 1.11 2003/01/20 10:45:23 southa * Singleton tidying * * Revision 1.10 2003/01/17 13:30:37 southa * Source conditioning and build fixes * * Revision 1.9 2003/01/13 14:31:55 southa * Build frameworks for Mac OS X * * Revision 1.8 2003/01/12 17:32:50 southa * Mushcore work * * Revision 1.7 2003/01/09 14:56:58 southa * Created Mushcore * * Revision 1.6 2002/12/29 20:59:53 southa * More build fixes * * Revision 1.5 2002/12/20 13:17:35 southa * Namespace changes, licence changes and source conditioning * * Revision 1.4 2002/12/04 15:39:57 southa * Multiplayer work * * Revision 1.3 2002/10/22 20:42:01 southa * Source conditioning * * Revision 1.2 2002/10/17 15:50:58 southa * Config saving, pause and quit * * Revision 1.1 2002/10/12 15:24:58 southa * Facet renderer * */ #include "GLState.h" #include "GLSTL.h" using namespace Mushware; using namespace std; GLState::tBlendType GLState::m_blendState=GLState::kBlendInvalid; tVal GLState::m_lightingAlpha = 1.0; GLState::tModulationType GLState::m_modulateState=GLState::kModulationInvalid; GLState::tDepthType GLState::m_depthState=GLState::kDepthInvalid; GLState::tDisplayQuality GLState::m_displayQuality=GLState::kQualityNotSet; bool GLState::m_useLighting=true; bool GLState::m_textureEnabled=false; bool GLState::m_useMipMap=true; GLuint GLState::m_boundTexture=0; void GLState::ResolveDisplayQuality(void) { string displayQuality("high"); const MushcoreScalar *pScalar; if (MushcoreEnv::Sgl().VariableGetIfExists(pScalar, "DISPLAY_QUALITY")) { displayQuality = pScalar->StringGet(); } if (displayQuality == "low") { m_displayQuality = kQualityLow; } else if (displayQuality == "medium") { m_displayQuality = kQualityMedium; } else if (displayQuality == "high") { m_displayQuality = kQualityHigh; } else { throw(MushcoreCommandFail("Bad value for DISPLAY_QUALITY: should be low, medium or high")); } }
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r8 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_D_ht+0x4915, %rsi lea addresses_D_ht+0xd95, %rdi nop nop sub %rbp, %rbp mov $43, %rcx rep movsq nop xor %r11, %r11 lea addresses_normal_ht+0x16b15, %rsi lea addresses_WT_ht+0x1612b, %rdi nop and $337, %r10 mov $50, %rcx rep movsw nop nop nop dec %rbp lea addresses_UC_ht+0x1dd15, %r10 nop xor %rax, %rax mov $0x6162636465666768, %rbp movq %rbp, %xmm3 vmovups %ymm3, (%r10) nop nop nop nop cmp $63492, %r11 lea addresses_UC_ht+0x19210, %r10 sub $22730, %rdi movw $0x6162, (%r10) nop nop nop xor $9563, %rax lea addresses_WT_ht+0x1db15, %rax nop nop nop and $11680, %rbp movl $0x61626364, (%rax) nop nop nop nop xor $32750, %rdi lea addresses_WC_ht+0x12cad, %rax nop nop sub $32494, %rbp movb $0x61, (%rax) nop nop nop nop nop cmp %r11, %r11 lea addresses_D_ht+0xe515, %rsi lea addresses_D_ht+0xa855, %rdi add $36500, %r8 mov $85, %rcx rep movsl nop nop nop nop cmp %rcx, %rcx lea addresses_normal_ht+0x1a125, %rcx nop nop nop cmp $22157, %r11 movb $0x61, (%rcx) nop nop nop nop add %r11, %r11 lea addresses_WT_ht+0x14915, %rsi lea addresses_normal_ht+0x8315, %rdi nop add $18233, %r11 mov $101, %rcx rep movsw nop nop nop nop nop add $539, %r11 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r8 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %rbp push %rcx push %rdx // Store mov $0xb87, %r10 clflush (%r10) nop nop add $43846, %rdx movl $0x51525354, (%r10) nop nop nop nop nop xor $14835, %rcx // Store lea addresses_D+0xb315, %r10 nop nop xor %r14, %r14 movb $0x51, (%r10) nop nop nop nop nop xor %rbp, %rbp // Faulty Load lea addresses_D+0xb315, %r13 and %rdx, %rdx movb (%r13), %cl lea oracles, %r10 and $0xff, %rcx shlq $12, %rcx mov (%r10,%rcx,1), %rcx pop %rdx pop %rcx pop %rbp pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}} {'51': 2324} 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 */
.ORIG x3000 ; list of simple instructions, none with labels ADD R3,R2,R1 ; ADD instruction ADD R3,R2,#-5 ; ADD instruction ADD R3,R2,x0f ; ADD instruction AND R4,R5,R6 ; AND instruction AND R4,R5,#6 ; AND instruction AND R4,R5,#15 ; AND instruction NOT R7,R4 ; NOT instruction HALT ; HALT instruction JMP R4 ; JMP instruction JSRR R5 ; JSRR instruction RET ; RET instruction RTI ; RTI instruction TRAP x21 ; TRAP instruction LDR R2,R7,#10 ; LDR instruction STR R2,R7,#-8 ; STR instruction ; now try instructions that contain labels (e.g. PCoffsets) BR LABEL0 ; BR instructions BRn LABEL0 BRz LABEL0 BRp LABEL0 BRnz LABEL0 BRnp LABEL0 BRzp LABEL0 BRnzp LABEL0 JSR NEXT ; JSR instruction LABEL0 LD R2,LABEL1 ; LD instruction LDI R3,LABEL2 ; LDI instruction LEA R4,LABEL3 ; LEA instruction ST R5,LABEL4 ; ST instruction STI R6,LABEL5 ; STI instruction ; now try in pseudo-ops NEXT GETC OUT IN PUTS ;; GETS GETC .BLKW 3 LABEL1 .FILL x1111 LABEL2 .FILL x1111 LABEL3 .FILL x1111 LABEL4 .FILL x1111 LABEL5 .FILL x1111 .END
.586 .MODEL FLAT, C .STACK .DATA .CODE RECDATA32 STRUCT OPERAND DD(2) dup(?) RESULT DD(2) dup(?) FLAG DD(2) dup(?) RECDATA32 ENDS assume esi:PTR RECDATA32 __ENTER MACRO push ebp mov ebp,esp pusha pushf mov esi,DWORD PTR[ebp+8] mov eax,[esi].OPERAND[0] mov ecx,[esi].OPERAND[4] mov edx,0 mov ebx,0 push [esi].FLAG[0] popf ENDM __LEAVE MACRO mov [esi].RESULT[0],eax mov [esi].RESULT[4],edx pushf pop [esi].FLAG[4] popf popa mov esp,ebp pop ebp retn ENDM ;################################ ; ADD ;################################ op_add PROC __ENTER add eax,ecx __LEAVE op_add ENDP ;################################ ; SUB ;################################ op_sub PROC __ENTER sub eax,ecx __LEAVE op_sub ENDP ;################################ ; ADC ;################################ op_adc PROC __ENTER adc eax,ecx __LEAVE op_adc ENDP ;################################ ; SBB ;################################ op_sbb PROC __ENTER sbb eax,ecx __LEAVE op_sbb ENDP ;################################ ; AND ;################################ op_and PROC __ENTER and eax,ecx __LEAVE op_and ENDP ;################################ ; XOR ;################################ op_xor PROC __ENTER xor eax,ecx __LEAVE op_xor ENDP ;################################ ; OR ;################################ op_or PROC __ENTER or eax,ecx __LEAVE op_or ENDP ;################################ ; INC ;################################ op_inc PROC __ENTER inc eax __LEAVE op_inc ENDP ;################################ ; DEC ;################################ op_dec PROC __ENTER dec eax __LEAVE op_dec ENDP ;################################ ; TEST ;################################ op_test PROC __ENTER test eax,ecx __LEAVE op_test ENDP ;################################ ; CMP ;################################ op_cmp PROC __ENTER cmp eax,ecx __LEAVE op_cmp ENDP ;################################ ; MUL ;################################ op_mul PROC __ENTER mul ecx __LEAVE op_mul ENDP ;################################ ; IMUL ;################################ op_imul PROC __ENTER imul ecx __LEAVE op_imul ENDP ;################################ ; DIV ;################################ op_div PROC __ENTER div ecx __LEAVE op_div ENDP ;################################ ; IDIV ;################################ op_idiv PROC __ENTER idiv ecx __LEAVE op_idiv ENDP ;################################ ; NOT ;################################ op_not PROC __ENTER not eax __LEAVE op_not ENDP ;################################ ; NEG ;################################ op_neg PROC __ENTER neg eax __LEAVE op_neg ENDP ;################################ ; SHR ;################################ op_shr PROC __ENTER shr eax,cl __LEAVE op_shr ENDP ;################################ ; SHL ;################################ op_shl PROC __ENTER shl eax,cl __LEAVE op_shl ENDP ;################################ ; SAR ;################################ op_sar PROC __ENTER sar eax,cl __LEAVE op_sar ENDP ;################################ ; ROL ;################################ op_rol PROC __ENTER rol eax,cl __LEAVE op_rol ENDP ;################################ ; ROR ;################################ op_ror PROC __ENTER ror eax,cl __LEAVE op_ror ENDP ;################################ ; RCL ;################################ op_rcl PROC __ENTER rcl eax,cl __LEAVE op_rcl ENDP ;################################ ; RCR ;################################ op_rcr PROC __ENTER rcr eax,cl __LEAVE op_rcr ENDP END
;------------------------------------------------------------------------------- ; tmif.nasm - privileged kernel entries, used only by a task manager. ;------------------------------------------------------------------------------- module kernel.tmif %include "sys.ah" %include "errors.ah" %include "cpu/stkframe.ah" publicproc K_Ring0 externproc K_HashAdd, K_HashLookup, K_HashRelease externproc K_PoolInit, K_PoolAllocChunk, K_PoolFreeChunk externproc K_PoolChunkNumber, K_PoolChunkAddr externproc PG_Alloc, PG_Dealloc externproc K_CopyFromAct, K_CopyToAct externproc K_RegisterLDT, K_UnregisterLDT externproc K_CloneConnections %define R0_NUMFUNC 15 section .data Ring0functions DD K_HashAdd ; 0 DD K_HashLookup ; 1 DD K_HashRelease ; 2 DD K_PoolInit ; 3 DD K_PoolAllocChunk ; 4 DD K_PoolFreeChunk ; 5 DD K_PoolChunkNumber ; 6 DD K_PoolChunkAddr ; 7 DD PG_Alloc ; 8 DD PG_Dealloc ; 9 DD K_CopyFromAct ; 0Ah DD K_CopyToAct ; 0Bh DD K_RegisterLDT ; 0Ch DD K_UnregisterLDT ; 0Dh DD K_CloneConnections ; 0Eh section .text ; K_Ring0 - ring0 private interface (for taskman only). ; Register frame is on the top of stack. ; Function number is on the user's stack. proc K_Ring0 mov eax,[esp+4+tStackFrame.ESP] mov eax,[eax+USERAREASTART] ; Function number to EAX cmp eax,R0_NUMFUNC cmc jc .Err mov eax,[Ring0functions+eax*4] xchg eax,[esp+4+tStackFrame.EAX] call dword [esp+4+tStackFrame.EAX] mov [esp+4+tStackFrame.EAX],eax mov [esp+4+tStackFrame.EBX],ebx mov [esp+4+tStackFrame.ECX],ecx mov [esp+4+tStackFrame.EDX],edx mov [esp+4+tStackFrame.ESI],esi mov [esp+4+tStackFrame.EDI],edi .Exit: sahf mov [esp+4+tStackFrame.EFLAGS],ah ret .Err: mov word [esp+4+tStackFrame.EAX],-ENOSYS jmp .Exit endp ;---------------------------------------------------------------
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r15 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x463c, %rax nop dec %r15 movups (%rax), %xmm0 vpextrq $0, %xmm0, %rbp nop xor $21398, %r11 lea addresses_A_ht+0x1a33c, %rsi lea addresses_normal_ht+0x15f1c, %rdi and $6555, %r15 mov $35, %rcx rep movsq nop nop nop add %rax, %rax lea addresses_normal_ht+0x17bbc, %r15 nop cmp %rcx, %rcx and $0xffffffffffffffc0, %r15 movaps (%r15), %xmm0 vpextrq $1, %xmm0, %rsi nop nop nop sub $7655, %rcx lea addresses_D_ht+0x1823c, %rsi nop nop nop nop add $35995, %rax movl $0x61626364, (%rsi) nop nop nop nop nop xor $41039, %r15 lea addresses_WT_ht+0x53d4, %rbp nop add $16976, %rax mov $0x6162636465666768, %r15 movq %r15, %xmm2 vmovups %ymm2, (%rbp) nop nop nop and %rdi, %rdi lea addresses_WC_ht+0x1663c, %rsi lea addresses_D_ht+0x7c7c, %rdi nop nop add %r14, %r14 mov $100, %rcx rep movsw nop nop and %rcx, %rcx lea addresses_D_ht+0x1363c, %r15 nop nop nop nop add %rax, %rax mov (%r15), %r11 nop nop nop cmp $4900, %r11 lea addresses_UC_ht+0x5250, %rbp nop nop nop nop xor $29327, %r15 mov $0x6162636465666768, %rdi movq %rdi, %xmm0 vmovups %ymm0, (%rbp) nop nop nop nop add $18238, %rdi lea addresses_D_ht+0x9a3c, %rsi lea addresses_normal_ht+0x16144, %rdi nop cmp %rbp, %rbp mov $7, %rcx rep movsq nop cmp $49924, %rdi lea addresses_WT_ht+0x1ae3c, %rdi nop nop sub %rax, %rax mov $0x6162636465666768, %rcx movq %rcx, %xmm0 vmovups %ymm0, (%rdi) nop nop and %rbp, %rbp lea addresses_A_ht+0x19a5c, %rsi lea addresses_WC_ht+0x1843c, %rdi nop nop nop nop dec %rbp mov $77, %rcx rep movsl nop nop nop nop xor %rdi, %rdi lea addresses_WC_ht+0x1e44, %rsi lea addresses_UC_ht+0x1005c, %rdi nop xor $33627, %rax mov $73, %rcx rep movsl nop nop nop nop nop cmp %r14, %r14 lea addresses_WC_ht+0x1b1ec, %rsi nop add %rax, %rax mov (%rsi), %r14d nop nop and $60351, %rax pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r15 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %rax push %rbx push %rsi // Store lea addresses_UC+0x16f54, %rax clflush (%rax) nop nop and %rbx, %rbx movw $0x5152, (%rax) sub %rax, %rax // Faulty Load lea addresses_US+0x1163c, %rbx nop nop nop and $24441, %r10 movups (%rbx), %xmm0 vpextrq $0, %xmm0, %r11 lea oracles, %r10 and $0xff, %r11 shlq $12, %r11 mov (%r10,%r11,1), %r11 pop %rsi pop %rbx pop %rax pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 16, 'AVXalign': True}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_UC', 'size': 2, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}} {'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': True}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}} {'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 2, 'NT': False, 'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False}} {'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}} {'src': {'same': True, 'congruent': 2, 'NT': False, 'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'d3': 357, 'e0': 2, '46': 7, '00': 78, '48': 8} 00 d3 d3 d3 d3 d3 d3 d3 d3 00 d3 d3 d3 d3 d3 00 00 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 00 d3 d3 d3 d3 d3 d3 d3 d3 d3 00 00 00 d3 d3 00 00 00 00 d3 d3 d3 d3 d3 00 d3 d3 48 00 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 48 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 00 d3 d3 d3 d3 d3 46 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 00 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 00 d3 d3 d3 46 d3 d3 d3 d3 00 00 00 d3 00 00 00 d3 d3 d3 d3 00 00 d3 d3 00 00 e0 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 00 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 00 d3 d3 d3 d3 d3 d3 d3 d3 d3 00 00 e0 d3 00 d3 d3 d3 d3 d3 d3 d3 d3 00 d3 00 46 00 00 d3 d3 00 00 00 00 d3 d3 d3 d3 00 d3 46 d3 46 00 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 00 d3 d3 00 00 d3 d3 d3 d3 d3 d3 d3 d3 00 d3 d3 d3 46 48 00 d3 d3 00 00 00 00 d3 d3 d3 00 00 d3 00 d3 00 00 00 d3 00 00 00 d3 d3 00 d3 d3 d3 00 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 00 d3 d3 d3 d3 d3 d3 d3 d3 00 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 00 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 48 d3 d3 d3 d3 d3 00 d3 d3 48 00 00 00 48 00 00 d3 00 00 00 00 d3 00 d3 48 00 48 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 46 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 00 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 d3 */
;EXTRN _NLG_Notify:NEAR include ksamd64.inc EXTRN _GetImageBase:NEAR ;;++ ;; ;;extern "C" void* _CallSettingFrame( ;; void* handler, ;; EHRegistrationNode *pEstablisher, ;; ULONG NLG_CODE) ;; ;;-- _GP$=16 _handler$=32 _pEstablisher$=40 _NLG_CODE$=48 NESTED_ENTRY _CallSettingFrame, _TEXT$00 sub rsp, 24 .allocstack 24 .endprolog mov QWORD PTR _handler$[rsp], rcx mov QWORD PTR _pEstablisher$[rsp], rdx mov DWORD PTR _NLG_CODE$[rsp], r8d mov rdx, QWORD PTR _pEstablisher$[rsp] mov rdx, QWORD PTR [rdx] ; *pEstablisher mov rax, QWORD PTR _handler$[rsp] call rax ; Call handler mov QWORD PTR _GP$[rsp], rax add rsp, 24 ret 0 NESTED_END _CallSettingFrame, _TEXT$00 ;;++ ;; ;;extern "C" ;;VOID ;;_GetNextInstrOffset ( ;; PVOID* ppReturnPoint ;; ); ;; ;;Routine Description: ;; ;; This function scans the scope tables associated with the specified ;; procedure and calls exception and termination handlers as necessary. ;; ;;Arguments: ;; ;; ppReturnPoint (r32) - store b0 in *pReturnPoint ;; ;;Return Value: ;; ;; None ;; ;;-- PUBLIC _GetNextInstrOffset _TEXT SEGMENT _GetNextInstrOffset PROC NEAR mov rax, QWORD PTR[rsp] mov QWORD PTR [rcx], rax ret 0 _GetNextInstrOffset ENDP _TEXT ENDS END
; /***************************************************************************** ; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers * ; ***************************************************************************** ; * Copyright 2021-2022 Marco Spedaletti (asimov@mclink.it) ; * ; * 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. ; *---------------------------------------------------------------------------- ; * Concesso in licenza secondo i termini della Licenza Apache, versione 2.0 ; * (la "Licenza"); è proibito usare questo file se non in conformità alla ; * Licenza. Una copia della Licenza è disponibile all'indirizzo: ; * ; * http://www.apache.org/licenses/LICENSE-2.0 ; * ; * Se non richiesto dalla legislazione vigente o concordato per iscritto, ; * il software distribuito nei termini della Licenza è distribuito ; * "COSì COM'è", SENZA GARANZIE O CONDIZIONI DI ALCUN TIPO, esplicite o ; * implicite. Consultare la Licenza per il testo specifico che regola le ; * autorizzazioni e le limitazioni previste dalla medesima. ; ****************************************************************************/ ;* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ;* * ;* INTERNAL VARIABLES FOR C64 TARGET * ;* * ;* by Marco Spedaletti * ;* * ;* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * TEXTADDRESS: .BYTE 0, $84 BITMAPADDRESS: .WORD $A000 COLORMAPADDRESS: .BYTE 0, $D8 MOBADDRESS: .WORD $8C00 CURRENTMODE: .BYTE 0 EVERYSTATUS: .BYTE 0 TABCOUNT: .BYTE 4 XCURS: .BYTE 0 YCURS: .BYTE 0 EMPTYTILE: .BYTE 32 TMPPTR = $22 ; $23 TMPPTR2 = $24 ; $25 MATHPTR0 = $F7 MATHPTR1 = $F8 MATHPTR2 = $F9 MATHPTR3 = $FA MATHPTR4 = $FB MATHPTR5 = $FC MATHPTR6 = $FD MATHPTR7 = $FE MATHPTR8 = $FF DSSTATUS = $32 DSSIZE = $21 DSADDRLO = $22 DSADDRHI = $23 DSBANKLO = $30 DSBANKHI = $31 COPYOFTEXTADDRESS = $25 COPYOFBITMAPADDRESS = $25 COPYOFCOLORMAPADDRESS = $2F COPYOFTEXTADDRESS2 = $2D COPYOFCOLORMAPADDRESS2 = $2B DIRECTION = $32 PATTERN = $32 CHARACTERS = $25 CLINEX = $32 CLINEY = $33 BITSTOCONVERT = $25 XCURSYS = $D3 YCURSYS = $D6
; A163325: Pick digits at the even distance from the least significant end of the ternary expansion of n, then convert back to decimal. ; Submitted by Jamie Morken(s4) ; 0,1,2,0,1,2,0,1,2,3,4,5,3,4,5,3,4,5,6,7,8,6,7,8,6,7,8,0,1,2,0,1,2,0,1,2,3,4,5,3,4,5,3,4,5,6,7,8,6,7,8,6,7,8,0,1,2,0,1,2,0,1,2,3,4,5,3,4,5,3,4,5,6,7,8,6,7,8,6,7,8,9,10,11,9,10,11,9,10,11,12,13,14,12,13,14,12,13,14,15 mov $2,4 lpb $0 mul $2,3 mov $3,$0 div $0,3 add $3,$0 mul $0,2 div $0,6 mod $3,4 mul $3,$2 add $1,$3 lpe mov $0,$1 div $0,12
_mkdir: file format elf32-i386 Disassembly of section .text: 00000000 <main>: #include "stat.h" #include "user.h" int main(int argc, char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push %ebp b: 89 e5 mov %esp,%ebp d: 57 push %edi e: 56 push %esi f: 53 push %ebx 10: 51 push %ecx 11: bf 01 00 00 00 mov $0x1,%edi 16: 83 ec 08 sub $0x8,%esp 19: 8b 31 mov (%ecx),%esi 1b: 8b 59 04 mov 0x4(%ecx),%ebx 1e: 83 c3 04 add $0x4,%ebx int i; if(argc < 2){ 21: 83 fe 01 cmp $0x1,%esi 24: 7e 3e jle 64 <main+0x64> 26: 8d 76 00 lea 0x0(%esi),%esi 29: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi printf(2, "Usage: mkdir files...\n"); exit(); } for(i = 1; i < argc; i++){ if(mkdir(argv[i]) < 0){ 30: 83 ec 0c sub $0xc,%esp 33: ff 33 pushl (%ebx) 35: e8 00 03 00 00 call 33a <mkdir> 3a: 83 c4 10 add $0x10,%esp 3d: 85 c0 test %eax,%eax 3f: 78 0f js 50 <main+0x50> for(i = 1; i < argc; i++){ 41: 83 c7 01 add $0x1,%edi 44: 83 c3 04 add $0x4,%ebx 47: 39 fe cmp %edi,%esi 49: 75 e5 jne 30 <main+0x30> printf(2, "mkdir: %s failed to create\n", argv[i]); break; } } exit(); 4b: e8 82 02 00 00 call 2d2 <exit> printf(2, "mkdir: %s failed to create\n", argv[i]); 50: 50 push %eax 51: ff 33 pushl (%ebx) 53: 68 af 07 00 00 push $0x7af 58: 6a 02 push $0x2 5a: e8 e1 03 00 00 call 440 <printf> break; 5f: 83 c4 10 add $0x10,%esp 62: eb e7 jmp 4b <main+0x4b> printf(2, "Usage: mkdir files...\n"); 64: 52 push %edx 65: 52 push %edx 66: 68 98 07 00 00 push $0x798 6b: 6a 02 push $0x2 6d: e8 ce 03 00 00 call 440 <printf> exit(); 72: e8 5b 02 00 00 call 2d2 <exit> 77: 66 90 xchg %ax,%ax 79: 66 90 xchg %ax,%ax 7b: 66 90 xchg %ax,%ax 7d: 66 90 xchg %ax,%ax 7f: 90 nop 00000080 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, const char *t) { 80: 55 push %ebp 81: 89 e5 mov %esp,%ebp 83: 53 push %ebx 84: 8b 45 08 mov 0x8(%ebp),%eax 87: 8b 4d 0c mov 0xc(%ebp),%ecx char *os; os = s; while((*s++ = *t++) != 0) 8a: 89 c2 mov %eax,%edx 8c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 90: 83 c1 01 add $0x1,%ecx 93: 0f b6 59 ff movzbl -0x1(%ecx),%ebx 97: 83 c2 01 add $0x1,%edx 9a: 84 db test %bl,%bl 9c: 88 5a ff mov %bl,-0x1(%edx) 9f: 75 ef jne 90 <strcpy+0x10> ; return os; } a1: 5b pop %ebx a2: 5d pop %ebp a3: c3 ret a4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi aa: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 000000b0 <strcmp>: int strcmp(const char *p, const char *q) { b0: 55 push %ebp b1: 89 e5 mov %esp,%ebp b3: 53 push %ebx b4: 8b 55 08 mov 0x8(%ebp),%edx b7: 8b 4d 0c mov 0xc(%ebp),%ecx while(*p && *p == *q) ba: 0f b6 02 movzbl (%edx),%eax bd: 0f b6 19 movzbl (%ecx),%ebx c0: 84 c0 test %al,%al c2: 75 1c jne e0 <strcmp+0x30> c4: eb 2a jmp f0 <strcmp+0x40> c6: 8d 76 00 lea 0x0(%esi),%esi c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi p++, q++; d0: 83 c2 01 add $0x1,%edx while(*p && *p == *q) d3: 0f b6 02 movzbl (%edx),%eax p++, q++; d6: 83 c1 01 add $0x1,%ecx d9: 0f b6 19 movzbl (%ecx),%ebx while(*p && *p == *q) dc: 84 c0 test %al,%al de: 74 10 je f0 <strcmp+0x40> e0: 38 d8 cmp %bl,%al e2: 74 ec je d0 <strcmp+0x20> return (uchar)*p - (uchar)*q; e4: 29 d8 sub %ebx,%eax } e6: 5b pop %ebx e7: 5d pop %ebp e8: c3 ret e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi f0: 31 c0 xor %eax,%eax return (uchar)*p - (uchar)*q; f2: 29 d8 sub %ebx,%eax } f4: 5b pop %ebx f5: 5d pop %ebp f6: c3 ret f7: 89 f6 mov %esi,%esi f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000100 <strlen>: uint strlen(const char *s) { 100: 55 push %ebp 101: 89 e5 mov %esp,%ebp 103: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) 106: 80 39 00 cmpb $0x0,(%ecx) 109: 74 15 je 120 <strlen+0x20> 10b: 31 d2 xor %edx,%edx 10d: 8d 76 00 lea 0x0(%esi),%esi 110: 83 c2 01 add $0x1,%edx 113: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) 117: 89 d0 mov %edx,%eax 119: 75 f5 jne 110 <strlen+0x10> ; return n; } 11b: 5d pop %ebp 11c: c3 ret 11d: 8d 76 00 lea 0x0(%esi),%esi for(n = 0; s[n]; n++) 120: 31 c0 xor %eax,%eax } 122: 5d pop %ebp 123: c3 ret 124: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 12a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 00000130 <memset>: void* memset(void *dst, int c, uint n) { 130: 55 push %ebp 131: 89 e5 mov %esp,%ebp 133: 57 push %edi 134: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 137: 8b 4d 10 mov 0x10(%ebp),%ecx 13a: 8b 45 0c mov 0xc(%ebp),%eax 13d: 89 d7 mov %edx,%edi 13f: fc cld 140: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 142: 89 d0 mov %edx,%eax 144: 5f pop %edi 145: 5d pop %ebp 146: c3 ret 147: 89 f6 mov %esi,%esi 149: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000150 <strchr>: char* strchr(const char *s, char c) { 150: 55 push %ebp 151: 89 e5 mov %esp,%ebp 153: 53 push %ebx 154: 8b 45 08 mov 0x8(%ebp),%eax 157: 8b 5d 0c mov 0xc(%ebp),%ebx for(; *s; s++) 15a: 0f b6 10 movzbl (%eax),%edx 15d: 84 d2 test %dl,%dl 15f: 74 1d je 17e <strchr+0x2e> if(*s == c) 161: 38 d3 cmp %dl,%bl 163: 89 d9 mov %ebx,%ecx 165: 75 0d jne 174 <strchr+0x24> 167: eb 17 jmp 180 <strchr+0x30> 169: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 170: 38 ca cmp %cl,%dl 172: 74 0c je 180 <strchr+0x30> for(; *s; s++) 174: 83 c0 01 add $0x1,%eax 177: 0f b6 10 movzbl (%eax),%edx 17a: 84 d2 test %dl,%dl 17c: 75 f2 jne 170 <strchr+0x20> return (char*)s; return 0; 17e: 31 c0 xor %eax,%eax } 180: 5b pop %ebx 181: 5d pop %ebp 182: c3 ret 183: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 189: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000190 <gets>: char* gets(char *buf, int max) { 190: 55 push %ebp 191: 89 e5 mov %esp,%ebp 193: 57 push %edi 194: 56 push %esi 195: 53 push %ebx int i, cc; char c; for(i=0; i+1 < max; ){ 196: 31 f6 xor %esi,%esi 198: 89 f3 mov %esi,%ebx { 19a: 83 ec 1c sub $0x1c,%esp 19d: 8b 7d 08 mov 0x8(%ebp),%edi for(i=0; i+1 < max; ){ 1a0: eb 2f jmp 1d1 <gets+0x41> 1a2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi cc = read(0, &c, 1); 1a8: 8d 45 e7 lea -0x19(%ebp),%eax 1ab: 83 ec 04 sub $0x4,%esp 1ae: 6a 01 push $0x1 1b0: 50 push %eax 1b1: 6a 00 push $0x0 1b3: e8 32 01 00 00 call 2ea <read> if(cc < 1) 1b8: 83 c4 10 add $0x10,%esp 1bb: 85 c0 test %eax,%eax 1bd: 7e 1c jle 1db <gets+0x4b> break; buf[i++] = c; 1bf: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 1c3: 83 c7 01 add $0x1,%edi 1c6: 88 47 ff mov %al,-0x1(%edi) if(c == '\n' || c == '\r') 1c9: 3c 0a cmp $0xa,%al 1cb: 74 23 je 1f0 <gets+0x60> 1cd: 3c 0d cmp $0xd,%al 1cf: 74 1f je 1f0 <gets+0x60> for(i=0; i+1 < max; ){ 1d1: 83 c3 01 add $0x1,%ebx 1d4: 3b 5d 0c cmp 0xc(%ebp),%ebx 1d7: 89 fe mov %edi,%esi 1d9: 7c cd jl 1a8 <gets+0x18> 1db: 89 f3 mov %esi,%ebx break; } buf[i] = '\0'; return buf; } 1dd: 8b 45 08 mov 0x8(%ebp),%eax buf[i] = '\0'; 1e0: c6 03 00 movb $0x0,(%ebx) } 1e3: 8d 65 f4 lea -0xc(%ebp),%esp 1e6: 5b pop %ebx 1e7: 5e pop %esi 1e8: 5f pop %edi 1e9: 5d pop %ebp 1ea: c3 ret 1eb: 90 nop 1ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 1f0: 8b 75 08 mov 0x8(%ebp),%esi 1f3: 8b 45 08 mov 0x8(%ebp),%eax 1f6: 01 de add %ebx,%esi 1f8: 89 f3 mov %esi,%ebx buf[i] = '\0'; 1fa: c6 03 00 movb $0x0,(%ebx) } 1fd: 8d 65 f4 lea -0xc(%ebp),%esp 200: 5b pop %ebx 201: 5e pop %esi 202: 5f pop %edi 203: 5d pop %ebp 204: c3 ret 205: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 209: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000210 <stat>: int stat(const char *n, struct stat *st) { 210: 55 push %ebp 211: 89 e5 mov %esp,%ebp 213: 56 push %esi 214: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 215: 83 ec 08 sub $0x8,%esp 218: 6a 00 push $0x0 21a: ff 75 08 pushl 0x8(%ebp) 21d: e8 f0 00 00 00 call 312 <open> if(fd < 0) 222: 83 c4 10 add $0x10,%esp 225: 85 c0 test %eax,%eax 227: 78 27 js 250 <stat+0x40> return -1; r = fstat(fd, st); 229: 83 ec 08 sub $0x8,%esp 22c: ff 75 0c pushl 0xc(%ebp) 22f: 89 c3 mov %eax,%ebx 231: 50 push %eax 232: e8 f3 00 00 00 call 32a <fstat> close(fd); 237: 89 1c 24 mov %ebx,(%esp) r = fstat(fd, st); 23a: 89 c6 mov %eax,%esi close(fd); 23c: e8 b9 00 00 00 call 2fa <close> return r; 241: 83 c4 10 add $0x10,%esp } 244: 8d 65 f8 lea -0x8(%ebp),%esp 247: 89 f0 mov %esi,%eax 249: 5b pop %ebx 24a: 5e pop %esi 24b: 5d pop %ebp 24c: c3 ret 24d: 8d 76 00 lea 0x0(%esi),%esi return -1; 250: be ff ff ff ff mov $0xffffffff,%esi 255: eb ed jmp 244 <stat+0x34> 257: 89 f6 mov %esi,%esi 259: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000260 <atoi>: int atoi(const char *s) { 260: 55 push %ebp 261: 89 e5 mov %esp,%ebp 263: 53 push %ebx 264: 8b 4d 08 mov 0x8(%ebp),%ecx int n; n = 0; while('0' <= *s && *s <= '9') 267: 0f be 11 movsbl (%ecx),%edx 26a: 8d 42 d0 lea -0x30(%edx),%eax 26d: 3c 09 cmp $0x9,%al n = 0; 26f: b8 00 00 00 00 mov $0x0,%eax while('0' <= *s && *s <= '9') 274: 77 1f ja 295 <atoi+0x35> 276: 8d 76 00 lea 0x0(%esi),%esi 279: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi n = n*10 + *s++ - '0'; 280: 8d 04 80 lea (%eax,%eax,4),%eax 283: 83 c1 01 add $0x1,%ecx 286: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax while('0' <= *s && *s <= '9') 28a: 0f be 11 movsbl (%ecx),%edx 28d: 8d 5a d0 lea -0x30(%edx),%ebx 290: 80 fb 09 cmp $0x9,%bl 293: 76 eb jbe 280 <atoi+0x20> return n; } 295: 5b pop %ebx 296: 5d pop %ebp 297: c3 ret 298: 90 nop 299: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 000002a0 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 2a0: 55 push %ebp 2a1: 89 e5 mov %esp,%ebp 2a3: 56 push %esi 2a4: 53 push %ebx 2a5: 8b 5d 10 mov 0x10(%ebp),%ebx 2a8: 8b 45 08 mov 0x8(%ebp),%eax 2ab: 8b 75 0c mov 0xc(%ebp),%esi char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 2ae: 85 db test %ebx,%ebx 2b0: 7e 14 jle 2c6 <memmove+0x26> 2b2: 31 d2 xor %edx,%edx 2b4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi *dst++ = *src++; 2b8: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx 2bc: 88 0c 10 mov %cl,(%eax,%edx,1) 2bf: 83 c2 01 add $0x1,%edx while(n-- > 0) 2c2: 39 d3 cmp %edx,%ebx 2c4: 75 f2 jne 2b8 <memmove+0x18> return vdst; } 2c6: 5b pop %ebx 2c7: 5e pop %esi 2c8: 5d pop %ebp 2c9: c3 ret 000002ca <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 2ca: b8 01 00 00 00 mov $0x1,%eax 2cf: cd 40 int $0x40 2d1: c3 ret 000002d2 <exit>: SYSCALL(exit) 2d2: b8 02 00 00 00 mov $0x2,%eax 2d7: cd 40 int $0x40 2d9: c3 ret 000002da <wait>: SYSCALL(wait) 2da: b8 03 00 00 00 mov $0x3,%eax 2df: cd 40 int $0x40 2e1: c3 ret 000002e2 <pipe>: SYSCALL(pipe) 2e2: b8 04 00 00 00 mov $0x4,%eax 2e7: cd 40 int $0x40 2e9: c3 ret 000002ea <read>: SYSCALL(read) 2ea: b8 05 00 00 00 mov $0x5,%eax 2ef: cd 40 int $0x40 2f1: c3 ret 000002f2 <write>: SYSCALL(write) 2f2: b8 10 00 00 00 mov $0x10,%eax 2f7: cd 40 int $0x40 2f9: c3 ret 000002fa <close>: SYSCALL(close) 2fa: b8 15 00 00 00 mov $0x15,%eax 2ff: cd 40 int $0x40 301: c3 ret 00000302 <kill>: SYSCALL(kill) 302: b8 06 00 00 00 mov $0x6,%eax 307: cd 40 int $0x40 309: c3 ret 0000030a <exec>: SYSCALL(exec) 30a: b8 07 00 00 00 mov $0x7,%eax 30f: cd 40 int $0x40 311: c3 ret 00000312 <open>: SYSCALL(open) 312: b8 0f 00 00 00 mov $0xf,%eax 317: cd 40 int $0x40 319: c3 ret 0000031a <mknod>: SYSCALL(mknod) 31a: b8 11 00 00 00 mov $0x11,%eax 31f: cd 40 int $0x40 321: c3 ret 00000322 <unlink>: SYSCALL(unlink) 322: b8 12 00 00 00 mov $0x12,%eax 327: cd 40 int $0x40 329: c3 ret 0000032a <fstat>: SYSCALL(fstat) 32a: b8 08 00 00 00 mov $0x8,%eax 32f: cd 40 int $0x40 331: c3 ret 00000332 <link>: SYSCALL(link) 332: b8 13 00 00 00 mov $0x13,%eax 337: cd 40 int $0x40 339: c3 ret 0000033a <mkdir>: SYSCALL(mkdir) 33a: b8 14 00 00 00 mov $0x14,%eax 33f: cd 40 int $0x40 341: c3 ret 00000342 <chdir>: SYSCALL(chdir) 342: b8 09 00 00 00 mov $0x9,%eax 347: cd 40 int $0x40 349: c3 ret 0000034a <dup>: SYSCALL(dup) 34a: b8 0a 00 00 00 mov $0xa,%eax 34f: cd 40 int $0x40 351: c3 ret 00000352 <getpid>: SYSCALL(getpid) 352: b8 0b 00 00 00 mov $0xb,%eax 357: cd 40 int $0x40 359: c3 ret 0000035a <sbrk>: SYSCALL(sbrk) 35a: b8 0c 00 00 00 mov $0xc,%eax 35f: cd 40 int $0x40 361: c3 ret 00000362 <sleep>: SYSCALL(sleep) 362: b8 0d 00 00 00 mov $0xd,%eax 367: cd 40 int $0x40 369: c3 ret 0000036a <uptime>: SYSCALL(uptime) 36a: b8 0e 00 00 00 mov $0xe,%eax 36f: cd 40 int $0x40 371: c3 ret 00000372 <waitx>: SYSCALL(waitx) 372: b8 16 00 00 00 mov $0x16,%eax 377: cd 40 int $0x40 379: c3 ret 0000037a <getpinfo>: SYSCALL(getpinfo) 37a: b8 17 00 00 00 mov $0x17,%eax 37f: cd 40 int $0x40 381: c3 ret 00000382 <ps>: SYSCALL(ps) 382: b8 18 00 00 00 mov $0x18,%eax 387: cd 40 int $0x40 389: c3 ret 0000038a <set_priority>: SYSCALL(set_priority) 38a: b8 19 00 00 00 mov $0x19,%eax 38f: cd 40 int $0x40 391: c3 ret 392: 66 90 xchg %ax,%ax 394: 66 90 xchg %ax,%ax 396: 66 90 xchg %ax,%ax 398: 66 90 xchg %ax,%ax 39a: 66 90 xchg %ax,%ax 39c: 66 90 xchg %ax,%ax 39e: 66 90 xchg %ax,%ax 000003a0 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 3a0: 55 push %ebp 3a1: 89 e5 mov %esp,%ebp 3a3: 57 push %edi 3a4: 56 push %esi 3a5: 53 push %ebx 3a6: 83 ec 3c sub $0x3c,%esp char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 3a9: 85 d2 test %edx,%edx { 3ab: 89 45 c0 mov %eax,-0x40(%ebp) neg = 1; x = -xx; 3ae: 89 d0 mov %edx,%eax if(sgn && xx < 0){ 3b0: 79 76 jns 428 <printint+0x88> 3b2: f6 45 08 01 testb $0x1,0x8(%ebp) 3b6: 74 70 je 428 <printint+0x88> x = -xx; 3b8: f7 d8 neg %eax neg = 1; 3ba: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) } else { x = xx; } i = 0; 3c1: 31 f6 xor %esi,%esi 3c3: 8d 5d d7 lea -0x29(%ebp),%ebx 3c6: eb 0a jmp 3d2 <printint+0x32> 3c8: 90 nop 3c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi do{ buf[i++] = digits[x % base]; 3d0: 89 fe mov %edi,%esi 3d2: 31 d2 xor %edx,%edx 3d4: 8d 7e 01 lea 0x1(%esi),%edi 3d7: f7 f1 div %ecx 3d9: 0f b6 92 d4 07 00 00 movzbl 0x7d4(%edx),%edx }while((x /= base) != 0); 3e0: 85 c0 test %eax,%eax buf[i++] = digits[x % base]; 3e2: 88 14 3b mov %dl,(%ebx,%edi,1) }while((x /= base) != 0); 3e5: 75 e9 jne 3d0 <printint+0x30> if(neg) 3e7: 8b 45 c4 mov -0x3c(%ebp),%eax 3ea: 85 c0 test %eax,%eax 3ec: 74 08 je 3f6 <printint+0x56> buf[i++] = '-'; 3ee: c6 44 3d d8 2d movb $0x2d,-0x28(%ebp,%edi,1) 3f3: 8d 7e 02 lea 0x2(%esi),%edi 3f6: 8d 74 3d d7 lea -0x29(%ebp,%edi,1),%esi 3fa: 8b 7d c0 mov -0x40(%ebp),%edi 3fd: 8d 76 00 lea 0x0(%esi),%esi 400: 0f b6 06 movzbl (%esi),%eax write(fd, &c, 1); 403: 83 ec 04 sub $0x4,%esp 406: 83 ee 01 sub $0x1,%esi 409: 6a 01 push $0x1 40b: 53 push %ebx 40c: 57 push %edi 40d: 88 45 d7 mov %al,-0x29(%ebp) 410: e8 dd fe ff ff call 2f2 <write> while(--i >= 0) 415: 83 c4 10 add $0x10,%esp 418: 39 de cmp %ebx,%esi 41a: 75 e4 jne 400 <printint+0x60> putc(fd, buf[i]); } 41c: 8d 65 f4 lea -0xc(%ebp),%esp 41f: 5b pop %ebx 420: 5e pop %esi 421: 5f pop %edi 422: 5d pop %ebp 423: c3 ret 424: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; 428: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) 42f: eb 90 jmp 3c1 <printint+0x21> 431: eb 0d jmp 440 <printf> 433: 90 nop 434: 90 nop 435: 90 nop 436: 90 nop 437: 90 nop 438: 90 nop 439: 90 nop 43a: 90 nop 43b: 90 nop 43c: 90 nop 43d: 90 nop 43e: 90 nop 43f: 90 nop 00000440 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 440: 55 push %ebp 441: 89 e5 mov %esp,%ebp 443: 57 push %edi 444: 56 push %esi 445: 53 push %ebx 446: 83 ec 2c sub $0x2c,%esp int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 449: 8b 75 0c mov 0xc(%ebp),%esi 44c: 0f b6 1e movzbl (%esi),%ebx 44f: 84 db test %bl,%bl 451: 0f 84 b3 00 00 00 je 50a <printf+0xca> ap = (uint*)(void*)&fmt + 1; 457: 8d 45 10 lea 0x10(%ebp),%eax 45a: 83 c6 01 add $0x1,%esi state = 0; 45d: 31 ff xor %edi,%edi ap = (uint*)(void*)&fmt + 1; 45f: 89 45 d4 mov %eax,-0x2c(%ebp) 462: eb 2f jmp 493 <printf+0x53> 464: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 468: 83 f8 25 cmp $0x25,%eax 46b: 0f 84 a7 00 00 00 je 518 <printf+0xd8> write(fd, &c, 1); 471: 8d 45 e2 lea -0x1e(%ebp),%eax 474: 83 ec 04 sub $0x4,%esp 477: 88 5d e2 mov %bl,-0x1e(%ebp) 47a: 6a 01 push $0x1 47c: 50 push %eax 47d: ff 75 08 pushl 0x8(%ebp) 480: e8 6d fe ff ff call 2f2 <write> 485: 83 c4 10 add $0x10,%esp 488: 83 c6 01 add $0x1,%esi for(i = 0; fmt[i]; i++){ 48b: 0f b6 5e ff movzbl -0x1(%esi),%ebx 48f: 84 db test %bl,%bl 491: 74 77 je 50a <printf+0xca> if(state == 0){ 493: 85 ff test %edi,%edi c = fmt[i] & 0xff; 495: 0f be cb movsbl %bl,%ecx 498: 0f b6 c3 movzbl %bl,%eax if(state == 0){ 49b: 74 cb je 468 <printf+0x28> state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 49d: 83 ff 25 cmp $0x25,%edi 4a0: 75 e6 jne 488 <printf+0x48> if(c == 'd'){ 4a2: 83 f8 64 cmp $0x64,%eax 4a5: 0f 84 05 01 00 00 je 5b0 <printf+0x170> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 4ab: 81 e1 f7 00 00 00 and $0xf7,%ecx 4b1: 83 f9 70 cmp $0x70,%ecx 4b4: 74 72 je 528 <printf+0xe8> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 4b6: 83 f8 73 cmp $0x73,%eax 4b9: 0f 84 99 00 00 00 je 558 <printf+0x118> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 4bf: 83 f8 63 cmp $0x63,%eax 4c2: 0f 84 08 01 00 00 je 5d0 <printf+0x190> putc(fd, *ap); ap++; } else if(c == '%'){ 4c8: 83 f8 25 cmp $0x25,%eax 4cb: 0f 84 ef 00 00 00 je 5c0 <printf+0x180> write(fd, &c, 1); 4d1: 8d 45 e7 lea -0x19(%ebp),%eax 4d4: 83 ec 04 sub $0x4,%esp 4d7: c6 45 e7 25 movb $0x25,-0x19(%ebp) 4db: 6a 01 push $0x1 4dd: 50 push %eax 4de: ff 75 08 pushl 0x8(%ebp) 4e1: e8 0c fe ff ff call 2f2 <write> 4e6: 83 c4 0c add $0xc,%esp 4e9: 8d 45 e6 lea -0x1a(%ebp),%eax 4ec: 88 5d e6 mov %bl,-0x1a(%ebp) 4ef: 6a 01 push $0x1 4f1: 50 push %eax 4f2: ff 75 08 pushl 0x8(%ebp) 4f5: 83 c6 01 add $0x1,%esi } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 4f8: 31 ff xor %edi,%edi write(fd, &c, 1); 4fa: e8 f3 fd ff ff call 2f2 <write> for(i = 0; fmt[i]; i++){ 4ff: 0f b6 5e ff movzbl -0x1(%esi),%ebx write(fd, &c, 1); 503: 83 c4 10 add $0x10,%esp for(i = 0; fmt[i]; i++){ 506: 84 db test %bl,%bl 508: 75 89 jne 493 <printf+0x53> } } } 50a: 8d 65 f4 lea -0xc(%ebp),%esp 50d: 5b pop %ebx 50e: 5e pop %esi 50f: 5f pop %edi 510: 5d pop %ebp 511: c3 ret 512: 8d b6 00 00 00 00 lea 0x0(%esi),%esi state = '%'; 518: bf 25 00 00 00 mov $0x25,%edi 51d: e9 66 ff ff ff jmp 488 <printf+0x48> 522: 8d b6 00 00 00 00 lea 0x0(%esi),%esi printint(fd, *ap, 16, 0); 528: 83 ec 0c sub $0xc,%esp 52b: b9 10 00 00 00 mov $0x10,%ecx 530: 6a 00 push $0x0 532: 8b 7d d4 mov -0x2c(%ebp),%edi 535: 8b 45 08 mov 0x8(%ebp),%eax 538: 8b 17 mov (%edi),%edx 53a: e8 61 fe ff ff call 3a0 <printint> ap++; 53f: 89 f8 mov %edi,%eax 541: 83 c4 10 add $0x10,%esp state = 0; 544: 31 ff xor %edi,%edi ap++; 546: 83 c0 04 add $0x4,%eax 549: 89 45 d4 mov %eax,-0x2c(%ebp) 54c: e9 37 ff ff ff jmp 488 <printf+0x48> 551: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi s = (char*)*ap; 558: 8b 45 d4 mov -0x2c(%ebp),%eax 55b: 8b 08 mov (%eax),%ecx ap++; 55d: 83 c0 04 add $0x4,%eax 560: 89 45 d4 mov %eax,-0x2c(%ebp) if(s == 0) 563: 85 c9 test %ecx,%ecx 565: 0f 84 8e 00 00 00 je 5f9 <printf+0x1b9> while(*s != 0){ 56b: 0f b6 01 movzbl (%ecx),%eax state = 0; 56e: 31 ff xor %edi,%edi s = (char*)*ap; 570: 89 cb mov %ecx,%ebx while(*s != 0){ 572: 84 c0 test %al,%al 574: 0f 84 0e ff ff ff je 488 <printf+0x48> 57a: 89 75 d0 mov %esi,-0x30(%ebp) 57d: 89 de mov %ebx,%esi 57f: 8b 5d 08 mov 0x8(%ebp),%ebx 582: 8d 7d e3 lea -0x1d(%ebp),%edi 585: 8d 76 00 lea 0x0(%esi),%esi write(fd, &c, 1); 588: 83 ec 04 sub $0x4,%esp s++; 58b: 83 c6 01 add $0x1,%esi 58e: 88 45 e3 mov %al,-0x1d(%ebp) write(fd, &c, 1); 591: 6a 01 push $0x1 593: 57 push %edi 594: 53 push %ebx 595: e8 58 fd ff ff call 2f2 <write> while(*s != 0){ 59a: 0f b6 06 movzbl (%esi),%eax 59d: 83 c4 10 add $0x10,%esp 5a0: 84 c0 test %al,%al 5a2: 75 e4 jne 588 <printf+0x148> 5a4: 8b 75 d0 mov -0x30(%ebp),%esi state = 0; 5a7: 31 ff xor %edi,%edi 5a9: e9 da fe ff ff jmp 488 <printf+0x48> 5ae: 66 90 xchg %ax,%ax printint(fd, *ap, 10, 1); 5b0: 83 ec 0c sub $0xc,%esp 5b3: b9 0a 00 00 00 mov $0xa,%ecx 5b8: 6a 01 push $0x1 5ba: e9 73 ff ff ff jmp 532 <printf+0xf2> 5bf: 90 nop write(fd, &c, 1); 5c0: 83 ec 04 sub $0x4,%esp 5c3: 88 5d e5 mov %bl,-0x1b(%ebp) 5c6: 8d 45 e5 lea -0x1b(%ebp),%eax 5c9: 6a 01 push $0x1 5cb: e9 21 ff ff ff jmp 4f1 <printf+0xb1> putc(fd, *ap); 5d0: 8b 7d d4 mov -0x2c(%ebp),%edi write(fd, &c, 1); 5d3: 83 ec 04 sub $0x4,%esp putc(fd, *ap); 5d6: 8b 07 mov (%edi),%eax write(fd, &c, 1); 5d8: 6a 01 push $0x1 ap++; 5da: 83 c7 04 add $0x4,%edi putc(fd, *ap); 5dd: 88 45 e4 mov %al,-0x1c(%ebp) write(fd, &c, 1); 5e0: 8d 45 e4 lea -0x1c(%ebp),%eax 5e3: 50 push %eax 5e4: ff 75 08 pushl 0x8(%ebp) 5e7: e8 06 fd ff ff call 2f2 <write> ap++; 5ec: 89 7d d4 mov %edi,-0x2c(%ebp) 5ef: 83 c4 10 add $0x10,%esp state = 0; 5f2: 31 ff xor %edi,%edi 5f4: e9 8f fe ff ff jmp 488 <printf+0x48> s = "(null)"; 5f9: bb cb 07 00 00 mov $0x7cb,%ebx while(*s != 0){ 5fe: b8 28 00 00 00 mov $0x28,%eax 603: e9 72 ff ff ff jmp 57a <printf+0x13a> 608: 66 90 xchg %ax,%ax 60a: 66 90 xchg %ax,%ax 60c: 66 90 xchg %ax,%ax 60e: 66 90 xchg %ax,%ax 00000610 <free>: static Header base; static Header *freep; void free(void *ap) { 610: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 611: a1 84 0a 00 00 mov 0xa84,%eax { 616: 89 e5 mov %esp,%ebp 618: 57 push %edi 619: 56 push %esi 61a: 53 push %ebx 61b: 8b 5d 08 mov 0x8(%ebp),%ebx bp = (Header*)ap - 1; 61e: 8d 4b f8 lea -0x8(%ebx),%ecx 621: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 628: 39 c8 cmp %ecx,%eax 62a: 8b 10 mov (%eax),%edx 62c: 73 32 jae 660 <free+0x50> 62e: 39 d1 cmp %edx,%ecx 630: 72 04 jb 636 <free+0x26> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 632: 39 d0 cmp %edx,%eax 634: 72 32 jb 668 <free+0x58> break; if(bp + bp->s.size == p->s.ptr){ 636: 8b 73 fc mov -0x4(%ebx),%esi 639: 8d 3c f1 lea (%ecx,%esi,8),%edi 63c: 39 fa cmp %edi,%edx 63e: 74 30 je 670 <free+0x60> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 640: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 643: 8b 50 04 mov 0x4(%eax),%edx 646: 8d 34 d0 lea (%eax,%edx,8),%esi 649: 39 f1 cmp %esi,%ecx 64b: 74 3a je 687 <free+0x77> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 64d: 89 08 mov %ecx,(%eax) freep = p; 64f: a3 84 0a 00 00 mov %eax,0xa84 } 654: 5b pop %ebx 655: 5e pop %esi 656: 5f pop %edi 657: 5d pop %ebp 658: c3 ret 659: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 660: 39 d0 cmp %edx,%eax 662: 72 04 jb 668 <free+0x58> 664: 39 d1 cmp %edx,%ecx 666: 72 ce jb 636 <free+0x26> { 668: 89 d0 mov %edx,%eax 66a: eb bc jmp 628 <free+0x18> 66c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi bp->s.size += p->s.ptr->s.size; 670: 03 72 04 add 0x4(%edx),%esi 673: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 676: 8b 10 mov (%eax),%edx 678: 8b 12 mov (%edx),%edx 67a: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 67d: 8b 50 04 mov 0x4(%eax),%edx 680: 8d 34 d0 lea (%eax,%edx,8),%esi 683: 39 f1 cmp %esi,%ecx 685: 75 c6 jne 64d <free+0x3d> p->s.size += bp->s.size; 687: 03 53 fc add -0x4(%ebx),%edx freep = p; 68a: a3 84 0a 00 00 mov %eax,0xa84 p->s.size += bp->s.size; 68f: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 692: 8b 53 f8 mov -0x8(%ebx),%edx 695: 89 10 mov %edx,(%eax) } 697: 5b pop %ebx 698: 5e pop %esi 699: 5f pop %edi 69a: 5d pop %ebp 69b: c3 ret 69c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 000006a0 <malloc>: return freep; } void* malloc(uint nbytes) { 6a0: 55 push %ebp 6a1: 89 e5 mov %esp,%ebp 6a3: 57 push %edi 6a4: 56 push %esi 6a5: 53 push %ebx 6a6: 83 ec 0c sub $0xc,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 6a9: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 6ac: 8b 15 84 0a 00 00 mov 0xa84,%edx nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 6b2: 8d 78 07 lea 0x7(%eax),%edi 6b5: c1 ef 03 shr $0x3,%edi 6b8: 83 c7 01 add $0x1,%edi if((prevp = freep) == 0){ 6bb: 85 d2 test %edx,%edx 6bd: 0f 84 9d 00 00 00 je 760 <malloc+0xc0> 6c3: 8b 02 mov (%edx),%eax 6c5: 8b 48 04 mov 0x4(%eax),%ecx base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ 6c8: 39 cf cmp %ecx,%edi 6ca: 76 6c jbe 738 <malloc+0x98> 6cc: 81 ff 00 10 00 00 cmp $0x1000,%edi 6d2: bb 00 10 00 00 mov $0x1000,%ebx 6d7: 0f 43 df cmovae %edi,%ebx p = sbrk(nu * sizeof(Header)); 6da: 8d 34 dd 00 00 00 00 lea 0x0(,%ebx,8),%esi 6e1: eb 0e jmp 6f1 <malloc+0x51> 6e3: 90 nop 6e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ 6e8: 8b 02 mov (%edx),%eax if(p->s.size >= nunits){ 6ea: 8b 48 04 mov 0x4(%eax),%ecx 6ed: 39 f9 cmp %edi,%ecx 6ef: 73 47 jae 738 <malloc+0x98> p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 6f1: 39 05 84 0a 00 00 cmp %eax,0xa84 6f7: 89 c2 mov %eax,%edx 6f9: 75 ed jne 6e8 <malloc+0x48> p = sbrk(nu * sizeof(Header)); 6fb: 83 ec 0c sub $0xc,%esp 6fe: 56 push %esi 6ff: e8 56 fc ff ff call 35a <sbrk> if(p == (char*)-1) 704: 83 c4 10 add $0x10,%esp 707: 83 f8 ff cmp $0xffffffff,%eax 70a: 74 1c je 728 <malloc+0x88> hp->s.size = nu; 70c: 89 58 04 mov %ebx,0x4(%eax) free((void*)(hp + 1)); 70f: 83 ec 0c sub $0xc,%esp 712: 83 c0 08 add $0x8,%eax 715: 50 push %eax 716: e8 f5 fe ff ff call 610 <free> return freep; 71b: 8b 15 84 0a 00 00 mov 0xa84,%edx if((p = morecore(nunits)) == 0) 721: 83 c4 10 add $0x10,%esp 724: 85 d2 test %edx,%edx 726: 75 c0 jne 6e8 <malloc+0x48> return 0; } } 728: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 72b: 31 c0 xor %eax,%eax } 72d: 5b pop %ebx 72e: 5e pop %esi 72f: 5f pop %edi 730: 5d pop %ebp 731: c3 ret 732: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if(p->s.size == nunits) 738: 39 cf cmp %ecx,%edi 73a: 74 54 je 790 <malloc+0xf0> p->s.size -= nunits; 73c: 29 f9 sub %edi,%ecx 73e: 89 48 04 mov %ecx,0x4(%eax) p += p->s.size; 741: 8d 04 c8 lea (%eax,%ecx,8),%eax p->s.size = nunits; 744: 89 78 04 mov %edi,0x4(%eax) freep = prevp; 747: 89 15 84 0a 00 00 mov %edx,0xa84 } 74d: 8d 65 f4 lea -0xc(%ebp),%esp return (void*)(p + 1); 750: 83 c0 08 add $0x8,%eax } 753: 5b pop %ebx 754: 5e pop %esi 755: 5f pop %edi 756: 5d pop %ebp 757: c3 ret 758: 90 nop 759: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi base.s.ptr = freep = prevp = &base; 760: c7 05 84 0a 00 00 88 movl $0xa88,0xa84 767: 0a 00 00 76a: c7 05 88 0a 00 00 88 movl $0xa88,0xa88 771: 0a 00 00 base.s.size = 0; 774: b8 88 0a 00 00 mov $0xa88,%eax 779: c7 05 8c 0a 00 00 00 movl $0x0,0xa8c 780: 00 00 00 783: e9 44 ff ff ff jmp 6cc <malloc+0x2c> 788: 90 nop 789: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi prevp->s.ptr = p->s.ptr; 790: 8b 08 mov (%eax),%ecx 792: 89 0a mov %ecx,(%edx) 794: eb b1 jmp 747 <malloc+0xa7>
; void bit_click_di(void) SECTION code_clib SECTION code_sound_bit PUBLIC _bit_click_di EXTERN asm_bit_click_di defc _bit_click_di = asm_bit_click_di
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE675_Duplicate_Operations_on_Resource__freopen_74b.cpp Label Definition File: CWE675_Duplicate_Operations_on_Resource.label.xml Template File: sources-sinks-74b.tmpl.cpp */ /* * @description * CWE: 675 Duplicate Operations on Resource * BadSource: freopen Open and close a file using freopen() and flose() * GoodSource: Open a file using fopen() * Sinks: * GoodSink: Do nothing * BadSink : Close the file * Flow Variant: 74 Data flow: data passed in a map from one function to another in different source files * * */ #include "std_testcase.h" #include <map> using namespace std; namespace CWE675_Duplicate_Operations_on_Resource__freopen_74 { #ifndef OMITBAD void badSink(map<int, FILE *> dataMap) { /* copy data out of dataMap */ FILE * data = dataMap[2]; /* POTENTIAL FLAW: Close the file in the sink (it may have been closed in the Source) */ fclose(data); } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B uses the GoodSource with the BadSink */ void goodG2BSink(map<int, FILE *> dataMap) { FILE * data = dataMap[2]; /* POTENTIAL FLAW: Close the file in the sink (it may have been closed in the Source) */ fclose(data); } /* goodB2G uses the BadSource with the GoodSink */ void goodB2GSink(map<int, FILE *> dataMap) { FILE * data = dataMap[2]; /* Do nothing */ /* FIX: Don't close the file in the sink */ ; /* empty statement needed for some flow variants */ } #endif /* OMITGOOD */ } /* close namespace */
; A338824: Lexicographically earliest sequence of nonnegative integers such that for any distinct m and n, a(m) OR a(m+1) <> a(n) OR a(n+1) (where OR denotes the bitwise OR operator). ; 0,0,1,2,0,4,1,6,0,8,1,10,0,12,1,14,0,16,1,18,0,20,1,22,0,24,1,26,0,28,1,30,0,32,1,34,0,36,1,38,0,40,1,42,0,44,1,46,0,48,1,50,0,52,1,54,0,56,1,58,0,60,1,62,0,64,1,66,0,68,1,70,0,72,1,74 sub $0,1 mov $1,$0 lpb $0 mod $0,4 lpe sub $0,1 pow $0,2 pow $1,$0 lpb $0 div $0,2 sub $0,1 div $1,120259084286 lpe
#include "test/Variable.h" #include "test/var/type/val/Sequence.h" #include "test/type/val/Sequence.h" #include <iostream> int main() { test::Variable<test::type::val::Sequence<int, 4>> var1; std::cout << "var1 at 0 : " << var1.Get().At<0>() << std::endl; test::Variable<test::type::val::Sequence<int, 4, 14>> var2; std::cout << "var2 at 0 : " << var2.Get().At<0>() << std::endl; std::cout << "var2 at 1 : " << var2.Get().At<1>() << std::endl; test::Variable<int, test::type::val:: Sequence<int, 6, 12, 24, 32>> var3; test::Variable<test::type::val::Sequence<int, 1, 2, 3>, int, test::type::val::Sequence<int, 14, 4, 22, 11>, char> var4; }
Route7_h: db OVERWORLD ; tileset db ROUTE_7_HEIGHT, ROUTE_7_WIDTH ; dimensions (y, x) dw Route7Blocks, Route7TextPointers, Route7Script ; blocks, texts, scripts db WEST | EAST ; connections WEST_MAP_CONNECTION ROUTE_7, CELADON_CITY, -3, 1, CeladonCityBlocks EAST_MAP_CONNECTION ROUTE_7, SAFFRON_CITY, -3, 1, SaffronCityBlocks, 1 dw Route7Object ; objects
; A169051: Number of reduced words of length n in Coxeter group on 38 generators S_i with relations (S_i)^2 = (S_i S_j)^24 = I. ; 1,38,1406,52022,1924814,71218118,2635070366,97497603542,3607411331054,133474219248998,4938546112212926,182726206151878262,6760869627619495694,250152176221921340678,9255630520211089605086 add $0,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 div $3,$2 mul $2,37 lpe mov $0,$2 div $0,37
// function SimpleFunction.test (SimpleFunction.test)// push local 0 @0 D=A @LCL A=D+M D=M @SP A=M M=D @SP M=M+1 // push local 0 @0 D=A @LCL A=D+M D=M @SP A=M M=D @SP M=M+1 // push local 0 @0 D=A @LCL A=D+M D=M @SP A=M M=D @SP M=M+1 // push local 1 @1 D=A @LCL A=D+M D=M @SP A=M M=D @SP M=M+1 // add @SP AM=M-1 D=M A=A-1 M=D+M // not @SP A=M-1 M=!M // push argument 0 @0 D=A @ARG A=D+M D=M @SP A=M M=D @SP M=M+1 // add @SP AM=M-1 D=M A=A-1 M=D+M // push argument 1 @1 D=A @ARG A=D+M D=M @SP A=M M=D @SP M=M+1 // sub @SP AM=M-1 D=M A=A-1 M=M-D // return // FRAME = LCL @LCL D=M @FRAME M=D // RET = *(FRAME - 5) @5 A=D-A D=M @RET M=D // *ARG = pop() @SP A=M-1 D=M @ARG A=M M=D // SP = ARG + 1 @ARG D=M+1 @SP M=D // THAT = *(FRAME - 1) @1 D=A @FRAME A=M-D D=M @THAT M=D // THAT = *(FRAME - 2) @2 D=A @FRAME A=M-D D=M @THIS M=D // THAT = *(FRAME - 3) @3 D=A @FRAME A=M-D D=M @ARG M=D // THAT = *(FRAME - 4) @4 D=A @FRAME A=M-D D=M @LCL M=D @RET A=M 0,JMP
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------------------------------------------------------- #include "JITServerPch.h" __declspec(dllexport) HRESULT JsInitializeJITServer( __in UUID* connectionUuid, __in_opt void* securityDescriptor, __in_opt void* alpcSecurityDescriptor) { RPC_STATUS status; RPC_BINDING_VECTOR* bindingVector = NULL; UUID_VECTOR uuidVector; uuidVector.Count = 1; uuidVector.Uuid[0] = connectionUuid; status = RpcServerUseProtseqW( (RPC_WSTR)L"ncalrpc", RPC_C_PROTSEQ_MAX_REQS_DEFAULT, alpcSecurityDescriptor); if (status != RPC_S_OK) { return status; } if (AutoSystemInfo::Data.IsWin8OrLater()) { status = RPCLibrary::Instance->RpcServerRegisterIf3( ServerIChakraJIT_v0_0_s_ifspec, NULL, NULL, RPC_IF_AUTOLISTEN, RPC_C_LISTEN_MAX_CALLS_DEFAULT, (ULONG)-1, NULL, securityDescriptor); } else { status = RpcServerRegisterIf2( ServerIChakraJIT_v0_0_s_ifspec, NULL, NULL, RPC_IF_AUTOLISTEN, RPC_C_LISTEN_MAX_CALLS_DEFAULT, (ULONG)-1, NULL); } if (status != RPC_S_OK) { return status; } status = RpcServerInqBindings(&bindingVector); if (status != RPC_S_OK) { return status; } JITManager::GetJITManager()->SetIsJITServer(); PageAllocatorPool::Initialize(); status = RpcEpRegister( ServerIChakraJIT_v0_0_s_ifspec, bindingVector, &uuidVector, NULL); if (status != RPC_S_OK) { return status; } status = RpcBindingVectorFree(&bindingVector); if (status != RPC_S_OK) { return status; } status = RpcServerListen(1, RPC_C_LISTEN_MAX_CALLS_DEFAULT, FALSE); return status; } HRESULT ShutdownCommon() { HRESULT status = RpcMgmtStopServerListening(NULL); if (status != RPC_S_OK) { return status; } status = RpcServerUnregisterIf(ServerIChakraJIT_v0_0_s_ifspec, NULL, FALSE); ServerContextManager::Shutdown(); PageAllocatorPool::Shutdown(); return status; } HRESULT ServerShutdown( /* [in] */ handle_t binding) { return ShutdownCommon(); } void __RPC_USER PTHREADCONTEXT_HANDLE_rundown(__RPC__in PTHREADCONTEXT_HANDLE phContext) { ServerCleanupThreadContext(nullptr, &phContext); } void __RPC_USER PSCRIPTCONTEXT_HANDLE_rundown(__RPC__in PSCRIPTCONTEXT_HANDLE phContext) { ServerCloseScriptContext(nullptr, phContext); ServerCleanupScriptContext(nullptr, &phContext); } HRESULT ServerConnectProcessWithProcessHandle( handle_t binding, HANDLE processHandle, intptr_t chakraBaseAddress, intptr_t crtBaseAddress ) { DWORD clientPid; HRESULT hr = HRESULT_FROM_WIN32(I_RpcBindingInqLocalClientPID(binding, &clientPid)); if (FAILED(hr)) { return hr; } HANDLE targetHandle = nullptr; // RPC handle marshalling is only available on 8.1+ if (!DuplicateHandle(GetCurrentProcess(), processHandle, GetCurrentProcess(), &targetHandle, 0, false, DUPLICATE_SAME_ACCESS)) { Assert(UNREACHED); return E_ACCESSDENIED; } return ProcessContextManager::RegisterNewProcess(clientPid, targetHandle, chakraBaseAddress, crtBaseAddress); } #if !(WINVER >= _WIN32_WINNT_WINBLUE) || true HRESULT ServerConnectProcess( handle_t binding, intptr_t chakraBaseAddress, intptr_t crtBaseAddress ) { // Should use ServerConnectProcessWithProcessHandle on 8.1+ if (AutoSystemInfo::Data.IsWin8Point1OrLater()) { Assert(UNREACHED); return E_ACCESSDENIED; } DWORD clientPid; HRESULT hr = HRESULT_FROM_WIN32(I_RpcBindingInqLocalClientPID(binding, &clientPid)); if (FAILED(hr)) { return hr; } HANDLE targetHandle = nullptr; targetHandle = OpenProcess(PROCESS_VM_OPERATION | PROCESS_VM_READ | PROCESS_VM_WRITE | PROCESS_QUERY_INFORMATION, false, clientPid); if (!targetHandle) { Assert(UNREACHED); return E_ACCESSDENIED; } return ProcessContextManager::RegisterNewProcess(clientPid, targetHandle, chakraBaseAddress, crtBaseAddress); } #endif #pragma warning(push) #pragma warning(disable:6387 28196) // PREFast does not understand the out context can be null here HRESULT ServerInitializeThreadContext( /* [in] */ handle_t binding, /* [in] */ __RPC__in ThreadContextDataIDL * threadContextData, /* [out] */ __RPC__deref_out_opt PPTHREADCONTEXT_HANDLE threadContextInfoAddress, /* [out] */ __RPC__out intptr_t *prereservedRegionAddr, /* [out] */ __RPC__out intptr_t *jitThunkAddr) { if (threadContextInfoAddress == nullptr || prereservedRegionAddr == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } *threadContextInfoAddress = nullptr; *prereservedRegionAddr = 0; *jitThunkAddr = 0; ServerThreadContext * contextInfo = nullptr; DWORD clientPid; HRESULT hr = HRESULT_FROM_WIN32(I_RpcBindingInqLocalClientPID(binding, &clientPid)); if (FAILED(hr)) { return hr; } ProcessContext* processContext = ProcessContextManager::GetProcessContext(clientPid); if (processContext == nullptr) { return E_ACCESSDENIED; } try { AUTO_NESTED_HANDLED_EXCEPTION_TYPE(static_cast<ExceptionType>(ExceptionType_OutOfMemory)); contextInfo = HeapNew(ServerThreadContext, threadContextData, processContext); ServerContextManager::RegisterThreadContext(contextInfo); } catch (Js::OutOfMemoryException) { if (contextInfo) { // If we OOM while registering the ThreadContext, we need to free it HeapDelete(contextInfo); } else { // If we OOM while creating the ThreadContext, then we haven't transfered ownership // of the ProcessContext reference, so we must release it here processContext->Release(); } return E_OUTOFMEMORY; } return ServerCallWrapper(contextInfo, [&]()->HRESULT { if (clientPid != contextInfo->GetRuntimePid()) { return E_ACCESSDENIED; } *threadContextInfoAddress = (PTHREADCONTEXT_HANDLE)EncodePointer(contextInfo); #if defined(_CONTROL_FLOW_GUARD) if (!PHASE_OFF1(Js::PreReservedHeapAllocPhase)) { *prereservedRegionAddr = (intptr_t)contextInfo->GetPreReservedSectionAllocator()->EnsurePreReservedRegion(); contextInfo->SetCanCreatePreReservedSegment(*prereservedRegionAddr != 0); } #if !defined(_M_ARM) *jitThunkAddr = (intptr_t)contextInfo->GetJITThunkEmitter()->EnsureInitialized(); #endif #endif return hr; }); } HRESULT ServerInitializeScriptContext( /* [in] */ handle_t binding, /* [in] */ __RPC__in ScriptContextDataIDL * scriptContextData, /* [in] */ __RPC__in PTHREADCONTEXT_HANDLE threadContextInfoAddress, /* [out] */ __RPC__deref_out_opt PPSCRIPTCONTEXT_HANDLE scriptContextInfoAddress) { if (scriptContextInfoAddress == nullptr || threadContextInfoAddress == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } *scriptContextInfoAddress = nullptr; ServerThreadContext * threadContextInfo = (ServerThreadContext*)DecodePointer(threadContextInfoAddress); return ServerCallWrapper(threadContextInfo, [&]()->HRESULT { ServerScriptContext * contextInfo = HeapNew(ServerScriptContext, scriptContextData, threadContextInfo); ServerContextManager::RegisterScriptContext(contextInfo); *scriptContextInfoAddress = (PSCRIPTCONTEXT_HANDLE)EncodePointer(contextInfo); #if !FLOATVAR // TODO: should move this to ServerInitializeThreadContext, also for the fields in IDL XProcNumberPageSegmentImpl::Initialize(contextInfo->IsRecyclerVerifyEnabled(), contextInfo->GetRecyclerVerifyPad()); #endif return S_OK; }); } #pragma warning(pop) HRESULT ServerCleanupThreadContext( /* [in] */ handle_t binding, /* [in] */ __RPC__deref_inout_opt PPTHREADCONTEXT_HANDLE threadContextInfoAddress) { if (threadContextInfoAddress == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } ServerThreadContext * threadContextInfo = (ServerThreadContext*)DecodePointer(*threadContextInfoAddress); if (threadContextInfo == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } // This tells the run-time, when it is marshalling the out // parameters, that the context handle has been closed normally. *threadContextInfoAddress = nullptr; return ServerCallWrapper(threadContextInfo, [&]()->HRESULT { threadContextInfo->Close(); ServerContextManager::UnRegisterThreadContext(threadContextInfo); return S_OK; }); } HRESULT ServerUpdatePropertyRecordMap( /* [in] */ handle_t binding, /* [in] */ __RPC__in PTHREADCONTEXT_HANDLE threadContextInfoAddress, /* [in] */ __RPC__in_opt BVSparseNodeIDL * updatedPropsBVHead) { ServerThreadContext * threadContextInfo = (ServerThreadContext*)DecodePointer(threadContextInfoAddress); if (threadContextInfo == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } return ServerCallWrapper(threadContextInfo, [&]()->HRESULT { typedef ServerThreadContext::BVSparseNode BVSparseNode; CompileAssert(sizeof(BVSparseNode) == sizeof(BVSparseNodeIDL)); threadContextInfo->UpdateNumericPropertyBV((BVSparseNode*)updatedPropsBVHead); return S_OK; }); } HRESULT ServerAddDOMFastPathHelper( /* [in] */ handle_t binding, /* [in] */ __RPC__in PSCRIPTCONTEXT_HANDLE scriptContextInfoAddress, /* [in] */ intptr_t funcInfoAddr, /* [in] */ int helper) { ServerScriptContext * scriptContextInfo = (ServerScriptContext*)DecodePointer(scriptContextInfoAddress); if (scriptContextInfo == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } if (helper < 0 || helper >= IR::JnHelperMethodCount) { Assert(UNREACHED); return E_ACCESSDENIED; } return ServerCallWrapper(scriptContextInfo, [&]()->HRESULT { scriptContextInfo->AddToDOMFastPathHelperMap(funcInfoAddr, (IR::JnHelperMethod)helper); return S_OK; }); } HRESULT ServerAddModuleRecordInfo( /* [in] */ handle_t binding, /* [in] */ __RPC__in PSCRIPTCONTEXT_HANDLE scriptContextInfoAddress, /* [in] */ unsigned int moduleId, /* [in] */ intptr_t localExportSlotsAddr) { ServerScriptContext * serverScriptContext = (ServerScriptContext*)DecodePointer(scriptContextInfoAddress); if (serverScriptContext == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } return ServerCallWrapper(serverScriptContext, [&]()->HRESULT { serverScriptContext->AddModuleRecordInfo(moduleId, localExportSlotsAddr); return S_OK; }); } HRESULT ServerSetWellKnownHostTypeId( /* [in] */ handle_t binding, /* [in] */ __RPC__in PTHREADCONTEXT_HANDLE threadContextInfoAddress, /* [in] */ int typeId) { ServerThreadContext * threadContextInfo = (ServerThreadContext*)DecodePointer(threadContextInfoAddress); if (threadContextInfo == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } return ServerCallWrapper(threadContextInfo, [&]()->HRESULT { threadContextInfo->SetWellKnownHostTypeId((Js::TypeId)typeId); return S_OK; }); } HRESULT ServerCleanupScriptContext( /* [in] */ handle_t binding, /* [in] */ __RPC__deref_inout_opt PPSCRIPTCONTEXT_HANDLE scriptContextInfoAddress) { if (scriptContextInfoAddress == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } ServerScriptContext * scriptContextInfo = (ServerScriptContext*)DecodePointer(*scriptContextInfoAddress); if (scriptContextInfo == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } if (!scriptContextInfo->IsClosed()) { scriptContextInfo->Close(); ServerContextManager::UnRegisterScriptContext(scriptContextInfo); } // This tells the run-time, when it is marshalling the out // parameters, that the context handle has been closed normally. *scriptContextInfoAddress = nullptr; HeapDelete(scriptContextInfo); return S_OK; } HRESULT ServerCloseScriptContext( /* [in] */ handle_t binding, /* [in] */ __RPC__in PSCRIPTCONTEXT_HANDLE scriptContextInfoAddress) { ServerScriptContext * scriptContextInfo = (ServerScriptContext*)DecodePointer(scriptContextInfoAddress); if (scriptContextInfo == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } return ServerCallWrapper(scriptContextInfo, [&]()->HRESULT { #ifdef PROFILE_EXEC scriptContextInfo->GetFirstCodeGenProfiler()->ProfilePrint(); #endif scriptContextInfo->Close(); ServerContextManager::UnRegisterScriptContext(scriptContextInfo); return S_OK; }); } HRESULT ServerDecommitInterpreterBufferManager( /* [in] */ handle_t binding, /* [in] */ __RPC__in PSCRIPTCONTEXT_HANDLE scriptContextInfoAddress, /* [in] */ boolean asmJsManager) { ServerScriptContext * scriptContext = (ServerScriptContext *)DecodePointer((void*)scriptContextInfoAddress); if (scriptContext == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } return ServerCallWrapper(scriptContext, [&]()->HRESULT { scriptContext->DecommitEmitBufferManager(asmJsManager != FALSE); return S_OK; }); } HRESULT ServerNewInterpreterThunkBlock( /* [in] */ handle_t binding, /* [in] */ __RPC__in PSCRIPTCONTEXT_HANDLE scriptContextInfo, /* [in] */ __RPC__in InterpreterThunkInputIDL * thunkInput, /* [out] */ __RPC__out InterpreterThunkOutputIDL * thunkOutput) { memset(thunkOutput, 0, sizeof(InterpreterThunkOutputIDL)); ServerScriptContext * scriptContext = (ServerScriptContext *)DecodePointer(scriptContextInfo); if (scriptContext == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } return ServerCallWrapper(scriptContext, [&]()->HRESULT { ServerThreadContext * threadContext = scriptContext->GetThreadContext(); class AutoLocalAlloc { public: AutoLocalAlloc(ServerThreadContext * threadContext) : localAddress(nullptr), threadContext(threadContext) { } ~AutoLocalAlloc() { if (localAddress) { threadContext->GetCodePageAllocators()->FreeLocal(this->localAddress, this->segment); } } char * localAddress; void * segment; ServerThreadContext * threadContext; } localAlloc(threadContext); OOPEmitBufferManagerWithLock * emitBufferManager = scriptContext->GetEmitBufferManager(thunkInput->asmJsThunk != FALSE); BYTE* runtimeAddress; EmitBufferAllocation<SectionAllocWrapper, PreReservedSectionAllocWrapper> * alloc = emitBufferManager->AllocateBuffer(InterpreterThunkEmitter::BlockSize, &runtimeAddress); CompileAssert(InterpreterThunkEmitter::BlockSize <= CustomHeap::Page::MaxAllocationSize); localAlloc.segment = alloc->allocation->page->segment; localAlloc.localAddress = threadContext->GetCodePageAllocators()->AllocLocal((char*)runtimeAddress, InterpreterThunkEmitter::BlockSize, localAlloc.segment); if (!localAlloc.localAddress) { Js::Throw::OutOfMemory(); } #if PDATA_ENABLED PRUNTIME_FUNCTION pdataStart = {0}; intptr_t epilogEnd = 0; #endif DWORD thunkCount = 0; InterpreterThunkEmitter::FillBuffer( threadContext, thunkInput->asmJsThunk != FALSE, (intptr_t)runtimeAddress, InterpreterThunkEmitter::BlockSize, (BYTE*)localAlloc.localAddress, #if PDATA_ENABLED &pdataStart, &epilogEnd, #endif &thunkCount ); if (!emitBufferManager->CommitBufferForInterpreter(alloc, runtimeAddress, InterpreterThunkEmitter::BlockSize)) { Js::Throw::OutOfMemory(); } // Call to set VALID flag for CFG check if (CONFIG_FLAG(OOPCFGRegistration)) { emitBufferManager->SetValidCallTarget(alloc, runtimeAddress, true); } thunkOutput->thunkCount = thunkCount; thunkOutput->mappedBaseAddr = (intptr_t)runtimeAddress; #if PDATA_ENABLED thunkOutput->pdataTableStart = (intptr_t)pdataStart; thunkOutput->epilogEndAddr = epilogEnd; #endif return S_OK; }); } #if DBG HRESULT ServerIsInterpreterThunkAddr( /* [in] */ handle_t binding, /* [in] */ __RPC__in PSCRIPTCONTEXT_HANDLE scriptContextInfoAddress, /* [in] */ intptr_t address, /* [in] */ boolean asmjsThunk, /* [out] */ __RPC__out boolean * result) { ServerScriptContext * context = (ServerScriptContext*)DecodePointer((void*)scriptContextInfoAddress); if (context == nullptr) { *result = false; return RPC_S_INVALID_ARG; } OOPEmitBufferManagerWithLock * manager = context->GetEmitBufferManager(asmjsThunk != FALSE); if (manager == nullptr) { *result = false; return S_OK; } *result = manager->IsInHeap((void*)address); return S_OK; } #endif HRESULT ServerFreeAllocation( /* [in] */ handle_t binding, /* [in] */ __RPC__in PSCRIPTCONTEXT_HANDLE scriptContextInfo, /* [in] */ intptr_t codeAddress) { ServerScriptContext* context = (ServerScriptContext*)DecodePointer(scriptContextInfo); if (context == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } return ServerCallWrapper(context, [&]()->HRESULT { context->GetCodeGenAllocators()->emitBufferManager.FreeAllocation((void*)codeAddress); return S_OK; }); } HRESULT ServerIsNativeAddr( /* [in] */ handle_t binding, /* [in] */ __RPC__in PTHREADCONTEXT_HANDLE threadContextInfo, /* [in] */ intptr_t address, /* [out] */ __RPC__out boolean * result) { if (result == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } *result = false; ServerThreadContext* context = (ServerThreadContext*)DecodePointer(threadContextInfo); if (context == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } return ServerCallWrapper(context, [&]()->HRESULT { PreReservedSectionAllocWrapper *preReservedAllocWrapper = context->GetPreReservedSectionAllocator(); if (preReservedAllocWrapper->IsInRange((void*)address)) { *result = true; } else if (!context->IsAllJITCodeInPreReservedRegion()) { AutoCriticalSection autoLock(&context->GetCodePageAllocators()->cs); *result = context->GetCodePageAllocators()->IsInNonPreReservedPageAllocator((void*)address); } else { *result = false; } return S_OK; }); } HRESULT ServerSetIsPRNGSeeded( /* [in] */ handle_t binding, /* [in] */ __RPC__in PSCRIPTCONTEXT_HANDLE scriptContextInfoAddress, /* [in] */ boolean value) { ServerScriptContext * scriptContextInfo = (ServerScriptContext*)DecodePointer(scriptContextInfoAddress); if (scriptContextInfo == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } return ServerCallWrapper(scriptContextInfo, [&]()->HRESULT { scriptContextInfo->SetIsPRNGSeeded(value != FALSE); return S_OK; }); } HRESULT ServerRemoteCodeGen( /* [in] */ handle_t binding, /* [in] */ __RPC__in PSCRIPTCONTEXT_HANDLE scriptContextInfoAddress, /* [in] */ __RPC__in CodeGenWorkItemIDL *workItemData, /* [out] */ __RPC__out JITOutputIDL *jitData) { memset(jitData, 0, sizeof(JITOutputIDL)); ServerScriptContext * scriptContextInfo = (ServerScriptContext*)DecodePointer(scriptContextInfoAddress); if (scriptContextInfo == nullptr) { Assert(false); return RPC_S_INVALID_ARG; } #if DBG size_t serializedRpcDataSize = 0; const unsigned char* serializedRpcData = nullptr; JITManager::SerializeRPCData(workItemData, &serializedRpcDataSize, &serializedRpcData); struct AutoFreeArray { const byte* arr = nullptr; size_t bufferSize = 0; ~AutoFreeArray() { HeapDeleteArray(bufferSize, arr); } } autoFreeArray; autoFreeArray.arr = serializedRpcData; autoFreeArray.bufferSize = serializedRpcDataSize; #endif return ServerCallWrapper(scriptContextInfo, [&]() ->HRESULT { LARGE_INTEGER start_time = { 0 }; if (PHASE_TRACE1(Js::BackEndPhase)) { QueryPerformanceCounter(&start_time); } scriptContextInfo->UpdateGlobalObjectThisAddr(workItemData->globalThisAddr); ServerThreadContext * threadContextInfo = scriptContextInfo->GetThreadContext(); AutoReturnPageAllocator autoReturnPageAllocator; PageAllocator* pageAllocator = autoReturnPageAllocator.GetPageAllocator(); NoRecoverMemoryJitArenaAllocator jitArena(L"JITArena", pageAllocator, Js::Throw::OutOfMemory); #if DBG jitArena.SetNeedsDelayFreeList(); #endif JITTimeWorkItem * jitWorkItem = Anew(&jitArena, JITTimeWorkItem, workItemData); if (PHASE_VERBOSE_TRACE_RAW(Js::BackEndPhase, jitWorkItem->GetJITTimeInfo()->GetSourceContextId(), jitWorkItem->GetJITTimeInfo()->GetLocalFunctionId())) { LARGE_INTEGER freq; LARGE_INTEGER end_time; QueryPerformanceCounter(&end_time); QueryPerformanceFrequency(&freq); Output::Print( L"BackendMarshalIn - function: %s time:%8.6f mSec\r\n", jitWorkItem->GetJITFunctionBody()->GetDisplayName(), (((double)((end_time.QuadPart - workItemData->startTime)* (double)1000.0 / (double)freq.QuadPart))) / (1)); Output::Flush(); } #ifdef PROFILE_EXEC Js::ScriptContextProfiler* profiler = scriptContextInfo->GetCodeGenProfiler(pageAllocator); #else Js::ScriptContextProfiler* profiler = nullptr; #endif #if !FLOATVAR if (jitWorkItem->GetWorkItemData()->xProcNumberPageSegment) { jitData->numberPageSegments = (XProcNumberPageSegment*)midl_user_allocate(sizeof(XProcNumberPageSegment)); if (!jitData->numberPageSegments) { return E_OUTOFMEMORY; } __analysis_assume(jitData->numberPageSegments); memcpy_s(jitData->numberPageSegments, sizeof(XProcNumberPageSegment), jitWorkItem->GetWorkItemData()->xProcNumberPageSegment, sizeof(XProcNumberPageSegment)); } #endif Func::Codegen( &jitArena, jitWorkItem, threadContextInfo, scriptContextInfo, jitData, nullptr, nullptr, jitWorkItem->GetPolymorphicInlineCacheInfo(), scriptContextInfo->GetCodeGenAllocators(), #if !FLOATVAR nullptr, // number allocator #endif profiler, true); #ifdef PROFILE_EXEC if (profiler && profiler->IsInitialized()) { profiler->ProfilePrint(Js::Configuration::Global.flags.Profile.GetFirstPhase()); } #endif if (PHASE_VERBOSE_TRACE_RAW(Js::BackEndPhase, jitWorkItem->GetJITTimeInfo()->GetSourceContextId(), jitWorkItem->GetJITTimeInfo()->GetLocalFunctionId())) { LARGE_INTEGER freq; LARGE_INTEGER end_time; QueryPerformanceCounter(&end_time); QueryPerformanceFrequency(&freq); Output::Print( L"EndBackEndInner - function: %s time:%8.6f mSec\r\n", jitWorkItem->GetJITFunctionBody()->GetDisplayName(), (((double)((end_time.QuadPart - start_time.QuadPart)* (double)1000.0 / (double)freq.QuadPart))) / (1)); Output::Flush(); } LARGE_INTEGER out_time = { 0 }; if (PHASE_TRACE1(Js::BackEndPhase)) { QueryPerformanceCounter(&out_time); jitData->startTime = out_time.QuadPart; } Assert(jitData->codeAddress); Assert(jitData->codeSize); return S_OK; }); } JsUtil::BaseHashSet<ServerThreadContext*, HeapAllocator> ServerContextManager::threadContexts(&HeapAllocator::Instance); JsUtil::BaseHashSet<ServerScriptContext*, HeapAllocator> ServerContextManager::scriptContexts(&HeapAllocator::Instance); CriticalSection ServerContextManager::cs; BaseDictionary<DWORD, ProcessContext*, HeapAllocator> ProcessContextManager::ProcessContexts(&HeapAllocator::Instance); CriticalSection ProcessContextManager::cs; HRESULT ProcessContextManager::RegisterNewProcess(DWORD pid, HANDLE processHandle, intptr_t chakraBaseAddress, intptr_t crtBaseAddress) { AutoCriticalSection autoCS(&cs); for (auto iter = ProcessContexts.GetIteratorWithRemovalSupport(); iter.IsValid(); iter.MoveNext()) { ProcessContext* context = iter.CurrentValue(); // We can delete a ProcessContext if no ThreadContexts refer to it and the process is terminated if (!context->HasRef() && WaitForSingleObject(context->processHandle, 0) == WAIT_OBJECT_0) { iter.RemoveCurrent(); HeapDelete(context); } } // We cannot register multiple ProcessContexts for a single process if (ProcessContexts.ContainsKey(pid)) { Assert(UNREACHED); return E_ACCESSDENIED; } ProcessContext* context = nullptr; try { AUTO_NESTED_HANDLED_EXCEPTION_TYPE(static_cast<ExceptionType>(ExceptionType_OutOfMemory)); context = HeapNew(ProcessContext, processHandle, chakraBaseAddress, crtBaseAddress); ProcessContexts.Add(pid, context); } catch (Js::OutOfMemoryException) { if (context != nullptr) { // If we OOM while registering the ProcessContext, we should free it HeapDelete(context); } return E_OUTOFMEMORY; } return S_OK; } ProcessContext* ProcessContextManager::GetProcessContext(DWORD pid) { AutoCriticalSection autoCS(&cs); ProcessContext* context = nullptr; // It is possible that we don't have a ProcessContext for a pid in case ProcessContext initialization failed, // or if the calling process terminated and the ProcessContext was already cleaned up before we got here if (ProcessContexts.ContainsKey(pid)) { context = ProcessContexts.Item(pid); context->AddRef(); } return context; } #ifdef STACK_BACK_TRACE SList<ServerContextManager::ClosedContextEntry<ServerThreadContext>*, NoThrowHeapAllocator> ServerContextManager::ClosedThreadContextList(&NoThrowHeapAllocator::Instance); SList<ServerContextManager::ClosedContextEntry<ServerScriptContext>*, NoThrowHeapAllocator> ServerContextManager::ClosedScriptContextList(&NoThrowHeapAllocator::Instance); #endif void ServerContextManager::RegisterThreadContext(ServerThreadContext* threadContext) { AutoCriticalSection autoCS(&cs); threadContexts.Add(threadContext); } void ServerContextManager::UnRegisterThreadContext(ServerThreadContext* threadContext) { AutoCriticalSection autoCS(&cs); threadContexts.Remove(threadContext); auto iter = scriptContexts.GetIteratorWithRemovalSupport(); while (iter.IsValid()) { ServerScriptContext* scriptContext = iter.Current().Key(); if (scriptContext->GetThreadContext() == threadContext) { if (!scriptContext->IsClosed()) { scriptContext->Close(); } iter.RemoveCurrent(); } iter.MoveNext(); } } void ServerContextManager::RegisterScriptContext(ServerScriptContext* scriptContext) { AutoCriticalSection autoCS(&cs); scriptContexts.Add(scriptContext); } void ServerContextManager::UnRegisterScriptContext(ServerScriptContext* scriptContext) { AutoCriticalSection autoCS(&cs); scriptContexts.Remove(scriptContext); } bool ServerContextManager::CheckLivenessAndAddref(ServerScriptContext* context) { AutoCriticalSection autoCS(&cs); if (scriptContexts.LookupWithKey(context)) { if (!context->IsClosed() && !context->GetThreadContext()->IsClosed()) { context->AddRef(); context->GetThreadContext()->AddRef(); return true; } } return false; } bool ServerContextManager::CheckLivenessAndAddref(ServerThreadContext* context) { AutoCriticalSection autoCS(&cs); if (threadContexts.LookupWithKey(context)) { if (!context->IsClosed()) { context->AddRef(); return true; } } return false; } template<typename Fn> HRESULT ServerCallWrapper(ServerThreadContext* threadContextInfo, Fn fn) { MemoryOperationLastError::ClearLastError(); HRESULT hr = S_OK; try { AUTO_NESTED_HANDLED_EXCEPTION_TYPE(static_cast<ExceptionType>(ExceptionType_OutOfMemory | ExceptionType_StackOverflow)); AutoReleaseThreadContext autoThreadContext(threadContextInfo); hr = fn(); } catch (ContextClosedException&) { hr = E_ACCESSDENIED; } catch (Js::OutOfMemoryException) { hr = E_OUTOFMEMORY; } catch (Js::StackOverflowException) { hr = VBSERR_OutOfStack; } catch (Js::OperationAbortedException) { hr = E_ABORT; } catch (...) { AssertOrFailFastMsg(false, "Unknown exception caught in JIT server call."); } if (hr == S_OK) { return MemoryOperationLastError::GetLastError(); } return hr; } template<typename Fn> HRESULT ServerCallWrapper(ServerScriptContext* scriptContextInfo, Fn fn) { try { AutoReleaseScriptContext autoScriptContext(scriptContextInfo); ServerThreadContext* threadContextInfo = scriptContextInfo->GetThreadContext(); return ServerCallWrapper(threadContextInfo, fn); } catch (ContextClosedException&) { return E_ACCESSDENIED; } }
; ; Copyright (c) 2010 The WebM project authors. All Rights Reserved. ; ; Use of this source code is governed by a BSD-style license ; that can be found in the LICENSE file in the root of the source ; tree. An additional intellectual property rights grant can be found ; in the file PATENTS. All contributing project authors may ; be found in the AUTHORS file in the root of the source tree. ; %include "vpx_ports/x86_abi_support.asm" ;void vp9_subtract_b_mmx_impl(unsigned char *z, int src_stride, ; short *diff, unsigned char *Predictor, ; int pitch); global sym(vp9_subtract_b_mmx_impl) PRIVATE sym(vp9_subtract_b_mmx_impl): push rbp mov rbp, rsp SHADOW_ARGS_TO_STACK 5 push rsi push rdi ; end prolog mov rdi, arg(2) ;diff mov rax, arg(3) ;Predictor mov rsi, arg(0) ;z movsxd rdx, dword ptr arg(1);src_stride; movsxd rcx, dword ptr arg(4);pitch pxor mm7, mm7 movd mm0, [rsi] movd mm1, [rax] punpcklbw mm0, mm7 punpcklbw mm1, mm7 psubw mm0, mm1 movq [rdi], mm0 movd mm0, [rsi+rdx] movd mm1, [rax+rcx] punpcklbw mm0, mm7 punpcklbw mm1, mm7 psubw mm0, mm1 movq [rdi+rcx*2],mm0 movd mm0, [rsi+rdx*2] movd mm1, [rax+rcx*2] punpcklbw mm0, mm7 punpcklbw mm1, mm7 psubw mm0, mm1 movq [rdi+rcx*4], mm0 lea rsi, [rsi+rdx*2] lea rcx, [rcx+rcx*2] movd mm0, [rsi+rdx] movd mm1, [rax+rcx] punpcklbw mm0, mm7 punpcklbw mm1, mm7 psubw mm0, mm1 movq [rdi+rcx*2], mm0 ; begin epilog pop rdi pop rsi UNSHADOW_ARGS pop rbp ret ;void vp9_subtract_mby_mmx(short *diff, unsigned char *src, unsigned char *pred, int stride) global sym(vp9_subtract_mby_mmx) PRIVATE sym(vp9_subtract_mby_mmx): push rbp mov rbp, rsp SHADOW_ARGS_TO_STACK 4 push rsi push rdi ; end prolog mov rsi, arg(1) ;src mov rdi, arg(0) ;diff mov rax, arg(2) ;pred movsxd rdx, dword ptr arg(3) ;stride mov rcx, 16 pxor mm0, mm0 .submby_loop: movq mm1, [rsi] movq mm3, [rax] movq mm2, mm1 movq mm4, mm3 punpcklbw mm1, mm0 punpcklbw mm3, mm0 punpckhbw mm2, mm0 punpckhbw mm4, mm0 psubw mm1, mm3 psubw mm2, mm4 movq [rdi], mm1 movq [rdi+8], mm2 movq mm1, [rsi+8] movq mm3, [rax+8] movq mm2, mm1 movq mm4, mm3 punpcklbw mm1, mm0 punpcklbw mm3, mm0 punpckhbw mm2, mm0 punpckhbw mm4, mm0 psubw mm1, mm3 psubw mm2, mm4 movq [rdi+16], mm1 movq [rdi+24], mm2 add rdi, 32 add rax, 16 lea rsi, [rsi+rdx] sub rcx, 1 jnz .submby_loop pop rdi pop rsi ; begin epilog UNSHADOW_ARGS pop rbp ret ;void vp9_subtract_mbuv_mmx(short *diff, unsigned char *usrc, unsigned char *vsrc, unsigned char *pred, int stride) global sym(vp9_subtract_mbuv_mmx) PRIVATE sym(vp9_subtract_mbuv_mmx): push rbp mov rbp, rsp SHADOW_ARGS_TO_STACK 5 push rsi push rdi ; end prolog ;short *udiff = diff + 256; ;short *vdiff = diff + 320; ;unsigned char *upred = pred + 256; ;unsigned char *vpred = pred + 320; ;unsigned char *z = usrc; ;unsigned short *diff = udiff; ;unsigned char *Predictor= upred; mov rdi, arg(0) ;diff mov rax, arg(3) ;pred mov rsi, arg(1) ;z = usrc add rdi, 256*2 ;diff = diff + 256 (shorts) add rax, 256 ;Predictor = pred + 256 movsxd rdx, dword ptr arg(4) ;stride; pxor mm7, mm7 movq mm0, [rsi] movq mm1, [rax] movq mm3, mm0 movq mm4, mm1 punpcklbw mm0, mm7 punpcklbw mm1, mm7 punpckhbw mm3, mm7 punpckhbw mm4, mm7 psubw mm0, mm1 psubw mm3, mm4 movq [rdi], mm0 movq [rdi+8], mm3 movq mm0, [rsi+rdx] movq mm1, [rax+8] movq mm3, mm0 movq mm4, mm1 punpcklbw mm0, mm7 punpcklbw mm1, mm7 punpckhbw mm3, mm7 punpckhbw mm4, mm7 psubw mm0, mm1 psubw mm3, mm4 movq [rdi+16], mm0 movq [rdi+24], mm3 movq mm0, [rsi+rdx*2] movq mm1, [rax+16] movq mm3, mm0 movq mm4, mm1 punpcklbw mm0, mm7 punpcklbw mm1, mm7 punpckhbw mm3, mm7 punpckhbw mm4, mm7 psubw mm0, mm1 psubw mm3, mm4 movq [rdi+32], mm0 movq [rdi+40], mm3 lea rsi, [rsi+rdx*2] movq mm0, [rsi+rdx] movq mm1, [rax+24] movq mm3, mm0 movq mm4, mm1 punpcklbw mm0, mm7 punpcklbw mm1, mm7 punpckhbw mm3, mm7 punpckhbw mm4, mm7 psubw mm0, mm1 psubw mm3, mm4 movq [rdi+48], mm0 movq [rdi+56], mm3 add rdi, 64 add rax, 32 lea rsi, [rsi+rdx*2] movq mm0, [rsi] movq mm1, [rax] movq mm3, mm0 movq mm4, mm1 punpcklbw mm0, mm7 punpcklbw mm1, mm7 punpckhbw mm3, mm7 punpckhbw mm4, mm7 psubw mm0, mm1 psubw mm3, mm4 movq [rdi], mm0 movq [rdi+8], mm3 movq mm0, [rsi+rdx] movq mm1, [rax+8] movq mm3, mm0 movq mm4, mm1 punpcklbw mm0, mm7 punpcklbw mm1, mm7 punpckhbw mm3, mm7 punpckhbw mm4, mm7 psubw mm0, mm1 psubw mm3, mm4 movq [rdi+16], mm0 movq [rdi+24], mm3 movq mm0, [rsi+rdx*2] movq mm1, [rax+16] movq mm3, mm0 movq mm4, mm1 punpcklbw mm0, mm7 punpcklbw mm1, mm7 punpckhbw mm3, mm7 punpckhbw mm4, mm7 psubw mm0, mm1 psubw mm3, mm4 movq [rdi+32], mm0 movq [rdi+40], mm3 lea rsi, [rsi+rdx*2] movq mm0, [rsi+rdx] movq mm1, [rax+24] movq mm3, mm0 movq mm4, mm1 punpcklbw mm0, mm7 punpcklbw mm1, mm7 punpckhbw mm3, mm7 punpckhbw mm4, mm7 psubw mm0, mm1 psubw mm3, mm4 movq [rdi+48], mm0 movq [rdi+56], mm3 ;unsigned char *z = vsrc; ;unsigned short *diff = vdiff; ;unsigned char *Predictor= vpred; mov rdi, arg(0) ;diff mov rax, arg(3) ;pred mov rsi, arg(2) ;z = usrc add rdi, 320*2 ;diff = diff + 320 (shorts) add rax, 320 ;Predictor = pred + 320 movsxd rdx, dword ptr arg(4) ;stride; pxor mm7, mm7 movq mm0, [rsi] movq mm1, [rax] movq mm3, mm0 movq mm4, mm1 punpcklbw mm0, mm7 punpcklbw mm1, mm7 punpckhbw mm3, mm7 punpckhbw mm4, mm7 psubw mm0, mm1 psubw mm3, mm4 movq [rdi], mm0 movq [rdi+8], mm3 movq mm0, [rsi+rdx] movq mm1, [rax+8] movq mm3, mm0 movq mm4, mm1 punpcklbw mm0, mm7 punpcklbw mm1, mm7 punpckhbw mm3, mm7 punpckhbw mm4, mm7 psubw mm0, mm1 psubw mm3, mm4 movq [rdi+16], mm0 movq [rdi+24], mm3 movq mm0, [rsi+rdx*2] movq mm1, [rax+16] movq mm3, mm0 movq mm4, mm1 punpcklbw mm0, mm7 punpcklbw mm1, mm7 punpckhbw mm3, mm7 punpckhbw mm4, mm7 psubw mm0, mm1 psubw mm3, mm4 movq [rdi+32], mm0 movq [rdi+40], mm3 lea rsi, [rsi+rdx*2] movq mm0, [rsi+rdx] movq mm1, [rax+24] movq mm3, mm0 movq mm4, mm1 punpcklbw mm0, mm7 punpcklbw mm1, mm7 punpckhbw mm3, mm7 punpckhbw mm4, mm7 psubw mm0, mm1 psubw mm3, mm4 movq [rdi+48], mm0 movq [rdi+56], mm3 add rdi, 64 add rax, 32 lea rsi, [rsi+rdx*2] movq mm0, [rsi] movq mm1, [rax] movq mm3, mm0 movq mm4, mm1 punpcklbw mm0, mm7 punpcklbw mm1, mm7 punpckhbw mm3, mm7 punpckhbw mm4, mm7 psubw mm0, mm1 psubw mm3, mm4 movq [rdi], mm0 movq [rdi+8], mm3 movq mm0, [rsi+rdx] movq mm1, [rax+8] movq mm3, mm0 movq mm4, mm1 punpcklbw mm0, mm7 punpcklbw mm1, mm7 punpckhbw mm3, mm7 punpckhbw mm4, mm7 psubw mm0, mm1 psubw mm3, mm4 movq [rdi+16], mm0 movq [rdi+24], mm3 movq mm0, [rsi+rdx*2] movq mm1, [rax+16] movq mm3, mm0 movq mm4, mm1 punpcklbw mm0, mm7 punpcklbw mm1, mm7 punpckhbw mm3, mm7 punpckhbw mm4, mm7 psubw mm0, mm1 psubw mm3, mm4 movq [rdi+32], mm0 movq [rdi+40], mm3 lea rsi, [rsi+rdx*2] movq mm0, [rsi+rdx] movq mm1, [rax+24] movq mm3, mm0 movq mm4, mm1 punpcklbw mm0, mm7 punpcklbw mm1, mm7 punpckhbw mm3, mm7 punpckhbw mm4, mm7 psubw mm0, mm1 psubw mm3, mm4 movq [rdi+48], mm0 movq [rdi+56], mm3 ; begin epilog pop rdi pop rsi UNSHADOW_ARGS pop rbp ret
; A246010: a(n) = floor(5*prime(n)^2 / 4). ; 5,11,31,61,151,211,361,451,661,1051,1201,1711,2101,2311,2761,3511,4351,4651,5611,6301,6661,7801,8611,9901,11761,12751,13261,14311,14851,15961,20161,21451,23461,24151,27751,28501,30811,33211,34861,37411,40051,40951,45601,46561,48511,49501,55651,62161,64411,65551,67861,71401,72601,78751,82561,86461,90451,91801,95911,98701,100111,107311,117811,120901,122461,125611,136951,141961,150511,152251,155761,161101,168361,173911,179551,183361,189151,197011,201001,209101,219451,221551,232201,234361,240901,245311,252001,261061,265651,267961,272611,286801,296461,301351,311251,316261,323851,339301,341911,365851 seq $0,40 ; The prime numbers. pow $0,2 mul $0,5 div $0,4
#ifndef STAN_MATH_PRIM_META_FORWARD_AS_HPP #define STAN_MATH_PRIM_META_FORWARD_AS_HPP #include <stan/math/prim/meta.hpp> #include <type_traits> namespace stan { namespace math { namespace internal { template <typename T1, typename T2> constexpr bool eigen_static_size_match(T1 desired, T2 actual) { return static_cast<int>(desired) == Eigen::Dynamic || static_cast<int>(desired) == static_cast<int>(actual); } } // namespace internal /** \ingroup type_trait * Assume which type we get. If actual type is convertible to assumed type or in * case of eigen types compile time rows and columns also match or desired sizes * are dynamic this is a no-op. Otherwise it throws std::runtime_error, which * should never happen if used as intended. * * This is intended to be used in compile time branches that would otherwise * trigger compile error even though they are never executed. * * @tparam T_desired type of output we need to avoid compile time errors * @tparam T_actual actual type of the argument * @param a input value * @return the input value a */ template <typename T_desired, typename T_actual, typename = std::enable_if_t<std::is_same<std::decay_t<T_actual>, std::decay_t<T_desired>>::value && !is_eigen<T_desired>::value>> inline T_actual&& forward_as(T_actual&& a) { // NOLINT return std::forward<T_actual>(a); } /** \ingroup type_trait * Assume which type we get. If actual type is not convertible to assumed type * or in case of eigen types compile time rows and columns are not the same and * desired sizes are not dynamic this has return type of \c T_desired, but it * only throws. This version should only be used where it is optimized away so * the throw should never happen. * * This is intended to be used in compile time branches that would otherwise * trigger compile error even though they are never executed. * * @tparam T_desired type of output we need to avoid compile time errors * @tparam T_actual actual type of the argument * @param a input value * @return nothing, this always throws * @throw always throws std::runtime_error */ template <typename T_desired, typename T_actual, typename = std::enable_if_t< !std::is_same<std::decay<T_actual>, std::decay<T_desired>>::value && (!is_eigen<T_desired>::value || !is_eigen<T_actual>::value)>> inline T_desired forward_as(const T_actual& a) { throw std::runtime_error("Wrong type assumed! Please file a bug report."); } /** \ingroup type_trait * Assume which type we get. If actual type is convertible to assumed type or in * case of eigen types compile time rows and columns also match or desired sizes * are dynamic this is a no-op. Otherwise it throws std::runtime_error, * which should never happen if used as intended. * * This is intended to be used in compile time branches that would otherwise * trigger compile error even though they are never executed. * * @tparam T_desired type of output we need to avoid compile time errors * @tparam T_actual actual type of the argument * @param a input value * @return the input value a */ template < typename T_desired, typename T_actual, require_eigen_t<T_desired>* = nullptr, std::enable_if_t< std::is_same<value_type_t<T_actual>, value_type_t<T_desired>>::value && is_eigen<T_desired>::value && is_eigen<T_actual>::value && internal::eigen_static_size_match( T_desired::RowsAtCompileTime, std::decay_t<T_actual>::RowsAtCompileTime) && internal::eigen_static_size_match( T_desired::ColsAtCompileTime, std::decay_t<T_actual>::ColsAtCompileTime)>* = nullptr> inline T_actual&& forward_as(T_actual&& a) { // NOLINT return std::forward<T_actual>(a); } /** * Assume which type we get. If actual type is not convertible to assumed type * or in case of eigen types compile time rows and columns are not the same and * desired sizes are not dynamic this has return type of \c T_desired, but it * only throws. This version should only be used where it is optimized away so * the throw should never happen. * * This is intended to be used in compile time branches that would otherwise * trigger compile error even though they are never executed. * * @tparam T_desired type of output we need to avoid compile time errors * @tparam T_actual actual type of the argument * @param a input value * @return nothing, this always throws * @throw always throws std::runtime_error */ template < typename T_desired, typename T_actual, require_all_eigen_t<T_desired, T_actual>* = nullptr, std::enable_if_t< !std::is_same<value_type_t<T_actual>, value_type_t<T_desired>>::value || !internal::eigen_static_size_match( T_desired::RowsAtCompileTime, std::decay_t<T_actual>::RowsAtCompileTime) || !internal::eigen_static_size_match( T_desired::ColsAtCompileTime, std::decay_t<T_actual>::ColsAtCompileTime)>* = nullptr> inline T_desired forward_as(const T_actual& a) { throw std::runtime_error("Wrong type assumed! Please file a bug report."); } } // namespace math } // namespace stan #endif
IFNDEF MAIN_FILE DEFINE MAIN_FILE OUTPUT "predefined_include_level.bin" myIncludeLevel = 0 ENDIF ; before another INCLUDE ASSERT __INCLUDE_LEVEL__ == myIncludeLevel DB __INCLUDE_LEVEL__, myIncludeLevel IF myIncludeLevel < 6 myIncludeLevel = myIncludeLevel + 1 INCLUDE "predefined_include_level.asm" myIncludeLevel = myIncludeLevel - 1 ENDIF ; after another INCLUDE ASSERT __INCLUDE_LEVEL__ == myIncludeLevel DB __INCLUDE_LEVEL__, myIncludeLevel
; A130848: Periodic sequence with period (2, 5, 3, -2, -5, -3). ; 2,5,3,-2,-5,-3,2,5,3,-2,-5,-3,2,5,3,-2,-5,-3,2,5,3,-2,-5,-3,2,5,3,-2,-5,-3,2,5,3,-2,-5,-3,2,5,3,-2,-5,-3,2,5,3,-2,-5,-3,2,5,3,-2,-5,-3,2,5,3,-2,-5,-3,2,5,3,-2,-5,-3,2,5,3,-2,-5,-3,2,5,3,-2,-5,-3,2,5,3,-2,-5,-3,2,5,3,-2,-5,-3,2,5,3,-2,-5,-3,2,5,3,-2,-5,-3 mov $1,2 mov $2,3 lpb $0 sub $0,1 add $1,$2 sub $2,$1 lpe
_grep: file format elf32-i386 Disassembly of section .text: 00000000 <main>: } } int main(int argc, char *argv[]) { 0: 8d 4c 24 04 lea 0x4(%esp),%ecx 4: 83 e4 f0 and $0xfffffff0,%esp 7: ff 71 fc pushl -0x4(%ecx) a: 55 push %ebp b: 89 e5 mov %esp,%ebp d: 57 push %edi e: 56 push %esi f: 53 push %ebx 10: 51 push %ecx 11: 83 ec 18 sub $0x18,%esp 14: 8b 01 mov (%ecx),%eax 16: 8b 59 04 mov 0x4(%ecx),%ebx int fd, i; char *pattern; if(argc <= 1){ 19: 83 f8 01 cmp $0x1,%eax } } int main(int argc, char *argv[]) { 1c: 89 45 e4 mov %eax,-0x1c(%ebp) int fd, i; char *pattern; if(argc <= 1){ 1f: 7e 76 jle 97 <main+0x97> printf(2, "usage: grep pattern [file ...]\n"); exit(); } pattern = argv[1]; 21: 8b 43 04 mov 0x4(%ebx),%eax 24: 83 c3 08 add $0x8,%ebx if(argc <= 2){ 27: 83 7d e4 02 cmpl $0x2,-0x1c(%ebp) 2b: be 02 00 00 00 mov $0x2,%esi if(argc <= 1){ printf(2, "usage: grep pattern [file ...]\n"); exit(); } pattern = argv[1]; 30: 89 45 e0 mov %eax,-0x20(%ebp) if(argc <= 2){ 33: 74 53 je 88 <main+0x88> 35: 8d 76 00 lea 0x0(%esi),%esi grep(pattern, 0); exit(); } for(i = 2; i < argc; i++){ if((fd = open(argv[i], 0)) < 0){ 38: 83 ec 08 sub $0x8,%esp 3b: 6a 00 push $0x0 3d: ff 33 pushl (%ebx) 3f: e8 5e 05 00 00 call 5a2 <open> 44: 83 c4 10 add $0x10,%esp 47: 85 c0 test %eax,%eax 49: 89 c7 mov %eax,%edi 4b: 78 27 js 74 <main+0x74> printf(1, "grep: cannot open %s\n", argv[i]); exit(); } grep(pattern, fd); 4d: 83 ec 08 sub $0x8,%esp if(argc <= 2){ grep(pattern, 0); exit(); } for(i = 2; i < argc; i++){ 50: 83 c6 01 add $0x1,%esi 53: 83 c3 04 add $0x4,%ebx if((fd = open(argv[i], 0)) < 0){ printf(1, "grep: cannot open %s\n", argv[i]); exit(); } grep(pattern, fd); 56: 50 push %eax 57: ff 75 e0 pushl -0x20(%ebp) 5a: e8 c1 01 00 00 call 220 <grep> close(fd); 5f: 89 3c 24 mov %edi,(%esp) 62: e8 23 05 00 00 call 58a <close> if(argc <= 2){ grep(pattern, 0); exit(); } for(i = 2; i < argc; i++){ 67: 83 c4 10 add $0x10,%esp 6a: 39 75 e4 cmp %esi,-0x1c(%ebp) 6d: 7f c9 jg 38 <main+0x38> exit(); } grep(pattern, fd); close(fd); } exit(); 6f: e8 ee 04 00 00 call 562 <exit> exit(); } for(i = 2; i < argc; i++){ if((fd = open(argv[i], 0)) < 0){ printf(1, "grep: cannot open %s\n", argv[i]); 74: 50 push %eax 75: ff 33 pushl (%ebx) 77: 68 f0 09 00 00 push $0x9f0 7c: 6a 01 push $0x1 7e: e8 2d 06 00 00 call 6b0 <printf> exit(); 83: e8 da 04 00 00 call 562 <exit> exit(); } pattern = argv[1]; if(argc <= 2){ grep(pattern, 0); 88: 52 push %edx 89: 52 push %edx 8a: 6a 00 push $0x0 8c: 50 push %eax 8d: e8 8e 01 00 00 call 220 <grep> exit(); 92: e8 cb 04 00 00 call 562 <exit> { int fd, i; char *pattern; if(argc <= 1){ printf(2, "usage: grep pattern [file ...]\n"); 97: 51 push %ecx 98: 51 push %ecx 99: 68 d0 09 00 00 push $0x9d0 9e: 6a 02 push $0x2 a0: e8 0b 06 00 00 call 6b0 <printf> exit(); a5: e8 b8 04 00 00 call 562 <exit> aa: 66 90 xchg %ax,%ax ac: 66 90 xchg %ax,%ax ae: 66 90 xchg %ax,%ax 000000b0 <matchstar>: return 0; } // matchstar: search for c*re at beginning of text int matchstar(int c, char *re, char *text) { b0: 55 push %ebp b1: 89 e5 mov %esp,%ebp b3: 57 push %edi b4: 56 push %esi b5: 53 push %ebx b6: 83 ec 0c sub $0xc,%esp b9: 8b 75 08 mov 0x8(%ebp),%esi bc: 8b 7d 0c mov 0xc(%ebp),%edi bf: 8b 5d 10 mov 0x10(%ebp),%ebx c2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi do{ // a * matches zero or more instances if(matchhere(re, text)) c8: 83 ec 08 sub $0x8,%esp cb: 53 push %ebx cc: 57 push %edi cd: e8 3e 00 00 00 call 110 <matchhere> d2: 83 c4 10 add $0x10,%esp d5: 85 c0 test %eax,%eax d7: 75 1f jne f8 <matchstar+0x48> return 1; }while(*text!='\0' && (*text++==c || c=='.')); d9: 0f be 13 movsbl (%ebx),%edx dc: 84 d2 test %dl,%dl de: 74 0c je ec <matchstar+0x3c> e0: 83 c3 01 add $0x1,%ebx e3: 83 fe 2e cmp $0x2e,%esi e6: 74 e0 je c8 <matchstar+0x18> e8: 39 f2 cmp %esi,%edx ea: 74 dc je c8 <matchstar+0x18> return 0; } ec: 8d 65 f4 lea -0xc(%ebp),%esp ef: 5b pop %ebx f0: 5e pop %esi f1: 5f pop %edi f2: 5d pop %ebp f3: c3 ret f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi f8: 8d 65 f4 lea -0xc(%ebp),%esp // matchstar: search for c*re at beginning of text int matchstar(int c, char *re, char *text) { do{ // a * matches zero or more instances if(matchhere(re, text)) return 1; fb: b8 01 00 00 00 mov $0x1,%eax }while(*text!='\0' && (*text++==c || c=='.')); return 0; } 100: 5b pop %ebx 101: 5e pop %esi 102: 5f pop %edi 103: 5d pop %ebp 104: c3 ret 105: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 109: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000110 <matchhere>: return 0; } // matchhere: search for re at beginning of text int matchhere(char *re, char *text) { 110: 55 push %ebp 111: 89 e5 mov %esp,%ebp 113: 57 push %edi 114: 56 push %esi 115: 53 push %ebx 116: 83 ec 0c sub $0xc,%esp 119: 8b 45 08 mov 0x8(%ebp),%eax 11c: 8b 7d 0c mov 0xc(%ebp),%edi if(re[0] == '\0') 11f: 0f b6 18 movzbl (%eax),%ebx 122: 84 db test %bl,%bl 124: 74 63 je 189 <matchhere+0x79> return 1; if(re[1] == '*') 126: 0f be 50 01 movsbl 0x1(%eax),%edx 12a: 80 fa 2a cmp $0x2a,%dl 12d: 74 7b je 1aa <matchhere+0x9a> return matchstar(re[0], re+2, text); if(re[0] == '$' && re[1] == '\0') 12f: 80 fb 24 cmp $0x24,%bl 132: 75 08 jne 13c <matchhere+0x2c> 134: 84 d2 test %dl,%dl 136: 0f 84 8a 00 00 00 je 1c6 <matchhere+0xb6> return *text == '\0'; if(*text!='\0' && (re[0]=='.' || re[0]==*text)) 13c: 0f b6 37 movzbl (%edi),%esi 13f: 89 f1 mov %esi,%ecx 141: 84 c9 test %cl,%cl 143: 74 5b je 1a0 <matchhere+0x90> 145: 38 cb cmp %cl,%bl 147: 74 05 je 14e <matchhere+0x3e> 149: 80 fb 2e cmp $0x2e,%bl 14c: 75 52 jne 1a0 <matchhere+0x90> return matchhere(re+1, text+1); 14e: 83 c7 01 add $0x1,%edi 151: 83 c0 01 add $0x1,%eax } // matchhere: search for re at beginning of text int matchhere(char *re, char *text) { if(re[0] == '\0') 154: 84 d2 test %dl,%dl 156: 74 31 je 189 <matchhere+0x79> return 1; if(re[1] == '*') 158: 0f b6 58 01 movzbl 0x1(%eax),%ebx 15c: 80 fb 2a cmp $0x2a,%bl 15f: 74 4c je 1ad <matchhere+0x9d> return matchstar(re[0], re+2, text); if(re[0] == '$' && re[1] == '\0') 161: 80 fa 24 cmp $0x24,%dl 164: 75 04 jne 16a <matchhere+0x5a> 166: 84 db test %bl,%bl 168: 74 5c je 1c6 <matchhere+0xb6> return *text == '\0'; if(*text!='\0' && (re[0]=='.' || re[0]==*text)) 16a: 0f b6 37 movzbl (%edi),%esi 16d: 89 f1 mov %esi,%ecx 16f: 84 c9 test %cl,%cl 171: 74 2d je 1a0 <matchhere+0x90> 173: 80 fa 2e cmp $0x2e,%dl 176: 74 04 je 17c <matchhere+0x6c> 178: 38 d1 cmp %dl,%cl 17a: 75 24 jne 1a0 <matchhere+0x90> 17c: 0f be d3 movsbl %bl,%edx return matchhere(re+1, text+1); 17f: 83 c7 01 add $0x1,%edi 182: 83 c0 01 add $0x1,%eax } // matchhere: search for re at beginning of text int matchhere(char *re, char *text) { if(re[0] == '\0') 185: 84 d2 test %dl,%dl 187: 75 cf jne 158 <matchhere+0x48> return 1; 189: b8 01 00 00 00 mov $0x1,%eax if(re[0] == '$' && re[1] == '\0') return *text == '\0'; if(*text!='\0' && (re[0]=='.' || re[0]==*text)) return matchhere(re+1, text+1); return 0; } 18e: 8d 65 f4 lea -0xc(%ebp),%esp 191: 5b pop %ebx 192: 5e pop %esi 193: 5f pop %edi 194: 5d pop %ebp 195: c3 ret 196: 8d 76 00 lea 0x0(%esi),%esi 199: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 1a0: 8d 65 f4 lea -0xc(%ebp),%esp return matchstar(re[0], re+2, text); if(re[0] == '$' && re[1] == '\0') return *text == '\0'; if(*text!='\0' && (re[0]=='.' || re[0]==*text)) return matchhere(re+1, text+1); return 0; 1a3: 31 c0 xor %eax,%eax } 1a5: 5b pop %ebx 1a6: 5e pop %esi 1a7: 5f pop %edi 1a8: 5d pop %ebp 1a9: c3 ret // matchhere: search for re at beginning of text int matchhere(char *re, char *text) { if(re[0] == '\0') return 1; if(re[1] == '*') 1aa: 0f be d3 movsbl %bl,%edx return matchstar(re[0], re+2, text); 1ad: 83 ec 04 sub $0x4,%esp 1b0: 83 c0 02 add $0x2,%eax 1b3: 57 push %edi 1b4: 50 push %eax 1b5: 52 push %edx 1b6: e8 f5 fe ff ff call b0 <matchstar> 1bb: 83 c4 10 add $0x10,%esp if(re[0] == '$' && re[1] == '\0') return *text == '\0'; if(*text!='\0' && (re[0]=='.' || re[0]==*text)) return matchhere(re+1, text+1); return 0; } 1be: 8d 65 f4 lea -0xc(%ebp),%esp 1c1: 5b pop %ebx 1c2: 5e pop %esi 1c3: 5f pop %edi 1c4: 5d pop %ebp 1c5: c3 ret if(re[0] == '\0') return 1; if(re[1] == '*') return matchstar(re[0], re+2, text); if(re[0] == '$' && re[1] == '\0') return *text == '\0'; 1c6: 31 c0 xor %eax,%eax 1c8: 80 3f 00 cmpb $0x0,(%edi) 1cb: 0f 94 c0 sete %al 1ce: eb be jmp 18e <matchhere+0x7e> 000001d0 <match>: int matchhere(char*, char*); int matchstar(int, char*, char*); int match(char *re, char *text) { 1d0: 55 push %ebp 1d1: 89 e5 mov %esp,%ebp 1d3: 56 push %esi 1d4: 53 push %ebx 1d5: 8b 75 08 mov 0x8(%ebp),%esi 1d8: 8b 5d 0c mov 0xc(%ebp),%ebx if(re[0] == '^') 1db: 80 3e 5e cmpb $0x5e,(%esi) 1de: 75 11 jne 1f1 <match+0x21> 1e0: eb 2c jmp 20e <match+0x3e> 1e2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi return matchhere(re+1, text); do{ // must look at empty string if(matchhere(re, text)) return 1; }while(*text++ != '\0'); 1e8: 83 c3 01 add $0x1,%ebx 1eb: 80 7b ff 00 cmpb $0x0,-0x1(%ebx) 1ef: 74 16 je 207 <match+0x37> match(char *re, char *text) { if(re[0] == '^') return matchhere(re+1, text); do{ // must look at empty string if(matchhere(re, text)) 1f1: 83 ec 08 sub $0x8,%esp 1f4: 53 push %ebx 1f5: 56 push %esi 1f6: e8 15 ff ff ff call 110 <matchhere> 1fb: 83 c4 10 add $0x10,%esp 1fe: 85 c0 test %eax,%eax 200: 74 e6 je 1e8 <match+0x18> return 1; 202: b8 01 00 00 00 mov $0x1,%eax }while(*text++ != '\0'); return 0; } 207: 8d 65 f8 lea -0x8(%ebp),%esp 20a: 5b pop %ebx 20b: 5e pop %esi 20c: 5d pop %ebp 20d: c3 ret int match(char *re, char *text) { if(re[0] == '^') return matchhere(re+1, text); 20e: 83 c6 01 add $0x1,%esi 211: 89 75 08 mov %esi,0x8(%ebp) do{ // must look at empty string if(matchhere(re, text)) return 1; }while(*text++ != '\0'); return 0; } 214: 8d 65 f8 lea -0x8(%ebp),%esp 217: 5b pop %ebx 218: 5e pop %esi 219: 5d pop %ebp int match(char *re, char *text) { if(re[0] == '^') return matchhere(re+1, text); 21a: e9 f1 fe ff ff jmp 110 <matchhere> 21f: 90 nop 00000220 <grep>: char buf[1024]; int match(char*, char*); void grep(char *pattern, int fd) { 220: 55 push %ebp 221: 89 e5 mov %esp,%ebp 223: 57 push %edi 224: 56 push %esi 225: 53 push %ebx 226: 83 ec 1c sub $0x1c,%esp 229: 8b 75 08 mov 0x8(%ebp),%esi int n, m; char *p, *q; m = 0; 22c: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 233: 90 nop 234: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi while((n = read(fd, buf+m, sizeof(buf)-m-1)) > 0){ 238: 8b 4d e4 mov -0x1c(%ebp),%ecx 23b: b8 ff 03 00 00 mov $0x3ff,%eax 240: 83 ec 04 sub $0x4,%esp 243: 29 c8 sub %ecx,%eax 245: 50 push %eax 246: 8d 81 c0 0d 00 00 lea 0xdc0(%ecx),%eax 24c: 50 push %eax 24d: ff 75 0c pushl 0xc(%ebp) 250: e8 25 03 00 00 call 57a <read> 255: 83 c4 10 add $0x10,%esp 258: 85 c0 test %eax,%eax 25a: 0f 8e ac 00 00 00 jle 30c <grep+0xec> m += n; 260: 01 45 e4 add %eax,-0x1c(%ebp) buf[m] = '\0'; p = buf; 263: bb c0 0d 00 00 mov $0xdc0,%ebx int n, m; char *p, *q; m = 0; while((n = read(fd, buf+m, sizeof(buf)-m-1)) > 0){ m += n; 268: 8b 55 e4 mov -0x1c(%ebp),%edx buf[m] = '\0'; 26b: c6 82 c0 0d 00 00 00 movb $0x0,0xdc0(%edx) 272: 8d b6 00 00 00 00 lea 0x0(%esi),%esi p = buf; while((q = strchr(p, '\n')) != 0){ 278: 83 ec 08 sub $0x8,%esp 27b: 6a 0a push $0xa 27d: 53 push %ebx 27e: e8 6d 01 00 00 call 3f0 <strchr> 283: 83 c4 10 add $0x10,%esp 286: 85 c0 test %eax,%eax 288: 89 c7 mov %eax,%edi 28a: 74 3c je 2c8 <grep+0xa8> *q = 0; if(match(pattern, p)){ 28c: 83 ec 08 sub $0x8,%esp while((n = read(fd, buf+m, sizeof(buf)-m-1)) > 0){ m += n; buf[m] = '\0'; p = buf; while((q = strchr(p, '\n')) != 0){ *q = 0; 28f: c6 07 00 movb $0x0,(%edi) if(match(pattern, p)){ 292: 53 push %ebx 293: 56 push %esi 294: e8 37 ff ff ff call 1d0 <match> 299: 83 c4 10 add $0x10,%esp 29c: 85 c0 test %eax,%eax 29e: 75 08 jne 2a8 <grep+0x88> 2a0: 8d 5f 01 lea 0x1(%edi),%ebx 2a3: eb d3 jmp 278 <grep+0x58> 2a5: 8d 76 00 lea 0x0(%esi),%esi *q = '\n'; 2a8: c6 07 0a movb $0xa,(%edi) write(1, p, q+1 - p); 2ab: 83 c7 01 add $0x1,%edi 2ae: 83 ec 04 sub $0x4,%esp 2b1: 89 f8 mov %edi,%eax 2b3: 29 d8 sub %ebx,%eax 2b5: 50 push %eax 2b6: 53 push %ebx 2b7: 89 fb mov %edi,%ebx 2b9: 6a 01 push $0x1 2bb: e8 c2 02 00 00 call 582 <write> 2c0: 83 c4 10 add $0x10,%esp 2c3: eb b3 jmp 278 <grep+0x58> 2c5: 8d 76 00 lea 0x0(%esi),%esi } p = q+1; } if(p == buf) 2c8: 81 fb c0 0d 00 00 cmp $0xdc0,%ebx 2ce: 74 30 je 300 <grep+0xe0> m = 0; if(m > 0){ 2d0: 8b 45 e4 mov -0x1c(%ebp),%eax 2d3: 85 c0 test %eax,%eax 2d5: 0f 8e 5d ff ff ff jle 238 <grep+0x18> m -= p - buf; 2db: 89 d8 mov %ebx,%eax memmove(buf, p, m); 2dd: 83 ec 04 sub $0x4,%esp p = q+1; } if(p == buf) m = 0; if(m > 0){ m -= p - buf; 2e0: 2d c0 0d 00 00 sub $0xdc0,%eax 2e5: 29 45 e4 sub %eax,-0x1c(%ebp) 2e8: 8b 4d e4 mov -0x1c(%ebp),%ecx memmove(buf, p, m); 2eb: 51 push %ecx 2ec: 53 push %ebx 2ed: 68 c0 0d 00 00 push $0xdc0 2f2: e8 39 02 00 00 call 530 <memmove> 2f7: 83 c4 10 add $0x10,%esp 2fa: e9 39 ff ff ff jmp 238 <grep+0x18> 2ff: 90 nop write(1, p, q+1 - p); } p = q+1; } if(p == buf) m = 0; 300: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 307: e9 2c ff ff ff jmp 238 <grep+0x18> if(m > 0){ m -= p - buf; memmove(buf, p, m); } } } 30c: 8d 65 f4 lea -0xc(%ebp),%esp 30f: 5b pop %ebx 310: 5e pop %esi 311: 5f pop %edi 312: 5d pop %ebp 313: c3 ret 314: 66 90 xchg %ax,%ax 316: 66 90 xchg %ax,%ax 318: 66 90 xchg %ax,%ax 31a: 66 90 xchg %ax,%ax 31c: 66 90 xchg %ax,%ax 31e: 66 90 xchg %ax,%ax 00000320 <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, const char *t) { 320: 55 push %ebp 321: 89 e5 mov %esp,%ebp 323: 53 push %ebx 324: 8b 45 08 mov 0x8(%ebp),%eax 327: 8b 4d 0c mov 0xc(%ebp),%ecx char *os; os = s; while((*s++ = *t++) != 0) 32a: 89 c2 mov %eax,%edx 32c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 330: 83 c1 01 add $0x1,%ecx 333: 0f b6 59 ff movzbl -0x1(%ecx),%ebx 337: 83 c2 01 add $0x1,%edx 33a: 84 db test %bl,%bl 33c: 88 5a ff mov %bl,-0x1(%edx) 33f: 75 ef jne 330 <strcpy+0x10> ; return os; } 341: 5b pop %ebx 342: 5d pop %ebp 343: c3 ret 344: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 34a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 00000350 <strcmp>: int strcmp(const char *p, const char *q) { 350: 55 push %ebp 351: 89 e5 mov %esp,%ebp 353: 56 push %esi 354: 53 push %ebx 355: 8b 55 08 mov 0x8(%ebp),%edx 358: 8b 4d 0c mov 0xc(%ebp),%ecx while(*p && *p == *q) 35b: 0f b6 02 movzbl (%edx),%eax 35e: 0f b6 19 movzbl (%ecx),%ebx 361: 84 c0 test %al,%al 363: 75 1e jne 383 <strcmp+0x33> 365: eb 29 jmp 390 <strcmp+0x40> 367: 89 f6 mov %esi,%esi 369: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi p++, q++; 370: 83 c2 01 add $0x1,%edx } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 373: 0f b6 02 movzbl (%edx),%eax p++, q++; 376: 8d 71 01 lea 0x1(%ecx),%esi } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 379: 0f b6 59 01 movzbl 0x1(%ecx),%ebx 37d: 84 c0 test %al,%al 37f: 74 0f je 390 <strcmp+0x40> 381: 89 f1 mov %esi,%ecx 383: 38 d8 cmp %bl,%al 385: 74 e9 je 370 <strcmp+0x20> p++, q++; return (uchar)*p - (uchar)*q; 387: 29 d8 sub %ebx,%eax } 389: 5b pop %ebx 38a: 5e pop %esi 38b: 5d pop %ebp 38c: c3 ret 38d: 8d 76 00 lea 0x0(%esi),%esi } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 390: 31 c0 xor %eax,%eax p++, q++; return (uchar)*p - (uchar)*q; 392: 29 d8 sub %ebx,%eax } 394: 5b pop %ebx 395: 5e pop %esi 396: 5d pop %ebp 397: c3 ret 398: 90 nop 399: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 000003a0 <strlen>: uint strlen(const char *s) { 3a0: 55 push %ebp 3a1: 89 e5 mov %esp,%ebp 3a3: 8b 4d 08 mov 0x8(%ebp),%ecx int n; for(n = 0; s[n]; n++) 3a6: 80 39 00 cmpb $0x0,(%ecx) 3a9: 74 12 je 3bd <strlen+0x1d> 3ab: 31 d2 xor %edx,%edx 3ad: 8d 76 00 lea 0x0(%esi),%esi 3b0: 83 c2 01 add $0x1,%edx 3b3: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1) 3b7: 89 d0 mov %edx,%eax 3b9: 75 f5 jne 3b0 <strlen+0x10> ; return n; } 3bb: 5d pop %ebp 3bc: c3 ret uint strlen(const char *s) { int n; for(n = 0; s[n]; n++) 3bd: 31 c0 xor %eax,%eax ; return n; } 3bf: 5d pop %ebp 3c0: c3 ret 3c1: eb 0d jmp 3d0 <memset> 3c3: 90 nop 3c4: 90 nop 3c5: 90 nop 3c6: 90 nop 3c7: 90 nop 3c8: 90 nop 3c9: 90 nop 3ca: 90 nop 3cb: 90 nop 3cc: 90 nop 3cd: 90 nop 3ce: 90 nop 3cf: 90 nop 000003d0 <memset>: void* memset(void *dst, int c, uint n) { 3d0: 55 push %ebp 3d1: 89 e5 mov %esp,%ebp 3d3: 57 push %edi 3d4: 8b 55 08 mov 0x8(%ebp),%edx } static inline void stosb(void *addr, int data, int cnt) { asm volatile("cld; rep stosb" : 3d7: 8b 4d 10 mov 0x10(%ebp),%ecx 3da: 8b 45 0c mov 0xc(%ebp),%eax 3dd: 89 d7 mov %edx,%edi 3df: fc cld 3e0: f3 aa rep stos %al,%es:(%edi) stosb(dst, c, n); return dst; } 3e2: 89 d0 mov %edx,%eax 3e4: 5f pop %edi 3e5: 5d pop %ebp 3e6: c3 ret 3e7: 89 f6 mov %esi,%esi 3e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000003f0 <strchr>: char* strchr(const char *s, char c) { 3f0: 55 push %ebp 3f1: 89 e5 mov %esp,%ebp 3f3: 53 push %ebx 3f4: 8b 45 08 mov 0x8(%ebp),%eax 3f7: 8b 5d 0c mov 0xc(%ebp),%ebx for(; *s; s++) 3fa: 0f b6 10 movzbl (%eax),%edx 3fd: 84 d2 test %dl,%dl 3ff: 74 1d je 41e <strchr+0x2e> if(*s == c) 401: 38 d3 cmp %dl,%bl 403: 89 d9 mov %ebx,%ecx 405: 75 0d jne 414 <strchr+0x24> 407: eb 17 jmp 420 <strchr+0x30> 409: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 410: 38 ca cmp %cl,%dl 412: 74 0c je 420 <strchr+0x30> } char* strchr(const char *s, char c) { for(; *s; s++) 414: 83 c0 01 add $0x1,%eax 417: 0f b6 10 movzbl (%eax),%edx 41a: 84 d2 test %dl,%dl 41c: 75 f2 jne 410 <strchr+0x20> if(*s == c) return (char*)s; return 0; 41e: 31 c0 xor %eax,%eax } 420: 5b pop %ebx 421: 5d pop %ebp 422: c3 ret 423: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 429: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 00000430 <gets>: char* gets(char *buf, int max) { 430: 55 push %ebp 431: 89 e5 mov %esp,%ebp 433: 57 push %edi 434: 56 push %esi 435: 53 push %ebx int i, cc; char c; for(i=0; i+1 < max; ){ 436: 31 f6 xor %esi,%esi cc = read(0, &c, 1); 438: 8d 7d e7 lea -0x19(%ebp),%edi return 0; } char* gets(char *buf, int max) { 43b: 83 ec 1c sub $0x1c,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 43e: eb 29 jmp 469 <gets+0x39> cc = read(0, &c, 1); 440: 83 ec 04 sub $0x4,%esp 443: 6a 01 push $0x1 445: 57 push %edi 446: 6a 00 push $0x0 448: e8 2d 01 00 00 call 57a <read> if(cc < 1) 44d: 83 c4 10 add $0x10,%esp 450: 85 c0 test %eax,%eax 452: 7e 1d jle 471 <gets+0x41> break; buf[i++] = c; 454: 0f b6 45 e7 movzbl -0x19(%ebp),%eax 458: 8b 55 08 mov 0x8(%ebp),%edx 45b: 89 de mov %ebx,%esi if(c == '\n' || c == '\r') 45d: 3c 0a cmp $0xa,%al for(i=0; i+1 < max; ){ cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; 45f: 88 44 1a ff mov %al,-0x1(%edx,%ebx,1) if(c == '\n' || c == '\r') 463: 74 1b je 480 <gets+0x50> 465: 3c 0d cmp $0xd,%al 467: 74 17 je 480 <gets+0x50> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 469: 8d 5e 01 lea 0x1(%esi),%ebx 46c: 3b 5d 0c cmp 0xc(%ebp),%ebx 46f: 7c cf jl 440 <gets+0x10> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 471: 8b 45 08 mov 0x8(%ebp),%eax 474: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 478: 8d 65 f4 lea -0xc(%ebp),%esp 47b: 5b pop %ebx 47c: 5e pop %esi 47d: 5f pop %edi 47e: 5d pop %ebp 47f: c3 ret break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 480: 8b 45 08 mov 0x8(%ebp),%eax gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 483: 89 de mov %ebx,%esi break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 485: c6 04 30 00 movb $0x0,(%eax,%esi,1) return buf; } 489: 8d 65 f4 lea -0xc(%ebp),%esp 48c: 5b pop %ebx 48d: 5e pop %esi 48e: 5f pop %edi 48f: 5d pop %ebp 490: c3 ret 491: eb 0d jmp 4a0 <stat> 493: 90 nop 494: 90 nop 495: 90 nop 496: 90 nop 497: 90 nop 498: 90 nop 499: 90 nop 49a: 90 nop 49b: 90 nop 49c: 90 nop 49d: 90 nop 49e: 90 nop 49f: 90 nop 000004a0 <stat>: int stat(const char *n, struct stat *st) { 4a0: 55 push %ebp 4a1: 89 e5 mov %esp,%ebp 4a3: 56 push %esi 4a4: 53 push %ebx int fd; int r; fd = open(n, O_RDONLY); 4a5: 83 ec 08 sub $0x8,%esp 4a8: 6a 00 push $0x0 4aa: ff 75 08 pushl 0x8(%ebp) 4ad: e8 f0 00 00 00 call 5a2 <open> if(fd < 0) 4b2: 83 c4 10 add $0x10,%esp 4b5: 85 c0 test %eax,%eax 4b7: 78 27 js 4e0 <stat+0x40> return -1; r = fstat(fd, st); 4b9: 83 ec 08 sub $0x8,%esp 4bc: ff 75 0c pushl 0xc(%ebp) 4bf: 89 c3 mov %eax,%ebx 4c1: 50 push %eax 4c2: e8 f3 00 00 00 call 5ba <fstat> 4c7: 89 c6 mov %eax,%esi close(fd); 4c9: 89 1c 24 mov %ebx,(%esp) 4cc: e8 b9 00 00 00 call 58a <close> return r; 4d1: 83 c4 10 add $0x10,%esp 4d4: 89 f0 mov %esi,%eax } 4d6: 8d 65 f8 lea -0x8(%ebp),%esp 4d9: 5b pop %ebx 4da: 5e pop %esi 4db: 5d pop %ebp 4dc: c3 ret 4dd: 8d 76 00 lea 0x0(%esi),%esi int fd; int r; fd = open(n, O_RDONLY); if(fd < 0) return -1; 4e0: b8 ff ff ff ff mov $0xffffffff,%eax 4e5: eb ef jmp 4d6 <stat+0x36> 4e7: 89 f6 mov %esi,%esi 4e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 000004f0 <atoi>: return r; } int atoi(const char *s) { 4f0: 55 push %ebp 4f1: 89 e5 mov %esp,%ebp 4f3: 53 push %ebx 4f4: 8b 4d 08 mov 0x8(%ebp),%ecx int n; n = 0; while('0' <= *s && *s <= '9') 4f7: 0f be 11 movsbl (%ecx),%edx 4fa: 8d 42 d0 lea -0x30(%edx),%eax 4fd: 3c 09 cmp $0x9,%al 4ff: b8 00 00 00 00 mov $0x0,%eax 504: 77 1f ja 525 <atoi+0x35> 506: 8d 76 00 lea 0x0(%esi),%esi 509: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi n = n*10 + *s++ - '0'; 510: 8d 04 80 lea (%eax,%eax,4),%eax 513: 83 c1 01 add $0x1,%ecx 516: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 51a: 0f be 11 movsbl (%ecx),%edx 51d: 8d 5a d0 lea -0x30(%edx),%ebx 520: 80 fb 09 cmp $0x9,%bl 523: 76 eb jbe 510 <atoi+0x20> n = n*10 + *s++ - '0'; return n; } 525: 5b pop %ebx 526: 5d pop %ebp 527: c3 ret 528: 90 nop 529: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 00000530 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 530: 55 push %ebp 531: 89 e5 mov %esp,%ebp 533: 56 push %esi 534: 53 push %ebx 535: 8b 5d 10 mov 0x10(%ebp),%ebx 538: 8b 45 08 mov 0x8(%ebp),%eax 53b: 8b 75 0c mov 0xc(%ebp),%esi char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 53e: 85 db test %ebx,%ebx 540: 7e 14 jle 556 <memmove+0x26> 542: 31 d2 xor %edx,%edx 544: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi *dst++ = *src++; 548: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx 54c: 88 0c 10 mov %cl,(%eax,%edx,1) 54f: 83 c2 01 add $0x1,%edx char *dst; const char *src; dst = vdst; src = vsrc; while(n-- > 0) 552: 39 da cmp %ebx,%edx 554: 75 f2 jne 548 <memmove+0x18> *dst++ = *src++; return vdst; } 556: 5b pop %ebx 557: 5e pop %esi 558: 5d pop %ebp 559: c3 ret 0000055a <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 55a: b8 01 00 00 00 mov $0x1,%eax 55f: cd 40 int $0x40 561: c3 ret 00000562 <exit>: SYSCALL(exit) 562: b8 02 00 00 00 mov $0x2,%eax 567: cd 40 int $0x40 569: c3 ret 0000056a <wait>: SYSCALL(wait) 56a: b8 03 00 00 00 mov $0x3,%eax 56f: cd 40 int $0x40 571: c3 ret 00000572 <pipe>: SYSCALL(pipe) 572: b8 04 00 00 00 mov $0x4,%eax 577: cd 40 int $0x40 579: c3 ret 0000057a <read>: SYSCALL(read) 57a: b8 05 00 00 00 mov $0x5,%eax 57f: cd 40 int $0x40 581: c3 ret 00000582 <write>: SYSCALL(write) 582: b8 10 00 00 00 mov $0x10,%eax 587: cd 40 int $0x40 589: c3 ret 0000058a <close>: SYSCALL(close) 58a: b8 15 00 00 00 mov $0x15,%eax 58f: cd 40 int $0x40 591: c3 ret 00000592 <kill>: SYSCALL(kill) 592: b8 06 00 00 00 mov $0x6,%eax 597: cd 40 int $0x40 599: c3 ret 0000059a <exec>: SYSCALL(exec) 59a: b8 07 00 00 00 mov $0x7,%eax 59f: cd 40 int $0x40 5a1: c3 ret 000005a2 <open>: SYSCALL(open) 5a2: b8 0f 00 00 00 mov $0xf,%eax 5a7: cd 40 int $0x40 5a9: c3 ret 000005aa <mknod>: SYSCALL(mknod) 5aa: b8 11 00 00 00 mov $0x11,%eax 5af: cd 40 int $0x40 5b1: c3 ret 000005b2 <unlink>: SYSCALL(unlink) 5b2: b8 12 00 00 00 mov $0x12,%eax 5b7: cd 40 int $0x40 5b9: c3 ret 000005ba <fstat>: SYSCALL(fstat) 5ba: b8 08 00 00 00 mov $0x8,%eax 5bf: cd 40 int $0x40 5c1: c3 ret 000005c2 <link>: SYSCALL(link) 5c2: b8 13 00 00 00 mov $0x13,%eax 5c7: cd 40 int $0x40 5c9: c3 ret 000005ca <mkdir>: SYSCALL(mkdir) 5ca: b8 14 00 00 00 mov $0x14,%eax 5cf: cd 40 int $0x40 5d1: c3 ret 000005d2 <chdir>: SYSCALL(chdir) 5d2: b8 09 00 00 00 mov $0x9,%eax 5d7: cd 40 int $0x40 5d9: c3 ret 000005da <dup>: SYSCALL(dup) 5da: b8 0a 00 00 00 mov $0xa,%eax 5df: cd 40 int $0x40 5e1: c3 ret 000005e2 <getpid>: SYSCALL(getpid) 5e2: b8 0b 00 00 00 mov $0xb,%eax 5e7: cd 40 int $0x40 5e9: c3 ret 000005ea <sbrk>: SYSCALL(sbrk) 5ea: b8 0c 00 00 00 mov $0xc,%eax 5ef: cd 40 int $0x40 5f1: c3 ret 000005f2 <sleep>: SYSCALL(sleep) 5f2: b8 0d 00 00 00 mov $0xd,%eax 5f7: cd 40 int $0x40 5f9: c3 ret 000005fa <uptime>: SYSCALL(uptime) 5fa: b8 0e 00 00 00 mov $0xe,%eax 5ff: cd 40 int $0x40 601: c3 ret 00000602 <getreadcount>: SYSCALL(getreadcount) 602: b8 16 00 00 00 mov $0x16,%eax 607: cd 40 int $0x40 609: c3 ret 60a: 66 90 xchg %ax,%ax 60c: 66 90 xchg %ax,%ax 60e: 66 90 xchg %ax,%ax 00000610 <printint>: write(fd, &c, 1); } static void printint(int fd, int xx, int base, int sgn) { 610: 55 push %ebp 611: 89 e5 mov %esp,%ebp 613: 57 push %edi 614: 56 push %esi 615: 53 push %ebx 616: 89 c6 mov %eax,%esi 618: 83 ec 3c sub $0x3c,%esp char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 61b: 8b 5d 08 mov 0x8(%ebp),%ebx 61e: 85 db test %ebx,%ebx 620: 74 7e je 6a0 <printint+0x90> 622: 89 d0 mov %edx,%eax 624: c1 e8 1f shr $0x1f,%eax 627: 84 c0 test %al,%al 629: 74 75 je 6a0 <printint+0x90> neg = 1; x = -xx; 62b: 89 d0 mov %edx,%eax int i, neg; uint x; neg = 0; if(sgn && xx < 0){ neg = 1; 62d: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp) x = -xx; 634: f7 d8 neg %eax 636: 89 75 c0 mov %esi,-0x40(%ebp) } else { x = xx; } i = 0; 639: 31 ff xor %edi,%edi 63b: 8d 5d d7 lea -0x29(%ebp),%ebx 63e: 89 ce mov %ecx,%esi 640: eb 08 jmp 64a <printint+0x3a> 642: 8d b6 00 00 00 00 lea 0x0(%esi),%esi do{ buf[i++] = digits[x % base]; 648: 89 cf mov %ecx,%edi 64a: 31 d2 xor %edx,%edx 64c: 8d 4f 01 lea 0x1(%edi),%ecx 64f: f7 f6 div %esi 651: 0f b6 92 10 0a 00 00 movzbl 0xa10(%edx),%edx }while((x /= base) != 0); 658: 85 c0 test %eax,%eax x = xx; } i = 0; do{ buf[i++] = digits[x % base]; 65a: 88 14 0b mov %dl,(%ebx,%ecx,1) }while((x /= base) != 0); 65d: 75 e9 jne 648 <printint+0x38> if(neg) 65f: 8b 45 c4 mov -0x3c(%ebp),%eax 662: 8b 75 c0 mov -0x40(%ebp),%esi 665: 85 c0 test %eax,%eax 667: 74 08 je 671 <printint+0x61> buf[i++] = '-'; 669: c6 44 0d d8 2d movb $0x2d,-0x28(%ebp,%ecx,1) 66e: 8d 4f 02 lea 0x2(%edi),%ecx 671: 8d 7c 0d d7 lea -0x29(%ebp,%ecx,1),%edi 675: 8d 76 00 lea 0x0(%esi),%esi 678: 0f b6 07 movzbl (%edi),%eax #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 67b: 83 ec 04 sub $0x4,%esp 67e: 83 ef 01 sub $0x1,%edi 681: 6a 01 push $0x1 683: 53 push %ebx 684: 56 push %esi 685: 88 45 d7 mov %al,-0x29(%ebp) 688: e8 f5 fe ff ff call 582 <write> buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 68d: 83 c4 10 add $0x10,%esp 690: 39 df cmp %ebx,%edi 692: 75 e4 jne 678 <printint+0x68> putc(fd, buf[i]); } 694: 8d 65 f4 lea -0xc(%ebp),%esp 697: 5b pop %ebx 698: 5e pop %esi 699: 5f pop %edi 69a: 5d pop %ebp 69b: c3 ret 69c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; } else { x = xx; 6a0: 89 d0 mov %edx,%eax static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 6a2: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp) 6a9: eb 8b jmp 636 <printint+0x26> 6ab: 90 nop 6ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 000006b0 <printf>: } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 6b0: 55 push %ebp 6b1: 89 e5 mov %esp,%ebp 6b3: 57 push %edi 6b4: 56 push %esi 6b5: 53 push %ebx int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 6b6: 8d 45 10 lea 0x10(%ebp),%eax } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 6b9: 83 ec 2c sub $0x2c,%esp int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 6bc: 8b 75 0c mov 0xc(%ebp),%esi } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, const char *fmt, ...) { 6bf: 8b 7d 08 mov 0x8(%ebp),%edi int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 6c2: 89 45 d0 mov %eax,-0x30(%ebp) 6c5: 0f b6 1e movzbl (%esi),%ebx 6c8: 83 c6 01 add $0x1,%esi 6cb: 84 db test %bl,%bl 6cd: 0f 84 b0 00 00 00 je 783 <printf+0xd3> 6d3: 31 d2 xor %edx,%edx 6d5: eb 39 jmp 710 <printf+0x60> 6d7: 89 f6 mov %esi,%esi 6d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 6e0: 83 f8 25 cmp $0x25,%eax 6e3: 89 55 d4 mov %edx,-0x2c(%ebp) state = '%'; 6e6: ba 25 00 00 00 mov $0x25,%edx state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 6eb: 74 18 je 705 <printf+0x55> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 6ed: 8d 45 e2 lea -0x1e(%ebp),%eax 6f0: 83 ec 04 sub $0x4,%esp 6f3: 88 5d e2 mov %bl,-0x1e(%ebp) 6f6: 6a 01 push $0x1 6f8: 50 push %eax 6f9: 57 push %edi 6fa: e8 83 fe ff ff call 582 <write> 6ff: 8b 55 d4 mov -0x2c(%ebp),%edx 702: 83 c4 10 add $0x10,%esp 705: 83 c6 01 add $0x1,%esi int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 708: 0f b6 5e ff movzbl -0x1(%esi),%ebx 70c: 84 db test %bl,%bl 70e: 74 73 je 783 <printf+0xd3> c = fmt[i] & 0xff; if(state == 0){ 710: 85 d2 test %edx,%edx uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; 712: 0f be cb movsbl %bl,%ecx 715: 0f b6 c3 movzbl %bl,%eax if(state == 0){ 718: 74 c6 je 6e0 <printf+0x30> if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 71a: 83 fa 25 cmp $0x25,%edx 71d: 75 e6 jne 705 <printf+0x55> if(c == 'd'){ 71f: 83 f8 64 cmp $0x64,%eax 722: 0f 84 f8 00 00 00 je 820 <printf+0x170> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 728: 81 e1 f7 00 00 00 and $0xf7,%ecx 72e: 83 f9 70 cmp $0x70,%ecx 731: 74 5d je 790 <printf+0xe0> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 733: 83 f8 73 cmp $0x73,%eax 736: 0f 84 84 00 00 00 je 7c0 <printf+0x110> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 73c: 83 f8 63 cmp $0x63,%eax 73f: 0f 84 ea 00 00 00 je 82f <printf+0x17f> putc(fd, *ap); ap++; } else if(c == '%'){ 745: 83 f8 25 cmp $0x25,%eax 748: 0f 84 c2 00 00 00 je 810 <printf+0x160> #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 74e: 8d 45 e7 lea -0x19(%ebp),%eax 751: 83 ec 04 sub $0x4,%esp 754: c6 45 e7 25 movb $0x25,-0x19(%ebp) 758: 6a 01 push $0x1 75a: 50 push %eax 75b: 57 push %edi 75c: e8 21 fe ff ff call 582 <write> 761: 83 c4 0c add $0xc,%esp 764: 8d 45 e6 lea -0x1a(%ebp),%eax 767: 88 5d e6 mov %bl,-0x1a(%ebp) 76a: 6a 01 push $0x1 76c: 50 push %eax 76d: 57 push %edi 76e: 83 c6 01 add $0x1,%esi 771: e8 0c fe ff ff call 582 <write> int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 776: 0f b6 5e ff movzbl -0x1(%esi),%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 77a: 83 c4 10 add $0x10,%esp } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 77d: 31 d2 xor %edx,%edx int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 77f: 84 db test %bl,%bl 781: 75 8d jne 710 <printf+0x60> putc(fd, c); } state = 0; } } } 783: 8d 65 f4 lea -0xc(%ebp),%esp 786: 5b pop %ebx 787: 5e pop %esi 788: 5f pop %edi 789: 5d pop %ebp 78a: c3 ret 78b: 90 nop 78c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); 790: 83 ec 0c sub $0xc,%esp 793: b9 10 00 00 00 mov $0x10,%ecx 798: 6a 00 push $0x0 79a: 8b 5d d0 mov -0x30(%ebp),%ebx 79d: 89 f8 mov %edi,%eax 79f: 8b 13 mov (%ebx),%edx 7a1: e8 6a fe ff ff call 610 <printint> ap++; 7a6: 89 d8 mov %ebx,%eax 7a8: 83 c4 10 add $0x10,%esp } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 7ab: 31 d2 xor %edx,%edx if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); ap++; 7ad: 83 c0 04 add $0x4,%eax 7b0: 89 45 d0 mov %eax,-0x30(%ebp) 7b3: e9 4d ff ff ff jmp 705 <printf+0x55> 7b8: 90 nop 7b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi } else if(c == 's'){ s = (char*)*ap; 7c0: 8b 45 d0 mov -0x30(%ebp),%eax 7c3: 8b 18 mov (%eax),%ebx ap++; 7c5: 83 c0 04 add $0x4,%eax 7c8: 89 45 d0 mov %eax,-0x30(%ebp) if(s == 0) s = "(null)"; 7cb: b8 06 0a 00 00 mov $0xa06,%eax 7d0: 85 db test %ebx,%ebx 7d2: 0f 44 d8 cmove %eax,%ebx while(*s != 0){ 7d5: 0f b6 03 movzbl (%ebx),%eax 7d8: 84 c0 test %al,%al 7da: 74 23 je 7ff <printf+0x14f> 7dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 7e0: 88 45 e3 mov %al,-0x1d(%ebp) #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 7e3: 8d 45 e3 lea -0x1d(%ebp),%eax 7e6: 83 ec 04 sub $0x4,%esp 7e9: 6a 01 push $0x1 ap++; if(s == 0) s = "(null)"; while(*s != 0){ putc(fd, *s); s++; 7eb: 83 c3 01 add $0x1,%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 7ee: 50 push %eax 7ef: 57 push %edi 7f0: e8 8d fd ff ff call 582 <write> } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 7f5: 0f b6 03 movzbl (%ebx),%eax 7f8: 83 c4 10 add $0x10,%esp 7fb: 84 c0 test %al,%al 7fd: 75 e1 jne 7e0 <printf+0x130> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 7ff: 31 d2 xor %edx,%edx 801: e9 ff fe ff ff jmp 705 <printf+0x55> 806: 8d 76 00 lea 0x0(%esi),%esi 809: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 810: 83 ec 04 sub $0x4,%esp 813: 88 5d e5 mov %bl,-0x1b(%ebp) 816: 8d 45 e5 lea -0x1b(%ebp),%eax 819: 6a 01 push $0x1 81b: e9 4c ff ff ff jmp 76c <printf+0xbc> } else { putc(fd, c); } } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); 820: 83 ec 0c sub $0xc,%esp 823: b9 0a 00 00 00 mov $0xa,%ecx 828: 6a 01 push $0x1 82a: e9 6b ff ff ff jmp 79a <printf+0xea> 82f: 8b 5d d0 mov -0x30(%ebp),%ebx #include "user.h" static void putc(int fd, char c) { write(fd, &c, 1); 832: 83 ec 04 sub $0x4,%esp 835: 8b 03 mov (%ebx),%eax 837: 6a 01 push $0x1 839: 88 45 e4 mov %al,-0x1c(%ebp) 83c: 8d 45 e4 lea -0x1c(%ebp),%eax 83f: 50 push %eax 840: 57 push %edi 841: e8 3c fd ff ff call 582 <write> 846: e9 5b ff ff ff jmp 7a6 <printf+0xf6> 84b: 66 90 xchg %ax,%ax 84d: 66 90 xchg %ax,%ax 84f: 90 nop 00000850 <free>: static Header base; static Header *freep; void free(void *ap) { 850: 55 push %ebp Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 851: a1 a0 0d 00 00 mov 0xda0,%eax static Header base; static Header *freep; void free(void *ap) { 856: 89 e5 mov %esp,%ebp 858: 57 push %edi 859: 56 push %esi 85a: 53 push %ebx 85b: 8b 5d 08 mov 0x8(%ebp),%ebx Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 85e: 8b 10 mov (%eax),%edx void free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; 860: 8d 4b f8 lea -0x8(%ebx),%ecx for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 863: 39 c8 cmp %ecx,%eax 865: 73 19 jae 880 <free+0x30> 867: 89 f6 mov %esi,%esi 869: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 870: 39 d1 cmp %edx,%ecx 872: 72 1c jb 890 <free+0x40> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 874: 39 d0 cmp %edx,%eax 876: 73 18 jae 890 <free+0x40> static Header base; static Header *freep; void free(void *ap) { 878: 89 d0 mov %edx,%eax Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 87a: 39 c8 cmp %ecx,%eax if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 87c: 8b 10 mov (%eax),%edx free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 87e: 72 f0 jb 870 <free+0x20> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 880: 39 d0 cmp %edx,%eax 882: 72 f4 jb 878 <free+0x28> 884: 39 d1 cmp %edx,%ecx 886: 73 f0 jae 878 <free+0x28> 888: 90 nop 889: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi break; if(bp + bp->s.size == p->s.ptr){ 890: 8b 73 fc mov -0x4(%ebx),%esi 893: 8d 3c f1 lea (%ecx,%esi,8),%edi 896: 39 d7 cmp %edx,%edi 898: 74 19 je 8b3 <free+0x63> bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; 89a: 89 53 f8 mov %edx,-0x8(%ebx) if(p + p->s.size == bp){ 89d: 8b 50 04 mov 0x4(%eax),%edx 8a0: 8d 34 d0 lea (%eax,%edx,8),%esi 8a3: 39 f1 cmp %esi,%ecx 8a5: 74 23 je 8ca <free+0x7a> p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; 8a7: 89 08 mov %ecx,(%eax) freep = p; 8a9: a3 a0 0d 00 00 mov %eax,0xda0 } 8ae: 5b pop %ebx 8af: 5e pop %esi 8b0: 5f pop %edi 8b1: 5d pop %ebp 8b2: c3 ret bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ bp->s.size += p->s.ptr->s.size; 8b3: 03 72 04 add 0x4(%edx),%esi 8b6: 89 73 fc mov %esi,-0x4(%ebx) bp->s.ptr = p->s.ptr->s.ptr; 8b9: 8b 10 mov (%eax),%edx 8bb: 8b 12 mov (%edx),%edx 8bd: 89 53 f8 mov %edx,-0x8(%ebx) } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ 8c0: 8b 50 04 mov 0x4(%eax),%edx 8c3: 8d 34 d0 lea (%eax,%edx,8),%esi 8c6: 39 f1 cmp %esi,%ecx 8c8: 75 dd jne 8a7 <free+0x57> p->s.size += bp->s.size; 8ca: 03 53 fc add -0x4(%ebx),%edx p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; freep = p; 8cd: a3 a0 0d 00 00 mov %eax,0xda0 bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ p->s.size += bp->s.size; 8d2: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; 8d5: 8b 53 f8 mov -0x8(%ebx),%edx 8d8: 89 10 mov %edx,(%eax) } else p->s.ptr = bp; freep = p; } 8da: 5b pop %ebx 8db: 5e pop %esi 8dc: 5f pop %edi 8dd: 5d pop %ebp 8de: c3 ret 8df: 90 nop 000008e0 <malloc>: return freep; } void* malloc(uint nbytes) { 8e0: 55 push %ebp 8e1: 89 e5 mov %esp,%ebp 8e3: 57 push %edi 8e4: 56 push %esi 8e5: 53 push %ebx 8e6: 83 ec 0c sub $0xc,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 8e9: 8b 45 08 mov 0x8(%ebp),%eax if((prevp = freep) == 0){ 8ec: 8b 15 a0 0d 00 00 mov 0xda0,%edx malloc(uint nbytes) { Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; 8f2: 8d 78 07 lea 0x7(%eax),%edi 8f5: c1 ef 03 shr $0x3,%edi 8f8: 83 c7 01 add $0x1,%edi if((prevp = freep) == 0){ 8fb: 85 d2 test %edx,%edx 8fd: 0f 84 a3 00 00 00 je 9a6 <malloc+0xc6> 903: 8b 02 mov (%edx),%eax 905: 8b 48 04 mov 0x4(%eax),%ecx base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ 908: 39 cf cmp %ecx,%edi 90a: 76 74 jbe 980 <malloc+0xa0> 90c: 81 ff 00 10 00 00 cmp $0x1000,%edi 912: be 00 10 00 00 mov $0x1000,%esi 917: 8d 1c fd 00 00 00 00 lea 0x0(,%edi,8),%ebx 91e: 0f 43 f7 cmovae %edi,%esi 921: ba 00 80 00 00 mov $0x8000,%edx 926: 81 ff ff 0f 00 00 cmp $0xfff,%edi 92c: 0f 46 da cmovbe %edx,%ebx 92f: eb 10 jmp 941 <malloc+0x61> 931: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 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){ 938: 8b 02 mov (%edx),%eax if(p->s.size >= nunits){ 93a: 8b 48 04 mov 0x4(%eax),%ecx 93d: 39 cf cmp %ecx,%edi 93f: 76 3f jbe 980 <malloc+0xa0> p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) 941: 39 05 a0 0d 00 00 cmp %eax,0xda0 947: 89 c2 mov %eax,%edx 949: 75 ed jne 938 <malloc+0x58> char *p; Header *hp; if(nu < 4096) nu = 4096; p = sbrk(nu * sizeof(Header)); 94b: 83 ec 0c sub $0xc,%esp 94e: 53 push %ebx 94f: e8 96 fc ff ff call 5ea <sbrk> if(p == (char*)-1) 954: 83 c4 10 add $0x10,%esp 957: 83 f8 ff cmp $0xffffffff,%eax 95a: 74 1c je 978 <malloc+0x98> return 0; hp = (Header*)p; hp->s.size = nu; 95c: 89 70 04 mov %esi,0x4(%eax) free((void*)(hp + 1)); 95f: 83 ec 0c sub $0xc,%esp 962: 83 c0 08 add $0x8,%eax 965: 50 push %eax 966: e8 e5 fe ff ff call 850 <free> return freep; 96b: 8b 15 a0 0d 00 00 mov 0xda0,%edx } freep = prevp; return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) 971: 83 c4 10 add $0x10,%esp 974: 85 d2 test %edx,%edx 976: 75 c0 jne 938 <malloc+0x58> return 0; 978: 31 c0 xor %eax,%eax 97a: eb 1c jmp 998 <malloc+0xb8> 97c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ if(p->s.size == nunits) 980: 39 cf cmp %ecx,%edi 982: 74 1c je 9a0 <malloc+0xc0> prevp->s.ptr = p->s.ptr; else { p->s.size -= nunits; 984: 29 f9 sub %edi,%ecx 986: 89 48 04 mov %ecx,0x4(%eax) p += p->s.size; 989: 8d 04 c8 lea (%eax,%ecx,8),%eax p->s.size = nunits; 98c: 89 78 04 mov %edi,0x4(%eax) } freep = prevp; 98f: 89 15 a0 0d 00 00 mov %edx,0xda0 return (void*)(p + 1); 995: 83 c0 08 add $0x8,%eax } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } } 998: 8d 65 f4 lea -0xc(%ebp),%esp 99b: 5b pop %ebx 99c: 5e pop %esi 99d: 5f pop %edi 99e: 5d pop %ebp 99f: c3 ret base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ if(p->s.size == nunits) prevp->s.ptr = p->s.ptr; 9a0: 8b 08 mov (%eax),%ecx 9a2: 89 0a mov %ecx,(%edx) 9a4: eb e9 jmp 98f <malloc+0xaf> Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; 9a6: c7 05 a0 0d 00 00 a4 movl $0xda4,0xda0 9ad: 0d 00 00 9b0: c7 05 a4 0d 00 00 a4 movl $0xda4,0xda4 9b7: 0d 00 00 base.s.size = 0; 9ba: b8 a4 0d 00 00 mov $0xda4,%eax 9bf: c7 05 a8 0d 00 00 00 movl $0x0,0xda8 9c6: 00 00 00 9c9: e9 3e ff ff ff jmp 90c <malloc+0x2c>
[Bayo2USv0] moduleMatches = 0xAF5D1A85 .origin = codecave 0x034461C4 = nop #Kill Vsync
; @@@ void mikeos_pause(unsigned int deciseconds); %include "os_vector.inc" section .text use16 global _mikeos_pause _mikeos_pause: push bp mov bp, sp mov ax, [bp + 4] mov bx, os_pause call bx pop bp ret
; A119600: a(n) = 4*Product_{i=1..n-1} (3^i+1)^2. ; Submitted by Jamie Morken(s2) ; 4,4,64,6400,5017600,33738342400,2008645953126400,1070407428421058560000,5124408580006984170864640000,220656234047362257307900743516160000,85495432669493277396354169745064287272960000,298114237913837782686540845369489025952802406400000000,9355246290649672947599943358541996936410690283965618585600000000 trn $0,1 seq $0,323716 ; a(n) = Product_{k=0..n} (3^k + 1). pow $0,2
//snippet-sourcedescription:[<<FILENAME>> demonstrates how to ...] //snippet-keyword:[C++] //snippet-keyword:[Code Sample] //snippet-keyword:[Amazon Simple Queue Service] //snippet-service:[sqs] //snippet-sourcetype:[<<snippet or full-example>>] //snippet-sourcedate:[] //snippet-sourceauthor:[AWS] /* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. This file is licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ This file 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. */ #include <aws/core/Aws.h> #include <aws/sqs/SQSClient.h> #include <aws/sqs/model/SetQueueAttributesRequest.h> #include <iostream> /** * Modifies an sqs queue to have a long poll wait time, based on command line input */ int main(int argc, char** argv) { if (argc != 3) { std::cout << "Usage: long_polling_on_existing_queue <queue_url> " << "<long_poll_time_in_seconds>" << std::endl; return 1; } Aws::SDKOptions options; Aws::InitAPI(options); { Aws::String queue_url = argv[1]; Aws::String poll_time = argv[2]; Aws::SQS::SQSClient sqs; Aws::SQS::Model::SetQueueAttributesRequest request; request.SetQueueUrl(queue_url); request.AddAttributes( Aws::SQS::Model::QueueAttributeName::ReceiveMessageWaitTimeSeconds, poll_time); auto outcome = sqs.SetQueueAttributes(request); if (outcome.IsSuccess()) { std::cout << "Successfully updated long polling time for queue " << queue_url << " to " << poll_time << std::endl; } else { std::cout << "Error updating long polling time for queue " << queue_url << ": " << outcome.GetError().GetMessage() << std::endl; } } Aws::ShutdownAPI(options); return 0; }
/** * \file pCameraLogger_Info.cpp * \brief Informations sur l'application pCameraLogger * \author Team CISSAU - Veni Vidi Vici (ENSTA Bretagne) * \version 0.1 * \date Jun 5th 2013 * * Fonctions d'aide et de présentation de l'application MOOS * */ #include <cstdlib> #include <iostream> #include "pCameraLogger_Info.h" #include "ColorParse.h" #include "ReleaseInfo.h" using namespace std; /** * \fn * \brief Procedure: showSynopsis */ void showSynopsis() { blk("SYNOPSIS: "); blk("------------------------------------ "); blk(" The pCameraLogger application is used for "); blk(" "); blk(" "); blk(" "); blk(" "); } /** * \fn * \brief Procedure: showHelpAndExit */ void showHelpAndExit() { blk(" "); blu("=============================================================== "); blu("Usage: pCameraLogger file.moos [OPTIONS] "); blu("=============================================================== "); blk(" "); showSynopsis(); blk(" "); blk("Options: "); mag(" --alias","=<ProcessName> "); blk(" Launch pCameraLogger with the given process name "); blk(" rather than pCameraLogger. "); mag(" --example, -e "); blk(" Display example MOOS configuration block. "); mag(" --help, -h "); blk(" Display this help message. "); mag(" --interface, -i "); blk(" Display MOOS publications and subscriptions. "); mag(" --version,-v "); blk(" Display the release version of pCameraLogger. "); blk(" "); blk("Note: If argv[2] does not otherwise match a known option, "); blk(" then it will be interpreted as a run alias. This is "); blk(" to support pAntler launching conventions. "); blk(" "); exit(0); } /** * \fn * \brief Procedure: showExampleConfigAndExit */ void showExampleConfigAndExit() { blk(" "); blu("=============================================================== "); blu("pCameraLogger Example MOOS Configuration "); blu("=============================================================== "); blk(" "); blk("ProcessConfig = pCameraLogger "); blk("{ "); blk(" AppTick = 4 "); blk(" CommsTick = 4 "); blk(" "); blk("} "); blk(" "); exit(0); } /** * \fn * \brief Procedure: showInterfaceAndExit */ void showInterfaceAndExit() { blk(" "); blu("=============================================================== "); blu("pCameraLogger INTERFACE "); blu("=============================================================== "); blk(" "); showSynopsis(); blk(" "); blk("SUBSCRIPTIONS: "); blk("------------------------------------ "); blk(" NODE_MESSAGE = src_node=alpha,dest_node=bravo,var_name=FOO, "); blk(" string_val=BAR "); blk(" "); blk("PUBLICATIONS: "); blk("------------------------------------ "); blk(" Publications are determined by the node message content. "); blk(" "); exit(0); } /** * \fn * \brief Procedure: showReleaseInfoAndExit */ void showReleaseInfoAndExit() { showReleaseInfo("pCameraLogger", "gpl"); exit(0); }
.686 .MODEL FLAT,C option casemap:none ; Required to make this compile and link with printf on VS2019 includelib libcmt.lib includelib libvcruntime.lib includelib libucrt.lib includelib legacy_stdio_definitions.lib ; For simplicity we just link to printf ; In real shellcode we would provide a pointer printf PROTO C :VARARG .code Shellcode_ENTRY PROC PUBLIC ; Since our data is stored in our code section we need to jmp over it jmp @@setup ; Add additional data here as needed display_string db "It's good data but it stores like bad code!", 0ah, 0 @@setup: ; This essentially pops EIP into EBP call @@delta @@delta: pop esi ; Subtract the difference to get a pointer we can use to locate our data sub esi, offset @@delta @@real_start: ; Using our delta offset load the address of the string into eax lea eax, [esi + offset display_string] ; Push it into the stack push eax ; Display the string call printf ; Fix the stack add esp, 4 ; Return ret Shellcode_ENTRY ENDP END
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2010-2011, Willow Garage, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. * * Neither the name of Willow Garage, Inc. nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #include <pcl/recognition/hv/hv_papazov.h> /////////////////////////////////////////////////////////////////////////////////////////////////// template <typename ModelT, typename SceneT> void pcl::PapazovHV<ModelT, SceneT>::initialize() { // clear stuff recognition_models_.clear(); graph_id_model_map_.clear(); conflict_graph_.clear(); explained_by_RM_.clear(); points_explained_by_rm_.clear(); // initialize mask... mask_.resize(complete_models_.size()); for (size_t i = 0; i < complete_models_.size(); i++) mask_[i] = true; // initialize explained_by_RM explained_by_RM_.resize(scene_cloud_downsampled_->points.size()); points_explained_by_rm_.resize(scene_cloud_downsampled_->points.size()); // initalize model for (size_t m = 0; m < complete_models_.size(); m++) { boost::shared_ptr<RecognitionModel> recog_model(new RecognitionModel); // voxelize model cloud recog_model->cloud_.reset(new pcl::PointCloud<ModelT>); recog_model->complete_cloud_.reset(new pcl::PointCloud<ModelT>); recog_model->id_ = static_cast<int>(m); pcl::VoxelGrid<ModelT> voxel_grid; voxel_grid.setInputCloud(visible_models_[m]); voxel_grid.setLeafSize(resolution_, resolution_, resolution_); voxel_grid.filter(*(recog_model->cloud_)); pcl::VoxelGrid<ModelT> voxel_grid_complete; voxel_grid_complete.setInputCloud(complete_models_[m]); voxel_grid_complete.setLeafSize(resolution_, resolution_, resolution_); voxel_grid_complete.filter(*(recog_model->complete_cloud_)); std::vector<int> explained_indices; std::vector<int> outliers; std::vector<int> nn_indices; std::vector<float> nn_distances; for (size_t i = 0; i < recog_model->cloud_->points.size(); i++) { if (!scene_downsampled_tree_->radiusSearch( recog_model->cloud_->points[i], inliers_threshold_, nn_indices, nn_distances, std::numeric_limits<int>::max())) { outliers.push_back(static_cast<int>(i)); } else { for (size_t k = 0; k < nn_distances.size(); k++) { explained_indices.push_back( nn_indices[k]); // nn_indices[k] points to the scene } } } std::sort(explained_indices.begin(), explained_indices.end()); explained_indices.erase( std::unique(explained_indices.begin(), explained_indices.end()), explained_indices.end()); recog_model->bad_information_ = static_cast<int>(outliers.size()); if ((static_cast<float>(recog_model->bad_information_) / static_cast<float>(recog_model->complete_cloud_->points.size())) <= penalty_threshold_ && (static_cast<float>(explained_indices.size()) / static_cast<float>(recog_model->complete_cloud_->points.size())) >= support_threshold_) { recog_model->explained_ = explained_indices; recognition_models_.push_back(recog_model); // update explained_by_RM_, add 1 for (size_t i = 0; i < explained_indices.size(); i++) { explained_by_RM_[explained_indices[i]]++; points_explained_by_rm_[explained_indices[i]].push_back( recog_model); } } else { mask_[m] = false; // the model didnt survive the sequential check... } } } /////////////////////////////////////////////////////////////////////////////////////////////////// template <typename ModelT, typename SceneT> void pcl::PapazovHV<ModelT, SceneT>::nonMaximaSuppresion() { // iterate over all vertices of the graph and check if they have a better // neighbour, then remove that vertex typedef typename boost::graph_traits<Graph>::vertex_iterator VertexIterator; VertexIterator vi, vi_end, next; boost::tie(vi, vi_end) = boost::vertices(conflict_graph_); for (next = vi; next != vi_end; next++) { const typename Graph::vertex_descriptor v = boost::vertex(*next, conflict_graph_); typename boost::graph_traits<Graph>::adjacency_iterator ai; typename boost::graph_traits<Graph>::adjacency_iterator ai_end; boost::shared_ptr<RecognitionModel> current = static_cast<boost::shared_ptr<RecognitionModel>>( graph_id_model_map_[int(v)]); bool a_better_one = false; for (boost::tie(ai, ai_end) = boost::adjacent_vertices(v, conflict_graph_); (ai != ai_end) && !a_better_one; ++ai) { boost::shared_ptr<RecognitionModel> neighbour = static_cast<boost::shared_ptr<RecognitionModel>>( graph_id_model_map_[int(*ai)]); if ((neighbour->explained_.size() >= current->explained_.size()) && mask_[neighbour->id_]) { a_better_one = true; } } if (a_better_one) { mask_[current->id_] = false; } } } /////////////////////////////////////////////////////////////////////////////////////////////////// template <typename ModelT, typename SceneT> void pcl::PapazovHV<ModelT, SceneT>::buildConflictGraph() { // create vertices for the graph for (size_t i = 0; i < (recognition_models_.size()); i++) { const typename Graph::vertex_descriptor v = boost::add_vertex(recognition_models_[i], conflict_graph_); graph_id_model_map_[int(v)] = static_cast<boost::shared_ptr<RecognitionModel>>( recognition_models_[i]); } // iterate over the remaining models and check for each one if there is a // conflict with another one for (size_t i = 0; i < recognition_models_.size(); i++) { for (size_t j = i; j < recognition_models_.size(); j++) { if (i != j) { float n_conflicts = 0.f; // count scene points explained by both models for (size_t k = 0; k < explained_by_RM_.size(); k++) { if (explained_by_RM_[k] > 1) { // this point could be a conflict bool i_found = false; bool j_found = false; bool both_found = false; for (size_t kk = 0; (kk < points_explained_by_rm_[k].size()) && !both_found; kk++) { if (points_explained_by_rm_[k][kk]->id_ == recognition_models_[i]->id_) i_found = true; if (points_explained_by_rm_[k][kk]->id_ == recognition_models_[j]->id_) j_found = true; if (i_found && j_found) both_found = true; } if (both_found) n_conflicts += 1.f; } } // check if number of points is big enough to create a conflict bool add_conflict = false; add_conflict = ((n_conflicts / static_cast<float>( recognition_models_[i] ->complete_cloud_->points.size())) > conflict_threshold_size_) || ((n_conflicts / static_cast<float>( recognition_models_[j] ->complete_cloud_->points.size())) > conflict_threshold_size_); if (add_conflict) { boost::add_edge(i, j, conflict_graph_); } } } } } /////////////////////////////////////////////////////////////////////////////////////////////////// template <typename ModelT, typename SceneT> void pcl::PapazovHV<ModelT, SceneT>::verify() { initialize(); buildConflictGraph(); nonMaximaSuppresion(); } #define PCL_INSTANTIATE_PapazovHV(T1, T2) \ template class PCL_EXPORTS pcl::PapazovHV<T1, T2>;
lh $3,4($0) srlv $3,$3,$3 sll $3,$1,21 srl $1,$3,10 addu $3,$3,$3 srlv $3,$2,$3 sltiu $5,$5,22335 or $0,$3,$3 sh $3,0($0) addiu $3,$6,-6094 xori $5,$1,26510 addu $5,$1,$3 and $4,$5,$3 sll $3,$3,14 sllv $3,$3,$3 subu $4,$3,$3 addu $4,$4,$3 xor $5,$1,$3 sra $4,$4,8 xor $4,$1,$3 ori $4,$3,2502 sllv $5,$5,$3 sw $4,0($0) xori $1,$4,45622 ori $3,$3,19598 slt $1,$3,$3 lhu $3,4($0) sll $3,$4,2 srlv $1,$2,$3 and $4,$3,$3 and $3,$0,$3 and $3,$3,$3 srlv $4,$5,$3 lb $1,0($0) addiu $3,$3,31698 sb $4,15($0) srav $4,$3,$3 or $5,$0,$3 srlv $4,$1,$3 ori $4,$3,41734 slti $4,$3,-6047 srl $5,$5,13 or $4,$3,$3 sllv $1,$1,$3 xori $5,$3,29786 lbu $3,16($0) subu $3,$6,$3 srlv $3,$4,$3 addiu $1,$5,-31811 srlv $4,$4,$3 addu $3,$4,$3 lh $3,14($0) addu $4,$4,$3 lbu $4,4($0) sra $3,$3,17 srl $1,$1,19 addiu $1,$3,-21572 and $4,$4,$3 addiu $4,$3,-14900 srav $1,$3,$3 sw $4,12($0) andi $2,$2,31418 sw $3,8($0) sh $3,16($0) nor $4,$3,$3 subu $4,$6,$3 nor $4,$3,$3 xori $3,$5,18530 subu $5,$1,$3 lw $4,0($0) ori $5,$5,10316 sllv $3,$5,$3 sltiu $3,$4,-4005 lbu $5,13($0) sll $3,$5,27 sh $5,14($0) slti $4,$4,-32343 srlv $5,$6,$3 srl $3,$3,0 sltiu $0,$5,-21171 and $3,$3,$3 srl $4,$4,6 subu $5,$4,$3 sltiu $4,$4,-30215 addiu $4,$1,-29163 sra $3,$1,2 ori $4,$1,60132 addiu $3,$3,21877 sh $6,0($0) andi $3,$3,2289 addu $4,$4,$3 addiu $4,$4,-725 sll $3,$3,3 addu $4,$1,$3 or $1,$4,$3 addiu $1,$1,-11932 srl $4,$5,0 sra $3,$3,10 lh $6,6($0) addiu $3,$5,-23252 sh $5,6($0) sw $6,4($0) sb $3,0($0) srav $4,$4,$3 lh $4,2($0) sltiu $1,$3,-17740 sllv $1,$1,$3 subu $5,$0,$3 sll $4,$3,28 addu $5,$0,$3 xor $3,$3,$3 subu $1,$3,$3 lw $6,16($0) srav $3,$1,$3 lb $1,16($0) srav $3,$3,$3 sltiu $5,$3,13877 lw $3,0($0) lb $4,13($0) srl $4,$5,3 lw $1,12($0) xor $5,$5,$3 sh $5,4($0) lw $3,8($0) addu $4,$4,$3 srav $1,$3,$3 sltu $1,$1,$3 nor $4,$6,$3 subu $4,$6,$3 slti $5,$5,-26822 or $4,$5,$3 lh $5,10($0) addiu $6,$5,8087 sltiu $1,$1,-24198 addiu $4,$6,17751 addu $4,$1,$3 andi $5,$1,13836 nor $4,$3,$3 lhu $3,4($0) and $1,$4,$3 ori $4,$4,8801 slti $3,$5,10859 or $5,$1,$3 addiu $3,$3,-21566 and $3,$1,$3 addiu $3,$3,-9605 srlv $3,$4,$3 sltu $1,$5,$3 sltu $1,$6,$3 addiu $3,$3,-30396 subu $6,$6,$3 srl $3,$1,25 andi $4,$3,46007 subu $5,$5,$3 srlv $0,$3,$3 ori $4,$0,43398 sll $4,$3,1 or $3,$3,$3 nor $5,$5,$3 sltu $1,$5,$3 ori $5,$1,57652 addiu $3,$3,-29332 nor $3,$3,$3 srl $4,$3,23 sh $5,14($0) sltiu $5,$3,20194 sltiu $0,$0,3864 srav $3,$1,$3 addiu $6,$6,-12647 addu $1,$6,$3 sw $1,16($0) nor $3,$3,$3 xori $3,$4,1020 sltu $4,$3,$3 subu $6,$6,$3 or $1,$1,$3 lw $3,8($0) slt $6,$6,$3 ori $5,$3,7339 sltu $3,$0,$3 slt $4,$0,$3 sltu $4,$1,$3 sb $4,0($0) addu $5,$5,$3 nor $3,$0,$3 sh $4,2($0) sh $4,16($0) nor $3,$3,$3 xori $3,$3,55418 slti $3,$4,12576 sll $3,$3,17 ori $3,$4,15012 srav $4,$4,$3 addiu $4,$4,-22263 sltu $3,$3,$3 sh $4,10($0) nor $4,$1,$3 slt $5,$0,$3 or $6,$3,$3 sra $3,$3,12 subu $5,$5,$3 slti $1,$6,7377 sb $4,15($0) lhu $3,14($0) lh $5,0($0) lb $3,11($0) sltu $1,$1,$3 subu $1,$1,$3 ori $3,$3,8900 subu $4,$3,$3 and $4,$1,$3 nor $3,$3,$3 addiu $3,$4,27643 ori $4,$2,15166 srl $1,$4,23 ori $3,$4,36637 addu $4,$5,$3 sh $6,10($0) sll $5,$6,5 subu $4,$4,$3 ori $5,$4,56847 and $4,$3,$3 slt $4,$4,$3 sh $4,14($0) lhu $3,4($0) addu $0,$4,$3 addu $5,$1,$3 or $3,$0,$3 addiu $4,$6,-11725 addu $6,$6,$3 lh $3,16($0) addiu $1,$1,-6070 sll $4,$4,19 andi $5,$5,59901 srl $5,$6,15 sh $1,4($0) lw $0,12($0) andi $3,$3,29307 andi $3,$2,456 sll $4,$4,20 ori $4,$3,3975 subu $4,$3,$3 sllv $3,$4,$3 andi $0,$0,39761 addu $0,$3,$3 addu $3,$5,$3 lb $5,3($0) addu $5,$5,$3 sw $3,8($0) subu $1,$3,$3 lw $4,8($0) ori $5,$6,44502 sltiu $1,$6,25327 srl $3,$5,17 subu $4,$3,$3 subu $4,$4,$3 ori $3,$1,52941 xori $5,$4,17940 subu $1,$3,$3 sltiu $0,$0,-30536 subu $3,$3,$3 lw $3,0($0) slti $1,$4,9115 and $4,$4,$3 srav $6,$5,$3 sltu $3,$1,$3 sltu $5,$3,$3 sltiu $3,$0,-30538 sltiu $4,$4,-18710 sltu $5,$4,$3 srl $3,$3,24 or $3,$6,$3 addiu $6,$4,-29977 or $3,$3,$3 slt $4,$3,$3 addu $5,$1,$3 sltu $3,$3,$3 srl $3,$1,4 nor $4,$4,$3 and $5,$5,$3 andi $5,$5,13090 lh $4,6($0) nor $0,$2,$3 sra $3,$0,25 sltu $4,$4,$3 or $0,$0,$3 sllv $4,$3,$3 srav $4,$3,$3 lh $6,12($0) lw $0,4($0) subu $4,$4,$3 sb $3,2($0) addiu $4,$1,-970 slti $0,$4,24354 subu $4,$4,$3 or $3,$4,$3 sltu $3,$4,$3 nor $3,$4,$3 sb $4,12($0) sltu $5,$3,$3 lw $5,0($0) sltu $4,$3,$3 addiu $4,$1,-22684 subu $0,$0,$3 andi $5,$5,39412 slt $3,$4,$3 slt $1,$1,$3 addiu $3,$3,2727 srlv $5,$4,$3 srlv $4,$4,$3 srav $3,$3,$3 subu $5,$5,$3 sh $5,10($0) addu $1,$4,$3 xor $5,$3,$3 sllv $4,$1,$3 srl $3,$1,15 lhu $0,8($0) sltiu $3,$1,-14802 sb $3,13($0) sll $3,$5,2 srlv $3,$0,$3 slti $3,$6,31449 lhu $1,8($0) slt $3,$3,$3 subu $1,$5,$3 addu $3,$1,$3 subu $3,$3,$3 sh $5,4($0) andi $3,$3,52715 addu $0,$0,$3 addiu $4,$4,-8262 sb $1,15($0) xor $3,$1,$3 lbu $5,1($0) sw $5,16($0) addu $3,$6,$3 nor $4,$3,$3 sll $1,$4,29 subu $4,$3,$3 lw $3,4($0) ori $6,$3,143 nor $6,$5,$3 slt $5,$5,$3 xori $4,$4,11562 xori $4,$4,55244 lw $5,4($0) xor $5,$4,$3 xor $3,$3,$3 addu $1,$3,$3 srl $3,$0,25 slti $1,$1,-18513 nor $6,$1,$3 lb $5,15($0) addu $3,$3,$3 sw $1,16($0) sb $3,16($0) slt $5,$6,$3 sltiu $4,$6,-16862 lhu $4,2($0) slt $3,$1,$3 ori $1,$4,24107 sra $3,$3,8 srlv $3,$1,$3 lh $3,0($0) sra $3,$3,30 sb $3,0($0) sh $5,14($0) srlv $5,$5,$3 or $3,$5,$3 xor $0,$1,$3 sh $3,0($0) sltiu $5,$5,-23477 lb $4,0($0) and $5,$5,$3 andi $3,$1,22747 sb $4,7($0) subu $4,$5,$3 sltu $6,$3,$3 subu $6,$3,$3 sltu $0,$0,$3 and $4,$6,$3 xor $3,$1,$3 addu $3,$4,$3 ori $3,$0,35307 subu $4,$4,$3 andi $4,$1,22438 srav $5,$6,$3 sb $3,7($0) addiu $4,$4,2951 sw $3,4($0) nor $5,$4,$3 lw $1,4($0) or $4,$6,$3 srl $3,$3,10 sltiu $6,$5,-23523 sltu $1,$6,$3 slt $4,$3,$3 subu $3,$3,$3 xori $3,$4,19222 and $5,$5,$3 srl $5,$1,26 sll $3,$5,14 srlv $6,$6,$3 subu $0,$2,$3 lh $3,10($0) subu $5,$5,$3 lw $4,4($0) sll $6,$2,27 ori $3,$1,59039 addu $4,$1,$3 sllv $3,$0,$3 srl $4,$0,3 and $3,$3,$3 sw $3,4($0) addiu $4,$4,-32306 lb $3,3($0) lb $3,14($0) lh $3,12($0) xor $5,$1,$3 sltiu $3,$2,-3582 slti $5,$3,3278 subu $5,$3,$3 and $4,$4,$3 addu $4,$3,$3 subu $0,$2,$3 subu $3,$3,$3 sw $0,4($0) addu $1,$2,$3 sllv $3,$3,$3 lw $4,12($0) sllv $1,$1,$3 slt $3,$1,$3 addiu $5,$0,-19268 sw $5,0($0) lw $6,8($0) xori $3,$1,64179 srl $4,$3,14 sllv $1,$4,$3 srav $5,$5,$3 sltu $1,$5,$3 addiu $1,$1,22330 subu $3,$4,$3 sb $4,4($0) subu $3,$3,$3 sh $5,16($0) subu $5,$5,$3 xor $1,$4,$3 subu $1,$4,$3 lb $4,2($0) srav $4,$3,$3 and $1,$4,$3 xori $0,$0,14411 srl $0,$3,12 slt $1,$3,$3 addiu $4,$1,-22387 addiu $3,$0,-26740 sh $4,6($0) sll $3,$3,21 srl $0,$3,4 andi $3,$3,62588 srl $4,$5,6 lbu $0,13($0) subu $5,$5,$3 nor $1,$1,$3 sltiu $4,$4,-31024 sltu $3,$4,$3 sb $3,7($0) addiu $0,$6,9958 slt $5,$2,$3 subu $0,$4,$3 addiu $6,$6,-1145 addiu $1,$1,-13679 or $3,$4,$3 lh $4,4($0) lw $1,4($0) srl $6,$0,20 xor $5,$5,$3 srl $4,$4,5 subu $3,$3,$3 subu $3,$3,$3 sh $0,0($0) srl $5,$4,3 xori $1,$3,46312 or $4,$3,$3 sh $0,8($0) sb $1,13($0) sltiu $4,$0,4324 srl $5,$4,13 lw $4,16($0) xori $4,$3,23887 subu $5,$1,$3 sb $0,15($0) sltiu $1,$5,31905 addiu $5,$3,12075 lh $5,6($0) subu $0,$4,$3 ori $3,$0,59376 addu $5,$5,$3 sh $4,4($0) addu $5,$5,$3 slt $4,$3,$3 sll $6,$3,31 slt $3,$5,$3 sra $5,$6,3 slti $3,$4,8418 sra $3,$2,15 lb $4,1($0) addu $6,$3,$3 xor $1,$5,$3 sb $6,10($0) lbu $3,6($0) ori $3,$6,20309 xor $1,$1,$3 andi $2,$2,53171 ori $6,$3,38279 addu $4,$3,$3 lw $4,16($0) sh $1,16($0) addiu $5,$4,-884 lhu $3,2($0) or $1,$1,$3 sll $6,$5,15 lhu $5,2($0) addu $4,$3,$3 lh $6,12($0) ori $5,$0,17539 sb $3,8($0) lh $3,8($0) subu $3,$0,$3 or $4,$0,$3 xori $3,$3,59257 lhu $6,0($0) sll $4,$3,1 xor $3,$6,$3 sltu $1,$1,$3 xori $0,$6,6308 sw $5,4($0) andi $1,$1,49839 sw $3,0($0) addu $1,$3,$3 nor $1,$2,$3 ori $4,$4,62317 or $4,$3,$3 sra $6,$3,8 and $4,$5,$3 srl $4,$3,31 subu $1,$3,$3 lbu $4,11($0) or $4,$1,$3 lh $4,16($0) sltiu $3,$4,12595 sltiu $3,$3,-24144 subu $3,$4,$3 sw $3,4($0) lw $4,16($0) slt $4,$4,$3 sltu $3,$4,$3 sll $3,$0,7 sltiu $1,$3,-2874 srl $4,$6,25 lbu $3,15($0) sltiu $3,$5,-22700 slti $1,$6,-8406 slti $0,$4,31866 sltiu $4,$3,31857 andi $3,$5,65421 slti $3,$4,21777 sltiu $1,$1,-3653 srav $6,$4,$3 subu $1,$1,$3 lw $3,12($0) or $6,$3,$3 slt $5,$1,$3 sb $5,5($0) slti $4,$4,-23757 lbu $4,8($0) addiu $1,$2,21846 srav $3,$4,$3 addu $6,$4,$3 sra $5,$5,30 sltiu $6,$0,-19504 sb $5,9($0) sh $6,4($0) subu $1,$3,$3 addu $4,$5,$3 sll $4,$3,10 lw $0,16($0) srl $4,$0,26 andi $5,$0,64251 lw $1,16($0) sll $5,$3,21 andi $4,$3,54125 sw $4,8($0) srav $3,$3,$3 sra $1,$4,15 xor $3,$1,$3 slti $3,$3,20082 nor $3,$3,$3 sb $3,3($0) lb $4,14($0) subu $3,$6,$3 lbu $1,11($0) addu $1,$3,$3 ori $5,$4,21784 sltu $3,$1,$3 addu $6,$1,$3 addu $3,$3,$3 subu $1,$3,$3 sw $6,12($0) addiu $6,$1,32412 sltu $3,$3,$3 addu $3,$4,$3 sra $5,$5,31 sltiu $4,$5,11487 andi $5,$4,31300 sltiu $0,$3,-22350 sltiu $3,$3,13248 sb $5,11($0) addiu $3,$1,345 lw $6,16($0) xor $3,$4,$3 sltu $3,$3,$3 and $3,$5,$3 or $3,$5,$3 xori $4,$1,32724 sllv $4,$4,$3 addu $4,$4,$3 lhu $4,4($0) sllv $4,$0,$3 addiu $3,$1,1490 addu $0,$1,$3 slti $3,$0,-27434 lw $3,16($0) sw $1,4($0) slti $3,$1,28933 subu $1,$4,$3 ori $3,$4,53931 xori $4,$6,61252 subu $0,$6,$3 addu $0,$0,$3 srav $3,$3,$3 nor $5,$3,$3 subu $4,$4,$3 slt $4,$4,$3 sb $6,6($0) xor $3,$3,$3 slt $5,$6,$3 sltu $0,$1,$3 sw $4,0($0) lbu $5,3($0) sra $3,$3,1 lb $5,7($0) xor $0,$6,$3 srl $5,$5,25 addiu $4,$3,1484 addu $3,$4,$3 andi $3,$4,30224 addiu $3,$6,-24133 lb $1,4($0) subu $3,$3,$3 nor $3,$3,$3 srav $1,$0,$3 or $3,$4,$3 and $5,$3,$3 sb $3,16($0) ori $1,$3,15767 slt $5,$1,$3 slt $3,$3,$3 sw $3,16($0) xori $0,$0,20947 sltu $4,$3,$3 sltiu $4,$4,30391 sh $1,16($0) slti $5,$1,-1522 sll $4,$1,10 srav $3,$3,$3 sltu $4,$1,$3 ori $3,$3,45498 lw $3,8($0) and $3,$5,$3 sllv $5,$6,$3 lh $5,14($0) sll $3,$4,4 xori $4,$4,44359 slti $4,$3,-6026 subu $4,$5,$3 addu $3,$4,$3 sltu $4,$4,$3 sb $5,2($0) addu $1,$1,$3 srl $5,$3,31 lb $5,0($0) srl $2,$2,31 slt $3,$1,$3 or $1,$1,$3 lbu $1,15($0) nor $4,$5,$3 lw $1,8($0) nor $5,$3,$3 nor $5,$5,$3 addu $1,$6,$3 addu $0,$3,$3 sltiu $5,$4,14072 and $6,$3,$3 lb $3,0($0) nor $4,$4,$3 sll $6,$3,8 addiu $5,$5,18511 addiu $5,$3,3868 addu $5,$3,$3 sltiu $1,$3,29275 sw $3,0($0) nor $5,$1,$3 ori $3,$4,5974 sll $1,$1,7 lh $5,12($0) lh $5,10($0) sra $3,$0,19 subu $4,$4,$3 xori $3,$4,9271 andi $6,$3,51130 sllv $1,$3,$3 lhu $4,2($0) lh $1,10($0) sllv $6,$3,$3 lb $0,13($0) sb $5,14($0) and $4,$0,$3 or $5,$5,$3 addu $5,$1,$3 addiu $6,$4,-25977 ori $3,$3,26975 sb $3,6($0) sltu $6,$5,$3 addiu $4,$2,31596 slti $4,$1,18339 lh $3,16($0) and $4,$1,$3 and $5,$2,$3 lhu $4,12($0) lhu $5,2($0) xori $4,$0,4335 nor $5,$1,$3 addiu $3,$3,24590 srl $3,$1,21 srl $3,$3,15 srl $0,$4,8 lb $0,13($0) lb $1,0($0) sw $4,0($0) andi $5,$6,62509 addiu $4,$6,-21398 sltu $1,$1,$3 addu $0,$6,$3 sltu $0,$3,$3 sltu $4,$4,$3 sh $1,2($0) addu $1,$3,$3 sllv $6,$6,$3 xori $4,$3,47180 xor $3,$0,$3 slti $0,$3,-14872 srlv $0,$3,$3 srl $3,$0,5 sb $3,4($0) srav $3,$4,$3 sb $1,13($0) addiu $3,$3,-28957 xori $0,$5,18576 sltiu $1,$5,24618 lw $4,4($0) addu $1,$0,$3 lh $3,16($0) sb $6,10($0) srl $1,$1,6 and $5,$4,$3 slti $6,$4,29116 slt $0,$5,$3 sllv $3,$3,$3 srlv $5,$3,$3 lbu $6,0($0) srav $5,$1,$3 lb $5,10($0) slt $0,$6,$3 lw $4,8($0) sw $4,12($0) sb $3,4($0) and $5,$4,$3 lw $1,16($0) srlv $4,$5,$3 srlv $0,$4,$3 lb $4,2($0) lbu $4,15($0) addu $5,$3,$3 subu $1,$4,$3 lw $3,12($0) subu $5,$6,$3 or $3,$1,$3 slti $4,$1,-11164 lbu $0,5($0) addu $3,$4,$3 srl $4,$5,3 srl $4,$1,5 sllv $3,$4,$3 sltiu $4,$5,-21759 addu $3,$1,$3 xor $5,$3,$3 ori $3,$3,52371 ori $4,$6,7812 lbu $3,11($0) sltu $1,$4,$3 and $4,$5,$3 subu $0,$1,$3 slt $6,$6,$3 srav $4,$5,$3 sh $3,10($0) sw $4,12($0) sllv $4,$1,$3 addiu $4,$3,23970 andi $4,$3,36339 xor $3,$4,$3 sh $5,12($0) ori $3,$3,41511 or $6,$5,$3 addu $6,$5,$3 sll $3,$3,15 addiu $4,$5,-6595 nor $4,$3,$3 srav $3,$3,$3 lw $3,8($0) xor $3,$5,$3 srl $0,$0,28 sllv $1,$3,$3 or $4,$4,$3 lw $1,16($0) xor $6,$3,$3 srl $5,$3,24 andi $3,$1,12659 lh $3,14($0) sw $3,0($0) srl $0,$3,1 nor $3,$4,$3 nor $0,$1,$3 xori $5,$4,34020 and $4,$4,$3 srav $4,$3,$3 lbu $1,15($0) subu $1,$2,$3 subu $3,$4,$3 srav $3,$3,$3 subu $0,$3,$3 sh $4,8($0) srl $4,$4,23 andi $4,$3,5938 or $0,$3,$3 lhu $3,4($0) sw $3,16($0) slti $1,$5,-15858 sllv $2,$2,$3 srav $1,$1,$3 and $1,$3,$3 sb $1,9($0) sh $5,2($0) lhu $3,10($0) lbu $3,14($0) and $4,$6,$3 srlv $6,$2,$3 slti $1,$1,10159 sltiu $4,$3,2357 sb $1,4($0) addiu $5,$5,-3057 srlv $4,$5,$3 lw $5,4($0) sll $5,$1,25 sllv $1,$0,$3 addu $1,$3,$3 lh $3,4($0) srav $2,$2,$3 addu $3,$3,$3 sll $4,$4,8 ori $3,$3,20837 sh $3,6($0) slti $3,$5,14143 xor $4,$4,$3 lh $5,14($0) sltu $4,$3,$3 lbu $4,4($0)
#ifndef KRATOS_CODEGEN_HH #define KRATOS_CODEGEN_HH #include <sstream> #include "context.hh" #include "ir.hh" #include "pass.hh" namespace kratos { class SystemVerilogCodeGen; using DebugInfo = std::map<uint32_t, std::vector<std::pair<std::string, uint32_t>>>; class VerilogModule { public: explicit VerilogModule(Generator* generator) : generator_(generator) { manager_.register_builtin_passes(); } void run_passes(); [[nodiscard]] std::map<std::string, std::string> verilog_src(); inline PassManager& pass_manager() { return manager_; } private: Generator* generator_; PassManager manager_; }; class Stream : public std::stringstream { public: explicit Stream(Generator* generator, SystemVerilogCodeGen* codegen); Stream& operator<<(AssignStmt* stmt); Stream& operator<<(const std::pair<Port*, std::string>& port); Stream& operator<<(const std::shared_ptr<Var>& var); static std::string get_var_decl(Var* var); inline char endl() { line_no_++; return '\n'; } inline uint32_t line_no() const { return line_no_; } private: Generator* generator_; SystemVerilogCodeGen* codegen_; uint64_t line_no_; }; class SystemVerilogCodeGen { public: explicit SystemVerilogCodeGen(Generator* generator); SystemVerilogCodeGen(Generator* generator, std::string package_name, std::string header_name); inline std::string str() { output_module_def(generator_); return stream_.str(); } uint32_t indent_size = 2; std::string_view indent(); std::string_view pre_indent(); void increase_indent() { indent_++; } void decrease_indent() { indent_--; } // helper function std::string static get_port_str(Port* port); static std::string get_var_width_str(const Var* var); static std::string get_width_str(uint32_t width); static std::string get_width_str(Var *var); static std::string enum_code(Enum* enum_); private: uint64_t indent_ = 0; // skip string generation std::string empty_indent_str_; std::string_view empty_indent_string_view_; Generator* generator_; bool skip_indent_ = false; std::unordered_map<StmtBlock*, std::string> label_index_; std::string package_name_; std::string header_include_name_; // for yosys generate src bool yosys_src_ = false; protected: Stream stream_; void generate_ports(Generator* generator); void generate_variables(Generator* generator); void generate_parameters(Generator* generator); void generate_functions(Generator* generator); virtual void dispatch_node(IRNode* node); virtual void stmt_code(AssignStmt* stmt); void stmt_code(ReturnStmt* stmt); void stmt_code(StmtBlock* stmt); void stmt_code(SequentialStmtBlock* stmt); void stmt_code(CombinationalStmtBlock* stmt); void stmt_code(ScopedStmtBlock* stmt); void stmt_code(IfStmt* stmt); void stmt_code(ModuleInstantiationStmt* stmt); void stmt_code(InterfaceInstantiationStmt* stmt); void stmt_code(SwitchStmt* stmt); void stmt_code(FunctionStmtBlock* stmt); void stmt_code(InitialStmtBlock* stmt); void stmt_code(FunctionCallStmt* stmt); void stmt_code(AssertBase* stmt); void stmt_code(CommentStmt* stmt); void stmt_code(RawStringStmt* stmt); void stmt_code(AssertPropertyStmt* stmt); void stmt_code(ForStmt* stmt); void stmt_code(LatchStmtBlock *stmt); void enum_code_(Enum* enum_); static void enum_code_(Stream& stream_, Enum* enum_, bool debug); void generate_enums(kratos::Generator* generator); // reverse indexing the named blocks std::unordered_map<StmtBlock*, std::string> index_named_block(); std::string block_label(StmtBlock* stmt); // the actual code gen part void output_module_def(Generator* generator); // raw package imports void generate_module_package_import(Generator* generator); // code gen port interface void generate_port_interface(InstantiationStmt* stmt); void generate_interface(Generator* generator); // shared code gen blocks void block_code(const std::string& syntax_name, StmtBlock* stmt); private: void check_yosys_src(); void output_yosys_src(IRNode *node); }; std::string create_stub(Generator* top); // useful to tools that doesn't support N-D array Generator& create_wrapper_flatten(Generator* top, const std::string& wrapper_name); std::pair<std::string, uint32_t> generate_sv_package_header(Generator* top, const std::string& package_name, bool include_guard); void fix_verilog_ln(Generator* generator, uint32_t offset); } // namespace kratos #endif // KRATOS_CODEGEN_HH
//============================================================================== // File: SspiPackage.cpp // // Description: Implementation file for the SspiPackage class // //============================================================================== #include "StdAfx.h" extern PSecurityFunctionTable _pSecurityInterface; // security interface table //============================================================================== // SspiPackage //============================================================================== //////////////////////////////////////////////////////////////////////////////// // construction/destruction //////////////////////////////////////////////////////////////////////////////// SspiPackage::SspiPackage ( const TCHAR * PackageName /* = NULL */ ) : m_HavePkg ( false ) { // make sure library is initialized //InitLib ( ); SECURITY_STATUS status; if ( PackageName != NULL ) { SecPkgInfo * pPackage = NULL; status = _pSecurityInterface->QuerySecurityPackageInfo ( const_cast<TCHAR*>(PackageName), &pPackage ); if ( status != SEC_E_OK ) THROWEXE ( ErrorNoPackage, status ); if ( !GetLocalPkgCopy ( pPackage ) ) THROWEX ( ErrorNoPackage ); if ( _pSecurityInterface->FreeContextBuffer != NULL ) _pSecurityInterface->FreeContextBuffer ( (void*) pPackage ); } } SspiPackage::SspiPackage ( const SecPkgInfo * package ) : m_HavePkg ( false ) { // make sure library is initialized //InitLib ( ); if ( !GetLocalPkgCopy ( package ) ) THROWEX ( ErrorNoPackage ); } SspiPackage::~SspiPackage ( ) { FreePkgInfo ( ); } void SspiPackage::FreePkgInfo ( ) { if ( m_HavePkg ) { free ( m_PkgInfo.Name ); free ( m_PkgInfo.Comment ); } } //========================================================== // SspiPackage::GetLocalPkgCopy() // Description // we allocate our own copy of the package // using new // Parameters // package - a package info struct // Return // void - none //========================================================== bool SspiPackage::GetLocalPkgCopy ( const SecPkgInfo * package ) { memcpy ( (void*)&m_PkgInfo, (void*)package, sizeof SecPkgInfo ); m_PkgInfo.Name = _tcsdup ( package->Name ); if ( m_PkgInfo.Name != 0 ) { m_PkgInfo.Comment = _tcsdup ( package->Comment ); if ( m_PkgInfo.Comment != 0 ) { _tcscpy ( m_PkgInfo.Comment, package->Comment ); m_HavePkg = true; return true; } free ( m_PkgInfo.Name ); } m_HavePkg = false; return false; } //////////////////////////////////////////////////////////////////////////////// // copy construction/assignment //////////////////////////////////////////////////////////////////////////////// SspiPackage::SspiPackage ( const SspiPackage & package ) { if ( !package.m_HavePkg || !GetLocalPkgCopy ( &package.m_PkgInfo ) ) THROWEX ( ErrorNoPackage ); } const SspiPackage & SspiPackage::operator= ( const SspiPackage & package ) { if ( this != &package ) { if ( !GetLocalPkgCopy ( &package.m_PkgInfo ) ) THROWEX ( ErrorNoPackage ); } return *this; } const SspiPackage & SspiPackage::operator= ( const SecPkgInfo* package ) { if ( !GetLocalPkgCopy ( package ) ) THROWEX ( ErrorNoPackage ); return *this; } //////////////////////////////////////////////////////////////////////////////// // interface //////////////////////////////////////////////////////////////////////////////// //========================================================== // SspiPackage::operator->() // Description // forwards calls to SecPkgInfo(), instead of // providing accessors for all members // Parameters // Return // SecPkgInfo* - a package info struct //========================================================== const SecPkgInfo * SspiPackage::operator-> ( ) const { if ( !m_HavePkg ) THROWEX ( ErrorNoPackage ); return &m_PkgInfo; } //========================================================== // SspiPackage::HasCapabilities() // Description // tests if the provider meets the requested caps // Parameters // Capabilities - mask of provider cpas // Return // bool - true if it has the caps required //========================================================== bool SspiPackage::HasCapabilities ( ULONG Capabilities ) const { return ((m_PkgInfo.fCapabilities & Capabilities) == Capabilities ); } //======================== Package Dumper =================== namespace { // capabilities flags struct { DWORD cap; // capability const TCHAR* comment; // name and comment } Caps[] = { { SECPKG_FLAG_INTEGRITY, _T("SECPKG_FLAG_INTEGRITY: Supports message integrity.") }, { SECPKG_FLAG_PRIVACY, _T("SECPKG_FLAG_PRIVACY: Supports message encription.") }, { SECPKG_FLAG_TOKEN_ONLY, _T("SECPKG_FLAG_TOKEN_ONLY: Only supports SECBUFFER_TOKEN buffers.") }, { SECPKG_FLAG_DATAGRAM, _T("SECPKG_FLAG_DATAGRAM: Supports datagram-style authentication.") }, { SECPKG_FLAG_CONNECTION, _T("SECPKG_FLAG_CONNECTION: Supports connection-oriented style authentication.") }, { SECPKG_FLAG_MULTI_REQUIRED, _T("SECPKG_FLAG_MULTI_REQUIRED: Multiple legs are required for authentication.") }, { SECPKG_FLAG_CLIENT_ONLY, _T("SECPKG_FLAG_CLIENT_ONLY: Server authentication support is not provided.") }, { SECPKG_FLAG_EXTENDED_ERROR, _T("SECPKG_FLAG_EXTENDED_ERROR: Supports extended error handling.") }, { SECPKG_FLAG_IMPERSONATION, _T("SECPKG_FLAG_IMPERSONATION: Supports Win32 impersonation in server contexts.") }, { SECPKG_FLAG_ACCEPT_WIN32_NAME, _T("SECPKG_FLAG_ACCEPT_WIN32_NAME: Understands Win32 principal and target names.") }, { SECPKG_FLAG_STREAM, _T("SECPKG_FLAG_STREAM: Supports stream semantics.") }, { 0xFFFFFFFF, _T("") } }; } // namespace namespace wsspi { wsspi_ostream& operator<< ( wsspi_ostream& o, const SspiPackage& p ) { o << _T("Package: ") << p->Name << std::endl << _T("Description: ") << p->Comment << std::endl << _T("Capabilities: ") << std::endl; for ( int i = 0; Caps[i].cap != 0xFFFFFFFF; ++i ) { if ( p.HasCapabilities ( Caps[i].cap ) ) o << Caps[i].comment << std::endl; } return o; } } // namespace wsspi //============================================================================== // SspiPackage //============================================================================== //////////////////////////////////////////////////////////////////////////////// // construction/destruction //////////////////////////////////////////////////////////////////////////////// SspiPackageList::SspiPackageList ( ) { // make sure library is initialized //InitLib ( ); DWORD index = 0; SECURITY_STATUS status; SecPkgInfo * packages = 0; ULONG numpkgs = 0; if ( _pSecurityInterface->EnumerateSecurityPackages == NULL ) THROWEX ( ErrorNoSecurityInterface ); status = _pSecurityInterface->EnumerateSecurityPackages ( &numpkgs, &packages ); if ( status != SEC_E_OK ) THROWEXE ( ErrorPackageEnumerationFailed, status ); // build the list for ( ULONG i = 0; i < numpkgs; i++ ) m_Packages.push_back ( &packages[i] ); if ( _pSecurityInterface->FreeContextBuffer != NULL ) _pSecurityInterface->FreeContextBuffer ( (void*)packages ); } SspiPackageList::~SspiPackageList ( ) { } //========================================================== // operator[]() // Description // handles iteration of the list // // Parameters // pos - position of entry in the list // Return // SspiPackage - package at that position //========================================================== const SspiPackage & SspiPackageList::operator[] ( size_t pos ) { if ( pos >= m_Packages.size ( ) ) THROWEX ( ErrorInvalidArrayIndex ); return m_Packages[pos]; }
; A003628: Primes congruent to {5, 7} mod 8. ; Submitted by Christian Krause ; 5,7,13,23,29,31,37,47,53,61,71,79,101,103,109,127,149,151,157,167,173,181,191,197,199,223,229,239,263,269,271,277,293,311,317,349,359,367,373,383,389,397,421,431,439,461,463,479,487,503,509,541,557,599,607,613,631,647,653,661,677,701,709,719,727,733,743,751,757,773,797,821,823,829,839,853,863,877,887,911,919,941,967,983,991,997,1013,1021,1031,1039,1061,1063,1069,1087,1093,1103,1109,1117,1151,1181 add $0,1 seq $0,45355 ; Primes congruent to {2, 5, 7} mod 8.
#include "private.h" #include <jni.h> extern "C" { JNIEXPORT jstring JNICALL Java_com_mapswithme_maps_PrivateVariables_alohalyticsUrl(JNIEnv * env, jclass clazz) { return env->NewStringUTF(ALOHALYTICS_URL); } JNIEXPORT jstring JNICALL Java_com_mapswithme_maps_PrivateVariables_flurryKey(JNIEnv * env, jclass clazz) { return env->NewStringUTF(FLURRY_KEY); } JNIEXPORT jstring JNICALL Java_com_mapswithme_maps_PrivateVariables_appsFlyerKey(JNIEnv * env, jclass clazz) { return env->NewStringUTF(APPSFLYER_KEY); } JNIEXPORT jstring JNICALL Java_com_mapswithme_maps_PrivateVariables_myTrackerKey(JNIEnv * env, jclass clazz) { return env->NewStringUTF(MY_TRACKER_KEY); } JNIEXPORT jint JNICALL Java_com_mapswithme_maps_PrivateVariables_myTargetSlot(JNIEnv * env, jclass clazz) { return MY_TARGET_KEY; } JNIEXPORT jint JNICALL Java_com_mapswithme_maps_PrivateVariables_myTargetRbSlot(JNIEnv * env, jclass clazz) { return MY_TARGET_RB_KEY; } JNIEXPORT jstring JNICALL Java_com_mapswithme_maps_PrivateVariables_myTargetCheckUrl(JNIEnv * env, jclass clazz) { return env->NewStringUTF(AD_PERMISION_SERVER_URL); } JNIEXPORT jlong JNICALL Java_com_mapswithme_maps_PrivateVariables_myTargetCheckInterval(JNIEnv * env, jclass clazz) { return static_cast<jlong>(AD_PERMISION_CHECK_DURATION); } JNIEXPORT jstring JNICALL Java_com_mapswithme_maps_PrivateVariables_googleWebClientId(JNIEnv * env, jclass clazz) { return env->NewStringUTF(GOOGLE_WEB_CLIENT_ID); } }
#include "wled.h" /* * Receives client input */ void _setRandomColor(bool _sec,bool fromButton) { lastRandomIndex = strip.get_random_wheel_index(lastRandomIndex); if (_sec){ colorHStoRGB(lastRandomIndex*256,255,colSec); } else { colorHStoRGB(lastRandomIndex*256,255,col); } if (fromButton) colorUpdated(2); } bool isAsterisksOnly(const char* str, byte maxLen) { for (byte i = 0; i < maxLen; i++) { if (str[i] == 0) break; if (str[i] != '*') return false; } //at this point the password contains asterisks only return (str[0] != 0); //false on empty string } //called upon POST settings form submit void handleSettingsSet(AsyncWebServerRequest *request, byte subPage) { //0: menu 1: wifi 2: leds 3: ui 4: sync 5: time 6: sec 7: DMX 8: usermods if (subPage <1 || subPage >8) return; //WIFI SETTINGS if (subPage == 1) { strlcpy(clientSSID,request->arg(F("CS")).c_str(), 33); if (!isAsterisksOnly(request->arg(F("CP")).c_str(), 65)) strlcpy(clientPass, request->arg(F("CP")).c_str(), 65); strlcpy(cmDNS, request->arg(F("CM")).c_str(), 33); apBehavior = request->arg(F("AB")).toInt(); strlcpy(apSSID, request->arg(F("AS")).c_str(), 33); apHide = request->hasArg(F("AH")); int passlen = request->arg(F("AP")).length(); if (passlen == 0 || (passlen > 7 && !isAsterisksOnly(request->arg(F("AP")).c_str(), 65))) strlcpy(apPass, request->arg(F("AP")).c_str(), 65); int t = request->arg(F("AC")).toInt(); if (t > 0 && t < 14) apChannel = t; noWifiSleep = request->hasArg(F("WS")); #ifdef WLED_USE_ETHERNET ethernetType = request->arg(F("ETH")).toInt(); WLED::instance().initEthernet(); #endif char k[3]; k[2] = 0; for (int i = 0; i<4; i++) { k[1] = i+48;//ascii 0,1,2,3 k[0] = 'I'; //static IP staticIP[i] = request->arg(k).toInt(); k[0] = 'G'; //gateway staticGateway[i] = request->arg(k).toInt(); k[0] = 'S'; //subnet staticSubnet[i] = request->arg(k).toInt(); } } //LED SETTINGS if (subPage == 2) { int t = 0; if (rlyPin>=0 && pinManager.isPinAllocated(rlyPin, PinOwner::Relay)) { pinManager.deallocatePin(rlyPin, PinOwner::Relay); } if (irPin>=0 && pinManager.isPinAllocated(irPin, PinOwner::IR)) { pinManager.deallocatePin(irPin, PinOwner::IR); } for (uint8_t s=0; s<WLED_MAX_BUTTONS; s++) { if (btnPin[s]>=0 && pinManager.isPinAllocated(btnPin[s], PinOwner::Button)) { pinManager.deallocatePin(btnPin[s], PinOwner::Button); } } strip.isRgbw = false; uint8_t colorOrder, type, skip; uint16_t length, start; uint8_t pins[5] = {255, 255, 255, 255, 255}; for (uint8_t s = 0; s < WLED_MAX_BUSSES; s++) { char lp[4] = "L0"; lp[2] = 48+s; lp[3] = 0; //ascii 0-9 //strip data pin char lc[4] = "LC"; lc[2] = 48+s; lc[3] = 0; //strip length char co[4] = "CO"; co[2] = 48+s; co[3] = 0; //strip color order char lt[4] = "LT"; lt[2] = 48+s; lt[3] = 0; //strip type char ls[4] = "LS"; ls[2] = 48+s; ls[3] = 0; //strip start LED char cv[4] = "CV"; cv[2] = 48+s; cv[3] = 0; //strip reverse char sl[4] = "SL"; sl[2] = 48+s; sl[3] = 0; //skip 1st LED if (!request->hasArg(lp)) { DEBUG_PRINTLN(F("No data.")); break; } for (uint8_t i = 0; i < 5; i++) { lp[1] = 48+i; if (!request->hasArg(lp)) break; pins[i] = (request->arg(lp).length() > 0) ? request->arg(lp).toInt() : 255; } type = request->arg(lt).toInt(); strip.isRgbw = strip.isRgbw || BusManager::isRgbw(type); skip = request->hasArg(sl) ? LED_SKIP_AMOUNT : 0; if (request->hasArg(lc) && request->arg(lc).toInt() > 0) { length = request->arg(lc).toInt(); } else { break; // no parameter } colorOrder = request->arg(co).toInt(); start = (request->hasArg(ls)) ? request->arg(ls).toInt() : 0; if (busConfigs[s] != nullptr) delete busConfigs[s]; busConfigs[s] = new BusConfig(type, pins, start, length, colorOrder, request->hasArg(cv), skip); doInitBusses = true; } t = request->arg(F("LC")).toInt(); if (t > 0 && t <= MAX_LEDS) ledCount = t; // upate other pins int hw_ir_pin = request->arg(F("IR")).toInt(); if (pinManager.allocatePin(hw_ir_pin,false, PinOwner::IR)) { irPin = hw_ir_pin; } else { irPin = -1; } irEnabled = request->arg(F("IT")).toInt(); int hw_rly_pin = request->arg(F("RL")).toInt(); if (pinManager.allocatePin(hw_rly_pin,true, PinOwner::Relay)) { rlyPin = hw_rly_pin; } else { rlyPin = -1; } rlyMde = (bool)request->hasArg(F("RM")); for (uint8_t i=0; i<WLED_MAX_BUTTONS; i++) { char bt[4] = "BT"; bt[2] = 48+i; bt[3] = 0; // button pin char be[4] = "BE"; be[2] = 48+i; be[3] = 0; // button type int hw_btn_pin = request->arg(bt).toInt(); if (pinManager.allocatePin(hw_btn_pin,false,PinOwner::Button)) { btnPin[i] = hw_btn_pin; pinMode(btnPin[i], INPUT_PULLUP); buttonType[i] = request->arg(be).toInt(); } else { btnPin[i] = -1; buttonType[i] = BTN_TYPE_NONE; } } touchThreshold = request->arg(F("TT")).toInt(); strip.ablMilliampsMax = request->arg(F("MA")).toInt(); strip.milliampsPerLed = request->arg(F("LA")).toInt(); strip.rgbwMode = request->arg(F("AW")).toInt(); briS = request->arg(F("CA")).toInt(); turnOnAtBoot = request->hasArg(F("BO")); t = request->arg(F("BP")).toInt(); if (t <= 250) bootPreset = t; strip.gammaCorrectBri = request->hasArg(F("GB")); strip.gammaCorrectCol = request->hasArg(F("GC")); fadeTransition = request->hasArg(F("TF")); t = request->arg(F("TD")).toInt(); if (t > 0) transitionDelay = t; transitionDelayDefault = t; strip.paletteFade = request->hasArg(F("PF")); nightlightTargetBri = request->arg(F("TB")).toInt(); t = request->arg(F("TL")).toInt(); if (t > 0) nightlightDelayMinsDefault = t; nightlightDelayMins = nightlightDelayMinsDefault; nightlightMode = request->arg(F("TW")).toInt(); t = request->arg(F("PB")).toInt(); if (t >= 0 && t < 4) strip.paletteBlend = t; t = request->arg(F("BF")).toInt(); if (t > 0) briMultiplier = t; } //UI if (subPage == 3) { strlcpy(serverDescription, request->arg(F("DS")).c_str(), 33); syncToggleReceive = request->hasArg(F("ST")); } //SYNC if (subPage == 4) { int t = request->arg(F("UP")).toInt(); if (t > 0) udpPort = t; t = request->arg(F("U2")).toInt(); if (t > 0) udpPort2 = t; receiveNotificationBrightness = request->hasArg(F("RB")); receiveNotificationColor = request->hasArg(F("RC")); receiveNotificationEffects = request->hasArg(F("RX")); receiveNotifications = (receiveNotificationBrightness || receiveNotificationColor || receiveNotificationEffects); notifyDirectDefault = request->hasArg(F("SD")); notifyDirect = notifyDirectDefault; notifyButton = request->hasArg(F("SB")); notifyAlexa = request->hasArg(F("SA")); notifyHue = request->hasArg(F("SH")); notifyMacro = request->hasArg(F("SM")); notifyTwice = request->hasArg(F("S2")); liveHSVCorrection = request->hasArg(F("HX")); liveHSVSaturation = request->arg(F("HS")).toInt(); liveHSVValue = request->arg(F("HV")).toInt(); nodeListEnabled = request->hasArg(F("NL")); if (!nodeListEnabled) Nodes.clear(); nodeBroadcastEnabled = request->hasArg(F("NB")); receiveDirect = request->hasArg(F("RD")); e131SkipOutOfSequence = request->hasArg(F("ES")); e131Multicast = request->hasArg(F("EM")); t = request->arg(F("EP")).toInt(); if (t > 0) e131Port = t; t = request->arg(F("EU")).toInt(); if (t >= 0 && t <= 63999) e131Universe = t; t = request->arg(F("DA")).toInt(); if (t >= 0 && t <= 510) DMXAddress = t; t = request->arg(F("DM")).toInt(); if (t >= DMX_MODE_DISABLED && t <= DMX_MODE_MULTIPLE_RGBW) DMXMode = t; t = request->arg(F("ET")).toInt(); if (t > 99 && t <= 65000) realtimeTimeoutMs = t; arlsForceMaxBri = request->hasArg(F("FB")); arlsDisableGammaCorrection = request->hasArg(F("RG")); t = request->arg(F("WO")).toInt(); if (t >= -255 && t <= 255) arlsOffset = t; alexaEnabled = request->hasArg(F("AL")); strlcpy(alexaInvocationName, request->arg(F("AI")).c_str(), 33); #ifndef WLED_DISABLE_BLYNK strlcpy(blynkHost, request->arg("BH").c_str(), 33); t = request->arg(F("BP")).toInt(); if (t > 0) blynkPort = t; if (request->hasArg("BK") && !request->arg("BK").equals(F("Hidden"))) { strlcpy(blynkApiKey, request->arg("BK").c_str(), 36); initBlynk(blynkApiKey, blynkHost, blynkPort); } #endif #ifdef WLED_ENABLE_MQTT mqttEnabled = request->hasArg(F("MQ")); strlcpy(mqttServer, request->arg(F("MS")).c_str(), 33); t = request->arg(F("MQPORT")).toInt(); if (t > 0) mqttPort = t; strlcpy(mqttUser, request->arg(F("MQUSER")).c_str(), 41); if (!isAsterisksOnly(request->arg(F("MQPASS")).c_str(), 41)) strlcpy(mqttPass, request->arg(F("MQPASS")).c_str(), 65); strlcpy(mqttClientID, request->arg(F("MQCID")).c_str(), 41); strlcpy(mqttDeviceTopic, request->arg(F("MD")).c_str(), 33); strlcpy(mqttGroupTopic, request->arg(F("MG")).c_str(), 33); buttonPublishMqtt = request->hasArg(F("BM")); #endif #ifndef WLED_DISABLE_HUESYNC for (int i=0;i<4;i++){ String a = "H"+String(i); hueIP[i] = request->arg(a).toInt(); } t = request->arg(F("HL")).toInt(); if (t > 0) huePollLightId = t; t = request->arg(F("HI")).toInt(); if (t > 50) huePollIntervalMs = t; hueApplyOnOff = request->hasArg(F("HO")); hueApplyBri = request->hasArg(F("HB")); hueApplyColor = request->hasArg(F("HC")); huePollingEnabled = request->hasArg(F("HP")); hueStoreAllowed = true; reconnectHue(); #endif } //TIME if (subPage == 5) { ntpEnabled = request->hasArg(F("NT")); strlcpy(ntpServerName, request->arg(F("NS")).c_str(), 33); useAMPM = !request->hasArg(F("CF")); currentTimezone = request->arg(F("TZ")).toInt(); utcOffsetSecs = request->arg(F("UO")).toInt(); //start ntp if not already connected if (ntpEnabled && WLED_CONNECTED && !ntpConnected) ntpConnected = ntpUdp.begin(ntpLocalPort); longitude = request->arg(F("LN")).toFloat(); latitude = request->arg(F("LT")).toFloat(); // force a sunrise/sunset re-calculation calculateSunriseAndSunset(); if (request->hasArg(F("OL"))) { overlayDefault = request->arg(F("OL")).toInt(); overlayCurrent = overlayDefault; } overlayMin = request->arg(F("O1")).toInt(); overlayMax = request->arg(F("O2")).toInt(); analogClock12pixel = request->arg(F("OM")).toInt(); analogClock5MinuteMarks = request->hasArg(F("O5")); analogClockSecondsTrail = request->hasArg(F("OS")); #ifndef WLED_DISABLE_CRONIXIE strcpy(cronixieDisplay,request->arg(F("CX")).c_str()); cronixieBacklight = request->hasArg(F("CB")); #endif countdownMode = request->hasArg(F("CE")); countdownYear = request->arg(F("CY")).toInt(); countdownMonth = request->arg(F("CI")).toInt(); countdownDay = request->arg(F("CD")).toInt(); countdownHour = request->arg(F("CH")).toInt(); countdownMin = request->arg(F("CM")).toInt(); countdownSec = request->arg(F("CS")).toInt(); setCountdown(); macroAlexaOn = request->arg(F("A0")).toInt(); macroAlexaOff = request->arg(F("A1")).toInt(); macroCountdown = request->arg(F("MC")).toInt(); macroNl = request->arg(F("MN")).toInt(); for (uint8_t i=0; i<WLED_MAX_BUTTONS; i++) { char mp[4] = "MP"; mp[2] = 48+i; mp[3] = 0; // short char ml[4] = "ML"; ml[2] = 48+i; ml[3] = 0; // long char md[4] = "MD"; md[2] = 48+i; md[3] = 0; // double //if (!request->hasArg(mp)) break; macroButton[i] = request->arg(mp).toInt(); // these will default to 0 if not present macroLongPress[i] = request->arg(ml).toInt(); macroDoublePress[i] = request->arg(md).toInt(); } char k[3]; k[2] = 0; for (int i = 0; i<10; i++) { k[1] = i+48;//ascii 0,1,2,3 k[0] = 'H'; //timer hours timerHours[i] = request->arg(k).toInt(); k[0] = 'N'; //minutes timerMinutes[i] = request->arg(k).toInt(); k[0] = 'T'; //macros timerMacro[i] = request->arg(k).toInt(); k[0] = 'W'; //weekdays timerWeekday[i] = request->arg(k).toInt(); } } //SECURITY if (subPage == 6) { if (request->hasArg(F("RS"))) //complete factory reset { WLED_FS.format(); clearEEPROM(); serveMessage(request, 200, F("All Settings erased."), F("Connect to WLED-AP to setup again"),255); doReboot = true; } bool pwdCorrect = !otaLock; //always allow access if ota not locked if (request->hasArg(F("OP"))) { if (otaLock && strcmp(otaPass,request->arg(F("OP")).c_str()) == 0) { pwdCorrect = true; } if (!otaLock && request->arg(F("OP")).length() > 0) { strlcpy(otaPass,request->arg(F("OP")).c_str(), 33); } } if (pwdCorrect) //allow changes if correct pwd or no ota active { otaLock = request->hasArg(F("NO")); wifiLock = request->hasArg(F("OW")); aOtaEnabled = request->hasArg(F("AO")); } } #ifdef WLED_ENABLE_DMX // include only if DMX is enabled if (subPage == 7) { int t = request->arg(F("PU")).toInt(); if (t >= 0 && t <= 63999) e131ProxyUniverse = t; t = request->arg(F("CN")).toInt(); if (t>0 && t<16) { DMXChannels = t; } t = request->arg(F("CS")).toInt(); if (t>0 && t<513) { DMXStart = t; } t = request->arg(F("CG")).toInt(); if (t>0 && t<513) { DMXGap = t; } t = request->arg(F("SL")).toInt(); if (t>=0 && t < MAX_LEDS) { DMXStartLED = t; } for (int i=0; i<15; i++) { String argname = "CH" + String((i+1)); t = request->arg(argname).toInt(); DMXFixtureMap[i] = t; } } #endif //USERMODS if (subPage == 8) { DynamicJsonDocument doc(JSON_BUFFER_SIZE); JsonObject um = doc.createNestedObject("um"); size_t args = request->args(); uint j=0; for (size_t i=0; i<args; i++) { String name = request->argName(i); String value = request->arg(i); // POST request parameters are combined as <usermodname>_<usermodparameter> int umNameEnd = name.indexOf(":"); if (umNameEnd<1) break; // parameter does not contain ":" or on 1st place -> wrong JsonObject mod = um[name.substring(0,umNameEnd)]; // get a usermod JSON object if (mod.isNull()) { mod = um.createNestedObject(name.substring(0,umNameEnd)); // if it does not exist create it } DEBUG_PRINT(name.substring(0,umNameEnd)); DEBUG_PRINT(":"); name = name.substring(umNameEnd+1); // remove mod name from string // if the resulting name still contains ":" this means nested object JsonObject subObj; int umSubObj = name.indexOf(":"); DEBUG_PRINTF("(%d):",umSubObj); if (umSubObj>0) { subObj = mod[name.substring(0,umSubObj)]; if (subObj.isNull()) subObj = mod.createNestedObject(name.substring(0,umSubObj)); name = name.substring(umSubObj+1); // remove nested object name from string } else { subObj = mod; } DEBUG_PRINT(name); // check if parameters represent array if (name.endsWith("[]")) { name.replace("[]",""); if (!subObj[name].is<JsonArray>()) { JsonArray ar = subObj.createNestedArray(name); ar.add(value.toInt()); j=0; } else { subObj[name].add(value.toInt()); j++; } DEBUG_PRINT("["); DEBUG_PRINT(j); DEBUG_PRINT("] = "); DEBUG_PRINTLN(value); } else { // we are using a hidden field with the same name as our parameter (!before the actual parameter!) // to describe the type of parameter (text,float,int), for boolean patameters the first field contains "off" // so checkboxes have one or two fields (first is always "false", existence of second depends on checkmark and may be "true") if (subObj[name].isNull()) { // the first occurence of the field describes the parameter type (used in next loop) if (value == "false") subObj[name] = false; // checkboxes may have only one field else subObj[name] = value; } else { String type = subObj[name].as<String>(); // get previously stored value as a type if (subObj[name].is<bool>()) subObj[name] = true; // checkbox/boolean else if (type == "number") { value.replace(",","."); // just in case conversion if (value.indexOf(".") >= 0) subObj[name] = value.toFloat(); // we do have a float else subObj[name] = value.toInt(); // we may have an int } else if (type == "int") subObj[name] = value.toInt(); else subObj[name] = value; // text fields } DEBUG_PRINT(" = "); DEBUG_PRINTLN(value); } } #ifdef WLED_DEBUG serializeJson(um,Serial); DEBUG_PRINTLN(); #endif usermods.readFromConfig(um); // force change of usermod parameters } if (subPage != 2 && (subPage != 6 || !doReboot)) serializeConfig(); //do not save if factory reset or LED settings (which are saved after LED re-init) if (subPage == 4) alexaInit(); } //helper to get int value at a position in string int getNumVal(const String* req, uint16_t pos) { return req->substring(pos+3).toInt(); } //helper to get int value at a position in string bool updateVal(const String* req, const char* key, byte* val, byte minv, byte maxv) { int pos = req->indexOf(key); if (pos < 1) return false; if (req->charAt(pos+3) == '~') { int out = getNumVal(req, pos+1); if (out == 0) { if (req->charAt(pos+4) == '-') { *val = (*val <= minv)? maxv : *val -1; } else { *val = (*val >= maxv)? minv : *val +1; } } else { out += *val; if (out > maxv) out = maxv; if (out < minv) out = minv; *val = out; } } else { *val = getNumVal(req, pos); } return true; } //HTTP API request parser bool handleSet(AsyncWebServerRequest *request, const String& req, bool apply) { if (!(req.indexOf("win") >= 0)) return false; int pos = 0; DEBUG_PRINT(F("API req: ")); DEBUG_PRINTLN(req); strip.applyToAllSelected = false; //segment select (sets main segment) byte prevMain = strip.getMainSegmentId(); pos = req.indexOf(F("SM=")); if (pos > 0) { strip.mainSegment = getNumVal(&req, pos); } byte selectedSeg = strip.getMainSegmentId(); if (selectedSeg != prevMain) setValuesFromMainSeg(); pos = req.indexOf(F("SS=")); if (pos > 0) { byte t = getNumVal(&req, pos); if (t < strip.getMaxSegments()) selectedSeg = t; } WS2812FX::Segment& mainseg = strip.getSegment(selectedSeg); pos = req.indexOf(F("SV=")); //segment selected if (pos > 0) { byte t = getNumVal(&req, pos); if (t == 2) { for (uint8_t i = 0; i < strip.getMaxSegments(); i++) { strip.getSegment(i).setOption(SEG_OPTION_SELECTED, 0); } } mainseg.setOption(SEG_OPTION_SELECTED, t); } uint16_t startI = mainseg.start; uint16_t stopI = mainseg.stop; uint8_t grpI = mainseg.grouping; uint16_t spcI = mainseg.spacing; pos = req.indexOf(F("&S=")); //segment start if (pos > 0) { startI = getNumVal(&req, pos); } pos = req.indexOf(F("S2=")); //segment stop if (pos > 0) { stopI = getNumVal(&req, pos); } pos = req.indexOf(F("GP=")); //segment grouping if (pos > 0) { grpI = getNumVal(&req, pos); if (grpI == 0) grpI = 1; } pos = req.indexOf(F("SP=")); //segment spacing if (pos > 0) { spcI = getNumVal(&req, pos); } strip.setSegment(selectedSeg, startI, stopI, grpI, spcI); pos = req.indexOf(F("PS=")); //saves current in preset if (pos > 0) savePreset(getNumVal(&req, pos)); pos = req.indexOf(F("P1=")); //sets first preset for cycle if (pos > 0) presetCycleMin = getNumVal(&req, pos); pos = req.indexOf(F("P2=")); //sets last preset for cycle if (pos > 0) presetCycleMax = getNumVal(&req, pos); //apply preset if (updateVal(&req, "PL=", &presetCycCurr, presetCycleMin, presetCycleMax)) { applyPreset(presetCycCurr); } //snapshot to check if request changed values later, temporary. byte prevCol[4] = {col[0], col[1], col[2], col[3]}; byte prevColSec[4] = {colSec[0], colSec[1], colSec[2], colSec[3]}; byte prevEffect = effectCurrent; byte prevSpeed = effectSpeed; byte prevIntensity = effectIntensity; byte prevPalette = effectPalette; //set brightness updateVal(&req, "&A=", &bri); //set colors updateVal(&req, "&R=", &col[0]); updateVal(&req, "&G=", &col[1]); updateVal(&req, "&B=", &col[2]); updateVal(&req, "&W=", &col[3]); updateVal(&req, "R2=", &colSec[0]); updateVal(&req, "G2=", &colSec[1]); updateVal(&req, "B2=", &colSec[2]); updateVal(&req, "W2=", &colSec[3]); #ifdef WLED_ENABLE_LOXONE //lox parser pos = req.indexOf(F("LX=")); // Lox primary color if (pos > 0) { int lxValue = getNumVal(&req, pos); if (parseLx(lxValue, col)) { bri = 255; nightlightActive = false; //always disable nightlight when toggling } } pos = req.indexOf(F("LY=")); // Lox secondary color if (pos > 0) { int lxValue = getNumVal(&req, pos); if(parseLx(lxValue, colSec)) { bri = 255; nightlightActive = false; //always disable nightlight when toggling } } #endif //set hue pos = req.indexOf(F("HU=")); if (pos > 0) { uint16_t temphue = getNumVal(&req, pos); byte tempsat = 255; pos = req.indexOf(F("SA=")); if (pos > 0) { tempsat = getNumVal(&req, pos); } colorHStoRGB(temphue,tempsat,(req.indexOf(F("H2"))>0)? colSec:col); } //set white spectrum (kelvin) pos = req.indexOf(F("&K=")); if (pos > 0) { colorKtoRGB(getNumVal(&req, pos),(req.indexOf(F("K2"))>0)? colSec:col); } //set color from HEX or 32bit DEC pos = req.indexOf(F("CL=")); if (pos > 0) { colorFromDecOrHexString(col, (char*)req.substring(pos + 3).c_str()); } pos = req.indexOf(F("C2=")); if (pos > 0) { colorFromDecOrHexString(colSec, (char*)req.substring(pos + 3).c_str()); } pos = req.indexOf(F("C3=")); if (pos > 0) { byte t[4]; colorFromDecOrHexString(t, (char*)req.substring(pos + 3).c_str()); if (selectedSeg != strip.getMainSegmentId()) { strip.applyToAllSelected = true; strip.setColor(2, t[0], t[1], t[2], t[3]); } else { strip.getSegment(selectedSeg).setColor(2,((t[0] << 16) + (t[1] << 8) + t[2] + (t[3] << 24)), selectedSeg); } } //set to random hue SR=0->1st SR=1->2nd pos = req.indexOf(F("SR")); if (pos > 0) { _setRandomColor(getNumVal(&req, pos)); } //swap 2nd & 1st pos = req.indexOf(F("SC")); if (pos > 0) { byte temp; for (uint8_t i=0; i<4; i++) { temp = col[i]; col[i] = colSec[i]; colSec[i] = temp; } } //set effect parameters if (updateVal(&req, "FX=", &effectCurrent, 0, strip.getModeCount()-1)) unloadPlaylist(); updateVal(&req, "SX=", &effectSpeed); updateVal(&req, "IX=", &effectIntensity); updateVal(&req, "FP=", &effectPalette, 0, strip.getPaletteCount()-1); //set advanced overlay pos = req.indexOf(F("OL=")); if (pos > 0) { overlayCurrent = getNumVal(&req, pos); } //apply macro (deprecated, added for compatibility with pre-0.11 automations) pos = req.indexOf(F("&M=")); if (pos > 0) { applyPreset(getNumVal(&req, pos) + 16); } //toggle send UDP direct notifications pos = req.indexOf(F("SN=")); if (pos > 0) notifyDirect = (req.charAt(pos+3) != '0'); //toggle receive UDP direct notifications pos = req.indexOf(F("RN=")); if (pos > 0) receiveNotifications = (req.charAt(pos+3) != '0'); //receive live data via UDP/Hyperion pos = req.indexOf(F("RD=")); if (pos > 0) receiveDirect = (req.charAt(pos+3) != '0'); //main toggle on/off (parse before nightlight, #1214) pos = req.indexOf(F("&T=")); if (pos > 0) { nightlightActive = false; //always disable nightlight when toggling switch (getNumVal(&req, pos)) { case 0: if (bri != 0){briLast = bri; bri = 0;} break; //off, only if it was previously on case 1: if (bri == 0) bri = briLast; break; //on, only if it was previously off default: toggleOnOff(); //toggle } } //toggle nightlight mode bool aNlDef = false; if (req.indexOf(F("&ND")) > 0) aNlDef = true; pos = req.indexOf(F("NL=")); if (pos > 0) { if (req.charAt(pos+3) == '0') { nightlightActive = false; } else { nightlightActive = true; if (!aNlDef) nightlightDelayMins = getNumVal(&req, pos); nightlightStartTime = millis(); } } else if (aNlDef) { nightlightActive = true; nightlightStartTime = millis(); } //set nightlight target brightness pos = req.indexOf(F("NT=")); if (pos > 0) { nightlightTargetBri = getNumVal(&req, pos); nightlightActiveOld = false; //re-init } //toggle nightlight fade pos = req.indexOf(F("NF=")); if (pos > 0) { nightlightMode = getNumVal(&req, pos); nightlightActiveOld = false; //re-init } if (nightlightMode > NL_MODE_SUN) nightlightMode = NL_MODE_SUN; pos = req.indexOf(F("TT=")); if (pos > 0) transitionDelay = getNumVal(&req, pos); //Segment reverse pos = req.indexOf(F("RV=")); if (pos > 0) strip.getSegment(selectedSeg).setOption(SEG_OPTION_REVERSED, req.charAt(pos+3) != '0'); //Segment reverse pos = req.indexOf(F("MI=")); if (pos > 0) strip.getSegment(selectedSeg).setOption(SEG_OPTION_MIRROR, req.charAt(pos+3) != '0'); //Segment brightness/opacity pos = req.indexOf(F("SB=")); if (pos > 0) { byte segbri = getNumVal(&req, pos); strip.getSegment(selectedSeg).setOption(SEG_OPTION_ON, segbri, selectedSeg); if (segbri) { strip.getSegment(selectedSeg).setOpacity(segbri, selectedSeg); } } //set time (unix timestamp) pos = req.indexOf(F("ST=")); if (pos > 0) { setTimeFromAPI(getNumVal(&req, pos)); } //set countdown goal (unix timestamp) pos = req.indexOf(F("CT=")); if (pos > 0) { countdownTime = getNumVal(&req, pos); if (countdownTime - toki.second() > 0) countdownOverTriggered = false; } pos = req.indexOf(F("LO=")); if (pos > 0) { realtimeOverride = getNumVal(&req, pos); if (realtimeOverride > 2) realtimeOverride = REALTIME_OVERRIDE_ALWAYS; } pos = req.indexOf(F("RB")); if (pos > 0) doReboot = true; //cronixie #ifndef WLED_DISABLE_CRONIXIE //mode, 1 countdown pos = req.indexOf(F("NM=")); if (pos > 0) countdownMode = (req.charAt(pos+3) != '0'); pos = req.indexOf(F("NX=")); //sets digits to code if (pos > 0) { strlcpy(cronixieDisplay, req.substring(pos + 3, pos + 9).c_str(), 7); setCronixie(); } pos = req.indexOf(F("NB=")); if (pos > 0) //sets backlight { cronixieBacklight = (req.charAt(pos+3) != '0'); } #endif pos = req.indexOf(F("U0=")); //user var 0 if (pos > 0) { userVar0 = getNumVal(&req, pos); } pos = req.indexOf(F("U1=")); //user var 1 if (pos > 0) { userVar1 = getNumVal(&req, pos); } //you can add more if you need //apply to all selected manually to prevent #1618. Temporary bool col0Changed = false, col1Changed = false; for (uint8_t i = 0; i < 4; i++) { if (col[i] != prevCol[i]) col0Changed = true; if (colSec[i] != prevColSec[i]) col1Changed = true; } for (uint8_t i = 0; i < strip.getMaxSegments(); i++) { WS2812FX::Segment& seg = strip.getSegment(i); if (!seg.isSelected()) continue; if (effectCurrent != prevEffect) { seg.mode = effectCurrent; effectChanged = true; } if (effectSpeed != prevSpeed) { seg.speed = effectSpeed; effectChanged = true; } if (effectIntensity != prevIntensity) { seg.intensity = effectIntensity; effectChanged = true; } if (effectPalette != prevPalette) { seg.palette = effectPalette; effectChanged = true; } } if (col0Changed) { if (selectedSeg == strip.getMainSegmentId()) { strip.applyToAllSelected = true; strip.setColor(0, colorFromRgbw(col)); } } if (col1Changed) { if (selectedSeg == strip.getMainSegmentId()) { strip.applyToAllSelected = true; strip.setColor(1, colorFromRgbw(colSec)); } } //end of temporary fix code if (!apply) return true; //when called by JSON API, do not call colorUpdated() here //internal call, does not send XML response pos = req.indexOf(F("IN")); if (pos < 1) XML_response(request); strip.applyToAllSelected = false; pos = req.indexOf(F("&NN")); //do not send UDP notifications this time colorUpdated((pos > 0) ? CALL_MODE_NO_NOTIFY : CALL_MODE_DIRECT_CHANGE); return true; }
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <rpc/server.h> #include <rpc/util.h> #include <shutdown.h> #include <sync.h> #include <util/strencodings.h> #include <util/system.h> #include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/split.hpp> #include <boost/signals2/signal.hpp> #include <cassert> #include <memory> // for unique_ptr #include <mutex> #include <unordered_map> static Mutex g_rpc_warmup_mutex; static std::atomic<bool> g_rpc_running{false}; static bool fRPCInWarmup GUARDED_BY(g_rpc_warmup_mutex) = true; static std::string rpcWarmupStatus GUARDED_BY(g_rpc_warmup_mutex) = "RPC server started"; /* Timer-creating functions */ static RPCTimerInterface* timerInterface = nullptr; /* Map of name to timer. */ static Mutex g_deadline_timers_mutex; static std::map<std::string, std::unique_ptr<RPCTimerBase> > deadlineTimers GUARDED_BY(g_deadline_timers_mutex); static bool ExecuteCommand(const CRPCCommand& command, const JSONRPCRequest& request, UniValue& result, bool last_handler); struct RPCCommandExecutionInfo { std::string method; int64_t start; }; struct RPCServerInfo { Mutex mutex; std::list<RPCCommandExecutionInfo> active_commands GUARDED_BY(mutex); }; static RPCServerInfo g_rpc_server_info; struct RPCCommandExecution { std::list<RPCCommandExecutionInfo>::iterator it; explicit RPCCommandExecution(const std::string& method) { LOCK(g_rpc_server_info.mutex); it = g_rpc_server_info.active_commands.insert(g_rpc_server_info.active_commands.end(), {method, GetTimeMicros()}); } ~RPCCommandExecution() { LOCK(g_rpc_server_info.mutex); g_rpc_server_info.active_commands.erase(it); } }; static struct CRPCSignals { boost::signals2::signal<void ()> Started; boost::signals2::signal<void ()> Stopped; } g_rpcSignals; void RPCServer::OnStarted(std::function<void ()> slot) { g_rpcSignals.Started.connect(slot); } void RPCServer::OnStopped(std::function<void ()> slot) { g_rpcSignals.Stopped.connect(slot); } std::string CRPCTable::help(const std::string& strCommand, const JSONRPCRequest& helpreq) const { std::string strRet; std::string category; std::set<intptr_t> setDone; std::vector<std::pair<std::string, const CRPCCommand*> > vCommands; for (const auto& entry : mapCommands) vCommands.push_back(make_pair(entry.second.front()->category + entry.first, entry.second.front())); sort(vCommands.begin(), vCommands.end()); JSONRPCRequest jreq(helpreq); jreq.fHelp = true; jreq.params = UniValue(); for (const std::pair<std::string, const CRPCCommand*>& command : vCommands) { const CRPCCommand *pcmd = command.second; std::string strMethod = pcmd->name; if ((strCommand != "" || pcmd->category == "hidden") && strMethod != strCommand) continue; jreq.strMethod = strMethod; try { UniValue unused_result; if (setDone.insert(pcmd->unique_id).second) pcmd->actor(jreq, unused_result, true /* last_handler */); } catch (const std::exception& e) { // Help text is returned in an exception std::string strHelp = std::string(e.what()); if (strCommand == "") { if (strHelp.find('\n') != std::string::npos) strHelp = strHelp.substr(0, strHelp.find('\n')); if (category != pcmd->category) { if (!category.empty()) strRet += "\n"; category = pcmd->category; strRet += "== " + Capitalize(category) + " ==\n"; } } strRet += strHelp + "\n"; } } if (strRet == "") strRet = strprintf("help: unknown command: %s\n", strCommand); strRet = strRet.substr(0,strRet.size()-1); return strRet; } static RPCHelpMan help() { return RPCHelpMan{"help", "\nList all commands, or get help for a specified command.\n", { {"command", RPCArg::Type::STR, /* default */ "all commands", "The command to get help on"}, }, RPCResult{ RPCResult::Type::STR, "", "The help text" }, RPCExamples{""}, [&](const RPCHelpMan& self, const JSONRPCRequest& jsonRequest) -> UniValue { std::string strCommand; if (jsonRequest.params.size() > 0) strCommand = jsonRequest.params[0].get_str(); return tableRPC.help(strCommand, jsonRequest); }, }; } static RPCHelpMan stop() { static const std::string RESULT{PACKAGE_NAME " stopping"}; return RPCHelpMan{"stop", // Also accept the hidden 'wait' integer argument (milliseconds) // For instance, 'stop 1000' makes the call wait 1 second before returning // to the client (intended for testing) "\nRequest a graceful shutdown of " PACKAGE_NAME ".", { {"wait", RPCArg::Type::NUM, RPCArg::Optional::OMITTED_NAMED_ARG, "how long to wait in ms", "", {}, /* hidden */ true}, }, RPCResult{RPCResult::Type::STR, "", "A string with the content '" + RESULT + "'"}, RPCExamples{""}, [&](const RPCHelpMan& self, const JSONRPCRequest& jsonRequest) -> UniValue { // Event loop will exit after current HTTP requests have been handled, so // this reply will get back to the client. StartShutdown(); if (jsonRequest.params[0].isNum()) { UninterruptibleSleep(std::chrono::milliseconds{jsonRequest.params[0].get_int()}); } return RESULT; }, }; } static RPCHelpMan uptime() { return RPCHelpMan{"uptime", "\nReturns the total uptime of the server.\n", {}, RPCResult{ RPCResult::Type::NUM, "", "The number of seconds that the server has been running" }, RPCExamples{ HelpExampleCli("uptime", "") + HelpExampleRpc("uptime", "") }, [&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue { return GetTime() - GetStartupTime(); } }; } static RPCHelpMan getrpcinfo() { return RPCHelpMan{"getrpcinfo", "\nReturns details of the RPC server.\n", {}, RPCResult{ RPCResult::Type::OBJ, "", "", { {RPCResult::Type::ARR, "active_commands", "All active commands", { {RPCResult::Type::OBJ, "", "Information about an active command", { {RPCResult::Type::STR, "method", "The name of the RPC command"}, {RPCResult::Type::NUM, "duration", "The running time in microseconds"}, }}, }}, {RPCResult::Type::STR, "logpath", "The complete file path to the debug log"}, } }, RPCExamples{ HelpExampleCli("getrpcinfo", "") + HelpExampleRpc("getrpcinfo", "")}, [&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue { LOCK(g_rpc_server_info.mutex); UniValue active_commands(UniValue::VARR); for (const RPCCommandExecutionInfo& info : g_rpc_server_info.active_commands) { UniValue entry(UniValue::VOBJ); entry.pushKV("method", info.method); entry.pushKV("duration", GetTimeMicros() - info.start); active_commands.push_back(entry); } UniValue result(UniValue::VOBJ); result.pushKV("active_commands", active_commands); const std::string path = LogInstance().m_file_path.string(); UniValue log_path(UniValue::VSTR, path); result.pushKV("logpath", log_path); return result; } }; } // clang-format off static const CRPCCommand vRPCCommands[] = { // category name actor (function) argNames // --------------------- ------------------------ ----------------------- ---------- /* Overall control/query calls */ { "control", "getrpcinfo", &getrpcinfo, {} }, { "control", "help", &help, {"command"} }, { "control", "stop", &stop, {"wait"} }, { "control", "uptime", &uptime, {} }, }; // clang-format on CRPCTable::CRPCTable() { for (const auto& c : vRPCCommands) { appendCommand(c.name, &c); } } void CRPCTable::appendCommand(const std::string& name, const CRPCCommand* pcmd) { CHECK_NONFATAL(!IsRPCRunning()); // Only add commands before rpc is running mapCommands[name].push_back(pcmd); } bool CRPCTable::removeCommand(const std::string& name, const CRPCCommand* pcmd) { auto it = mapCommands.find(name); if (it != mapCommands.end()) { auto new_end = std::remove(it->second.begin(), it->second.end(), pcmd); if (it->second.end() != new_end) { it->second.erase(new_end, it->second.end()); return true; } } return false; } void StartRPC() { LogPrint(BCLog::RPC, "Starting RPC\n"); g_rpc_running = true; g_rpcSignals.Started(); } void InterruptRPC() { static std::once_flag g_rpc_interrupt_flag; // This function could be called twice if the GUI has been started with -server=1. std::call_once(g_rpc_interrupt_flag, []() { LogPrint(BCLog::RPC, "Interrupting RPC\n"); // Interrupt e.g. running longpolls g_rpc_running = false; }); } void StopRPC() { static std::once_flag g_rpc_stop_flag; // This function could be called twice if the GUI has been started with -server=1. assert(!g_rpc_running); std::call_once(g_rpc_stop_flag, []() { LogPrint(BCLog::RPC, "Stopping RPC\n"); WITH_LOCK(g_deadline_timers_mutex, deadlineTimers.clear()); DeleteAuthCookie(); g_rpcSignals.Stopped(); }); } bool IsRPCRunning() { return g_rpc_running; } void RpcInterruptionPoint() { if (!IsRPCRunning()) throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Shutting down"); } void SetRPCWarmupStatus(const std::string& newStatus) { LOCK(g_rpc_warmup_mutex); rpcWarmupStatus = newStatus; } void SetRPCWarmupFinished() { LOCK(g_rpc_warmup_mutex); assert(fRPCInWarmup); fRPCInWarmup = false; } bool RPCIsInWarmup(std::string *outStatus) { LOCK(g_rpc_warmup_mutex); if (outStatus) *outStatus = rpcWarmupStatus; return fRPCInWarmup; } bool IsDeprecatedRPCEnabled(const std::string& method) { const std::vector<std::string> enabled_methods = gArgs.GetArgs("-deprecatedrpc"); return find(enabled_methods.begin(), enabled_methods.end(), method) != enabled_methods.end(); } static UniValue JSONRPCExecOne(JSONRPCRequest jreq, const UniValue& req) { UniValue rpc_result(UniValue::VOBJ); try { jreq.parse(req); UniValue result = tableRPC.execute(jreq); rpc_result = JSONRPCReplyObj(result, NullUniValue, jreq.id); } catch (const UniValue& objError) { rpc_result = JSONRPCReplyObj(NullUniValue, objError, jreq.id); } catch (const std::exception& e) { rpc_result = JSONRPCReplyObj(NullUniValue, JSONRPCError(RPC_PARSE_ERROR, e.what()), jreq.id); } return rpc_result; } std::string JSONRPCExecBatch(const JSONRPCRequest& jreq, const UniValue& vReq) { UniValue ret(UniValue::VARR); for (unsigned int reqIdx = 0; reqIdx < vReq.size(); reqIdx++) ret.push_back(JSONRPCExecOne(jreq, vReq[reqIdx])); return ret.write() + "\n"; } /** * Process named arguments into a vector of positional arguments, based on the * passed-in specification for the RPC call's arguments. */ static inline JSONRPCRequest transformNamedArguments(const JSONRPCRequest& in, const std::vector<std::string>& argNames) { JSONRPCRequest out = in; out.params = UniValue(UniValue::VARR); // Build a map of parameters, and remove ones that have been processed, so that we can throw a focused error if // there is an unknown one. const std::vector<std::string>& keys = in.params.getKeys(); const std::vector<UniValue>& values = in.params.getValues(); std::unordered_map<std::string, const UniValue*> argsIn; for (size_t i=0; i<keys.size(); ++i) { argsIn[keys[i]] = &values[i]; } // Process expected parameters. int hole = 0; for (const std::string &argNamePattern: argNames) { std::vector<std::string> vargNames; boost::algorithm::split(vargNames, argNamePattern, boost::algorithm::is_any_of("|")); auto fr = argsIn.end(); for (const std::string & argName : vargNames) { fr = argsIn.find(argName); if (fr != argsIn.end()) { break; } } if (fr != argsIn.end()) { for (int i = 0; i < hole; ++i) { // Fill hole between specified parameters with JSON nulls, // but not at the end (for backwards compatibility with calls // that act based on number of specified parameters). out.params.push_back(UniValue()); } hole = 0; out.params.push_back(*fr->second); argsIn.erase(fr); } else { hole += 1; } } // If there are still arguments in the argsIn map, this is an error. if (!argsIn.empty()) { throw JSONRPCError(RPC_INVALID_PARAMETER, "Unknown named parameter " + argsIn.begin()->first); } // Return request with named arguments transformed to positional arguments return out; } UniValue CRPCTable::execute(const JSONRPCRequest &request) const { // Return immediately if in warmup { LOCK(g_rpc_warmup_mutex); if (fRPCInWarmup) throw JSONRPCError(RPC_IN_WARMUP, rpcWarmupStatus); } // Find method auto it = mapCommands.find(request.strMethod); if (it != mapCommands.end()) { UniValue result; for (const auto& command : it->second) { if (ExecuteCommand(*command, request, result, &command == &it->second.back())) { return result; } } } throw JSONRPCError(RPC_METHOD_NOT_FOUND, "Method not found"); } static bool ExecuteCommand(const CRPCCommand& command, const JSONRPCRequest& request, UniValue& result, bool last_handler) { try { RPCCommandExecution execution(request.strMethod); // Execute, convert arguments to array if necessary if (request.params.isObject()) { return command.actor(transformNamedArguments(request, command.argNames), result, last_handler); } else { return command.actor(request, result, last_handler); } } catch (const std::exception& e) { throw JSONRPCError(RPC_MISC_ERROR, e.what()); } } std::vector<std::string> CRPCTable::listCommands() const { std::vector<std::string> commandList; for (const auto& i : mapCommands) commandList.emplace_back(i.first); return commandList; } void RPCSetTimerInterfaceIfUnset(RPCTimerInterface *iface) { if (!timerInterface) timerInterface = iface; } void RPCSetTimerInterface(RPCTimerInterface *iface) { timerInterface = iface; } void RPCUnsetTimerInterface(RPCTimerInterface *iface) { if (timerInterface == iface) timerInterface = nullptr; } void RPCRunLater(const std::string& name, std::function<void()> func, int64_t nSeconds) { if (!timerInterface) throw JSONRPCError(RPC_INTERNAL_ERROR, "No timer handler registered for RPC"); LOCK(g_deadline_timers_mutex); deadlineTimers.erase(name); LogPrint(BCLog::RPC, "queue run of timer %s in %i seconds (using %s)\n", name, nSeconds, timerInterface->Name()); deadlineTimers.emplace(name, std::unique_ptr<RPCTimerBase>(timerInterface->NewTimer(func, nSeconds*1000))); } int RPCSerializationFlags() { int flag = 0; if (gArgs.GetArg("-rpcserialversion", DEFAULT_RPC_SERIALIZE_VERSION) == 0) flag |= SERIALIZE_TRANSACTION_NO_WITNESS; return flag; } CRPCTable tableRPC;
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <QApplication> #include "bitcoingui.h" #include "transactiontablemodel.h" #include "optionsdialog.h" #include "aboutdialog.h" #include "clientmodel.h" #include "walletmodel.h" #include "walletframe.h" #include "optionsmodel.h" #include "transactiondescdialog.h" #include "bitcoinunits.h" #include "guiconstants.h" #include "notificator.h" #include "guiutil.h" #include "rpcconsole.h" #include "ui_interface.h" #include "wallet.h" #include "init.h" #ifdef Q_OS_MAC #include "macdockiconhandler.h" #endif #include <QMenuBar> #include <QMenu> #include <QIcon> #include <QVBoxLayout> #include <QToolBar> #include <QStatusBar> #include <QLabel> #include <QMessageBox> #include <QProgressBar> #include <QStackedWidget> #include <QDateTime> #include <QMovie> #include <QTimer> #include <QDragEnterEvent> #if QT_VERSION < 0x050000 #include <QUrl> #endif #include <QMimeData> #include <QStyle> #include <QSettings> #include <QDesktopWidget> #include <QListWidget> #include <iostream> const QString BitcoinGUI::DEFAULT_WALLET = "~Default"; extern int64 nLastCoinStakeSearchInterval; double GetPoSVKernelPS(); BitcoinGUI::BitcoinGUI(QWidget *parent) : QMainWindow(parent), clientModel(0), encryptWalletAction(0), changePassphraseAction(0), unlockWalletAction(0), lockWalletAction(0), aboutQtAction(0), trayIcon(0), notificator(0), rpcConsole(0), prevBlocks(0), nAverageWeight(0), nTotalWeight(0) { restoreWindowGeometry(); setWindowTitle(tr("WorldGreenCoin") + " - " + tr("Wallet")); #ifndef Q_OS_MAC QApplication::setWindowIcon(QIcon(":icons/bitcoin")); setWindowIcon(QIcon(":icons/bitcoin")); #else setUnifiedTitleAndToolBarOnMac(true); QApplication::setAttribute(Qt::AA_DontShowIconsInMenus); #endif // Create wallet frame and make it the central widget walletFrame = new WalletFrame(this); setCentralWidget(walletFrame); // Accept D&D of URIs setAcceptDrops(true); // Create actions for the toolbar, menu bar and tray/dock icon // Needs walletFrame to be initialized createActions(); // Create application menu bar createMenuBar(); // Create the toolbars createToolBars(); // Create system tray icon and notification createTrayIcon(); // Create status bar statusBar(); // Status bar notification icons QFrame *frameBlocks = new QFrame(); frameBlocks->setContentsMargins(0,0,0,0); // frameBlocks->setMinimumWidth(56); // frameBlocks->setMaximumWidth(56); frameBlocks->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred); QHBoxLayout *frameBlocksLayout = new QHBoxLayout(frameBlocks); frameBlocksLayout->setContentsMargins(3,0,3,0); frameBlocksLayout->setSpacing(3); labelEncryptionIcon = new QLabel(); labelStakingIcon = new QLabel(); labelConnectionsIcon = new QLabel(); labelBlocksIcon = new QLabel(); frameBlocksLayout->addStretch(); frameBlocksLayout->addWidget(labelEncryptionIcon); frameBlocksLayout->addStretch(); frameBlocksLayout->addWidget(labelStakingIcon); frameBlocksLayout->addStretch(); frameBlocksLayout->addWidget(labelConnectionsIcon); frameBlocksLayout->addStretch(); frameBlocksLayout->addWidget(labelBlocksIcon); frameBlocksLayout->addStretch(); if (GetBoolArg("-staking", true)) { QTimer *timerStakingIcon = new QTimer(labelStakingIcon); connect(timerStakingIcon, SIGNAL(timeout()), this, SLOT(updateStakingIcon())); timerStakingIcon->start(60 * 1000); updateStakingIcon(); } // Progress bar and label for blocks download progressBarLabel = new QLabel(); progressBarLabel->setVisible(false); progressBar = new QProgressBar(); progressBar->setAlignment(Qt::AlignCenter); progressBar->setVisible(false); // Override style sheet for progress bar for styles that have a segmented progress bar, // as they make the text unreadable (workaround for issue #1071) // See https://qt-project.org/doc/qt-4.8/gallery.html QString curStyle = QApplication::style()->metaObject()->className(); if(curStyle == "QWindowsStyle" || curStyle == "QWindowsXPStyle") { progressBar->setStyleSheet("QProgressBar { background-color: #e8e8e8; border: 1px solid grey; border-radius: 7px; padding: 1px; text-align: center; } QProgressBar::chunk { background: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #FF8000, stop: 1 orange); border-radius: 7px; margin: 0px; }"); } statusBar()->addWidget(progressBarLabel); statusBar()->addWidget(progressBar); statusBar()->addPermanentWidget(frameBlocks); syncIconMovie = new QMovie(":/movies/update_spinner", "mng", this); rpcConsole = new RPCConsole(this); connect(openRPCConsoleAction, SIGNAL(triggered()), rpcConsole, SLOT(show())); // prevents an open debug window from becoming stuck/unusable on client shutdown connect(quitAction, SIGNAL(triggered()), rpcConsole, SLOT(hide())); // Install event filter to be able to catch status tip events (QEvent::StatusTip) this->installEventFilter(this); // Initially wallet actions should be disabled setWalletActionsEnabled(false); } BitcoinGUI::~BitcoinGUI() { saveWindowGeometry(); if(trayIcon) // Hide tray icon, as deleting will let it linger until quit (on Ubuntu) trayIcon->hide(); #ifdef Q_OS_MAC delete appMenuBar; MacDockIconHandler::instance()->setMainWindow(NULL); #endif } void BitcoinGUI::createActions() { QActionGroup *tabGroup = new QActionGroup(this); overviewAction = new QAction(QIcon(":/icons/overview"), tr("&Overview"), this); overviewAction->setStatusTip(tr("Show general overview of wallet")); overviewAction->setToolTip(overviewAction->statusTip()); overviewAction->setCheckable(true); overviewAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_1)); tabGroup->addAction(overviewAction); sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send"), this); sendCoinsAction->setStatusTip(tr("Send coins to a WorldGreenCoin address")); sendCoinsAction->setToolTip(sendCoinsAction->statusTip()); sendCoinsAction->setCheckable(true); sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2)); tabGroup->addAction(sendCoinsAction); receiveCoinsAction = new QAction(QIcon(":/icons/receiving_addresses"), tr("&Receive"), this); receiveCoinsAction->setStatusTip(tr("Show the list of addresses for receiving payments")); receiveCoinsAction->setToolTip(receiveCoinsAction->statusTip()); receiveCoinsAction->setCheckable(true); receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3)); tabGroup->addAction(receiveCoinsAction); historyAction = new QAction(QIcon(":/icons/history"), tr("&Transactions"), this); historyAction->setStatusTip(tr("Browse transaction history")); historyAction->setToolTip(historyAction->statusTip()); historyAction->setCheckable(true); historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4)); tabGroup->addAction(historyAction); addressBookAction = new QAction(QIcon(":/icons/address-book"), tr("&Addresses"), this); addressBookAction->setStatusTip(tr("Edit the list of stored addresses and labels")); addressBookAction->setToolTip(addressBookAction->statusTip()); addressBookAction->setCheckable(true); addressBookAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_5)); tabGroup->addAction(addressBookAction); connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized())); connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage())); connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized())); connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage())); connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized())); connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage())); connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized())); connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage())); connect(addressBookAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized())); connect(addressBookAction, SIGNAL(triggered()), this, SLOT(gotoAddressBookPage())); quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this); quitAction->setStatusTip(tr("Quit application")); quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q)); quitAction->setMenuRole(QAction::QuitRole); aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About WorldGreenCoin"), this); aboutAction->setStatusTip(tr("Show information about WorldGreenCoin")); aboutAction->setMenuRole(QAction::AboutRole); aboutQtAction = new QAction(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this); aboutQtAction->setStatusTip(tr("Show information about Qt")); aboutQtAction->setMenuRole(QAction::AboutQtRole); optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this); optionsAction->setStatusTip(tr("Modify configuration options for WorldGreenCoin")); optionsAction->setMenuRole(QAction::PreferencesRole); toggleHideAction = new QAction(QIcon(":/icons/bitcoin"), tr("&Show / Hide"), this); toggleHideAction->setStatusTip(tr("Show or hide the main Window")); encryptWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Encrypt Wallet..."), this); encryptWalletAction->setStatusTip(tr("Encrypt the private keys that belong to your wallet")); encryptWalletAction->setCheckable(true); backupWalletAction = new QAction(QIcon(":/icons/filesave"), tr("&Backup Wallet..."), this); backupWalletAction->setStatusTip(tr("Backup wallet to another location")); changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase..."), this); changePassphraseAction->setStatusTip(tr("Change the passphrase used for wallet encryption")); unlockWalletAction = new QAction(QIcon(":/icons/lock_open"), tr("&Unlock Wallet..."), this); unlockWalletAction->setStatusTip(tr("Unlock wallet")); lockWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Lock Wallet"), this); lockWalletAction->setStatusTip(tr("Lock wallet")); signMessageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message..."), this); signMessageAction->setStatusTip(tr("Sign messages with your WorldGreenCoin addresses to prove you own them")); verifyMessageAction = new QAction(QIcon(":/icons/transaction_0"), tr("&Verify message..."), this); verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified WorldGreenCoin addresses")); openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Debug window"), this); openRPCConsoleAction->setStatusTip(tr("Open debugging and diagnostic console")); connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit())); connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked())); connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt())); connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked())); connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden())); connect(encryptWalletAction, SIGNAL(triggered(bool)), walletFrame, SLOT(encryptWallet(bool))); connect(backupWalletAction, SIGNAL(triggered()), walletFrame, SLOT(backupWallet())); connect(changePassphraseAction, SIGNAL(triggered()), walletFrame, SLOT(changePassphrase())); connect(unlockWalletAction, SIGNAL(triggered()), walletFrame, SLOT(unlockWallet())); connect(lockWalletAction, SIGNAL(triggered()), walletFrame, SLOT(lockWallet())); connect(signMessageAction, SIGNAL(triggered()), this, SLOT(gotoSignMessageTab())); connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(gotoVerifyMessageTab())); } void BitcoinGUI::createMenuBar() { #ifdef Q_OS_MAC // Create a decoupled menu bar on Mac which stays even if the window is closed appMenuBar = new QMenuBar(); #else // Get the main window's menu bar on other platforms appMenuBar = menuBar(); #endif // Configure the menus QMenu *file = appMenuBar->addMenu(tr("&File")); file->addAction(backupWalletAction); file->addAction(signMessageAction); file->addAction(verifyMessageAction); file->addSeparator(); file->addAction(quitAction); QMenu *settings = appMenuBar->addMenu(tr("&Settings")); settings->addAction(encryptWalletAction); settings->addAction(changePassphraseAction); settings->addAction(unlockWalletAction); settings->addAction(lockWalletAction); settings->addSeparator(); settings->addAction(optionsAction); QMenu *help = appMenuBar->addMenu(tr("&Help")); help->addAction(openRPCConsoleAction); help->addSeparator(); help->addAction(aboutAction); help->addAction(aboutQtAction); } void BitcoinGUI::createToolBars() { QToolBar *toolbar = addToolBar(tr("Tabs toolbar")); toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); toolbar->addAction(overviewAction); toolbar->addAction(sendCoinsAction); toolbar->addAction(receiveCoinsAction); toolbar->addAction(historyAction); toolbar->addAction(addressBookAction); } void BitcoinGUI::setClientModel(ClientModel *clientModel) { this->clientModel = clientModel; if(clientModel) { // Replace some strings and icons, when using the testnet if(clientModel->isTestNet()) { setWindowTitle(windowTitle() + QString(" ") + tr("[testnet]")); #ifndef Q_OS_MAC QApplication::setWindowIcon(QIcon(":icons/bitcoin_testnet")); setWindowIcon(QIcon(":icons/bitcoin_testnet")); #else MacDockIconHandler::instance()->setIcon(QIcon(":icons/bitcoin_testnet")); #endif if(trayIcon) { // Just attach " [testnet]" to the existing tooltip trayIcon->setToolTip(trayIcon->toolTip() + QString(" ") + tr("[testnet]")); trayIcon->setIcon(QIcon(":/icons/toolbar_testnet")); } toggleHideAction->setIcon(QIcon(":/icons/toolbar_testnet")); aboutAction->setIcon(QIcon(":/icons/toolbar_testnet")); } // Create system tray menu (or setup the dock menu) that late to prevent users from calling actions, // while the client has not yet fully loaded createTrayIconMenu(); // Keep up to date with client setNumConnections(clientModel->getNumConnections()); connect(clientModel, SIGNAL(numConnectionsChanged(int)), this, SLOT(setNumConnections(int))); setNumBlocks(clientModel->getNumBlocks(), clientModel->getNumBlocksOfPeers()); connect(clientModel, SIGNAL(numBlocksChanged(int,int)), this, SLOT(setNumBlocks(int,int))); // Receive and report messages from network/worker thread connect(clientModel, SIGNAL(message(QString,QString,unsigned int)), this, SLOT(message(QString,QString,unsigned int))); rpcConsole->setClientModel(clientModel); walletFrame->setClientModel(clientModel); } } bool BitcoinGUI::addWallet(const QString& name, WalletModel *walletModel) { setWalletActionsEnabled(true); return walletFrame->addWallet(name, walletModel); } bool BitcoinGUI::setCurrentWallet(const QString& name) { return walletFrame->setCurrentWallet(name); } void BitcoinGUI::removeAllWallets() { setWalletActionsEnabled(false); walletFrame->removeAllWallets(); } void BitcoinGUI::setWalletActionsEnabled(bool enabled) { overviewAction->setEnabled(enabled); sendCoinsAction->setEnabled(enabled); receiveCoinsAction->setEnabled(enabled); historyAction->setEnabled(enabled); encryptWalletAction->setEnabled(enabled); backupWalletAction->setEnabled(enabled); changePassphraseAction->setEnabled(enabled); signMessageAction->setEnabled(enabled); verifyMessageAction->setEnabled(enabled); addressBookAction->setEnabled(enabled); } void BitcoinGUI::createTrayIcon() { #ifndef Q_OS_MAC trayIcon = new QSystemTrayIcon(this); trayIcon->setToolTip(tr("WorldGreenCoin client")); trayIcon->setIcon(QIcon(":/icons/toolbar")); trayIcon->show(); #endif notificator = new Notificator(QApplication::applicationName(), trayIcon); } void BitcoinGUI::createTrayIconMenu() { QMenu *trayIconMenu; #ifndef Q_OS_MAC // return if trayIcon is unset (only on non-Mac OSes) if (!trayIcon) return; trayIconMenu = new QMenu(this); trayIcon->setContextMenu(trayIconMenu); connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(trayIconActivated(QSystemTrayIcon::ActivationReason))); #else // Note: On Mac, the dock icon is used to provide the tray's functionality. MacDockIconHandler *dockIconHandler = MacDockIconHandler::instance(); dockIconHandler->setMainWindow((QMainWindow *)this); trayIconMenu = dockIconHandler->dockMenu(); #endif // Configuration of the tray icon (or dock icon) icon menu trayIconMenu->addAction(toggleHideAction); trayIconMenu->addSeparator(); trayIconMenu->addAction(sendCoinsAction); trayIconMenu->addAction(receiveCoinsAction); trayIconMenu->addSeparator(); trayIconMenu->addAction(signMessageAction); trayIconMenu->addAction(verifyMessageAction); trayIconMenu->addSeparator(); trayIconMenu->addAction(optionsAction); trayIconMenu->addAction(openRPCConsoleAction); #ifndef Q_OS_MAC // This is built-in on Mac trayIconMenu->addSeparator(); trayIconMenu->addAction(quitAction); #endif } #ifndef Q_OS_MAC void BitcoinGUI::trayIconActivated(QSystemTrayIcon::ActivationReason reason) { if(reason == QSystemTrayIcon::Trigger) { // Click on system tray icon triggers show/hide of the main window toggleHideAction->trigger(); } } #endif void BitcoinGUI::saveWindowGeometry() { QSettings settings; settings.setValue("nWindowPos", pos()); settings.setValue("nWindowSize", size()); } void BitcoinGUI::restoreWindowGeometry() { QSettings settings; QPoint pos = settings.value("nWindowPos").toPoint(); QSize size = settings.value("nWindowSize", QSize(850, 550)).toSize(); if (!pos.x() && !pos.y()) { QRect screen = QApplication::desktop()->screenGeometry(); pos.setX((screen.width()-size.width())/2); pos.setY((screen.height()-size.height())/2); } resize(size); move(pos); } void BitcoinGUI::optionsClicked() { if(!clientModel || !clientModel->getOptionsModel()) return; OptionsDialog dlg; dlg.setModel(clientModel->getOptionsModel()); dlg.exec(); } void BitcoinGUI::aboutClicked() { AboutDialog dlg; dlg.setModel(clientModel); dlg.exec(); } void BitcoinGUI::gotoOverviewPage() { if (walletFrame) walletFrame->gotoOverviewPage(); } void BitcoinGUI::gotoHistoryPage() { if (walletFrame) walletFrame->gotoHistoryPage(); } void BitcoinGUI::gotoAddressBookPage() { if (walletFrame) walletFrame->gotoAddressBookPage(); } void BitcoinGUI::gotoReceiveCoinsPage() { if (walletFrame) walletFrame->gotoReceiveCoinsPage(); } void BitcoinGUI::gotoSendCoinsPage(QString addr) { if (walletFrame) walletFrame->gotoSendCoinsPage(addr); } void BitcoinGUI::gotoSignMessageTab(QString addr) { if (walletFrame) walletFrame->gotoSignMessageTab(addr); } void BitcoinGUI::gotoVerifyMessageTab(QString addr) { if (walletFrame) walletFrame->gotoVerifyMessageTab(addr); } void BitcoinGUI::setNumConnections(int count) { QString icon; switch(count) { case 0: icon = ":/icons/connect_0"; break; case 1: case 2: case 3: icon = ":/icons/connect_1"; break; case 4: case 5: case 6: icon = ":/icons/connect_2"; break; case 7: case 8: case 9: icon = ":/icons/connect_3"; break; default: icon = ":/icons/connect_4"; break; } labelConnectionsIcon->setPixmap(QIcon(icon).pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); labelConnectionsIcon->setToolTip(tr("%n active connection(s) to WorldGreenCoin network", "", count)); } void BitcoinGUI::setNumBlocks(int count, int nTotalBlocks) { // Prevent orphan statusbar messages (e.g. hover Quit in main menu, wait until chain-sync starts -> garbelled text) statusBar()->clearMessage(); // Acquire current block source enum BlockSource blockSource = clientModel->getBlockSource(); switch (blockSource) { case BLOCK_SOURCE_NETWORK: progressBarLabel->setText(tr("Synchronizing with network...")); break; case BLOCK_SOURCE_DISK: progressBarLabel->setText(tr("Importing blocks from disk...")); break; case BLOCK_SOURCE_REINDEX: progressBarLabel->setText(tr("Reindexing blocks on disk...")); break; case BLOCK_SOURCE_NONE: // Case: not Importing, not Reindexing and no network connection progressBarLabel->setText(tr("No block source available...")); break; } QString tooltip; QDateTime lastBlockDate = clientModel->getLastBlockDate(); QDateTime currentDate = QDateTime::currentDateTime(); int secs = lastBlockDate.secsTo(currentDate); if(count < nTotalBlocks) { tooltip = tr("Processed %1 of %2 (estimated) blocks of transaction history.").arg(count).arg(nTotalBlocks); } else { tooltip = tr("Processed %1 blocks of transaction history.").arg(count); } // Set icon state: spinning if catching up, tick otherwise if(secs < 90*60 && count >= nTotalBlocks) { tooltip = tr("Up to date") + QString(".<br>") + tooltip; labelBlocksIcon->setPixmap(QIcon(":/icons/synced").pixmap(STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE)); walletFrame->showOutOfSyncWarning(false); progressBarLabel->setVisible(false); progressBar->setVisible(false); } else { // Represent time from last generated block in human readable text QString timeBehindText; if(secs < 48*60*60) { timeBehindText = tr("%n hour(s)","",secs/(60*60)); } else if(secs < 14*24*60*60) { timeBehindText = tr("%n day(s)","",secs/(24*60*60)); } else { timeBehindText = tr("%n week(s)","",secs/(7*24*60*60)); } progressBarLabel->setVisible(true); progressBar->setFormat(tr("%1 behind").arg(timeBehindText)); progressBar->setMaximum(1000000000); progressBar->setValue(clientModel->getVerificationProgress() * 1000000000.0 + 0.5); progressBar->setVisible(true); tooltip = tr("Catching up...") + QString("<br>") + tooltip; labelBlocksIcon->setMovie(syncIconMovie); if(count != prevBlocks) syncIconMovie->jumpToNextFrame(); prevBlocks = count; walletFrame->showOutOfSyncWarning(true); tooltip += QString("<br>"); tooltip += tr("Last received block was generated %1 ago.").arg(timeBehindText); tooltip += QString("<br>"); tooltip += tr("Transactions after this will not yet be visible."); } // Don't word-wrap this (fixed-width) tooltip tooltip = QString("<nobr>") + tooltip + QString("</nobr>"); labelBlocksIcon->setToolTip(tooltip); progressBarLabel->setToolTip(tooltip); progressBar->setToolTip(tooltip); } void BitcoinGUI::message(const QString &title, const QString &message, unsigned int style, bool *ret) { QString strTitle = tr("WorldGreenCoin"); // default title // Default to information icon int nMBoxIcon = QMessageBox::Information; int nNotifyIcon = Notificator::Information; QString msgType; // Prefer supplied title over style based title if (!title.isEmpty()) { msgType = title; } else { switch (style) { case CClientUIInterface::MSG_ERROR: msgType = tr("Error"); break; case CClientUIInterface::MSG_WARNING: msgType = tr("Warning"); break; case CClientUIInterface::MSG_INFORMATION: msgType = tr("Information"); break; default: break; } } // Append title to "Bitcoin - " if (!msgType.isEmpty()) strTitle += " - " + msgType; // Check for error/warning icon if (style & CClientUIInterface::ICON_ERROR) { nMBoxIcon = QMessageBox::Critical; nNotifyIcon = Notificator::Critical; } else if (style & CClientUIInterface::ICON_WARNING) { nMBoxIcon = QMessageBox::Warning; nNotifyIcon = Notificator::Warning; } // Display message if (style & CClientUIInterface::MODAL) { // Check for buttons, use OK as default, if none was supplied QMessageBox::StandardButton buttons; if (!(buttons = (QMessageBox::StandardButton)(style & CClientUIInterface::BTN_MASK))) buttons = QMessageBox::Ok; // Ensure we get users attention showNormalIfMinimized(); QMessageBox mBox((QMessageBox::Icon)nMBoxIcon, strTitle, message, buttons, this); int r = mBox.exec(); if (ret != NULL) *ret = r == QMessageBox::Ok; } else notificator->notify((Notificator::Class)nNotifyIcon, strTitle, message); } void BitcoinGUI::changeEvent(QEvent *e) { QMainWindow::changeEvent(e); #ifndef Q_OS_MAC // Ignored on Mac if(e->type() == QEvent::WindowStateChange) { if(clientModel && clientModel->getOptionsModel()->getMinimizeToTray()) { QWindowStateChangeEvent *wsevt = static_cast<QWindowStateChangeEvent*>(e); if(!(wsevt->oldState() & Qt::WindowMinimized) && isMinimized()) { QTimer::singleShot(0, this, SLOT(hide())); e->ignore(); } } } #endif } void BitcoinGUI::closeEvent(QCloseEvent *event) { if(clientModel) { #ifndef Q_OS_MAC // Ignored on Mac if(!clientModel->getOptionsModel()->getMinimizeToTray() && !clientModel->getOptionsModel()->getMinimizeOnClose()) { QApplication::quit(); } #endif } QMainWindow::closeEvent(event); } void BitcoinGUI::askFee(qint64 nFeeRequired, bool *payFee) { QString strMessage = tr("This transaction is over the size limit. You can still send it for a fee of %1, " "which goes to the nodes that process your transaction and helps to support the network. " "Do you want to pay the fee?").arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, nFeeRequired)); QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm transaction fee"), strMessage, QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Yes); *payFee = (retval == QMessageBox::Yes); } void BitcoinGUI::incomingTransaction(const QString& date, int unit, qint64 amount, const QString& type, const QString& address) { // On new transaction, make an info balloon message((amount)<0 ? tr("Sent transaction") : tr("Incoming transaction"), tr("Date: %1\n" "Amount: %2\n" "Type: %3\n" "Address: %4\n") .arg(date) .arg(BitcoinUnits::formatWithUnit(unit, amount, true)) .arg(type) .arg(address), CClientUIInterface::MSG_INFORMATION); } void BitcoinGUI::dragEnterEvent(QDragEnterEvent *event) { // Accept only URIs if(event->mimeData()->hasUrls()) event->acceptProposedAction(); } void BitcoinGUI::dropEvent(QDropEvent *event) { if(event->mimeData()->hasUrls()) { int nValidUrisFound = 0; QList<QUrl> uris = event->mimeData()->urls(); foreach(const QUrl &uri, uris) { if (walletFrame->handleURI(uri.toString())) nValidUrisFound++; } // if valid URIs were found if (nValidUrisFound) walletFrame->gotoSendCoinsPage(); else message(tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid WorldGreenCoin address or malformed URI parameters."), CClientUIInterface::ICON_WARNING); } event->acceptProposedAction(); } bool BitcoinGUI::eventFilter(QObject *object, QEvent *event) { // Catch status tip events if (event->type() == QEvent::StatusTip) { // Prevent adding text from setStatusTip(), if we currently use the status bar for displaying other stuff if (progressBarLabel->isVisible() || progressBar->isVisible()) return true; } return QMainWindow::eventFilter(object, event); } void BitcoinGUI::handleURI(QString strURI) { // URI has to be valid if (!walletFrame->handleURI(strURI)) message(tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid WorldGreenCoin address or malformed URI parameters."), CClientUIInterface::ICON_WARNING); } void BitcoinGUI::setEncryptionStatus(int status) { switch(status) { case WalletModel::Unencrypted: labelEncryptionIcon->hide(); encryptWalletAction->setChecked(false); changePassphraseAction->setEnabled(false); unlockWalletAction->setVisible(false); lockWalletAction->setVisible(false); encryptWalletAction->setEnabled(true); break; case WalletModel::Unlocked: labelEncryptionIcon->show(); labelEncryptionIcon->setPixmap(QIcon(":/icons/lock_open").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); labelEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>unlocked</b>")); encryptWalletAction->setChecked(true); changePassphraseAction->setEnabled(true); unlockWalletAction->setVisible(false); lockWalletAction->setVisible(true); encryptWalletAction->setEnabled(false); // TODO: decrypt currently not supported break; case WalletModel::Locked: labelEncryptionIcon->show(); labelEncryptionIcon->setPixmap(QIcon(":/icons/lock_closed").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); labelEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>locked</b>")); encryptWalletAction->setChecked(true); changePassphraseAction->setEnabled(true); unlockWalletAction->setVisible(true); lockWalletAction->setVisible(false); encryptWalletAction->setEnabled(false); // TODO: decrypt currently not supported break; } } void BitcoinGUI::showNormalIfMinimized(bool fToggleHidden) { // activateWindow() (sometimes) helps with keyboard focus on Windows if (isHidden()) { show(); activateWindow(); } else if (isMinimized()) { showNormal(); activateWindow(); } else if (GUIUtil::isObscured(this)) { raise(); activateWindow(); } else if(fToggleHidden) hide(); } void BitcoinGUI::toggleHidden() { showNormalIfMinimized(true); } void BitcoinGUI::updateWeight() { if (!pwalletMain) return; TRY_LOCK(cs_main, lockMain); if (!lockMain) return; TRY_LOCK(pwalletMain->cs_wallet, lockWallet); if (!lockWallet) return; pwalletMain->GetStakeWeight(*pwalletMain, nAverageWeight, nTotalWeight); } void BitcoinGUI::updateStakingIcon() { updateWeight(); if (nLastCoinStakeSearchInterval && nAverageWeight) { uint64 nNetworkWeight = GetPoSVKernelPS(); unsigned nEstimateTime = nTargetSpacing * nNetworkWeight / nTotalWeight; QString text; if (nEstimateTime < 60) { text = tr("%n second(s)", "", nEstimateTime); } else if (nEstimateTime < 60*60) { text = tr("%n minute(s)", "", nEstimateTime/60); } else if (nEstimateTime < 24*60*60) { text = tr("%n hour(s)", "", nEstimateTime/(60*60)); } else { text = tr("%n day(s)", "", nEstimateTime/(60*60*24)); } labelStakingIcon->setPixmap(QIcon(":/icons/staking_on").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); labelStakingIcon->setToolTip(tr("Staking.<br>Your average weight is %1<br>Your total weight is %2<br>Network weight is %3<br>Expected time to earn reward is %4").arg(nAverageWeight).arg(nTotalWeight).arg(nNetworkWeight).arg(text)); } else { labelStakingIcon->setPixmap(QIcon(":/icons/staking_off").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); if (pwalletMain && pwalletMain->IsLocked()) labelStakingIcon->setToolTip(tr("Not staking because wallet is locked")); else if (vNodes.empty()) labelStakingIcon->setToolTip(tr("Not staking because wallet is offline")); else if (IsInitialBlockDownload()) labelStakingIcon->setToolTip(tr("Not staking because wallet is syncing")); else if (!nAverageWeight) labelStakingIcon->setToolTip(tr("Not staking because you don't have mature coins")); else labelStakingIcon->setToolTip(tr("Not staking")); } } void BitcoinGUI::detectShutdown() { if (ShutdownRequested()) QMetaObject::invokeMethod(QCoreApplication::instance(), "quit", Qt::QueuedConnection); }
IDEAL RADIX 16 P286 MODEL LARGE STRUC desc_struc ; структура дескриптора limit dw 0 ; предел base_l dw 0 ; мл. слово физического адреса base_h db 0 ; ст. байт физического адреса access db 0 ; байт доступа rsrv dw 0 ; зарезервировано ENDS desc_struc STRUC idt_struc ; вентиль прерывания destoff dw 0 ; смещение обработчика destsel dw 0 ; селектор обработчика nparams db 0 ; кол-во параметров assess db 0 ; байт доступа rsrv dw 0 ; зарезервировано ENDS idt_struc STRUC idtr_struc ; регистр IDTR idt_lim dw 0 ; предел IDT idt_l dw 0 ; мл. слово физического адреса idt_h db 0 ; ст. байт физического адреса rsrv db 0 ; зарезервировано ENDS idtr_struc ; --------------------------------------------------------------- ; Биты байта доступа ACC_PRESENT EQU 10000000b ; сегмент есть в памяти ACC_CSEG EQU 00011000b ; сегмент кода ACC_DSEG EQU 00010000b ; сегмент данных ACC_EXPDOWN EQU 00000100b ; сегмент расширяется вниз ACC_CONFORM EQU 00000100b ; согласованный сегмент ACC_DATAWR EQU 00000010b ; разрешена запись ACC_INT_GATE EQU 00000110b ; вентиль прерывания ACC_TRAP_GATE EQU 00000111b ; вентиль исключения ; ------------------------------------------------------------ ; Типы сегментов ; сегмент данных DATA_ACC = ACC_PRESENT OR ACC_DSEG OR ACC_DATAWR ; сегмент кода CODE_ACC = ACC_PRESENT OR ACC_CSEG OR ACC_CONFORM ; сегмент стека STACK_ACC = ACC_PRESENT OR ACC_DSEG OR ACC_DATAWR OR ACC_EXPDOWN ; байт доступа сегмента таблицы IDT IDT_ACC = DATA_ACC ; байт доступа вентиля прерывания INT_ACC = ACC_PRESENT OR ACC_INT_GATE ; байт доступа вентиля исключения TRAP_ACC = ACC_PRESENT OR ACC_TRAP_GATE ; ------------------------------------------------------------ ; Константы STACK_SIZE EQU 0800 ; размер стека B_DATA_SIZE EQU 0300 ; размер области данных BIOS B_DATA_ADDR EQU 0400 ; адрес области данных BIOS MONO_SEG EQU 0b000 ; сегмент видеопамяти ; монохромного видеоадаптера COLOR_SEG EQU 0b800 ; сегмент видеопамяти ; цветного видеоадаптера CRT_SIZE EQU 4000 ; размер сегмента видеопамяти ; цветного видеоадаптера MONO_SIZE EQU 1000 ; размер сегмента видеопамяти ; монохромного видеоадаптера CRT_LOW EQU 8000 ; мл. байт физического адреса ; сегмента видеопамяти ; цветного видеоадаптера MONO_LOW EQU 0000 ; мл. байт физического адреса ; сегмента видеопамяти ; монохромного видеоадаптера CRT_SEG EQU 0Bh ; ст. байт физического адреса ; сегмента видеопамяти CMOS_PORT EQU 70h ; порт для доступа к CMOS-памяти PORT_6845 EQU 0063h ; адрес области данных BIOS, ; где записано значение адреса ; порта контроллера 6845 COLOR_PORT EQU 03d4h ; порт цветного видеоконтроллера MONO_PORT EQU 03b4h ; порт монохромного видеоконтроллера STATUS_PORT EQU 64h ; порт состояния клавиатуры SHUT_DOWN EQU 0feh ; команда сброса процессора VIRTUAL_MODE EQU 0001h ; бит перехода в защищённый режим A20_PORT EQU 0d1h ; команда управления линией A20 A20_ON EQU 0dfh ; открыть A20 A20_OFF EQU 0ddh ; закрыть A20 KBD_PORT_A EQU 60h ; адреса клавиатурных KBD_PORT_B EQU 61h ; портов INT_MASK_PORT EQU 21h ; порт для маскирования прерываний EOI EQU 20 ; команда конца прерывания MASTER8259A EQU 20 ; первый контроллер прерываний SLAVE8259A EQU 0a0 ; второй контроллер прерываний ; ------------------------------------------------------------ ; Селекторы, определённые в таблице GDT DS_DESCR = (gdt_ds - gdt_0) CS_DESCR = (gdt_cs - gdt_0) SS_DESCR = (gdt_ss - gdt_0) BIOS_DESCR = (gdt_bio - gdt_0) CRT_DESCR = (gdt_crt - gdt_0) MDA_DESCR = (gdt_mda - gdt_0) ; ------------------------------------------------------------ ; Маски и инверсные маски для клавиш STACK STACK_SIZE DATASEG DSEG_BEG = THIS WORD real_ss dw ? real_sp dw ? real_es dw ? GDT_BEG = $ LABEL gdtr WORD gdt_0 desc_struc <0,0,0,0,0> gdt_gdt desc_struc <GDT_SIZE-1,,,DATA_ACC,0> gdt_idt desc_struc <IDT_SIZE-1,,,IDT_ACC,0> gdt_ds desc_struc <DSEG_SIZE-1,,,DATA_ACC,0> gdt_cs desc_struc <CSEG_SIZE-1,,,CODE_ACC,0> gdt_ss desc_struc <STACK_SIZE-1,,,DATA_ACC,0> gdt_bio desc_struc <B_DATA_SIZE-1,B_DATA_ADDR,0,DATA_ACC,0> gdt_crt desc_struc <CRT_SIZE-1,CRT_LOW,CRT_SEG,DATA_ACC,0> gdt_mda desc_struc <MONO_SIZE-1,MONO_LOW,CRT_SEG,DATA_ACC,0> GDT_SIZE = ($ - GDT_BEG) ; Область памяти для загрузки регистра IDTR idtr idtr_struc <IDT_SIZE,,,0> ; Таблица дескрипторов прерываний IDT_BEG = $ ; ---------------------- Вентили исключений -------------------- idt idt_struc 020h dup(<OFFSET shutdown,CS_DESCR,0,TRAP_ACC,0>) ; --------------- Вентили аппаратных прерываний --------------- ; int 20h-IRQ0 idt_struc <OFFSET Timer_int,CS_DESCR,0,INT_ACC,0> ; int 21h-IRQ1s idt_struc <OFFSET Keyb_int,CS_DESCR,0,INT_ACC,0> ; int 22h, 23h, 24h, 25h, 26h, 27h-IRQ2-IRQ7 idt_struc 6 dup (<OFFSET dummy_iret0,CS_DESCR,0,INT_ACC,0>) ; int 28h, 29h, 2ah, 2bh, 2ch, 2dh, 2eh, 2fh-IRQ8-IRQ15 idt_struc <OFFSET rtc_cnt_int,CS_DESCR,0,INT_ACC,0> idt_struc 7 dup (<OFFSET dummy_iret1,CS_DESCR,0,INT_ACC,0>) ; -------------------- Вентиль прерывания -------------------- ; int 30h ;idt_struc <OFFSET Int_30h_Entry,CS_DESCR,0,INT_ACC,0> IDT_SIZE = ($ - IDT_BEG) sec dw 20; CODESEG PROC start mov ax,DGROUP mov ds,ax call set_crt_base mov bh, 77h call clrscr; ; Устанавливаем защищённый ржим call set_pmode call write_hello_msg ; Размаскируем прерывания от таймера и клавиатуры и RTC in al,INT_MASK_PORT and al,0f8h out INT_MASK_PORT,al in AL, 0A1h; read mask by OCW1 command | and AL, 11111110b; enable IRQ8(70h) interruptions in interruption controller | jmp $ + 2; out 0A1h, AL; write new mask by OCW1 command ; Ожидаем нажатия на клавишу <ESC> charin: mov al, 1; cmp al, [Esc_flag] ; если <ESC> - выход из цикла je continue jmp charin ; Следующий байт находится в сегменте кода. ; Он используется нами для демонстрации возникновения ; исключения при попытке записи в сегмент кода. wrong1 db ? continue: ; После нажатия на клавишу <ESC> выходим в это место ; программы. Следующие несколько строк демонстрируют ; команды, которые вызывают исключение. Вы можете ; попробовать их, если уберёте символ комментария ; из соответствующей строки. ; Попытка записи за конец сегмента данных. Метка wrong ; находится в самом конце программы. ;mov [wrong], al ; Попытка записи в сегмент кода. ; mov [wrong1], al ; Попытка извлечения из пустого стека. ; pop ax ; Загрузка в сегментный регистр неправильного селектора. ; mov ax, 1280h ; mov ds, ax ; Прямой вызов исключения при помощи команды прерывания. ; int 1 call set_rmode ; установка реального режима mov bh, 07h ; стираем экран и call clrscr ; выходим в DOS mov ah,4c int 21h ENDP start MACRO setgdtentry mov [(desc_struc bx).base_l],ax mov [(desc_struc bx).base_h],dl ENDM ; ------------------------------------------- ; Установка защищённого режима ; ------------------------------------------- PROC set_pmode NEAR mov ax,DGROUP mov dl,ah shr dl,4 shl ax,4 mov si,ax mov di,dx add ax,OFFSET gdtr adc dl,0 mov bx,OFFSET gdt_gdt setgdtentry ; Заполняем дескриптор в GDT, указывающий на ; дескрипторную таблицу прерываний mov ax,si ; загружаем 24-битовый адрес сегмента mov dx,di ; данных add ax,OFFSET idt ; адрес дескриптора для IDT adc dl,0 mov bx,OFFSET gdt_idt setgdtentry ; Заполняем структуру для загрузки регистра IDTR mov bx,OFFSET idtr mov [(idtr_struc bx).idt_l],ax mov [(idtr_struc bx).idt_h],dl mov bx,OFFSET gdt_ds mov ax,si mov dx,di setgdtentry mov bx,OFFSET gdt_cs mov ax,cs mov dl,ah shr dl,4 shl ax,4 setgdtentry mov bx,OFFSET gdt_ss mov ax,ss mov dl,ah shr dl,4 shl ax,4 setgdtentry ; готовим возврат в реальный режим push ds mov ax,40 mov ds,ax mov [WORD 67],OFFSET shutdown_return mov [WORD 69],cs pop ds cli mov al,8f out CMOS_PORT,al jmp del1 del1: mov al,5 out CMOS_PORT+1,al mov ax,[rl_crt] ; сегмент видеопамяти mov es,ax call enable_a20 ; открываем линию A20 mov [real_ss],ss ; сохраняем сегментные mov [real_es],es ; регистры ; -------- Перепрограммируем контроллер прерываний -------- ; Устанавливаем для IRQ0-IRQ7 номера прерываний 20h-27h mov dx,MASTER8259A mov ah,20h call set_int_ctrlr ; Устанавливаем для IRQ8-IRQ15 номера прерываний 28h-2Fh mov dx,SLAVE8259A mov ah,28h call set_int_ctrlr ; Включаем RTC прерывания cli; mov AL, 8Bh; set B register for CMOS | out 70h, AL; write B register to controll port | jmp $ + 2; pause | in AL, 71h; read B register | or AL, 01000000b; enable IRQ8(70h) interruptions in RTC | push AX; mov AL, 8Bh; set B register for CMOS | out 70h, AL; write B register to controll port | pop AX; jmp $ + 2; out 71h, AL; write B register | sti; ; Загружаем регистры IDTR и GDTR lidt [FWORD idtr] lgdt [QWORD gdt_gdt] ; Переключаемся в защищённый режим mov ax,VIRTUAL_MODE lmsw ax ; jmp far flush db 0ea dw OFFSET flush dw CS_DESCR LABEL flush FAR ; Загружаем селекторы в сегментные регистры mov ax,SS_DESCR mov ss,ax mov ax,DS_DESCR mov ds,ax ; Разрешаем прерывания sti ret ENDP set_pmode DATASEG ; Пустой дескриптор для выполнения возврата ; процессора в реальный режим через перевод ; его в состояние отключения. null_idt idt_struc <> CODESEG PROC set_rmode NEAR mov [real_sp],sp ; Переводим процессор в состояние отключения, ; это эквивалентно аппаратному сбросу, но ; выполняется быстрее. ; Сначала мы загружаем IDTR нулями, затем ; выдаём команду прерывания. lidt [FWORD null_idt] int 3 rwait: hlt jmp rwait LABEL shutdown_return FAR in al,INT_MASK_PORT and al,0 out INT_MASK_PORT,al mov ax,DGROUP mov ds,ax assume ds:DGROUP cli mov ss,[real_ss] mov sp,[real_sp] mov ax,000dh out CMOS_PORT,al sti mov es,[real_es] call disable_a20 ret ENDP set_rmode ; ------------------------------------------------- ; Обработка исключений ; ------------------------------------------------- ; Обработчики исключений. Записываем в AX номер ; исключения и передаём управление процедуре ; shutdown DATASEG exc_msg db "Exception occures Press any key... " CODESEG PROC shutdown NEAR ; Выводим сообщение об исключении mov ax,[vir_crt] mov es,ax mov bx,1d mov ax,4 mov si,OFFSET exc_msg mov dh,74h mov cx, SIZE exc_msg call writexy call set_rmode ; возвращаемся в реальный режим mov ax, 0 ; ожидаем нажатия на клавишу int 16h mov bh, 07h call clrscr mov ah,4Ch int 21h ENDP shutdown ; ------------------------------------------------- ; Перепрограммирование контроллера прерываний ; На входе: DX - порт контроллера прерывания ; AH - начальный номер прерывания ; ------------------------------------------------- PROC set_int_ctrlr NEAR mov al,11 out dx,al jmp SHORT $+2 mov al,ah inc dx out dx,al jmp SHORT $+2 mov al,4 out dx,al jmp SHORT $+2 mov al,1 out dx,al jmp SHORT $+2 mov al,0ff out dx,al dec dx ret ENDP set_int_ctrlr ; ------------------------------- ; Разрешение линии A20 ; ------------------------------- PROC enable_a20 NEAR mov al,A20_PORT out STATUS_PORT,al mov al,A20_ON out KBD_PORT_A,al ret ENDP enable_a20 ; ------------------------------- ; Запрещение линии A20 ; ------------------------------- PROC disable_a20 NEAR mov al,A20_PORT out STATUS_PORT,al mov al,A20_OFF out KBD_PORT_A,al ret ENDP disable_a20 ; ---------- Обработчик аппаратных прерываний IRQ2-IRQ7 PROC dummy_iret0 NEAR push ax ; Посылаем сигнал конца прерывания в первый контроллер 8259A mov al,EOI out MASTER8259A,al pop ax iret ENDP dummy_iret0 ; ---------- Обработчик аппаратных прерываний IRQ8-IRQ15 PROC dummy_iret1 NEAR push ax ; Посылаем сигнал конца прерывания в первый ; и второй контроллеры 8259A mov al,EOI out MASTER8259A,al out SLAVE8259A,al pop ax iret ENDP dummy_iret1 ; ------------------------------------------ ; Процедуры для работы с клавиатурой ; ------------------------------------------ DATASEG Esc_flag db 0 key_flag db 0 key_code dw 0 ext_scan db 0 keyb_status dw 0 CODESEG ; ---------------------------------------------- ; Обработчик аппаратного прерывания клавиатуры ; ---------------------------------------------- PROC Keyb_int NEAR push AX; push DS; push ES; in AL, 60h; push AX; pop AX; IRQ1_continue_1: cmp AL, 1; jne IRQ1_continue_2; mov [Esc_flag], AL; IRQ1_continue_2: mov bx, 0302h ;!!!!!! call Print_Word; ;!!!!!! mov AL, 20h; ;iret should do it by him self, but without this it doesnt work out 20h, AL; IRQ1_exit: pop ES; pop DS; pop AX; iret; ENDP Keyb_int ; ------------------------------------------- ; TIMER section ; ------------------------------------------- DATASEG timer_cnt dw 0 rtc_cnt dw 0 CODESEG PROC Timer_int NEAR cli push ax push bx; !!!!!!!! ; Увеличиваем содержимое счётчика времени mov ax, [timer_cnt] inc ax mov [timer_cnt], ax mov bx, 0402; call Print_Word; ; Примерно раз в секунду выдаём звуковой сигнал test ax, 0fh jnz timer_exit ;call beep timer_exit: ; Посылаем команду конца прерывания mov al,EOI out MASTER8259A,al pop bx ;!!!!!!!!! pop ax sti iret ENDP Timer_int PROC rtc_cnt_int NEAR push AX; mov AX, [rtc_cnt] inc AX; mov [rtc_cnt], AX; mov bx, 0502; call Print_Word; mov AL, 0ch; out 70h, AL; in AL, 71h; xor AX, AX; mov al, 20h ; посылаем сигнал конца out 0a0h ,al ; прерывания pop AX; IRET; ENDP rtc_cnt_int ; -------------------------------------------------- ; Процедуры обслуживания видеоконтроллера ; -------------------------------------------------- DATASEG columns db 80d rows db 25d rl_crt dw COLOR_SEG vir_crt dw CRT_DESCR curr_line dw 0d text_buf db " " CODESEG ; ----------------------------------------- ; Определение адреса видеопамяти ; ----------------------------------------- PROC set_crt_base NEAR mov ax,40 mov es,ax mov bx,[WORD es:4a] mov [columns],bl mov bl,[BYTE es:84] inc bl mov [rows],bl mov bx,[WORD es:PORT_6845] cmp bx,COLOR_PORT je color_crt mov [rl_crt],MONO_SEG mov [vir_crt],MDA_DESCR color_crt: ret ENDP set_crt_base ; ------------------------------------- ; Запись строки в видеопамять ; ------------------------------------- PROC writexy NEAR push si push di mov dl,[columns] mul dl add ax,bx shl ax,1 mov di,ax mov ah,dh write_loop: lodsb stosw loop write_loop pop di pop si ret ENDP writexy ; --------------------------------------- ; Стирание экрана (в реальном режиме) ; --------------------------------------- PROC clrscr NEAR xor cx,cx mov dl,[columns] mov dh,[rows] mov ax,0600 int 10 ret ENDP clrscr DATASEG hello_msg db " Protected mode monitor *TINY/OS*" CODESEG ; ------------------------------------ ; Вывод начального сообщения ; в защищённом режиме ; ------------------------------------ PROC write_hello_msg NEAR mov ax,[vir_crt] mov es,ax mov si,OFFSET hello_msg mov bx,0 mov ax,[curr_line] inc [curr_line] mov cx,SIZE hello_msg mov dh,30h call writexy ;call beep ret ENDP write_hello_msg ; ---------------------------------------------- ; Процедура выводит на экран содержимое AX ; (x,y) = (bh, bl) ; ---------------------------------------------- PROC Print_Word near push ax push bx push dx push ax mov cl,8 rol ax,cl call Byte_to_hex mov [text_buf], dh mov [text_buf+1], dl pop ax call Byte_to_hex mov [text_buf+2], dh mov [text_buf+3], dl mov si, OFFSET text_buf mov dh, 70h mov cx, 4 mov al, bh mov ah, 0 mov bh, 0 call writexy pop dx pop bx pop ax ret ENDP Print_Word DATASEG tabl db '0123456789ABCDEF' CODESEG ; ----------------------------------------- ; Преобразование байта в шестнадцатеричный ; символьный формат ; al - входной байт ; dx - выходное слово ; ----------------------------------------- PROC Byte_to_hex near push cx push bx mov bx, OFFSET tabl push ax and al,0fh xlat mov dl,al pop ax mov cl,4 shr al,cl xlat mov dh,al pop bx pop cx ret ENDP Byte_to_hex CSEG_SIZE = ($ - start) DATASEG DSEG_SIZE = ($ - DSEG_BEG) wrong db ? END start
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. // This source code is also licensed under the GPLv2 license found in the // COPYING file in the root directory of this source tree. // // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/db_impl.h" #ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS #endif #include <inttypes.h> #include <vector> #include "db/column_family.h" #include "db/job_context.h" #include "db/version_set.h" #include "rocksdb/status.h" namespace rocksdb { #ifndef ROCKSDB_LITE Status DBImpl::SuggestCompactRange(ColumnFamilyHandle* column_family, const Slice* begin, const Slice* end) { auto cfh = reinterpret_cast<ColumnFamilyHandleImpl*>(column_family); auto cfd = cfh->cfd(); InternalKey start_key, end_key; if (begin != nullptr) { start_key.SetMaxPossibleForUserKey(*begin); } if (end != nullptr) { end_key.SetMinPossibleForUserKey(*end); } { InstrumentedMutexLock l(&mutex_); auto vstorage = cfd->current()->storage_info(); for (int level = 0; level < vstorage->num_non_empty_levels() - 1; ++level) { std::vector<FileMetaData*> inputs; vstorage->GetOverlappingInputs( level, begin == nullptr ? nullptr : &start_key, end == nullptr ? nullptr : &end_key, &inputs); for (auto f : inputs) { f->marked_for_compaction = true; } } // Since we have some more files to compact, we should also recompute // compaction score vstorage->ComputeCompactionScore(*cfd->ioptions(), *cfd->GetLatestMutableCFOptions()); SchedulePendingCompaction(cfd); MaybeScheduleFlushOrCompaction(); } return Status::OK(); } Status DBImpl::PromoteL0(ColumnFamilyHandle* column_family, int target_level) { assert(column_family); if (target_level < 1) { ROCKS_LOG_INFO(immutable_db_options_.info_log, "PromoteL0 FAILED. Invalid target level %d\n", target_level); return Status::InvalidArgument("Invalid target level"); } Status status; VersionEdit edit; JobContext job_context(next_job_id_.fetch_add(1), true); { InstrumentedMutexLock l(&mutex_); auto* cfd = static_cast<ColumnFamilyHandleImpl*>(column_family)->cfd(); const auto* vstorage = cfd->current()->storage_info(); if (target_level >= vstorage->num_levels()) { ROCKS_LOG_INFO(immutable_db_options_.info_log, "PromoteL0 FAILED. Target level %d does not exist\n", target_level); job_context.Clean(); return Status::InvalidArgument("Target level does not exist"); } // Sort L0 files by range. const InternalKeyComparator* icmp = &cfd->internal_comparator(); auto l0_files = vstorage->LevelFiles(0); std::sort(l0_files.begin(), l0_files.end(), [icmp](FileMetaData* f1, FileMetaData* f2) { return icmp->Compare(f1->largest, f2->largest) < 0; }); // Check that no L0 file is being compacted and that they have // non-overlapping ranges. for (size_t i = 0; i < l0_files.size(); ++i) { auto f = l0_files[i]; if (f->being_compacted) { ROCKS_LOG_INFO(immutable_db_options_.info_log, "PromoteL0 FAILED. File %" PRIu64 " being compacted\n", f->fd.GetNumber()); job_context.Clean(); return Status::InvalidArgument("PromoteL0 called during L0 compaction"); } if (i == 0) continue; auto prev_f = l0_files[i - 1]; if (icmp->Compare(prev_f->largest, f->smallest) >= 0) { ROCKS_LOG_INFO(immutable_db_options_.info_log, "PromoteL0 FAILED. Files %" PRIu64 " and %" PRIu64 " have overlapping ranges\n", prev_f->fd.GetNumber(), f->fd.GetNumber()); job_context.Clean(); return Status::InvalidArgument("L0 has overlapping files"); } } // Check that all levels up to target_level are empty. for (int level = 1; level <= target_level; ++level) { if (vstorage->NumLevelFiles(level) > 0) { ROCKS_LOG_INFO(immutable_db_options_.info_log, "PromoteL0 FAILED. Level %d not empty\n", level); job_context.Clean(); return Status::InvalidArgument( "All levels up to target_level " "must be empty"); } } edit.SetColumnFamily(cfd->GetID()); for (const auto& f : l0_files) { edit.DeleteFile(0, f->fd.GetNumber()); edit.AddFile(target_level, f->fd.GetNumber(), f->fd.GetPathId(), f->fd.GetFileSize(), f->smallest, f->largest, f->smallest_seqno, f->largest_seqno, f->marked_for_compaction); } status = versions_->LogAndApply(cfd, *cfd->GetLatestMutableCFOptions(), &edit, &mutex_, directories_.GetDbDir()); if (status.ok()) { InstallSuperVersionAndScheduleWorkWrapper( cfd, &job_context, *cfd->GetLatestMutableCFOptions()); } } // lock released here LogFlush(immutable_db_options_.info_log); job_context.Clean(); return status; } #endif // ROCKSDB_LITE } // namespace rocksdb
SFX_Snare6_3_Ch7: unknownnoise0x20 0, 129, 16 endchannel
; Copyright (c) 2004, Intel Corporation ; All rights reserved. This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD License ; which accompanies this distribution. The full text of the license may be found at ; http://opensource.org/licenses/bsd-license.php ; ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. ; ; Module Name: ; ; CpuPause.Asm ; ; Abstract: ; ; CpuPause function ; ; Notes: ; ;------------------------------------------------------------------------------ .code ;------------------------------------------------------------------------------ ; VOID ; EFIAPI ; CpuPause ( ; VOID ; ); ;------------------------------------------------------------------------------ CpuPause PROC pause ret CpuPause ENDP END
#include <SDL2/SDL.h> #include <stdio.h> #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 480 int main(int argc, char* args[]) { SDL_Window* window = NULL; SDL_Surface* screenSurface = NULL; if (SDL_Init(SDL_INIT_VIDEO) < 0) { fprintf(stderr, "could not initialize sdl2: %s\n", SDL_GetError()); return 1; } window = SDL_CreateWindow( "Hello SDL2", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN ); if (window == NULL) { fprintf(stderr, "could not create window: %s\n", SDL_GetError()); return 1; } screenSurface = SDL_GetWindowSurface(window); SDL_FillRect(screenSurface, NULL, SDL_MapRGB(screenSurface->format, 0xFF, 0xFF, 0xFF)); SDL_UpdateWindowSurface(window); SDL_Delay(2000); SDL_DestroyWindow(window); SDL_Quit(); return 0; }
; A002487: Stern's diatomic series (or Stern-Brocot sequence): a(0) = 0, a(1) = 1; for n > 0: a(2*n) = a(n), a(2*n+1) = a(n) + a(n+1). ; Coded manually 2021-03-01 by Simon Strandgaard, https://github.com/neoneye ; 0,1,1,2,1,3,2,3,1,4,3,5,2,5,3,4,1,5,4,7,3,8,5,7,2,7,5,8,3,7,4,5,1,6,5,9,4,11,7,10,3,11,8,13,5,12,7,9,2,9,7,12,5,13,8,11,3,10,7,11,4,9,5,6,1,7,6,11,5,14,9,13,4,15,11,18,7,17,10,13,3,14,11,19,8,21,13,18,5,17,12,19 mov $2,$0 add $0,1 div $0,2 ; $0 = (n + 1) / 2 mov $1,0 ; output_sum=0 lpb $0 sub $0,1 ; $0 = k ; $1 = sum ; $2 = n mov $3,$2 sub $3,$0 sub $3,1 ; $3 = n-k-1 ; ------------ EXPENSIVE CODE BEGIN ------------ ; bin $3,$0 ; $3 = binomial(n-k-1, n) ; mod $3,2 ; $3 = binomial(n-k-1, n) % 2 ; ------------ EXPENSIVE CODE END -------------- ; ------------ FASTER CODE BEGIN ------------ ; The following is a faster version of computing binomial(n, k) % 2 ; mov $12,$3 ; $12 = n mov $13,$0 ; $13 = k ; compute this `if` conditional ; value0 = n - k ; if value0 < 0 ; value0 = k ; end mov $14,$12 ; $14 = x = n trn $14,$13 ; $14 = x = [n - k, 0].max mov $15,$14 ; $15 = y = x cmp $15,0 ; $15 = y = (y == 0) ? 1 : 0 mul $15,$13 ; $15 = y = y * k mov $16,$12 ; $16 = z = n cmp $16,$13 ; $16 = z = (z == k) ? 1 : 0 cmp $16,0 ; $16 = z = (z == 0) ? 1 : 0 mov $17,$14 ; $17 = sum = x add $17,$15 ; $17 = sum += y mul $17,$16 ; $17 = sum *= z mov $18,$17 ; $18 = value0 add $18,$13 ; $18 += value1 ; $18 = (value0 > 0) || (value1 > 0) mov $30,0 ; result = 0 ; loop while (value0 > 0) || (value1 > 0) lpb $18 mov $20,$17 mod $20,2 ; $20 = remainder0 = value0 % 2 mov $21,$13 mod $21,2 ; $21 = remainder1 = value1 % 2 ; if (remainder0 == 1) && (remainder1 == 1) { result += 1 } mul $21,$20 add $30,$21 div $17,2 ; value0 /= 2 div $13,2 ; value1 /= 2 mov $18,$17 ; $18 = value0 add $18,$13 ; $18 += value1 ; $18 = (value0 > 0) || (value1 > 0) lpe cmp $30,0 ; ------------ FASTER CODE END ------------ add $1,$30 ; output_sum += binomial(n-k-1, n) % 2 lpe
.data end: .word 0xffff0010 chr: .word 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x67, 0x77, 0x7c, 0x39, 0x5e, 0x79, 0x71 .text main: la $s0,end lw $s0,0($s0) li $s1,16 reset: li $t1,0 la $s2,chr lw $s3,0($s2) loop: beq $t1,$s1,reset sb $s3,0($s0) addi $t1,$t1,1 addi $s2,$s2,4 lw $s3,0($s2) j loop
#pragma once #include <source_range.hpp> #include <tokenizer.hpp> #include <symbol.hpp> #include <variant> #include <memory> #include <tsl/hopscotch_map.h> #include <tsl/hopscotch_set.h> enum class EvaluationStrategy { CallByValue, CallByName, Normal }; struct GIDTag { std::uint_fast64_t gid() const; private: static std::uint_fast64_t gid_counter; std::uint_fast64_t gid_val { gid_counter++ }; }; struct GIDTagHasher { std::size_t operator()(GIDTag* gidtag) const { if(gidtag) return gidtag->gid(); return 0; } // gid is unique }; struct GIDTagComparer { bool operator()(GIDTag* lhs, GIDTag* rhs) const { if(lhs && rhs) return lhs->gid() == rhs->gid(); return false; } }; template<class T, unsigned int NeighborhoodSize = 62, bool StoreHash = false, class GrowthPolicy = tsl::hh::power_of_two_growth_policy<2>> using ASTNodeMap = tsl::hopscotch_map<GIDTag*, T, GIDTagHasher, GIDTagComparer, std::allocator<std::pair<GIDTag*, T>>, NeighborhoodSize, StoreHash, GrowthPolicy>; class Statement : public GIDTag, public std::enable_shared_from_this<Statement> { public: using Ptr = std::shared_ptr<Statement>; friend Statement::Ptr execute(Statement::Ptr root); Statement(SourceRange loc); Statement::Ptr eval(EvaluationStrategy strat) { switch(strat) { default: case EvaluationStrategy::CallByValue: return reduce_step_callbyvalue(); case EvaluationStrategy::CallByName: return reduce_step_callbyname(); case EvaluationStrategy::Normal: return reduce_step_normal(); } } virtual Statement::Ptr clone() = 0; virtual void print(std::ostream& os) = 0; SourceRange source_range() const; protected: virtual Statement::Ptr reduce_step_normal() = 0; virtual Statement::Ptr reduce_step_callbyname() = 0; virtual Statement::Ptr reduce_step_callbyvalue() = 0; private: SourceRange loc; }; class Identifier; class Expression : public GIDTag, public std::enable_shared_from_this<Expression> { friend class FunctionCall; friend class Definition; friend class Lambda; public: using Ptr = std::shared_ptr<Expression>; Expression(SourceRange loc); virtual Expression::Ptr clone() = 0; virtual void print(std::ostream& os) = 0; SourceRange source_range(); protected: virtual void fv(SymbolSet& cur) = 0; virtual void replace(std::shared_ptr<Identifier> what, Expression::Ptr with) { } virtual Expression::Ptr reduce_step_normal() = 0; virtual Expression::Ptr reduce_step_callbyname() = 0; virtual Expression::Ptr reduce_step_callbyvalue() = 0; private: SourceRange loc; }; class ErrorStatement : public Statement { public: using Ptr = std::shared_ptr<ErrorStatement>; ErrorStatement(SourceRange loc); Statement::Ptr clone() override; void print(std::ostream& os) override; private: Statement::Ptr reduce_step_normal() override; Statement::Ptr reduce_step_callbyname() override; Statement::Ptr reduce_step_callbyvalue() override; }; class Definition : public Statement { public: using Ptr = std::shared_ptr<Definition>; Definition(SourceRange loc, Expression::Ptr id, Expression::Ptr body); Statement::Ptr clone() override; void print(std::ostream& os) override; std::shared_ptr<Identifier> identifier() const; private: Statement::Ptr reduce_step_normal() override; Statement::Ptr reduce_step_callbyname() override; Statement::Ptr reduce_step_callbyvalue() override; private: Expression::Ptr id; Expression::Ptr body; }; class ErrorExpression : public Expression { public: using Ptr = std::shared_ptr<ErrorExpression>; ErrorExpression(SourceRange loc); Expression::Ptr clone() override; void print(std::ostream& os) override; private: void fv(SymbolSet& cur) override {} Expression::Ptr reduce_step_normal() override; Expression::Ptr reduce_step_callbyname() override; Expression::Ptr reduce_step_callbyvalue() override; }; class Identifier : public Expression { public: using Ptr = std::shared_ptr<Identifier>; Identifier(SourceRange loc, Symbol symbol); Expression::Ptr clone() override; void print(std::ostream& os) override; Symbol id() const; private: void fv(SymbolSet& cur) override; Expression::Ptr reduce_step_normal() override; Expression::Ptr reduce_step_callbyname() override; Expression::Ptr reduce_step_callbyvalue() override; private: Symbol symbol; }; class FunctionCall : public Expression { public: using Ptr = std::shared_ptr<FunctionCall>; FunctionCall(SourceRange range, Expression::Ptr fn, Expression::Ptr arg); Expression::Ptr clone() override; void print(std::ostream& os) override; bool is_simple() const; private: void fv(SymbolSet& cur) override; void replace(Identifier::Ptr what, Expression::Ptr with) override; Expression::Ptr reduce_step_normal() override; Expression::Ptr reduce_step_callbyname() override; Expression::Ptr reduce_step_callbyvalue() override; private: Expression::Ptr fn; Expression::Ptr arg; }; class Lambda : public Expression { public: using Ptr = std::shared_ptr<Lambda>; Lambda(SourceRange loc, Identifier::Ptr binding, Expression::Ptr body); void print(std::ostream& os) override; Expression::Ptr clone() override; Expression::Ptr fn_body() const; void replace(Expression::Ptr what); private: void fv(SymbolSet& cur) override; void replace(Identifier::Ptr what, Expression::Ptr with) override; Expression::Ptr reduce_step_normal() override; Expression::Ptr reduce_step_callbyname() override; Expression::Ptr reduce_step_callbyvalue() override; private: Identifier::Ptr binding; Expression::Ptr body; };
<% from pwnlib.shellcraft.mips.linux import syscall %> <%page args="who, usage"/> <%docstring> Invokes the syscall getrusage. See 'man 2 getrusage' for more information. Arguments: who(rusage_who_t): who usage(rusage): usage </%docstring> ${syscall('SYS_getrusage', who, usage)}