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

```asm
<append_uint32>:
  endbr64
  mov    %rdi,%rcx
  test   %esi,%esi
  je     L3
  cmp    $0x63,%esi
  jle    L68
  cmp    $0x270f,%esi
  jle    L60
  cmp    $0xf423f,%esi
  jle    L155
  cmp    $0x5f5e0ff,%esi
  jle    L46
  movslq %esi,%rdx
  mov    %esi,%edi
  imul   $0x44b82fa1,%rdx,%rax
  sar    $0x1f,%edi
  sar    $0x3c,%rax
  sub    %edi,%eax
  je     L6
  lea    0x30(%rax),%r8d
  lea    0x2(%rcx),%rdi
  imul   $0xc4653600,%eax,%eax
  add    %esi,%eax
  movslq %eax,%rdx
  mov    %eax,%esi
  imul   $0x55e63b89,%rdx,%rdx
  sar    $0x1f,%esi
  sar    $0x39,%rdx
  sub    %esi,%edx
  lea    0x30(%rdx),%esi
  imul   $0x5f5e100,%edx,%edx
  mov    %sil,0x1(%rcx)
  sub    %edx,%eax
L88:
  movslq %eax,%rdx
  mov    %eax,%esi
  mov    %r8b,(%rcx)
  lea    0x1(%rdi),%rcx
  imul   $0x6b5fca6b,%rdx,%rdx
  sar    $0x1f,%esi
  sar    $0x36,%rdx
  sub    %esi,%edx
  lea    0x30(%rdx),%esi
  imul   $0x989680,%edx,%edx
  mov    %sil,(%rdi)
  sub    %edx,%eax
L47:
  movslq %eax,%rdx
  mov    %eax,%esi
  lea    0x1(%rcx),%rdi
  imul   $0x431bde83,%rdx,%rdx
  sar    $0x1f,%esi
  sar    $0x32,%rdx
  sub    %esi,%edx
  lea    0x30(%rdx),%esi
  imul   $0xf4240,%edx,%edx
  mov    %sil,(%rcx)
  sub    %edx,%eax
L126:
  movslq %eax,%rdx
  mov    %eax,%esi
  lea    0x1(%rdi),%rcx
  imul   $0x14f8b589,%rdx,%rdx
  sar    $0x1f,%esi
  sar    $0x2d,%rdx
  sub    %esi,%edx
  lea    0x30(%rdx),%esi
  imul   $0x186a0,%edx,%edx
  mov    %sil,(%rdi)
  sub    %edx,%eax
L58:
  movslq %eax,%rdx
  mov    %eax,%esi
  lea    0x1(%rcx),%rdi
  imul   $0x68db8bad,%rdx,%rdx
  sar    $0x1f,%esi
  sar    $0x2c,%rdx
  sub    %esi,%edx
  lea    0x30(%rdx),%esi
  imul   $0x2710,%edx,%edx
  mov    %sil,(%rcx)
  sub    %edx,%eax
L79:
  movslq %eax,%rdx
  mov    %eax,%esi
  lea    0x1(%rdi),%rcx
  imul   $0x10624dd3,%rdx,%rdx
  sar    $0x1f,%esi
  sar    $0x26,%rdx
  sub    %esi,%edx
  lea    0x30(%rdx),%esi
  imul   $0x3e8,%edx,%edx
  mov    %sil,(%rdi)
  sub    %edx,%eax
L174:
  movslq %eax,%rdx
  mov    %eax,%esi
  lea    0x1(%rcx),%rdi
  imul   $0x51eb851f,%rdx,%rdx
  sar    $0x1f,%esi
  sar    $0x25,%rdx
  sub    %esi,%edx
  lea    0x30(%rdx),%esi
  imul   $0x64,%edx,%edx
  mov    %sil,(%rcx)
  sub    %edx,%eax
L16:
  movslq %eax,%rdx
  mov    %eax,%esi
  lea    0x1(%rdi),%rcx
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%esi
  sar    $0x22,%rdx
  sub    %esi,%edx
  lea    0x30(%rdx),%esi
  lea    (%rdx,%rdx,4),%edx
  mov    %sil,(%rdi)
  add    %edx,%edx
  sub    %edx,%eax
L139:
  add    $0x30,%eax
  lea    0x1(%rcx),%r8
  mov    %al,(%rcx)
  mov    %r8,%rax
  ret
  nopl   0x0(%rax,%rax,1)
L68:
  movslq %esi,%rax
  mov    %esi,%edx
  lea    0x1(%rdi),%r8
  imul   $0x66666667,%rax,%rax
  sar    $0x1f,%edx
  sar    $0x22,%rax
  sub    %edx,%eax
  jne    L130
  add    $0x30,%esi
  mov    %r8,%rax
  mov    %sil,(%rdi)
  ret
  nopl   (%rax)
L3:
  lea    0x1(%rdi),%r8
  movb   $0x30,(%rdi)
  mov    %r8,%rax
  ret
  nopl   0x0(%rax,%rax,1)
L155:
  movslq %esi,%rax
  mov    %esi,%r8d
  lea    0x1(%rdi),%rdi
  imul   $0x14f8b589,%rax,%rdx
  sar    $0x1f,%r8d
  sar    $0x2d,%rdx
  sub    %r8d,%edx
  je     L164
  lea    0x30(%rdx),%eax
  imul   $0xfffe7960,%edx,%edx
  mov    %al,(%rcx)
  mov    %rdi,%rcx
  lea    (%rdx,%rsi,1),%eax
  jmp    L58
L130:
  lea    0x30(%rax),%edx
  mov    %r8,%rcx
  imul   $0xfffffff6,%eax,%eax
  mov    %dl,(%rdi)
  add    %esi,%eax
  jmp    L139
  nopw   0x0(%rax,%rax,1)
L60:
  movslq %esi,%rdx
  mov    %esi,%r8d
  lea    0x1(%rdi),%rdi
  imul   $0x10624dd3,%rdx,%rax
  sar    $0x1f,%r8d
  sar    $0x26,%rax
  sub    %r8d,%eax
  je     L142
  lea    0x30(%rax),%edx
  imul   $0xfffffc18,%eax,%eax
  mov    %dl,(%rcx)
  mov    %rdi,%rcx
  add    %esi,%eax
  jmp    L174
  nopl   0x0(%rax,%rax,1)
L142:
  imul   $0x51eb851f,%rdx,%rdx
  sar    $0x25,%rdx
  sub    %r8d,%edx
  lea    0x30(%rdx),%eax
  mov    %al,(%rcx)
  imul   $0xffffff9c,%edx,%eax
  add    %esi,%eax
  jmp    L16
  nopl   (%rax)
L46:
  movslq %esi,%rax
  mov    %esi,%r8d
  lea    0x1(%rdi),%rdi
  imul   $0x6b5fca6b,%rax,%rdx
  sar    $0x1f,%r8d
  sar    $0x36,%rdx
  sub    %r8d,%edx
  je     L96
  lea    0x30(%rdx),%eax
  imul   $0xff676980,%edx,%edx
  mov    %al,(%rcx)
  mov    %rdi,%rcx
  lea    (%rdx,%rsi,1),%eax
  jmp    L47
  nopl   0x0(%rax)
L6:
  imul   $0x55e63b89,%rdx,%rdx
  sar    $0x39,%rdx
  sub    %edi,%edx
  lea    0x1(%rcx),%rdi
  imul   $0xfa0a1f00,%edx,%eax
  lea    0x30(%rdx),%r8d
  add    %esi,%eax
  jmp    L88
  nopw   0x0(%rax,%rax,1)
L164:
  imul   $0x68db8bad,%rax,%rax
  sar    $0x2c,%rax
  sub    %r8d,%eax
  lea    0x30(%rax),%edx
  imul   $0xffffd8f0,%eax,%eax
  mov    %dl,(%rcx)
  add    %esi,%eax
  jmp    L79
L96:
  imul   $0x431bde83,%rax,%rax
  sar    $0x32,%rax
  sub    %r8d,%eax
  lea    0x30(%rax),%edx
  imul   $0xfff0bdc0,%eax,%eax
  mov    %dl,(%rcx)
  add    %esi,%eax
  jmp    L126
```

