user: Translate the below assembly code into C programming language:

```asm
<get_value>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,0x8(%rsp)
  mov    %rsi,(%rsp)
  mov    %rdx,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  movq   $0x0,0x10(%rsp)
  movq   $0x0,0x18(%rsp)
  movl   $0x0,0x20(%rsp)
  movsbl (%rdx),%esi
  lea    D34(%rip),%rdi
  call   <printf@plt>
  movzbl 0x0(%rbp),%esi
  test   %sil,%sil
  je     L70
  mov    $0x0,%r14d
  mov    $0x0,%ebx
  lea    D34(%rip),%r13
  lea    D15(%rip),%r15
  jmp    L3
L31:
  lea    D41(%rip),%rdi
  call   <puts@plt>
  lea    0x8(%rbx),%r12d
  movslq %r12d,%rax
  movzbl 0x0(%rbp,%rax,1),%edx
  lea    -0x30(%rdx),%eax
  cmp    $0x9,%al
  ja     L98
  lea    0x9(%rbx),%eax
  cltq
  lea    0x10(%rsp),%rsi
  movslq %ebx,%rbx
  sub    %rbx,%rsi
L38:
  mov    %dl,-0x9(%rsi,%rax,1)
  mov    %eax,%r12d
  movzbl 0x0(%rbp,%rax,1),%edx
  add    $0x1,%rax
  lea    -0x30(%rdx),%ecx
  cmp    $0x9,%cl
  jbe    L38
L98:
  lea    0x10(%rsp),%rbx
  mov    %rbx,%rdi
  call   <atol@plt>
  mov    %rax,%rsi
  mov    0x8(%rsp),%rax
  mov    %rsi,(%rax)
  lea    D25(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x14,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  add    $0x1,%r14d
  mov    %r12d,%ebx
  jmp    L108
L59:
  movsbl %sil,%esi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%ebx
L108:
  movslq %ebx,%rax
  movzbl 0x0(%rbp,%rax,1),%esi
  test   %sil,%sil
  je     L61
L3:
  cmp    $0x52,%sil
  je     L31
  cmp    $0x54,%sil
  jne    L59
  lea    0x8(%rbx),%r12d
  movslq %r12d,%rax
  movzbl 0x0(%rbp,%rax,1),%edx
  lea    -0x30(%rdx),%eax
  cmp    $0x9,%al
  ja     L72
  lea    0x9(%rbx),%eax
  cltq
  lea    0x10(%rsp),%rsi
  movslq %ebx,%rbx
  sub    %rbx,%rsi
L44:
  mov    %dl,-0x9(%rsi,%rax,1)
  mov    %eax,%r12d
  movzbl 0x0(%rbp,%rax,1),%edx
  add    $0x1,%rax
  lea    -0x30(%rdx),%ecx
  cmp    $0x9,%cl
  jbe    L44
L72:
  lea    0x10(%rsp),%rbx
  mov    %rbx,%rdi
  call   <atol@plt>
  mov    %rax,%rsi
  mov    (%rsp),%rax
  mov    %rsi,(%rax)
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x14,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  add    $0x1,%r14d
  mov    %r12d,%ebx
  jmp    L108
L70:
  mov    $0x0,%r14d
L61:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L39
  mov    %r14d,%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L39:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: tag: D34
datatype: string
name: unpack_data
arguments: tag: D15
datatype: string
name: unpack_data
arguments: tag: D41
datatype: string
name: unpack_data
arguments: tag: D25
datatype: string

tool: D34: buf is %c


tool: D15: Tx is %ld


tool: D41: find R

tool: D25: Rx is %ld


assistant: ```c
int get_value(long int *Rx, long int *Tx, char *buf) {
  int index = 0;
  char temp[20] = {'\0'};
  int num_len = 0;
  int return_value = 0;
  printf("buf is %c\r\n", *buf);
  while (*(buf + index) != '\0') {
    if (*(buf + index) == 'R') {
      printf("find R\r\n");
      index += 8;
      while (('0' - 1) < *(buf + index) && *(buf + index) < ('9' + 1)) {
        temp[num_len] = buf[index];
        num_len++;
        index++;
      }
      *Rx = atol(temp);
      printf("Rx is %ld\r\n", *Rx);
      memset(temp, '\0', 20);
      num_len = 0;
      return_value++;
      continue;
    } else if (*(buf + index) == 'T') {
      index += 8;
      while (('0' - 1) < *(buf + index) && *(buf + index) < ('9' + 1)) {
        temp[num_len] = *(buf + index);
        num_len++;
        index++;
      }
      *Tx = atol(temp);
      printf("Tx is %ld\r\n", *Tx);
      memset(temp, '\0', 20);
      num_len = 0;
      return_value++;
      continue;
    }
    printf("buf is %c\r\n", *(buf + index));
    index++;
  }
  return return_value;
}
```