user: 请从给定的汇编指令推导出C源代码:

```asm
<get_vertex_type>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  mov    %rdx,-0x28(%rbp)
  movb   $0x0,-0x1(%rbp)
  mov    -0x18(%rbp),%rax
  movb   $0x0,(%rax)
  mov    -0x28(%rbp),%rax
  mov    (%rax),%rcx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cltq
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  and    $0x7,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %al,-0x1(%rbp)
  cmpb   $0x0,-0x1(%rbp)
  je     L116
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  or     $0x1,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    %dl,(%rax)
L116:
  mov    -0x28(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rcx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cltq
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  and    $0x7,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %al,-0x1(%rbp)
  cmpb   $0x0,-0x1(%rbp)
  je     L83
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  or     $0x2,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    %dl,(%rax)
L83:
  mov    -0x28(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rcx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cltq
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  and    $0x7,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %al,-0x1(%rbp)
  cmpb   $0x0,-0x1(%rbp)
  je     L84
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  or     $0x3,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    %dl,(%rax)
L84:
  mov    -0x28(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%rcx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cltq
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  and    $0x7,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %al,-0x1(%rbp)
  cmpb   $0x0,-0x1(%rbp)
  je     L54
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  or     $0x4,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    %dl,(%rax)
L54:
  mov    -0x28(%rbp),%rax
  add    $0x20,%rax
  mov    (%rax),%rcx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cltq
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  and    $0x7,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %al,-0x1(%rbp)
  cmpb   $0x0,-0x1(%rbp)
  je     L44
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  or     $0x8,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    %dl,(%rax)
L44:
  mov    -0x28(%rbp),%rax
  add    $0x28,%rax
  mov    (%rax),%rcx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cltq
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  and    $0x7,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %al,-0x1(%rbp)
  cmpb   $0x0,-0x1(%rbp)
  je     L0
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  or     $0xc,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    %dl,(%rax)
L0:
  mov    -0x28(%rbp),%rax
  add    $0x30,%rax
  mov    (%rax),%rcx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cltq
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  and    $0x7,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %al,-0x1(%rbp)
  cmpb   $0x0,-0x1(%rbp)
  je     L16
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  or     $0x10,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    %dl,(%rax)
L16:
  mov    -0x28(%rbp),%rax
  add    $0x38,%rax
  mov    (%rax),%rcx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cltq
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  and    $0x7,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %al,-0x1(%rbp)
  cmpb   $0x0,-0x1(%rbp)
  je     L8
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  or     $0x20,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    %dl,(%rax)
L8:
  mov    -0x28(%rbp),%rax
  add    $0x40,%rax
  mov    (%rax),%rcx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cltq
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  and    $0x7,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %al,-0x1(%rbp)
  cmpb   $0x0,-0x1(%rbp)
  je     L104
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  or     $0x30,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    %dl,(%rax)
L104:
  mov    -0x28(%rbp),%rax
  add    $0x48,%rax
  mov    (%rax),%rcx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cltq
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  and    $0x7,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %al,-0x1(%rbp)
  cmpb   $0x0,-0x1(%rbp)
  je     L2
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x18(%rbp),%rax
  mov    %dl,(%rax)
L2:
  mov    -0x28(%rbp),%rax
  add    $0x50,%rax
  mov    (%rax),%rcx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cltq
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  and    $0x7,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %al,-0x1(%rbp)
  cmpb   $0x0,-0x1(%rbp)
  je     L95
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  or     $0x40,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    %dl,(%rax)
L95:
  mov    -0x28(%rbp),%rax
  add    $0x60,%rax
  mov    (%rax),%rcx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  lea    0x7(%rax),%edx
  test   %eax,%eax
  cmovs  %edx,%eax
  sar    $0x3,%eax
  cltq
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x1c(%rbp),%eax
  add    $0xd,%eax
  and    $0x7,%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    $0x1,%eax
  mov    %al,-0x1(%rbp)
  cmpb   $0x0,-0x1(%rbp)
  je     L37
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  or     $0xffffff80,%eax
  mov    %eax,%edx
  mov    -0x18(%rbp),%rax
  mov    %dl,(%rax)
L37:
  nop
  pop    %rbp
  ret
```

assistant: ```c
void get_vertex_type(unsigned char *type, int vertex_num, unsigned char **matrix) {
  unsigned char val = 0;
  *type = 0;
  { val = (((matrix)[(0 - 13 + 13)][(vertex_num + 13) / 8] & (1 << ((vertex_num + 13) % 8))) ? (1) : (0)); };
  if (val) {
    *type |= 1;
  }
  { val = (((matrix)[(1 - 13 + 13)][(vertex_num + 13) / 8] & (1 << ((vertex_num + 13) % 8))) ? (1) : (0)); };
  if (val) {
    *type |= 2;
  }
  { val = (((matrix)[(2 - 13 + 13)][(vertex_num + 13) / 8] & (1 << ((vertex_num + 13) % 8))) ? (1) : (0)); };
  if (val) {
    *type |= 3;
  }
  { val = (((matrix)[(3 - 13 + 13)][(vertex_num + 13) / 8] & (1 << ((vertex_num + 13) % 8))) ? (1) : (0)); };
  if (val) {
    *type |= 4;
  }
  { val = (((matrix)[(4 - 13 + 13)][(vertex_num + 13) / 8] & (1 << ((vertex_num + 13) % 8))) ? (1) : (0)); };
  if (val) {
    *type |= 8;
  }
  { val = (((matrix)[(5 - 13 + 13)][(vertex_num + 13) / 8] & (1 << ((vertex_num + 13) % 8))) ? (1) : (0)); };
  if (val) {
    *type |= 12;
  }
  { val = (((matrix)[(6 - 13 + 13)][(vertex_num + 13) / 8] & (1 << ((vertex_num + 13) % 8))) ? (1) : (0)); };
  if (val) {
    *type |= 16;
  }
  { val = (((matrix)[(7 - 13 + 13)][(vertex_num + 13) / 8] & (1 << ((vertex_num + 13) % 8))) ? (1) : (0)); };
  if (val) {
    *type |= 32;
  }
  { val = (((matrix)[(8 - 13 + 13)][(vertex_num + 13) / 8] & (1 << ((vertex_num + 13) % 8))) ? (1) : (0)); };
  if (val) {
    *type |= 48;
  }
  { val = (((matrix)[(9 - 13 + 13)][(vertex_num + 13) / 8] & (1 << ((vertex_num + 13) % 8))) ? (1) : (0)); };
  if (val) {
    *type |= 0;
  }
  { val = (((matrix)[(10 - 13 + 13)][(vertex_num + 13) / 8] & (1 << ((vertex_num + 13) % 8))) ? (1) : (0)); };
  if (val) {
    *type |= 64;
  }
  { val = (((matrix)[(12 - 13 + 13)][(vertex_num + 13) / 8] & (1 << ((vertex_num + 13) % 8))) ? (1) : (0)); };
  if (val) {
    *type |= 128;
  }
}
```