// File: /workspace/github_cpp_makefile_star2_O2/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 %rsi, %r13
movl %edi, %ebp
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
pushq $0x1
popq %rbx
cmpl %ebp, %ebx
jge 0x2856
movslq %ebx, %r14
movq (%r13,%r14,8), %r15
cmpb $0x2d, (%r15)
jne 0x284f
cmpb $0x64, 0x1(%r15)
jne 0x273d
cmpb $0x0, 0x2(%r15)
jne 0x273d
incl %ebx
movq 0x8(%r13,%r14,8), %rdi
callq 0x2390
movq %rax, (%r12)
movq 0x8(%r13,%r14,8), %r15
cmpb $0x2d, (%r15)
jne 0x284f
cmpb $0x71, 0x1(%r15)
jne 0x2771
cmpb $0x0, 0x2(%r15)
jne 0x2771
movslq %ebx, %r14
incl %ebx
movq 0x8(%r13,%r14,8), %rdi
callq 0x2390
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%r13,%r14,8), %r15
cmpb $0x2d, (%r15)
jne 0x284f
cmpb $0x6f, 0x1(%r15)
jne 0x27a4
cmpb $0x0, 0x2(%r15)
jne 0x27a4
movslq %ebx, %r14
incl %ebx
movq 0x8(%r13,%r14,8), %rdi
callq 0x2390
movq (%rsp), %rcx
movq %rax, (%rcx)
movq 0x8(%r13,%r14,8), %r15
cmpb $0x2d, (%r15)
jne 0x284f
cmpb $0x6b, 0x1(%r15)
jne 0x27d1
cmpb $0x0, 0x2(%r15)
jne 0x27d1
movslq %ebx, %rax
incl %ebx
movq 0x8(%r13,%rax,8), %r15
movq %r15, %rdi
callq 0x22d0
movq 0x10(%rsp), %rcx
movl %eax, (%rcx)
cmpb $0x2d, (%r15)
jne 0x284f
cmpb $0x4c, 0x1(%r15)
jne 0x27fe
cmpb $0x0, 0x2(%r15)
jne 0x27fe
movslq %ebx, %rax
incl %ebx
movq 0x8(%r13,%rax,8), %r15
movq %r15, %rdi
callq 0x22d0
movq 0x50(%rsp), %rcx
movl %eax, (%rcx)
cmpb $0x2d, (%r15)
jne 0x284f
cmpb $0x4e, 0x1(%r15)
jne 0x282b
cmpb $0x0, 0x2(%r15)
jne 0x282b
movslq %ebx, %rax
incl %ebx
movq 0x8(%r13,%rax,8), %r15
movq %r15, %rdi
callq 0x22d0
movq 0x58(%rsp), %rcx
movl %eax, (%rcx)
cmpb $0x2d, (%r15)
jne 0x284f
cmpb $0x52, 0x1(%r15)
jne 0x284f
cmpb $0x0, 0x2(%r15)
jne 0x284f
movslq %ebx, %rax
incl %ebx
movq 0x8(%r13,%rax,8), %rdi
callq 0x22d0
movq 0x60(%rsp), %rcx
movl %eax, (%rcx)
incl %ebx
jmp 0x26f6
cmpq $0x0, (%r12)
je 0x2881
movq 0x8(%rsp), %rax
cmpq $0x0, (%rax)
je 0x2881
movq (%rsp), %rax
cmpq $0x0, (%rax)
je 0x2881
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4798(%rip), %rdi      # 0x7020
leaq 0x47ad(%rip), %rsi      # 0x703c
leaq 0x47c2(%rip), %rcx      # 0x7058
pushq $0x65
popq %rdx
callq 0x2140