	format	MS COFF
	extrn	___bb_appstub_appstub
	extrn	___bb_audio_audio
	extrn	___bb_bank_bank
	extrn	___bb_bankstream_bankstream
	extrn	___bb_basic_basic
	extrn	___bb_blitz_blitz
	extrn	___bb_blitzgl_blitzgl
	extrn	___bb_bmploader_bmploader
	extrn	___bb_directx_directx
	extrn	___bb_eventqueue_eventqueue
	extrn	___bb_font_font
	extrn	___bb_freeaudioaudio_freeaudioaudio
	extrn	___bb_freejoy_freejoy
	extrn	___bb_freetypefont_freetypefont
	extrn	___bb_glew_glew
	extrn	___bb_glmax2d_glmax2d
	extrn	___bb_jpgloader_jpgloader
	extrn	___bb_lua_lua
	extrn	___bb_luascript_luascript
	extrn	___bb_map_map
	extrn	___bb_maxutil_maxutil
	extrn	___bb_oggloader_oggloader
	extrn	___bb_pngloader_pngloader
	extrn	___bb_retro_retro
	extrn	___bb_tgaloader_tgaloader
	extrn	___bb_wavloader_wavloader
	extrn	_bbArrayNew1D
	extrn	_bbEmptyArray
	extrn	_bbEnd
	extrn	_bbGCEnter
	extrn	_bbGCFlush
	extrn	_bbGCFree
	extrn	_bbGCLeave
	extrn	_bbHandleFromObject
	extrn	_bbHandleToObject
	extrn	_bbNullObject
	extrn	_bbObjectDowncast
	extrn	_bbOnDebugEnterScope
	extrn	_bbOnDebugEnterStm
	extrn	_bbOnDebugLeaveScope
	extrn	_bbStringClass
	extrn	_bbStringConcat
	extrn	_bbStringFromInt
	extrn	_bglCreateContext
	extrn	_bglSetSwapInterval
	extrn	_bglSwapBuffers
	extrn	_brl_blitz_ArrayBoundsError
	extrn	_brl_blitzgl_bglDrawText
	extrn	_brl_filesystem_OpenFile
	extrn	_brl_stream_CloseStream
	extrn	_brl_stream_LoadStream
	extrn	_brl_stream_TStream
	extrn	_brl_system_FlushKeys
	extrn	_brl_system_KeyDown
	extrn	_brl_system_KeyHit
	extrn	_brl_system_MilliSecs
	extrn	_brl_system_MouseHit
	extrn	_brl_system_Notify
	extrn	_brl_system_Proceed
	extrn	_glBegin@4
	extrn	_glClear@4
	extrn	_glClearColor@16
	extrn	_glClearDepth@8
	extrn	_glColor3f@12
	extrn	_glColor4f@16
	extrn	_glDepthFunc@4
	extrn	_glDisable@4
	extrn	_glEnable@4
	extrn	_glEnd@0
	extrn	_glHint@8
	extrn	_glLoadIdentity@0
	extrn	_glMatrixMode@4
	extrn	_glScalef@12
	extrn	_glShadeModel@4
	extrn	_glVertex3i@12
	extrn	_glViewport@16
	extrn	_gluLookAt@72
	extrn	_gluPerspective@32
	public	__bb_main
	public	_bb_DrawMenu
	public	_bb_InitGl
	public	_bb_LoadRawFile
	public	_bb_RenderHeightMap
	public	_bb_ScreenDepth
	public	_bb_ScreenHeight
	public	_bb_ScreenWidth
	public	_bb_bRender
	public	_bb_g_HeightMap
	public	_bb_nehe34
	public	_bb_scaleValue
	section	"code" code
__bb_main:
	push	ebp
	mov	ebp,esp
	sub	esp,20
	push	ebx
	push	esi
	cmp	dword [_120],0
	je	_121
	mov	eax,0
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_121:
	mov	dword [_120],1
	call	_bbGCEnter
	mov	ebx,eax
	mov	dword [ebp-4],0
	mov	byte [ebp-8],0
	mov	dword [ebp-12],0
	mov	dword [ebp-16],0
	mov	dword [ebp-20],0
	push	ebp
	push	_97
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	call	___bb_blitz_blitz
	call	___bb_appstub_appstub
	call	___bb_audio_audio
	call	___bb_bank_bank
	call	___bb_bankstream_bankstream
	call	___bb_basic_basic
	call	___bb_blitzgl_blitzgl
	call	___bb_bmploader_bmploader
	call	___bb_eventqueue_eventqueue
	call	___bb_font_font
	call	___bb_freeaudioaudio_freeaudioaudio
	call	___bb_freetypefont_freetypefont
	call	___bb_glmax2d_glmax2d
	call	___bb_jpgloader_jpgloader
	call	___bb_map_map
	call	___bb_maxutil_maxutil
	call	___bb_oggloader_oggloader
	call	___bb_pngloader_pngloader
	call	___bb_retro_retro
	call	___bb_tgaloader_tgaloader
	call	___bb_wavloader_wavloader
	call	___bb_directx_directx
	call	___bb_freejoy_freejoy
	call	___bb_glew_glew
	call	___bb_lua_lua
	call	___bb_luascript_luascript
	push	_46
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_48
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_49
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_50
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_51
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [_54]
	and	eax,1
	cmp	eax,0
	jne	_55
	push	1048576
	push	_52
	call	_bbArrayNew1D
	add	esp,8
	add	dword [eax+4],1
	mov	dword [_bb_g_HeightMap],eax
	or	dword [_54],1
