I know it's not a bug, but a feature. Hex Rays found that there's a variable which is set to specific value, thus there's no need to display the branches where the code will never be run, so it warns me about the optimizations:
conditional instruction was optimized away because of '%var_8.1==0'
Is there any way to make it show all the code branches and stop optimizing it?