user: Converte this assembly snippet into its equivalent C code:

```asm
<captureint>:
  endbr64
  sub    $0x8,%rsp
  xor    %eax,%eax
  call   <foo@plt>
  xor    %eax,%eax
  call   <foo@plt>
  xor    %eax,%eax
  add    $0x8,%rsp
  ret
```

assistant: ```c
int captureint() {
  int a = 0, b = 0, c = 0;
#pragma omp atomic capture
  ;
#pragma omp atomic capture
  foo();
#pragma omp atomic capture
  a = b;
#pragma omp atomic capture
  a = b || a;
#pragma omp atomic capture
  b = a = a && b;
#pragma omp atomic capture
  a = (float)a + b;
#pragma omp atomic capture
  a = 2 * b;
#pragma omp atomic capture
  a = b + *&a;
#pragma omp atomic capture
  { a = b; }
#pragma omp atomic capture
  {}
#pragma omp atomic capture
  {
    a = b;
    a = b;
  }
#pragma omp atomic capture
  {
    a = b;
    a = b || a;
  }
#pragma omp atomic capture
  {
    b = a;
    a = a && b;
  }
#pragma omp atomic capture
  b = a = (float)a + b;
#pragma omp atomic capture
  b = a = 2 * b;
#pragma omp atomic capture
  b = a = b + *&a;
#pragma omp atomic capture
  c = *&a = *&a + 2;
#pragma omp atomic capture
  c = a++;
#pragma omp atomic capture
  c = ++a;
#pragma omp atomic capture
  c = a--;
#pragma omp atomic capture
  c = --a;
#pragma omp atomic capture
  c = a += b;
#pragma omp atomic capture
  c = a %= b;
#pragma omp atomic capture
  c = a *= b;
#pragma omp atomic capture
  c = a -= b;
#pragma omp atomic capture
  c = a /= b;
#pragma omp atomic capture
  c = a &= b;
#pragma omp atomic capture
  c = a ^= b;
#pragma omp atomic capture
  c = a |= b;
#pragma omp atomic capture
  c = a <<= b;
#pragma omp atomic capture
  c = a >>= b;
#pragma omp atomic capture
  c = a = b + a;
#pragma omp atomic capture
  c = a = a * b;
#pragma omp atomic capture
  c = a = b - a;
#pragma omp atomic capture
  c = a = a / b;
#pragma omp atomic capture
  c = a = b & a;
#pragma omp atomic capture
  c = a = a ^ b;
#pragma omp atomic capture
  c = a = b | a;
#pragma omp atomic capture
  c = a = a << b;
#pragma omp atomic capture
  c = a = b >> a;
#pragma omp atomic capture
  {
    c = *&a;
    *&a = *&a + 2;
  }
#pragma omp atomic capture
  {
    *&a = *&a + 2;
    c = *&a;
  }
#pragma omp atomic capture
  {
    c = a;
    a++;
  }
#pragma omp atomic capture
  {
    c = a;
    (a)++;
  }
#pragma omp atomic capture
  {
    ++a;
    c = a;
  }
#pragma omp atomic capture
  {
    c = a;
    a--;
  }
#pragma omp atomic capture
  {
    --a;
    c = a;
  }
#pragma omp atomic capture
  {
    c = a;
    a += b;
  }
#pragma omp atomic capture
  {
    c = a;
    (a) += b;
  }
#pragma omp atomic capture
  {
    a %= b;
    c = a;
  }
#pragma omp atomic capture
  {
    c = a;
    a *= b;
  }
#pragma omp atomic capture
  {
    a -= b;
    c = a;
  }
#pragma omp atomic capture
  {
    c = a;
    a /= b;
  }
#pragma omp atomic capture
  {
    a &= b;
    c = a;
  }
#pragma omp atomic capture
  {
    c = a;
    a ^= b;
  }
#pragma omp atomic capture
  {
    a |= b;
    c = a;
  }
#pragma omp atomic capture
  {
    c = a;
    a <<= b;
  }
#pragma omp atomic capture
  {
    a >>= b;
    c = a;
  }
#pragma omp atomic capture
  {
    c = a;
    a = b + a;
  }
#pragma omp atomic capture
  {
    a = a * b;
    c = a;
  }
#pragma omp atomic capture
  {
    c = a;
    a = b - a;
  }
#pragma omp atomic capture
  {
    a = a / b;
    c = a;
  }
#pragma omp atomic capture
  {
    c = a;
    a = b & a;
  }
#pragma omp atomic capture
  {
    a = a ^ b;
    c = a;
  }
#pragma omp atomic capture
  {
    c = a;
    a = b | a;
  }
#pragma omp atomic capture
  {
    a = a << b;
    c = a;
  }
#pragma omp atomic capture
  {
    c = a;
    a = b >> a;
  }
#pragma omp atomic capture
  {
    c = a;
    a = foo();
  }
#pragma omp atomic capture capture
  b = a /= b;
  return 0;
}
```