_55:
	push	_56
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_57
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	0
	push	_4
	call	_brl_system_Proceed
	add	esp,8
	mov	dword [ebp-4],eax
	push	_59
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [ebp-4]
	cmp	eax,-1
	je	_62
	cmp	eax,0
	je	_63
	cmp	eax,1
	je	_64
	jmp	_61
_62:
	push	_65
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_bbEnd
	jmp	_61
_63:
	push	_66
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	10
	push	0
	push	dword [_bb_ScreenDepth]
	push	dword [_bb_ScreenHeight]
	push	dword [_bb_ScreenWidth]
	call	_bglCreateContext
	add	esp,20
	jmp	_61
_64:
	push	_67
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	11
	push	0
	push	dword [_bb_ScreenDepth]
	push	dword [_bb_ScreenHeight]
	push	dword [_bb_ScreenWidth]
	call	_bglCreateContext
	add	esp,20
	jmp	_61
_61:
	push	_68
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	0
	call	_bglSetSwapInterval
	add	esp,4
	push	_69
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_bb_InitGl
	push	_70
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_brl_system_FlushKeys
	push	_71
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	byte [ebp-8],0
	push	_73
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	jmp	_5
_7:
	push	_74
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	112
	call	_brl_system_KeyHit
	add	esp,4
	cmp	eax,0
	je	_75
	push	_76
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	movzx	eax,byte [ebp-8]
	cmp	eax,0
	sete	al
	movzx	eax,al
	mov	eax,eax
	and	eax,0xff
	mov	eax,eax
	mov	byte [ebp-8],al
_75:
	push	_77
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_bb_nehe34
	push	_78
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	add	dword [ebp-12],1
	push	_80
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	cmp	dword [ebp-16],0
	jne	_82
	push	_83
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_brl_system_MilliSecs
	mov	dword [ebp-16],eax
_82:
	push	_84
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	esi,dword [ebp-16]
	add	esi,1001
	call	_brl_system_MilliSecs
	cmp	esi,eax
	jge	_85
	push	_86
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [ebp-12]
	mov	dword [ebp-20],eax
	push	_88
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-12],0
	push	_89
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_brl_system_MilliSecs
	mov	dword [ebp-16],eax
_85:
	push	_90
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	movzx	eax,byte [ebp-8]
	mov	eax,eax
	push	eax
	push	dword [ebp-20]
	call	_bb_DrawMenu
	add	esp,8
	push	_91
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_92
	push	0
	push	ebx
	call	_bbGCFlush
	add	esp,12
	push	_95
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_bglSwapBuffers
_5:
	push	27
	call	_brl_system_KeyHit
	add	esp,4
	cmp	eax,0
	je	_7
_6:
	push	_96
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_bbEnd
	mov	esi,0
	jmp	_22
