user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<main>:
  endbr64
  push   %r13
  xor    %r13d,%r13d
  push   %r12
  lea    D103(%rip),%r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rbp
L645:
  lea    -0x10(%rbp),%rbx
L24:
  mov    %rbx,%rsi
  mov    %r12,%rdi
  add    $0x4,%rbx
  call   <scanf@plt>
  cmp    %rbp,%rbx
  jne    L24
  add    $0x4,%r13
  lea    0x10(%rbx),%rbp
  cmp    $0xc,%r13
  jne    L645
  mov    0x14(%rsp),%eax
  mov    0x10(%rsp),%edx
  xor    %ebx,%ebx
  mov    0x18(%rsp),%ecx
  cmp    %eax,%edx
  setl   %sil
  setl   %bl
  movzbl %sil,%esi
  mov    0x10(%rsp,%rsi,4),%esi
  cmp    %ecx,%esi
  jge    L237
  mov    %ecx,%esi
  mov    $0x2,%ebx
L237:
  mov    0x1c(%rsp),%ecx
  cmp    %esi,%ecx
  jle    L184
  mov    %ecx,%esi
  mov    $0x3,%ebx
L184:
  xor    %ecx,%ecx
  cmp    %edx,%esi
  je     L401
L228:
  cmp    %esi,%eax
  je     L466
L349:
  cmp    0x18(%rsp),%esi
  je     L44
L247:
  cmp    0x1c(%rsp),%esi
  je     L41
L52:
  mov    0x24(%rsp),%eax
  mov    0x20(%rsp),%edx
  xor    %ebx,%ebx
  mov    0x28(%rsp),%edi
  cmp    %edx,%eax
  setg   %sil
  setg   %bl
  movzbl %sil,%esi
  mov    0x20(%rsp,%rsi,4),%esi
  cmp    %esi,%edi
  jle    L346
  mov    %edi,%esi
  mov    $0x2,%ebx
L346:
  mov    0x2c(%rsp),%edi
  cmp    %edi,%esi
  jge    L196
  mov    %edi,%esi
  mov    $0x3,%ebx
L196:
  cmp    %esi,%edx
  je     L77
L368:
  cmp    %esi,%eax
  je     L224
L131:
  cmp    0x28(%rsp),%esi
  je     L160
L3:
  cmp    0x2c(%rsp),%esi
  je     L490
L470:
  mov    0x34(%rsp),%edx
  mov    0x30(%rsp),%edi
  xor    %ebx,%ebx
  mov    0x38(%rsp),%eax
  cmp    %edi,%edx
  setg   %sil
  setg   %bl
  movzbl %sil,%esi
  mov    0x30(%rsp,%rsi,4),%esi
  cmp    %esi,%eax
  jg     L65
  mov    %esi,%eax
L263:
  mov    0x3c(%rsp),%esi
  cmp    %eax,%esi
  jg     L4
  mov    %eax,%esi
L489:
  cmp    %esi,%edi
  je     L538
L309:
  cmp    %edx,%esi
  je     L385
L190:
  cmp    0x38(%rsp),%esi
  je     L508
L627:
  mov    0x3c(%rsp),%r8d
  cmp    %r8d,%esi
  je     L425
L426:
  test   %ecx,%ecx
  jne    L607
  lea    D7(%rip),%rdi
  call   <puts@plt>
L607:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L132
  add    $0x58,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L65:
  mov    $0x2,%ebx
  jmp    L263
L4:
  mov    $0x3,%ebx
  jmp    L489
