// File: /workspace/github_c_makefile_star2_O1/findstr[P]version-database/main.c
// Function: release_h
static void
release_h(int argc, char *argv[])
{
	int c;
	struct release_args args;
	memset(&args, 0, sizeof(args));
	while ((c = getopt(argc, argv, "c:v:m:d:?")) != -1) {
		switch (c) {
		case 'c':
			args.checkout = dr_newstr(optarg);
			break;
		case 'v':
			args.version = dr_newstr(optarg);
			break;
		case 'm':
			args.describe = dr_newstr(optarg);
			break;
		case 'd':
			args.fromdir = dr_newstr(optarg);
			break;
		case '?':
			exit(EINVAL);
			break;
		}
	}
	if (args.version == NULL || args.describe == NULL) {
		fprintf(stderr, "usage: %s release -v version -m releasenote -d dir\n",
			EXEC);
		exit(EINVAL);
	}
	if (args.fromdir == NULL)
		args.fromdir = dr_newstr(".");
	release(&args);
	dr_unref(args.version);
	dr_unref(args.describe);
	dr_unref(args.fromdir);
	dr_unref(args.checkout);
}

// 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 0x7701(%rip), %rdx      # 0xa0a8
callq 0x2250
cmpl $0x63, %eax
jg 0x2a02
jne 0x2a63
movq 0xa61a(%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 0x29f6
leaq 0x8(%r15), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x21c0
movb $0x0, 0x8(%r15,%r13)
movq %r15, -0x38(%rbp)
jmp 0x299a
cmpl $0x64, %eax
je 0x2a7a
cmpl $0x6d, %eax
je 0x2ac8
cmpl $0x76, %eax
jne 0x299a
movq 0xa5bc(%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 0x2a54
leaq 0x8(%r15), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x21c0
movb $0x0, 0x8(%r15,%r13)
movq %r15, -0x50(%rbp)
jmp 0x299a
cmpl $-0x1, %eax
je 0x2b16
cmpl $0x3f, %eax
jne 0x299a
jmp 0x2be6
movq 0xa557(%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 0x2ab9
leaq 0x8(%r15), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x21c0
movb $0x0, 0x8(%r15,%r13)
movq %r15, -0x40(%rbp)
jmp 0x299a
movq 0xa509(%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 0x2b07
leaq 0x8(%r15), %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x21c0
movb $0x0, 0x8(%r15,%r13)
movq %r15, -0x48(%rbp)
jmp 0x299a
cmpq $0x0, -0x50(%rbp)
je 0x2c0f
cmpq $0x0, -0x48(%rbp)
je 0x2c0f
cmpq $0x0, -0x40(%rbp)
jne 0x2b54
movl $0xd, %edi
callq 0x21f0
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, (%rax)
movw $0x2e, 0x8(%rax)
movq %rax, -0x40(%rbp)
leaq -0x50(%rbp), %rbx
movq %rbx, %rdi
callq 0x315c
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2b7d
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x2b7d
testl %eax, %eax
jne 0x2bf0
callq 0x2030
movq -0x48(%rbp), %rdi
testq %rdi, %rdi
je 0x2b9b
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x2b9b
testl %eax, %eax
jne 0x2bf0
callq 0x2030
movq -0x40(%rbp), %rdi
testq %rdi, %rdi
je 0x2bb9
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x2bb9
testl %eax, %eax
jne 0x2bf0
callq 0x2030
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x2bd7
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x2bd7
testl %eax, %eax
jne 0x2bf0
callq 0x2030
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x16, %edi
callq 0x2270
leaq 0x748a(%rip), %rdi      # 0xa081
leaq 0x748f(%rip), %rsi      # 0xa08d
leaq 0x748f(%rip), %rcx      # 0xa094
movl $0x2d, %edx
callq 0x2130
callq 0x2325