// File: /workspace/github_c_makefile_star2_O0/lh3[P]fermi2/unpack.c
// Function: hts_readlines
char **hts_readlines(const char *fn, int64_t *_n)
{
	int64_t m = 0, n = 0;
	int dret;
	char **s = 0;
	gzFile fp;
	if ((fp = gzopen(fn, "r")) != 0) { // read from file
		kstream_t *ks;
		kstring_t str;
		str.s = 0; str.l = str.m = 0;
		ks = ks_init(fp);
		while (ks_getuntil(ks, KS_SEP_LINE, &str, &dret) >= 0) {
			if (str.l == 0) continue;
			if (m == n) {
				m = m? m<<1 : 16;
				s = (char**)realloc(s, m * sizeof(void*));
			}
			s[n++] = strdup(str.s);
		}
		ks_destroy(ks);
		gzclose(fp);
		s = (char**)realloc(s, n * sizeof(void*));
		free(str.s);
	} else if (*fn == ':') { // read from string
		const char *q, *p;
		for (q = p = fn + 1;; ++p)
			if (*p == ',' || *p == 0) {
				if (m == n) {
					m = m? m<<1 : 16;
					s = (char**)realloc(s, m * sizeof(void*));
				}
				s[n] = (char*)calloc(p - q + 1, 1);
				strncpy(s[n++], q, p - q);
				q = p + 1;
				if (*p == 0) break;
			}
	} else return 0;
	s = (char**)realloc(s, n * sizeof(void*));
	*_n = n;
	return s;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq $0x0, -0x28(%rbp)
movq $0x0, -0x38(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x26375(%rip), %rsi     # 0x2ce9b
callq 0x22c0
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
je 0x6c22
movq $0x0, -0x50(%rbp)
movl $0x0, -0x54(%rbp)
movl $0x0, -0x58(%rbp)
movq -0x40(%rbp), %rdi
callq 0x13780
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
movl $0x2, %esi
leaq -0x58(%rbp), %rdx
leaq -0x2c(%rbp), %rcx
callq 0x6d70
cmpl $0x0, %eax
jl 0x6bed
cmpl $0x0, -0x58(%rbp)
jne 0x6b7f
jmp 0x6b5c
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jne 0x6bc5
cmpq $0x0, -0x20(%rbp)
je 0x6b9d
movq -0x20(%rbp), %rax
shlq %rax
movq %rax, -0x70(%rbp)
jmp 0x6ba8
movl $0x10, %eax
movq %rax, -0x70(%rbp)
jmp 0x6ba8
movq -0x70(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x38(%rbp), %rdi
movq -0x20(%rbp), %rsi
shlq $0x3, %rsi
callq 0x2270
movq %rax, -0x38(%rbp)
movq -0x50(%rbp), %rdi
callq 0x2350
movq %rax, %rdx
movq -0x38(%rbp), %rax
movq -0x28(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x28(%rbp)
movq %rdx, (%rax,%rcx,8)
jmp 0x6b5c
movq -0x48(%rbp), %rdi
callq 0x137e0
movq -0x40(%rbp), %rdi
callq 0x2030
movq -0x38(%rbp), %rdi
movq -0x28(%rbp), %rsi
shlq $0x3, %rsi
callq 0x2270
movq %rax, -0x38(%rbp)
movq -0x50(%rbp), %rdi
callq 0x2040
jmp 0x6d34
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
jne 0x6d28
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x68(%rbp)
movq %rax, -0x60(%rbp)
movq -0x68(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2c, %eax
je 0x6c5e
movq -0x68(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x6d13
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jne 0x6ca4
cmpq $0x0, -0x20(%rbp)
je 0x6c7c
movq -0x20(%rbp), %rax
shlq %rax
movq %rax, -0x78(%rbp)
jmp 0x6c87
movl $0x10, %eax
movq %rax, -0x78(%rbp)
jmp 0x6c87
movq -0x78(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x38(%rbp), %rdi
movq -0x20(%rbp), %rsi
shlq $0x3, %rsi
callq 0x2270
movq %rax, -0x38(%rbp)
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rax
subq %rax, %rdi
addq $0x1, %rdi
movl $0x1, %esi
callq 0x21a0
movq %rax, %rdx
movq -0x38(%rbp), %rax
movq -0x28(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x38(%rbp), %rax
movq -0x28(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x28(%rbp)
movq (%rax,%rcx,8), %rdi
movq -0x60(%rbp), %rsi
movq -0x68(%rbp), %rdx
movq -0x60(%rbp), %rax
subq %rax, %rdx
callq 0x2060
movq -0x68(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x60(%rbp)
movq -0x68(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x6d11
jmp 0x6d26
jmp 0x6d13
jmp 0x6d15
movq -0x68(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x68(%rbp)
jmp 0x6c42
jmp 0x6d32
movq $0x0, -0x8(%rbp)
jmp 0x6d5c
jmp 0x6d34
movq -0x38(%rbp), %rdi
movq -0x28(%rbp), %rsi
shlq $0x3, %rsi
callq 0x2270
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)