// File: /workspace/github_c_makefile_star2_O3/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 $0x48, %rsp
movq %rsi, %rbx
movl %edi, %r14d
movq $0x0, -0x68(%rbp)
movq $0x0, -0x38(%rbp)
leaq 0x7363(%rip), %r12      # 0xa106
movq $0x0, -0x30(%rbp)
xorl %r15d, %r15d
movq $0x0, -0x48(%rbp)
movl %r14d, %edi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x2260
cmpl $0x61, %eax
jle 0x2df9
cmpl $0x62, %eax
je 0x2e5b
cmpl $0x6f, %eax
je 0x2eb2
cmpl $0x72, %eax
jne 0x2db6
movq 0xa1f1(%rip), %rax      # 0xcfd8
movq (%rax), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x21c0
movq %rax, -0x48(%rbp)
jmp 0x2db6
cmpl $-0x1, %eax
je 0x2efc
cmpl $0x61, %eax
je 0x2e11
cmpl $0x3f, %eax
jne 0x2db6
jmp 0x2fa9
movq %r15, -0x40(%rbp)
movq 0xa1bc(%rip), %rax      # 0xcfd8
movq (%rax), %r15
movq %r15, %rdi
callq 0x20e0
movslq %eax, %r13
leaq 0xc(%r13), %rdi
callq 0x2200
movl $0x1, (%rax)
movl %r13d, 0x4(%rax)
testq %r15, %r15
movq %rax, -0x38(%rbp)
je 0x2ea3
leaq 0x8(%rax), %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x21d0
movq -0x38(%rbp), %rax
jmp 0x2ea3
movq %r15, -0x40(%rbp)
movq 0xa172(%rip), %rax      # 0xcfd8
movq (%rax), %r15
movq %r15, %rdi
callq 0x20e0
movslq %eax, %r13
leaq 0xc(%r13), %rdi
callq 0x2200
movl $0x1, (%rax)
movl %r13d, 0x4(%rax)
testq %r15, %r15
movq %rax, -0x30(%rbp)
je 0x2ea3
leaq 0x8(%rax), %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x21d0
movq -0x30(%rbp), %rax
movb $0x0, 0x8(%rax,%r13)
movq -0x40(%rbp), %r15
jmp 0x2db6
movq 0xa11f(%rip), %rax      # 0xcfd8
movq (%rax), %r15
movq %r15, %rdi
callq 0x20e0
movslq %eax, %r13
leaq 0xc(%r13), %rdi
callq 0x2200
movq %r15, %rsi
movq %rax, %r15
movl $0x1, (%rax)
movl %r13d, 0x4(%rax)
testq %rsi, %rsi
je 0x2ef1
leaq 0x8(%r15), %rdi
movq %r13, %rdx
callq 0x21d0
movb $0x0, 0x8(%r15,%r13)
jmp 0x2db6
movq %r15, -0x50(%rbp)
movq -0x30(%rbp), %rcx
movq %rcx, -0x58(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x48(%rbp), %rdx
movl %edx, -0x68(%rbp)
testq %r15, %r15
je 0x2fb3
testq %rax, %rax
setne %al
testq %rcx, %rcx
setne %cl
testb %cl, %al
jne 0x2f34
testl %edx, %edx
jle 0x2fb3
leaq -0x68(%rbp), %rbx
movq %rbx, %rdi
callq 0x3a18
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x2f5e
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x2f5e
testl %eax, %eax
jne 0x2fb8
callq 0x2030
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x2f7c
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x2f7c
testl %eax, %eax
jne 0x2fb8
callq 0x2030
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x2f9a
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x2f9a
testl %eax, %eax
jne 0x2fb8
callq 0x2030
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x16, %edi
callq 0x2280
callq 0x2388
leaq 0x70c2(%rip), %rdi      # 0xa081
leaq 0x70c7(%rip), %rsi      # 0xa08d
leaq 0x70c7(%rip), %rcx      # 0xa094
movl $0x2d, %edx
callq 0x2130