user: 下面的汇编指令对应的C源代码是什么:

```asm
<frame_size_valid>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %edi,-0x44(%rbp)
  mov    %esi,-0x48(%rbp)
  mov    %edx,-0x4c(%rbp)
  mov    %ecx,-0x50(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpl   $0x0,-0x44(%rbp)
  jns    L191
  mov    D10(%rip),%rax
  mov    (%rax),%edx
  mov    D7(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L266
L191:
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movq   $0x0,-0x10(%rbp)
  movl   $0x0,-0x34(%rbp)
  jmp    L54
L171:
  mov    -0x30(%rbp),%eax
  cmp    $0x82,%eax
  je     L228
  cmp    $0x82,%eax
  jg     L223
  cmp    $0x80,%eax
  je     L176
  cmp    $0x81,%eax
  jne    L223
  mov    -0x14(%rbp),%eax
  cmp    %eax,-0x4c(%rbp)
  jne    L61
  mov    -0x10(%rbp),%eax
  cmp    %eax,-0x50(%rbp)
  jne    L61
  mov    $0x1,%eax
  jmp    L266
L228:
  mov    -0x2c(%rbp),%eax
  cmp    %eax,-0x4c(%rbp)
  jl     L113
  mov    -0x28(%rbp),%eax
  cmp    %eax,-0x4c(%rbp)
  jg     L113
  mov    -0x24(%rbp),%eax
  cmp    %eax,-0x50(%rbp)
  jl     L113
  mov    -0x20(%rbp),%eax
  cmp    %eax,-0x50(%rbp)
  jg     L113
  mov    $0x1,%eax
  jmp    L266
L176:
  mov    -0x2c(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x38(%rbp)
  jmp    L159
L48:
  mov    -0x3c(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jne    L247
  mov    -0x38(%rbp),%eax
  cmp    -0x50(%rbp),%eax
  jne    L247
  mov    $0x1,%eax
  jmp    L266
L247:
  mov    -0x1c(%rbp),%eax
  add    %eax,-0x3c(%rbp)
  mov    -0x18(%rbp),%eax
  add    %eax,-0x38(%rbp)
L159:
  mov    -0x28(%rbp),%eax
  cmp    %eax,-0x3c(%rbp)
  jg     L102
  mov    -0x20(%rbp),%eax
  cmp    %eax,-0x38(%rbp)
  jle    L48
  jmp    L102
L223:
  mov    $0x0,%eax
  jmp    L266
L61:
  nop
  jmp    L154
L113:
  nop
  jmp    L154
L102:
  nop
L154:
  addl   $0x1,-0x34(%rbp)
L54:
  lea    -0x30(%rbp),%rcx
  mov    -0x34(%rbp),%edx
  mov    -0x48(%rbp),%esi
  mov    -0x44(%rbp),%eax
  mov    %eax,%edi
  call   <get_nth_frame_size@plt>
  cmp    $0xffffffff,%eax
  jne    L171
  mov    $0x0,%eax
L266:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L33
  call   <__stack_chk_fail@plt>
L33:
  leave
  ret
```

assistant: ```c
int frame_size_valid(int fd, uint32_t pixel_format, int width, int height) {
  if (fd < 0) {
    errno = EINVAL;
    return -1;
  }
  struct v4l2_frmsizeenum fsze = {0};
  int cur_width, cur_height;
  for (int i = 0; - 1 != get_nth_frame_size(fd, pixel_format, i, &fsze); i++) {
    switch (fsze.type) {
    case V4L2_FRMSIZE_TYPE_DISCRETE:
      if (width == fsze.discrete.width && height == fsze.discrete.height) {
        return 1;
      }
      break;
    case V4L2_FRMSIZE_TYPE_CONTINUOUS:
      if ((fsze.stepwise.min_width <= width) && (width <= fsze.stepwise.max_width) && (fsze.stepwise.min_height <= height) && (height <= fsze.stepwise.max_height)) {
        return 1;
      }
      break;
    case V4L2_FRMSIZE_TYPE_STEPWISE:
      cur_width = fsze.stepwise.min_width;
      cur_height = fsze.stepwise.min_height;
      while ((cur_width <= fsze.stepwise.max_width) && (cur_height <= fsze.stepwise.max_height)) {
        if (cur_width == width && cur_height == height) {
          return 1;
        }
        cur_width += fsze.stepwise.step_width;
        cur_height += fsze.stepwise.step_height;
      }
      break;
    default:
      return 0;
    }
  }
  return 0;
}
```