// File: /workspace/github_cpp_makefile_star2_O2/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
movl %edi, %ebp
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
pushq $0x1
popq %r12
leaq 0x47ae(%rip), %r15      # 0x70b1
cmpl %ebp, %r12d
jge 0x2a7d
movslq %r12d, %r14
movq (%r13,%r14,8), %rbx
cmpb $0x2d, (%rbx)
jne 0x29f9
cmpb $0x64, 0x1(%rbx)
jne 0x294c
cmpb $0x0, 0x2(%rbx)
jne 0x294c
incl %r12d
movq 0x8(%r13,%r14,8), %rdi
callq 0x2390
movq 0x18(%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%r13,%r14,8), %rbx
cmpb $0x2d, (%rbx)
jne 0x29f9
cmpb $0x71, 0x1(%rbx)
jne 0x297a
cmpb $0x0, 0x2(%rbx)
jne 0x297a
movslq %r12d, %rbx
incl %r12d
movq 0x8(%r13,%rbx,8), %rdi
callq 0x2390
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%r13,%rbx,8), %rbx
cmpb $0x2d, (%rbx)
jne 0x29f9
cmpb $0x6f, 0x1(%rbx)
jne 0x29a8
cmpb $0x0, 0x2(%rbx)
jne 0x29a8
movslq %r12d, %rbx
incl %r12d
movq 0x8(%r13,%rbx,8), %rdi
callq 0x2390
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%r13,%rbx,8), %rbx
cmpb $0x2d, (%rbx)
jne 0x29f9
cmpb $0x6b, 0x1(%rbx)
jne 0x29d3
cmpb $0x0, 0x2(%rbx)
jne 0x29d3
movslq %r12d, %rax
incl %r12d
movq 0x8(%r13,%rax,8), %rbx
movq %rbx, %rdi
callq 0x22d0
movq 0x20(%rsp), %rcx
movl %eax, (%rcx)
cmpb $0x2d, (%rbx)
jne 0x29f9
cmpb $0x4d, 0x1(%rbx)
jne 0x29f9
cmpb $0x0, 0x2(%rbx)
jne 0x29f9
movslq %r12d, %rax
incl %r12d
movq 0x8(%r13,%rax,8), %rbx
movq %rbx, %rdi
callq 0x22d0
movq 0x60(%rsp), %rcx
movl %eax, (%rcx)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2260
testl %eax, %eax
jne 0x2a22
movslq %r12d, %rax
incl %r12d
movq 0x8(%r13,%rax,8), %rbx
movq %rbx, %rdi
callq 0x22d0
movq 0x68(%rsp), %rcx
movl %eax, (%rcx)
cmpb $0x2d, (%rbx)
jne 0x2a75
cmpb $0x4e, 0x1(%rbx)
jne 0x2a52
cmpb $0x0, 0x2(%rbx)
jne 0x2a52
movslq %r12d, %rax
incl %r12d
movq 0x8(%r13,%rax,8), %rbx
movq %rbx, %rdi
callq 0x22d0
movq 0x70(%rsp), %rcx
movl %eax, (%rcx)
cmpb $0x2d, (%rbx)
jne 0x2a75
cmpb $0x52, 0x1(%rbx)
jne 0x2a75
cmpb $0x0, 0x2(%rbx)
jne 0x2a75
movslq %r12d, %rax
incl %r12d
movq 0x8(%r13,%rax,8), %rdi
callq 0x22d0
movq 0x78(%rsp), %rcx
movl %eax, (%rcx)
incl %r12d
jmp 0x2903
movq 0x18(%rsp), %rax
cmpq $0x0, (%rax)
je 0x2aad
movq 0x10(%rsp), %rax
cmpq $0x0, (%rax)
je 0x2aad
movq 0x8(%rsp), %rax
cmpq $0x0, (%rax)
je 0x2aad
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x456c(%rip), %rdi      # 0x7020
leaq 0x4581(%rip), %rsi      # 0x703c
leaq 0x45f7(%rip), %rcx      # 0x70b9
movl $0x87, %edx
callq 0x2140