// File: /workspace/github_c_makefile_star2_O2/pali[P]bmfdec/bmf2mof.c
// Function: print_qualifiers
static void print_qualifiers(FILE *fout, struct mof_qualifier *qualifiers, uint32_t count, char *prefix) {
  uint32_t i;
  if (count > 0 || prefix) {
    fprintf(fout, "[");
    if (prefix) {
      fprintf(fout, "%s", prefix);
      if (count > 0)
        fprintf(fout, ", ");
    }
    for (i = 0; i < count; ++i) {
      switch (qualifiers[i].type) {
      case MOF_QUALIFIER_BOOLEAN:
        print_string(fout, qualifiers[i].name);
        if (!qualifiers[i].value.boolean)
          fprintf(fout, "(FALSE)");
        break;
      case MOF_QUALIFIER_SINT32:
        print_string(fout, qualifiers[i].name);
        fprintf(fout, "(%d)", qualifiers[i].value.sint32);
        break;
      case MOF_QUALIFIER_STRING:
        print_string(fout, qualifiers[i].name);
        fprintf(fout, "(\"");
        print_string(fout, qualifiers[i].value.string);
        fprintf(fout, "\")");
        break;
      default:
        fprintf(fout, "unknown");
        break;
      }
      if (qualifiers[i].toinstance || qualifiers[i].tosubclass || qualifiers[i].disableoverride || qualifiers[i].amended) {
        fprintf(fout, " :");
        if (qualifiers[i].toinstance)
          fprintf(fout, " ToInstance");
        if (qualifiers[i].tosubclass)
          fprintf(fout, " ToSubclass");
        if (qualifiers[i].disableoverride)
          fprintf(fout, " DisableOverride");
        if (qualifiers[i].amended)
          fprintf(fout, " Amended");
      }
      if (i != count-1)
        fprintf(fout, ", ");
    }
    fprintf(fout, "]");
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
testl %edx, %edx
sete %al
testq %rcx, %rcx
sete %cl
testb %cl, %al
jne 0x5455
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
pushq $0x5b
popq %rdi
movq %rbx, %rsi
callq 0x10d0
testq %r12, %r12
je 0x52bb
movq %r12, %rdi
movq %rbx, %rsi
callq 0x10c0
testl %r15d, %r15d
je 0x52bb
leaq 0x16f0(%rip), %rdi      # 0x699d
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x1180
leal -0x1(%r15), %ebp
movl %r15d, %r15d
shlq $0x5, %r15
shlq $0x5, %rbp
pushq $0x1
popq %r13
xorl %r12d, %r12d
movq %r15, (%rsp)
cmpq %r12, %r15
je 0x5464
movl (%r14,%r12), %eax
cmpl $0x3, %eax
je 0x533c
cmpl $0x2, %eax
je 0x5317
cmpl $0x1, %eax
jne 0x5384
movq 0x8(%r14,%r12), %rsi
movq %rbx, %rdi
callq 0x51fb
cmpb $0x0, 0x18(%r14,%r12)
jne 0x5399
leaq 0x1693(%rip), %rdi      # 0x69a8
jmp 0x538b
movq 0x8(%r14,%r12), %rsi
movq %rbx, %rdi
callq 0x51fb
movl 0x18(%r14,%r12), %edx
movq %rbx, %rdi
leaq 0x167d(%rip), %rsi      # 0x69b0
xorl %eax, %eax
callq 0x1100
jmp 0x5399
movq 0x8(%r14,%r12), %rsi
movq %rbx, %rdi
callq 0x51fb
leaq 0x15c4(%rip), %rdi      # 0x6914
movq %rbp, %r15
pushq $0x2
popq %rbp
movq %rbp, %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x1180
movq 0x18(%r14,%r12), %rsi
movq %rbx, %rdi
callq 0x51fb
leaq 0x163d(%rip), %rdi      # 0x69b5
movq %rbp, %rsi
movq %r15, %rbp
movq (%rsp), %r15
jmp 0x538e
leaq 0x1046(%rip), %rdi      # 0x63d1
pushq $0x7
popq %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x1180
testb $0xf, 0x10(%r14,%r12)
je 0x5432
leaq 0x160c(%rip), %rdi      # 0x69b8
pushq $0x2
popq %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x1180
movb 0x10(%r14,%r12), %al
testb $0x1, %al
je 0x53dd
leaq 0x15f1(%rip), %rdi      # 0x69bb
pushq $0xb
popq %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x1180
movb 0x10(%r14,%r12), %al
testb $0x2, %al
je 0x53fb
leaq 0x15df(%rip), %rdi      # 0x69c7
pushq $0xb
popq %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x1180
movb 0x10(%r14,%r12), %al
testb $0x4, %al
je 0x5419
leaq 0x15cd(%rip), %rdi      # 0x69d3
pushq $0x10
popq %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x1180
movb 0x10(%r14,%r12), %al
testb $0x8, %al
je 0x5432
leaq 0x15c0(%rip), %rdi      # 0x69e4
pushq $0x8
popq %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x1180
cmpq %r12, %rbp
je 0x544c
leaq 0x155f(%rip), %rdi      # 0x699d
pushq $0x2
popq %rsi
movq %r13, %rdx
movq %rbx, %rcx
callq 0x1180
addq $0x20, %r12
jmp 0x52d5
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x5d
popq %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10d0