title: arm assembly if(expression && expression)
body: <p>What would be the most elegant way to do this in ARM assembly?</p>
  
  <pre><code>If(x0 == x1 &amp;&amp; y0 == y1)
    {
      ...
    }
  </code></pre>
  
  <p>Assuming all values are already in registers</p>
  
  <pre><code>equal:
    cmp r2, r3
    beq are_equal
    b not_equal
  check: 
    cmp r0, r1
    beq equal
  not_equal:
  </code></pre>