_22:
	call	dword [_bbOnDebugLeaveScope]
	push	ebx
	call	_bbGCLeave
	add	esp,4
	mov	eax,esi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_bb_InitGl:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	ebp
	push	_139
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_122
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	7425
	call	_glShadeModel@4
	push	_123
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	1056964608
	push	1056964608
	push	1056964608
	push	1056964608
	call	_glClearColor@16
	push	_124
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	fld1
	sub	esp,8
	fstp	qword [esp]
	call	_glClearDepth@8
	push	_125
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	2929
	call	_glEnable@4
	push	_126
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	515
	call	_glDepthFunc@4
	push	_127
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	4354
	push	3152
	call	_glHint@8
	push	_128
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [_bb_ScreenHeight]
	push	dword [_bb_ScreenWidth]
	push	0
	push	0
	call	_glViewport@16
	push	_129
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	5889
	call	_glMatrixMode@4
	push	_130
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_glLoadIdentity@0
	push	_131
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	fld	qword [_271]
	sub	esp,8
	fstp	qword [esp]
	fld	qword [_272]
	sub	esp,8
	fstp	qword [esp]
	mov	eax,dword [_bb_ScreenWidth]
	mov	dword [ebp+-4],eax
	fild	dword [ebp+-4]
	mov	eax,dword [_bb_ScreenHeight]
	mov	dword [ebp+-4],eax
	fild	dword [ebp+-4]
	fdivp	st1,st0
	sub	esp,8
	fstp	qword [esp]
	fld	qword [_273]
	sub	esp,8
	fstp	qword [esp]
	call	_gluPerspective@32
	push	_132
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	5888
	call	_glMatrixMode@4
	push	_133
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_glLoadIdentity@0
	push	_134
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [_bb_g_HeightMap]
	lea	eax,dword [_bb_g_HeightMap]
	push	eax
	push	1048576
	push	_8
	call	_bb_LoadRawFile
	add	esp,12
	add	dword [eax+4],1
	mov	dword [_bb_g_HeightMap],eax
	sub	dword [ebx+4],1
	cmp	dword [ebx+4],0
	jne	_138
	push	ebx
	call	_bbGCFree
	add	esp,4
_138:
	mov	ebx,0
	jmp	_24
_24:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_bb_nehe34:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	ebp
	push	_158
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_141
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	38
	call	_brl_system_KeyDown
	add	esp,4
	cmp	eax,0
	je	_142
	push	_143
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	fld	dword [_bb_scaleValue]
	fadd	dword [_277]
	fstp	dword [_bb_scaleValue]
_142:
	push	_144
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	40
	call	_brl_system_KeyDown
	add	esp,4
	cmp	eax,0
	je	_145
	push	_146
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	fld	dword [_bb_scaleValue]
	fsub	dword [_278]
	fstp	dword [_bb_scaleValue]
	push	_147
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	fld	dword [_bb_scaleValue]
	fldz
	fxch	st1
	fucompp
	fnstsw	ax
	sahf
	setae	al
	movzx	eax,al
	cmp	eax,0
	jne	_148
	push	_149
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	fldz
	fstp	dword [_bb_scaleValue]
_148:
_145:
	push	_150
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	1
	call	_brl_system_MouseHit
	add	esp,4
	cmp	eax,0
	je	_151
	push	_152
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	movzx	eax,byte [_bb_bRender]
	cmp	eax,0
	sete	al
	movzx	eax,al
	mov	eax,eax
	and	eax,0xff
	mov	eax,eax
	mov	byte [_bb_bRender],al
_151:
	push	_153
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	16640
	call	_glClear@4
	push	_154
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_glLoadIdentity@0
	push	_155
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	fldz
	sub	esp,8
	fstp	qword [esp]
	fld1
	sub	esp,8
	fstp	qword [esp]
	fldz
	sub	esp,8
	fstp	qword [esp]
	fld	qword [_279]
	sub	esp,8
	fstp	qword [esp]
	fld	qword [_280]
	sub	esp,8
	fstp	qword [esp]
	fld	qword [_281]
	sub	esp,8
	fstp	qword [esp]
	fld	qword [_282]
	sub	esp,8
	fstp	qword [esp]
	fld	qword [_283]
	sub	esp,8
	fstp	qword [esp]
	fld	qword [_284]
	sub	esp,8
	fstp	qword [esp]
	call	_gluLookAt@72
	push	_156
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [_bb_scaleValue]
	fld	dword [_bb_scaleValue]
	fmul	dword [_285]
	sub	esp,4
	fstp	dword [esp]
	push	dword [_bb_scaleValue]
	call	_glScalef@12
	push	_157
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	lea	eax,dword [_bb_g_HeightMap]
	push	eax
	call	_bb_RenderHeightMap
	add	esp,4
	mov	ebx,0
	jmp	_26
_26:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	pop	ebp
	ret
_bb_LoadRawFile:
	push	ebp
	mov	ebp,esp
	sub	esp,12
	push	ebx
	push	esi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	mov	esi,dword [ebp+16]
	mov	eax,dword [esi]
	add	dword [eax+4],1
	mov	dword [ebp-12],0
	push	ebp
	push	_173
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_160
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	1
	push	1
	push	dword [ebp-4]
	call	_brl_filesystem_OpenFile
	add	esp,12
	push	eax
	call	_bbHandleFromObject
	add	esp,4
	mov	dword [ebp-12],eax
	push	_162
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	cmp	dword [ebp-12],0
	jne	_163
	push	_164
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	1
	push	_9
	call	_brl_system_Notify
	add	esp,8
	push	_165
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,_bbNullObject
	jmp	_34
