understanding br_input.c