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

```asm
<sr_parse_os_release>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  movzbl (%rdi),%eax
  mov    %rsi,0x8(%rsp)
  test   %al,%al
  je     L23
  mov    %rdi,%r15
  mov    %rdx,%r12
  lea    D41(%rip),%r13
  xor    %ebp,%ebp
  jmp    L71
  nopl   0x0(%rax,%rax,1)
L49:
  mov    %ebp,%esi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <warn@plt>
L98:
  mov    %r15,%rdi
  mov    $0xa,%esi
  call   <strchrnul@plt>
  cmpb   $0x1,(%rax)
  sbb    $0xffffffffffffffff,%rax
  mov    %rax,%r15
L94:
  movzbl (%r15),%eax
  test   %al,%al
  je     L23
L71:
  add    $0x1,%ebp
  cmp    $0x23,%al
  je     L98
  mov    $0x3d,%esi
  mov    %r15,%rdi
  call   <strchrnul@plt>
  cmpb   $0x0,(%rax)
  mov    %rax,%r14
  je     L17
  cmp    %r15,%rax
  je     L66
  mov    $0xa,%esi
  mov    %r15,%rdi
  call   <strchrnul@plt>
  mov    %rax,%rbx
  cmp    %rax,%r14
  ja     L49
  mov    %r14d,%esi
  mov    %r15,%rdi
  sub    %r15d,%esi
  call   <sr_strndup@plt>
  mov    %rbx,%rsi
  lea    0x1(%r14),%rdi
  sub    %r14,%rsi
  mov    %rax,%r15
  sub    $0x1,%esi
  call   <sr_strndup@plt>
  mov    %rax,%r14
  mov    %rax,%rsi
  mov    %rax,%rdi
  call   <unescape_osinfo_value@plt>
  mov    %r15,%rdx
  mov    %r14,%rcx
  mov    %ebp,%esi
  lea    D30(%rip),%rdi
  xor    %eax,%eax
  call   <warn@plt>
  mov    %r15,%rdi
  mov    0x8(%rsp),%rax
  mov    %r12,%rdx
  mov    %r14,%rsi
  lea    0x1(%rbx),%r15
  call   *%rax
  cmpb   $0x0,(%rbx)
  jne    L94
  mov    %ebp,%esi
  lea    D45(%rip),%rdi
  xor    %eax,%eax
  mov    %rbx,%r15
  call   <warn@plt>
  movzbl (%r15),%eax
  test   %al,%al
  jne    L71
L23:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L66:
  mov    %ebp,%esi
  lea    D24(%rip),%rdi
  xor    %eax,%eax
  call   <warn@plt>
  jmp    L98
  nopl   (%rax)
L17:
  add    $0x18,%rsp
  mov    %ebp,%esi
  lea    D36(%rip),%rdi
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <warn@plt>
```

tool_calls: name: read_data
arguments: tag: D41
datatype: string
name: read_data
arguments: tag: D30
datatype: string
name: read_data
arguments: tag: D45
datatype: string
name: read_data
arguments: tag: D24
datatype: string
name: read_data
arguments: tag: D36
datatype: string

tool: D41: os-release:%u: missing '='

tool: D30: os-release:%u: parsed line: '%s'='%s'

tool: D45: os-release:%u: the last value is not terminated by newline

tool: D24: os-release:%u: 0 length key

tool: D36: os-release:%u: non empty last line

assistant: ```c
void sr_parse_os_release(const char *input, void (*callback)(char *, char *, void *), void *data) {
  const char *cursor = input;
  unsigned line = 0;
  while (cursor[0] != '\0') {
    ++line;
    if (cursor[0] == '#')
      goto skip_line;
    const char *key_end = strchrnul(cursor, '=');
    if (key_end[0] == '\0') {
      warn("os-release:%u: non empty last line", line);
      break;
    }
    if (key_end - cursor == 0) {
      warn("os-release:%u: 0 length key", line);
      goto skip_line;
    }
    const char *value_end = strchrnul(cursor, '\n');
    if (key_end > value_end) {
      warn("os-release:%u: missing '='", line);
      goto skip_line;
    }
    char *key = sr_strndup(cursor, key_end - cursor);
    char *value = sr_strndup(key_end + 1, value_end - key_end - 1);
    unescape_osinfo_value(value, value);
    warn("os-release:%u: parsed line: '%s'='%s'", line, key, value);
    callback(key, value, data);
    cursor = value_end;
    if (value_end[0] == '\0') {
      warn("os-release:%u: the last value is not terminated by newline", line);
    } else
      ++cursor;
    continue;
  skip_line:
    cursor = strchrnul(cursor, '\n');
    cursor += (cursor[0] != '\0');
  }
}
```