// File: /workspace/github_cpp_makefile_star2_O3/nikosgalanis[P]Vectors-Similarity-Search-and-Clustering/programs/common/io_utils.cc
// Function: parse_hc_args(int, char**, char**, char**, char**, int*, int*, int*, int*, int*)
void parse_hc_args(int argc, char* argv[], char** input, char** output,
	char** query, int* k, int* M, int* probes, int* n_neighs, int* radius) {
		// default arguments
		*k = 14; *M = 10; *probes = 2; *n_neighs = 1; *radius = 10000;
		// parse through comand line arguments
		for (int i = 1; i < argc; i++) {
			if (!strcmp(argv[i], "-d")) {
				*input = strdup(argv[++i]);
			}
			if (!strcmp(argv[i], "-q")) {
				*query = strdup(argv[++i]);
			}	
			if (!strcmp(argv[i], "-o")) {
				*output = strdup(argv[++i]);
			}
			if (!strcmp(argv[i], "-k")) {
				*k = atoi(argv[++i]);
			}
			if (!strcmp(argv[i], "-M")) {
				*M = atoi(argv[++i]);
			}
			if (!strcmp(argv[i], "-probes")) {
				*probes = atoi(argv[++i]);
			}
			if (!strcmp(argv[i], "-N")) {
				*n_neighs = atoi(argv[++i]);
			}
			if (!strcmp(argv[i], "-R")) {
				*radius = atoi(argv[++i]);
			}
		}
		assert(*input && *query && *output);
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movq %rdx, 0x18(%rsp)
movq %rsi, %r13
movq 0x78(%rsp), %rax
movq 0x70(%rsp), %rcx
movq 0x68(%rsp), %rdx
movq 0x60(%rsp), %rsi
movq %r9, 0x20(%rsp)
movl $0xe, (%r9)
movl $0xa, (%rsi)
movl $0x2, (%rdx)
movl $0x1, (%rcx)
movl $0x2710, (%rax)         # imm = 0x2710
cmpl $0x2, %edi
jl 0x2c46
movl %edi, %ebp
movl $0x1, %r12d
leaq 0x55e1(%rip), %r15      # 0x80b1
movslq %r12d, %r14
movq (%r13,%r14,8), %rbx
cmpb $0x2d, (%rbx)
jne 0x2bbe
cmpb $0x64, 0x1(%rbx)
jne 0x2b11
cmpb $0x0, 0x2(%rbx)
jne 0x2b11
leal 0x1(%r14), %r12d
movq 0x8(%r13,%r14,8), %rdi
callq 0x2420
movq 0x18(%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%r13,%r14,8), %rbx
cmpb $0x2d, (%rbx)
jne 0x2bbe
cmpb $0x71, 0x1(%rbx)
jne 0x2b3f
cmpb $0x0, 0x2(%rbx)
jne 0x2b3f
movslq %r12d, %rbx
incl %r12d
movq 0x8(%r13,%rbx,8), %rdi
callq 0x2420
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%r13,%rbx,8), %rbx
cmpb $0x2d, (%rbx)
jne 0x2bbe
cmpb $0x6f, 0x1(%rbx)
jne 0x2b6d
cmpb $0x0, 0x2(%rbx)
jne 0x2b6d
movslq %r12d, %rbx
incl %r12d
movq 0x8(%r13,%rbx,8), %rdi
callq 0x2420
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%r13,%rbx,8), %rbx
cmpb $0x2d, (%rbx)
jne 0x2bbe
cmpb $0x6b, 0x1(%rbx)
jne 0x2b98
cmpb $0x0, 0x2(%rbx)
jne 0x2b98
movslq %r12d, %rax
incl %r12d
movq 0x8(%r13,%rax,8), %rbx
movq %rbx, %rdi
callq 0x2340
movq 0x20(%rsp), %rcx
movl %eax, (%rcx)
cmpb $0x2d, (%rbx)
jne 0x2bbe
cmpb $0x4d, 0x1(%rbx)
jne 0x2bbe
cmpb $0x0, 0x2(%rbx)
jne 0x2bbe
movslq %r12d, %rax
incl %r12d
movq 0x8(%r13,%rax,8), %rbx
movq %rbx, %rdi
callq 0x2340
movq 0x60(%rsp), %rcx
movl %eax, (%rcx)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x22d0
testl %eax, %eax
jne 0x2be7
movslq %r12d, %rax
incl %r12d
movq 0x8(%r13,%rax,8), %rbx
movq %rbx, %rdi
callq 0x2340
movq 0x68(%rsp), %rcx
movl %eax, (%rcx)
cmpb $0x2d, (%rbx)
jne 0x2c3a
cmpb $0x4e, 0x1(%rbx)
jne 0x2c17
cmpb $0x0, 0x2(%rbx)
jne 0x2c17
movslq %r12d, %rax
incl %r12d
movq 0x8(%r13,%rax,8), %rbx
movq %rbx, %rdi
callq 0x2340
movq 0x70(%rsp), %rcx
movl %eax, (%rcx)
cmpb $0x2d, (%rbx)
jne 0x2c3a
cmpb $0x52, 0x1(%rbx)
jne 0x2c3a
cmpb $0x0, 0x2(%rbx)
jne 0x2c3a
movslq %r12d, %rax
incl %r12d
movq 0x8(%r13,%rax,8), %rdi
callq 0x2340
movq 0x78(%rsp), %rcx
movl %eax, (%rcx)
incl %r12d
cmpl %ebp, %r12d
jl 0x2ad0
movq 0x18(%rsp), %rax
cmpq $0x0, (%rax)
je 0x2c76
movq 0x10(%rsp), %rax
cmpq $0x0, (%rax)
je 0x2c76
movq 0x8(%rsp), %rax
cmpq $0x0, (%rax)
je 0x2c76
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x53a3(%rip), %rdi      # 0x8020
leaq 0x53b8(%rip), %rsi      # 0x803c
leaq 0x542e(%rip), %rcx      # 0x80b9
movl $0x87, %edx
callq 0x2160