L538:
  cmp    0x10(%rsp),%esi
  jg     L309
  cmp    0x20(%rsp),%esi
  jg     L309
  lea    D117(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movslq %ebx,%rax
  mov    0x34(%rsp),%edx
  mov    $0x1,%ecx
  mov    0x30(%rsp,%rax,4),%esi
  jmp    L309
L77:
  cmp    0x10(%rsp),%esi
  jg     L368
  cmp    0x30(%rsp),%esi
  jg     L368
  lea    D117(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movslq %ebx,%rdx
  mov    0x24(%rsp),%eax
  mov    $0x1,%ecx
  mov    0x20(%rsp,%rdx,4),%esi
  jmp    L368
L224:
  cmp    0x14(%rsp),%esi
  jg     L131
  cmp    0x24(%rsp),%esi
  jg     L131
  cmp    0x34(%rsp),%esi
  jg     L131
  lea    D117(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movslq %ebx,%rax
  mov    $0x1,%ecx
  mov    0x20(%rsp,%rax,4),%esi
  jmp    L131
L160:
  cmp    0x18(%rsp),%esi
  jg     L3
  cmp    0x38(%rsp),%esi
  jg     L3
  lea    D117(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x20(%rsp,%rbx,4),%esi
  mov    $0x1,%ecx
  jmp    L3
L490:
  cmp    0x1c(%rsp),%esi
  jg     L470
  cmp    0x3c(%rsp),%esi
  jg     L470
  lea    D117(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x1,%ecx
  jmp    L470
L508:
  cmp    0x18(%rsp),%esi
  jg     L627
  cmp    0x28(%rsp),%esi
  jg     L627
  lea    D117(%rip),%rdi
  xor    %eax,%eax
  mov    %rdi,0x8(%rsp)
  call   <printf@plt>
  mov    0x30(%rsp,%rbx,4),%r8d
  cmp    %r8d,0x3c(%rsp)
  mov    0x8(%rsp),%rdi
  jne    L607
  cmp    %r8d,0x1c(%rsp)
  jl     L607
  cmp    %r8d,0x2c(%rsp)
  jge    L105
  jmp    L607
L385:
  cmp    0x14(%rsp),%esi
  jg     L190
  cmp    0x24(%rsp),%esi
  jg     L190
  cmp    0x34(%rsp),%esi
  jg     L190
  lea    D117(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movslq %ebx,%rax
  mov    $0x1,%ecx
  mov    0x30(%rsp,%rax,4),%esi
  jmp    L190
L401:
  cmp    0x20(%rsp),%esi
  jg     L228
  cmp    0x30(%rsp),%esi
  jg     L228
  lea    D117(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movslq %ebx,%rdx
  mov    0x14(%rsp),%eax
  mov    $0x1,%ecx
  mov    0x10(%rsp,%rdx,4),%esi
  jmp    L228
L466:
  cmp    %esi,0x24(%rsp)
  jl     L349
  cmp    %esi,0x34(%rsp)
  jl     L349
  lea    D117(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  movslq %ebx,%rax
  mov    $0x1,%ecx
  mov    0x10(%rsp,%rax,4),%esi
  jmp    L349
L44:
  cmp    0x28(%rsp),%esi
  jg     L247
  cmp    0x38(%rsp),%esi
  jg     L247
  lea    D117(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x10(%rsp,%rbx,4),%esi
  mov    $0x1,%ecx
  jmp    L247
L41:
  cmp    0x2c(%rsp),%esi
  jg     L52
  cmp    0x3c(%rsp),%esi
  jg     L52
  lea    D117(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x1,%ecx
  jmp    L52
L425:
  cmp    0x1c(%rsp),%r8d
  jg     L426
  cmp    0x2c(%rsp),%r8d
  jg     L426
  lea    D117(%rip),%rdi
L105:
  mov    %r8d,%esi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L607
L132:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D103
type: string
name: parse_data
arguments: label: D7
type: string
name: parse_data
arguments: label: D117
type: string

tool: D103: %d

tool: D7: NO

tool: D117: %d


assistant: ```c
int main() {
  int i, j, a[3][4], flag = 0, col, r;
  for (i = 0; i < 3; i++)
    for (j = 0; j < 4; j++)
      scanf("%d", &a[i][j]);
  for (i = 0; i < 3; i++) {
    col = 0;
    for (j = 1; j < 4; j++)
      if (a[i][j] > a[i][col])
        col = j;
    for (j = 0; j < 4; j++) {
      if (a[i][j] == a[i][col]) {
        for (r = 0; r < 3; r++)
          if (a[r][j] < a[i][j])
            break;
        if (r == 3) {
          printf("%d\n", a[i][j]);
          flag = 1;
        }
      }
    }
  }
  if (!flag)
    printf("NO\n");
  return 0;
}
```