// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdi, -0x8(%rbp)
leaq 0x3557(%rip), %rdi      # 0x90dd
movb $0x0, %al
callq 0x20a0
callq 0x6aa0
leaq 0x358b(%rip), %rdi      # 0x9124
leaq 0x6560(%rip), %rsi      # 0xc100
movb $0x0, %al
callq 0x20a0
movq 0x6422(%rip), %rax      # 0xbfd0
movq (%rax), %rdi
leaq -0x80(%rbp), %rsi
movl $0x64, %edx
callq 0x5d90
movsbl -0x80(%rbp), %eax
cmpl $0x0, %eax
jne 0x5bd8
leaq -0x80(%rbp), %rdi
leaq 0x652d(%rip), %rsi      # 0xc100
callq 0x2040
leaq -0xf0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0x2040
leaq -0xf0(%rbp), %rdi
xorl %esi, %esi
callq 0x6b50
cmpl $0x0, %eax
je 0x5b92
leaq -0x80(%rbp), %rsi
leaq 0x64fa(%rip), %rdi      # 0xc100
callq 0x2040
leaq 0x354e(%rip), %rdi      # 0x9160
movb $0x0, %al
callq 0x20a0
leaq 0x357d(%rip), %rdi      # 0x919d
movb $0x0, %al
callq 0x20a0
leaq 0x35a5(%rip), %rdi      # 0x91d3
leaq 0x653b(%rip), %rsi      # 0xc170
movb $0x0, %al
callq 0x20a0
movq 0x638d(%rip), %rax      # 0xbfd0
movq (%rax), %rdi
leaq -0x80(%rbp), %rsi
movl $0x64, %edx
callq 0x5d90
cmpb $0x0, -0x80(%rbp)
je 0x5c7f
movsbl -0x80(%rbp), %ecx
leaq 0x35b3(%rip), %rsi      # 0x9218
leaq 0x35a8(%rip), %rax      # 0x9214
cmpl $0x79, %ecx
cmoveq %rax, %rsi
leaq 0x64f6(%rip), %rdi      # 0xc170
callq 0x2040
leaq 0x3595(%rip), %rdi      # 0x921b
movb $0x0, %al
callq 0x20a0
leaq 0x35c6(%rip), %rdi      # 0x925a
movb $0x0, %al
callq 0x20a0
leaq 0x35f6(%rip), %rdi      # 0x9298
movb $0x0, %al
callq 0x20a0
leaq 0x3603(%rip), %rdi      # 0x92b3
leaq 0x6529(%rip), %rsi      # 0xc1e0
movb $0x0, %al
callq 0x20a0
movq 0x630b(%rip), %rax      # 0xbfd0
movq (%rax), %rdi
leaq -0x80(%rbp), %rsi
movl $0x64, %edx
callq 0x5d90
cmpb $0x0, -0x80(%rbp)
je 0x5cec
leaq -0x80(%rbp), %rsi
leaq 0x64f9(%rip), %rdi      # 0xc1e0
callq 0x2040
movq -0x8(%rbp), %rdi
leaq 0x39d7(%rip), %rsi      # 0x96ce
callq 0x2180
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x37c9(%rip), %rsi      # 0x94d4
leaq 0x657e(%rip), %rdx      # 0xc290
movb $0x0, %al
callq 0x2150
leaq 0x6530(%rip), %rax      # 0xc250
movq %rax, -0xf8(%rbp)
movq -0xf8(%rbp), %rax
cmpq $0x0, (%rax)
je 0x5d6f
movq -0x10(%rbp), %rdi
movq -0xf8(%rbp), %rax
movq (%rax), %rdx
movq -0xf8(%rbp), %rax
movq 0x8(%rax), %rcx
leaq 0x3575(%rip), %rsi      # 0x92c9
movb $0x0, %al
callq 0x2150
movq -0xf8(%rbp), %rax
addq $0x10, %rax
movq %rax, -0xf8(%rbp)
jmp 0x5d27
movq -0x10(%rbp), %rdi
callq 0x2060
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
nopw %cs:(%rax,%rax)