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

```asm
<TestPutCharIntoArrayEx>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,(%rsp)
  mov    %esi,0xc(%rsp)
  mov    %rdx,%rbx
  mov    %ecx,%r12d
  mov    %r8d,%r14d
  mov    %r9d,0x10(%rsp)
  mov    0x80(%rsp),%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x2f(%rsp),%rdi
  mov    $0x9,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  test   %r12d,%r12d
  setg   %r15b
  test   %rbx,%rbx
  setne  %al
  and    %r15b,%al
  mov    %al,0x17(%rsp)
  jne    L122
  movsbl %r14b,%r14d
  mov    %r14d,%edi
  call   <isprint@plt>
  test   %rax,%rax
  je     L94
  sub    $0x8,%rsp
  push   %r12
  mov    %rbx,%r9
  mov    %r14d,%r8d
  mov    %r14d,%ecx
  mov    0x1c(%rsp),%edx
  mov    0x10(%rsp),%rsi
  lea    D23(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x10,%rsp
  mov    $0x0,%ebp
L22:
  mov    %r14d,%edx
  mov    %r12d,%esi
  mov    %rbp,%rdi
  call   <PutCharIntoArray@plt>
  mov    %eax,%ebx
  mov    0x10(%rsp),%r15d
  mov    %r15d,%edx
  mov    %eax,%esi
  lea    D43(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmp    %r15d,%ebx
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  test   %r15d,%r15d
  jne    L142
  jmp    L2
L122:
  mov    %r12d,%edi
  call   <malloc@plt>
  mov    %rax,%rbp
  mov    %r12d,%edx
  mov    %rbx,%rsi
  mov    %rax,0x18(%rsp)
  mov    %rax,%rdi
  call   <memcpy@plt>
  movsbl %r14b,%r14d
  mov    %r14d,%edi
  call   <isprint@plt>
  test   %rax,%rax
  mov    $0x2e,%r8d
  cmovne %r14d,%r8d
  sub    $0x8,%rsp
  push   %r12
  mov    %rbx,%r9
  mov    %r14d,%ecx
  mov    0x1c(%rsp),%edx
  mov    0x10(%rsp),%rsi
  lea    D23(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x10,%rsp
  cmpq   $0x0,0x18(%rsp)
  setne  %al
  and    %al,%r15b
  mov    %r15b,0x17(%rsp)
  je     L47
  mov    $0x0,%ebx
  lea    D134(%rip),%r15
L62:
  lea    0x2f(%rsp),%rsi
  movsbl 0x0(%rbp,%rbx,1),%edi
  mov    $0x9,%edx
  call   <BinString@plt>
  mov    %rax,%rcx
  movzbl 0x0(%rbp,%rbx,1),%edx
  mov    %ebx,%esi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x1,%rbx
  cmp    %ebx,%r12d
  jg     L62
  mov    %r14d,%edx
  mov    %r12d,%esi
  mov    0x18(%rsp),%rdi
  call   <PutCharIntoArray@plt>
  mov    %eax,%ebx
  mov    0x10(%rsp),%r15d
  mov    %r15d,%edx
  mov    %eax,%esi
  lea    D43(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmp    %r15d,%ebx
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  test   %r15d,%r15d
  je     L87
L161:
  mov    %rbp,%rdi
  call   <free@plt>
L8:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L43
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L47:
  mov    %al,0x17(%rsp)
  jmp    L22
L121:
  add    $0x1,%rbx
  cmp    %ebx,%r12d
  jle    L59
L153:
  lea    0x2f(%rsp),%r14
  movsbl 0x0(%r13,%rbx,1),%edi
  mov    $0x9,%edx
  mov    %r14,%rsi
  call   <BinString@plt>
  mov    %rax,%rcx
  movzbl 0x0(%r13,%rbx,1),%edx
  mov    %ebx,%esi
  lea    D46(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movsbl 0x0(%rbp,%rbx,1),%edi
  mov    $0x9,%edx
  mov    %r14,%rsi
  call   <BinString@plt>
  mov    %rax,%rdx
  movzbl 0x0(%rbp,%rbx,1),%esi
  lea    D128(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movzbl 0x0(%r13,%rbx,1),%eax
  cmp    %al,0x0(%rbp,%rbx,1)
  lea    D131(%rip),%rdi
  lea    D5(%rip),%rax
  cmove  %rax,%rdi
  call   <puts@plt>
  test   %r15d,%r15d
  je     L121
  movzbl 0x0(%r13,%rbx,1),%eax
  cmp    %al,0x0(%rbp,%rbx,1)
  sete   %r15b
  movzbl %r15b,%r15d
  jmp    L121
L35:
  mov    $0x1,%r15d
L59:
  mov    %r15d,%edi
  call   <assert@plt>
L142:
  cmpb   $0x0,0x17(%rsp)
  je     L8
  jmp    L161
L87:
  lea    D112(%rip),%rdi
  call   <puts@plt>
  lea    D29(%rip),%rdi
  call   <puts@plt>
  jmp    L86
L94:
  sub    $0x8,%rsp
  push   %r12
  mov    %rbx,%r9
  mov    $0x2e,%r8d
  mov    %r14d,%ecx
  mov    0x1c(%rsp),%edx
  mov    0x10(%rsp),%rsi
  lea    D23(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %r14d,%edx
  mov    %r12d,%esi
  mov    $0x0,%edi
  call   <PutCharIntoArray@plt>
  mov    %eax,%ebx
  mov    0x20(%rsp),%r14d
  mov    %r14d,%edx
  mov    %eax,%esi
  lea    D43(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmp    %ebx,%r14d
  sete   %dil
  movzbl %dil,%edi
  call   <assert@plt>
  add    $0x10,%rsp
  test   %r14d,%r14d
  jne    L8
  mov    $0x0,%ebp
L2:
  lea    D112(%rip),%rdi
  call   <puts@plt>
  lea    D29(%rip),%rdi
  call   <puts@plt>
  test   %r12d,%r12d
  jle    L35
L86:
  mov    $0x0,%ebx
  mov    $0x1,%r15d
  jmp    L153
L43:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D23
data_type: string
name: unpack_data
arguments: label: D43
data_type: string
name: unpack_data
arguments: label: D134
data_type: string
name: unpack_data
arguments: label: D46
data_type: string
name: unpack_data
arguments: label: D128
data_type: string
name: unpack_data
arguments: label: D131
data_type: string
name: unpack_data
arguments: label: D5
data_type: string
name: unpack_data
arguments: label: D112
data_type: string
name: unpack_data
arguments: label: D29
data_type: string

tool: D23: 
[%s:%d]
Put char (0x%02x) '%c' into array (0x%p) of size (%d): {


tool: D43:   }  == %d : expecting %d


tool: D134:     [%2d]: (0x%02.2x) "%s"


tool: D46:   [%2d]: (0x%02.2x) "%s" == 

tool: D128: (0x%02.2x) "%s" : 

tool: D131: false

tool: D5: true

tool: D112: Compare resulting array to expected result

tool: D29:        expected                       result

assistant: ```c
void TestPutCharIntoArrayEx(const char *fname, const int line, char *srcArray, const int sz, char msg, const int result, char *resArray) {
  char *tmpArray = NULL;
  int rc = 0, idx = 0, cmpRes = 0;
  char buf[9];
  memset(buf, 0, sizeof(char) * 9);
  if (srcArray && (sz > 0)) {
    tmpArray = (char *)malloc(sizeof(char) * sz);
    memcpy(tmpArray, srcArray, sz);
  }
  printf("\n[%s:%d]\nPut char (0x%02x) '%c' into array (0x%p) of size (%d): {\n", fname, line, msg, (isprint(msg) ? msg : '.'), srcArray, sz);
  if (tmpArray && (sz >= 1)) {
    for (idx = 0; idx < sz; ++idx) {
      printf("    [%2d]: (0x%02.2x) \"%s\"\n", idx, (((int)tmpArray[idx]) & 0x000000ff), BinString(tmpArray[idx], buf, 9));
    }
  }
  rc = PutCharIntoArray(tmpArray, sz, msg);
  printf("  }  == %d : expecting %d\n", rc, result);
  assert(rc == result);
  if (result == 0) {
    cmpRes = 1;
    printf("Compare resulting array to expected result\n");
    printf("       expected                       result\n");
    for (idx = 0; idx < sz; ++idx) {
      printf("  [%2d]: (0x%02.2x) \"%s\" == ", idx, (((int)resArray[idx]) & 0x000000ff), BinString(resArray[idx], buf, 9));
      printf("(0x%02.2x) \"%s\" : ", (((int)tmpArray[idx]) & 0x000000ff), BinString(tmpArray[idx], buf, 9));
      printf("%s\n", (tmpArray[idx] == resArray[idx] ? "true" : "false"));
      cmpRes = cmpRes && (tmpArray[idx] == resArray[idx]);
    }
    assert(cmpRes != 0);
  }
  if (tmpArray) {
    free(tmpArray);
    tmpArray = NULL;
  }
}
```