user: Please show me the C implementation that matches the assembly code listed below:

```asm
<microqr_expand_binary>:
  endbr64
  push   %r15
  xor    %r15d,%r15d
  push   %r14
  lea    D53(%rip),%r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x18,%rsp
  call   <strlen@plt>
  mov    %rax,0x8(%rsp)
L203:
  movzbl 0x0(%r13,%r15,1),%eax
  sub    $0x30,%eax
  cmp    $0x1e,%al
  ja     L125
  movzbl %al,%eax
  movslq (%r14,%rax,4),%rax
  add    %r14,%rax
  notrack jmp *%rax
  nopw   0x0(%rax,%rax,1)
  cmp    $0x2,%ebp
  je     L60
  cmp    $0x3,%ebp
  je     L100
  cmp    $0x1,%ebp
  je     L140
L104:
  lea    0x3(%rbp),%esi
L72:
  movsbl 0x1(%r13,%r15,1),%edi
  mov    %r12,%rdx
  add    $0x2,%ebx
  movslq %ebx,%r15
  call   <bin_append@plt>
L125:
  cmp    %r15,0x8(%rsp)
  ja     L203
L70:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
  cmp    $0x2,%ebp
  je     L147
  cmp    $0x3,%ebp
  jne    L66
  lea    D78(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
L66:
  lea    0x1(%rbp),%esi
  jmp    L72
  nopw   0x0(%rax,%rax,1)
  cmp    $0x2,%ebp
  je     L31
  cmp    $0x3,%ebp
  jne    L75
  lea    D54(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  nopl   (%rax)
L75:
  lea    0x2(%rbp),%esi
  jmp    L72
  nopl   (%rax)
  cmp    $0x2,%ebp
  je     L227
  cmp    $0x3,%ebp
  je     L157
  cmp    $0x1,%ebp
  jne    L75
  lea    D22(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L75
  nopl   0x0(%rax,%rax,1)
  lea    D22(%rip),%rsi
  mov    %r12,%rdi
  add    $0x1,%ebx
  call   <strcat@plt>
  movslq %ebx,%r15
  cmp    %r15,0x8(%rsp)
  ja     L203
  jmp    L70
  nopl   (%rax)
  lea    D114(%rip),%rsi
  mov    %r12,%rdi
  add    $0x1,%ebx
  call   <strcat@plt>
  movslq %ebx,%r15
  cmp    %r15,0x8(%rsp)
  ja     L203
  jmp    L70
  nopl   (%rax)
L31:
  lea    D9(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L75
  nopl   0x0(%rax)
L147:
  lea    D101(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L66
  nopl   0x0(%rax)
L140:
  lea    D114(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L104
  nopl   0x0(%rax)
L157:
  lea    D51(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L75
  nopl   0x0(%rax)
L227:
  lea    D100(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L75
  nopl   0x0(%rax)
L100:
  lea    D108(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L104
  nopl   0x0(%rax)
L60:
  lea    D88(%rip),%rsi
  mov    %r12,%rdi
  call   <strcat@plt>
  jmp    L104
```

tool_calls: name: unpack_data
arguments: label: D78
datatype: string
name: unpack_data
arguments: label: D54
datatype: string
name: unpack_data
arguments: label: D22
datatype: string
name: unpack_data
arguments: label: D114
datatype: string
name: unpack_data
arguments: label: D9
datatype: string
name: unpack_data
arguments: label: D101
datatype: string
name: unpack_data
arguments: label: D51
datatype: string
name: unpack_data
arguments: label: D100
datatype: string
name: unpack_data
arguments: label: D108
datatype: string
name: unpack_data
arguments: label: D88
datatype: string

tool: D78: 011

tool: D54: 010

tool: D22: 1

tool: D114: 0

tool: D9: 10

tool: D101: 11

tool: D51: 001

tool: D100: 01

tool: D108: 000

tool: D88: 00

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);
}
```