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

```asm
<microqr_expand_binary>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%r13
  mov    %rsi,%r14
  mov    %edx,%r12d
  call   <strlen@plt>
  mov    %eax,%r15d
  mov    $0x4,%eax
  mov    %r12d,%ecx
  shl    %cl,%eax
  mov    %eax,0x8(%rsp)
  mov    $0x1,%eax
  shl    %cl,%eax
  mov    %eax,0xc(%rsp)
  mov    $0x2,%eax
  shl    %cl,%eax
  mov    %eax,0x4(%rsp)
  mov    $0x0,%ebx
  jmp    L5
  lea    D54(%rip),%rsi
  mov    %r14,%rdi
  call   <concat@plt>
  add    $0x1,%ebx
  jmp    L49
  lea    D96(%rip),%rsi
  mov    %r14,%rdi
  call   <concat@plt>
  add    $0x1,%ebx
  jmp    L49
  cmp    $0x2,%r12d
  je     L39
  cmp    $0x3,%r12d
  je     L197
  cmp    $0x1,%r12d
  je     L227
L83:
  movsbl 0x1(%r13,%rbp,1),%esi
  mov    0x8(%rsp),%edx
  mov    %r14,%rdi
  call   <qr_diran@plt>
  add    $0x2,%ebx
  jmp    L49
L227:
  lea    D96(%rip),%rsi
  mov    %r14,%rdi
  call   <concat@plt>
  jmp    L83
L39:
  lea    D127(%rip),%rsi
  mov    %r14,%rdi
  call   <concat@plt>
  jmp    L83
L197:
  lea    D85(%rip),%rsi
  mov    %r14,%rdi
  call   <concat@plt>
  jmp    L83
  cmp    $0x2,%r12d
  je     L124
  cmp    $0x3,%r12d
  je     L24
  cmp    $0x1,%r12d
  je     L164
L207:
  movsbl 0x1(%r13,%rbp,1),%esi
  mov    0x4(%rsp),%edx
  mov    %r14,%rdi
  call   <qr_diran@plt>
  add    $0x2,%ebx
  jmp    L49
L164:
  lea    D54(%rip),%rsi
  mov    %r14,%rdi
  call   <concat@plt>
  jmp    L207
L124:
  lea    D58(%rip),%rsi
  mov    %r14,%rdi
  call   <concat@plt>
  jmp    L207
L24:
  lea    D108(%rip),%rsi
  mov    %r14,%rdi
  call   <concat@plt>
  jmp    L207
  cmp    $0x2,%r12d
  je     L121
  cmp    $0x3,%r12d
  je     L71
L218:
  movsbl 0x1(%r13,%rbp,1),%esi
  mov    0x4(%rsp),%edx
  mov    %r14,%rdi
  call   <qr_diran@plt>
  add    $0x2,%ebx
L49:
  cmp    %r15d,%ebx
  jge    L42
L5:
  movslq %ebx,%rbp
  movzbl 0x0(%r13,%rbp,1),%eax
  sub    $0x30,%eax
  cmp    $0x1e,%al
  ja     L49
  movzbl %al,%eax
  lea    D26(%rip),%rcx
  movslq (%rcx,%rax,4),%rax
  add    %rcx,%rax
  notrack jmp *%rax
L121:
  lea    D36(%rip),%rsi
  mov    %r14,%rdi
  call   <concat@plt>
  jmp    L218
L71:
  lea    D83(%rip),%rsi
  mov    %r14,%rdi
  call   <concat@plt>
  jmp    L218
  cmp    $0x2,%r12d
  je     L270
  cmp    $0x3,%r12d
  je     L188
L162:
  movsbl 0x1(%r13,%rbp,1),%esi
  mov    0xc(%rsp),%edx
  mov    %r14,%rdi
  call   <qr_diran@plt>
  add    $0x2,%ebx
  jmp    L49
L270:
  lea    D19(%rip),%rsi
  mov    %r14,%rdi
  call   <concat@plt>
  jmp    L162
L188:
  lea    D113(%rip),%rsi
  mov    %r14,%rdi
  call   <concat@plt>
  jmp    L162
L42:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D54
data_type: string
name: extract_symbolic_data
arguments: label: D96
data_type: string
name: extract_symbolic_data
arguments: label: D127
data_type: string
name: extract_symbolic_data
arguments: label: D85
data_type: string
name: extract_symbolic_data
arguments: label: D58
data_type: string
name: extract_symbolic_data
arguments: label: D108
data_type: string
name: extract_symbolic_data
arguments: label: D36
data_type: string
name: extract_symbolic_data
arguments: label: D83
data_type: string
name: extract_symbolic_data
arguments: label: D19
data_type: string
name: extract_symbolic_data
arguments: label: D113
data_type: string

tool: D54: 1

tool: D96: 0

tool: D127: 00

tool: D85: 000

tool: D58: 01

tool: D108: 001

tool: D36: 10

tool: D83: 010

tool: D19: 11

tool: D113: 011

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