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

```asm
<funcUpdateInvalidPort>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0xa8,%rsp
  mov    %rdi,-0x88(%rbp)
  mov    %rsi,-0x90(%rbp)
  mov    %rdx,-0x98(%rbp)
  mov    %rcx,-0xa0(%rbp)
  mov    %r8,-0xa8(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    -0xa8(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x88(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jl     L122
  mov    -0xa8(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x90(%rbp),%rax
  mov    (%rax),%eax
  cmp    %eax,%edx
  jle    L62
L122:
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x90(%rbp),%rax
  mov    (%rax),%edx
  mov    -0x88(%rbp),%rax
  mov    (%rax),%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x78(%rbp)
  lea    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <funcLenInt@plt>
  mov    %eax,-0x68(%rbp)
  mov    -0x68(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x58(%rbp)
  movslq %eax,%rdx
  mov    %rdx,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L107:
  cmp    %rdx,%rsp
  je     L45
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L107
L45:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L50
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L50:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x50(%rbp)
  mov    -0x68(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x70(%rbp)
  jmp    L18
L101:
  mov    -0x78(%rbp),%ecx
  movslq %ecx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x2,%eax
  mov    %ecx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  sub    %eax,%ecx
  mov    %ecx,%edx
  mov    -0x50(%rbp),%rax
  mov    -0x70(%rbp),%ecx
  movslq %ecx,%rcx
  mov    %edx,(%rax,%rcx,4)
  subl   $0x1,-0x70(%rbp)
  mov    -0x78(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x78(%rbp)
L18:
  cmpl   $0x0,-0x70(%rbp)
  jns    L101
  movl   $0x0,-0x6c(%rbp)
  movl   $0x0,-0x70(%rbp)
  jmp    L16
L98:
  mov    %rsp,%rax
  mov    %rax,%r12
  mov    -0x50(%rbp),%rax
  mov    -0x70(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  add    $0x1,%eax
  mov    %eax,-0x64(%rbp)
  movl   $0x1,-0x60(%rbp)
  mov    -0x60(%rbp),%eax
  add    $0x1,%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  cltq
  mov    $0x10,%edx
  sub    $0x1,%rdx
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L106:
  cmp    %rdx,%rsp
  je     L126
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L106
L126:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L87
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L87:
  mov    %rsp,%rax
  add    $0x0,%rax
  mov    %rax,-0x40(%rbp)
  mov    -0x60(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <bzero@plt>
  mov    -0x98(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    -0xa0(%rbp),%rax
  mov    (%rax),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x98(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x40(%rbp),%rax
  mov    $0x1,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncpy@plt>
  mov    -0x40(%rbp),%rdx
  mov    -0x60(%rbp),%eax
  cltq
  movb   $0x0,(%rdx,%rax,1)
  movl   $0x0,-0x74(%rbp)
  lea    -0x74(%rbp),%rdx
  mov    -0x40(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <funcHex2Int@plt>
  mov    -0x74(%rbp),%eax
  test   %eax,%eax
  jns    L32
  mov    -0x74(%rbp),%eax
  mov    %r12,%rsp
  mov    %rbx,%rsp
  jmp    L108
L32:
  mov    -0x60(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x40(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <bzero@plt>
  mov    -0x74(%rbp),%eax
  cltd
  idivl  -0x64(%rbp)
  mov    %edx,-0x5c(%rbp)
  mov    -0x6c(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  mov    %eax,%edx
  mov    -0x5c(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x6c(%rbp)
  mov    -0xa0(%rbp),%rax
  mov    (%rax),%eax
  sub    -0x60(%rbp),%eax
  mov    %eax,%edx
  mov    -0xa0(%rbp),%rax
  mov    %edx,(%rax)
  mov    %r12,%rsp
  addl   $0x1,-0x70(%rbp)
L16:
  mov    -0x70(%rbp),%eax
  cmp    -0x68(%rbp),%eax
  jl     L98
  mov    -0x88(%rbp),%rax
  mov    (%rax),%eax
  add    %eax,-0x6c(%rbp)
  mov    -0xa8(%rbp),%rax
  mov    -0x6c(%rbp),%edx
  mov    %edx,(%rax)
  mov    %rbx,%rsp
L62:
  mov    $0x0,%eax
L108:
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L109
  call   <__stack_chk_fail@plt>
L109:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

assistant: ```c
int funcUpdateInvalidPort(const int *piPortMin, const int *piPortMax, const char *pcHashOOR, int *piInitHashPos, int *piPort) {
  if ((*piPort < *piPortMin) || (*piPort > *piPortMax)) {
    int iPortDiff = *piPortMax - *piPortMin;
    int iLenPortDiff = funcLenInt(&iPortDiff);
    int iI;
    int iaPortDiff[iLenPortDiff];
    for (iI = (iLenPortDiff - 1); iI >= 0; iI--, iPortDiff /= 10) {
      iaPortDiff[iI] = iPortDiff % 10;
    }
    int iPort = 0;
    for (iI = 0; iI < iLenPortDiff; iI++) {
      int iDiffVal = iaPortDiff[iI] + 1;
      int iLenOffset = 1;
      char cOffset[iLenOffset + 1];
      bzero(cOffset, iLenOffset + 1);
      strncpy(cOffset, pcHashOOR + (strlen(pcHashOOR) + *piInitHashPos), 1);
      cOffset[iLenOffset] = '\0';
      int iOffset = 0;
      funcHex2Int(cOffset, &iOffset);
      if (iOffset < 0)
        return iOffset;
      bzero(cOffset, iLenOffset + 1);
      int iMod = iOffset % iDiffVal;
      iPort = (10 * iPort) + iMod;
      *piInitHashPos -= iLenOffset;
    }
    iPort += *piPortMin;
    *piPort = iPort;
  }
  return 0;
}
```