// File: /workspace/github_cpp_makefile_star2_O3/nikosgalanis[P]Vectors-Similarity-Search-and-Clustering/programs/common/io_utils.cc
// Function: parse_lsh_args(int, char**, char**, char**, char**, int*, int*, int*, int*)
void parse_lsh_args(int argc, char* argv[], char** input, char** output,
	char** query, int* k, int* L, int* n_neighs, int* radius) {
		// default arguments
		*k = 4; *L = 5; *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], "-L")) {
				*L = 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 $0x18, %rsp
movq %r8, 0x8(%rsp)
movq %rcx, (%rsp)
movq %rdx, %r12
movq 0x60(%rsp), %rax
movq 0x58(%rsp), %rcx
movq 0x50(%rsp), %rdx
movq %r9, 0x10(%rsp)
movl $0x4, (%r9)
movl $0x5, (%rdx)
movl $0x1, (%rcx)
movl $0x2710, (%rax)         # imm = 0x2710
cmpl $0x2, %edi
jl 0x2a16
movq %rsi, %r13
movl %edi, %ebp
movl $0x1, %ebx
movslq %ebx, %r14
movq (%r13,%r14,8), %r15
cmpb $0x2d, (%r15)
jne 0x2a0c
cmpb $0x64, 0x1(%r15)
jne 0x28fa
cmpb $0x0, 0x2(%r15)
jne 0x28fa
leal 0x1(%r14), %ebx
movq 0x8(%r13,%r14,8), %rdi
callq 0x2420
movq %rax, (%r12)
movq 0x8(%r13,%r14,8), %r15
cmpb $0x2d, (%r15)
jne 0x2a0c
cmpb $0x71, 0x1(%r15)
jne 0x292e
cmpb $0x0, 0x2(%r15)
jne 0x292e
movslq %ebx, %r14
incl %ebx
movq 0x8(%r13,%r14,8), %rdi
callq 0x2420
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%r13,%r14,8), %r15
cmpb $0x2d, (%r15)
jne 0x2a0c
cmpb $0x6f, 0x1(%r15)
jne 0x2961
cmpb $0x0, 0x2(%r15)
jne 0x2961
movslq %ebx, %r14
incl %ebx
movq 0x8(%r13,%r14,8), %rdi
callq 0x2420
movq (%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%r13,%r14,8), %r15
cmpb $0x2d, (%r15)
jne 0x2a0c
cmpb $0x6b, 0x1(%r15)
jne 0x298e
cmpb $0x0, 0x2(%r15)
jne 0x298e
movslq %ebx, %rax
incl %ebx
movq 0x8(%r13,%rax,8), %r15
movq %r15, %rdi
callq 0x2340
movq 0x10(%rsp), %rcx
movl %eax, (%rcx)
cmpb $0x2d, (%r15)
jne 0x2a0c
cmpb $0x4c, 0x1(%r15)
jne 0x29bb
cmpb $0x0, 0x2(%r15)
jne 0x29bb
movslq %ebx, %rax
incl %ebx
movq 0x8(%r13,%rax,8), %r15
movq %r15, %rdi
callq 0x2340
movq 0x50(%rsp), %rcx
movl %eax, (%rcx)
cmpb $0x2d, (%r15)
jne 0x2a0c
cmpb $0x4e, 0x1(%r15)
jne 0x29e8
cmpb $0x0, 0x2(%r15)
jne 0x29e8
movslq %ebx, %rax
incl %ebx
movq 0x8(%r13,%rax,8), %r15
movq %r15, %rdi
callq 0x2340
movq 0x58(%rsp), %rcx
movl %eax, (%rcx)
cmpb $0x2d, (%r15)
jne 0x2a0c
cmpb $0x52, 0x1(%r15)
jne 0x2a0c
cmpb $0x0, 0x2(%r15)
jne 0x2a0c
movslq %ebx, %rax
incl %ebx
movq 0x8(%r13,%rax,8), %rdi
callq 0x2340
movq 0x60(%rsp), %rcx
movl %eax, (%rcx)
incl %ebx
cmpl %ebp, %ebx
jl 0x28b9
cmpq $0x0, (%r12)
je 0x2a41
movq 0x8(%rsp), %rax
cmpq $0x0, (%rax)
je 0x2a41
movq (%rsp), %rax
cmpq $0x0, (%rax)
je 0x2a41
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x55d8(%rip), %rdi      # 0x8020
leaq 0x55ed(%rip), %rsi      # 0x803c
leaq 0x5602(%rip), %rcx      # 0x8058
movl $0x65, %edx
callq 0x2160