user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x10(%rbp),%rsi
  lea    -0x14(%rbp),%rcx
  lea    -0x18(%rbp),%rdx
  lea    -0x1c(%rbp),%rax
  mov    %rsi,%r8
  mov    %rax,%rsi
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  jmp    L75
L54:
  mov    -0x14(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  cmp    %eax,%edx
  jge    L107
  mov    -0x1c(%rbp),%edx
  mov    $0x18,%eax
  sub    %edx,%eax
  imul   $0x3c,%eax,%eax
  mov    -0x18(%rbp),%edx
  sub    %edx,%eax
  mov    %eax,%ecx
  mov    -0x14(%rbp),%eax
  imul   $0x3c,%eax,%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0xc(%rbp)
  jmp    L52
L107:
  mov    -0x14(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  cmp    %eax,%edx
  jne    L86
  mov    -0x10(%rbp),%edx
  mov    -0x18(%rbp),%eax
  cmp    %eax,%edx
  jge    L108
  mov    -0x1c(%rbp),%edx
  mov    $0x18,%eax
  sub    %edx,%eax
  imul   $0x3c,%eax,%eax
  mov    -0x18(%rbp),%edx
  sub    %edx,%eax
  mov    %eax,%ecx
  mov    -0x14(%rbp),%eax
  imul   $0x3c,%eax,%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  add    %ecx,%eax
  mov    %eax,-0xc(%rbp)
  jmp    L52
L108:
  mov    -0x14(%rbp),%eax
  imul   $0x3c,%eax,%edx
  mov    -0x10(%rbp),%eax
  add    %eax,%edx
  mov    -0x1c(%rbp),%eax
  imul   $0x3c,%eax,%ecx
  mov    -0x18(%rbp),%eax
  add    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0xc(%rbp)
  jmp    L52
L86:
  mov    -0x14(%rbp),%eax
  imul   $0x3c,%eax,%edx
  mov    -0x10(%rbp),%eax
  add    %eax,%edx
  mov    -0x1c(%rbp),%eax
  imul   $0x3c,%eax,%ecx
  mov    -0x18(%rbp),%eax
  add    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0xc(%rbp)
L52:
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x10(%rbp),%rsi
  lea    -0x14(%rbp),%rcx
  lea    -0x18(%rbp),%rdx
  lea    -0x1c(%rbp),%rax
  mov    %rsi,%r8
  mov    %rax,%rsi
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
L75:
  mov    -0x1c(%rbp),%eax
  test   %eax,%eax
  jne    L54
  mov    -0x18(%rbp),%eax
  test   %eax,%eax
  jne    L54
  mov    -0x14(%rbp),%eax
  test   %eax,%eax
  jne    L54
  mov    -0x10(%rbp),%eax
  test   %eax,%eax
  jne    L54
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L84
  call   <__stack_chk_fail@plt>
L84:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D8
data_type: string
name: disassemble_data
arguments: tag: D22
data_type: string

tool: D8:  %d %d %d %d

tool: D22: %d


assistant: ```c
int main() {
  int H1, M1, H2, M2, cont_m;
  scanf(" %d %d %d %d", &H1, &M1, &H2, &M2);
  while (H1 != 0 || M1 != 0 || H2 != 0 || M2 != 0) {
    if (H2 < H1) {
      cont_m = (((24 - H1) * 60) - M1) + (H2 * 60 + M2);
    } else if (H2 == H1) {
      if (M2 < M1) {
        cont_m = (((24 - H1) * 60) - M1) + (H2 * 60 + M2);
      } else {
        cont_m = ((H2 * 60) + M2) - ((H1 * 60) + M1);
      }
    } else {
      cont_m = ((H2 * 60) + M2) - ((H1 * 60) + M1);
    }
    printf("%d\n", cont_m);
    scanf(" %d %d %d %d", &H1, &M1, &H2, &M2);
  }
  return 0;
}
```