user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %r15
  mov    $0x190,%edx
  xor    %esi,%esi
  push   %r14
  lea    D6(%rip),%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1e8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x1d8(%rsp)
  xor    %eax,%eax
  lea    0x40(%rsp),%rbx
  mov    %rbx,%rdi
  call   <memset@plt>
  lea    0xc(%rsp),%rsi
  mov    %r14,%rdi
  movl   $0x1,0x40(%rsp)
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  test   %eax,%eax
  jle    L15
  mov    $0x1,%r13d
  xor    %ebp,%ebp
  lea    0x10(%rsp),%r15
  nopl   0x0(%rax)
L98:
  lea    (%r15,%r13,4),%rsi
  mov    %r14,%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  add    (%r15,%r13,4),%ebp
  add    $0x1,%r13
  mov    %ebp,%r12d
  cmp    %r13d,%eax
  jge    L98
  test   %eax,%eax
  jle    L10
  sub    $0x1,%eax
  lea    0x14(%rsp),%rsi
  lea    0x18(%rsp,%rax,4),%rdi
  nopl   0x0(%rax)
L93:
  movslq %r12d,%rax
  test   %r12d,%r12d
  js     L9
  nopl   0x0(%rax,%rax,1)
L60:
  mov    (%rbx,%rax,4),%ecx
  test   %ecx,%ecx
  je     L120
  mov    (%rsi),%edx
  add    %eax,%edx
  movslq %edx,%rdx
  add    %ecx,0x40(%rsp,%rdx,4)
L120:
  sub    $0x1,%rax
  test   %eax,%eax
  jns    L60
L9:
  add    $0x4,%rsi
  cmp    %rdi,%rsi
  jne    L93
L10:
  test   %r12d,%r12d
  js     L38
  xor    %r13d,%r13d
  lea    D0(%rip),%r14
  cs nopw 0x0(%rax,%rax,1)
L65:
  mov    (%rbx,%r13,4),%edx
  mov    %r13d,%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  add    $0x1,%r13
  call   <printf@plt>
  cmp    %r13d,%r12d
  jge    L65
L4:
  movslq %ebp,%rbp
  xor    %esi,%esi
  lea    0x44(%rsp,%rbp,4),%rdx
  nopl   0x0(%rax)
L11:
  mov    (%rbx),%eax
  cmp    %eax,%esi
  cmovl  %eax,%esi
  add    $0x4,%rbx
  cmp    %rdx,%rbx
  jne    L11
L73:
  xor    %eax,%eax
  lea    D35(%rip),%rdi
  call   <printf@plt>
  mov    0x1d8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L123
  add    $0x1e8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L15:
  mov    0x40(%rsp),%edx
  xor    %esi,%esi
  lea    D0(%rip),%rdi
  xor    %eax,%eax
  xor    %ebp,%ebp
  call   <printf@plt>
  jmp    L4
L38:
  xor    %esi,%esi
  jmp    L73
L123:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D6
type: string
name: parse_data
arguments: label: D0
type: string
name: parse_data
arguments: label: D35
type: string

tool: D6: %d

tool: D0: coinChange[%d] = %d


tool: D35: Max Way to Give Money = %d


assistant: ```c
int main() {
  int i, j;
  int coinNumber;
  int coinNumberStore[10];
  int highestGivingTotal = 0;
  int coinChange[100];
  memset(coinChange, 0, sizeof(coinChange));
  coinChange[0] = 1;
  scanf("%d", &coinNumber);
  for (i = 1; i <= coinNumber; i++) {
    scanf("%d", &coinNumberStore[i]);
    highestGivingTotal += coinNumberStore[i];
  }
  for (i = 1; i <= coinNumber; i++) {
    for (j = highestGivingTotal; j >= 0; j--) {
      if (coinChange[j] != 0) {
        coinChange[j + coinNumberStore[i]] = coinChange[j] + coinChange[j + coinNumberStore[i]];
      }
    }
  }
  for (j = 0; j <= highestGivingTotal; j++) {
    printf("coinChange[%d] = %d\n", j, coinChange[j]);
  }
  int MaxWayToGiveMoney = 0;
  for (j = 0; j <= highestGivingTotal; j++) {
    if (coinChange[j] >= MaxWayToGiveMoney)
      MaxWayToGiveMoney = coinChange[j];
  }
  printf("Max Way to Give Money = %d\n", MaxWayToGiveMoney);
  return 0;
}
```