// File: /workspace/github_c_makefile_star2_O1/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 0x954f
cmpb $0x0, 0x31(%rbx)
je 0x954f
movq (%rbx), %rsi
testq %rsi, %rsi
je 0x98ca
leaq 0x5244(%rip), %rdi      # 0xe77e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x41a0
cmpb $0x0, 0x30(%rbx)
jne 0x9563
leaq 0x522e(%rip), %rdi      # 0xe78a
xorl %eax, %eax
callq 0x41a0
cmpb $0x1, 0x30(%rbx)
jne 0x9577
leaq 0x521e(%rip), %rdi      # 0xe78e
xorl %eax, %eax
callq 0x41a0
cmpb $0x2, 0x30(%rbx)
jne 0x958b
leaq 0x520e(%rip), %rdi      # 0xe792
xorl %eax, %eax
callq 0x41a0
cmpb $0x3, 0x30(%rbx)
jne 0x959f
leaq 0x51fe(%rip), %rdi      # 0xe796
xorl %eax, %eax
callq 0x41a0
cmpb $0x7, 0x30(%rbx)
jne 0x95b3
leaq 0x51ee(%rip), %rdi      # 0xe79a
xorl %eax, %eax
callq 0x41a0
cmpb $0x6, 0x30(%rbx)
jne 0x95c7
leaq 0x51de(%rip), %rdi      # 0xe79e
xorl %eax, %eax
callq 0x41a0
cmpb $0x5, 0x30(%rbx)
jne 0x95df
movq 0x10(%rbx), %rsi
leaq 0x5013(%rip), %rdi      # 0xe5eb
xorl %eax, %eax
callq 0x41a0
cmpb $0x8, 0x30(%rbx)
jne 0x95f3
leaq 0x51b6(%rip), %rdi      # 0xe7a2
xorl %eax, %eax
callq 0x41a0
cmpb $0xd, 0x30(%rbx)
jne 0x9607
leaq 0x51a6(%rip), %rdi      # 0xe7a6
xorl %eax, %eax
callq 0x41a0
cmpb $0x9, 0x30(%rbx)
jne 0x964a
movb 0x8(%rbx), %al
leaq 0x6(%rsp), %rdi
movb %al, (%rdi)
movb $0x0, 0x1(%rdi)
leaq 0x4c62(%rip), %rsi      # 0xe284
leaq 0x9ca7(%rip), %rdx      # 0x132d0
callq 0x9111
movq %rax, %r14
leaq 0x4d6a(%rip), %rdi      # 0xe3a2
movq %rax, %rsi
xorl %eax, %eax
callq 0x41a0
movq %r14, %rdi
callq 0x4580
cmpb $0xc, 0x30(%rbx)
jne 0x96bf
movb 0x8(%rbx), %al
leaq 0x6(%rsp), %r14
movb %al, (%r14)
xorl %ebp, %ebp
movb %bpl, 0x1(%r14)
leaq 0x4c1c(%rip), %r15      # 0xe284
leaq 0x9c61(%rip), %r12      # 0x132d0
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x9111
movq %rax, %r13
movb 0x9(%rbx), %al
movb %al, (%r14)
movb %bpl, 0x1(%r14)
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x9111
movq %rax, %r14
leaq 0x5108(%rip), %rdi      # 0xe7aa
movq %r13, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x41a0
movq %r13, %rdi
callq 0x4580
movq %r14, %rdi
callq 0x4580
cmpb $0xa, 0x30(%rbx)
jne 0x96f8
movq 0x8(%rbx), %rdi
leaq 0x4bb4(%rip), %rsi      # 0xe284
leaq 0x9bf9(%rip), %rdx      # 0x132d0
callq 0x9111
movq %rax, %r14
leaq 0x50cc(%rip), %rdi      # 0xe7b2
movq %rax, %rsi
xorl %eax, %eax
callq 0x41a0
movq %r14, %rdi
callq 0x4580
cmpb $0xb, 0x30(%rbx)
jne 0x9731
movq 0x8(%rbx), %rdi
leaq 0x4b7b(%rip), %rsi      # 0xe284
leaq 0x9bc0(%rip), %rdx      # 0x132d0
callq 0x9111
movq %rax, %r14
leaq 0x5098(%rip), %rdi      # 0xe7b7
movq %rax, %rsi
xorl %eax, %eax
callq 0x41a0
movq %r14, %rdi
callq 0x4580
cmpb $0xe, 0x30(%rbx)
jne 0x976a
movq 0x8(%rbx), %rdi
leaq 0x4b42(%rip), %rsi      # 0xe284
leaq 0x9b87(%rip), %rdx      # 0x132d0
callq 0x9111
movq %rax, %r14
leaq 0x4c70(%rip), %rdi      # 0xe3c8
movq %rax, %rsi
xorl %eax, %eax
callq 0x41a0
movq %r14, %rdi
callq 0x4580
cmpb $0xf, 0x30(%rbx)
jne 0x977b
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0x950f
cmpb $0x10, 0x30(%rbx)
jne 0x978c
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0x950f
cmpb $0x11, 0x30(%rbx)
jne 0x979d
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0x950f
cmpb $0x12, 0x30(%rbx)
jne 0x97b8
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0x950f
movl $0x21, %edi
callq 0x4060
cmpb $0x13, 0x30(%rbx)
jne 0x97d3
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0x950f
movl $0x3f, %edi
callq 0x4060
cmpb $0x14, 0x30(%rbx)
jne 0x97ee
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0x950f
movl $0x2a, %edi
callq 0x4060
cmpb $0x15, 0x30(%rbx)
jne 0x9809
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0x950f
movl $0x2b, %edi
callq 0x4060
cmpb $0x16, 0x30(%rbx)
jne 0x982b
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0x950f
movl 0x8(%rbx), %esi
leaq 0x4f99(%rip), %rdi      # 0xe7bd
xorl %eax, %eax
callq 0x41a0
cmpb $0x1d, 0x30(%rbx)
jne 0x987e
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0x950f
leaq 0x4f7f(%rip), %rdi      # 0xe7c2
xorl %eax, %eax
callq 0x41a0
movq 0x20(%rbx), %rdi
xorl %esi, %esi
callq 0x950f
movl $0x20, %edi
callq 0x4060
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0x950f
movl $0x29, %edi
callq 0x4060
movl $0x2a, %edi
callq 0x4060
cmpb $0x17, 0x30(%rbx)
jne 0x98f3
movl $0x28, %edi
callq 0x4060
movl 0x8(%rbx), %eax
cmpl $0x2, %eax
jl 0x98d6
leaq 0x4f28(%rip), %r14      # 0xe7c5
xorl %r15d, %r15d
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %rdi
xorl %esi, %esi
callq 0x950f
movq %r14, %rdi
xorl %eax, %eax
callq 0x41a0
incq %r15
movslq 0x8(%rbx), %rax
decq %rax
cmpq %rax, %r15
jl 0x98a0
jmp 0x98d8
leaq 0x4eb2(%rip), %rdi      # 0xe783
jmp 0x998c
decl %eax
movq 0x10(%rbx), %rcx
cltq
movq (%rcx,%rax,8), %rdi
xorl %esi, %esi
callq 0x950f
movl $0x29, %edi
callq 0x4060
cmpb $0x18, 0x30(%rbx)
jne 0x9955
movl $0x28, %edi
callq 0x4060
movl 0x8(%rbx), %eax
cmpl $0x2, %eax
jl 0x9938
xorl %r14d, %r14d
movq 0x18(%rbx), %rax
movq (%rax,%r14,8), %rdi
xorl %esi, %esi
callq 0x950f
movl $0x20, %edi
callq 0x4060
incq %r14
movslq 0x8(%rbx), %rax
decq %rax
cmpq %rax, %r14
jl 0x990e
jmp 0x993a
decl %eax
movq 0x18(%rbx), %rcx
cltq
movq (%rcx,%rax,8), %rdi
xorl %esi, %esi
callq 0x950f
movl $0x29, %edi
callq 0x4060
cmpb $0x19, 0x30(%rbx)
jne 0x9974
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0x950f
leaq 0x4e5c(%rip), %rdi      # 0xe7c9
xorl %eax, %eax
callq 0x41a0
cmpb $0x1a, 0x30(%rbx)
jne 0x99a1
movq 0x8(%rbx), %rdi
xorl %esi, %esi
callq 0x950f
leaq 0x4e3d(%rip), %rdi      # 0xe7c9
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