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

```asm
<ordered_list_line>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  mov    %rsi,%rdi
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x418,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x408(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r13
  lea    -0x1(%rsp),%r12
  call   <strlen@plt>
  mov    $0x400,%edx
  xor    %esi,%esi
  mov    %r13,%rdi
  movslq %eax,%r14
  call   <memset@plt>
  jmp    L65
  nopl   0x0(%rax)
L240:
  cmp    $0x3ff,%rbx
  je     L174
  mov    %rbp,%rdi
  add    $0x1,%rbx
  call   <consume@plt>
  mov    %al,(%r12,%rbx,1)
L65:
  mov    %rbp,%rdi
  call   <next@plt>
  movsbl %al,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L240
L174:
  cmp    %r14,%rbx
  jne    L25
L232:
  xor    %ebx,%ebx
  jmp    L84
  nopl   0x0(%rax,%rax,1)
L249:
  call   <consume@plt>
  add    $0x1,%ebx
L84:
  mov    %rbp,%rdi
  call   <next@plt>
  movsbl %al,%edi
  call   <isdigit@plt>
  mov    %rbp,%rdi
  test   %rax,%rax
  jne    L249
  call   <next@plt>
  cmp    $0x2e,%al
  je     L41
  mov    %rbp,%rdi
  call   <next@plt>
  cmp    $0x29,%al
  je     L41
  test   %ebx,%ebx
  je     L162
  xor    %r12d,%r12d
  nopl   0x0(%rax)
L189:
  mov    %rbp,%rdi
  add    $0x1,%r12d
  call   <unconsume@plt>
  cmp    %r12d,%ebx
  jne    L189
L162:
  xor    %eax,%eax
L67:
  mov    0x408(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L222
  add    $0x418,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L41:
  mov    %rbp,%rdi
  call   <consume@plt>
  lea    D6(%rip),%rsi
  mov    %rbp,%rdi
  call   <parser_emit_string@plt>
  jmp    L160
  nopl   0x0(%rax)
L158:
  call   <consume@plt>
L160:
  mov    %rbp,%rdi
  call   <next@plt>
  mov    %rbp,%rdi
  cmp    $0x20,%al
  je     L158
  call   <text_and_inline@plt>
  test   %eax,%eax
  je     L162
  lea    D0(%rip),%rsi
  mov    %rbp,%rdi
  call   <parser_emit_string@plt>
  mov    $0x1,%eax
  jmp    L67
  nopl   0x0(%rax,%rax,1)
L25:
  mov    %rbp,%rdi
  xor    %r12d,%r12d
  call   <next@plt>
  movsbl %al,%r15d
  jmp    L198
  nopl   0x0(%rax)
L118:
  mov    %rbp,%rdi
  add    $0x1,%r12d
  call   <unconsume@plt>
L198:
  mov    %r13,%rdi
  call   <strlen@plt>
  cmp    %r12d,%eax
  jg     L118
  mov    %r15d,%edi
  call   <is_bullet@plt>
  cmp    %r14,%rbx
  seta   %r12b
  test   %rax,%rax
  je     L209
  test   %r12b,%r12b
  jne    L212
L209:
  mov    %r15d,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L173
  test   %r12b,%r12b
  jne    L64
L173:
  cmp    %r14,%rbx
  jae    L232
  jmp    L162
L212:
  mov    %r13,%rdx
  mov    %r15d,%esi
  mov    %rbp,%rdi
  call   <unordered_list_internal@plt>
  jmp    L67
L64:
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <ordered_list_internal@plt>
  jmp    L67
L222:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D6
datatype: string
name: parse_data
arguments: label: D0
datatype: string

tool: D6: <li>

tool: D0: </li>

assistant: ```c
bool ordered_list_line(struct cymkd_parser *parser, const char *curr_indent) {
  char indent[1024];
  int ch;
  int i;
  size_t curr_indent_len = strlen(curr_indent);
  size_t indent_len = 0;
  memset(indent, 0, 1024);
  while (isspace(next(parser)) && indent_len < 1024 - 1) {
    ch = consume(parser);
    indent[indent_len++] = ch;
  }
  if (indent_len != curr_indent_len) {
    ch = next(parser);
    for (i = 0; i < strlen(indent); i++) {
      unconsume(parser);
    }
    if (is_bullet(ch) && indent_len > curr_indent_len) {
      return unordered_list_internal(parser, ch, indent);
    } else if (isdigit(ch) && indent_len > curr_indent_len) {
      return ordered_list_internal(parser, indent);
    } else if (indent_len < curr_indent_len) {
      return false;
    }
  }
  int number_length = 0;
  while (isdigit(next(parser))) {
    consume(parser);
    number_length++;
  }
  if (next(parser) != '.' && next(parser) != ')') {
    for (int i = 0; i < number_length; i++) {
      unconsume(parser);
    }
    return false;
  }
  consume(parser);
  parser_emit_string(parser, "<li>");
  while (next(parser) == ' ') {
    consume(parser);
  }
  if (!text_and_inline(parser)) {
    return false;
  }
  parser_emit_string(parser, "</li>");
  return true;
}
```