// File: /workspace/github_c_makefile_star2_O3/hansvanstaveren[P]BigDeal/main.c
// Function: write_init_file
void
write_init_file(char *ifname)
/*
 * Prompt for defaults, and write init_file
 */
{
	FILE *ifile;
	char buf1[MESSLEN], buf2[MESSLEN];
	struct ifrecord *ifrp;

	printf("This program can generate various hand formats, one or more per run:\n\n");
	output_help();
	do {
		printf("Give comma separated list of formats usually desired: [%s] ",
			default_formats);
		readline(stdin, buf1, MESSLEN);
		if (buf1[0] == 0)
			strcpy(buf1, default_formats);
		strcpy(buf2, buf1);
	} while (output_specify_formats(buf2, 0)==0);
	strcpy(default_formats, buf1);

	printf("\nNormally you will always use the format(s) just specified,\n");
	printf("but maybe you would like to change it for some runs.\n");
	printf("Do you want the program to reconfirm the format every run? [%s] ", default_askformats);
	readline(stdin, buf1, MESSLEN);
	if (buf1[0])
		strcpy(default_askformats, buf1[0] == 'y' ? "yes" : "no");

	printf("\nIf you give an identification string the program will ensure\n");
	printf("that nobody with a different identification can generate the\n");
	printf("same sets of deals as you\n");
	printf("identication? [%s]\n? ", default_owner);
	readline(stdin, buf1, MESSLEN);
	if (buf1[0])
		strcpy(default_owner, buf1);

	ifile = fopen(ifname, "w");
	fprintf(ifile, "%s\n", init_header);
	for (ifrp=init_file; ifrp->if_keyword; ifrp++) {
		fprintf(ifile, "%s=%s\n", ifrp->if_keyword, ifrp->if_value);
	}
	fclose(ifile);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
leaq 0x2692(%rip), %rdi      # 0x6281
callq 0x2060
callq 0x465b
leaq 0x2431(%rip), %r14      # 0x6031
leaq 0x5509(%rip), %r15      # 0x9110
movq 0x53ba(%rip), %rbp      # 0x8fc8
movq %rsp, %r12
leaq 0x70(%rsp), %r13
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x20c0
movq (%rbp), %rdi
movq %r12, %rsi
movl $0x64, %edx
callq 0x3db2
cmpb $0x0, (%rsp)
jne 0x3c45
movq %r12, %rdi
movq %r15, %rsi
callq 0x2050
movq %r13, %rdi
movq %r12, %rsi
callq 0x2050
movq %r13, %rdi
xorl %esi, %esi
callq 0x46d1
testl %eax, %eax
je 0x3c16
leaq 0x54ab(%rip), %rdi      # 0x9110
movq %rsp, %r14
movq %r14, %rsi
callq 0x2050
leaq 0x2650(%rip), %rdi      # 0x62c7
callq 0x2060
leaq 0x2680(%rip), %rdi      # 0x6303
callq 0x2060
leaq 0x23de(%rip), %rdi      # 0x606d
leaq 0x54ea(%rip), %rsi      # 0x9180
xorl %eax, %eax
callq 0x20c0
movq (%rbp), %rdi
movq %r14, %rsi
movl $0x64, %edx
callq 0x3db2
movb (%r14), %al
testb %al, %al
je 0x3cd5
cmpb $0x79, %al
leaq 0x23f0(%rip), %rax      # 0x60ae
leaq 0x23ed(%rip), %rsi      # 0x60b2
cmoveq %rax, %rsi
leaq 0x54b0(%rip), %rdi      # 0x9180
callq 0x2050
leaq 0x265c(%rip), %rdi      # 0x6338
callq 0x2060
leaq 0x268e(%rip), %rdi      # 0x6376
callq 0x2060
leaq 0x26bf(%rip), %rdi      # 0x63b3
callq 0x2060
leaq 0x23b5(%rip), %rdi      # 0x60b5
leaq 0x54e9(%rip), %rsi      # 0x91f0
xorl %eax, %eax
callq 0x20c0
movq (%rbp), %rdi
movq %rsp, %r14
movq %r14, %rsi
movl $0x64, %edx
callq 0x3db2
cmpb $0x0, (%r14)
je 0x3d37
leaq 0x54c1(%rip), %rdi      # 0x91f0
movq %rsp, %rsi
callq 0x2050
leaq 0x299a(%rip), %rsi      # 0x66d8
movq %rbx, %rdi
callq 0x21a0
movq %rax, %rbx
leaq 0x2780(%rip), %rsi      # 0x64d0
leaq 0x5549(%rip), %rdx      # 0x92a0
movq %rax, %rdi
xorl %eax, %eax
callq 0x2180
movq 0x54f8(%rip), %rdx      # 0x9260
testq %rdx, %rdx
je 0x3d98
leaq 0x54fc(%rip), %r15      # 0x9270
leaq 0x2350(%rip), %r14      # 0x60cb
movq -0x8(%r15), %rcx
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x2180
movq (%r15), %rdx
addq $0x10, %r15
testq %rdx, %rdx
jne 0x3d7b
movq %rbx, %rdi
callq 0x2080
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq