// File: /workspace/github_c_makefile_star2_O1/hansvanstaveren[P]BigDeal/output.c
// Function: output_specify_formats
int
output_specify_formats(char *format_string, int for_real)
/*
 * Comma separated list of output formats to use
 *
 * Return value is used to check validity of string
 */
{
	char **ofvector;
	of_p ofp;
	int found;
	int retval;

	retval = 1;	/* While all OK */
	for(ofvector = tokenize(format_string, ','); *ofvector; ofvector++) {
		found = 0;
		for (ofp=output_formats; ofp->of_name; ofp++) {
			if (strcmp(ofp->of_name, *ofvector) == 0) {
				if (suf_in_use(ofp->of_name, ofp->of_suffix)) {
					retval = 0;
				} else {
					ofp->of_flags |= OFF_USEIT;
				}
				found++;
				break;
			}
		}
		if (!found) {
			fprintf(stderr, "Format %s unknown\n", *ofvector);
			retval = 0;
		}
	}

	if (!for_real) {
		/*
		 * This was just a test, clean up
		 */
		for (ofp=output_formats; ofp->of_name; ofp++) {
			ofp->of_flags &= ~OFF_USEIT;
		}
	}

	return retval;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, 0xc(%rsp)
movq %rdi, %r14
leaq 0x75bf(%rip), %rbx      # 0xbc90
xorl %r15d, %r15d
movq %r14, (%rbx)
movq %r14, %rdi
movl $0x2c, %esi
callq 0x20b0
testq %rax, %rax
je 0x46f7
movq %rax, %r14
incq %r14
movb $0x0, (%rax)
movq %r14, %rdx
jmp 0x46f9
xorl %edx, %edx
addq $0x8, %rbx
cmpq $0x8, %r15
ja 0x470b
incq %r15
testq %rdx, %rdx
jne 0x46d4
testq %rdx, %rdx
jne 0x488e
movq $0x0, (%rbx)
movq 0x756e(%rip), %r13      # 0xbc90
testq %r13, %r13
je 0x484d
leaq 0x755e(%rip), %r14      # 0xbc90
movl $0x1, 0x8(%rsp)
leaq 0x4b6f(%rip), %r15      # 0x92b0
movq 0x4b68(%rip), %r12      # 0x92b0
testq %r12, %r12
sete %bpl
je 0x47ea
movq %r12, %rdi
movq %r13, %rsi
callq 0x2150
movq %r15, %rbx
testl %eax, %eax
je 0x478a
movq %r15, %rbx
movq 0x48(%rbx), %r12
testq %r12, %r12
sete %bpl
je 0x47ea
addq $0x48, %rbx
movq %r12, %rdi
movq %r13, %rsi
callq 0x2150
testl %eax, %eax
jne 0x476a
movq %r14, 0x10(%rsp)
movq 0x4b1a(%rip), %r13      # 0x92b0
testq %r13, %r13
je 0x47da
movq 0x18(%rbx), %r15
leaq 0x4b52(%rip), %r14      # 0x92f8
testb $0x1, -0x40(%r14)
je 0x47ce
movq -0x30(%r14), %rdi
testq %rdi, %rdi
je 0x47c9
testq %r15, %r15
je 0x47ce
movq %r15, %rsi
callq 0x2150
testl %eax, %eax
jne 0x47ce
jmp 0x4814
testq %r15, %r15
je 0x4814
movq (%r14), %r13
addq $0x48, %r14
testq %r13, %r13
jne 0x47a6
orb $0x1, 0x8(%rbx)
movq 0x10(%rsp), %r14
leaq 0x4ac6(%rip), %r15      # 0x92b0
testb %bpl, %bpl
jne 0x4802
movq 0x8(%r14), %r13
addq $0x8, %r14
testq %r13, %r13
jne 0x4741
jmp 0x4855
movq %r14, %rdi
callq 0x226d
movl $0x0, 0x8(%rsp)
jmp 0x47ef
testq %r15, %r15
movq 0x47d2(%rip), %rax      # 0x8ff0
movq (%rax), %rdi
leaq 0x208c(%rip), %rax      # 0x68b4
cmoveq %rax, %r15
movl $0x0, 0x8(%rsp)
leaq 0x204d(%rip), %rsi      # 0x6888
movq %r12, %rdx
movq %r13, %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x2180
jmp 0x47de
movl $0x1, 0x8(%rsp)
cmpl $0x0, 0xc(%rsp)
jne 0x487b
cmpq $0x0, 0x4a4c(%rip)      # 0x92b0
je 0x487b
leaq 0x4a4b(%rip), %rax      # 0x92b8
andb $-0x2, (%rax)
cmpq $0x0, 0x40(%rax)
leaq 0x48(%rax), %rax
jne 0x486d
movl 0x8(%rsp), %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x475b(%rip), %rax      # 0x8ff0
movq (%rax), %rdi
leaq 0x1fcb(%rip), %rsi      # 0x686a
xorl %eax, %eax
callq 0x2180
jmp 0x4714