_163:
	push	_166
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [esi]
	push	dword [ebp-12]
	call	_bbHandleToObject
	add	esp,4
	push	eax
	call	_brl_stream_LoadStream
	add	esp,4
	add	dword [eax+4],1
	mov	dword [esi],eax
	sub	dword [ebx+4],1
	cmp	dword [ebx+4],0
	jne	_170
	push	ebx
	call	_bbGCFree
	add	esp,4
_170:
	push	_171
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_brl_stream_TStream
	push	dword [ebp-12]
	call	_bbHandleToObject
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	push	eax
	call	_brl_stream_CloseStream
	add	esp,4
	push	_172
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [esi]
	jmp	_34
_34:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,dword [esi]
	sub	dword [eax+4],1
	cmp	dword [eax+4],0
	jne	_33
	push	eax
	call	_bbGCFree
	add	esp,4
_33:
	mov	eax,ebx
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_bb_RenderHeightMap:
	push	ebp
	mov	ebp,esp
	sub	esp,28
	push	ebx
	push	esi
	mov	esi,dword [ebp+8]
	mov	eax,dword [esi]
	add	dword [eax+4],1
	mov	dword [ebp-4],0
	mov	dword [ebp-8],0
	mov	dword [ebp-12],0
	mov	dword [ebp-16],0
	mov	dword [ebp-20],0
	fldz
	fstp	dword [ebp-24]
	push	ebp
	push	_240
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_180
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-4],0
	mov	dword [ebp-8],0
	push	_183
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-12],0
	mov	dword [ebp-16],0
	mov	dword [ebp-20],0
	push	_187
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	fldz
	fstp	dword [ebp-24]
	push	_189
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	movzx	eax,byte [_bb_bRender]
	cmp	eax,0
	je	_190
	push	_191
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	7
	call	_glBegin@4
	jmp	_192
_190:
	push	_193
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	1
	call	_glBegin@4
_192:
	push	_194
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-4],0
	jmp	_195
_12:
	push	_196
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-8],0
	jmp	_197
_15:
	push	_198
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [ebp-4]
	mov	dword [ebp-12],eax
	push	_199
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	mov	eax,dword [ebp-8]
	shl	eax,10
	add	ebx,eax
	mov	eax,dword [esi]
	cmp	ebx,dword [eax+20]
	jb	_201
	call	_brl_blitz_ArrayBoundsError
_201:
	mov	eax,dword [esi]
	movzx	eax,byte [eax+ebx+24]
	mov	eax,eax
	mov	dword [ebp-16],eax
	push	_202
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [ebp-8]
	mov	dword [ebp-20],eax
	push	_203
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-12]
	mov	eax,dword [ebp-16]
	shl	eax,10
	add	ebx,eax
	mov	eax,dword [esi]
	cmp	ebx,dword [eax+20]
	jb	_205
	call	_brl_blitz_ArrayBoundsError
_205:
	fld	dword [_298]
	mov	eax,dword [esi]
	movzx	eax,byte [eax+ebx+24]
	mov	dword [ebp+-28],eax
	fild	dword [ebp+-28]
	fdiv	dword [_299]
	faddp	st1,st0
	fstp	dword [ebp-24]
	push	_206
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-24]
	push	0
	push	0
	call	_glColor3f@12
	push	_207
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-20]
	push	dword [ebp-16]
	push	dword [ebp-12]
	call	_glVertex3i@12
	push	_208
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [ebp-4]
	mov	dword [ebp-12],eax
	push	_209
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	mov	eax,dword [ebp-8]
	add	eax,16
	shl	eax,10
	add	ebx,eax
	mov	eax,dword [esi]
	cmp	ebx,dword [eax+20]
	jb	_211
	call	_brl_blitz_ArrayBoundsError
_211:
	mov	eax,dword [esi]
	movzx	eax,byte [eax+ebx+24]
	mov	eax,eax
	mov	dword [ebp-16],eax
	push	_212
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [ebp-8]
	add	eax,16
	mov	dword [ebp-20],eax
	push	_213
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-12]
	mov	eax,dword [ebp-16]
	shl	eax,10
	add	ebx,eax
	mov	eax,dword [esi]
	cmp	ebx,dword [eax+20]
	jb	_215
	call	_brl_blitz_ArrayBoundsError
_215:
	fld	dword [_300]
	mov	eax,dword [esi]
	movzx	eax,byte [eax+ebx+24]
	mov	dword [ebp+-28],eax
	fild	dword [ebp+-28]
	fdiv	dword [_301]
	faddp	st1,st0
	fstp	dword [ebp-24]
	push	_216
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-24]
	push	0
	push	0
	call	_glColor3f@12
	push	_217
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-20]
	push	dword [ebp-16]
	push	dword [ebp-12]
	call	_glVertex3i@12
	push	_218
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [ebp-4]
	add	eax,16
	mov	dword [ebp-12],eax
	push	_219
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	add	ebx,16
	mov	eax,dword [ebp-8]
	add	eax,16
	shl	eax,10
	add	ebx,eax
	mov	eax,dword [esi]
	cmp	ebx,dword [eax+20]
	jb	_221
	call	_brl_blitz_ArrayBoundsError
