title: How to determine the last instruction in a function?
body: <p>Suppose you want to analyse a disassembled ARM function how does one determine where the function ends?</p>
  
  <p>I was looking for a <code>BX LR</code> sequence but that is not 100% reliable.</p>