// File: /workspace/github_c_makefile_star2_O3/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 $0x48, %rsp
movq %rsi, %rbx
movl %edi, %r14d
movq $0x0, -0x48(%rbp)
leaq 0x76f2(%rip), %r15      # 0xa0a8
movq $0x0, -0x38(%rbp)
movq $0x0, -0x40(%rbp)
movq $0x0, -0x30(%rbp)
movl %r14d, %edi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2260
cmpl $0x63, %eax
jle 0x2a44
cmpl $0x64, %eax
je 0x2aac
cmpl $0x6d, %eax
je 0x2af5
cmpl $0x76, %eax
jne 0x29ce
movq 0xa5d9(%rip), %rax      # 0xcfd8
movq (%rax), %r15
movq %r15, %rdi
callq 0x20e0
movslq %eax, %r12
leaq 0xc(%r12), %rdi
callq 0x2200
movq %rax, %r13
movl $0x1, (%rax)
movl %r12d, 0x4(%rax)
testq %r15, %r15
je 0x2a3b
movq %r13, %rdi
addq $0x8, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x21d0
movq %r13, -0x30(%rbp)
jmp 0x2b3c
cmpl $-0x1, %eax
je 0x2b4e
cmpl $0x63, %eax
je 0x2a60
cmpl $0x3f, %eax
jne 0x29ce
jmp 0x2c38
movq 0xa571(%rip), %rax      # 0xcfd8
movq (%rax), %r15
movq %r15, %rdi
callq 0x20e0
movslq %eax, %r12
leaq 0xc(%r12), %rdi
callq 0x2200
movq %rax, %r13
movl $0x1, (%rax)
movl %r12d, 0x4(%rax)
testq %r15, %r15
je 0x2aa3
movq %r13, %rdi
addq $0x8, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x21d0
movq %r13, -0x48(%rbp)
jmp 0x2b3c
movq 0xa525(%rip), %rax      # 0xcfd8
movq (%rax), %r15
movq %r15, %rdi
callq 0x20e0
movslq %eax, %r12
leaq 0xc(%r12), %rdi
callq 0x2200
movq %rax, %r13
movl $0x1, (%rax)
movl %r12d, 0x4(%rax)
testq %r15, %r15
je 0x2aef
movq %r13, %rdi
addq $0x8, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x21d0
movq %r13, -0x40(%rbp)
jmp 0x2b3c
movq 0xa4dc(%rip), %rax      # 0xcfd8
movq (%rax), %r15
movq %r15, %rdi
callq 0x20e0
movslq %eax, %r12
leaq 0xc(%r12), %rdi
callq 0x2200
movq %rax, %r13
movl $0x1, (%rax)
movl %r12d, 0x4(%rax)
testq %r15, %r15
je 0x2b38
movq %r13, %rdi
addq $0x8, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x21d0
movq %r13, -0x38(%rbp)
leaq 0x7565(%rip), %r15      # 0xa0a8
movb $0x0, 0x8(%r13,%r12)
jmp 0x29ce
movq -0x40(%rbp), %rcx
movq %rcx, -0x58(%rbp)
movq -0x38(%rbp), %rdx
movq %rdx, -0x60(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x68(%rbp)
testq %rax, %rax
je 0x2c61
testq %rdx, %rdx
je 0x2c61
testq %rcx, %rcx
jne 0x2ba6
movl $0xd, %edi
callq 0x2200
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, (%rax)
movw $0x2e, 0x8(%rax)
movq %rax, -0x58(%rbp)
leaq -0x68(%rbp), %rbx
movq %rbx, %rdi
callq 0x3204
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x2bcf
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x2bcf
testl %eax, %eax
jne 0x2c42
callq 0x2030
movq -0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x2bed
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x2bed
testl %eax, %eax
jne 0x2c42
callq 0x2030
movq -0x58(%rbp), %rdi
testq %rdi, %rdi
je 0x2c0b
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x2c0b
testl %eax, %eax
jne 0x2c42
callq 0x2030
movq -0x50(%rbp), %rdi
testq %rdi, %rdi
je 0x2c29
movl (%rdi), %ecx
leal -0x1(%rcx), %eax
movl %eax, (%rdi)
cmpl $0x1, %ecx
jg 0x2c29
testl %eax, %eax
jne 0x2c42
callq 0x2030
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x16, %edi
callq 0x2280
leaq 0x7438(%rip), %rdi      # 0xa081
leaq 0x743d(%rip), %rsi      # 0xa08d
leaq 0x743d(%rip), %rcx      # 0xa094
movl $0x2d, %edx
callq 0x2130
callq 0x2332