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

```asm
<parse_timezone>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x370,%rsp
  mov    %rdi,-0x368(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x350(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0x68,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  lea    D227(%rip),%rax
  mov    %rax,-0x350(%rbp)
  lea    D177(%rip),%rax
  mov    %rax,-0x330(%rbp)
  lea    D144(%rip),%rax
  mov    %rax,-0x310(%rbp)
  lea    D55(%rip),%rax
  mov    %rax,-0x2f0(%rbp)
  lea    D314(%rip),%rax
  mov    %rax,-0x2d0(%rbp)
  lea    D284(%rip),%rax
  mov    %rax,-0x2c8(%rbp)
  lea    D170(%rip),%rax
  mov    %rax,-0x2b0(%rbp)
  lea    D248(%rip),%rax
  mov    %rax,-0x2a8(%rbp)
  lea    D135(%rip),%rax
  mov    %rax,-0x2a0(%rbp)
  lea    D293(%rip),%rax
  mov    %rax,-0x290(%rbp)
  lea    D148(%rip),%rax
  mov    %rax,-0x288(%rbp)
  lea    D250(%rip),%rax
  mov    %rax,-0x280(%rbp)
  lea    D162(%rip),%rax
  mov    %rax,-0x270(%rbp)
  lea    D70(%rip),%rax
  mov    %rax,-0x268(%rbp)
  lea    D88(%rip),%rax
  mov    %rax,-0x260(%rbp)
  lea    D67(%rip),%rax
  mov    %rax,-0x250(%rbp)
  lea    D121(%rip),%rax
  mov    %rax,-0x248(%rbp)
  lea    D93(%rip),%rax
  mov    %rax,-0x230(%rbp)
  lea    D239(%rip),%rax
  mov    %rax,-0x210(%rbp)
  lea    D282(%rip),%rax
  mov    %rax,-0x1f0(%rbp)
  lea    D184(%rip),%rax
  mov    %rax,-0x1d0(%rbp)
  lea    D251(%rip),%rax
  mov    %rax,-0x1c8(%rbp)
  lea    D107(%rip),%rax
  mov    %rax,-0x1c0(%rbp)
  lea    D96(%rip),%rax
  mov    %rax,-0x1b0(%rbp)
  lea    D133(%rip),%rax
  mov    %rax,-0x190(%rbp)
  lea    D316(%rip),%rax
  mov    %rax,-0x170(%rbp)
  lea    D264(%rip),%rax
  mov    %rax,-0x150(%rbp)
  lea    D39(%rip),%rax
  mov    %rax,-0x130(%rbp)
  lea    D256(%rip),%rax
  mov    %rax,-0x110(%rbp)
  lea    D61(%rip),%rax
  mov    %rax,-0xf0(%rbp)
  lea    D124(%rip),%rax
  mov    %rax,-0xd0(%rbp)
  lea    D10(%rip),%rax
  mov    %rax,-0xb0(%rbp)
  lea    D185(%rip),%rax
  mov    %rax,-0x90(%rbp)
  lea    D122(%rip),%rax
  mov    %rax,-0x70(%rbp)
  lea    D206(%rip),%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x368(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2b,%al
  je     L28
  mov    -0x368(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L69
L28:
  mov    -0x368(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    $0x5,%eax
  jne    L69
  mov    -0x368(%rbp),%rax
  mov    %rax,%rdi
  call   <atoi@plt>
  mov    %rax,-0x360(%rbp)
  mov    -0x360(%rbp),%rcx
  movabs $0xa3d70a3d70a3d70b,%rdx
  mov    %rcx,%rax
  imul   %rdx
  lea    (%rdx,%rcx,1),%rax
  sar    $0x6,%rax
  sar    $0x3f,%rcx
  sub    %rcx,%rax
  mov    %rax,%rdx
  mov    %rdx,%rax
  shl    $0x4,%rax
  sub    %rdx,%rax
  shl    $0x2,%rax
  mov    %rax,%rdi
  mov    -0x360(%rbp),%rcx
  movabs $0xa3d70a3d70a3d70b,%rdx
  mov    %rcx,%rax
  imul   %rdx
  lea    (%rdx,%rcx,1),%rax
  sar    $0x6,%rax
  mov    %rcx,%rsi
  sar    $0x3f,%rsi
  sub    %rsi,%rax
  mov    %rax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  add    %rdx,%rax
  shl    $0x2,%rax
  sub    %rax,%rcx
  mov    %rcx,%rdx
  add    %rdi,%rdx
  mov    %rdx,%rax
  shl    $0x4,%rax
  sub    %rdx,%rax
  shl    $0x2,%rax
  jmp    L11
L69:
  movq   $0x0,-0x360(%rbp)
L4:
  movq   $0x0,-0x358(%rbp)
  jmp    L7
L37:
  mov    -0x360(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x358(%rbp),%rax
  add    %rdx,%rax
  mov    -0x350(%rbp,%rax,8),%rax
  mov    -0x368(%rbp),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L88
  mov    -0x360(%rbp),%rax
  sub    $0xc,%rax
  imul   $0xe10,%rax,%rax
  jmp    L11
L88:
  addq   $0x1,-0x358(%rbp)
L7:
  mov    -0x360(%rbp),%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x358(%rbp),%rax
  add    %rdx,%rax
  mov    -0x350(%rbp,%rax,8),%rax
  test   %rax,%rax
  jne    L37
  addq   $0x1,-0x360(%rbp)
  jmp    L4
L11:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L8
  call   <__stack_chk_fail@plt>
L8:
  leave
  ret
```