assistant: ```c
unsigned char *append_uint32(unsigned char *cp, uint32_t i) {
  uint32_t j;
  if (i == 0) {
    *cp++ = '0';
    return cp;
  }
  if (i < 100)
    goto b1;
  if (i < 10000)
    goto b3;
  if (i < 1000000)
    goto b5;
  if (i < 100000000)
    goto b7;
  if ((j = i / 1000000000)) {
    *cp++ = j + '0';
    i -= j * 1000000000;
    goto x8;
  }
  if ((j = i / 100000000)) {
    *cp++ = j + '0';
    i -= j * 100000000;
    goto x7;
  }
b7:
  if ((j = i / 10000000)) {
    *cp++ = j + '0';
    i -= j * 10000000;
    goto x6;
  }
  if ((j = i / 1000000)) {
    *cp++ = j + '0', i -= j * 1000000;
    goto x5;
  }
b5:
  if ((j = i / 100000)) {
    *cp++ = j + '0', i -= j * 100000;
    goto x4;
  }
  if ((j = i / 10000)) {
    *cp++ = j + '0', i -= j * 10000;
    goto x3;
  }
b3:
  if ((j = i / 1000)) {
    *cp++ = j + '0', i -= j * 1000;
    goto x2;
  }
  if ((j = i / 100)) {
    *cp++ = j + '0', i -= j * 100;
    goto x1;
  }
b1:
  if ((j = i / 10)) {
    *cp++ = j + '0', i -= j * 10;
    goto x0;
  }
  if (i)
    *cp++ = i + '0';
  return cp;
x8:
  *cp++ = i / 100000000 + '0', i %= 100000000;
x7:
  *cp++ = i / 10000000 + '0', i %= 10000000;
x6:
  *cp++ = i / 1000000 + '0', i %= 1000000;
x5:
  *cp++ = i / 100000 + '0', i %= 100000;
x4:
  *cp++ = i / 10000 + '0', i %= 10000;
x3:
  *cp++ = i / 1000 + '0', i %= 1000;
x2:
  *cp++ = i / 100 + '0', i %= 100;
x1:
  *cp++ = i / 10 + '0', i %= 10;
x0:
  *cp++ = i + '0';
  return cp;
}
```