user: 请从给定的汇编指令推导出C源代码：

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    $0x1,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  lea    D23(%rip),%rbx
  sub    $0xf8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xe8(%rsp)
  xor    %eax,%eax
  lea    0x38(%rsp),%rax
  mov    %rax,0x8(%rsp)
  lea    0x30(%rsp),%rax
  mov    %rax,0x18(%rsp)
  lea    0x28(%rsp),%rax
  mov    %rax,0x10(%rsp)
  nopl   0x0(%rax,%rax,1)
L21:
  mov    0x8(%rsp),%rcx
  mov    0x18(%rsp),%rdx
  xor    %eax,%eax
  lea    D27(%rip),%rdi
  mov    0x10(%rsp),%rsi
  call   <scanf@plt>
  test   %rax,%rax
  je     L99
  cmpq   $0x0,0x28(%rsp)
  jne    L115
  mov    0x30(%rsp),%rax
  mov    %rax,%rcx
  or     0x38(%rsp),%rcx
  je     L99
L95:
  xor    %ebp,%ebp
  xor    %r14d,%r14d
  test   %rax,%rax
  jle    L58
  xor    %r15d,%r15d
  lea    0x24(%rsp),%r12
  nop
L43:
  mov    %r12,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x24(%rsp),%eax
  sub    $0x1,%eax
  mov    %eax,0x24(%rsp)
  cmp    %r14,0x38(%rsp)
  jle    L17
  cltq
  mov    0x90(%rsp,%rax,4),%edx
  neg    %edx
  mov    %edx,0x90(%rsp,%rax,4)
  imul   0x40(%rsp,%rax,4),%edx
  movslq %edx,%rdx
  add    %rdx,%r14
  cmp    %r14,%rbp
  cmovl  %r14,%rbp
L17:
  add    $0x1,%r15
  cmp    %r15,0x30(%rsp)
  jg     L43
L58:
  xor    %eax,%eax
  mov    %r13d,%esi
  lea    D4(%rip),%rdi
  call   <printf@plt>
  cmp    %r14,0x38(%rsp)
  jge    L107
  lea    D19(%rip),%rdi
  call   <puts@plt>
L103:
  mov    $0xa,%edi
  add    $0x1,%r13d
  call   <putchar@plt>
  jmp    L21
  nopl   (%rax)
L115:
  jle    L80
  lea    0x40(%rsp),%r14
  xor    %r12d,%r12d
  lea    0x90(%rsp),%rbp
  nopw   0x0(%rax,%rax,1)
L114:
  movl   $0xffffffff,0x0(%rbp,%r12,4)
  mov    %r14,%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  add    $0x1,%r12
  add    $0x4,%r14
  call   <scanf@plt>
  cmp    %r12,0x28(%rsp)
  jg     L114
L80:
  mov    0x30(%rsp),%rax
  jmp    L95
  nop
L107:
  lea    D22(%rip),%rdi
  call   <puts@plt>
  mov    %rbp,%rsi
  lea    D20(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L103
L99:
  mov    0xe8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L37
  add    $0xf8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L37:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D23
type_guessed: string
name: retrieve_data
arguments: data_tag: D27
type_guessed: string
name: retrieve_data
arguments: data_tag: D4
type_guessed: string
name: retrieve_data
arguments: data_tag: D19
type_guessed: string
name: retrieve_data
arguments: data_tag: D22
type_guessed: string
name: retrieve_data
arguments: data_tag: D20
type_guessed: string

tool: D23: %d

tool: D27: %ld %ld %ld

tool: D4: Sequence %d


tool: D19: Fuse was blown.

tool: D22: Fuse was not blown.

tool: D20: Maximal power consumption was %ld amperes.


assistant: ```c
int main() {
  long n, m, c, i, s, Max;
  int t, power[20], on[20], sequence = 0;
  while (scanf("%ld %ld %ld", &n, &m, &c)) {
    if (!n && !m && !c)
      break;
    sequence++;
    for (i = 0; i < n; i++) {
      on[i] = -1;
      scanf("%d", &power[i]);
    }
    for (i = 0, Max = 0, s = 0; i < m; i++) {
      scanf("%d", &t);
      --t;
      if (s < c) {
        on[t] = -on[t];
        s += power[t] * on[t];
        if (s > Max)
          Max = s;
      }
    }
    printf("Sequence %d\n", sequence);
    if (s > c)
      printf("Fuse was blown.\n");
    else {
      printf("Fuse was not blown.\n");
      printf("Maximal power consumption was %ld amperes.\n", Max);
    }
    printf("\n");
  }
  return 0;
}
```