user: Translate the below assembly code into C programming language:

```asm
<encode>:
  endbr64
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rsi,%rbx
  jmp    L7
  cs nopw 0x0(%rax,%rax,1)
L172:
  test   %cl,%cl
  jne    L82
  add    $0x1,%edx
  mov    %dl,(%rbx)
  movzbl 0x0(%rbp),%eax
L82:
  movzbl 0x1(%rbx),%edx
  mov    %edx,%ecx
  and    $0x1,%ecx
  test   $0x40,%al
  je     L269
L332:
  test   %cl,%cl
  jne    L92
  add    $0x1,%edx
  mov    %dl,0x1(%rbx)
  movzbl 0x0(%rbp),%eax
L92:
  movzbl 0x2(%rbx),%edx
  mov    %edx,%ecx
  and    $0x1,%ecx
  test   $0x20,%al
  je     L212
L22:
  test   %cl,%cl
  jne    L333
  add    $0x1,%edx
  mov    %dl,0x2(%rbx)
  movzbl 0x0(%rbp),%eax
L333:
  movzbl 0x3(%rbx),%edx
  mov    %edx,%ecx
  and    $0x1,%ecx
  test   $0x10,%al
  je     L68
L288:
  test   %cl,%cl
  jne    L74
  add    $0x1,%edx
  mov    %dl,0x3(%rbx)
  movzbl 0x0(%rbp),%eax
L74:
  movzbl 0x4(%rbx),%edx
  mov    %edx,%ecx
  and    $0x1,%ecx
  test   $0x8,%al
  je     L11
L326:
  test   %cl,%cl
  jne    L222
  add    $0x1,%edx
  mov    %dl,0x4(%rbx)
  movzbl 0x0(%rbp),%eax
L222:
  movzbl 0x5(%rbx),%edx
  mov    %edx,%ecx
  and    $0x1,%ecx
  test   $0x4,%al
  je     L78
L127:
  test   %cl,%cl
  jne    L83
  add    $0x1,%edx
  mov    %dl,0x5(%rbx)
  movzbl 0x0(%rbp),%eax
L83:
  movzbl 0x6(%rbx),%edx
  mov    %edx,%ecx
  and    $0x1,%ecx
  test   $0x2,%al
  je     L128
L249:
  test   %cl,%cl
  jne    L72
  add    $0x1,%edx
  mov    %dl,0x6(%rbx)
  movzbl 0x0(%rbp),%eax
L72:
  movzbl 0x7(%rbx),%edx
  mov    %edx,%ecx
  and    $0x1,%ecx
  test   $0x1,%al
  je     L35
L139:
  test   %cl,%cl
  jne    L335
  add    $0x1,%edx
  mov    %dl,0x7(%rbx)
L335:
  add    $0x8,%rbx
  add    $0x1,%rbp
L7:
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,%r8d
  mov    %ebp,%eax
  sub    %r12d,%eax
  cmp    %eax,%r8d
  jl     L63
  movzbl (%rbx),%edx
  movzbl 0x0(%rbp),%eax
  mov    %edx,%ecx
  and    $0x1,%ecx
  test   %al,%al
  js     L172
  test   %cl,%cl
  je     L82
  sub    $0x1,%edx
  mov    %dl,(%rbx)
  movzbl 0x1(%rbx),%edx
  movzbl 0x0(%rbp),%eax
  mov    %edx,%ecx
  and    $0x1,%ecx
  test   $0x40,%al
  jne    L332
L269:
  test   %cl,%cl
  je     L92
  sub    $0x1,%edx
  mov    %dl,0x1(%rbx)
  movzbl 0x2(%rbx),%edx
  movzbl 0x0(%rbp),%eax
  mov    %edx,%ecx
  and    $0x1,%ecx
  test   $0x20,%al
  jne    L22
L212:
  test   %cl,%cl
  je     L333
  sub    $0x1,%edx
  mov    %dl,0x2(%rbx)
  movzbl 0x3(%rbx),%edx
  movzbl 0x0(%rbp),%eax
  mov    %edx,%ecx
  and    $0x1,%ecx
  test   $0x10,%al
  jne    L288
L68:
  test   %cl,%cl
  je     L74
  sub    $0x1,%edx
  mov    %dl,0x3(%rbx)
  movzbl 0x4(%rbx),%edx
  movzbl 0x0(%rbp),%eax
  mov    %edx,%ecx
  and    $0x1,%ecx
  test   $0x8,%al
  jne    L326
L11:
  test   %cl,%cl
  je     L222
  sub    $0x1,%edx
  mov    %dl,0x4(%rbx)
  movzbl 0x5(%rbx),%edx
  movzbl 0x0(%rbp),%eax
  mov    %edx,%ecx
  and    $0x1,%ecx
  test   $0x4,%al
  jne    L127
L78:
  test   %cl,%cl
  je     L83
  sub    $0x1,%edx
  mov    %dl,0x5(%rbx)
  movzbl 0x6(%rbx),%edx
  movzbl 0x0(%rbp),%eax
  mov    %edx,%ecx
  and    $0x1,%ecx
  test   $0x2,%al
  jne    L249
L128:
  test   %cl,%cl
  je     L72
  sub    $0x1,%edx
  mov    %dl,0x6(%rbx)
  movzbl 0x7(%rbx),%edx
  movzbl 0x0(%rbp),%eax
  mov    %edx,%ecx
  and    $0x1,%ecx
  test   $0x1,%al
  jne    L139
L35:
  test   %cl,%cl
  je     L335
  sub    $0x1,%edx
  mov    %dl,0x7(%rbx)
  jmp    L335
  xchg   %ax,%ax
L63:
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
```

assistant: ```c
void encode(char *message, unsigned char *table) {
  int i, j, k = 0;
  unsigned char extractor = 0b10000000;
  unsigned char bit;
  for (i = 0; i <= strlen(message); i++) {
    extractor = 0b10000000;
    for (j = 0; j < 8; j++) {
      bit = message[i] & extractor;
      if (bit == 0) {
        if (table[k] % 2 == 1) {
          table[k] = table[k] - 1;
        }
      } else {
        if (table[k] % 2 == 0) {
          table[k] = table[k] + 1;
        }
      }
      extractor = extractor >> 1;
      k++;
    }
  }
}
```