<patternlist>  
  <patternpairs totalbits="32" postbits="16">  <!-- AARCH64 -->
    <prepatterns>
      <data>0xc0 0x03 0x5f 0xd6                  </data> <!-- ret -->
      <data>0xff 0x0f 0x5f 0xd6                  </data> <!-- retab -->
      <data> ........ ........ ........ 000101.. </data> <!-- b <xxx>  shared jump call -->
      <data> 0x20 0x00 0x20 0xd4                 </data> <!-- brk #1 -->
    </prepatterns>
    
    <postpatterns>
      <data> 0xfd 0x7b 0xbf 0xa9 </data> <!--  stp x29, x30, [sp, #-0x10]!  -->
      <data> 0xfe .0001111 0x1. 0xf8 </data> <!--  stp x30, [sp, #-0x..0]!  -->
      <data> 111..... .1....11 10...... 0xa9 </data> <!-- stp x, x, [sp, -0x.0]! -->
      <data> 11101..1 001..011 1011.... 0x6d </data> <!-- stp d, d, [sp, -0x.0]! -->
      <data> 0xff ..000011 000..... 0xd1 </data> <!-- sub sp, sp, #... -->
      <data> 0x7f 0x23 0x03 0xd5 </data> <!--  pacibsp  -->
      <codeboundary/>
      <possiblefuncstart/>
    </postpatterns>
  </patternpairs>
  
  <pattern> <!-- possible function start -->
    <data> 111..... .1....11 10...... 0xa9 </data> <!-- stp x, x, [sp, -0x.0]! -->
    <possiblefuncstart after="defined" isvalid="true"/> <!-- must be something defined right before this -->
  </pattern>
  
  <pattern> <!-- possible function start -->
    <data> 0x........    111..... .1....11 10...... 0xa9 </data> <!-- stp x, x, [sp, -0x.0]! -->
    <possiblefuncstart after="defined" isvalid="true" /> <!-- must be something defined right before this -->
  </pattern>
  
  <pattern> <!-- possible function start -->
    <data> 0xfe .0001111 0x1. 0xf8 </data> <!--  stp x30, [sp, #-0x..0]!  -->
    <possiblefuncstart after="defined" isvalid="true"/> <!-- must be something defined right before this -->
  </pattern>
  
  <pattern> <!-- possible function start -->
    <data> 0x........ 0xfe .0001111 0x1. 0xf8 </data> <!--  stp x30, [sp, #-0x..0]!  -->
    <possiblefuncstart after="defined" isvalid="true"/>  <!-- must be something defined right before this -->
  </pattern>

  <pattern> <!-- solid function start -->
      <data> 0xfd 0x7b 0xbf 0xa9 0xfd 0x03 0x00 0x91  </data> <!-- stp x29, x30, [sp, #-0x10]! and  mov x29,sp -->
      <codeboundary />  <!-- definitely code -->
      <possiblefuncstart /> <!-- must be something defined right before this -->
  </pattern>
  
  <pattern> <!-- solid function start -->
      <data> 0x7f 0x23 0x03 0xd5 0xff ..000011 00000... 0xd1 </data> <!-- pacibsp   sub sp, sp, #... -->
      <codeboundary />  <!-- definitely code -->
      <possiblefuncstart /> <!-- must be something defined right before this -->
  </pattern>
  
  <pattern> <!-- AARCH64 Thunk -->
      <data> ...10000 ........ ........ 1..10000 
             00010001 ........ 01...... 0xf9 
             0x10 ......10 00...... 0x91 
             0x20 0x02 0x1f 0xd6   </data>
      <!-- adrp x16, #...
           ldr  x17, xxxx
           add  x16, x16
           br   x17
       -->
      <funcstart validcode="function" thunk="true"/>
  </pattern>
  
</patternlist>

