user: Converte this assembly snippet into its equivalent C code:

```asm
<microqr_expand_binary>:
  endbr64
  push   %r15
  mov    $0x4,%r15d
  push   %r14
  mov    %rdi,%r14
  push   %r13
  lea    D30(%rip),%r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %edx,%ebx
  sub    $0x28,%rsp
  call   <strlen@plt>
  mov    %ebx,%ecx
  mov    %eax,%r12d
  mov    $0x1,%eax
  shl    %cl,%r15d
  shl    %cl,%eax
  mov    %r15d,0x10(%rsp)
  xor    %r15d,%r15d
  mov    %eax,0x14(%rsp)
  mov    $0x2,%eax
  shl    %cl,%eax
  mov    %eax,0xc(%rsp)
  nopw   0x0(%rax,%rax,1)
L159:
  movslq %r15d,%rdx
  movzbl (%r14,%rdx,1),%eax
  sub    $0x30,%eax
  cmp    $0x1e,%al
  ja     L100
  movzbl %al,%eax
  movslq 0x0(%r13,%rax,4),%rax
  add    %r13,%rax
  notrack jmp *%rax
  nopl   (%rax)
  cmp    $0x2,%ebx
  je     L235
  cmp    $0x3,%ebx
  je     L286
  cmp    $0x1,%ebx
  je     L11
L216:
  movsbl 0x1(%r14,%rdx,1),%esi
  mov    0xc(%rsp),%edx
  mov    %rbp,%rdi
  add    $0x2,%r15d
  call   <diran@plt>
L100:
  cmp    %r12d,%r15d
  jl     L159
L103:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
  cmp    $0x2,%ebx
  je     L67
  cmp    $0x3,%ebx
  je     L84
  cmp    $0x1,%ebx
  je     L206
L114:
  movsbl 0x1(%r14,%rdx,1),%esi
  mov    0x10(%rsp),%edx
  mov    %rbp,%rdi
  add    $0x2,%r15d
  call   <diran@plt>
  cmp    %r12d,%r15d
  jl     L159
  jmp    L103
  nopl   0x0(%rax)
  cmp    $0x2,%ebx
  je     L112
  cmp    $0x3,%ebx
  jne    L1
  lea    D122(%rip),%rsi
  mov    %rbp,%rdi
  mov    %rdx,0x18(%rsp)
  call   <concat@plt>
  mov    0x18(%rsp),%rdx
L1:
  movsbl 0x1(%r14,%rdx,1),%esi
  mov    0x14(%rsp),%edx
  mov    %rbp,%rdi
  add    $0x2,%r15d
  call   <diran@plt>
  cmp    %r12d,%r15d
  jl     L159
  jmp    L103
  nopl   0x0(%rax,%rax,1)
  cmp    $0x2,%ebx
  je     L278
  cmp    $0x3,%ebx
  jne    L216
  lea    D62(%rip),%rsi
  mov    %rbp,%rdi
  mov    %rdx,0x18(%rsp)
  call   <concat@plt>
  mov    0x18(%rsp),%rdx
  jmp    L216
  lea    D26(%rip),%rsi
  mov    %rbp,%rdi
  add    $0x1,%r15d
  call   <concat@plt>
  cmp    %r12d,%r15d
  jl     L159
  jmp    L103
  nopl   0x0(%rax)
  lea    D74(%rip),%rsi
  mov    %rbp,%rdi
  add    $0x1,%r15d
  call   <concat@plt>
  cmp    %r12d,%r15d
  jl     L159
  jmp    L103
  nopl   0x0(%rax)
L11:
  lea    D26(%rip),%rsi
  mov    %rbp,%rdi
  mov    %rdx,0x18(%rsp)
  call   <concat@plt>
  mov    0x18(%rsp),%rdx
  jmp    L216
  xchg   %ax,%ax
L278:
  lea    D39(%rip),%rsi
  mov    %rbp,%rdi
  mov    %rdx,0x18(%rsp)
  call   <concat@plt>
  mov    0x18(%rsp),%rdx
  jmp    L216
  xchg   %ax,%ax
L112:
  lea    D71(%rip),%rsi
  mov    %rbp,%rdi
  mov    %rdx,0x18(%rsp)
  call   <concat@plt>
  mov    0x18(%rsp),%rdx
  jmp    L1
  xchg   %ax,%ax
L206:
  lea    D74(%rip),%rsi
  mov    %rbp,%rdi
  mov    %rdx,0x18(%rsp)
  call   <concat@plt>
  mov    0x18(%rsp),%rdx
  jmp    L114
  xchg   %ax,%ax
L286:
  lea    D49(%rip),%rsi
  mov    %rbp,%rdi
  mov    %rdx,0x18(%rsp)
  call   <concat@plt>
  mov    0x18(%rsp),%rdx
  jmp    L216
  xchg   %ax,%ax
L235:
  lea    D14(%rip),%rsi
  mov    %rbp,%rdi
  mov    %rdx,0x18(%rsp)
  call   <concat@plt>
  mov    0x18(%rsp),%rdx
  jmp    L216
  xchg   %ax,%ax
L84:
  lea    D22(%rip),%rsi
  mov    %rbp,%rdi
  mov    %rdx,0x18(%rsp)
  call   <concat@plt>
  mov    0x18(%rsp),%rdx
  jmp    L114
  xchg   %ax,%ax
L67:
  lea    D114(%rip),%rsi
  mov    %rbp,%rdi
  mov    %rdx,0x18(%rsp)
  call   <concat@plt>
  mov    0x18(%rsp),%rdx
  jmp    L114
```

tool_calls: name: unpack_data
arguments: data_tag: D122
type_infered: string
name: unpack_data
arguments: data_tag: D62
type_infered: string
name: unpack_data
arguments: data_tag: D26
type_infered: string
name: unpack_data
arguments: data_tag: D74
type_infered: string
name: unpack_data
arguments: data_tag: D39
type_infered: string
name: unpack_data
arguments: data_tag: D71
type_infered: string
name: unpack_data
arguments: data_tag: D49
type_infered: string
name: unpack_data
arguments: data_tag: D14
type_infered: string
name: unpack_data
arguments: data_tag: D22
type_infered: string
name: unpack_data
arguments: data_tag: D114
type_infered: string

tool: D122: 011

tool: D62: 010

tool: D26: 1

tool: D74: 0

tool: D39: 10

tool: D71: 11

tool: D49: 001

tool: D14: 01

tool: D22: 000

tool: D114: 00

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;
      }
      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;
      }
      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;
      }
      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;
      }
      diran(full_stream, binary_stream[i + 1], 1 << version);
      i += 2;
      break;
    }
  } while (i < length);
}
```