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

```asm
<prog_xormin>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %edi,-0x34(%rbp)
  mov    %esi,-0x38(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x24(%rbp)
  lea    -0x34(%rbp),%rax
  mov    %rax,-0x20(%rbp)
  lea    -0x38(%rbp),%rax
  mov    %rax,-0x18(%rbp)
  lea    -0x24(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%edx
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  xor    %edx,%eax
  and    $0xffffff80,%eax
  mov    %eax,%ecx
  mov    -0x18(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0x7f,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0x7f,%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  or     %ecx,%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x20(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%edx
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  xor    %edx,%eax
  and    $0xffffff80,%eax
  mov    %eax,%ecx
  mov    -0x18(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0x7f,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0x7f,%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  or     %eax,%ecx
  mov    %ecx,%edx
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  mov    %dl,(%rax)
  mov    -0x20(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%edx
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  xor    %edx,%eax
  and    $0xffffff80,%eax
  mov    %eax,%ecx
  mov    -0x18(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0x7f,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0x7f,%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  or     %eax,%ecx
  mov    %ecx,%edx
  mov    -0x10(%rbp),%rax
  add    $0x2,%rax
  mov    %dl,(%rax)
  mov    -0x20(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%edx
  mov    -0x18(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  xor    %edx,%eax
  and    $0xffffff80,%eax
  mov    %eax,%ecx
  mov    -0x18(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0x7f,%eax
  mov    %eax,%edx
  mov    -0x20(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0x7f,%eax
  cmp    %eax,%edx
  cmovle %edx,%eax
  or     %eax,%ecx
  mov    %ecx,%edx
  mov    -0x10(%rbp),%rax
  add    $0x3,%rax
  mov    %dl,(%rax)
  mov    -0x24(%rbp),%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L5
  call   <__stack_chk_fail@plt>
L5:
  leave
  ret
```

assistant: ```c
int prog_xormin(int A, int B) {
  int res = 0;
  unsigned char *a = (unsigned char *)&A;
  unsigned char *b = (unsigned char *)&B;
  unsigned char *c = (unsigned char *)&res;
  c[0] = (((a[0]) & 0x80) ^ ((b[0]) & 0x80)) | ((((a[0]) & 0x7F) < ((b[0]) & 0x7F)) ? ((a[0]) & 0x7F) : ((b[0]) & 0x7F));
  c[1] = (((a[1]) & 0x80) ^ ((b[1]) & 0x80)) | ((((a[1]) & 0x7F) < ((b[1]) & 0x7F)) ? ((a[1]) & 0x7F) : ((b[1]) & 0x7F));
  c[2] = (((a[2]) & 0x80) ^ ((b[2]) & 0x80)) | ((((a[2]) & 0x7F) < ((b[2]) & 0x7F)) ? ((a[2]) & 0x7F) : ((b[2]) & 0x7F));
  c[3] = (((a[3]) & 0x80) ^ ((b[3]) & 0x80)) | ((((a[3]) & 0x7F) < ((b[3]) & 0x7F)) ? ((a[3]) & 0x7F) : ((b[3]) & 0x7F));
  return res;
}
```