tool_calls: name: read_data
arguments: label: D227
data_type: string
name: read_data
arguments: label: D177
data_type: string
name: read_data
arguments: label: D144
data_type: string
name: read_data
arguments: label: D55
data_type: string
name: read_data
arguments: label: D314
data_type: string
name: read_data
arguments: label: D284
data_type: string
name: read_data
arguments: label: D170
data_type: string
name: read_data
arguments: label: D248
data_type: string
name: read_data
arguments: label: D135
data_type: string
name: read_data
arguments: label: D293
data_type: string
name: read_data
arguments: label: D148
data_type: string
name: read_data
arguments: label: D250
data_type: string
name: read_data
arguments: label: D162
data_type: string
name: read_data
arguments: label: D70
data_type: string
name: read_data
arguments: label: D88
data_type: string
name: read_data
arguments: label: D67
data_type: string
name: read_data
arguments: label: D121
data_type: string
name: read_data
arguments: label: D93
data_type: string
name: read_data
arguments: label: D239
data_type: string
name: read_data
arguments: label: D282
data_type: string
name: read_data
arguments: label: D184
data_type: string
name: read_data
arguments: label: D251
data_type: string
name: read_data
arguments: label: D107
data_type: string
name: read_data
arguments: label: D96
data_type: string
name: read_data
arguments: label: D133
data_type: string
name: read_data
arguments: label: D316
data_type: string
name: read_data
arguments: label: D264
data_type: string
name: read_data
arguments: label: D39
data_type: string
name: read_data
arguments: label: D256
data_type: string
name: read_data
arguments: label: D61
data_type: string
name: read_data
arguments: label: D124
data_type: string
name: read_data
arguments: label: D10
data_type: string
name: read_data
arguments: label: D185
data_type: string
name: read_data
arguments: label: D122
data_type: string
name: read_data
arguments: label: D206
data_type: string

tool: D227: M

tool: D177: L

tool: D144: K

tool: D55: I

tool: D314: H

tool: D284: PST

tool: D170: G

tool: D248: MST

tool: D135: PDT

tool: D293: F

tool: D148: CST

tool: D250: MDT

tool: D162: E

tool: D70: EST

tool: D88: CDT

tool: D67: D

tool: D121: EDT

tool: D93: C

tool: D239: B

tool: D282: A

tool: D184: Z

tool: D251: UT

tool: D107: GMT

tool: D96: N

tool: D133: O

tool: D316: P

tool: D264: Q

tool: D39: R

tool: D256: S

tool: D61: T

tool: D124: U

tool: D10: V

tool: D185: W

tool: D122: X

tool: D206: Y

assistant: ```c
long parse_timezone(const char *tz) {
  const char *rfc822_timezones[26][4] = {{"M", NULL}, {"L", NULL}, {"K", NULL}, {"I", NULL}, {"H", "PST", NULL}, {"G", "MST", "PDT", NULL}, {"F", "CST", "MDT", NULL}, {"E", "EST", "CDT", NULL}, {"D", "EDT", NULL}, {"C", NULL}, {"B", NULL}, {"A", NULL}, {"Z", "UT", "GMT", NULL}, {"N", NULL}, {"O", NULL}, {"P", NULL}, {"Q", NULL}, {"R", NULL}, {"S", NULL}, {"T", NULL}, {"U", NULL}, {"V", NULL}, {"W", NULL}, {"X", NULL}, {"Y", NULL}, {NULL}};
  long i, j;
  if ((*tz == '+' || *tz == '-') && strlen(tz) == 5) {
    i = atoi(tz);
    return ((i / 100) * 60 + i % 100) * 60;
  }
  for (i = 0; rfc822_timezones[i] != NULL; ++i)
    for (j = 0; rfc822_timezones[i][j] != NULL; ++j)
      if (strcmp(rfc822_timezones[i][j], tz) == 0)
        return (i - 12) * 3600;
  return 0;
}
```