ylfeng/ReF-Decompile-dataset huggingface dataset:
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<dist_calc>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  subss  %xmm4,%xmm1
  movss  %xmm1,(%rsp)
  subss  %xmm5,%xmm2
  movss  %xmm2,0x4(%rsp)
  movss  %xmm0,0x8(%rsp)
  movaps %xmm0,%xmm7
  movss  %xmm3,0xc(%rsp)
  subss  %xmm3,%xmm7
  movaps %xmm7,%xmm0
  mulss  D29(%rip),%xmm0
  call   <sin@plt>
  mov    $0x2,%edi
  call   <pow@plt>
  mov    %eax,%ebp
  movss  0x8(%rsp),%xmm0
  call   <cos@plt>
  mov    %eax,%ebx
  movss  0xc(%rsp),%xmm0
  call   <cos@plt>
  imul   %eax,%ebx
  movss  D29(%rip),%xmm6
  mulss  (%rsp),%xmm6
  movaps %xmm6,%xmm0
  call   <sin@plt>
  mov    $0x2,%edi
  call   <pow@plt>
  imul   %eax,%ebx
  lea    (%rbx,%rbp,1),%edi
  call   <sqrt@plt>
  call   <asin@plt>
  add    %eax,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  mulsd  D21(%rip),%xmm0
  cvtsd2ss %xmm0,%xmm0
  mov    $0x2,%edi
  call   <pow@plt>
  mov    %eax,%ebx
  mov    $0x2,%edi
  movss  0x4(%rsp),%xmm0
  call   <pow@plt>
  lea    (%rbx,%rax,1),%edi
  call   <sqrt@plt>
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: data_tag: D29
type: byte[4]
name: read_data
arguments: data_tag: D21
type: f64

tool: {"D29": [0x00,0x00,0x00,0x3f]}

tool: D21: 6371.009

assistant: ```c
float dist_calc(float lat1, float lon1, float depth1, float lat2, float lon2, float depth2) {
  double central_angle;
  float dlat, dlong, ddepth, distance;
  dlat = lat1 - lat2;
  dlong = lon1 - lon2;
  ddepth = depth1 - depth2;
  central_angle = 2 * asin(sqrt(pow(sin(dlat / 2), 2) + cos(lat1) * cos(lat2) * pow(sin(dlong / 2), 2)));
  distance = 6371.009 * central_angle;
  distance = sqrt(pow(distance, 2) + pow(ddepth, 2));
  return distance;
}
```
user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<dist_calc>:
  endbr64
  push   %rbp
  subss  %xmm5,%xmm2
  subss  %xmm4,%xmm1
  push   %rbx
  sub    $0x18,%rsp
  movss  %xmm0,0x8(%rsp)
  subss  %xmm3,%xmm0
  mulss  D23(%rip),%xmm0
  movss  %xmm1,(%rsp)
  movss  %xmm2,0xc(%rsp)
  movss  %xmm3,0x4(%rsp)
  call   <sin@plt>
  mov    $0x2,%edi
  call   <pow@plt>
  movss  0x8(%rsp),%xmm6
  mov    %eax,%ebp
  movaps %xmm6,%xmm0
  call   <cos@plt>
  movss  0x4(%rsp),%xmm3
  mov    %eax,%ebx
  movaps %xmm3,%xmm0
  call   <cos@plt>
  movss  D23(%rip),%xmm0
  mulss  (%rsp),%xmm0
  imul   %eax,%ebx
  call   <sin@plt>
  mov    $0x2,%edi
  call   <pow@plt>
  imul   %eax,%ebx
  lea    (%rbx,%rbp,1),%edi
  call   <sqrt@plt>
  call   <asin@plt>
  pxor   %xmm0,%xmm0
  mov    $0x2,%edi
  add    %eax,%eax
  cvtsi2sd %eax,%xmm0
  mulsd  D27(%rip),%xmm0
  cvtsd2ss %xmm0,%xmm0
  call   <pow@plt>
  movss  0xc(%rsp),%xmm2
  mov    $0x2,%edi
  mov    %eax,%ebx
  movaps %xmm2,%xmm0
  call   <pow@plt>
  add    $0x18,%rsp
  lea    (%rbx,%rax,1),%edi
  pop    %rbx
  pop    %rbp
  jmp    1090 <sqrt@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D23
