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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x738,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x2728(%rsp)
  xor    %eax,%eax
  lea    0x8(%rsp),%rsi
  lea    D49(%rip),%rdi
  call   <scanf@plt>
  mov    0x8(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  test   %eax,%eax
  je     L58
  lea    D49(%rip),%r15
  mov    $0x1,%ebx
  jmp    L217
L147:
  add    $0x1,%edx
  movslq %edx,%rdx
  mov    %cl,-0x2720(%rdx,%r8,1)
  add    $0x1,%rsi
  add    $0x1,%rdi
  cmp    %r9,%rsi
  je     L74
L96:
  movzbl (%rdi),%ecx
  mov    %esi,%edx
  test   %esi,%esi
  js     L147
  mov    %rdi,%rax
L19:
  movzbl -0x1(%rax),%r14d
  cmp    %cl,%r14b
  jle    L147
  mov    %r14b,(%rax)
  sub    $0x1,%edx
  sub    $0x1,%rax
  cmp    $0xffffffff,%edx
  jne    L19
  jmp    L147
L74:
  add    $0x1,%r11d
  add    $0x64,%r12
  cmp    %r11d,%r10d
  je     L173
L119:
  cmp    $0x1,%r10d
  jle    L74
  lea    0x0(%r13,%r12,1),%rdi
  mov    $0x0,%esi
  movslq %r11d,%rax
  lea    (%rax,%rax,4),%rax
  lea    (%rax,%rax,4),%rax
  lea    0x2730(%rsp,%rax,4),%r8
  jmp    L96
L173:
  lea    -0x2(%r10),%eax
  lea    (%rax,%rax,4),%rax
  lea    (%rax,%rax,4),%rax
  lea    0x64(%rbp,%rax,4),%rdx
  lea    -0x1(%r10),%eax
  lea    0x1(%rbp,%rax,1),%rdi
  mov    $0x0,%esi
  jmp    L184
L58:
  mov    0x2728(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L118
  mov    $0x0,%eax
  add    $0x2738,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L176:
  lea    D41(%rip),%rdi
  call   <printf@plt>
L148:
  mov    0x8(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0x8(%rsp)
  test   %eax,%eax
  je     L58
L217:
  lea    0xc(%rsp),%rsi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  cmpl   $0x0,0xc(%rsp)
  jle    L25
  lea    0x10(%rsp),%rbp
  mov    %rbp,%r13
  mov    $0x0,%r12d
  lea    D39(%rip),%r14
L44:
  mov    %r13,%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  add    $0x1,%r12d
  mov    0xc(%rsp),%r10d
  add    $0x64,%r13
  cmp    %r12d,%r10d
  jg     L44
  test   %r10d,%r10d
  jle    L25
  mov    $0x0,%r12d
  mov    $0x0,%r11d
  lea    0x1(%rbp),%r13
  lea    -0x1(%r10),%r9d
  jmp    L119
L25:
  lea    D12(%rip),%rdi
  call   <printf@plt>
  jmp    L148
L134:
  add    $0x64,%rax
  cmp    %rax,%rdx
  je     L176
  mov    %ebx,%ecx
L62:
  movzbl 0x64(%rax),%r11d
  cmp    %r11b,(%rax)
  jg     L134
  add    $0x64,%rax
  cmp    %rdx,%rax
  jne    L62
  cmp    $0x1,%ecx
  je     L176
L241:
  add    $0x1,%rdx
  add    $0x1,%rbp
  cmp    %rdi,%rbp
  je     L25
L184:
  mov    %rbp,%rax
  mov    %esi,%ecx
  cmp    $0x1,%r10d
  jg     L62
  jmp    L241
L118:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D49
datatype: string
name: read_data
arguments: label: D41
datatype: string
name: read_data
arguments: label: D39
datatype: string
name: read_data
arguments: label: D12
datatype: string

tool: D49: %d

tool: D41: NO


tool: D39: %s

tool: D12: YES


assistant: ```c
int main() {
  int i, j, k, t, n, flag = 0;
  char str[100][100];
  scanf("%d", &t);
  while (t--) {
    flag = 0;
    scanf("%d", &n);
    for (i = 0; i < n; i++) {
      scanf("%s", str[i]);
    }
    for (k = 0; k < n; k++) {
      char current;
      for (i = 1; i < n; i++) {
        current = str[k][i];
        for (j = i - 1; j >= 0; j--) {
          if (current < str[k][j])
            str[k][j + 1] = str[k][j];
          else
            break;
        }
        str[k][j + 1] = current;
      }
    }
    for (i = 0; i < n; i++) {
      for (j = 0; j < n - 1; j++) {
        if (str[j][i] <= str[j + 1][i]) {
        } else {
          flag = 1;
        }
      }
      if (flag == 1) {
        break;
      }
    }
    if (flag == 0) {
      printf("YES\n");
    } else
      printf("NO\n");
  }
  return 0;
}
```