// File: /workspace/github_c_makefile_star2_O3/orangeduck[P]mpc/mpc.c
// Function: mpc_print_unretained
static void mpc_print_unretained(mpc_parser_t *p, int force) {

  /* TODO: Print Everything Escaped */

  int i;
  char *s, *e;
  char buff[2];

  if (p->retained && !force) {;
    if (p->name) { printf("<%s>", p->name); }
    else { printf("<anon>"); }
    return;
  }

  if (p->type == MPC_TYPE_UNDEFINED) { printf("<?>"); }
  if (p->type == MPC_TYPE_PASS)   { printf("<:>"); }
  if (p->type == MPC_TYPE_FAIL)   { printf("<!>"); }
  if (p->type == MPC_TYPE_LIFT)   { printf("<#>"); }
  if (p->type == MPC_TYPE_STATE)  { printf("<S>"); }
  if (p->type == MPC_TYPE_ANCHOR) { printf("<@>"); }
  if (p->type == MPC_TYPE_EXPECT) {
    printf("%s", p->data.expect.m);
    /*mpc_print_unretained(p->data.expect.x, 0);*/
  }

  if (p->type == MPC_TYPE_ANY) { printf("<.>"); }
  if (p->type == MPC_TYPE_SATISFY) { printf("<f>"); }

  if (p->type == MPC_TYPE_SINGLE) {
    buff[0] = p->data.single.x; buff[1] = '\0';
    s = mpcf_escape_new(
      buff,
      mpc_escape_input_c,
      mpc_escape_output_c);
    printf("'%s'", s);
    free(s);
  }

  if (p->type == MPC_TYPE_RANGE) {
    buff[0] = p->data.range.x; buff[1] = '\0';
    s = mpcf_escape_new(
      buff,
      mpc_escape_input_c,
      mpc_escape_output_c);
    buff[0] = p->data.range.y; buff[1] = '\0';
    e = mpcf_escape_new(
      buff,
      mpc_escape_input_c,
      mpc_escape_output_c);
    printf("[%s-%s]", s, e);
    free(s);
    free(e);
  }

  if (p->type == MPC_TYPE_ONEOF) {
    s = mpcf_escape_new(
      p->data.string.x,
      mpc_escape_input_c,
      mpc_escape_output_c);
    printf("[%s]", s);
    free(s);
  }

  if (p->type == MPC_TYPE_NONEOF) {
    s = mpcf_escape_new(
      p->data.string.x,
      mpc_escape_input_c,
      mpc_escape_output_c);
    printf("[^%s]", s);
    free(s);
  }

  if (p->type == MPC_TYPE_STRING) {
    s = mpcf_escape_new(
      p->data.string.x,
      mpc_escape_input_c,
      mpc_escape_output_c);
    printf("\"%s\"", s);
    free(s);
  }

  if (p->type == MPC_TYPE_APPLY)    { mpc_print_unretained(p->data.apply.x, 0); }
  if (p->type == MPC_TYPE_APPLY_TO) { mpc_print_unretained(p->data.apply_to.x, 0); }
  if (p->type == MPC_TYPE_PREDICT)  { mpc_print_unretained(p->data.predict.x, 0); }

  if (p->type == MPC_TYPE_NOT)   { mpc_print_unretained(p->data.not.x, 0); printf("!"); }
  if (p->type == MPC_TYPE_MAYBE) { mpc_print_unretained(p->data.not.x, 0); printf("?"); }

  if (p->type == MPC_TYPE_MANY)  { mpc_print_unretained(p->data.repeat.x, 0); printf("*"); }
  if (p->type == MPC_TYPE_MANY1) { mpc_print_unretained(p->data.repeat.x, 0); printf("+"); }
  if (p->type == MPC_TYPE_COUNT) { mpc_print_unretained(p->data.repeat.x, 0); printf("{%i}", p->data.repeat.n); }
  if (p->type == MPC_TYPE_SEPBY1) {
    mpc_print_unretained(p->data.sepby1.x, 0);
    printf(" (");
    mpc_print_unretained(p->data.sepby1.sep, 0);
    printf(" ");
    mpc_print_unretained(p->data.sepby1.x, 0);
    printf(")");
    printf("*");
  }

  if (p->type == MPC_TYPE_OR) {
    printf("(");
    for(i = 0; i < p->data.or.n-1; i++) {
      mpc_print_unretained(p->data.or.xs[i], 0);
      printf(" | ");
    }
    mpc_print_unretained(p->data.or.xs[p->data.or.n-1], 0);
    printf(")");
  }

  if (p->type == MPC_TYPE_AND) {
    printf("(");
    for(i = 0; i < p->data.and.n-1; i++) {
      mpc_print_unretained(p->data.and.xs[i], 0);
      printf(" ");
    }
    mpc_print_unretained(p->data.and.xs[p->data.and.n-1], 0);
    printf(")");
  }

  if (p->type == MPC_TYPE_CHECK) {
    mpc_print_unretained(p->data.check.x, 0);
    printf("->?");
  }
  if (p->type == MPC_TYPE_CHECK_WITH) {
    mpc_print_unretained(p->data.check_with.x, 0);
    printf("->?");
  }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
testl %esi, %esi
jne 0x93ef
cmpb $0x0, 0x31(%rbx)
je 0x93ef
movq (%rbx), %rsi
testq %rsi, %rsi
je 0x9784
leaq 0x53d4(%rip), %rdi      # 0xe7ae
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x41a0
movb 0x30(%rbx), %al
testb %al, %al
jne 0x9407
leaq 0x53bd(%rip), %rdi      # 0xe7ba
xorl %eax, %eax
callq 0x41a0
movb 0x30(%rbx), %al
cmpb $0x1, %al
jne 0x941c
leaq 0x53ac(%rip), %rdi      # 0xe7be
xorl %eax, %eax
callq 0x41a0
movb 0x30(%rbx), %al
cmpb $0x2, %al
jne 0x9431
leaq 0x539b(%rip), %rdi      # 0xe7c2
xorl %eax, %eax
callq 0x41a0
movb 0x30(%rbx), %al
cmpb $0x3, %al
jne 0x9446
leaq 0x538a(%rip), %rdi      # 0xe7c6
xorl %eax, %eax
callq 0x41a0
movb 0x30(%rbx), %al
cmpb $0x7, %al
jne 0x945b
leaq 0x5379(%rip), %rdi      # 0xe7ca
xorl %eax, %eax
callq 0x41a0
movb 0x30(%rbx), %al
cmpb $0x6, %al
jne 0x9470
leaq 0x5368(%rip), %rdi      # 0xe7ce
xorl %eax, %eax
callq 0x41a0
movb 0x30(%rbx), %al
cmpb $0x5, %al
jne 0x9489
movq 0x10(%rbx), %rsi
leaq 0x519c(%rip), %rdi      # 0xe61b
xorl %eax, %eax
callq 0x41a0
movb 0x30(%rbx), %al
cmpb $0x8, %al
jne 0x949e
leaq 0x533e(%rip), %rdi      # 0xe7d2
xorl %eax, %eax
callq 0x41a0
movb 0x30(%rbx), %al
cmpb $0xd, %al
jne 0x94b3
leaq 0x532d(%rip), %rdi      # 0xe7d6
xorl %eax, %eax
callq 0x41a0
movb 0x30(%rbx), %al
cmpb $0x9, %al
jne 0x94f7
movb 0x8(%rbx), %al
leaq 0x6(%rsp), %rdi
movb %al, (%rdi)
movb $0x0, 0x1(%rdi)
leaq 0x4db8(%rip), %rsi      # 0xe284
leaq 0x9dfd(%rip), %rdx      # 0x132d0
callq 0x8fe7
movq %rax, %r14
leaq 0x4ef0(%rip), %rdi      # 0xe3d2
movq %rax, %rsi
xorl %eax, %eax
callq 0x41a0
movq %r14, %rdi
callq 0x4580
movb 0x30(%rbx), %al
cmpb $0xc, %al
jne 0x956d
movb 0x8(%rbx), %al
leaq 0x6(%rsp), %r14
movb %al, (%r14)
xorl %ebp, %ebp
movb %bpl, 0x1(%r14)
leaq 0x4d71(%rip), %r15      # 0xe284
leaq 0x9db6(%rip), %r12      # 0x132d0
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x8fe7
movq %rax, %r13
movb 0x9(%rbx), %al
movb %al, (%r14)
movb %bpl, 0x1(%r14)
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x8fe7
movq %rax, %r14
leaq 0x528d(%rip), %rdi      # 0xe7da
movq %r13, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x41a0
movq %r13, %rdi
callq 0x4580
movq %r14, %rdi
callq 0x4580
movb 0x30(%rbx), %al
cmpb $0xa, %al
jne 0x95a7
movq 0x8(%rbx), %rdi
leaq 0x4d08(%rip), %rsi      # 0xe284
leaq 0x9d4d(%rip), %rdx      # 0x132d0
callq 0x8fe7
movq %rax, %r14
leaq 0x5250(%rip), %rdi      # 0xe7e2
movq %rax, %rsi
xorl %eax, %eax
callq 0x41a0
movq %r14, %rdi
callq 0x4580
movb 0x30(%rbx), %al
cmpb $0xb, %al
jne 0x95e1
movq 0x8(%rbx), %rdi
leaq 0x4cce(%rip), %rsi      # 0xe284
leaq 0x9d13(%rip), %rdx      # 0x132d0
callq 0x8fe7
movq %rax, %r14
leaq 0x521b(%rip), %rdi      # 0xe7e7
movq %rax, %rsi
xorl %eax, %eax
callq 0x41a0
movq %r14, %rdi
callq 0x4580
movb 0x30(%rbx), %al
cmpb $0xe, %al
jne 0x961b
movq 0x8(%rbx), %rdi
leaq 0x4c94(%rip), %rsi      # 0xe284
leaq 0x9cd9(%rip), %rdx      # 0x132d0
callq 0x8fe7
movq %rax, %r14
leaq 0x4df2(%rip), %rdi      # 0xe3f8
movq %rax, %rsi
xorl %eax, %eax
callq 0x41a0
movq %r14, %rdi
callq 0x4580
movb 0x30(%rbx), %al
cmpb $0xf, %al
jne 0x962d
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0x93af
movb 0x30(%rbx), %al
cmpb $0x10, %al
jne 0x963f
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0x93af
movb 0x30(%rbx), %al
cmpb $0x11, %al
jne 0x9651
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0x93af
movb 0x30(%rbx), %al
cmpb $0x12, %al
jne 0x966d
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0x93af
movl $0x21, %edi
callq 0x4060
movb 0x30(%rbx), %al
cmpb $0x13, %al
jne 0x9689
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0x93af
movl $0x3f, %edi
callq 0x4060
movb 0x30(%rbx), %al
cmpb $0x14, %al
jne 0x96a5
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0x93af
movl $0x2a, %edi
callq 0x4060
movb 0x30(%rbx), %al
cmpb $0x15, %al
jne 0x96c1
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0x93af
movl $0x2b, %edi
callq 0x4060
movb 0x30(%rbx), %al
cmpb $0x16, %al
jne 0x96e4
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0x93af
movl 0x8(%rbx), %esi
leaq 0x5113(%rip), %rdi      # 0xe7ed
xorl %eax, %eax
callq 0x41a0
movb 0x30(%rbx), %al
cmpb $0x1d, %al
jne 0x9738
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0x93af
leaq 0x50f8(%rip), %rdi      # 0xe7f2
xorl %eax, %eax
callq 0x41a0
movq 0x20(%rbx), %rdi
xorl %esi, %esi
callq 0x93af
movl $0x20, %edi
callq 0x4060
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0x93af
movl $0x29, %edi
callq 0x4060
movl $0x2a, %edi
callq 0x4060
movb 0x30(%rbx), %al
cmpb $0x17, %al
jne 0x97af
movl $0x28, %edi
callq 0x4060
movslq 0x8(%rbx), %rax
cmpq $0x1, %rax
jle 0x9790
leaq 0x509e(%rip), %r14      # 0xe7f5
xorl %r15d, %r15d
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %rdi
xorl %esi, %esi
callq 0x93af
movq %r14, %rdi
xorl %eax, %eax
callq 0x41a0
incq %r15
movslq 0x8(%rbx), %rax
decq %rax
cmpq %rax, %r15
jl 0x975a
jmp 0x9793
leaq 0x5028(%rip), %rdi      # 0xe7b3
jmp 0x9849
decq %rax
movq 0x10(%rbx), %rcx
movq (%rcx,%rax,8), %rdi
xorl %esi, %esi
callq 0x93af
movl $0x29, %edi
callq 0x4060
movb 0x30(%rbx), %al
cmpb $0x18, %al
jne 0x9813
movl $0x28, %edi
callq 0x4060
movslq 0x8(%rbx), %rax
cmpq $0x1, %rax
jle 0x97f4
xorl %r14d, %r14d
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rdi
xorl %esi, %esi
callq 0x93af
movl $0x20, %edi
callq 0x4060
incq %r14
movslq 0x8(%rbx), %rax
decq %rax
cmpq %rax, %r14
jl 0x97ca
jmp 0x97f7
decq %rax
movq 0x18(%rbx), %rcx
movq (%rcx,%rax,8), %rdi
xorl %esi, %esi
callq 0x93af
movl $0x29, %edi
callq 0x4060
movb 0x30(%rbx), %al
cmpb $0x19, %al
jne 0x9833
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0x93af
leaq 0x4fd0(%rip), %rdi      # 0xe7f9
xorl %eax, %eax
callq 0x41a0
movb 0x30(%rbx), %al
cmpb $0x1a, %al
jne 0x985e
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0x93af
leaq 0x4fb0(%rip), %rdi      # 0xe7f9
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x41a0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq