user: 请将以下的汇编代码转换成C语言代码:

```asm
<rob>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rsi
  cmpl   $0x0,-0x4c(%rbp)
  jne    L84
  mov    $0x0,%eax
  jmp    L149
L84:
  cmpl   $0x1,-0x4c(%rbp)
  jne    L311
  mov    -0x48(%rbp),%rax
  mov    (%rax),%eax
  jmp    L149
L311:
  cmpl   $0x2,-0x4c(%rbp)
  jne    L305
  mov    -0x48(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%edx
  mov    -0x48(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  cmovge %edx,%eax
  jmp    L149
L305:
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x28(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  movslq %eax,%rdx
  mov    %rdx,%rcx
  mov    $0x0,%ebx
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L219:
  cmp    %rdx,%rsp
  je     L335
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L219
L335:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L8
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L8:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x20(%rbp)
  movl   $0x0,-0x38(%rbp)
  mov    -0x38(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
  movl   $0x0,-0x40(%rbp)
  jmp    L5
L83:
  cmpl   $0x0,-0x40(%rbp)
  jne    L110
  mov    -0x48(%rbp),%rax
  mov    (%rax),%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x40(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  movl   $0x1,-0x3c(%rbp)
  jmp    L85
L110:
  cmpl   $0x1,-0x40(%rbp)
  jne    L22
  mov    -0x48(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%edx
  mov    -0x48(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jle    L385
  mov    -0x48(%rbp),%rax
  mov    0x4(%rax),%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x40(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  movl   $0x0,-0x3c(%rbp)
  jmp    L85
L385:
  mov    -0x40(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x40(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  jmp    L85
L22:
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x40(%rbp),%eax
  lea    -0x2(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  add    %ecx,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x40(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  cmp    %eax,-0x2c(%rbp)
  jle    L64
  mov    -0x20(%rbp),%rax
  mov    -0x40(%rbp),%edx
  movslq %edx,%rdx
  mov    -0x2c(%rbp),%ecx
  mov    %ecx,(%rax,%rdx,4)
  mov    -0x4c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x40(%rbp)
  jne    L203
  movl   $0x1,-0x38(%rbp)
L203:
  cmpl   $0x2,-0x40(%rbp)
  jne    L85
  movl   $0x1,-0x3c(%rbp)
  jmp    L85
L64:
  mov    -0x40(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x40(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  mov    -0x4c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x40(%rbp)
  jne    L85
  movl   $0x0,-0x38(%rbp)
L85:
  addl   $0x1,-0x40(%rbp)
L5:
  mov    -0x40(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L83
  cmpl   $0x0,-0x3c(%rbp)
  je     L353
  cmpl   $0x0,-0x38(%rbp)
  jne    L282
L353:
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  jmp    L149
L282:
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    -0x48(%rbp),%rax
  mov    (%rax),%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  shl    $0x2,%rdx
  lea    -0x4(%rdx),%rcx
  mov    -0x48(%rbp),%rdx
  add    %rcx,%rdx
  mov    (%rdx),%edx
  sub    %edx,%eax
  mov    %eax,-0x38(%rbp)
  movl   $0x1,-0x40(%rbp)
  jmp    L44
L304:
  cmpl   $0x1,-0x40(%rbp)
  jne    L90
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x40(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  jmp    L237
L90:
  cmpl   $0x2,-0x40(%rbp)
  jne    L54
  mov    -0x48(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%edx
  mov    -0x48(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  cmovge %edx,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x40(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  jmp    L237
L54:
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x40(%rbp),%eax
  lea    -0x2(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  add    %ecx,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x40(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    -0x2c(%rbp),%eax
  cmp    %eax,%edx
  cmovge %edx,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x40(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
L237:
  addl   $0x1,-0x40(%rbp)
L44:
  mov    -0x40(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L304
  mov    -0x4c(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,-0x34(%rbp)
  movl   $0x0,-0x40(%rbp)
  jmp    L324
L280:
  cmpl   $0x0,-0x40(%rbp)
  jne    L3
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x40(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  jmp    L52
L3:
  cmpl   $0x1,-0x40(%rbp)
  jne    L230
  mov    -0x48(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x48(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  cmovge %edx,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x40(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
  jmp    L52
L230:
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%ecx
  mov    -0x40(%rbp),%eax
  lea    -0x2(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  add    %ecx,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x40(%rbp),%eax
  lea    -0x1(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    -0x2c(%rbp),%eax
  cmp    %eax,%edx
  cmovge %edx,%eax
  mov    %eax,%ecx
  mov    -0x20(%rbp),%rax
  mov    -0x40(%rbp),%edx
  movslq %edx,%rdx
  mov    %ecx,(%rax,%rdx,4)
L52:
  addl   $0x1,-0x40(%rbp)
L324:
  mov    -0x4c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x40(%rbp)
  jl     L280
  mov    -0x4c(%rbp),%eax
  lea    -0x2(%rax),%edx
  mov    -0x20(%rbp),%rax
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x38(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jle    L95
  mov    -0x38(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
L95:
  mov    -0x34(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jle    L213
  mov    -0x34(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
L213:
  mov    -0x30(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jle    L145
  mov    -0x30(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
L145:
  mov    -0x3c(%rbp),%eax
L149:
  mov    %rsi,%rsp
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L293
  call   <__stack_chk_fail@plt>
L293:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
int rob(int *nums, int numsSize) {
  if (!numsSize)
    return (0);
  if (numsSize == 1)
    return (nums[0]);
  if (numsSize == 2)
    return (nums[0] > nums[1] ? nums[0] : nums[1]);
  int money[numsSize];
  int i, first, last, t;
  int r1, r2;
  first = last = 0;
  for (i = 0; i < numsSize; i++) {
    if (i == 0) {
      money[i] = nums[0];
      first = 1;
      continue;
    }
    if (i == 1) {
      if (nums[1] > nums[0]) {
        money[i] = nums[1];
        first = 0;
      } else {
        money[i] = money[i - 1];
      }
      continue;
    }
    t = nums[i] + money[i - 2];
    if (t > money[i - 1]) {
      money[i] = t;
      if (i == (numsSize - 1))
        last = 1;
      if ((i - 2) == 0)
        first = 1;
    } else {
      money[i] = money[i - 1];
      if (i == (numsSize - 1))
        last = 0;
    }
  }
  if (!first || !last)
    return (money[numsSize - 1]);
  first = money[numsSize - 1] - nums[0];
  last = money[numsSize - 1] - nums[numsSize - 1];
  for (i = 1; i < numsSize; i++) {
    if (i == 1) {
      money[i] = nums[i];
      continue;
    }
    if (i == 2) {
      money[i] = nums[2] > nums[1] ? nums[2] : nums[1];
      continue;
    }
    t = nums[i] + money[i - 2];
    money[i] = t > money[i - 1] ? t : money[i - 1];
  }
  r1 = money[numsSize - 1];
  for (i = 0; i < (numsSize - 1); i++) {
    if (i == 0) {
      money[i] = nums[i];
      continue;
    }
    if (i == 1) {
      money[i] = nums[1] > nums[0] ? nums[1] : nums[0];
      continue;
    }
    t = nums[i] + money[i - 2];
    money[i] = t > money[i - 1] ? t : money[i - 1];
  }
  r2 = money[numsSize - 2];
  if (last > first)
    first = last;
  if (r1 > first)
    first = r1;
  if (r2 > first)
    first = r2;
  return (first);
}
```