// File: /workspace/github_c_makefile_star2_O1/findstr[P]version-database/main.c
// Function: diff_h
static void
diff_h(int argc, char *argv[])
{
	int c;
	struct diff_args args;
	memset(&args, 0, sizeof(args));
	while ((c = getopt(argc, argv, "r:a:b:o:?")) != -1){
		switch (c) {
		case 'r':
			args.r = strtol(optarg, NULL, 0);;
			break;
		case 'a':
			args.a = dr_newstr(optarg);
			break;
		case 'b':
			args.b = dr_newstr(optarg);
			break;
		case 'o':
			args.o = dr_newstr(optarg);
			break;
		case '?':
			exit(EINVAL);
			break;
		}
	}
	if (!(args.o && ((args.a && args.b) || args.r > 0))) {
		fprintf(stderr, "usage: \n"
			"\t%s diff -a from -b to -o dir\n"
			"\t%s diff -r -o dir\n",
			EXEC, EXEC);
		exit(EINVAL);
	}
	diff(&args);
	dr_unref(args.a);
	dr_unref(args.b);
	dr_unref(args.o);
	return ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movl %edi, %r14d
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movaps %xmm0, -0x50(%rbp)
movl %r14d, %edi
movq %rbx, %rsi
leaq 0x73b4(%rip), %rdx      # 0xa106
callq 0x2250
cmpl $0x61, %eax
jg 0x2da9
jne 0x2dd7
movq 0xa273(%rip), %rax      # 0xcfd8
movq (%rax), %r12
movq %r12, %rdi
callq 0x20e0
movslq %eax, %r13
leaq 0xc(%r13), %rdi
callq 0x21f0
movq %rax, %r15
movl $0x1, (%rax)
movl %r13d, 0x4(%rax)
testq %r12, %r12
je 0x2d9d
leaq 0x8(%r15), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x21c0
movb $0x0, 0x8(%r15,%r13)
movq %r15, -0x48(%rbp)
jmp 0x2d45
cmpl $0x62, %eax
je 0x2dee
cmpl $0x6f, %eax
je 0x2e3c
cmpl $0x72, %eax
jne 0x2d45
movq 0xa215(%rip), %rax      # 0xcfd8
movq (%rax), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21b0
movl %eax, -0x50(%rbp)
jmp 0x2d45
cmpl $-0x1, %eax
je 0x2e8a
cmpl $0x3f, %eax
jne 0x2d45
jmp 0x2f24
movq 0xa1e3(%rip), %rax      # 0xcfd8
movq (%rax), %r12
movq %r12, %rdi
callq 0x20e0
movslq %eax, %r13
leaq 0xc(%r13), %rdi
callq 0x21f0
movq %rax, %r15
movl $0x1, (%rax)
movl %r13d, 0x4(%rax)
testq %r12, %r12
je 0x2e2d
leaq 0x8(%r15), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x21c0
movb $0x0, 0x8(%r15,%r13)
movq %r15, -0x40(%rbp)
jmp 0x2d45
movq 0xa195(%rip), %rax      # 0xcfd8
movq (%rax), %r12
movq %r12, %rdi
callq 0x20e0
movslq %eax, %r13
leaq 0xc(%r13), %rdi
callq 0x21f0
movq %rax, %r15
movl $0x1, (%rax)
movl %r13d, 0x4(%rax)
testq %r12, %r12
je 0x2e7b
leaq 0x8(%r15), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x21c0
movb $0x0, 0x8(%r15,%r13)
movq %r15, -0x38(%rbp)
jmp 0x2d45
cmpq $0x0, -0x38(%rbp)
je 0x2f2e
cmpq $0x0, -0x48(%rbp)
setne %al
cmpq $0x0, -0x40(%rbp)
setne %cl
testb %cl, %al
jne 0x2eaf
cmpl $0x0, -0x50(%rbp)
jle 0x2f2e
leaq -0x50(%rbp), %rbx
movq %rbx, %rdi
callq 0x3950
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x2ed9
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x2ed9
testl %eax, %eax
jne 0x2f33
callq 0x2030
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x2ef7
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x2ef7
testl %eax, %eax
jne 0x2f33
callq 0x2030
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x2f15
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x2f15
testl %eax, %eax
jne 0x2f33
callq 0x2030
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x16, %edi
callq 0x2270
callq 0x237b
leaq 0x7147(%rip), %rdi      # 0xa081
leaq 0x714c(%rip), %rsi      # 0xa08d
leaq 0x714c(%rip), %rcx      # 0xa094
movl $0x2d, %edx
callq 0x2130