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

```asm
<generate>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  lea    D30(%rip),%r13
  push   %r12
  push   %rbp
  mov    %edi,%ebp
  lea    0x0(,%rdx,4),%edi
  push   %rbx
  sub    $0x28,%rsp
  mov    %esi,0x18(%rsp)
  mov    %edx,0x1c(%rsp)
  call   <malloc@plt>
  mov    %ebp,%edi
  mov    %rax,%r12
  call   <random_int@plt>
  lea    D32(%rip),%rdi
  lea    0x1(%rax),%ebx
  mov    %eax,0x14(%rsp)
  xor    %eax,%eax
  mov    %ebx,%esi
  call   <printf@plt>
  movl   $0x0,0xc(%rsp)
  test   %ebx,%ebx
  jle    L25
L69:
  mov    $0x3e8,%esi
  mov    $0x5,%edi
  call   <random_int2@plt>
  mov    0x1c(%rsp),%esi
  mov    0x18(%rsp),%edi
  mov    %eax,%r15d
  call   <random_int2@plt>
  mov    %r15d,%esi
  lea    D32(%rip),%rdi
  mov    %eax,%ebp
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  mov    %ebp,%esi
  lea    D32(%rip),%rdi
  call   <printf@plt>
  test   %ebp,%ebp
  jle    L119
  lea    -0x1(%rbp),%eax
  mov    %r12,%r14
  lea    0x4(%r12,%rax,4),%rbx
  nopl   0x0(%rax)
L113:
  mov    $0x3e8,%esi
  mov    $0x1,%edi
  add    $0x4,%r14
  call   <random_int2@plt>
  mov    %eax,-0x4(%r14)
  cmp    %rbx,%r14
  jne    L113
  nopl   0x0(%rax)
L119:
  mov    %ebp,%edi
  call   <random_int@plt>
  mov    %ebp,%edi
  movslq %eax,%rbx
  call   <random_int@plt>
  cmp    %eax,%ebx
  je     L119
  lea    -0x2(%r15),%edi
  mov    %eax,0x10(%rsp)
  lea    (%r12,%rbx,4),%r14
  call   <random_int@plt>
  movslq 0x10(%rsp),%rdx
  add    $0x1,%eax
  lea    (%r12,%rdx,4),%rbx
  mov    %r15d,%edx
  mov    %eax,(%r14)
  sub    %eax,%edx
  xor    %eax,%eax
  mov    %edx,(%rbx)
  call   <rand@plt>
  test   $0x1,%al
  jne    L3
  mov    (%r14),%eax
  mov    (%rbx),%edx
  mov    %edx,(%r14)
  mov    %eax,(%rbx)
L3:
  mov    (%r14),%eax
  xor    %edi,%edi
  test   %eax,%eax
  setg   %dil
  call   <assert@plt>
  xor    %edi,%edi
  cmpl   $0x3e8,(%r14)
  setle  %dil
  call   <assert@plt>
  mov    (%rbx),%edx
  xor    %edi,%edi
  test   %edx,%edx
  setg   %dil
  call   <assert@plt>
  xor    %edi,%edi
  cmpl   $0x3e8,(%rbx)
  setle  %dil
  call   <assert@plt>
  mov    (%rbx),%eax
  add    (%r14),%eax
  xor    %edi,%edi
  cmp    %r15d,%eax
  movslq %ebp,%rbx
  lea    -0x1(%rbp),%r15d
  sete   %dil
  xor    %r14d,%r14d
  call   <assert@plt>
  test   %ebp,%ebp
  jg     L68
  jmp    L31
  xchg   %ax,%ax
L85:
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x1,%r14
  call   <printf@plt>
  cmp    %r14,%rbx
  je     L31
L68:
  mov    (%r12,%r14,4),%esi
  mov    $0x20,%edx
  cmp    %r14d,%r15d
  jne    L85
  mov    $0xa,%edx
  jmp    L85
  nopl   0x0(%rax,%rax,1)
L31:
  mov    0xc(%rsp),%ecx
  lea    0x1(%rcx),%eax
  cmp    %ecx,0x14(%rsp)
  je     L25
  mov    %eax,0xc(%rsp)
  jmp    L69
  cs nopw 0x0(%rax,%rax,1)
L25:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: unpack_data
arguments: tag: D30
type_infered: string
name: unpack_data
arguments: tag: D32
type_infered: string

tool: D30: %d%c

tool: D32: %d


assistant: ```c
void generate(int max_cases, int min_items, int max_items) {
  int *prices = malloc(max_items * sizeof(*prices));
  int cases = 1 + random_int(max_cases);
  printf("%d\n", cases);
  for (int i = 0; i < cases; i++) {
    int credit = random_int2(5, 1000);
    int num_items = random_int2(min_items, max_items);
    printf("%d\n", credit);
    printf("%d\n", num_items);
    for (int j = 0; j < num_items; j++) {
      prices[j] = random_int2(1, 1000);
    }
    int a = 0;
    int b = 0;
    while (a == b) {
      a = random_int(num_items);
      b = random_int(num_items);
    }
    int middle = random_int(credit - 2 * 1);
    prices[a] = 1 + middle;
    prices[b] = credit - prices[a];
    if (rand() % 2 == 0) {
      int temp = prices[a];
      prices[a] = prices[b];
      prices[b] = temp;
    }
    assert(prices[a] >= 1);
    assert(prices[a] <= 1000);
    assert(prices[b] >= 1);
    assert(prices[b] <= 1000);
    assert(prices[a] + prices[b] == credit);
    for (int j = 0; j < num_items; j++) {
      printf("%d%c", prices[j], (j == num_items - 1) ? '\n' : ' ');
    }
  }
}
```