When it encounters the keyword function, it sets a counter to 0; when it hits on the endfunction keyword, it checks whether the counter is greater than 100.
The two friends talk a while over their cigarettes then go to a small counter near the door and hand their checks and money to a man behind a cash register.