datatype: byte[4]
name: unpack_data
arguments: data_label: D27
datatype: f64

tool: {"D23": [0x00,0x00,0x00,0x3f]}

tool: D27: 6371.009

assistant: ```c
float dist_calc(float lat1, float lon1, float depth1, float lat2, float lon2, float depth2) {
  double central_angle;
  float dlat, dlong, ddepth, distance;
  dlat = lat1 - lat2;
  dlong = lon1 - lon2;
  ddepth = depth1 - depth2;
  central_angle = 2 * asin(sqrt(pow(sin(dlat / 2), 2) + cos(lat1) * cos(lat2) * pow(sin(dlong / 2), 2)));
  distance = 6371.009 * central_angle;
  distance = sqrt(pow(distance, 2) + pow(ddepth, 2));
  return distance;
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<dist_calc>:
  endbr64
  push   %rbp
  subss  %xmm5,%xmm2
  subss  %xmm4,%xmm1
  push   %rbx
  sub    $0x18,%rsp
  movss  %xmm0,0x8(%rsp)
  subss  %xmm3,%xmm0
  mulss  D16(%rip),%xmm0
  movss  %xmm1,(%rsp)
  movss  %xmm2,0xc(%rsp)
  movss  %xmm3,0x4(%rsp)
  call   <sin@plt>
  mov    $0x2,%edi
  call   <pow@plt>
  movss  0x8(%rsp),%xmm6
  mov    %eax,%ebp
  movaps %xmm6,%xmm0
  call   <cos@plt>
  movss  0x4(%rsp),%xmm3
  mov    %eax,%ebx
  movaps %xmm3,%xmm0
  call   <cos@plt>
  movss  D16(%rip),%xmm0
  mulss  (%rsp),%xmm0
  imul   %eax,%ebx
  call   <sin@plt>
  mov    $0x2,%edi
  call   <pow@plt>
  imul   %eax,%ebx
  lea    (%rbx,%rbp,1),%edi
  call   <sqrt@plt>
  call   <asin@plt>
  pxor   %xmm0,%xmm0
  mov    $0x2,%edi
  add    %eax,%eax
  cvtsi2sd %eax,%xmm0
  mulsd  D8(%rip),%xmm0
  cvtsd2ss %xmm0,%xmm0
  call   <pow@plt>
  movss  0xc(%rsp),%xmm2
  mov    $0x2,%edi
  mov    %eax,%ebx
  movaps %xmm2,%xmm0
  call   <pow@plt>
  add    $0x18,%rsp
  lea    (%rbx,%rax,1),%edi
  pop    %rbx
  pop    %rbp
  jmp    1090 <sqrt@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D16
datatype: byte[4]
name: retrieve_data
arguments: data_label: D8
datatype: f64

tool: {"D16": [0x00,0x00,0x00,0x3f]}

tool: D8: 6371.009

assistant: ```c
float dist_calc(float lat1, float lon1, float depth1, float lat2, float lon2, float depth2) {
  double central_angle;
  float dlat, dlong, ddepth, distance;
  dlat = lat1 - lat2;
  dlong = lon1 - lon2;
  ddepth = depth1 - depth2;
  central_angle = 2 * asin(sqrt(pow(sin(dlat / 2), 2) + cos(lat1) * cos(lat2) * pow(sin(dlong / 2), 2)));
  distance = 6371.009 * central_angle;
  distance = sqrt(pow(distance, 2) + pow(ddepth, 2));
  return distance;
}
```
user: 提供的汇编代码用C语言表示会是什么样子：

```asm
<usage>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  lea    D78(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D79(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D92(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D73(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D86(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D83(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D20(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  nop
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: data_tag: D78
type: string
name: unpack_data
arguments: data_tag: D79
type: string
name: unpack_data
arguments: data_tag: D92
type: string
name: unpack_data
arguments: data_tag: D73
type: string
name: unpack_data
arguments: data_tag: D0
type: string
name: unpack_data
arguments: data_tag: D49
type: string
name: unpack_data
arguments: data_tag: D65
type: string
name: unpack_data
arguments: data_tag: D86
type: string
name: unpack_data
arguments: data_tag: D83
type: string
name: unpack_data
arguments: data_tag: D20
type: string

tool: D78: Usage: wordom -ie RING [OPTION]...


tool: D79: 


tool: D92: Options:


tool: D73: 	--GRAPH  	 Input filename (if analysing a single graph)


tool: D0: 	--LIST   	 Input filename (if analysing a list of graphs)


tool: D49: 	--DIM    	 The maximum dimension of the rings; bigger rings are not perceived; default: 10


tool: D65: 	--RINGS  	 The output filename for the list of perceived rings; default is 'rings.dat'


tool: D86: 	--STATS  	 Output filename for ring dimension statistics; if not set no statistics are performed


tool: D83: 	--HELP   	 Show this help and exit


tool: D20: 	--VERSION	 Print version information and exit


assistant: ```c
void usage() {
  printf("Usage: wordom -ie RING [OPTION]...\n");
  printf("\n");
  printf("Options:\n");
  printf("\t--GRAPH  \t Input filename (if analysing a single graph)\n");
  printf("\t--LIST   \t Input filename (if analysing a list of graphs)\n");
  printf("\t--DIM    \t The maximum dimension of the rings; bigger rings are not perceived; default: 10\n");
  printf("\t--RINGS  \t The output filename for the list of perceived rings; default is 'rings.dat'\n");
  printf("\t--STATS  \t Output filename for ring dimension statistics; if not set no statistics are performed\n");
  printf("\t--HELP   \t Show this help and exit\n");
  printf("\t--VERSION\t Print version information and exit\n");
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<usage>:
  endbr64
  sub    $0x8,%rsp
  lea    D5(%rip),%rdi
  call   <printf@plt>
  lea    D81(%rip),%rdi
  call   <printf@plt>
  lea    D54(%rip),%rdi
  call   <printf@plt>
  lea    D89(%rip),%rdi
  call   <printf@plt>
  lea    D78(%rip),%rdi
  call   <printf@plt>
  lea    D79(%rip),%rdi
  call   <printf@plt>
  lea    D66(%rip),%rdi
  call   <printf@plt>
  lea    D82(%rip),%rdi
  call   <printf@plt>
  lea    D22(%rip),%rdi
  call   <printf@plt>
  lea    D96(%rip),%rdi
  call   <printf@plt>
  add    $0x8,%rsp
  ret
```

tool_calls: name: read_data
arguments: data_tag: D5
type: string
name: read_data
arguments: data_tag: D81
type: string
name: read_data
arguments: data_tag: D54
type: string
name: read_data
arguments: data_tag: D89
type: string
name: read_data
arguments: data_tag: D78
type: string
name: read_data
arguments: data_tag: D79
type: string
name: read_data
arguments: data_tag: D66
type: string
name: read_data
arguments: data_tag: D82
type: string
name: read_data
arguments: data_tag: D22
type: string
name: read_data
arguments: data_tag: D96
type: string

tool: D5: Usage: wordom -ie RING [OPTION]...


tool: D81: 


tool: D54: Options:


tool: D89: 	--GRAPH  	 Input filename (if analysing a single graph)


tool: D78: 	--LIST   	 Input filename (if analysing a list of graphs)


tool: D79: 	--DIM    	 The maximum dimension of the rings; bigger rings are not perceived; default: 10


tool: D66: 	--RINGS  	 The output filename for the list of perceived rings; default is 'rings.dat'


tool: D82: 	--STATS  	 Output filename for ring dimension statistics; if not set no statistics are performed


tool: D22: 	--HELP   	 Show this help and exit


tool: D96: 	--VERSION	 Print version information and exit


assistant: ```c
void usage() {
  printf("Usage: wordom -ie RING [OPTION]...\n");
  printf("\n");
  printf("Options:\n");
  printf("\t--GRAPH  \t Input filename (if analysing a single graph)\n");
  printf("\t--LIST   \t Input filename (if analysing a list of graphs)\n");
  printf("\t--DIM    \t The maximum dimension of the rings; bigger rings are not perceived; default: 10\n");
  printf("\t--RINGS  \t The output filename for the list of perceived rings; default is 'rings.dat'\n");
  printf("\t--STATS  \t Output filename for ring dimension statistics; if not set no statistics are performed\n");
  printf("\t--HELP   \t Show this help and exit\n");
  printf("\t--VERSION\t Print version information and exit\n");
}
```
user: Please show me the C implementation that matches the assembly code listed below:

```asm
<usage>:
  endbr64
  sub    $0x8,%rsp
  lea    D24(%rip),%rdi
  call   <printf@plt>
  lea    D1(%rip),%rdi
  call   <printf@plt>
  lea    D63(%rip),%rdi
  call   <printf@plt>
  lea    D61(%rip),%rdi
  call   <printf@plt>
  lea    D42(%rip),%rdi
  call   <printf@plt>
  lea    D54(%rip),%rdi
  call   <printf@plt>
  lea    D22(%rip),%rdi
  call   <printf@plt>
  lea    D55(%rip),%rdi
  call   <printf@plt>
  lea    D71(%rip),%rdi
  call   <printf@plt>
  lea    D94(%rip),%rdi
  add    $0x8,%rsp
  jmp    1050 <printf@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D24
data_type: string
name: parse_data
arguments: data_tag: D1
data_type: string
name: parse_data
arguments: data_tag: D63
data_type: string
name: parse_data
arguments: data_tag: D61
data_type: string
name: parse_data
arguments: data_tag: D42
data_type: string
name: parse_data
arguments: data_tag: D54
data_type: string
name: parse_data
arguments: data_tag: D22
data_type: string
name: parse_data
arguments: data_tag: D55
data_type: string
name: parse_data
arguments: data_tag: D71
data_type: string
name: parse_data
arguments: data_tag: D94
data_type: string

tool: D24: Usage: wordom -ie RING [OPTION]...


tool: D1: 


tool: D63: Options:


tool: D61: 	--GRAPH  	 Input filename (if analysing a single graph)


tool: D42: 	--LIST   	 Input filename (if analysing a list of graphs)


tool: D54: 	--DIM    	 The maximum dimension of the rings; bigger rings are not perceived; default: 10


tool: D22: 	--RINGS  	 The output filename for the list of perceived rings; default is 'rings.dat'


tool: D55: 	--STATS  	 Output filename for ring dimension statistics; if not set no statistics are performed


tool: D71: 	--HELP   	 Show this help and exit


tool: D94: 	--VERSION	 Print version information and exit


assistant: ```c
void usage() {
  printf("Usage: wordom -ie RING [OPTION]...\n");
  printf("\n");
  printf("Options:\n");
  printf("\t--GRAPH  \t Input filename (if analysing a single graph)\n");
  printf("\t--LIST   \t Input filename (if analysing a list of graphs)\n");
  printf("\t--DIM    \t The maximum dimension of the rings; bigger rings are not perceived; default: 10\n");
  printf("\t--RINGS  \t The output filename for the list of perceived rings; default is 'rings.dat'\n");
  printf("\t--STATS  \t Output filename for ring dimension statistics; if not set no statistics are performed\n");
  printf("\t--HELP   \t Show this help and exit\n");
  printf("\t--VERSION\t Print version information and exit\n");
}
```
user: Converte this assembly snippet into its equivalent C code:

```asm
<usage>:
  endbr64
  sub    $0x8,%rsp
  lea    D78(%rip),%rdi
  call   <printf@plt>
  lea    D39(%rip),%rdi
  call   <printf@plt>
  lea    D35(%rip),%rdi
  call   <printf@plt>
  lea    D67(%rip),%rdi
  call   <printf@plt>
  lea    D2(%rip),%rdi
  call   <printf@plt>
  lea    D81(%rip),%rdi
  call   <printf@plt>
  lea    D72(%rip),%rdi
  call   <printf@plt>
  lea    D73(%rip),%rdi
  call   <printf@plt>
  lea    D55(%rip),%rdi
  call   <printf@plt>
  lea    D44(%rip),%rdi
  add    $0x8,%rsp
  jmp    1050 <printf@plt>
```

tool_calls: name: read_data
arguments: label: D78
type: string
name: read_data
arguments: label: D39
type: string
name: read_data
arguments: label: D35
type: string
name: read_data
arguments: label: D67
type: string
name: read_data
arguments: label: D2
type: string
name: read_data
arguments: label: D81
type: string
name: read_data
arguments: label: D72
type: string
name: read_data
arguments: label: D73
type: string
name: read_data
arguments: label: D55
type: string
name: read_data
arguments: label: D44
type: string

tool: D78: Usage: wordom -ie RING [OPTION]...


tool: D39: 


tool: D35: Options:


tool: D67: 	--GRAPH  	 Input filename (if analysing a single graph)


tool: D2: 	--LIST   	 Input filename (if analysing a list of graphs)


tool: D81: 	--DIM    	 The maximum dimension of the rings; bigger rings are not perceived; default: 10


tool: D72: 	--RINGS  	 The output filename for the list of perceived rings; default is 'rings.dat'


tool: D73: 	--STATS  	 Output filename for ring dimension statistics; if not set no statistics are performed


tool: D55: 	--HELP   	 Show this help and exit


tool: D44: 	--VERSION	 Print version information and exit


assistant: ```c
void usage() {
  printf("Usage: wordom -ie RING [OPTION]...\n");
  printf("\n");
  printf("Options:\n");
  printf("\t--GRAPH  \t Input filename (if analysing a single graph)\n");
  printf("\t--LIST   \t Input filename (if analysing a list of graphs)\n");
  printf("\t--DIM    \t The maximum dimension of the rings; bigger rings are not perceived; default: 10\n");
  printf("\t--RINGS  \t The output filename for the list of perceived rings; default is 'rings.dat'\n");
  printf("\t--STATS  \t Output filename for ring dimension statistics; if not set no statistics are performed\n");
  printf("\t--HELP   \t Show this help and exit\n");
  printf("\t--VERSION\t Print version information and exit\n");
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<writel>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x8(%rbp)
  mov    %rsi,-0x10(%rbp)
  mov    %edx,-0x14(%rbp)
  mov    %ecx,-0x18(%rbp)
  cmpl   $0x0,-0x18(%rbp)
  jne    L5
  mov    -0x14(%rbp),%eax
  mov    %eax,%edi
  call   <htonl@plt>
  mov    %eax,-0x14(%rbp)
L5:
  mov    -0x8(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  lea    -0x14(%rbp),%rax
  mov    $0x4,%edx
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <memcpy@plt>
  nop
  leave
  ret
```

assistant: ```c
void writel(unsigned char *buf, size_t offset, uint32_t value, bool le32) {
  if (!le32)
    value = htonl(value);
  memcpy(buf + offset, &value, sizeof(uint32_t));
}
```
user: What would the C source look like for the assembly code provided here:

```asm
<writel>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%rbp
  mov    %edx,0xc(%rsp)
  test   %ecx,%ecx
  je     L13
L10:
  lea    0xc(%rsp),%rsi
  lea    (%rbx,%rbp,1),%rdi
  mov    $0x4,%edx
  call   <memcpy@plt>
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  ret
L13:
  mov    %edx,%edi
  call   <htonl@plt>
  mov    %eax,0xc(%rsp)
  jmp    L10
```

assistant: ```c
void writel(unsigned char *buf, size_t offset, uint32_t value, bool le32) {
  if (!le32)
    value = htonl(value);
  memcpy(buf + offset, &value, sizeof(uint32_t));
}
```
user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<writel>:
  endbr64
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  mov    %edx,0xc(%rsp)
  test   %ecx,%ecx
  je     L17
L11:
  lea    (%rbx,%rbp,1),%rdi
  lea    0xc(%rsp),%rsi
  mov    $0x4,%edx
  call   <memcpy@plt>
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L17:
  mov    %edx,%edi
  call   <htonl@plt>
  mov    %eax,0xc(%rsp)
  jmp    L11
```

assistant: ```c
void writel(unsigned char *buf, size_t offset, uint32_t value, bool le32) {
  if (!le32)
    value = htonl(value);
  memcpy(buf + offset, &value, sizeof(uint32_t));
}
```
user: 请将以下的汇编代码转换成C语言代码:

```asm
<writel>:
  endbr64
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x18,%rsp
  mov    %edx,0xc(%rsp)
  test   %ecx,%ecx
  je     L0
L4:
  lea    (%rbx,%rbp,1),%rdi
  lea    0xc(%rsp),%rsi
  mov    $0x4,%edx
  call   <memcpy@plt>
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L0:
  mov    %edx,%edi
  call   <htonl@plt>
  mov    %eax,0xc(%rsp)
  jmp    L4
```

assistant: ```c
void writel(unsigned char *buf, size_t offset, uint32_t value, bool le32) {
  if (!le32)
    value = htonl(value);
  memcpy(buf + offset, &value, sizeof(uint32_t));
}
```
user: What is the c source code of the assembly code below?

```asm
<interval_time>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xe0,%rsp
  mov    %edi,-0xd4(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x1dfe200,-0xc0(%rbp)
  movl   $0x93a80,-0xbc(%rbp)
  movl   $0x15180,-0xb8(%rbp)
  movl   $0xe10,-0xb4(%rbp)
  movl   $0x3c,-0xb0(%rbp)
  movl   $0x1,-0xac(%rbp)
  movl   $0xffffffff,-0xa8(%rbp)
  movl   $0x68647779,-0x96(%rbp)
  movw   $0x736d,-0x92(%rbp)
  movb   $0x0,D32(%rip)
  movl   $0x0,-0xc8(%rbp)
  jmp    L36
L16:
  mov    -0xc8(%rbp),%eax
  cltq
  mov    -0xc0(%rbp,%rax,4),%esi
  mov    -0xd4(%rbp),%eax
  cltd
  idiv   %esi
  mov    %eax,-0xc4(%rbp)
  cmpl   $0x0,-0xc4(%rbp)
  jne    L19
  mov    -0xc8(%rbp),%eax
  cltq
  mov    -0xc0(%rbp,%rax,4),%eax
  cmp    $0x1,%eax
  jne    L30
L19:
  mov    -0xc8(%rbp),%eax
  cltq
  movzbl -0x96(%rbp,%rax,1),%eax
  movsbl %al,%ecx
  mov    -0xc4(%rbp),%edx
  lea    -0x90(%rbp),%rax
  mov    %ecx,%r8d
  mov    %edx,%ecx
  lea    D34(%rip),%rdx
  mov    $0x80,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  lea    -0x90(%rbp),%rax
  mov    $0x80,%edx
  mov    %rax,%rsi
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  call   <strlcat@plt>
  mov    -0xc8(%rbp),%eax
  cltq
  mov    -0xc0(%rbp,%rax,4),%ecx
  mov    -0xd4(%rbp),%eax
  cltd
  idiv   %ecx
  mov    %edx,-0xd4(%rbp)
L30:
  addl   $0x1,-0xc8(%rbp)
L36:
  mov    -0xc8(%rbp),%eax
  cltq
  mov    -0xc0(%rbp,%rax,4),%eax
  cmp    $0xffffffff,%eax
  jne    L16
  lea    D32(%rip),%rax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L49
  call   <__stack_chk_fail@plt>
L49:
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D34
data_type: string

tool: D34: %lu%c

assistant: ```c
const char *interval_time(time_t t) {
  static char buf[128];
  char tmp[128];
  u_long r;
  int unit_div[] = {(((((60) * 60) * 24) * 7) * 52), ((((60) * 60) * 24) * 7), (((60) * 60) * 24), ((60) * 60), (60), 1, -1};
  char unit_sym[] = {'y', 'w', 'd', 'h', 'm', 's'};
  int i;
  *buf = '\0';
  for (i = 0; unit_div[i] != -1; i++) {
    if ((r = t / unit_div[i]) != 0 || unit_div[i] == 1) {
      snprintf(tmp, sizeof(tmp), "%lu%c", r, unit_sym[i]);
      strlcat(buf, tmp, sizeof(buf));
      t %= unit_div[i];
    }
  }
  return (buf);
}
```
user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<interval_time>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xc8,%rsp
  mov    %edi,%ebp
  mov    %fs:0x28,%rax
  mov    %rax,0xb8(%rsp)
  xor    %eax,%eax
  movl   $0x1dfe200,(%rsp)
  movl   $0x93a80,0x4(%rsp)
  movl   $0x15180,0x8(%rsp)
  movl   $0xe10,0xc(%rsp)
  movl   $0x3c,0x10(%rsp)
  movl   $0x1,0x14(%rsp)
  movl   $0xffffffff,0x18(%rsp)
  movl   $0x68647779,0x2a(%rsp)
  movw   $0x736d,0x2e(%rsp)
  movb   $0x0,D3(%rip)
  mov    $0x1,%r12d
  mov    $0x1dfe200,%ebx
  lea    0x29(%rsp),%r15
  lea    0x30(%rsp),%r13
  lea    D28(%rip),%r14
  jmp    L48
L57:
  movsbl (%r15,%r12,1),%r8d
  mov    %eax,%ecx
  mov    %r14,%rdx
  mov    $0x80,%esi
  mov    %r13,%rdi
  call   <snprintf@plt>
  mov    $0x80,%edx
  mov    %r13,%rsi
  lea    D3(%rip),%rdi
  call   <strlcat@plt>
  mov    %ebp,%eax
  cltd
  idiv   %ebx
  mov    %edx,%ebp
L53:
  add    $0x1,%r12
  mov    -0x4(%rsp,%r12,4),%ebx
  cmp    $0xffffffff,%ebx
  je     L54
L48:
  mov    %ebp,%eax
  cltd
  idiv   %ebx
  cmp    $0x1,%ebx
  je     L57
  test   %eax,%eax
  je     L53
  jmp    L57
L54:
  mov    0xb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L14
  lea    D3(%rip),%rax
  add    $0xc8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L14:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D28
type_infered: string

tool: D28: %lu%c

assistant: ```c
const char *interval_time(time_t t) {
  static char buf[128];
  char tmp[128];
  u_long r;
  int unit_div[] = {(((((60) * 60) * 24) * 7) * 52), ((((60) * 60) * 24) * 7), (((60) * 60) * 24), ((60) * 60), (60), 1, -1};
  char unit_sym[] = {'y', 'w', 'd', 'h', 'm', 's'};
  int i;
  *buf = '\0';
  for (i = 0; unit_div[i] != -1; i++) {
    if ((r = t / unit_div[i]) != 0 || unit_div[i] == 1) {
      snprintf(tmp, sizeof(tmp), "%lu%c", r, unit_sym[i]);
      strlcat(buf, tmp, sizeof(buf));
      t %= unit_div[i];
    }
  }
  return (buf);
}
```