_221:
	mov	eax,dword [esi]
	movzx	eax,byte [eax+ebx+24]
	mov	eax,eax
	mov	dword [ebp-16],eax
	push	_222
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [ebp-8]
	add	eax,16
	mov	dword [ebp-20],eax
	push	_223
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-12]
	mov	eax,dword [ebp-16]
	shl	eax,10
	add	ebx,eax
	mov	eax,dword [esi]
	cmp	ebx,dword [eax+20]
	jb	_225
	call	_brl_blitz_ArrayBoundsError
_225:
	fld	dword [_302]
	mov	eax,dword [esi]
	movzx	eax,byte [eax+ebx+24]
	mov	dword [ebp+-28],eax
	fild	dword [ebp+-28]
	fdiv	dword [_303]
	faddp	st1,st0
	fstp	dword [ebp-24]
	push	_226
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-24]
	push	0
	push	0
	call	_glColor3f@12
	push	_227
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-20]
	push	dword [ebp-16]
	push	dword [ebp-12]
	call	_glVertex3i@12
	push	_228
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [ebp-4]
	add	eax,16
	mov	dword [ebp-12],eax
	push	_229
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	add	ebx,16
	mov	eax,dword [ebp-8]
	shl	eax,10
	add	ebx,eax
	mov	eax,dword [esi]
	cmp	ebx,dword [eax+20]
	jb	_231
	call	_brl_blitz_ArrayBoundsError
_231:
	mov	eax,dword [esi]
	movzx	eax,byte [eax+ebx+24]
	mov	eax,eax
	mov	dword [ebp-16],eax
	push	_232
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [ebp-8]
	mov	dword [ebp-20],eax
	push	_233
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-12]
	mov	eax,dword [ebp-16]
	shl	eax,10
	add	ebx,eax
	mov	eax,dword [esi]
	cmp	ebx,dword [eax+20]
	jb	_235
	call	_brl_blitz_ArrayBoundsError
_235:
	fld	dword [_304]
	mov	eax,dword [esi]
	movzx	eax,byte [eax+ebx+24]
	mov	dword [ebp+-28],eax
	fild	dword [ebp+-28]
	fdiv	dword [_305]
	faddp	st1,st0
	fstp	dword [ebp-24]
	push	_236
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-24]
	push	0
	push	0
	call	_glColor3f@12
	push	_237
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-20]
	push	dword [ebp-16]
	push	dword [ebp-12]
	call	_glVertex3i@12
_13:
	add	dword [ebp-8],16
_197:
	cmp	dword [ebp-8],1008
	jl	_15
_14:
_10:
	add	dword [ebp-4],16
_195:
	cmp	dword [ebp-4],1008
	jl	_12
_11:
	push	_238
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_glEnd@0
	push	_239
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	1065353216
	push	1065353216
	push	1065353216
	push	1065353216
	call	_glColor4f@16
	mov	ebx,0
	jmp	_40
_40:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,dword [esi]
	sub	dword [eax+4],1
	cmp	dword [eax+4],0
	jne	_39
	push	eax
	call	_bbGCFree
	add	esp,4
_39:
	mov	eax,ebx
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_bb_DrawMenu:
	push	ebp
	mov	ebp,esp
	sub	esp,8
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	push	ebp
	push	_259
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_248
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	2929
	call	_glDisable@4
	push	_249
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	1065353216
	push	1065353216
	push	1065353216
	call	_glColor3f@12
	push	_250
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [_bb_ScreenHeight]
	sub	eax,16
	sub	eax,8
	push	eax
	push	10
	push	_16
	call	_brl_blitzgl_bglDrawText
	add	esp,12
	push	_251
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [_bb_ScreenHeight]
	sub	eax,16
	sub	eax,8
	push	eax
	mov	eax,dword [_bb_ScreenWidth]
	sub	eax,96
	push	eax
	push	dword [ebp-4]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_17
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_blitzgl_bglDrawText
	add	esp,12
	push	_252
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	cmp	dword [ebp-8],0
	je	_253
	push	_254
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	24
	push	10
	push	_18
	call	_brl_blitzgl_bglDrawText
	add	esp,12
	push	_255
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	56
	push	10
	push	_19
	call	_brl_blitzgl_bglDrawText
	add	esp,12
	push	_256
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	72
	push	10
	push	_20
	call	_brl_blitzgl_bglDrawText
	add	esp,12
	push	_257
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	88
	push	10
	push	_21
	call	_brl_blitzgl_bglDrawText
	add	esp,12
