user: What is the c source code of the assembly code below?

```asm
<get_vertex_type>:
  endbr64
  mov    %esi,%ecx
  movb   $0x0,(%rdi)
  mov    %rdx,%rsi
  mov    (%rdx),%rdx
  lea    0x14(%rcx),%eax
  add    $0xd,%ecx
  cmovns %ecx,%eax
  and    $0x7,%ecx
  sar    $0x3,%eax
  cltq
  movzbl (%rdx,%rax,1),%edx
  sar    %cl,%edx
  and    $0x1,%edx
  mov    %dl,(%rdi)
  mov    0x8(%rsi),%r8
  movzbl (%r8,%rax,1),%r8d
  bt     %ecx,%r8d
  jae    L35
  or     $0x2,%edx
  mov    %dl,(%rdi)
L35:
  mov    0x10(%rsi),%rdx
  movzbl (%rdx,%rax,1),%edx
  bt     %ecx,%edx
  jae    L46
  orb    $0x3,(%rdi)
L46:
  mov    0x18(%rsi),%rdx
  movzbl (%rdx,%rax,1),%edx
  bt     %ecx,%edx
  jae    L88
  orb    $0x4,(%rdi)
L88:
  mov    0x20(%rsi),%rdx
  movzbl (%rdx,%rax,1),%edx
  bt     %ecx,%edx
  jae    L75
  orb    $0x8,(%rdi)
L75:
  mov    0x28(%rsi),%rdx
  movzbl (%rdx,%rax,1),%edx
  bt     %ecx,%edx
  jae    L16
  orb    $0xc,(%rdi)
L16:
  mov    0x30(%rsi),%rdx
  movzbl (%rdx,%rax,1),%edx
  bt     %ecx,%edx
  jae    L42
  orb    $0x10,(%rdi)
L42:
  mov    0x38(%rsi),%rdx
  movzbl (%rdx,%rax,1),%edx
  bt     %ecx,%edx
  jae    L6
  orb    $0x20,(%rdi)
L6:
  mov    0x40(%rsi),%rdx
  movzbl (%rdx,%rax,1),%edx
  bt     %ecx,%edx
  jae    L3
  orb    $0x30,(%rdi)
L3:
  mov    0x50(%rsi),%rdx
  movzbl (%rdx,%rax,1),%edx
  bt     %ecx,%edx
  jae    L49
  orb    $0x40,(%rdi)
L49:
  mov    0x60(%rsi),%rdx
  movzbl (%rdx,%rax,1),%eax
  bt     %ecx,%eax
  jae    L96
  orb    $0x80,(%rdi)
L96:
  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;
  }
}
```