codegen: logic for varargs laid out