user: Please show me the C implementation that matches the assembly code listed below:

```asm
<ShouldUseColor>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %edi,%ebx
  lea    D136(%rip),%rdi
  mov    %rdi,%rsi
  call   <StringCaseInsensitiveCStringEquals@plt>
  test   %rax,%rax
  jne    L0
  lea    D141(%rip),%rsi
  lea    D136(%rip),%rdi
  call   <StringCaseInsensitiveCStringEquals@plt>
  mov    %rax,%rdx
  mov    $0x1,%eax
  test   %rdx,%rdx
  je     L7
L97:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  ret
L0:
  lea    D11(%rip),%rdi
  call   <posixGetEnv@plt>
  mov    %rax,%rbp
  lea    D49(%rip),%rsi
  mov    %rax,%rdi
  call   <StringCStringEquals@plt>
  mov    %rax,%rdx
  mov    $0x1,%eax
  test   %rdx,%rdx
  je     L38
L83:
  test   %ebx,%ebx
  setne  %dl
  and    %edx,%eax
  jmp    L97
L38:
  lea    D39(%rip),%rsi
  mov    %rbp,%rdi
  call   <StringCStringEquals@plt>
  mov    %rax,%rdx
  mov    $0x1,%eax
  test   %rdx,%rdx
  jne    L83
  lea    D30(%rip),%rsi
  mov    %rbp,%rdi
  call   <StringCStringEquals@plt>
  mov    %rax,%rdx
  mov    $0x1,%eax
  test   %rdx,%rdx
  jne    L83
  lea    D83(%rip),%rsi
  mov    %rbp,%rdi
  call   <StringCStringEquals@plt>
  mov    %rax,%rdx
  mov    $0x1,%eax
  test   %rdx,%rdx
  jne    L83
  lea    D16(%rip),%rsi
  mov    %rbp,%rdi
  call   <StringCStringEquals@plt>
  mov    %rax,%rdx
  mov    $0x1,%eax
  test   %rdx,%rdx
  jne    L83
  lea    D69(%rip),%rsi
  mov    %rbp,%rdi
  call   <StringCStringEquals@plt>
  mov    %rax,%rdx
  mov    $0x1,%eax
  test   %rdx,%rdx
  jne    L83
  lea    D13(%rip),%rsi
  mov    %rbp,%rdi
  call   <StringCStringEquals@plt>
  test   %rax,%rax
  setne  %al
  movzbl %al,%eax
  jmp    L83
L7:
  lea    D109(%rip),%rsi
  lea    D136(%rip),%rdi
  call   <StringCaseInsensitiveCStringEquals@plt>
  mov    %rax,%rdx
  mov    $0x1,%eax
  test   %rdx,%rdx
  jne    L97
  lea    D121(%rip),%rsi
  lea    D136(%rip),%rdi
  call   <StringCaseInsensitiveCStringEquals@plt>
  mov    %rax,%rdx
  mov    $0x1,%eax
  test   %rdx,%rdx
  jne    L97
  lea    D1(%rip),%rsi
  lea    D136(%rip),%rdi
  call   <StringCStringEquals@plt>
  test   %rax,%rax
  setne  %al
  movzbl %al,%eax
  jmp    L97
```

tool_calls: name: extract_symbolic_data
arguments: tag: D136
type_guessed: string
name: extract_symbolic_data
arguments: tag: D141
type_guessed: string
name: extract_symbolic_data
arguments: tag: D11
type_guessed: string
name: extract_symbolic_data
arguments: tag: D49
type_guessed: string
name: extract_symbolic_data
arguments: tag: D39
type_guessed: string
name: extract_symbolic_data
arguments: tag: D30
type_guessed: string
name: extract_symbolic_data
arguments: tag: D83
type_guessed: string
name: extract_symbolic_data
arguments: tag: D16
type_guessed: string
name: extract_symbolic_data
arguments: tag: D69
type_guessed: string
name: extract_symbolic_data
arguments: tag: D13
type_guessed: string
name: extract_symbolic_data
arguments: tag: D109
type_guessed: string
name: extract_symbolic_data
arguments: tag: D121
type_guessed: string
name: extract_symbolic_data
arguments: tag: D1
type_guessed: string

tool: D136: auto

tool: D141: yes

tool: D11: TERM

tool: D49: xterm

tool: D39: xterm-color

tool: D30: xterm-256color

tool: D83: screen

tool: D16: screen-256color

tool: D69: linux

tool: D13: cygwin

tool: D109: true

tool: D121: t

tool: D1: 1

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");
}
```