_253:
	push	_258
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	2929
	call	_glEnable@4
	mov	ebx,0
	jmp	_44
_44:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable
_120:
	dd	0
_98:
	db	"Nehetut34",0
_99:
	db	"MAP_SIZE",0
_100:
	db	"i",0
_101:
	dd	_bbStringClass
	dd	2147483647
	dd	4
	dw	49,48,50,52
_102:
	db	"STEP_SIZE",0
_103:
	dd	_bbStringClass
	dd	2147483647
	dd	2
	dw	49,54
_104:
	db	"HEIGHT_RATIO",0
_105:
	db	"f",0
_106:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	49,46,53,48,48,48,48,48
	dw	48,48
_107:
	db	"ScreenWidth",0
_bb_ScreenWidth:
	dd	800
_108:
	db	"ScreenHeight",0
_bb_ScreenHeight:
	dd	600
_109:
	db	"ScreenDepth",0
_bb_ScreenDepth:
	dd	32
_110:
	db	"bRender",0
_111:
	db	"b",0
_bb_bRender:
	db	1
_112:
	db	"g_HeightMap",0
_113:
	db	"[]b",0
_bb_g_HeightMap:
	dd	_bbEmptyArray
_114:
	db	"scaleValue",0
_bb_scaleValue:
	dd	0x3e19999a
_115:
	db	"result",0
_116:
	db	"ShowMenu",0
_117:
	db	"Framecounter_counter",0
_118:
	db	"Framecounter_time",0
_119:
	db	"Framecounter_framerate",0
_97:
	dd	1
	dd	_98
	dd	1
	dd	_99
	dd	_100
	dd	_101
	dd	1
	dd	_102
	dd	_100
	dd	_103
	dd	1
	dd	_104
	dd	_105
	dd	_106
	dd	4
	dd	_107
	dd	_100
	dd	_bb_ScreenWidth
	dd	4
	dd	_108
	dd	_100
	dd	_bb_ScreenHeight
	dd	4
	dd	_109
	dd	_100
	dd	_bb_ScreenDepth
	dd	4
	dd	_110
	dd	_111
	dd	_bb_bRender
	dd	4
	dd	_112
	dd	_113
	dd	_bb_g_HeightMap
	dd	4
	dd	_114
	dd	_105
	dd	_bb_scaleValue
	dd	2
	dd	_115
	dd	_100
	dd	-4
	dd	2
	dd	_116
	dd	_111
	dd	-8
	dd	2
	dd	_117
	dd	_100
	dd	-12
	dd	2
	dd	_118
	dd	_100
	dd	-16
	dd	2
	dd	_119
	dd	_100
	dd	-20
	dd	0
_47:
	db	"E:/Src/BlitzMAX/Nehe Tutorial/Nehetut34.bmx",0
_46:
	dd	_47
	dd	11
	dd	1
_48:
	dd	_47
	dd	12
	dd	1
_49:
	dd	_47
	dd	13
	dd	1
_50:
	dd	_47
	dd	15
	dd	1
_51:
	dd	_47
	dd	16
	dd	1
_54:
	dd	0
_52:
	db	"b",0
_56:
	dd	_47
	dd	17
	dd	1
_57:
	dd	_47
	dd	22
	dd	1
_4:
	dd	_bbStringClass
	dd	2147483647
	dd	41
	dw	87,111,117,108,100,32,89,111
	dw	117,32,76,105,107,101,32,84
	dw	111,32,82,117,110,32,73,110
	dw	32,70,117,108,108,115,99,114
	dw	101,101,110,32,77,111,100,101
	dw	63
_59:
	dd	_47
	dd	23
	dd	1
_65:
	dd	_47
	dd	25
	dd	3
_66:
	dd	_47
	dd	27
	dd	3
_67:
	dd	_47
	dd	29
	dd	3
_68:
	dd	_47
	dd	31
	dd	1
_69:
	dd	_47
	dd	32
	dd	1
_70:
	dd	_47
	dd	34
	dd	1
_71:
	dd	_47
	dd	35
	dd	1
_73:
	dd	_47
	dd	36
	dd	1
_74:
	dd	_47
	dd	37
	dd	2
_76:
	dd	_47
	dd	37
	dd	25
_77:
	dd	_47
	dd	38
	dd	2
_78:
	dd	_47
	dd	40
	dd	2
_80:
	dd	_47
	dd	41
	dd	2
_83:
	dd	_47
	dd	41
	dd	30
_84:
	dd	_47
	dd	42
	dd	2
