_STEP 2 0 1
__TMPR1 := POND1SCALING [ __DINT_NULL ]
__TMPR2 := POND1SCALING [ __CDINT00000004 ]
__TMPR3 := POND1SCALING [ __CDINT00000008 ]
__TMPR4 := POND1SCALING [ __CDINT0000000C ]
_PUSH_PAR _IO_P1_AI_00 
__TMPR5 := _CALL ANY_TO_UINT 
_PUSH_PAR __TMPR1 
_PUSH_PAR __TMPR2 
_PUSH_PAR __TMPR3 
_PUSH_PAR __TMPR4 
_PUSH_PAR __TMPR5 
__TMPR6 := _CALL LINEARSCALE 
__TMPR6 := __TMPR6 + POND1OFFSET 
POND1HEIGHT := __TMPR6 
_STEP 2 0 7
__TMPR1 := POND2SCALING [ __DINT_NULL ]
__TMPR2 := POND2SCALING [ __CDINT00000004 ]
__TMPR3 := POND2SCALING [ __CDINT00000008 ]
__TMPR4 := POND2SCALING [ __CDINT0000000C ]
_PUSH_PAR _IO_P1_AI_01 
__TMPR5 := _CALL ANY_TO_UINT 
_PUSH_PAR __TMPR1 
_PUSH_PAR __TMPR2 
_PUSH_PAR __TMPR3 
_PUSH_PAR __TMPR4 
_PUSH_PAR __TMPR5 
__TMPR6 := _CALL LINEARSCALE 
__TMPR6 := __TMPR6 + POND2OFFSET 
POND2HEIGHT := __TMPR6 
_STEP 2 0 13
__TMPR1 := POND3SCALING [ __DINT_NULL ]
__TMPR2 := POND3SCALING [ __CDINT00000004 ]
__TMPR3 := POND3SCALING [ __CDINT00000008 ]
__TMPR4 := POND3SCALING [ __CDINT0000000C ]
_PUSH_PAR _IO_P1_AI_02 
__TMPR5 := _CALL ANY_TO_UINT 
_PUSH_PAR __TMPR1 
_PUSH_PAR __TMPR2 
_PUSH_PAR __TMPR3 
_PUSH_PAR __TMPR4 
_PUSH_PAR __TMPR5 
__TMPR6 := _CALL LINEARSCALE 
__TMPR6 := __TMPR6 + POND3OFFSET 
POND3HEIGHT := __TMPR6 
_STEP 2 0 19
__TMPR1 := POND4SCALING [ __DINT_NULL ]
__TMPR2 := POND4SCALING [ __CDINT00000004 ]
__TMPR3 := POND4SCALING [ __CDINT00000008 ]
__TMPR4 := POND4SCALING [ __CDINT0000000C ]
_PUSH_PAR _IO_P1_AI_03 
__TMPR5 := _CALL ANY_TO_UINT 
_PUSH_PAR __TMPR1 
_PUSH_PAR __TMPR2 
_PUSH_PAR __TMPR3 
_PUSH_PAR __TMPR4 
_PUSH_PAR __TMPR5 
__TMPR6 := _CALL LINEARSCALE 
__TMPR6 := __TMPR6 + POND4OFFSET 
POND4HEIGHT := __TMPR6 
_STEP 2 0 25
__FBL_RET := _PUSHCALLFB GETSCALINGPARAMETERS  GETPOND1SCALINGPARAMS 
_STEP 2 0 26
__FBL_RET := _PUSHCALLFB GETSCALINGPARAMETERS  GETPOND2SCALINGPARAMS 
_STEP 2 0 27
__FBL_RET := _PUSHCALLFB GETSCALINGPARAMETERS  GETPOND3SCALINGPARAMS 
_STEP 2 0 28
__FBL_RET := _PUSHCALLFB GETSCALINGPARAMETERS  GETPOND4SCALINGPARAMS 
_STEP 2 0 30
__TMPB1 := GETPOND1SCALINGPARAMS [ __CDINT0000000C ]
_IF _NOT __TMPB1 _GOTO __LAB1 
_STEP 2 0 31
__TMPR1 := GETPOND1SCALINGPARAMS [ __CDINT00000004 ]
__TMPR2 := GETPOND1SCALINGPARAMS [ __CDINT00000008 ]
__TMPR3 := GETPOND1SCALINGPARAMS [ __CDINT00000010 ]
__TMPR4 := GETPOND1SCALINGPARAMS [ __CDINT00000014 ]
_PUSH_PAR __TMPR1 
_PUSH_PAR __TMPR2 
_PUSH_PAR __TMPR3 
_PUSH_PAR __TMPR4 
_PUSH_PAR POND1HEIGHT 
__TMPR5 := _CALL LINEARSCALE 
POND1VOLUME := __TMPR5 
_GOTO __LAB2 
__LAB1 : 
__LAB2 : 
_STEP 2 0 38
__TMPB1 := GETPOND2SCALINGPARAMS [ __CDINT0000000C ]
_IF _NOT __TMPB1 _GOTO __LAB3 
_STEP 2 0 39
__TMPR1 := GETPOND2SCALINGPARAMS [ __CDINT00000004 ]
__TMPR2 := GETPOND2SCALINGPARAMS [ __CDINT00000008 ]
__TMPR3 := GETPOND2SCALINGPARAMS [ __CDINT00000010 ]
__TMPR4 := GETPOND2SCALINGPARAMS [ __CDINT00000014 ]
_PUSH_PAR __TMPR1 
_PUSH_PAR __TMPR2 
_PUSH_PAR __TMPR3 
_PUSH_PAR __TMPR4 
_PUSH_PAR POND2HEIGHT 
__TMPR5 := _CALL LINEARSCALE 
POND2VOLUME := __TMPR5 
_GOTO __LAB4 
__LAB3 : 
__LAB4 : 
_STEP 2 0 46
__TMPB1 := GETPOND3SCALINGPARAMS [ __CDINT0000000C ]
_IF _NOT __TMPB1 _GOTO __LAB5 
_STEP 2 0 47
__TMPR1 := GETPOND3SCALINGPARAMS [ __CDINT00000004 ]
__TMPR2 := GETPOND3SCALINGPARAMS [ __CDINT00000008 ]
__TMPR3 := GETPOND3SCALINGPARAMS [ __CDINT00000010 ]
__TMPR4 := GETPOND3SCALINGPARAMS [ __CDINT00000014 ]
_PUSH_PAR __TMPR1 
_PUSH_PAR __TMPR2 
_PUSH_PAR __TMPR3 
_PUSH_PAR __TMPR4 
_PUSH_PAR POND3HEIGHT 
__TMPR5 := _CALL LINEARSCALE 
POND3VOLUME := __TMPR5 
_GOTO __LAB6 
__LAB5 : 
__LAB6 : 
_STEP 2 0 54
__TMPB1 := GETPOND4SCALINGPARAMS [ __CDINT0000000C ]
_IF _NOT __TMPB1 _GOTO __LAB7 
_STEP 2 0 55
__TMPR1 := GETPOND4SCALINGPARAMS [ __CDINT00000004 ]
__TMPR2 := GETPOND4SCALINGPARAMS [ __CDINT00000008 ]
__TMPR3 := GETPOND4SCALINGPARAMS [ __CDINT00000010 ]
__TMPR4 := GETPOND4SCALINGPARAMS [ __CDINT00000014 ]
_PUSH_PAR __TMPR1 
_PUSH_PAR __TMPR2 
_PUSH_PAR __TMPR3 
_PUSH_PAR __TMPR4 
_PUSH_PAR POND4HEIGHT 
__TMPR5 := _CALL LINEARSCALE 
POND4VOLUME := __TMPR5 
_GOTO __LAB8 
__LAB7 : 
__LAB8 : 
_STEP 2 0 62
__TMPB1 := CFGNUMBEROFPONDS = __CINT00000001 
_IF _NOT __TMPB1 _GOTO __LAB9 
_STEP 2 0 63
PONDVOLUMETOTAL := POND1VOLUME 
_STEP 2 0 64
POND2HEIGHT := __TMPR7 
_STEP 2 0 65
POND2VOLUME := __TMPR7 
_STEP 2 0 66
POND3HEIGHT := __TMPR7 
_STEP 2 0 67
POND3VOLUME := __TMPR7 
_STEP 2 0 68
POND4HEIGHT := __TMPR7 
_STEP 2 0 69
POND4VOLUME := __TMPR7 
_GOTO __LABa 
__LAB9 : 
_STEP 2 0 70
__TMPB1 := CFGNUMBEROFPONDS = __CINT00000002 
_IF _NOT __TMPB1 _GOTO __LABb 
_STEP 2 0 71
__TMPR1 := POND1VOLUME + POND2VOLUME 
PONDVOLUMETOTAL := __TMPR1 
_STEP 2 0 72
POND3HEIGHT := __TMPR7 
_STEP 2 0 73
POND3VOLUME := __TMPR7 
_STEP 2 0 74
POND4HEIGHT := __TMPR7 
_STEP 2 0 75
POND4VOLUME := __TMPR7 
_GOTO __LABa 
__LABb : 
__TMPB1 := CFGNUMBEROFPONDS = __CINT00000003 
_IF _NOT __TMPB1 _GOTO __LABc 
_STEP 2 0 77
__TMPR1 := POND1VOLUME + POND2VOLUME 
__TMPR1 := __TMPR1 + POND3VOLUME 
PONDVOLUMETOTAL := __TMPR1 
_STEP 2 0 78
POND4HEIGHT := __TMPR7 
_STEP 2 0 79
POND4VOLUME := __TMPR7 
_GOTO __LABa 
__LABc : 
__TMPB1 := CFGNUMBEROFPONDS = __CINT00000004 
_IF _NOT __TMPB1 _GOTO __LABd 
_STEP 2 0 81
__TMPR1 := POND1VOLUME + POND2VOLUME 
__TMPR1 := __TMPR1 + POND3VOLUME 
__TMPR1 := __TMPR1 + POND4VOLUME 
PONDVOLUMETOTAL := __TMPR1 
_GOTO __LABa 
__LABd : 
__LABa : 
