user: 提供的汇编代码用C语言表示会是什么样子:

```asm
<RepadBitmap>:
  endbr64
  push   %r15
  mov    %ecx,%eax
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    %rsi,%rdi
  sub    $0x38,%rsp
  mov    %r9d,0x18(%rsp)
  cmp    $0x4,%edx
  je     L194
  ja     L51
  cmp    $0x1,%edx
  je     L176
  cmp    $0x2,%edx
  jne    L99
  lea    0xf(%r8),%edx
  sar    $0x4,%edx
  add    %edx,%edx
L241:
  cmp    $0x4,%eax
  je     L168
L306:
  ja     L338
  cmp    $0x1,%eax
  je     L356
  cmp    $0x2,%eax
  jne    L99
  lea    0xf(%r8),%ecx
  sar    $0x4,%ecx
  lea    (%rcx,%rcx,1),%r12d
L184:
  mov    0x18(%rsp),%eax
  cmp    %r12d,%edx
  mov    %r12d,%r13d
  cmovle %edx,%r13d
  test   %eax,%eax
  jle    L89
  sub    %r13d,%edx
  lea    -0x1(%r13),%r15d
  xor    %ebp,%ebp
  movslq %edx,%rax
  mov    %rax,0x10(%rsp)
  mov    %r13d,%eax
  shr    $0x4,%eax
  lea    -0x1(%rax),%r14d
  mov    %r13d,%eax
  and    $0xfffffff0,%eax
  add    $0x1,%r14
  mov    %eax,%esi
  shl    $0x4,%r14
  mov    %eax,0x1c(%rsp)
  mov    %rsi,0x20(%rsp)
  mov    %r13d,%esi
  sub    %eax,%esi
  lea    -0x1(%rsi),%eax
  mov    %esi,0x28(%rsp)
  mov    %eax,0x2c(%rsp)
  mov    %r14,%rax
  mov    %r13d,%r14d
  mov    %r12d,%r13d
  mov    %rax,%r12
  nopl   0x0(%rax,%rax,1)
L136:
  xor    %eax,%eax
  test   %r14d,%r14d
  jle    L5
  lea    0x1(%rbx),%rdx
  mov    %rdi,%rax
  sub    %rdx,%rax
  cmp    $0xe,%rax
  jbe    L26
  cmp    $0x6,%r15d
  jbe    L26
  cmp    $0xe,%r15d
  jbe    L289
  xor    %eax,%eax
  nopl   (%rax)
L160:
  movdqu (%rbx,%rax,1),%xmm0
  movups %xmm0,(%rdi,%rax,1)
  add    $0x10,%rax
  cmp    %r12,%rax
  jne    L160
  mov    0x20(%rsp),%rax
  mov    0x1c(%rsp),%ecx
  lea    (%rbx,%rax,1),%r9
  lea    (%rdi,%rax,1),%rsi
  mov    %r15d,%eax
  cmp    %ecx,%r14d
  je     L291
  cmpl   $0x6,0x2c(%rsp)
  mov    0x28(%rsp),%r11d
  jbe    L145
  mov    %ecx,%eax
  mov    %ecx,%edx
L327:
  mov    (%rbx,%rax,1),%r10
  mov    %r10,(%rdi,%rax,1)
  mov    %r11d,%r10d
  and    $0xfffffff8,%r10d
  mov    %r10d,%eax
  add    %r10d,%edx
  add    %rax,%r9
  add    %rax,%rsi
  mov    %r15d,%eax
  cmp    %r10d,%r11d
  je     L291
L193:
  movzbl (%r9),%eax
  lea    0x1(%rdx),%r10d
  mov    %al,(%rsi)
  mov    %r15d,%eax
  cmp    %r10d,%r14d
  jle    L291
  movzbl 0x1(%r9),%r10d
  mov    %r10b,0x1(%rsi)
  lea    0x2(%rdx),%r10d
  cmp    %r10d,%r14d
  jle    L291
  movzbl 0x2(%r9),%r10d
  mov    %r10b,0x2(%rsi)
  lea    0x3(%rdx),%r10d
  cmp    %r10d,%r14d
  jle    L291
  movzbl 0x3(%r9),%r10d
  mov    %r10b,0x3(%rsi)
  lea    0x4(%rdx),%r10d
  cmp    %r10d,%r14d
  jle    L291
  movzbl 0x4(%r9),%r10d
  mov    %r10b,0x4(%rsi)
  lea    0x5(%rdx),%r10d
  cmp    %r10d,%r14d
  jle    L291
  movzbl 0x5(%r9),%r10d
  add    $0x6,%edx
  mov    %r10b,0x5(%rsi)
  cmp    %edx,%r14d
  jle    L291
  movzbl 0x6(%r9),%edx
  mov    %dl,0x6(%rsi)
L291:
  add    $0x1,%rax
  add    %rax,%rbx
  add    %rax,%rdi
  mov    %r14d,%eax
L5:
  cmp    %eax,%r13d
  jle    L109
  lea    -0x1(%r13),%edx
  xor    %esi,%esi
  sub    %eax,%edx
  add    $0x1,%rdx
  mov    %rdx,0x8(%rsp)
  call   <memset@plt>
  mov    0x8(%rsp),%rdx
  mov    %rax,%rdi
  add    %rdx,%rdi
L109:
  add    0x10(%rsp),%rbx
  add    $0x1,%ebp
  cmp    %ebp,0x18(%rsp)
  jne    L136
  mov    %r13d,%r12d
L89:
  mov    0x18(%rsp),%eax
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  imul   %r12d,%eax
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L338:
  cmp    $0x8,%eax
  jne    L99
  lea    0x3f(%r8),%ecx
  sar    $0x6,%ecx
  lea    0x0(,%rcx,8),%r12d
  jmp    L184
L51:
  cmp    $0x8,%edx
  jne    L99
  lea    0x3f(%r8),%edx
  sar    $0x6,%edx
  shl    $0x3,%edx
  cmp    $0x4,%eax
  jne    L306
L168:
  lea    0x1f(%r8),%ecx
  sar    $0x5,%ecx
  lea    0x0(,%rcx,4),%r12d
  jmp    L184
  nopl   (%rax)
L26:
  mov    %r15d,%eax
  xor    %edx,%edx
  nopl   (%rax)
L214:
  movzbl (%rbx,%rdx,1),%ecx
  mov    %cl,(%rdi,%rdx,1)
  mov    %rdx,%rcx
  add    $0x1,%rdx
  cmp    %rax,%rcx
  jne    L214
  jmp    L291
  nopl   0x0(%rax,%rax,1)
L99:
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L289:
  mov    %r14d,%r11d
  mov    %rdi,%rsi
  mov    %rbx,%r9
  xor    %eax,%eax
  xor    %edx,%edx
  jmp    L327
L145:
  mov    %ecx,%edx
  jmp    L193
L176:
  lea    0x7(%r8),%edx
  sar    $0x3,%edx
  jmp    L241
L194:
  lea    0x1f(%r8),%edx
  sar    $0x5,%edx
  shl    $0x2,%edx
  jmp    L241
L356:
  lea    0x7(%r8),%ecx
  sar    $0x3,%ecx
  mov    %ecx,%r12d
  jmp    L184
```

