data
align 4
LABELV syscall
byte 4 4294967295
export dllEntry
code
proc dllEntry 0 0
file "../ui_syscalls.c"
line 10
;1:// Copyright (C) 1999-2000 Id Software, Inc.
;2://
;3:#include "ui_local.h"
;4:
;5:// this file is only included when building a dll
;6:// syscalls.asm is included instead when building a qvm
;7:
;8:static int (QDECL *syscall)( int arg, ... ) = (int (QDECL *)( int, ...))-1;
;9:
;10:void dllEntry( int (QDECL *syscallptr)( int arg,... ) ) {
line 11
;11:	syscall = syscallptr;
ADDRGP4 syscall
ADDRFP4 0
INDIRP4
ASGNP4
line 12
;12:}
LABELV $67
endproc dllEntry 0 0
export PASSFLOAT
proc PASSFLOAT 4 0
line 14
;13:
;14:int PASSFLOAT( float x ) {
line 16
;15:	float	floatTemp;
;16:	floatTemp = x;
ADDRLP4 0
ADDRFP4 0
INDIRF4
ASGNF4
line 17
;17:	return *(int *)&floatTemp;
ADDRLP4 0
INDIRI4
RETI4
LABELV $68
endproc PASSFLOAT 4 0
export trap_Print
proc trap_Print 0 8
line 20
;18:}
;19:
;20:void trap_Print( const char *string ) {
line 21
;21:	syscall( UI_PRINT, string );
CNSTI4 1
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 22
;22:}
LABELV $69
endproc trap_Print 0 8
export trap_Error
proc trap_Error 0 8
line 24
;23:
;24:void trap_Error( const char *string ) {
line 25
;25:	syscall( UI_ERROR, string );
CNSTI4 0
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 26
;26:}
LABELV $70
endproc trap_Error 0 8
export trap_Milliseconds
proc trap_Milliseconds 4 4
line 28
;27:
;28:int trap_Milliseconds( void ) {
line 29
;29:	return syscall( UI_MILLISECONDS ); 
CNSTI4 2
ARGI4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $71
endproc trap_Milliseconds 4 4
export trap_Cvar_Register
proc trap_Cvar_Register 0 20
line 32
;30:}
;31:
;32:void trap_Cvar_Register( vmCvar_t *cvar, const char *var_name, const char *value, int flags ) {
line 33
;33:	syscall( UI_CVAR_REGISTER, cvar, var_name, value, flags );
CNSTI4 50
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRP4
ARGP4
ADDRFP4 8
INDIRP4
ARGP4
ADDRFP4 12
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 34
;34:}
LABELV $72
endproc trap_Cvar_Register 0 20
export trap_Cvar_Update
proc trap_Cvar_Update 0 8
line 36
;35:
;36:void trap_Cvar_Update( vmCvar_t *cvar ) {
line 37
;37:	syscall( UI_CVAR_UPDATE, cvar );
CNSTI4 51
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 38
;38:}
LABELV $73
endproc trap_Cvar_Update 0 8
export trap_Cvar_Set
proc trap_Cvar_Set 0 12
line 40
;39:
;40:void trap_Cvar_Set( const char *var_name, const char *value ) {
line 41
;41:	syscall( UI_CVAR_SET, var_name, value );
CNSTI4 3
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 42
;42:}
LABELV $74
endproc trap_Cvar_Set 0 12
export trap_Cvar_VariableValue
proc trap_Cvar_VariableValue 8 8
line 44
;43:
;44:float trap_Cvar_VariableValue( const char *var_name ) {
line 46
;45:	int temp;
;46:	temp = syscall( UI_CVAR_VARIABLEVALUE, var_name );
CNSTI4 4
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
ADDRLP4 4
INDIRI4
ASGNI4
line 47
;47:	return (*(float*)&temp);
ADDRLP4 0
INDIRF4
RETF4
LABELV $75
endproc trap_Cvar_VariableValue 8 8
export trap_Cvar_VariableStringBuffer
proc trap_Cvar_VariableStringBuffer 0 16
line 50
;48:}
;49:
;50:void trap_Cvar_VariableStringBuffer( const char *var_name, char *buffer, int bufsize ) {
line 51
;51:	syscall( UI_CVAR_VARIABLESTRINGBUFFER, var_name, buffer, bufsize );
CNSTI4 5
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRP4
ARGP4
ADDRFP4 8
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 52
;52:}
LABELV $76
endproc trap_Cvar_VariableStringBuffer 0 16
export trap_Cvar_SetValue
proc trap_Cvar_SetValue 4 12
line 54
;53:
;54:void trap_Cvar_SetValue( const char *var_name, float value ) {
line 55
;55:	syscall( UI_CVAR_SETVALUE, var_name, PASSFLOAT( value ) );
ADDRFP4 4
INDIRF4
ARGF4
ADDRLP4 0
ADDRGP4 PASSFLOAT
CALLI4
ASGNI4
CNSTI4 6
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 56
;56:}
LABELV $77
endproc trap_Cvar_SetValue 4 12
export trap_Cvar_Reset
proc trap_Cvar_Reset 0 8
line 58
;57:
;58:void trap_Cvar_Reset( const char *name ) {
line 59
;59:	syscall( UI_CVAR_RESET, name ); 
CNSTI4 7
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 60
;60:}
LABELV $78
endproc trap_Cvar_Reset 0 8
export trap_Cvar_Create
proc trap_Cvar_Create 0 16
line 62
;61:
;62:void trap_Cvar_Create( const char *var_name, const char *var_value, int flags ) {
line 63
;63:	syscall( UI_CVAR_CREATE, var_name, var_value, flags );
CNSTI4 8
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRP4
ARGP4
ADDRFP4 8
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 64
;64:}
LABELV $79
endproc trap_Cvar_Create 0 16
export trap_Cvar_InfoStringBuffer
proc trap_Cvar_InfoStringBuffer 0 16
line 66
;65:
;66:void trap_Cvar_InfoStringBuffer( int bit, char *buffer, int bufsize ) {
line 67
;67:	syscall( UI_CVAR_INFOSTRINGBUFFER, bit, buffer, bufsize );
CNSTI4 9
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRP4
ARGP4
ADDRFP4 8
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 68
;68:}
LABELV $80
endproc trap_Cvar_InfoStringBuffer 0 16
export trap_Argc
proc trap_Argc 4 4
line 70
;69:
;70:int trap_Argc( void ) {
line 71
;71:	return syscall( UI_ARGC );
CNSTI4 10
ARGI4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $81
endproc trap_Argc 4 4
export trap_Argv
proc trap_Argv 0 16
line 74
;72:}
;73:
;74:void trap_Argv( int n, char *buffer, int bufferLength ) {
line 75
;75:	syscall( UI_ARGV, n, buffer, bufferLength );
CNSTI4 11
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRP4
ARGP4
ADDRFP4 8
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 76
;76:}
LABELV $82
endproc trap_Argv 0 16
export trap_Cmd_ExecuteText
proc trap_Cmd_ExecuteText 0 12
line 78
;77:
;78:void trap_Cmd_ExecuteText( int exec_when, const char *text ) {
line 79
;79:	syscall( UI_CMD_EXECUTETEXT, exec_when, text );
CNSTI4 12
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 80
;80:}
LABELV $83
endproc trap_Cmd_ExecuteText 0 12
export trap_FS_FOpenFile
proc trap_FS_FOpenFile 4 16
line 82
;81:
;82:int trap_FS_FOpenFile( const char *qpath, fileHandle_t *f, fsMode_t mode ) {
line 83
;83:	return syscall( UI_FS_FOPENFILE, qpath, f, mode );
CNSTI4 13
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRP4
ARGP4
ADDRFP4 8
INDIRI4
ARGI4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $84
endproc trap_FS_FOpenFile 4 16
export trap_FS_Read
proc trap_FS_Read 0 16
line 86
;84:}
;85:
;86:void trap_FS_Read( void *buffer, int len, fileHandle_t f ) {
line 87
;87:	syscall( UI_FS_READ, buffer, len, f );
CNSTI4 14
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 88
;88:}
LABELV $85
endproc trap_FS_Read 0 16
export trap_FS_Write
proc trap_FS_Write 0 16
line 90
;89:
;90:void trap_FS_Write( const void *buffer, int len, fileHandle_t f ) {
line 91
;91:	syscall( UI_FS_WRITE, buffer, len, f );
CNSTI4 15
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 92
;92:}
LABELV $86
endproc trap_FS_Write 0 16
export trap_FS_FCloseFile
proc trap_FS_FCloseFile 0 8
line 94
;93:
;94:void trap_FS_FCloseFile( fileHandle_t f ) {
line 95
;95:	syscall( UI_FS_FCLOSEFILE, f );
CNSTI4 16
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 96
;96:}
LABELV $87
endproc trap_FS_FCloseFile 0 8
export trap_FS_GetFileList
proc trap_FS_GetFileList 4 20
line 98
;97:
;98:int trap_FS_GetFileList(  const char *path, const char *extension, char *listbuf, int bufsize ) {
line 99
;99:	return syscall( UI_FS_GETFILELIST, path, extension, listbuf, bufsize );
CNSTI4 17
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRP4
ARGP4
ADDRFP4 8
INDIRP4
ARGP4
ADDRFP4 12
INDIRI4
ARGI4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $88
endproc trap_FS_GetFileList 4 20
export trap_R_RegisterModel
proc trap_R_RegisterModel 4 8
line 102
;100:}
;101:
;102:qhandle_t trap_R_RegisterModel( const char *name ) {
line 103
;103:	return syscall( UI_R_REGISTERMODEL, name );
CNSTI4 18
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $89
endproc trap_R_RegisterModel 4 8
export trap_R_RegisterSkin
proc trap_R_RegisterSkin 4 8
line 106
;104:}
;105:
;106:qhandle_t trap_R_RegisterSkin( const char *name ) {
line 107
;107:	return syscall( UI_R_REGISTERSKIN, name );
CNSTI4 19
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $90
endproc trap_R_RegisterSkin 4 8
export trap_R_RegisterFont
proc trap_R_RegisterFont 0 16
line 110
;108:}
;109:
;110:void trap_R_RegisterFont(const char *fontName, int pointSize, fontInfo_t *font) {
line 111
;111:	syscall( UI_R_REGISTERFONT, fontName, pointSize, font );
CNSTI4 55
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 112
;112:}
LABELV $91
endproc trap_R_RegisterFont 0 16
export trap_R_RegisterShaderNoMip
proc trap_R_RegisterShaderNoMip 4 8
line 114
;113:
;114:qhandle_t trap_R_RegisterShaderNoMip( const char *name ) {
line 115
;115:	return syscall( UI_R_REGISTERSHADERNOMIP, name );
CNSTI4 20
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $92
endproc trap_R_RegisterShaderNoMip 4 8
export trap_R_ClearScene
proc trap_R_ClearScene 0 4
line 118
;116:}
;117:
;118:void trap_R_ClearScene( void ) {
line 119
;119:	syscall( UI_R_CLEARSCENE );
CNSTI4 21
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 120
;120:}
LABELV $93
endproc trap_R_ClearScene 0 4
export trap_R_AddRefEntityToScene
proc trap_R_AddRefEntityToScene 0 8
line 122
;121:
;122:void trap_R_AddRefEntityToScene( const refEntity_t *re ) {
line 123
;123:	syscall( UI_R_ADDREFENTITYTOSCENE, re );
CNSTI4 22
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 124
;124:}
LABELV $94
endproc trap_R_AddRefEntityToScene 0 8
export trap_R_AddPolyToScene
proc trap_R_AddPolyToScene 0 16
line 126
;125:
;126:void trap_R_AddPolyToScene( qhandle_t hShader , int numVerts, const polyVert_t *verts ) {
line 127
;127:	syscall( UI_R_ADDPOLYTOSCENE, hShader, numVerts, verts );
CNSTI4 23
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 128
;128:}
LABELV $95
endproc trap_R_AddPolyToScene 0 16
export trap_R_AddLightToScene
proc trap_R_AddLightToScene 16 24
line 130
;129:
;130:void trap_R_AddLightToScene( const vec3_t org, float intensity, float r, float g, float b ) {
line 131
;131:	syscall( UI_R_ADDLIGHTTOSCENE, org, PASSFLOAT(intensity), PASSFLOAT(r), PASSFLOAT(g), PASSFLOAT(b) );
ADDRFP4 4
INDIRF4
ARGF4
ADDRLP4 0
ADDRGP4 PASSFLOAT
CALLI4
ASGNI4
ADDRFP4 8
INDIRF4
ARGF4
ADDRLP4 4
ADDRGP4 PASSFLOAT
CALLI4
ASGNI4
ADDRFP4 12
INDIRF4
ARGF4
ADDRLP4 8
ADDRGP4 PASSFLOAT
CALLI4
ASGNI4
ADDRFP4 16
INDIRF4
ARGF4
ADDRLP4 12
ADDRGP4 PASSFLOAT
CALLI4
ASGNI4
CNSTI4 24
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 4
INDIRI4
ARGI4
ADDRLP4 8
INDIRI4
ARGI4
ADDRLP4 12
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 132
;132:}
LABELV $96
endproc trap_R_AddLightToScene 16 24
export trap_R_RenderScene
proc trap_R_RenderScene 0 8
line 134
;133:
;134:void trap_R_RenderScene( const refdef_t *fd ) {
line 135
;135:	syscall( UI_R_RENDERSCENE, fd );
CNSTI4 25
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 136
;136:}
LABELV $97
endproc trap_R_RenderScene 0 8
export trap_R_SetColor
proc trap_R_SetColor 0 8
line 138
;137:
;138:void trap_R_SetColor( const float *rgba ) {
line 139
;139:	syscall( UI_R_SETCOLOR, rgba );
CNSTI4 26
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 140
;140:}
LABELV $98
endproc trap_R_SetColor 0 8
export trap_R_DrawStretchPic
proc trap_R_DrawStretchPic 32 40
line 142
;141:
;142:void trap_R_DrawStretchPic( float x, float y, float w, float h, float s1, float t1, float s2, float t2, qhandle_t hShader ) {
line 143
;143:	syscall( UI_R_DRAWSTRETCHPIC, PASSFLOAT(x), PASSFLOAT(y), PASSFLOAT(w), PASSFLOAT(h), PASSFLOAT(s1), PASSFLOAT(t1), PASSFLOAT(s2), PASSFLOAT(t2), hShader );
ADDRFP4 0
INDIRF4
ARGF4
ADDRLP4 0
ADDRGP4 PASSFLOAT
CALLI4
ASGNI4
ADDRFP4 4
INDIRF4
ARGF4
ADDRLP4 4
ADDRGP4 PASSFLOAT
CALLI4
ASGNI4
ADDRFP4 8
INDIRF4
ARGF4
ADDRLP4 8
ADDRGP4 PASSFLOAT
CALLI4
ASGNI4
ADDRFP4 12
INDIRF4
ARGF4
ADDRLP4 12
ADDRGP4 PASSFLOAT
CALLI4
ASGNI4
ADDRFP4 16
INDIRF4
ARGF4
ADDRLP4 16
ADDRGP4 PASSFLOAT
CALLI4
ASGNI4
ADDRFP4 20
INDIRF4
ARGF4
ADDRLP4 20
ADDRGP4 PASSFLOAT
CALLI4
ASGNI4
ADDRFP4 24
INDIRF4
ARGF4
ADDRLP4 24
ADDRGP4 PASSFLOAT
CALLI4
ASGNI4
ADDRFP4 28
INDIRF4
ARGF4
ADDRLP4 28
ADDRGP4 PASSFLOAT
CALLI4
ASGNI4
CNSTI4 27
ARGI4
ADDRLP4 0
INDIRI4
ARGI4
ADDRLP4 4
INDIRI4
ARGI4
ADDRLP4 8
INDIRI4
ARGI4
ADDRLP4 12
INDIRI4
ARGI4
ADDRLP4 16
INDIRI4
ARGI4
ADDRLP4 20
INDIRI4
ARGI4
ADDRLP4 24
INDIRI4
ARGI4
ADDRLP4 28
INDIRI4
ARGI4
ADDRFP4 32
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 144
;144:}
LABELV $99
endproc trap_R_DrawStretchPic 32 40
export trap_R_ModelBounds
proc trap_R_ModelBounds 0 16
line 146
;145:
;146:void	trap_R_ModelBounds( clipHandle_t model, vec3_t mins, vec3_t maxs ) {
line 147
;147:	syscall( UI_R_MODELBOUNDS, model, mins, maxs );
CNSTI4 56
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRP4
ARGP4
ADDRFP4 8
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 148
;148:}
LABELV $100
endproc trap_R_ModelBounds 0 16
export trap_UpdateScreen
proc trap_UpdateScreen 0 4
line 150
;149:
;150:void trap_UpdateScreen( void ) {
line 151
;151:	syscall( UI_UPDATESCREEN );
CNSTI4 28
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 152
;152:}
LABELV $101
endproc trap_UpdateScreen 0 4
export trap_CM_LerpTag
proc trap_CM_LerpTag 8 28
line 154
;153:
;154:int trap_CM_LerpTag( orientation_t *tag, clipHandle_t mod, int startFrame, int endFrame, float frac, const char *tagName ) {
line 155
;155:	return syscall( UI_CM_LERPTAG, tag, mod, startFrame, endFrame, PASSFLOAT(frac), tagName );
ADDRFP4 16
INDIRF4
ARGF4
ADDRLP4 0
ADDRGP4 PASSFLOAT
CALLI4
ASGNI4
CNSTI4 29
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRI4
ARGI4
ADDRFP4 12
INDIRI4
ARGI4
ADDRLP4 0
INDIRI4
ARGI4
ADDRFP4 20
INDIRP4
ARGP4
ADDRLP4 4
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 4
INDIRI4
RETI4
LABELV $102
endproc trap_CM_LerpTag 8 28
export trap_S_StartLocalSound
proc trap_S_StartLocalSound 0 12
line 158
;156:}
;157:
;158:void trap_S_StartLocalSound( sfxHandle_t sfx, int channelNum ) {
line 159
;159:	syscall( UI_S_STARTLOCALSOUND, sfx, channelNum );
CNSTI4 32
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 160
;160:}
LABELV $103
endproc trap_S_StartLocalSound 0 12
export trap_S_RegisterSound
proc trap_S_RegisterSound 4 12
line 162
;161:
;162:sfxHandle_t	trap_S_RegisterSound( const char *sample, qboolean compressed ) {
line 163
;163:	return syscall( UI_S_REGISTERSOUND, sample, compressed );
CNSTI4 31
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $104
endproc trap_S_RegisterSound 4 12
export trap_Key_KeynumToStringBuf
proc trap_Key_KeynumToStringBuf 0 16
line 166
;164:}
;165:
;166:void trap_Key_KeynumToStringBuf( int keynum, char *buf, int buflen ) {
line 167
;167:	syscall( UI_KEY_KEYNUMTOSTRINGBUF, keynum, buf, buflen );
CNSTI4 33
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRP4
ARGP4
ADDRFP4 8
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 168
;168:}
LABELV $105
endproc trap_Key_KeynumToStringBuf 0 16
export trap_Key_GetBindingBuf
proc trap_Key_GetBindingBuf 0 16
line 170
;169:
;170:void trap_Key_GetBindingBuf( int keynum, char *buf, int buflen ) {
line 171
;171:	syscall( UI_KEY_GETBINDINGBUF, keynum, buf, buflen );
CNSTI4 34
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRP4
ARGP4
ADDRFP4 8
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 172
;172:}
LABELV $106
endproc trap_Key_GetBindingBuf 0 16
export trap_Key_SetBinding
proc trap_Key_SetBinding 0 12
line 174
;173:
;174:void trap_Key_SetBinding( int keynum, const char *binding ) {
line 175
;175:	syscall( UI_KEY_SETBINDING, keynum, binding );
CNSTI4 35
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 176
;176:}
LABELV $107
endproc trap_Key_SetBinding 0 12
export trap_Key_IsDown
proc trap_Key_IsDown 4 8
line 178
;177:
;178:qboolean trap_Key_IsDown( int keynum ) {
line 179
;179:	return syscall( UI_KEY_ISDOWN, keynum );
CNSTI4 36
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $108
endproc trap_Key_IsDown 4 8
export trap_Key_GetOverstrikeMode
proc trap_Key_GetOverstrikeMode 4 4
line 182
;180:}
;181:
;182:qboolean trap_Key_GetOverstrikeMode( void ) {
line 183
;183:	return syscall( UI_KEY_GETOVERSTRIKEMODE );
CNSTI4 37
ARGI4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $109
endproc trap_Key_GetOverstrikeMode 4 4
export trap_Key_SetOverstrikeMode
proc trap_Key_SetOverstrikeMode 0 8
line 186
;184:}
;185:
;186:void trap_Key_SetOverstrikeMode( qboolean state ) {
line 187
;187:	syscall( UI_KEY_SETOVERSTRIKEMODE, state );
CNSTI4 38
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 188
;188:}
LABELV $110
endproc trap_Key_SetOverstrikeMode 0 8
export trap_Key_ClearStates
proc trap_Key_ClearStates 0 4
line 190
;189:
;190:void trap_Key_ClearStates( void ) {
line 191
;191:	syscall( UI_KEY_CLEARSTATES );
CNSTI4 39
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 192
;192:}
LABELV $111
endproc trap_Key_ClearStates 0 4
export trap_Key_GetCatcher
proc trap_Key_GetCatcher 4 4
line 194
;193:
;194:int trap_Key_GetCatcher( void ) {
line 195
;195:	return syscall( UI_KEY_GETCATCHER );
CNSTI4 40
ARGI4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $112
endproc trap_Key_GetCatcher 4 4
export trap_Key_SetCatcher
proc trap_Key_SetCatcher 0 8
line 198
;196:}
;197:
;198:void trap_Key_SetCatcher( int catcher ) {
line 199
;199:	syscall( UI_KEY_SETCATCHER, catcher );
CNSTI4 41
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 200
;200:}
LABELV $113
endproc trap_Key_SetCatcher 0 8
export trap_GetClipboardData
proc trap_GetClipboardData 0 12
line 202
;201:
;202:void trap_GetClipboardData( char *buf, int bufsize ) {
line 203
;203:	syscall( UI_GETCLIPBOARDDATA, buf, bufsize );
CNSTI4 42
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 204
;204:}
LABELV $114
endproc trap_GetClipboardData 0 12
export trap_GetClientState
proc trap_GetClientState 0 8
line 206
;205:
;206:void trap_GetClientState( uiClientState_t *state ) {
line 207
;207:	syscall( UI_GETCLIENTSTATE, state );
CNSTI4 44
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 208
;208:}
LABELV $115
endproc trap_GetClientState 0 8
export trap_GetGlconfig
proc trap_GetGlconfig 0 8
line 210
;209:
;210:void trap_GetGlconfig( glconfig_t *glconfig ) {
line 211
;211:	syscall( UI_GETGLCONFIG, glconfig );
CNSTI4 43
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 212
;212:}
LABELV $116
endproc trap_GetGlconfig 0 8
export trap_GetConfigString
proc trap_GetConfigString 4 16
line 214
;213:
;214:int trap_GetConfigString( int index, char* buff, int buffsize ) {
line 215
;215:	return syscall( UI_GETCONFIGSTRING, index, buff, buffsize );
CNSTI4 45
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRP4
ARGP4
ADDRFP4 8
INDIRI4
ARGI4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $117
endproc trap_GetConfigString 4 16
export trap_LAN_GetServerCount
proc trap_LAN_GetServerCount 4 8
line 218
;216:}
;217:
;218:int	trap_LAN_GetServerCount( int source ) {
line 219
;219:	return syscall( UI_LAN_GETSERVERCOUNT, source );
CNSTI4 65
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $118
endproc trap_LAN_GetServerCount 4 8
export trap_LAN_GetServerAddressString
proc trap_LAN_GetServerAddressString 0 20
line 222
;220:}
;221:
;222:void trap_LAN_GetServerAddressString( int source, int n, char *buf, int buflen ) {
line 223
;223:	syscall( UI_LAN_GETSERVERADDRESSSTRING, source, n, buf, buflen );
CNSTI4 66
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRP4
ARGP4
ADDRFP4 12
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 224
;224:}
LABELV $119
endproc trap_LAN_GetServerAddressString 0 20
export trap_LAN_GetServerInfo
proc trap_LAN_GetServerInfo 0 20
line 226
;225:
;226:void trap_LAN_GetServerInfo( int source, int n, char *buf, int buflen ) {
line 227
;227:	syscall( UI_LAN_GETSERVERINFO, source, n, buf, buflen );
CNSTI4 67
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRP4
ARGP4
ADDRFP4 12
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 228
;228:}
LABELV $120
endproc trap_LAN_GetServerInfo 0 20
export trap_LAN_GetPingQueueCount
proc trap_LAN_GetPingQueueCount 4 4
line 230
;229:
;230:int trap_LAN_GetPingQueueCount( void ) {
line 231
;231:	return syscall( UI_LAN_GETPINGQUEUECOUNT );
CNSTI4 46
ARGI4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $121
endproc trap_LAN_GetPingQueueCount 4 4
export trap_LAN_SaveCachedServers
proc trap_LAN_SaveCachedServers 0 4
line 234
;232:}
;233:
;234:void trap_LAN_SaveCachedServers() {
line 235
;235:	syscall( UI_LAN_SAVECACHEDSERVERS );
CNSTI4 72
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 236
;236:}
LABELV $122
endproc trap_LAN_SaveCachedServers 0 4
export trap_LAN_LoadCachedServers
proc trap_LAN_LoadCachedServers 0 4
line 238
;237:
;238:void trap_LAN_LoadCachedServers() {
line 239
;239:	syscall( UI_LAN_LOADCACHEDSERVERS );
CNSTI4 71
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 240
;240:}
LABELV $123
endproc trap_LAN_LoadCachedServers 0 4
export trap_LAN_AddServer
proc trap_LAN_AddServer 4 16
line 242
;241:
;242:int trap_LAN_AddServer(int source, const char *name, const char *addr) {
line 243
;243:	return syscall( UI_LAN_ADDSERVER, source, name, addr );
CNSTI4 73
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRP4
ARGP4
ADDRFP4 8
INDIRP4
ARGP4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $124
endproc trap_LAN_AddServer 4 16
export trap_LAN_RemoveServer
proc trap_LAN_RemoveServer 0 12
line 246
;244:}
;245:
;246:void trap_LAN_RemoveServer(int source, const char *addr) {
line 247
;247:	syscall( UI_LAN_REMOVESERVER, source, addr );
CNSTI4 74
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 248
;248:}
LABELV $125
endproc trap_LAN_RemoveServer 0 12
export trap_LAN_ResetPings
proc trap_LAN_ResetPings 0 8
line 250
;249:
;250:void trap_LAN_ResetPings(int n) {
line 251
;251:	syscall( UI_LAN_RESETPINGS, n );
CNSTI4 70
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 252
;252:}
LABELV $126
endproc trap_LAN_ResetPings 0 8
export trap_LAN_ClearPing
proc trap_LAN_ClearPing 0 8
line 254
;253:
;254:void trap_LAN_ClearPing( int n ) {
line 255
;255:	syscall( UI_LAN_CLEARPING, n );
CNSTI4 47
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 256
;256:}
LABELV $127
endproc trap_LAN_ClearPing 0 8
export trap_LAN_GetPing
proc trap_LAN_GetPing 0 20
line 258
;257:
;258:void trap_LAN_GetPing( int n, char *buf, int buflen, int *pingtime ) {
line 259
;259:	syscall( UI_LAN_GETPING, n, buf, buflen, pingtime );
CNSTI4 48
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRP4
ARGP4
ADDRFP4 8
INDIRI4
ARGI4
ADDRFP4 12
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 260
;260:}
LABELV $128
endproc trap_LAN_GetPing 0 20
export trap_LAN_GetPingInfo
proc trap_LAN_GetPingInfo 0 16
line 262
;261:
;262:void trap_LAN_GetPingInfo( int n, char *buf, int buflen ) {
line 263
;263:	syscall( UI_LAN_GETPINGINFO, n, buf, buflen );
CNSTI4 49
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRP4
ARGP4
ADDRFP4 8
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 264
;264:}
LABELV $129
endproc trap_LAN_GetPingInfo 0 16
export trap_LAN_MarkServerVisible
proc trap_LAN_MarkServerVisible 0 16
line 266
;265:
;266:void trap_LAN_MarkServerVisible( int source, int n, qboolean visible ) {
line 267
;267:	syscall( UI_LAN_MARKSERVERVISIBLE, source, n, visible );
CNSTI4 68
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 268
;268:}
LABELV $130
endproc trap_LAN_MarkServerVisible 0 16
export trap_LAN_UpdateVisiblePings
proc trap_LAN_UpdateVisiblePings 4 8
line 270
;269:
;270:qboolean trap_LAN_UpdateVisiblePings( int source ) {
line 271
;271:	return syscall( UI_LAN_UPDATEVISIBLEPINGS, source );
CNSTI4 69
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $131
endproc trap_LAN_UpdateVisiblePings 4 8
export trap_MemoryRemaining
proc trap_MemoryRemaining 4 4
line 274
;272:}
;273:
;274:int trap_MemoryRemaining( void ) {
line 275
;275:	return syscall( UI_MEMORY_REMAINING );
CNSTI4 52
ARGI4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $132
endproc trap_MemoryRemaining 4 4
export trap_GetCDKey
proc trap_GetCDKey 0 12
line 278
;276:}
;277:
;278:void trap_GetCDKey( char *buf, int buflen ) {
line 279
;279:	syscall( UI_GET_CDKEY, buf, buflen );
CNSTI4 53
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 280
;280:}
LABELV $133
endproc trap_GetCDKey 0 12
export trap_SetCDKey
proc trap_SetCDKey 0 8
line 282
;281:
;282:void trap_SetCDKey( char *buf ) {
line 283
;283:	syscall( UI_SET_CDKEY, buf );
CNSTI4 54
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 284
;284:}
LABELV $134
endproc trap_SetCDKey 0 8
export trap_PC_AddGlobalDefine
proc trap_PC_AddGlobalDefine 4 8
line 286
;285:
;286:int trap_PC_AddGlobalDefine( char *define ) {
line 287
;287:	return syscall( UI_PC_ADD_GLOBAL_DEFINE, define );
CNSTI4 57
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $135
endproc trap_PC_AddGlobalDefine 4 8
export trap_PC_LoadSource
proc trap_PC_LoadSource 4 8
line 290
;288:}
;289:
;290:int trap_PC_LoadSource( const char *filename ) {
line 291
;291:	return syscall( UI_PC_LOAD_SOURCE, filename );
CNSTI4 58
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $136
endproc trap_PC_LoadSource 4 8
export trap_PC_FreeSource
proc trap_PC_FreeSource 4 8
line 294
;292:}
;293:
;294:int trap_PC_FreeSource( int handle ) {
line 295
;295:	return syscall( UI_PC_FREE_SOURCE, handle );
CNSTI4 59
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $137
endproc trap_PC_FreeSource 4 8
export trap_PC_ReadToken
proc trap_PC_ReadToken 4 12
line 298
;296:}
;297:
;298:int trap_PC_ReadToken( int handle, pc_token_t *pc_token ) {
line 299
;299:	return syscall( UI_PC_READ_TOKEN, handle, pc_token );
CNSTI4 60
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRP4
ARGP4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $138
endproc trap_PC_ReadToken 4 12
export trap_PC_SourceFileAndLine
proc trap_PC_SourceFileAndLine 4 16
line 302
;300:}
;301:
;302:int trap_PC_SourceFileAndLine( int handle, char *filename, int *line ) {
line 303
;303:	return syscall( UI_PC_SOURCE_FILE_AND_LINE, handle, filename, line );
CNSTI4 61
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRP4
ARGP4
ADDRFP4 8
INDIRP4
ARGP4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $139
endproc trap_PC_SourceFileAndLine 4 16
export trap_S_StopBackgroundTrack
proc trap_S_StopBackgroundTrack 0 4
line 306
;304:}
;305:
;306:void trap_S_StopBackgroundTrack( void ) {
line 307
;307:	syscall( UI_S_STOPBACKGROUNDTRACK );
CNSTI4 62
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 308
;308:}
LABELV $140
endproc trap_S_StopBackgroundTrack 0 4
export trap_S_StartBackgroundTrack
proc trap_S_StartBackgroundTrack 0 12
line 310
;309:
;310:void trap_S_StartBackgroundTrack( const char *intro, const char *loop) {
line 311
;311:	syscall( UI_S_STARTBACKGROUNDTRACK, intro, loop );
CNSTI4 63
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRP4
ARGP4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 312
;312:}
LABELV $141
endproc trap_S_StartBackgroundTrack 0 12
export trap_RealTime
proc trap_RealTime 4 8
line 314
;313:
;314:int trap_RealTime(qtime_t *qtime) {
line 315
;315:	return syscall( UI_REAL_TIME, qtime );
CNSTI4 64
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $142
endproc trap_RealTime 4 8
export trap_CIN_PlayCinematic
proc trap_CIN_PlayCinematic 4 28
line 319
;316:}
;317:
;318:// this returns a handle.  arg0 is the name in the format "idlogo.roq", set arg1 to NULL, alteredstates to qfalse (do not alter gamestate)
;319:int trap_CIN_PlayCinematic( const char *arg0, int xpos, int ypos, int width, int height, int bits) {
line 320
;320:  return syscall(UI_CIN_PLAYCINEMATIC, arg0, xpos, ypos, width, height, bits);
CNSTI4 75
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRI4
ARGI4
ADDRFP4 12
INDIRI4
ARGI4
ADDRFP4 16
INDIRI4
ARGI4
ADDRFP4 20
INDIRI4
ARGI4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $143
endproc trap_CIN_PlayCinematic 4 28
export trap_CIN_StopCinematic
proc trap_CIN_StopCinematic 4 8
line 325
;321:}
;322: 
;323:// stops playing the cinematic and ends it.  should always return FMV_EOF
;324:// cinematics must be stopped in reverse order of when they are started
;325:e_status trap_CIN_StopCinematic(int handle) {
line 326
;326:  return syscall(UI_CIN_STOPCINEMATIC, handle);
CNSTI4 76
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $144
endproc trap_CIN_StopCinematic 4 8
export trap_CIN_RunCinematic
proc trap_CIN_RunCinematic 4 8
line 331
;327:}
;328:
;329:
;330:// will run a frame of the cinematic but will not draw it.  Will return FMV_EOF if the end of the cinematic has been reached.
;331:e_status trap_CIN_RunCinematic (int handle) {
line 332
;332:  return syscall(UI_CIN_RUNCINEMATIC, handle);
CNSTI4 77
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $145
endproc trap_CIN_RunCinematic 4 8
export trap_CIN_DrawCinematic
proc trap_CIN_DrawCinematic 0 8
line 337
;333:}
;334: 
;335:
;336:// draws the current frame
;337:void trap_CIN_DrawCinematic (int handle) {
line 338
;338:  syscall(UI_CIN_DRAWCINEMATIC, handle);
CNSTI4 78
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 339
;339:}
LABELV $146
endproc trap_CIN_DrawCinematic 0 8
export trap_CIN_SetExtents
proc trap_CIN_SetExtents 0 24
line 343
;340: 
;341:
;342:// allows you to resize the animation dynamically
;343:void trap_CIN_SetExtents (int handle, int x, int y, int w, int h) {
line 344
;344:  syscall(UI_CIN_SETEXTENTS, handle, x, y, w, h);
CNSTI4 79
ARGI4
ADDRFP4 0
INDIRI4
ARGI4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRI4
ARGI4
ADDRFP4 12
INDIRI4
ARGI4
ADDRFP4 16
INDIRI4
ARGI4
ADDRGP4 syscall
INDIRP4
CALLI4
pop
line 345
;345:}
LABELV $147
endproc trap_CIN_SetExtents 0 24
export trap_VerifyCDKey
proc trap_VerifyCDKey 4 12
line 348
;346:
;347:
;348:qboolean trap_VerifyCDKey( const char *key, const char *chksum) {
line 349
;349:	return syscall( UI_VERIFY_CDKEY, key, chksum);
CNSTI4 81
ARGI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRP4
ARGP4
ADDRLP4 0
ADDRGP4 syscall
INDIRP4
CALLI4
ASGNI4
ADDRLP4 0
INDIRI4
RETI4
LABELV $148
endproc trap_VerifyCDKey 4 12
import UI_RankStatusMenu
import RankStatus_Cache
import UI_SignupMenu
import Signup_Cache
import UI_LoginMenu
import Login_Cache
import UI_RankingsMenu
import Rankings_Cache
import Rankings_DrawPassword
import Rankings_DrawName
import Rankings_DrawText
import UI_InitGameinfo
import UI_SPUnlockMedals_f
import UI_SPUnlock_f
import UI_GetAwardLevel
import UI_LogAwardData
import UI_NewGame
import UI_GetCurrentGame
import UI_CanShowTierVideo
import UI_ShowTierVideo
import UI_TierCompleted
import UI_SetBestScore
import UI_GetBestScore
import UI_GetNumBots
import UI_GetBotInfoByName
import UI_GetBotInfoByNumber
import UI_GetNumSPTiers
import UI_GetNumSPArenas
import UI_GetNumArenas
import UI_GetSpecialArenaInfo
import UI_GetArenaInfoByMap
import UI_GetArenaInfoByNumber
import UI_NetworkOptionsMenu
import UI_NetworkOptionsMenu_Cache
import UI_SoundOptionsMenu
import UI_SoundOptionsMenu_Cache
import UI_DisplayOptionsMenu
import UI_DisplayOptionsMenu_Cache
import UI_SaveConfigMenu
import UI_SaveConfigMenu_Cache
import UI_LoadConfigMenu
import UI_LoadConfig_Cache
import UI_TeamOrdersMenu_Cache
import UI_TeamOrdersMenu_f
import UI_TeamOrdersMenu
import UI_RemoveBotsMenu
import UI_RemoveBots_Cache
import UI_AddBotsMenu
import UI_AddBots_Cache
import trap_LAN_ServerStatus
import UI_SPSkillMenu_Cache
import UI_SPSkillMenu
import UI_SPPostgameMenu_f
import UI_SPPostgameMenu_Cache
import UI_SPArena_Start
import UI_SPLevelMenu_ReInit
import UI_SPLevelMenu_f
import UI_SPLevelMenu
import UI_SPLevelMenu_Cache
import uis
import m_entersound
import UI_StartDemoLoop
import UI_Cvar_VariableString
import UI_Argv
import UI_ForceMenuOff
import UI_PopMenu
import UI_PushMenu
import UI_SetActiveMenu
import UI_IsFullscreen
import UI_DrawTextBox
import UI_AdjustFrom640
import UI_CursorInRect
import UI_DrawChar
import UI_DrawString
import UI_ProportionalStringWidth
import UI_DrawProportionalString
import UI_ProportionalSizeScale
import UI_DrawBannerString
import UI_LerpColor
import UI_SetColor
import UI_UpdateScreen
import UI_DrawRect
import UI_FillRect
import UI_DrawHandlePic
import UI_DrawNamedPic
import UI_ClampCvar
import UI_ConsoleCommand
import UI_Refresh
import UI_MouseEvent
import UI_KeyEvent
import UI_Shutdown
import UI_Init
import UI_RegisterClientModelname
import UI_PlayerInfo_SetInfo
import UI_PlayerInfo_SetModel
import UI_DrawPlayer
import DriverInfo_Cache
import GraphicsOptions_Cache
import UI_GraphicsOptionsMenu
import ServerInfo_Cache
import UI_ServerInfoMenu
import UI_BotSelectMenu_Cache
import UI_BotSelectMenu
import ServerOptions_Cache
import StartServer_Cache
import UI_StartServerMenu
import ArenaServers_Cache
import UI_ArenaServersMenu
import SpecifyServer_Cache
import UI_SpecifyServerMenu
import SpecifyLeague_Cache
import UI_SpecifyLeagueMenu
import Preferences_Cache
import UI_PreferencesMenu
import PlayerSettings_Cache
import UI_PlayerSettingsMenu
import PlayerModel_Cache
import UI_PlayerModelMenu
import UI_CDKeyMenu_f
import UI_CDKeyMenu_Cache
import UI_CDKeyMenu
import UI_ModsMenu_Cache
import UI_ModsMenu
import UI_CinematicsMenu_Cache
import UI_CinematicsMenu_f
import UI_CinematicsMenu
import Demos_Cache
import UI_DemosMenu
import Controls_Cache
import UI_ControlsMenu
import UI_DrawConnectScreen
import TeamMain_Cache
import UI_TeamMainMenu
import UI_SetupMenu
import UI_SetupMenu_Cache
import UI_ConfirmMenu
import ConfirmMenu_Cache
import UI_InGameMenu
import InGame_Cache
import UI_CreditMenu
import UI_UpdateCvars
import UI_RegisterCvars
import UI_MainMenu
import MainMenu_Cache
import MenuField_Key
import MenuField_Draw
import MenuField_Init
import MField_Draw
import MField_CharEvent
import MField_KeyDownEvent
import MField_Clear
import ui_medalSounds
import ui_medalPicNames
import ui_medalNames
import text_color_highlight
import text_color_normal
import text_color_disabled
import listbar_color
import list_color
import name_color
import color_dim
import color_red
import color_orange
import color_blue
import color_yellow
import color_white
import color_black
import menu_dim_color
import menu_black_color
import menu_red_color
import menu_highlight_color
import menu_dark_color
import menu_grayed_color
import menu_text_color
import weaponChangeSound
import menu_null_sound
import menu_buzz_sound
import menu_out_sound
import menu_move_sound
import menu_in_sound
import ScrollList_Key
import ScrollList_Draw
import Bitmap_Draw
import Bitmap_Init
import Menu_DefaultKey
import Menu_SetCursorToItem
import Menu_SetCursor
import Menu_ActivateItem
import Menu_ItemAtCursor
import Menu_Draw
import Menu_AdjustCursor
import Menu_AddItem
import Menu_Focus
import Menu_Cache
import ui_cdkeychecked
import ui_cdkey
import ui_server16
import ui_server15
import ui_server14
import ui_server13
import ui_server12
import ui_server11
import ui_server10
import ui_server9
import ui_server8
import ui_server7
import ui_server6
import ui_server5
import ui_server4
import ui_server3
import ui_server2
import ui_server1
import ui_marks
import ui_drawCrosshairNames
import ui_drawCrosshair
import ui_brassTime
import ui_browserShowEmpty
import ui_browserShowFull
import ui_browserSortKey
import ui_browserGameType
import ui_browserMaster
import ui_spSelection
import ui_spSkill
import ui_spVideos
import ui_spAwards
import ui_spScores5
import ui_spScores4
import ui_spScores3
import ui_spScores2
import ui_spScores1
import ui_botsFile
import ui_arenasFile
import ui_ctf_friendly
import ui_ctf_timelimit
import ui_ctf_capturelimit
import ui_team_friendly
import ui_team_timelimit
import ui_team_fraglimit
import ui_tourney_timelimit
import ui_tourney_fraglimit
import ui_ffa_timelimit
import ui_ffa_fraglimit
import BG_PlayerTouchesItem
import BG_PlayerStateToEntityStateExtraPolate
import BG_PlayerStateToEntityState
import BG_TouchJumpPad
import BG_AddPredictableEventToPlayerstate
import BG_EvaluateTrajectoryDelta
import BG_EvaluateTrajectory
import BG_CanItemBeGrabbed
import BG_FindItemForHoldable
import BG_FindItemForPowerup
import BG_FindItemForWeapon
import BG_FindItem
import bg_numItems
import bg_itemlist
import Pmove
import PM_UpdateViewAngles
import Com_Printf
import Com_Error
import Info_NextPair
import Info_Validate
import Info_SetValueForKey_Big
import Info_SetValueForKey
import Info_RemoveKey_big
import Info_RemoveKey
import Info_ValueForKey
import va
import Q_CleanStr
import Q_PrintStrlen
import Q_strcat
import Q_strncpyz
import Q_strrchr
import Q_strupr
import Q_strlwr
import Q_stricmpn
import Q_strncmp
import Q_stricmp
import Q_isalpha
import Q_isupper
import Q_islower
import Q_isprint
import Com_sprintf
import Parse3DMatrix
import Parse2DMatrix
import Parse1DMatrix
import SkipRestOfLine
import SkipBracedSection
import COM_MatchToken
import COM_ParseWarning
import COM_ParseError
import COM_Compress
import COM_ParseExt
import COM_Parse
import COM_GetCurrentParseLine
import COM_BeginParseSession
import COM_DefaultExtension
import COM_StripExtension
import COM_SkipPath
import Com_Clamp
import PerpendicularVector
import AngleVectors
import MatrixMultiply
import MakeNormalVectors
import RotateAroundDirection
import RotatePointAroundVector
import ProjectPointOnPlane
import PlaneFromPoints
import AngleDelta
import AngleNormalize180
import AngleNormalize360
import AnglesSubtract
import AngleSubtract
import LerpAngle
import AngleMod
import BoxOnPlaneSide
import SetPlaneSignbits
import AxisCopy
import AxisClear
import AnglesToAxis
import vectoangles
import Q_crandom
import Q_random
import Q_rand
import Q_acos
import Q_log2
import VectorRotate
import Vector4Scale
import VectorNormalize2
import VectorNormalize
import CrossProduct
import VectorInverse
import VectorNormalizeFast
import DistanceSquared
import Distance
import VectorLengthSquared
import VectorLength
import VectorCompare
import AddPointToBounds
import ClearBounds
import RadiusFromBounds
import NormalizeColor
import ColorBytes4
import ColorBytes3
import _VectorMA
import _VectorScale
import _VectorCopy
import _VectorAdd
import _VectorSubtract
import _DotProduct
import ByteToDir
import DirToByte
import ClampShort
import ClampChar
import Q_rsqrt
import Q_fabs
import axisDefault
import vec3_origin
import g_color_table
import colorDkGrey
import colorMdGrey
import colorLtGrey
import colorWhite
import colorCyan
import colorMagenta
import colorYellow
import colorBlue
import colorGreen
import colorRed
import colorBlack
import bytedirs
import Com_Memcpy
import Com_Memset
import Hunk_Alloc
import FloatSwap
import LongSwap
import ShortSwap
import acos
import fabs
import abs
import tan
import atan2
import cos
import sin
import sqrt
import floor
import ceil
import memcpy
import memset
import memmove
import sscanf
import vsprintf
import _atoi
import atoi
import _atof
import atof
import toupper
import tolower
import strncpy
import strstr
import strchr
import strcmp
import strcpy
import strcat
import strlen
import rand
import srand
import qsort
