The indentation of both of your patches are incorrect. You must indent each basic block by a full TAB character.
You must also line up multi-line function calls, such that the second and subsequent lines start precisely at the first column after the opennning parenthesis of the function call itself. You must use the appropriate number of TAB and SPC characters necessary to achieve this.