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

```asm
<tempofilt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x70,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %esi,-0x5c(%rbp)
  mov    %edx,-0x60(%rbp)
  mov    %ecx,-0x64(%rbp)
  mov    %r8d,-0x68(%rbp)
  mov    %r9,-0x70(%rbp)
  mov    -0x60(%rbp),%eax
  imul   -0x64(%rbp),%eax
  mov    %eax,-0x3c(%rbp)
  mov    -0x3c(%rbp),%eax
  cltq
  mov    $0x2,%esi
  mov    %rax,%rdi
  call   <calloc@plt>
  mov    %rax,-0x30(%rbp)
  mov    -0x3c(%rbp),%eax
  cltq
  mov    $0x2,%esi
  mov    %rax,%rdi
  call   <calloc@plt>
  mov    %rax,-0x28(%rbp)
  mov    -0x3c(%rbp),%eax
  cltq
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <calloc@plt>
  mov    %rax,-0x20(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L43
L359:
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movb   $0x1,(%rax)
  addl   $0x1,-0x4c(%rbp)
L43:
  mov    -0x4c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L359
  mov    -0x3c(%rbp),%eax
  cltq
  mov    $0x4,%esi
  mov    %rax,%rdi
  call   <calloc@plt>
  mov    %rax,-0x18(%rbp)
  mov    $0x2,%esi
  mov    $0x1,%edi
  mov    $0x0,%eax
  call   <imatrix@plt>
  cltq
  mov    %rax,-0x10(%rbp)
  mov    -0x5c(%rbp),%eax
  mov    $0x100,%esi
  mov    %eax,%edi
  mov    $0x0,%eax
  call   <imatrix@plt>
  cltq
  mov    %rax,-0x8(%rbp)
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  movl   $0x0,-0x48(%rbp)
  jmp    L195
L194:
  movl   $0x0,-0x4c(%rbp)
  jmp    L441
L24:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x2,%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  addl   $0x1,-0x4c(%rbp)
L441:
  mov    -0x4c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L24
  mov    -0x3c(%rbp),%eax
  cltq
  add    %rax,-0x38(%rbp)
  addl   $0x1,-0x48(%rbp)
L195:
  mov    -0x48(%rbp),%eax
  cmp    -0x5c(%rbp),%eax
  jl     L194
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x38(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L629
L185:
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L231
  addl   $0x1,-0x4c(%rbp)
L629:
  mov    -0x4c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L185
  jmp    L310
L231:
  nop
L310:
  mov    -0x4c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jge    L566
  movl   $0x0,-0x4c(%rbp)
  jmp    L30
L129:
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  lea    (%rdx,%rdx,1),%rcx
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  movzbl %al,%eax
  mov    %ax,(%rdx)
  addl   $0x1,-0x4c(%rbp)
L30:
  mov    -0x4c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L129
  mov    0x18(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%edi
  mov    0x10(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%r9d
  mov    -0x18(%rbp),%r8
  mov    -0x64(%rbp),%ecx
  mov    -0x60(%rbp),%edx
  mov    -0x68(%rbp),%esi
  mov    -0x70(%rbp),%rax
  push   $0x1
  push   -0x20(%rbp)
  push   -0x30(%rbp)
  push   %rdi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <getJ@plt>
  add    $0x20,%rsp
  mov    -0x20(%rbp),%rsi
  mov    -0x64(%rbp),%ecx
  mov    -0x60(%rbp),%edx
  mov    -0x30(%rbp),%rax
  mov    %rsi,%r8
  mov    $0x1,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <removehole@plt>
  mov    -0x10(%rbp),%rax
  mov    (%rax),%rax
  add    $0x4,%rax
  movl   $0x0,(%rax)
  mov    -0x20(%rbp),%rdi
  mov    -0x64(%rbp),%ecx
  mov    -0x60(%rbp),%edx
  mov    -0x18(%rbp),%rsi
  mov    -0x30(%rbp),%rax
  push   -0x10(%rbp)
  push   $0x1
  mov    %rdi,%r9
  mov    %ecx,%r8d
  mov    %edx,%ecx
  mov    $0x1,%edx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <flood@plt>
  add    $0x10,%rsp
  movl   $0x0,-0x4c(%rbp)
  jmp    L580
L144:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%edx
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  addl   $0x1,-0x4c(%rbp)
L580:
  mov    -0x4c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L144
L566:
  movl   $0x1,-0x48(%rbp)
  jmp    L112
L588:
  mov    -0x5c(%rbp),%eax
  sub    $0x2,%eax
  cmp    %eax,-0x48(%rbp)
  jge    L550
  mov    -0x48(%rbp),%eax
  add    $0x1,%eax
  imul   -0x3c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x38(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L515
L73:
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x4c(%rbp),%ecx
  mov    -0x3c(%rbp),%eax
  add    %ecx,%eax
  movslq %eax,%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  je     L581
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x4c(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  je     L581
  mov    -0x4c(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movw   $0x0,(%rax)
  jmp    L271
L581:
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  lea    (%rdx,%rdx,1),%rcx
  mov    -0x28(%rbp),%rdx
  add    %rcx,%rdx
  movzbl %al,%eax
  mov    %ax,(%rdx)
L271:
  addl   $0x1,-0x4c(%rbp)
L515:
  mov    -0x4c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L73
L550:
  mov    -0x48(%rbp),%eax
  imul   -0x3c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x38(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L33
L614:
  mov    -0x4c(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%edx
  mov    -0x4c(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  movzwl (%rax),%eax
  cwtl
  cmp    %eax,%edx
  jne    L295
  mov    -0x4c(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L295
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  je     L295
  mov    -0x48(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  je     L295
  mov    -0x4c(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rcx
  mov    -0x38(%rbp),%rdx
  add    %rcx,%rdx
  movzbl (%rax),%eax
  mov    %al,(%rdx)
L295:
  addl   $0x1,-0x4c(%rbp)
L33:
  mov    -0x4c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L614
  movl   $0x0,-0x4c(%rbp)
  jmp    L592
L138:
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L54
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x4c(%rbp),%eax
  sub    -0x3c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  je     L469
  mov    -0x48(%rbp),%eax
  cltq
  shl    $0x3,%rax
  lea    -0x8(%rax),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  je     L469
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  jmp    L54
L469:
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%edx
  mov    -0x4c(%rbp),%ecx
  mov    -0x3c(%rbp),%eax
  add    %ecx,%eax
  movslq %eax,%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  cmp    %al,%dl
  je     L54
  mov    -0x48(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  test   %eax,%eax
  je     L54
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
L54:
  addl   $0x1,-0x4c(%rbp)
L592:
  mov    -0x4c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L138
  movl   $0x0,-0x4c(%rbp)
  jmp    L216
L125:
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  lea    (%rdx,%rdx,1),%rcx
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  movzbl %al,%eax
  mov    %ax,(%rdx)
  addl   $0x1,-0x4c(%rbp)
L216:
  mov    -0x4c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L125
  movl   $0x0,-0x4c(%rbp)
  movl   $0x0,-0x44(%rbp)
  jmp    L478
L321:
  movl   $0x0,-0x40(%rbp)
  jmp    L218
L413:
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L9
  cmpl   $0x0,-0x44(%rbp)
  jle    L554
  mov    -0x4c(%rbp),%eax
  sub    -0x64(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L554
  mov    -0x4c(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movw   $0x0,(%rax)
L554:
  cmpl   $0x0,-0x40(%rbp)
  jle    L115
  mov    -0x4c(%rbp),%eax
  cltq
  lea    -0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L115
  mov    -0x4c(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movw   $0x0,(%rax)
L115:
  mov    -0x40(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x64(%rbp)
  jle    L267
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L267
  mov    -0x4c(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movw   $0x0,(%rax)
L267:
  mov    -0x44(%rbp),%eax
  add    $0x1,%eax
  cmp    %eax,-0x60(%rbp)
  jle    L9
  mov    -0x4c(%rbp),%edx
  mov    -0x64(%rbp),%eax
  add    %edx,%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L9
  mov    -0x4c(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movw   $0x0,(%rax)
L9:
  addl   $0x1,-0x4c(%rbp)
  addl   $0x1,-0x40(%rbp)
L218:
  mov    -0x40(%rbp),%eax
  cmp    -0x64(%rbp),%eax
  jl     L413
  addl   $0x1,-0x44(%rbp)
L478:
  mov    -0x44(%rbp),%eax
  cmp    -0x60(%rbp),%eax
  jl     L321
  mov    0x18(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%esi
  mov    0x10(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%r9d
  mov    -0x48(%rbp),%eax
  imul   -0x3c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x70(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x18(%rbp),%r8
  mov    -0x64(%rbp),%ecx
  mov    -0x60(%rbp),%edx
  mov    -0x68(%rbp),%eax
  push   $0x1
  push   -0x20(%rbp)
  push   -0x30(%rbp)
  push   %rsi
  mov    %eax,%esi
  mov    $0x0,%eax
  call   <getJ@plt>
  add    $0x20,%rsp
  mov    -0x20(%rbp),%rsi
  mov    -0x64(%rbp),%ecx
  mov    -0x60(%rbp),%edx
  mov    -0x30(%rbp),%rax
  mov    %rsi,%r8
  mov    $0x1,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <removehole@plt>
  mov    -0x10(%rbp),%rax
  mov    (%rax),%rax
  add    $0x4,%rax
  movl   $0x0,(%rax)
  mov    -0x20(%rbp),%rdi
  mov    -0x64(%rbp),%ecx
  mov    -0x60(%rbp),%edx
  mov    -0x18(%rbp),%rsi
  mov    -0x30(%rbp),%rax
  push   -0x10(%rbp)
  push   $0x1
  mov    %rdi,%r9
  mov    %ecx,%r8d
  mov    %edx,%ecx
  mov    $0x1,%edx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <flood@plt>
  add    $0x10,%rsp
  movl   $0x0,-0x4c(%rbp)
  jmp    L300
L307:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%edx
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  addl   $0x1,-0x4c(%rbp)
L300:
  mov    -0x4c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L307
  addl   $0x1,-0x48(%rbp)
L112:
  mov    -0x5c(%rbp),%eax
  sub    $0x1,%eax
  cmp    %eax,-0x48(%rbp)
  jl     L588
  mov    -0x5c(%rbp),%eax
  sub    $0x1,%eax
  imul   -0x3c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x38(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L528
L590:
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L408
  addl   $0x1,-0x4c(%rbp)
L528:
  mov    -0x4c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L590
  jmp    L156
L408:
  nop
L156:
  mov    -0x4c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jge    L48
  movl   $0x0,-0x4c(%rbp)
  jmp    L175
L261:
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  lea    (%rdx,%rdx,1),%rcx
  mov    -0x30(%rbp),%rdx
  add    %rcx,%rdx
  movzbl %al,%eax
  mov    %ax,(%rdx)
  addl   $0x1,-0x4c(%rbp)
L175:
  mov    -0x4c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L261
  mov    0x18(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%esi
  mov    0x10(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%r9d
  mov    -0x48(%rbp),%eax
  imul   -0x3c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x70(%rbp),%rax
  lea    (%rdx,%rax,1),%rdi
  mov    -0x18(%rbp),%r8
  mov    -0x64(%rbp),%ecx
  mov    -0x60(%rbp),%edx
  mov    -0x68(%rbp),%eax
  push   $0x1
  push   -0x20(%rbp)
  push   -0x30(%rbp)
  push   %rsi
  mov    %eax,%esi
  mov    $0x0,%eax
  call   <getJ@plt>
  add    $0x20,%rsp
  mov    -0x20(%rbp),%rsi
  mov    -0x64(%rbp),%ecx
  mov    -0x60(%rbp),%edx
  mov    -0x30(%rbp),%rax
  mov    %rsi,%r8
  mov    $0x1,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <removehole@plt>
  mov    -0x10(%rbp),%rax
  mov    (%rax),%rax
  add    $0x4,%rax
  movl   $0x0,(%rax)
  mov    -0x20(%rbp),%rdi
  mov    -0x64(%rbp),%ecx
  mov    -0x60(%rbp),%edx
  mov    -0x18(%rbp),%rsi
  mov    -0x30(%rbp),%rax
  push   -0x10(%rbp)
  push   $0x1
  mov    %rdi,%r9
  mov    %ecx,%r8d
  mov    %edx,%ecx
  mov    $0x1,%edx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <flood@plt>
  add    $0x10,%rsp
  movl   $0x0,-0x4c(%rbp)
  jmp    L450
L187:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    (%rax,%rax,1),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzwl (%rax),%edx
  mov    -0x4c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  mov    %dl,(%rax)
  addl   $0x1,-0x4c(%rbp)
L450:
  mov    -0x4c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jl     L187
L48:
  mov    -0x5c(%rbp),%edx
  mov    -0x8(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <free_imatrix@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x10(%rbp),%rax
  mov    $0x1,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <free_imatrix@plt>
  nop
  leave
  ret
```

