// File: /workspace/github_c_makefile_star2_O0/hansvanstaveren[P]BigDeal/output.c
// Function: init_dlmcommon
static void
init_dlmcommon(FILE *out, int dups, int show)
{
	int checksum;

	/*
	 * Very badly documented, sorry(not my fault)
	 */
	fprintf(out, "[Document]\n");
	fprintf(out, "Headline=Generated by Big Deal version %d.%d%s\n",
		VERSION_MAJOR, VERSION_MINOR, VERSION_PAREN);
	fprintf(out, "Status=%s\n", show ? "Show" : "Sealed");
	fprintf(out, "Duplicates=%d\n", dups);
	fprintf(out, "From board=%d\n",
		prparp->pp_lowboard<=99 ? prparp->pp_lowboard : 99);
	fprintf(out, "To board=%d\n",
		prparp->pp_highboard<=99 ? prparp->pp_highboard : 99);
	fprintf(out, "Next board to duplimate=0\n");
	fprintf(out, "PrintOuts=0\n");
	fprintf(out, "Crypto key=0\n");
	checksum = dups ^ prparp->pp_lowboard ^ prparp->pp_highboard;
	if (show)
		checksum ^= 1;	/* XOR with 1 if show */
	fprintf(out, "Checksum=%d\n", checksum);
	fill_dlm(out, 0, prparp->pp_lowboard);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x1657(%rip), %rsi      # 0x9684
movb $0x0, %al
callq 0x2150
movq -0x8(%rbp), %rdi
leaq 0x1651(%rip), %rsi      # 0x9690
movl $0x2, %edx
xorl %ecx, %ecx
leaq 0x1443(%rip), %r8       # 0x9490
movb $0x0, %al
callq 0x2150
movq -0x8(%rbp), %rdi
movl -0x10(%rbp), %ecx
leaq 0x166e(%rip), %rdx      # 0x96d0
leaq 0x1662(%rip), %rax      # 0x96cb
cmpl $0x0, %ecx
cmovneq %rax, %rdx
leaq 0x1649(%rip), %rsi      # 0x96c0
movb $0x0, %al
callq 0x2150
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %edx
leaq 0x164b(%rip), %rsi      # 0x96d7
movb $0x0, %al
callq 0x2150
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq 0x6cae(%rip), %rax      # 0xed50
cmpl $0x63, (%rax)
jg 0x80b5
movq 0x6ca2(%rip), %rax      # 0xed50
movl (%rax), %eax
movl %eax, -0x24(%rbp)
jmp 0x80bf
movl $0x63, %eax
movl %eax, -0x24(%rbp)
jmp 0x80bf
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %edx
leaq 0x1619(%rip), %rsi      # 0x96e6
movb $0x0, %al
callq 0x2150
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq 0x6c6d(%rip), %rax      # 0xed50
cmpl $0x63, 0x4(%rax)
jg 0x80f8
movq 0x6c60(%rip), %rax      # 0xed50
movl 0x4(%rax), %eax
movl %eax, -0x34(%rbp)
jmp 0x8102
movl $0x63, %eax
movl %eax, -0x34(%rbp)
jmp 0x8102
movq -0x30(%rbp), %rdi
movl -0x34(%rbp), %edx
leaq 0x15e5(%rip), %rsi      # 0x96f5
movb $0x0, %al
callq 0x2150
movq -0x8(%rbp), %rdi
leaq 0x15e0(%rip), %rsi      # 0x9702
movb $0x0, %al
callq 0x2150
movq -0x8(%rbp), %rdi
leaq 0x15e9(%rip), %rsi      # 0x971d
movb $0x0, %al
callq 0x2150
movq -0x8(%rbp), %rdi
leaq 0x15e4(%rip), %rsi      # 0x972a
movb $0x0, %al
callq 0x2150
movl -0xc(%rbp), %eax
movq 0x6bf9(%rip), %rcx      # 0xed50
xorl (%rcx), %eax
movq 0x6bf0(%rip), %rcx      # 0xed50
xorl 0x4(%rcx), %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x10(%rbp)
je 0x8175
movl -0x14(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x15b5(%rip), %rsi      # 0x9738
movb $0x0, %al
callq 0x2150
movq -0x8(%rbp), %rdi
movq 0x6bbb(%rip), %rax      # 0xed50
movl (%rax), %edx
xorl %esi, %esi
callq 0x81b0
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)