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

```asm
<version_cmp>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%r12
  mov    %rsi,%r13
  mov    $0x3a,%esi
  call   <strchr@plt>
  mov    %rax,%rbx
  mov    $0x3a,%esi
  mov    %r13,%rdi
  call   <strchr@plt>
  mov    %rax,%rbp
  test   %rbx,%rbx
  je     L78
  test   %rax,%rax
  jne    L68
L78:
  test   %rbx,%rbx
  je     L43
  movzbl (%rbx),%r14d
  movb   $0x0,(%rbx)
  lea    D8(%rip),%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <version_subcmp@plt>
L136:
  mov    %r14b,(%rbx)
  lea    0x1(%rbx),%r12
  test   %rbp,%rbp
  je     L107
L92:
  lea    0x1(%rbp),%r13
L107:
  test   %eax,%eax
  je     L155
L8:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L68:
  movzbl (%rbx),%r14d
  movb   $0x0,(%rbx)
  movzbl (%rax),%r15d
  movb   $0x0,(%rax)
  mov    %r13,%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <version_subcmp@plt>
  mov    %r15b,0x0(%rbp)
  jmp    L136
L43:
  mov    $0x0,%eax
  test   %rbp,%rbp
  je     L107
  movzbl 0x0(%rbp),%ebx
  movb   $0x0,0x0(%rbp)
  mov    %r13,%rsi
  lea    D8(%rip),%rdi
  call   <version_subcmp@plt>
  mov    %bl,0x0(%rbp)
  jmp    L92
L75:
  movzbl (%rbx),%r14d
  movb   $0x0,(%rbx)
  movzbl 0x0(%rbp),%r15d
  movb   $0x0,0x0(%rbp)
  mov    %r13,%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <version_subcmp@plt>
  mov    %r15b,0x0(%rbp)
  mov    %r14b,(%rbx)
  lea    0x1(%rbx),%r12
L14:
  lea    0x1(%rbp),%r13
L122:
  test   %eax,%eax
  jne    L8
L155:
  mov    $0x2e,%esi
  mov    %r12,%rdi
  call   <strchr@plt>
  mov    %rax,%rbx
  mov    $0x2e,%esi
  mov    %r13,%rdi
  call   <strchr@plt>
  mov    %rax,%rbp
  test   %rbx,%rbx
  setne  %al
  test   %rbp,%rbp
  setne  %dl
  mov    %rbx,%rcx
  or     %rbp,%rcx
  je     L125
  test   %al,%al
  je     L38
  test   %dl,%dl
  jne    L75
L38:
  test   %rbx,%rbx
  je     L97
  movzbl (%rbx),%ebp
  movb   $0x0,(%rbx)
  lea    D8(%rip),%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <version_subcmp@plt>
  mov    %bpl,(%rbx)
  lea    0x1(%rbx),%r12
  jmp    L122
L97:
  movzbl 0x0(%rbp),%ebx
  movb   $0x0,0x0(%rbp)
  mov    %r13,%rsi
  lea    D8(%rip),%rdi
  mov    $0x0,%eax
  call   <version_subcmp@plt>
  mov    %bl,0x0(%rbp)
  jmp    L14
L125:
  mov    %r12,%rdi
  call   <strlen@plt>
  lea    (%r12,%rax,1),%rbx
  mov    %r13,%rdi
  call   <strlen@plt>
  lea    0x0(%r13,%rax,1),%rbp
  movzbl (%rbx),%r14d
  movb   $0x0,(%rbx)
  movzbl 0x0(%rbp),%r15d
  movb   $0x0,0x0(%rbp)
  mov    %r13,%rsi
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <version_subcmp@plt>
  mov    %r15b,0x0(%rbp)
  mov    %r14b,(%rbx)
  jmp    L8
```

assistant: ```c
int version_cmp(char *a, char *b) {
  char *ap;
  char *bp;
  int r = 0;
  static char nil[1] = {'\0'};
  ap = strchr(a, (':')), bp = strchr(b, (':'));
  if (ap && bp) {
    do {
      char ap__c = *(ap);
      *(ap) = '\0';
      do {
        char bp__c = *(bp);
        *(bp) = '\0';
        r = version_subcmp(a, b);
        *(bp) = bp__c;
      } while (0);
      *(ap) = ap__c;
    } while (0);
  } else if (ap) {
    do {
      char ap__c = *(ap);
      *(ap) = '\0';
      r = version_subcmp(a, nil);
      *(ap) = ap__c;
    } while (0);
  } else if (bp) {
    do {
      char bp__c = *(bp);
      *(bp) = '\0';
      r = version_subcmp(nil, b);
      *(bp) = bp__c;
    } while (0);
  }
  a = ap ? (ap + 1) : a;
  b = bp ? (bp + 1) : b;
  if (r)
    return r;
  while (ap = strchr(a, ('.')), bp = strchr(b, ('.')), (ap || bp)) {
    if (ap && bp) {
      do {
        char ap__c = *(ap);
        *(ap) = '\0';
        do {
          char bp__c = *(bp);
          *(bp) = '\0';
          r = version_subcmp(a, b);
          *(bp) = bp__c;
        } while (0);
        *(ap) = ap__c;
      } while (0);
    } else if (ap) {
      do {
        char ap__c = *(ap);
        *(ap) = '\0';
        r = version_subcmp(a, nil);
        *(ap) = ap__c;
      } while (0);
    } else if (bp) {
      do {
        char bp__c = *(bp);
        *(bp) = '\0';
        r = version_subcmp(nil, b);
        *(bp) = bp__c;
      } while (0);
    }
    a = ap ? (ap + 1) : a;
    b = bp ? (bp + 1) : b;
    if (r)
      return r;
  }
  ap = strchr(a, ('\0')), bp = strchr(b, ('\0'));
  if (ap && bp) {
    do {
      char ap__c = *(ap);
      *(ap) = '\0';
      do {
        char bp__c = *(bp);
        *(bp) = '\0';
        r = version_subcmp(a, b);
        *(bp) = bp__c;
      } while (0);
      *(ap) = ap__c;
    } while (0);
  } else if (ap) {
    do {
      char ap__c = *(ap);
      *(ap) = '\0';
      r = version_subcmp(a, nil);
      *(ap) = ap__c;
    } while (0);
  } else if (bp) {
    do {
      char bp__c = *(bp);
      *(bp) = '\0';
      r = version_subcmp(nil, b);
      *(bp) = bp__c;
    } while (0);
  }
  a = ap ? (ap + 1) : a;
  b = bp ? (bp + 1) : b;
  if (r)
    return r;
  return 0;
}
```