assistant: ```c
void tempofilt(unsigned char *rmap1, int nt, int ny, int nx, int N, unsigned char *cmap, int *offset, int *step) {
  int l, imgsize, it, **done, **appear, iy, ix, i;
  unsigned char *rmap0, *rmap;
  short *rmap2, *rmap3;
  float *J;
  imgsize = ny * nx;
  rmap2 = (short *)calloc(imgsize, sizeof(short));
  rmap3 = (short *)calloc(imgsize, sizeof(short));
  rmap0 = (unsigned char *)calloc(imgsize, sizeof(unsigned char));
  for (l = 0; l < imgsize; l++)
    rmap0[l] = 1;
  J = (float *)calloc(imgsize, sizeof(float));
  done = (int **)imatrix(1, 2);
  appear = (int **)imatrix(nt, 256);
  rmap = rmap1;
  for (it = 0; it < nt; it++) {
    for (l = 0; l < imgsize; l++)
      appear[it][rmap[l]] = 1;
    rmap += imgsize;
  }
  rmap = rmap1;
  for (l = 0; l < imgsize; l++) {
    if (rmap[l] == 0)
      break;
  }
  if (l < imgsize) {
    for (l = 0; l < imgsize; l++)
      rmap2[l] = rmap[l];
    getJ(cmap, N, ny, nx, J, offset[1], step[1], rmap2, rmap0, 1);
    removehole(rmap2, 1, ny, nx, rmap0);
    done[0][1] = 0;
    flood(rmap2, J, 1, ny, nx, rmap0, 1, done);
    for (l = 0; l < imgsize; l++)
      rmap[l] = (unsigned char)rmap2[l];
  }
  for (it = 1; it < nt - 1; it++) {
    if (it < nt - 2) {
      rmap = rmap1 + (it + 1) * imgsize;
      for (l = 0; l < imgsize; l++) {
        if (rmap[l] != rmap[l + imgsize] && rmap[l] != rmap[l - imgsize])
          rmap3[l] = 0;
        else
          rmap3[l] = rmap[l];
      }
    }
    rmap = rmap1 + it * imgsize;
    for (l = 0; l < imgsize; l++) {
      if (rmap[l - imgsize] == rmap3[l] && rmap[l - imgsize] > 0) {
        if (appear[it - 1][rmap[l]] && appear[it + 1][rmap[l]])
          rmap[l] = rmap[l - imgsize];
      }
    }
    for (l = 0; l < imgsize; l++) {
      if (rmap[l] > 0) {
        if (rmap[l] != rmap[l - imgsize] && appear[it - 1][rmap[l]])
          rmap[l] = 0;
        else if (rmap[l] != rmap[l + imgsize] && appear[it + 1][rmap[l]])
          rmap[l] = 0;
      }
    }
    for (l = 0; l < imgsize; l++)
      rmap2[l] = rmap[l];
    l = 0;
    for (iy = 0; iy < ny; iy++) {
      for (ix = 0; ix < nx; ix++) {
        if (rmap[l] > 0) {
          if (iy - 1 >= 0) {
            if (rmap[l - nx] == 0)
              rmap2[l] = 0;
          }
          if (ix - 1 >= 0) {
            if (rmap[l - 1] == 0)
              rmap2[l] = 0;
          }
          if (ix + 1 < nx) {
            if (rmap[l + 1] == 0)
              rmap2[l] = 0;
          }
          if (iy + 1 < ny) {
            if (rmap[l + nx] == 0)
              rmap2[l] = 0;
          }
        }
        l++;
      }
    }
    getJ(cmap + it * imgsize, N, ny, nx, J, offset[1], step[1], rmap2, rmap0, 1);
    removehole(rmap2, 1, ny, nx, rmap0);
    done[0][1] = 0;
    flood(rmap2, J, 1, ny, nx, rmap0, 1, done);
    for (l = 0; l < imgsize; l++)
      rmap[l] = (unsigned char)rmap2[l];
  }
  rmap = rmap1 + (nt - 1) * imgsize;
  for (l = 0; l < imgsize; l++) {
    if (rmap[l] == 0)
      break;
  }
  if (l < imgsize) {
    for (l = 0; l < imgsize; l++)
      rmap2[l] = rmap[l];
    getJ(cmap + it * imgsize, N, ny, nx, J, offset[1], step[1], rmap2, rmap0, 1);
    removehole(rmap2, 1, ny, nx, rmap0);
    done[0][1] = 0;
    flood(rmap2, J, 1, ny, nx, rmap0, 1, done);
    for (l = 0; l < imgsize; l++)
      rmap[l] = (unsigned char)rmap2[l];
  }
  free_imatrix(appear, nt);
  free(rmap0);
  free(rmap2);
  free(rmap3);
  free(J);
  free_imatrix(done, 1);
}
```