user: What would the C source look like for the assembly code provided here:

```asm
<JTAG_ShiftIRState>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  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    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x8(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L25
L59:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  jne    L36
  mov    $0x8,%eax
  jmp    L4
L36:
  mov    $0x0,%eax
L4:
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  mov    %eax,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    -0x4(%rbp),%eax
  or     $0x4,%eax
  mov    %eax,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  addl   $0x1,-0xc(%rbp)
L25:
  mov    -0x8(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0xc(%rbp)
  jl     L59
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  jne    L34
  mov    $0x8,%eax
  jmp    L19
L34:
  mov    $0x0,%eax
L19:
  mov    %eax,-0x4(%rbp)
  mov    -0x4(%rbp),%eax
  or     $0x2,%eax
  mov    %eax,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    -0x4(%rbp),%eax
  or     $0x6,%eax
  mov    %eax,%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>
  nop
  leave
  ret
```

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