// File: /workspace/github_c_makefile_star2_O3/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 0x5fc7
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
movl $0x5b, %edi
movq %rbx, %rsi
callq 0x10d0
testq %r12, %r12
je 0x5fd6
movq %r12, %rdi
movq %rbx, %rsi
callq 0x10c0
testl %r15d, %r15d
je 0x6193
leaq 0x19ea(%rip), %rdi      # 0x799d
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x1180
jmp 0x5fdf
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %r15d, %r15d
je 0x6193
leal -0x1(%r15), %r12d
movl %r15d, %r15d
shlq $0x5, %r12
shlq $0x5, %r15
leaq 0x19c3(%rip), %rbp      # 0x79b8
xorl %r13d, %r13d
movl (%r14,%r13), %eax
cmpl $0x3, %eax
je 0x6060
cmpl $0x2, %eax
je 0x603b
cmpl $0x1, %eax
jne 0x60a6
movq 0x8(%r14,%r13), %rsi
movq %rbx, %rdi
callq 0x5ef9
cmpb $0x0, 0x18(%r14,%r13)
jne 0x60bf
movl $0x7, %esi
movl $0x1, %edx
leaq 0x196f(%rip), %rdi      # 0x79a8
jmp 0x60b7
movq 0x8(%r14,%r13), %rsi
movq %rbx, %rdi
callq 0x5ef9
movl 0x18(%r14,%r13), %edx
movq %rbx, %rdi
leaq 0x1959(%rip), %rsi      # 0x79b0
xorl %eax, %eax
callq 0x1100
jmp 0x60bf
movq 0x8(%r14,%r13), %rsi
movq %rbx, %rdi
callq 0x5ef9
movl $0x2, %esi
movl $0x1, %edx
leaq 0x1896(%rip), %rdi      # 0x7914
movq %rbx, %rcx
callq 0x1180
movq 0x18(%r14,%r13), %rsi
movq %rbx, %rdi
callq 0x5ef9
movl $0x2, %esi
movl $0x1, %edx
leaq 0x1911(%rip), %rdi      # 0x79b5
jmp 0x60b7
movl $0x7, %esi
movl $0x1, %edx
leaq 0x131a(%rip), %rdi      # 0x73d1
movq %rbx, %rcx
callq 0x1180
testb $0xf, 0x10(%r14,%r13)
je 0x6168
movl $0x2, %esi
movl $0x1, %edx
movq %rbp, %rdi
movq %rbx, %rcx
callq 0x1180
movb 0x10(%r14,%r13), %al
testb $0x1, %al
je 0x6107
movl $0xb, %esi
movl $0x1, %edx
leaq 0x18c1(%rip), %rdi      # 0x79bb
movq %rbx, %rcx
callq 0x1180
movb 0x10(%r14,%r13), %al
testb $0x2, %al
je 0x6129
movl $0xb, %esi
movl $0x1, %edx
leaq 0x18ab(%rip), %rdi      # 0x79c7
movq %rbx, %rcx
callq 0x1180
movb 0x10(%r14,%r13), %al
testb $0x4, %al
je 0x614b
movl $0x10, %esi
movl $0x1, %edx
leaq 0x1895(%rip), %rdi      # 0x79d3
movq %rbx, %rcx
callq 0x1180
movb 0x10(%r14,%r13), %al
testb $0x8, %al
je 0x6168
movl $0x8, %esi
movl $0x1, %edx
leaq 0x1884(%rip), %rdi      # 0x79e4
movq %rbx, %rcx
callq 0x1180
cmpq %r13, %r12
je 0x6186
movl $0x2, %esi
movl $0x1, %edx
leaq 0x181f(%rip), %rdi      # 0x799d
movq %rbx, %rcx
callq 0x1180
addq $0x20, %r13
cmpq %r13, %r15
jne 0x5ff8
movl $0x5d, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10d0