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

```asm
<microqr_expand_binary>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x24(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0xc(%rbp)
L104:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  cmp    $0x1e,%eax
  ja     L119
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D43(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D43(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  mov    -0x20(%rbp),%rax
  lea    D110(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  addl   $0x1,-0xc(%rbp)
  jmp    L119
  mov    -0x20(%rbp),%rax
  lea    D29(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  addl   $0x1,-0xc(%rbp)
  jmp    L119
  cmpl   $0x3,-0x24(%rbp)
  je     L62
  cmpl   $0x3,-0x24(%rbp)
  jg     L198
  cmpl   $0x1,-0x24(%rbp)
  je     L121
  cmpl   $0x2,-0x24(%rbp)
  je     L15
  jmp    L198
L121:
  mov    -0x20(%rbp),%rax
  lea    D29(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L198
L15:
  mov    -0x20(%rbp),%rax
  lea    D77(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L198
L62:
  mov    -0x20(%rbp),%rax
  lea    D18(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  nop
L198:
  mov    -0x24(%rbp),%eax
  lea    0x3(%rax),%ecx
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0x20(%rbp),%rdx
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <bin_append@plt>
  addl   $0x2,-0xc(%rbp)
  jmp    L119
  cmpl   $0x3,-0x24(%rbp)
  je     L236
  cmpl   $0x3,-0x24(%rbp)
  jg     L156
  cmpl   $0x1,-0x24(%rbp)
  je     L269
  cmpl   $0x2,-0x24(%rbp)
  je     L268
  jmp    L156
L269:
  mov    -0x20(%rbp),%rax
  lea    D110(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L156
L268:
  mov    -0x20(%rbp),%rax
  lea    D0(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L156
L236:
  mov    -0x20(%rbp),%rax
  lea    D101(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  nop
L156:
  mov    -0x24(%rbp),%eax
  lea    0x2(%rax),%ecx
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0x20(%rbp),%rdx
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <bin_append@plt>
  addl   $0x2,-0xc(%rbp)
  jmp    L119
  cmpl   $0x2,-0x24(%rbp)
  je     L265
  cmpl   $0x3,-0x24(%rbp)
  je     L245
  jmp    L118
L265:
  mov    -0x20(%rbp),%rax
  lea    D66(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L118
L245:
  mov    -0x20(%rbp),%rax
  lea    D8(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  nop
L118:
  mov    -0x24(%rbp),%eax
  lea    0x2(%rax),%ecx
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0x20(%rbp),%rdx
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <bin_append@plt>
  addl   $0x2,-0xc(%rbp)
  jmp    L119
  cmpl   $0x2,-0x24(%rbp)
  je     L253
  cmpl   $0x3,-0x24(%rbp)
  je     L257
  jmp    L14
L253:
  mov    -0x20(%rbp),%rax
  lea    D123(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  jmp    L14
L257:
  mov    -0x20(%rbp),%rax
  lea    D39(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcat@plt>
  nop
L14:
  mov    -0x24(%rbp),%eax
  lea    0x1(%rax),%ecx
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    -0x20(%rbp),%rdx
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <bin_append@plt>
  addl   $0x2,-0xc(%rbp)
  nop
L119:
  mov    -0xc(%rbp),%eax
  cltq
  cmp    %rax,-0x8(%rbp)
  ja     L104
  nop
  nop
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D110
type_infered: string
name: retrieve_data
arguments: data_label: D29
type_infered: string
name: retrieve_data
arguments: data_label: D77
type_infered: string
name: retrieve_data
arguments: data_label: D18
type_infered: string
name: retrieve_data
arguments: data_label: D0
type_infered: string
name: retrieve_data
arguments: data_label: D101
type_infered: string
name: retrieve_data
arguments: data_label: D66
type_infered: string
name: retrieve_data
arguments: data_label: D8
type_infered: string
name: retrieve_data
arguments: data_label: D123
type_infered: string
name: retrieve_data
arguments: data_label: D39
type_infered: string

tool: D110: 1

tool: D29: 0

tool: D77: 00

tool: D18: 000

tool: D0: 01

tool: D101: 001

tool: D66: 10

tool: D8: 010

tool: D123: 11

tool: D39: 011

assistant: ```c
void microqr_expand_binary(const char binary_stream[], char full_stream[], const int version) {
  int i;
  size_t length;
  length = strlen(binary_stream);
  i = 0;
  do {
    switch (binary_stream[i]) {
    case '1':
      strcat(full_stream, "1");
      i++;
      break;
    case '0':
      strcat(full_stream, "0");
      i++;
      break;
    case 'N':
      switch (version) {
      case 1:
        strcat(full_stream, "0");
        break;
      case 2:
        strcat(full_stream, "00");
        break;
      case 3:
        strcat(full_stream, "000");
        break;
      }
      bin_append(binary_stream[i + 1], 3 + version, full_stream);
      i += 2;
      break;
    case 'A':
      switch (version) {
      case 1:
        strcat(full_stream, "1");
        break;
      case 2:
        strcat(full_stream, "01");
        break;
      case 3:
        strcat(full_stream, "001");
        break;
      }
      bin_append(binary_stream[i + 1], 2 + version, full_stream);
      i += 2;
      break;
    case 'B':
      switch (version) {
      case 2:
        strcat(full_stream, "10");
        break;
      case 3:
        strcat(full_stream, "010");
        break;
      }
      bin_append(binary_stream[i + 1], 2 + version, full_stream);
      i += 2;
      break;
    case 'K':
      switch (version) {
      case 2:
        strcat(full_stream, "11");
        break;
      case 3:
        strcat(full_stream, "011");
        break;
      }
      bin_append(binary_stream[i + 1], 1 + version, full_stream);
      i += 2;
      break;
    }
  } while (i < length);
}
```