user: Demonstrate the C code that generates the assembly output below:

```asm
<JTAG_ShiftIRState>:
  endbr64
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%r14
  mov    $0xa,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    $0xe,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    $0xa,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    $0xe,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    $0x8,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    $0xc,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    $0x8,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    $0xc,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    %r14,%rdi
  call   <strlen@plt>
  cmp    $0x1,%eax
  jle    L14
  mov    %eax,%r12d
  mov    %r14,%rbp
  lea    -0x2(%rax),%eax
  lea    0x1(%r14,%rax,1),%r13
L6:
  cmpb   $0x31,0x0(%rbp)
  sete   %bl
  movzbl %bl,%ebx
  shl    $0x3,%ebx
  mov    %ebx,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  or     $0x4,%ebx
  mov    %ebx,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  add    $0x1,%rbp
  cmp    %r13,%rbp
  jne    L6
  sub    $0x1,%r12d
L0:
  movslq %r12d,%r12
  cmpb   $0x31,(%r14,%r12,1)
  sete   %bl
  movzbl %bl,%ebx
  shl    $0x3,%ebx
  mov    %ebx,%edi
  or     $0x2,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    %ebx,%edi
  or     $0x6,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    $0xa,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    $0xe,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    $0x8,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    $0xc,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L14:
  mov    $0x0,%r12d
  jmp    L0
```

assistant: ```c
void JTAG_ShiftIRState(char *wrIR) {
  int size, i, tdi;
  JTAG_SET((1 << 3) | (1 << 1) | 0);
  JTAG_DELAY();
  JTAG_SET((1 << 3) | (1 << 1) | (1 << 2));
  JTAG_DELAY();
  JTAG_SET((1 << 3) | (1 << 1) | 0);
  JTAG_DELAY();
  JTAG_SET((1 << 3) | (1 << 1) | (1 << 2));
  JTAG_DELAY();
  JTAG_SET((1 << 3) | 0 | 0);
  JTAG_DELAY();
  JTAG_SET((1 << 3) | 0 | (1 << 2));
  JTAG_DELAY();
  JTAG_SET((1 << 3) | 0 | 0);
  JTAG_DELAY();
  JTAG_SET((1 << 3) | 0 | (1 << 2));
  JTAG_DELAY();
  size = strlen(wrIR);
  for (i = 0; i < (size - 1); i++) {
    tdi = (wrIR[i] == '1') ? (1 << 3) : 0;
    JTAG_SET(tdi | 0 | 0);
    JTAG_DELAY();
    JTAG_SET(tdi | 0 | (1 << 2));
    JTAG_DELAY();
  }
  tdi = (wrIR[i] == '1') ? (1 << 3) : 0;
  JTAG_SET(tdi | (1 << 1) | 0);
  JTAG_DELAY();
  JTAG_SET(tdi | (1 << 1) | (1 << 2));
  JTAG_DELAY();
  JTAG_SET((1 << 3) | (1 << 1) | 0);
  JTAG_DELAY();
  JTAG_SET((1 << 3) | (1 << 1) | (1 << 2));
  JTAG_DELAY();
  JTAG_SET((1 << 3) | 0 | 0);
  JTAG_DELAY();
  JTAG_SET((1 << 3) | 0 | (1 << 2));
  JTAG_DELAY();
}
```