assistant: ```c
int RepadBitmap(char *pSrc, char *pDst, unsigned int srcPad, unsigned int dstPad, int width, int height) {
  int srcWidthBytes, dstWidthBytes;
  int row, col;
  char *pTmpSrc, *pTmpDst;
  switch (srcPad) {
  case 1:
    srcWidthBytes = (width + 7) >> 3;
    break;
  case 2:
    srcWidthBytes = ((width + 15) >> 4) << 1;
    break;
  case 4:
    srcWidthBytes = ((width + 31) >> 5) << 2;
    break;
  case 8:
    srcWidthBytes = ((width + 63) >> 6) << 3;
    break;
  default:
    return 0;
  }
  switch (dstPad) {
  case 1:
    dstWidthBytes = (width + 7) >> 3;
    break;
  case 2:
    dstWidthBytes = ((width + 15) >> 4) << 1;
    break;
  case 4:
    dstWidthBytes = ((width + 31) >> 5) << 2;
    break;
  case 8:
    dstWidthBytes = ((width + 63) >> 6) << 3;
    break;
  default:
    return 0;
  }
  width = srcWidthBytes;
  if (width > dstWidthBytes)
    width = dstWidthBytes;
  pTmpSrc = pSrc;
  pTmpDst = pDst;
  for (row = 0; row < height; row++) {
    for (col = 0; col < width; col++)
      *pTmpDst++ = *pTmpSrc++;
    while (col < dstWidthBytes) {
      *pTmpDst++ = '\0';
      col++;
    }
    pTmpSrc += srcWidthBytes - width;
  }
  return dstWidthBytes * height;
}
```