page ,132
TITLE *** Assembly Generated By C2ASM *** 
.model medium
.stack 200h
.386
.code
g proc
push bp
mov bp,sp
sub sp,8
push cx
mov cx,0
mov cx,word ptr 5
mov [bp-2],cx
pop cx
L1:	;It's a Label
push cx
mov cx,0
mov cx,word ptr [bp+8]
add cx,word ptr [bp+6]
mov [bp-4],cx
pop cx
push cx
mov cx,0
mov cx,word ptr [bp-4]
mov [bp+6],cx
pop cx
push cx
mov cx,0
mov cx,word ptr [bp-2]
sub cx,word ptr 1
mov [bp-6],cx
pop cx
push cx
mov cx,0
mov cx,word ptr [bp-6]
mov [bp-2],cx
pop cx
push cx
mov cx,0
mov cx,word ptr [bp-2]
cmp cx,word ptr 0
jg L8
mov [bp-8],word ptr 0
jmp L9
L8:
mov [bp-8],word ptr 1
L9:
pop cx
cmp [bp-8],word ptr 1
je L1
mov bx,word ptr [bp+6]
add sp,8
pop bp
ret
g endp
f proc
push bp
mov bp,sp
sub sp,10
push cx
mov cx,0
mov cx,word ptr 0
mov [bp-2],cx
pop cx
L2:	;It's a Label
mov cx,0
mov cx,word ptr [bp-2]
cmp cx,word ptr 10
jnl L3
jmp L4
L5:	;It's a Label
push cx
mov cx,0
mov cx,word ptr [bp-2]
add cx,word ptr 1
mov [bp-6],cx
pop cx
push cx
mov cx,0
mov cx,word ptr [bp-6]
mov [bp-2],cx
pop cx
jmp L2
L4:	;It's a Label
push cx
mov cx,0
mov cx,word ptr 0
mov [bp-4],cx
pop cx
L6:	;It's a Label
push cx
mov cx,0
mov cx,word ptr [bp-4]
cmp cx,word ptr 5
jl L10
mov [bp-8],word ptr 0
jmp L11
L10:
mov [bp-8],word ptr 1
L11:
pop cx
cmp [bp-8],word ptr 0
je L7
mov cx,word ptr [bp-2]
push cx
mov cx,word ptr gz
push cx
call g
pop ax
pop ax
mov gz,bx
push cx
mov cx,0
mov cx,word ptr [bp-4]
add cx,word ptr 1
mov [bp-10],cx
pop cx
push cx
mov cx,0
mov cx,word ptr [bp-10]
mov [bp-4],cx
pop cx
jmp L6
L7:	;It's a Label
jmp L5
L3:	;It's a Label
add sp,10
pop bp
ret
f endp
main proc
mov eax,@data
mov ds,ax
call f
mov ax,4c00h
int 21h
main endp
.data
gz dw 0
end main