_86:
	dd	_47
	dd	43
	dd	3
_88:
	dd	_47
	dd	44
	dd	3
_89:
	dd	_47
	dd	45
	dd	3
_90:
	dd	_47
	dd	48
	dd	2
_91:
	dd	_47
	dd	49
	dd	2
_92:
_95:
	dd	_47
	dd	50
	dd	2
_96:
	dd	_47
	dd	52
	dd	1
_140:
	db	"InitGl",0
_139:
	dd	1
	dd	_140
	dd	0
_122:
	dd	_47
	dd	59
	dd	2
_123:
	dd	_47
	dd	60
	dd	2
_124:
	dd	_47
	dd	61
	dd	2
_125:
	dd	_47
	dd	62
	dd	2
_126:
	dd	_47
	dd	63
	dd	2
_127:
	dd	_47
	dd	64
	dd	2
_128:
	dd	_47
	dd	66
	dd	2
_129:
	dd	_47
	dd	67
	dd	2
_130:
	dd	_47
	dd	68
	dd	2
_131:
	dd	_47
	dd	69
	dd	2
_271:
	dd	0x0,0x407f4000
_272:
	dd	0xa0000000,0x3fb99999
_273:
	dd	0x0,0x40468000
_132:
	dd	_47
	dd	70
	dd	2
_133:
	dd	_47
	dd	71
	dd	2
_134:
	dd	_47
	dd	73
	dd	2
_8:
	dd	_bbStringClass
	dd	2147483647
	dd	16
	dw	68,97,116,97,47,84,101,114
	dw	114,97,105,110,46,114,97,119
_159:
	db	"nehe34",0
_158:
	dd	1
	dd	_159
	dd	0
_141:
	dd	_47
	dd	77
	dd	2
_143:
	dd	_47
	dd	78
	dd	3
_277:
	dd	0x3a83126f
_144:
	dd	_47
	dd	80
	dd	2
_146:
	dd	_47
	dd	81
	dd	3
_278:
	dd	0x3a83126f
_147:
	dd	_47
	dd	82
	dd	3
_149:
	dd	_47
	dd	82
	dd	26
_150:
	dd	_47
	dd	84
	dd	2
_152:
	dd	_47
	dd	85
	dd	3
_153:
	dd	_47
	dd	88
	dd	2
_154:
	dd	_47
	dd	89
	dd	2
_155:
	dd	_47
	dd	91
	dd	2
_279:
	dd	0x0,0x40656000
_280:
	dd	0x0,0x404b8000
_281:
	dd	0x0,0x40674000
_282:
	dd	0x0,0x40684000
_283:
	dd	0x0,0x404e0000
_284:
	dd	0x0,0x406a8000
_156:
	dd	_47
	dd	92
	dd	2
_285:
	dd	0x3fc00000
_157:
	dd	_47
	dd	93
	dd	2
_174:
	db	"LoadRawFile",0
_175:
	db	"filename",0
_176:
	db	"$",0
_177:
	db	"nSize",0
_178:
	db	"pHeightMap",0
_179:
	db	"File",0
_173:
	dd	1
	dd	_174
	dd	2
	dd	_175
	dd	_176
	dd	-4
	dd	2
	dd	_177
	dd	_100
	dd	-8
	dd	3
	dd	_178
	dd	_113
	dd	0
	dd	2
	dd	_179
	dd	_100
	dd	-12
	dd	0
_160:
	dd	_47
	dd	99
	dd	2
_162:
	dd	_47
	dd	101
	dd	2
_164:
	dd	_47
	dd	103
	dd	3
_9:
	dd	_bbStringClass
	dd	2147483647
	dd	26
	dw	67,97,110,39,116,32,70,105
	dw	110,100,32,84,104,101,32,72
	dw	101,105,103,104,116,32,77,97
	dw	112,33
_165:
	dd	_47
	dd	104
	dd	3
_166:
	dd	_47
	dd	106
	dd	2
_171:
	dd	_47
	dd	107
	dd	2
_172:
	dd	_47
	dd	108
	dd	2
_241:
	db	"RenderHeightMap",0
_242:
	db	"xx",0
_243:
	db	"yy",0
_244:
	db	"x",0
_245:
	db	"y",0
_246:
	db	"z",0
_247:
	db	"fcolor",0
_240:
	dd	1
	dd	_241
	dd	3
	dd	_178
	dd	_113
	dd	0
	dd	2
	dd	_242
	dd	_100
	dd	-4
	dd	2
	dd	_243
	dd	_100
	dd	-8
	dd	2
	dd	_244
	dd	_100
	dd	-12
	dd	2
	dd	_245
	dd	_100
	dd	-16
	dd	2
	dd	_246
	dd	_100
	dd	-20
	dd	2
	dd	_247
	dd	_105
	dd	-24
	dd	0
