// File: /workspace/github_cpp_makefile_star2_O1/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 $0x28, %rsp
movq %r8, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x70(%rsp), %rax
movq 0x68(%rsp), %rcx
movq 0x60(%rsp), %rdx
movq %r9, 0x20(%rsp)
movl $0x4, (%r9)
movl $0x5, (%rdx)
movl $0x1, (%rcx)
movl $0x2710, (%rax)         # imm = 0x2710
cmpl $0x2, %edi
jl 0x29d7
movq %rsi, %r13
movl %edi, %ebp
movl $0x1, %r12d
leaq 0x57a1(%rip), %r14      # 0x802f
leaq 0x579d(%rip), %r15      # 0x8032
movslq %r12d, %rbx
movq (%r13,%rbx,8), %rdi
leaq 0x577c(%rip), %rsi      # 0x8020
callq 0x22d0
testl %eax, %eax
jne 0x28c3
leal 0x1(%rbx), %r12d
movq 0x8(%r13,%rbx,8), %rdi
callq 0x2420
movq 0x18(%rsp), %rcx
movq %rax, (%rcx)
movslq %r12d, %rbx
movq (%r13,%rbx,8), %rdi
leaq 0x5751(%rip), %rsi      # 0x8023
callq 0x22d0
testl %eax, %eax
jne 0x28f1
leal 0x1(%rbx), %r12d
movq 0x8(%r13,%rbx,8), %rdi
callq 0x2420
movq 0x10(%rsp), %rcx
movq %rax, (%rcx)
movslq %r12d, %rbx
movq (%r13,%rbx,8), %rdi
leaq 0x5726(%rip), %rsi      # 0x8026
callq 0x22d0
testl %eax, %eax
jne 0x291f
leal 0x1(%rbx), %r12d
movq 0x8(%r13,%rbx,8), %rdi
callq 0x2420
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
movslq %r12d, %rbx
movq (%r13,%rbx,8), %rdi
leaq 0x56fb(%rip), %rsi      # 0x8029
callq 0x22d0
testl %eax, %eax
jne 0x294c
leal 0x1(%rbx), %r12d
movq 0x8(%r13,%rbx,8), %rdi
callq 0x2340
movq 0x20(%rsp), %rcx
movl %eax, (%rcx)
movslq %r12d, %rbx
movq (%r13,%rbx,8), %rdi
leaq 0x56d1(%rip), %rsi      # 0x802c
callq 0x22d0
testl %eax, %eax
jne 0x2979
leal 0x1(%rbx), %r12d
movq 0x8(%r13,%rbx,8), %rdi
callq 0x2340
movq 0x60(%rsp), %rcx
movl %eax, (%rcx)
movslq %r12d, %rbx
movq (%r13,%rbx,8), %rdi
movq %r14, %rsi
callq 0x22d0
testl %eax, %eax
jne 0x29a2
leal 0x1(%rbx), %r12d
movq 0x8(%r13,%rbx,8), %rdi
callq 0x2340
movq 0x68(%rsp), %rcx
movl %eax, (%rcx)
movslq %r12d, %rbx
movq (%r13,%rbx,8), %rdi
movq %r15, %rsi
callq 0x22d0
testl %eax, %eax
jne 0x29cb
leal 0x1(%rbx), %r12d
movq 0x8(%r13,%rbx,8), %rdi
callq 0x2340
movq 0x70(%rsp), %rcx
movl %eax, (%rcx)
incl %r12d
cmpl %ebp, %r12d
jl 0x2895
movq 0x18(%rsp), %rax
cmpq $0x0, (%rax)
je 0x2a07
movq 0x10(%rsp), %rax
cmpq $0x0, (%rax)
je 0x2a07
movq 0x8(%rsp), %rax
cmpq $0x0, (%rax)
je 0x2a07
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5627(%rip), %rdi      # 0x8035
leaq 0x563c(%rip), %rsi      # 0x8051
leaq 0x5651(%rip), %rcx      # 0x806d
movl $0x65, %edx
callq 0x2160