ats_ptr_type
_2home_2hwxi_2Research_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_lamlpenv_get_funarg () {
/* local vardec */
ATSlocal (ats_ptr_type, tmp9) ;
ATSlocal (ats_ptr_type, tmp16) ;
ATSlocal (ats_ptr_type, tmp17) ;

__ats_lab__2home_2hwxi_2Research_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_lamlpenv_get_funarg:
tmp16 = ats_selsin_mac(ats_castfn_mac(ats_ptr_type, statmp1), atslab_1) ;
tmp17 = ats_ptrget_mac(ats_ptr_type, tmp16) ;
tmp9 = loop_4 (tmp17) ;
return (tmp9) ;
} /* end of [_2home_2hwxi_2Research_2ATS_2dPostiats_2src_2pats_trans3_env_2esats__the_lamlpenv_get_funarg] */
ats_ssize_type
atslib_fildes_read_all_err (ats_int_type arg0, ats_ref_type arg1, ats_size_type arg2) {
/* local vardec */
ATSlocal (ats_ssize_type, tmp13) ;
ATSlocal (ats_int_type, tmp26) ;
ATSlocal (ats_size_type, tmp27) ;
ATSlocal (ats_bool_type, tmp28) ;
ATSlocal (ats_size_type, tmp29) ;

__ats_lab_atslib_fildes_read_all_err:
/* ats_int_type tmp26 ; */
tmp26 = 0 ;
tmp27 = loop_4 (arg0, arg1, arg2, (&tmp26)) ;
tmp28 = atspre_eq_int_int (tmp26, 0) ;
if (tmp28) {
tmp29 = atspre_sub_size1_size1 (arg2, tmp27) ;
tmp13 = ats_castfn_mac(ats_ssize_type, tmp29) ;
} else {
tmp13 = atspre_ssize1_of_int1 (-1) ;
} /* end of [if] */
return (tmp13) ;
} /* end of [atslib_fildes_read_all_err] */