_180:
	dd	_47
	dd	113
	dd	2
_183:
	dd	_47
	dd	114
	dd	2
_187:
	dd	_47
	dd	115
	dd	2
_189:
	dd	_47
	dd	117
	dd	2
_191:
	dd	_47
	dd	118
	dd	3
_193:
	dd	_47
	dd	120
	dd	3
_194:
	dd	_47
	dd	122
	dd	2
_196:
	dd	_47
	dd	123
	dd	3
_198:
	dd	_47
	dd	125
	dd	4
_199:
	dd	_47
	dd	126
	dd	4
_202:
	dd	_47
	dd	127
	dd	4
_203:
	dd	_47
	dd	129
	dd	4
_298:
	dd	0xbe19999a
_299:
	dd	0x43800000
_206:
	dd	_47
	dd	130
	dd	4
_207:
	dd	_47
	dd	131
	dd	4
_208:
	dd	_47
	dd	134
	dd	4
_209:
	dd	_47
	dd	135
	dd	4
_212:
	dd	_47
	dd	136
	dd	4
_213:
	dd	_47
	dd	138
	dd	4
_300:
	dd	0xbe19999a
_301:
	dd	0x43800000
_216:
	dd	_47
	dd	139
	dd	4
_217:
	dd	_47
	dd	140
	dd	4
_218:
	dd	_47
	dd	143
	dd	4
_219:
	dd	_47
	dd	144
	dd	4
_222:
	dd	_47
	dd	145
	dd	4
_223:
	dd	_47
	dd	147
	dd	4
_302:
	dd	0xbe19999a
_303:
	dd	0x43800000
_226:
	dd	_47
	dd	148
	dd	4
_227:
	dd	_47
	dd	149
	dd	4
_228:
	dd	_47
	dd	152
	dd	4
_229:
	dd	_47
	dd	153
	dd	4
_232:
	dd	_47
	dd	154
	dd	4
_233:
	dd	_47
	dd	156
	dd	4
_304:
	dd	0xbe19999a
_305:
	dd	0x43800000
_236:
	dd	_47
	dd	157
	dd	4
_237:
	dd	_47
	dd	158
	dd	4
_238:
	dd	_47
	dd	161
	dd	2
_239:
	dd	_47
	dd	162
	dd	2
_260:
	db	"DrawMenu",0
_259:
	dd	1
	dd	_260
	dd	2
	dd	_119
	dd	_100
	dd	-4
	dd	2
	dd	_116
	dd	_100
	dd	-8
	dd	0
_248:
	dd	_47
	dd	166
	dd	2
_249:
	dd	_47
	dd	167
	dd	2
_250:
	dd	_47
	dd	168
	dd	2
_16:
	dd	_bbStringClass
	dd	2147483647
	dd	19
	dw	70,49,32,58,32,72,105,100
	dw	101,47,83,104,111,119,32,109
	dw	101,110,117
_251:
	dd	_47
	dd	169
	dd	2
_17:
	dd	_bbStringClass
	dd	2147483647
	dd	6
	dw	70,80,83,32,58,32
_252:
	dd	_47
	dd	170
	dd	2
_254:
	dd	_47
	dd	171
	dd	3
_18:
	dd	_bbStringClass
	dd	2147483647
	dd	53
	dw	78,101,72,101,32,38,32,66
	dw	101,110,32,72,117,109,112,104
	dw	114,101,121,39,115,32,72,101
	dw	105,103,104,116,32,77,97,112
	dw	32,84,117,116,111,114,105,97
	dw	108,32,40,108,101,115,115,111
	dw	110,32,51,52,41
_255:
	dd	_47
	dd	172
	dd	3
_19:
	dd	_bbStringClass
	dd	2147483647
	dd	23
	dw	39,85,80,39,32,32,32,32
	dw	32,32,32,32,32,32,32,90
	dw	111,111,109,32,105,110,32
_256:
	dd	_47
	dd	173
	dd	3
_20:
	dd	_bbStringClass
	dd	2147483647
	dd	23
	dw	39,68,79,87,78,39,32,32
	dw	32,32,32,32,32,32,32,90
	dw	111,111,109,32,111,117,116
_257:
	dd	_47
	dd	174
	dd	3
_21:
	dd	_bbStringClass
	dd	2147483647
	dd	33
	dw	39,77,79,85,83,69,32,76
	dw	69,70,84,39,32,32,32,67
	dw	104,97,110,103,101,32,114,101
	dw	110,100,101,114,32,109,111,100
	dw	101
_258:
	dd	_47
	dd	176
	dd	2
