Split off gas init to functions With some slight reordering. * as.c (gas_early_init, gas_late_init): New functions, split.. (main): ..from here.