user: 请将以下的汇编代码转换成C语言代码:

```asm
<ShouldUseColor>:
  endbr64
  push   %rbp
  lea    D96(%rip),%rbp
  push   %rbx
  mov    %rbp,%rsi
  mov    %edi,%ebx
  mov    %rbp,%rdi
  sub    $0x8,%rsp
  call   <StringCaseInsensitiveCStringEquals@plt>
  test   %rax,%rax
  jne    L52
  lea    D19(%rip),%rsi
  mov    %rbp,%rdi
  call   <StringCaseInsensitiveCStringEquals@plt>
  test   %rax,%rax
  je     L16
L101:
  mov    $0x1,%eax
L29:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopl   0x0(%rax,%rax,1)
L16:
  lea    D60(%rip),%rsi
  mov    %rbp,%rdi
  call   <StringCaseInsensitiveCStringEquals@plt>
  test   %rax,%rax
  jne    L101
  lea    D125(%rip),%rsi
  mov    %rbp,%rdi
  call   <StringCaseInsensitiveCStringEquals@plt>
  test   %rax,%rax
  jne    L101
  lea    D50(%rip),%rsi
  mov    %rbp,%rdi
  call   <StringCStringEquals@plt>
  test   %rax,%rax
  setne  %al
  movzbl %al,%eax
  jmp    L29
  nopw   0x0(%rax,%rax,1)
L52:
  lea    D46(%rip),%rdi
  call   <posixGetEnv@plt>
  lea    D72(%rip),%rsi
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <StringCStringEquals@plt>
  test   %rax,%rax
  je     L102
L42:
  mov    $0x1,%edx
L15:
  xor    %eax,%eax
  test   %ebx,%ebx
  setne  %al
  add    $0x8,%rsp
  and    %edx,%eax
  pop    %rbx
  pop    %rbp
  ret
  nopl   0x0(%rax,%rax,1)
L102:
  lea    D30(%rip),%rsi
  mov    %rbp,%rdi
  call   <StringCStringEquals@plt>
  test   %rax,%rax
  jne    L42
  lea    D3(%rip),%rsi
  mov    %rbp,%rdi
  call   <StringCStringEquals@plt>
  test   %rax,%rax
  jne    L42
  lea    D85(%rip),%rsi
  mov    %rbp,%rdi
  call   <StringCStringEquals@plt>
  test   %rax,%rax
  jne    L42
  lea    D91(%rip),%rsi
  mov    %rbp,%rdi
  call   <StringCStringEquals@plt>
  test   %rax,%rax
  jne    L42
  lea    D129(%rip),%rsi
  mov    %rbp,%rdi
  call   <StringCStringEquals@plt>
  test   %rax,%rax
  jne    L42
  lea    D101(%rip),%rsi
  mov    %rbp,%rdi
  call   <StringCStringEquals@plt>
  test   %rax,%rax
  setne  %dl
  jmp    L15
```

tool_calls: name: retrieve_data
arguments: tag: D96
datatype: string
name: retrieve_data
arguments: tag: D19
datatype: string
name: retrieve_data
arguments: tag: D60
datatype: string
name: retrieve_data
arguments: tag: D125
datatype: string
name: retrieve_data
arguments: tag: D50
datatype: string
name: retrieve_data
arguments: tag: D46
datatype: string
name: retrieve_data
arguments: tag: D72
datatype: string
name: retrieve_data
arguments: tag: D30
datatype: string
name: retrieve_data
arguments: tag: D3
datatype: string
name: retrieve_data
arguments: tag: D85
datatype: string
name: retrieve_data
arguments: tag: D91
datatype: string
name: retrieve_data
arguments: tag: D129
datatype: string
name: retrieve_data
arguments: tag: D101
datatype: string

tool: D96: auto

tool: D19: yes

tool: D60: true

tool: D125: t

tool: D50: 1

tool: D46: TERM

tool: D72: xterm

tool: D30: xterm-color

tool: D3: xterm-256color

tool: D85: screen

tool: D91: screen-256color

tool: D129: linux

tool: D101: cygwin

assistant: ```c
int ShouldUseColor(int stdout_is_tty) {
  const char *const gtest_color = "auto";
  if (StringCaseInsensitiveCStringEquals(gtest_color, "auto")) {
    const char *const term = posixGetEnv("TERM");
    const int term_supports_color = StringCStringEquals(term, "xterm") || StringCStringEquals(term, "xterm-color") || StringCStringEquals(term, "xterm-256color") || StringCStringEquals(term, "screen") || StringCStringEquals(term, "screen-256color") || StringCStringEquals(term, "linux") || StringCStringEquals(term, "cygwin");
    return stdout_is_tty && term_supports_color;
  }
  return StringCaseInsensitiveCStringEquals(gtest_color, "yes") || StringCaseInsensitiveCStringEquals(gtest_color, "true") || StringCaseInsensitiveCStringEquals(gtest_color, "t") || StringCStringEquals(gtest_color, "1");
}
```