user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<JTAG_ShiftDRState>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%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    $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    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x18(%rbp)
  movl   $0x0,-0x1c(%rbp)
  jmp    L56
L57:
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  jne    L40
  mov    $0x8,%eax
  jmp    L7
L40:
  mov    $0x0,%eax
L7:
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    -0x14(%rbp),%eax
  or     $0x4,%eax
  mov    %eax,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  mov    $0x0,%eax
  call   <JTAG_GET_TDO@plt>
  mov    %al,(%rbx)
  addl   $0x1,-0x1c(%rbp)
L56:
  mov    -0x18(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x1c(%rbp)
  jl     L57
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x31,%al
  jne    L55
  mov    $0x8,%eax
  jmp    L3
L55:
  mov    $0x0,%eax
L3:
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  or     $0x2,%eax
  mov    %eax,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    -0x14(%rbp),%eax
  or     $0x6,%eax
  mov    %eax,%edi
  call   <JTAG_SET@plt>
  mov    $0x0,%eax
  call   <JTAG_DELAY@plt>
  mov    -0x1c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  lea    (%rdx,%rax,1),%rbx
  mov    $0x0,%eax
  call   <JTAG_GET_TDO@plt>
  mov    %al,(%rbx)
  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
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
void JTAG_ShiftDRState(char *wrDR, char *rdDR) {
  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) | 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(wrDR);
  for (i = 0; i < (size - 1); i++) {
    tdi = (wrDR[i] == '1') ? (1 << 3) : 0;
    JTAG_SET(tdi | 0 | 0);
    JTAG_DELAY();
    JTAG_SET(tdi | 0 | (1 << 2));
    JTAG_DELAY();
    rdDR[i] = JTAG_GET_TDO();
  }
  tdi = (wrDR[i] == '1') ? (1 << 3) : 0;
  JTAG_SET(tdi | (1 << 1) | 0);
  JTAG_DELAY();
  JTAG_SET(tdi | (1 << 1) | (1 << 2));
  JTAG_DELAY();
  rdDR[i] = JTAG_GET_TDO();
  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();
}
```