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

```asm
<_ZNKSt6vectorIPiSaIS0_EE12_M_check_lenEmPKc>:
  endbr64
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x20,%rsp
  mov    %rdi,%rbp
  mov    %rdx,%r12
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  mov    %rsi,0x8(%rsp)
  call   <_ZNKSt6vectorIPiSaIS0_EE8max_sizeEv@plt>
  mov    %rax,%rbx
  mov    %rbp,%rdi
  call   <_ZNKSt6vectorIPiSaIS0_EE4sizeEv@plt>
  sub    %rax,%rbx
  cmp    0x8(%rsp),%rbx
  jb     L27
L36:
  mov    %rbp,%rdi
  call   <_ZNKSt6vectorIPiSaIS0_EE4sizeEv@plt>
  mov    %rax,%rbx
  mov    %rbp,%rdi
  call   <_ZNKSt6vectorIPiSaIS0_EE4sizeEv@plt>
  mov    %rax,0x10(%rsp)
  lea    0x8(%rsp),%rsi
  lea    0x10(%rsp),%rdi
  call   <_ZSt3maxImERKT_S2_S2_@plt>
  add    (%rax),%rbx
  mov    %rbp,%rdi
  call   <_ZNKSt6vectorIPiSaIS0_EE4sizeEv@plt>
  cmp    %rax,%rbx
  jae    L39
L52:
  mov    %rbp,%rdi
  call   <_ZNKSt6vectorIPiSaIS0_EE8max_sizeEv@plt>
  mov    %rax,%rbx
L5:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L25
  mov    %rbx,%rax
  add    $0x20,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L27:
  mov    %r12,%rdi
  call   <_ZSt20__throw_length_errorPKc@plt>
  jmp    L36
L39:
  mov    %rbp,%rdi
  call   <_ZNKSt6vectorIPiSaIS0_EE8max_sizeEv@plt>
  cmp    %rax,%rbx
  jbe    L5
  jmp    L52
L25:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
unsigned long long _ZNKSt6vectorIPiSaIS0_EE12_M_check_lenEmPKc(struct l_class_OC_std_KD__KD_vector *llvm_cbe_this, unsigned long long llvm_cbe___n, unsigned char *llvm_cbe___s) {
  unsigned long long llvm_cbe_retval;
  struct l_class_OC_std_KD__KD_vector *llvm_cbe_this_2e_addr;
  unsigned long long llvm_cbe___n_2e_addr;
  unsigned char *llvm_cbe___s_2e_addr;
  unsigned long long llvm_cbe___len;
  unsigned long long llvm_cbe_reftmp;
  struct l_class_OC_std_KD__KD_vector *llvm_cbe_this1;
  unsigned long long llvm_cbe_call;
  unsigned long long llvm_cbe_call2;
  unsigned long long llvm_cbe_tmp;
  unsigned char *llvm_cbe_tmp3;
  unsigned long long llvm_cbe_call5;
  unsigned long long llvm_cbe_call6;
  unsigned long long *llvm_cbe_call7;
  unsigned long long llvm_cbe_tmp8;
  unsigned long long llvm_cbe_tmp9;
  unsigned long long llvm_cbe_call10;
  unsigned long long llvm_cbe_tmp12;
  unsigned long long llvm_cbe_call13;
  unsigned long long llvm_cbe_call15;
  unsigned long long llvm_cbe_tmp16;
  unsigned long long llvm_cbe_cond;
  unsigned long long llvm_cbe_cond__PHI_TEMPORARY;
  unsigned long long llvm_cbe_tmp__27;
  *(&llvm_cbe_this_2e_addr) = llvm_cbe_this;
  *(&llvm_cbe___n_2e_addr) = llvm_cbe___n;
  *(&llvm_cbe___s_2e_addr) = llvm_cbe___s;
  llvm_cbe_this1 = *(&llvm_cbe_this_2e_addr);
  llvm_cbe_call = _ZNKSt6vectorIPiSaIS0_EE8max_sizeEv(llvm_cbe_this1);
  llvm_cbe_call2 = _ZNKSt6vectorIPiSaIS0_EE4sizeEv(llvm_cbe_this1);
  llvm_cbe_tmp = *(&llvm_cbe___n_2e_addr);
  if ((((unsigned long long)(((unsigned long long)(((unsigned long long)llvm_cbe_call) - ((unsigned long long)llvm_cbe_call2))))) < ((unsigned long long)llvm_cbe_tmp))) {
    goto llvm_cbe_if_2e_then;
  } else {
    goto llvm_cbe_if_2e_end;
  }
llvm_cbe_if_2e_then:
  llvm_cbe_tmp3 = *(&llvm_cbe___s_2e_addr);
  _ZSt20__throw_length_errorPKc(llvm_cbe_tmp3);
  ;
llvm_cbe_if_2e_end:
  llvm_cbe_call5 = _ZNKSt6vectorIPiSaIS0_EE4sizeEv(llvm_cbe_this1);
  llvm_cbe_call6 = _ZNKSt6vectorIPiSaIS0_EE4sizeEv(llvm_cbe_this1);
  *(&llvm_cbe_reftmp) = llvm_cbe_call6;
  llvm_cbe_call7 = _ZSt3maxImERKT_S2_S2_((&llvm_cbe_reftmp), (&llvm_cbe___n_2e_addr));
  llvm_cbe_tmp8 = *llvm_cbe_call7;
  *(&llvm_cbe___len) = (((unsigned long long)(((unsigned long long)llvm_cbe_call5) + ((unsigned long long)llvm_cbe_tmp8))));
  llvm_cbe_tmp9 = *(&llvm_cbe___len);
  llvm_cbe_call10 = _ZNKSt6vectorIPiSaIS0_EE4sizeEv(llvm_cbe_this1);
  if ((((unsigned long long)llvm_cbe_tmp9) < ((unsigned long long)llvm_cbe_call10))) {
    goto llvm_cbe_cond_2e_true;
  } else {
    goto llvm_cbe_lor_2e_lhs_2e_false;
  }
llvm_cbe_lor_2e_lhs_2e_false:
  llvm_cbe_tmp12 = *(&llvm_cbe___len);
  llvm_cbe_call13 = _ZNKSt6vectorIPiSaIS0_EE8max_sizeEv(llvm_cbe_this1);
  if ((((unsigned long long)llvm_cbe_tmp12) > ((unsigned long long)llvm_cbe_call13))) {
    goto llvm_cbe_cond_2e_true;
  } else {
    goto llvm_cbe_cond_2e_false;
  }
llvm_cbe_cond_2e_true:
  llvm_cbe_call15 = _ZNKSt6vectorIPiSaIS0_EE8max_sizeEv(llvm_cbe_this1);
  llvm_cbe_cond__PHI_TEMPORARY = llvm_cbe_call15;
  goto llvm_cbe_cond_2e_end;
llvm_cbe_cond_2e_false:
  llvm_cbe_tmp16 = *(&llvm_cbe___len);
  llvm_cbe_cond__PHI_TEMPORARY = llvm_cbe_tmp16;
  goto llvm_cbe_cond_2e_end;
llvm_cbe_cond_2e_end:
  llvm_cbe_cond = llvm_cbe_cond__PHI_TEMPORARY;
  *(&llvm_cbe_retval) = llvm_cbe_cond;
  llvm_cbe_tmp__27 = *(&llvm_cbe_retval);
  return llvm_cbe_tmp__27;
}
```