// File: /workspace/github_c_makefile_star2_O0/neovim[P]libvterm/bin/vterm-dump.c
// Function: parser_csi
static int parser_csi(const char *leader, const long args[], int argcount, const char *intermed, char command, void *user)
{
  const char *name = NULL;
  if(!leader && !intermed && command < 0x70)
    name = name_csi_plain[command - 0x40];
  else if(leader && streq(leader, "?") && !intermed) {
    /* DEC */
    switch(command) {
      case 'h': name = "DECSM"; break;
      case 'l': name = "DECRM"; break;
    }
    if(name)
      leader = NULL;
  }

  if(!leader && !intermed && command < 0x70 && newline_csi_plain[command - 0x40])
    printf("\n");

  if(name)
    printf("%s%s", special_begin, name);
  else
    printf("%sCSI", special_begin);

  if(leader && leader[0])
    printf(" %s", leader);

  for(int i = 0; i < argcount; i++) {
    printf(i ? "," : " ");

    if(args[i] == CSI_ARG_MISSING)
      printf("*");
    else {
      while(CSI_ARG_HAS_MORE(args[i]))
        printf("%ld+", CSI_ARG(args[i++]));
      printf("%ld", CSI_ARG(args[i]));
    }
  }

  if(intermed && intermed[0])
    printf(" %s", intermed);

  if(name)
    printf("%s", special_end);
  else
    printf(" %c%s", command, special_end);

  return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movb %r8b, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movb %al, -0x21(%rbp)
movq %r9, -0x30(%rbp)
movq $0x0, -0x38(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x279b
cmpq $0x0, -0x20(%rbp)
jne 0x279b
movsbl -0x21(%rbp), %eax
cmpl $0x70, %eax
jge 0x279b
movsbl -0x21(%rbp), %eax
subl $0x40, %eax
movslq %eax, %rcx
leaq 0x2b7f(%rip), %rax      # 0x5310
movq (%rax,%rcx,8), %rax
movq %rax, -0x38(%rbp)
jmp 0x2801
cmpq $0x0, -0x8(%rbp)
je 0x27ff
movq -0x8(%rbp), %rdi
leaq 0x97c(%rip), %rsi       # 0x3129
callq 0x20c0
cmpl $0x0, %eax
jne 0x27ff
cmpq $0x0, -0x20(%rbp)
jne 0x27ff
movsbl -0x21(%rbp), %eax
movl %eax, -0x40(%rbp)
subl $0x68, %eax
je 0x27d6
jmp 0x27cc
movl -0x40(%rbp), %eax
subl $0x6c, %eax
je 0x27e3
jmp 0x27ee
leaq 0x94e(%rip), %rax       # 0x312b
movq %rax, -0x38(%rbp)
jmp 0x27ee
leaq 0x947(%rip), %rax       # 0x3131
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x27fd
movq $0x0, -0x8(%rbp)
jmp 0x27ff
jmp 0x2801
cmpq $0x0, -0x8(%rbp)
jne 0x283d
cmpq $0x0, -0x20(%rbp)
jne 0x283d
movsbl -0x21(%rbp), %eax
cmpl $0x70, %eax
jge 0x283d
movsbl -0x21(%rbp), %eax
subl $0x40, %eax
movslq %eax, %rcx
leaq 0x9f7(%rip), %rax       # 0x3220
cmpl $0x0, (%rax,%rcx,4)
je 0x283d
leaq 0x7e5(%rip), %rdi       # 0x301b
movb $0x0, %al
callq 0x2080
cmpq $0x0, -0x38(%rbp)
je 0x285f
movq 0x2865(%rip), %rsi      # 0x50b0
movq -0x38(%rbp), %rdx
leaq 0x7d6(%rip), %rdi       # 0x302c
movb $0x0, %al
callq 0x2080
jmp 0x2874
movq 0x284a(%rip), %rsi      # 0x50b0
leaq 0x8ca(%rip), %rdi       # 0x3137
movb $0x0, %al
callq 0x2080
cmpq $0x0, -0x8(%rbp)
je 0x2899
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x2899
movq -0x8(%rbp), %rsi
leaq 0x8ab(%rip), %rdi       # 0x313d
movb $0x0, %al
callq 0x2080
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x2969
movl -0x3c(%rbp), %ecx
leaq 0x949(%rip), %rdi       # 0x31ff
leaq 0x884(%rip), %rax       # 0x3141
cmpl $0x0, %ecx
cmovneq %rax, %rdi
movb $0x0, %al
callq 0x2080
movq -0x10(%rbp), %rax
movslq -0x3c(%rbp), %rcx
cmpq $0x7fffffff, (%rax,%rcx,8) # imm = 0x7FFFFFFF
jne 0x28ed
leaq 0x85f(%rip), %rdi       # 0x3143
movb $0x0, %al
callq 0x2080
jmp 0x2959
jmp 0x28ef
movq -0x10(%rbp), %rcx
movslq -0x3c(%rbp), %rdx
movabsq $0x80000000, %rax       # imm = 0x80000000
andq (%rcx,%rdx,8), %rax
cmpq $0x0, %rax
je 0x2938
movq -0x10(%rbp), %rax
movl -0x3c(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x3c(%rbp)
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rsi
andq $0x7fffffff, %rsi       # imm = 0x7FFFFFFF
leaq 0x816(%rip), %rdi       # 0x3145
movb $0x0, %al
callq 0x2080
jmp 0x28ef
movq -0x10(%rbp), %rax
movslq -0x3c(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
andq $0x7fffffff, %rsi       # imm = 0x7FFFFFFF
leaq 0x7f8(%rip), %rdi       # 0x314a
movb $0x0, %al
callq 0x2080
jmp 0x295b
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0x28a0
cmpq $0x0, -0x20(%rbp)
je 0x298e
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x298e
movq -0x20(%rbp), %rsi
leaq 0x7b6(%rip), %rdi       # 0x313d
movb $0x0, %al
callq 0x2080
cmpq $0x0, -0x38(%rbp)
je 0x29ac
movq 0x271c(%rip), %rsi      # 0x50b8
leaq 0x79b(%rip), %rdi       # 0x313e
movb $0x0, %al
callq 0x2080
jmp 0x29c5
movsbl -0x21(%rbp), %esi
movq 0x2701(%rip), %rdx      # 0x50b8
leaq 0x790(%rip), %rdi       # 0x314e
movb $0x0, %al
callq 0x2080
movl $0x1, %eax
addq $0x40, %rsp
popq %rbp
retq