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

```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    %eax,-0x4(%rbp)
  movl   $0x0,-0x8(%rbp)
L226:
  mov    -0x8(%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     L53
  mov    %eax,%eax
  lea    0x0(,%rax,4),%rdx
  lea    D53(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D53(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  mov    -0x20(%rbp),%rax
  lea    D139(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <concat@plt>
  addl   $0x1,-0x8(%rbp)
  jmp    L53
  mov    -0x20(%rbp),%rax
  lea    D41(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <concat@plt>
  addl   $0x1,-0x8(%rbp)
  jmp    L53
  cmpl   $0x3,-0x24(%rbp)
  je     L126
  cmpl   $0x3,-0x24(%rbp)
  jg     L170
  cmpl   $0x1,-0x24(%rbp)
  je     L191
  cmpl   $0x2,-0x24(%rbp)
  je     L56
  jmp    L170
L191:
  mov    -0x20(%rbp),%rax
  lea    D41(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <concat@plt>
  jmp    L170
L56:
  mov    -0x20(%rbp),%rax
  lea    D61(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <concat@plt>
  jmp    L170
L126:
  mov    -0x20(%rbp),%rax
  lea    D129(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <concat@plt>
  nop
L170:
  mov    -0x24(%rbp),%eax
  mov    $0x4,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movsbl %al,%ecx
  mov    -0x20(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <qr_diran@plt>
  addl   $0x2,-0x8(%rbp)
  jmp    L53
  cmpl   $0x3,-0x24(%rbp)
  je     L222
  cmpl   $0x3,-0x24(%rbp)
  jg     L158
  cmpl   $0x1,-0x24(%rbp)
  je     L163
  cmpl   $0x2,-0x24(%rbp)
  je     L259
  jmp    L158
L163:
  mov    -0x20(%rbp),%rax
  lea    D139(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <concat@plt>
  jmp    L158
L259:
  mov    -0x20(%rbp),%rax
  lea    D135(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <concat@plt>
  jmp    L158
L222:
  mov    -0x20(%rbp),%rax
  lea    D37(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <concat@plt>
  nop
L158:
  mov    -0x24(%rbp),%eax
  mov    $0x2,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movsbl %al,%ecx
  mov    -0x20(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <qr_diran@plt>
  addl   $0x2,-0x8(%rbp)
  jmp    L53
  cmpl   $0x2,-0x24(%rbp)
  je     L255
  cmpl   $0x3,-0x24(%rbp)
  je     L103
  jmp    L100
L255:
  mov    -0x20(%rbp),%rax
  lea    D114(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <concat@plt>
  jmp    L100
L103:
  mov    -0x20(%rbp),%rax
  lea    D18(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <concat@plt>
  nop
L100:
  mov    -0x24(%rbp),%eax
  mov    $0x2,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movsbl %al,%ecx
  mov    -0x20(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <qr_diran@plt>
  addl   $0x2,-0x8(%rbp)
  jmp    L53
  cmpl   $0x2,-0x24(%rbp)
  je     L16
  cmpl   $0x3,-0x24(%rbp)
  je     L28
  jmp    L270
L16:
  mov    -0x20(%rbp),%rax
  lea    D109(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <concat@plt>
  jmp    L270
L28:
  mov    -0x20(%rbp),%rax
  lea    D1(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <concat@plt>
  nop
L270:
  mov    -0x24(%rbp),%eax
  mov    $0x1,%edx
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x1(%rax),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movsbl %al,%ecx
  mov    -0x20(%rbp),%rax
  mov    %ecx,%esi
  mov    %rax,%rdi
  call   <qr_diran@plt>
  addl   $0x2,-0x8(%rbp)
  nop
L53:
  mov    -0x8(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L226
  nop
  nop
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D139
data_type: string
name: extract_symbolic_data
arguments: data_label: D41
data_type: string
name: extract_symbolic_data
arguments: data_label: D61
data_type: string
name: extract_symbolic_data
arguments: data_label: D129
data_type: string
name: extract_symbolic_data
arguments: data_label: D135
data_type: string
name: extract_symbolic_data
arguments: data_label: D37
data_type: string
name: extract_symbolic_data
arguments: data_label: D114
data_type: string
name: extract_symbolic_data
arguments: data_label: D18
data_type: string
name: extract_symbolic_data
arguments: data_label: D109
data_type: string
name: extract_symbolic_data
arguments: data_label: D1
data_type: string

tool: D139: 1

tool: D41: 0

tool: D61: 00

tool: D129: 000

tool: D135: 01

tool: D37: 001

tool: D114: 10

tool: D18: 010

tool: D109: 11

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