user: Translate the below assembly code into C programming language:

```asm
<printRow>:
  endbr64
  push   %r15
  lea    D78(%rip),%rsi
  lea    D38(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <fopen@plt>
  movl   $0xffffffff,0x14(%rsp)
  mov    %rax,%rdi
  mov    %rax,0x8(%rsp)
  call   <nRows@plt>
  mov    %eax,0x4(%rsp)
  mov    0x14(%rsp),%eax
  test   %eax,%eax
  jg     L120
  lea    D46(%rip),%r14
  lea    0x13(%rsp),%r13
  lea    0x14(%rsp),%r12
  lea    D29(%rip),%rbp
  lea    D87(%rip),%r15
  jmp    L44
  nopw   0x0(%rax,%rax,1)
L4:
  mov    %r15,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  call   <clean_stdin@plt>
L136:
  movl   $0xffffffff,0x14(%rsp)
L44:
  mov    %r14,%rdi
  call   <printf@plt>
  mov    %r13,%rdx
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  cmp    $0x2,%eax
  jne    L4
  cmpb   $0xa,0x13(%rsp)
  jne    L4
  mov    0x14(%rsp),%eax
  cmp    0x4(%rsp),%eax
  jg     L30
  test   %eax,%eax
  jle    L30
L120:
  mov    0x8(%rsp),%rdi
  xor    %r12d,%r12d
  call   <fclose@plt>
  lea    D78(%rip),%rsi
  lea    D38(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%rbp
  jmp    L65
  nopl   0x0(%rax)
L0:
  mov    0x14(%rsp),%eax
  sub    $0x1,%eax
  cmp    %r12d,%eax
  jle    L1
  xor    %eax,%eax
  cmp    $0xa,%bl
  mov    %rbp,%rdi
  sete   %al
  add    %eax,%r12d
  call   <fgetc@plt>
  mov    %eax,%ebx
L65:
  mov    %rbp,%rdi
  call   <feof@plt>
  test   %eax,%eax
  je     L0
  mov    %rbp,%rdi
  call   <feof@plt>
  cmp    $0xa,%bl
  je     L55
  nopw   0x0(%rax,%rax,1)
L69:
  test   %eax,%eax
  jne    L55
  movsbl %bl,%edi
  call   <putchar@plt>
  mov    %rbp,%rdi
  call   <fgetc@plt>
  mov    %eax,%ebx
L1:
  mov    %rbp,%rdi
  call   <feof@plt>
  cmp    $0xa,%bl
  jne    L69
L55:
  mov    %rbp,%rdi
  call   <fclose@plt>
  lea    D34(%rip),%rdi
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L126
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L30:
  lea    D43(%rip),%rdi
  call   <printf@plt>
  jmp    L136
L126:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D78
type_guessed: string
name: disassemble_data
arguments: tag: D38
type_guessed: string
name: disassemble_data
arguments: tag: D46
type_guessed: string
name: disassemble_data
arguments: tag: D29
type_guessed: string
name: disassemble_data
arguments: tag: D87
type_guessed: string
name: disassemble_data
arguments: tag: D34
type_guessed: string
name: disassemble_data
arguments: tag: D43
type_guessed: string

tool: D78: r

tool: D38: car.txt

tool: D46: Insert row number to print: 

tool: D29: %d%c

tool: D87: Incorrect value, please try again.


tool: D34: 



tool: D43: Value out of range, please try again.


assistant: ```c
void printRow() {
  FILE *f;
  f = fopen("car.txt", "r");
  int rowSelected = -1, rowNum = nRows(f), read, currentRowCount = 0;
  char enter, c;
  while (rowSelected < 1) {
    printf("Insert row number to print: ");
    read = scanf("%d%c", &rowSelected, &enter);
    if (read != 2 || enter != '\n') {
      printf("Incorrect value, please try again.\n");
      clean_stdin();
      rowSelected = -1;
    } else if (rowSelected < 1 || rowSelected > rowNum) {
      printf("Value out of range, please try again.\n");
      rowSelected = -1;
    }
  }
  fclose(f);
  f = fopen("car.txt", "r");
  while (!feof(f) && currentRowCount < rowSelected - 1) {
    if (c == '\n') {
      ++currentRowCount;
    }
    c = fgetc(f);
  }
  while (!feof(f) && c != '\n') {
    putchar(c);
    c = fgetc(f);
  }
  fclose(f);
  printf("\n\n");
}
```