LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/subprocess.c
// Function: subprocess_close_child_fderr
void subprocess_close_child_fderr(struct subprocess *sp)
{
	assert(sp->pid > 0);
	if (sp->child_fderr >= 0) {
		assert(xclose(sp->child_fderr) == 0);
		sp->child_fderr = -1;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
cmpl $0x0, 0x18(%rdi)
jle 0x5e77
movq %rdi, %rbx
movl 0x30(%rdi), %edi
testl %edi, %edi
js 0x5e70
callq 0x21e0
testl %eax, %eax
jne 0x5e96
orl $-0x1, 0x30(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x4a49(%rip), %rdi      # 0xa8c7
leaq 0x5094(%rip), %rsi      # 0xaf19
leaq 0x5422(%rip), %rcx      # 0xb2ae
movl $0x1a5, %edx            # imm = 0x1A5
callq 0x21b0
leaq 0x5448(%rip), %rdi      # 0xb2e5
leaq 0x5075(%rip), %rsi      # 0xaf19
leaq 0x5403(%rip), %rcx      # 0xb2ae
movl $0x1a7, %edx            # imm = 0x1A7
callq 0x21b0
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/subprocess.c
// Function: subprocess_read_selfpipe
int subprocess_read_selfpipe()
{
	if (got_SIGCHLD) {
		/* this may seem paranoid, but, is certainly the right
		 * thing (sigprocmask) to do
		 */
		sigprocmask(SIG_BLOCK, sigset_SIGCHLD, NULL);
		if (got_SIGCHLD) got_SIGCHLD = 0;
		/* we can clear got_SIGCHLD early, since this is the
		 * only place where it is checked for
		 */
		sigprocmask(SIG_UNBLOCK, sigset_SIGCHLD, NULL);
		return subprocess_read_selfpipe0();
	}
	DEBUG_INFO("subprocess_read_selfpipe(): nothing new");
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
cmpl $0x0, 0xa883(%rip)      # 0x10750
je 0x5fbb
leaq 0xa886(%rip), %rsi      # 0x10760
xorl %edi, %edi
xorl %edx, %edx
callq 0x2050
cmpl $0x0, 0xa866(%rip)      # 0x10750
je 0x5ef6
movl $0x0, 0xa85a(%rip)      # 0x10750
leaq 0xa863(%rip), %rsi      # 0x10760
pushq $0x1
popq %rdi
xorl %edx, %edx
callq 0x2050
movl 0xa803(%rip), %edi      # 0x10710
leaq -0x60(%rbp), %rsi
pushq $0x28
popq %rdx
callq 0x2200
movq %rax, %r14
testl %r14d, %r14d
js 0x5f9e
testb $0x3, %r14b
jne 0x5feb
testl %r14d, %r14d
je 0x5fbb
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
movq %r14, -0x30(%rbp)
movl %r14d, %r15d
shrl $0x2, %r15d
movq 0xa893(%rip), %r12      # 0x107e0
xorl %r14d, %r14d
movl -0x60(%rbp,%r14,4), %ebx
movq %r12, %rdi
movl %ebx, %esi
callq 0x5b82
testq %rax, %rax
je 0x5f8a
movq %rax, %r13
movq 0x10(%rax), %rax
cmpl 0x18(%rax), %ebx
jne 0x5fcc
movq %r12, %rdi
movq %r13, %rsi
callq 0x5303
movq %r13, %rdi
callq 0x5b57
movq 0xa856(%rip), %r12      # 0x107e0
incq %r14
cmpl %r14d, %r15d
jne 0x5f50
cmpl $0x28, -0x30(%rbp)
je 0x5f07
jmp 0x5fbb
callq 0x2080
cmpl $-0x1, %r14d
jne 0x600a
movq %rax, %rbx
movl (%rax), %r14d
cmpl $0x4, %r14d
je 0x5fbb
cmpl $0xb, %r14d
jne 0x6029
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5846(%rip), %rdi      # 0xb819
leaq 0x4f3f(%rip), %rsi      # 0xaf19
leaq 0x57ed(%rip), %rcx      # 0xb7ce
movl $0x1cc, %edx            # imm = 0x1CC
callq 0x21b0
leaq 0x5810(%rip), %rdi      # 0xb802
leaq 0x4f20(%rip), %rsi      # 0xaf19
leaq 0x57ce(%rip), %rcx      # 0xb7ce
movl $0x1c5, %edx            # imm = 0x1C5
callq 0x21b0
leaq 0x42ef(%rip), %rdi      # 0xa300
leaq 0x4f01(%rip), %rsi      # 0xaf19
leaq 0x57af(%rip), %rcx      # 0xb7ce
movl $0x1b7, %edx            # imm = 0x1B7
callq 0x21b0
leaq 0x4ee9(%rip), %rdi      # 0xaf19
leaq 0x4921(%rip), %rdx      # 0xa958
movl $0x1c0, %esi            # imm = 0x1C0
movl %r14d, %ecx
xorl %eax, %eax
callq 0x8e04
movl %r14d, (%rbx)
leaq 0x579e(%rip), %rdi      # 0xb7ee
callq 0x2300
pushq $0x1
popq %rdi
callq 0x2340
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/subprocess.c
// Function: subprocess_fork
int subprocess_fork(struct subprocess *sp)
{
	int pid;

	assert(sp);
	assert(sp->argv);
	assert(sp->argv[0]);

	if (sp->envp && sp->search_path) {
		DEBUG_INFO("it is not allowed to use search path while specifying environment variables");
		return -1;
	}

	if ((pid = subprocess_fork0(sp)) == 0) {
		char buf[1024];
		char *execve_frontend = NULL;

		/* execute
		 */
		if (sp->envp) {
			execve(sp->argv[0], sp->argv, sp->envp);
			execve_frontend = "execve";
		} else if (sp->search_path) {
			execvp(sp->argv[0], sp->argv);
			execve_frontend = "execvp";
		} else {
			execv(sp->argv[0], sp->argv);
			execve_frontend = "execv";
		}

		snprintf(buf, sizeof(buf), "%s(%s)", execve_frontend, sp->argv[0]);
		perror(buf);
		fflush(stderr);

		close(STDIN_FILENO);
		close(STDOUT_FILENO);
		close(STDERR_FILENO);

		abort();
	} else if (sp->pid == -1) {
		perror("fork");
		return -1;
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x400, %rsp            # imm = 0x400
testq %rdi, %rdi
je 0x69f3
movq %rdi, %rbx
movq (%rdi), %rax
testq %rax, %rax
je 0x6a12
cmpq $0x0, (%rax)
je 0x6a31
cmpq $0x0, 0x8(%rbx)
pushq $-0x1
popq %r14
je 0x69c5
cmpl $0x0, 0x10(%rbx)
je 0x69c5
movl %r14d, %eax
jmp 0x69d9
movq %rbx, %rdi
callq 0x62ad
testl %eax, %eax
je 0x6a50
xorl %eax, %eax
cmpl $-0x1, 0x18(%rbx)
je 0x69e5
addq $0x400, %rsp            # imm = 0x400
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x4c0a(%rip), %rdi      # 0xb5f6
callq 0x2300
jmp 0x69c0
leaq 0x495d(%rip), %rdi      # 0xb357
leaq 0x4518(%rip), %rsi      # 0xaf19
leaq 0x4b95(%rip), %rcx      # 0xb59d
movl $0x3b3, %edx            # imm = 0x3B3
callq 0x21b0
leaq 0x4bad(%rip), %rdi      # 0xb5c6
leaq 0x44f9(%rip), %rsi      # 0xaf19
leaq 0x4b76(%rip), %rcx      # 0xb59d
movl $0x3b4, %edx            # imm = 0x3B4
callq 0x21b0
leaq 0x4b97(%rip), %rdi      # 0xb5cf
leaq 0x44da(%rip), %rsi      # 0xaf19
leaq 0x4b57(%rip), %rcx      # 0xb59d
movl $0x3b5, %edx            # imm = 0x3B5
callq 0x21b0
movq 0x8(%rbx), %rdx
testq %rdx, %rdx
jne 0x6a73
cmpl $0x0, 0x10(%rbx)
movq (%rbx), %rsi
movq (%rsi), %rdi
jne 0x6a87
callq 0x2370
leaq 0x4b78(%rip), %rcx      # 0xb5e9
jmp 0x6a93
movq (%rbx), %rsi
movq (%rsi), %rdi
callq 0x2210
leaq 0x4b56(%rip), %rcx      # 0xb5db
jmp 0x6a93
callq 0x2320
leaq 0x4b4f(%rip), %rcx      # 0xb5e2
movq (%rbx), %rax
movq (%rax), %r8
leaq 0x4b4f(%rip), %rdx      # 0xb5ef
leaq -0x410(%rbp), %rbx
movl $0x400, %esi            # imm = 0x400
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2180
movq %rbx, %rdi
callq 0x2300
movq 0x9533(%rip), %rax      # 0xfff8
movq (%rax), %rdi
callq 0x22a0
xorl %edi, %edi
callq 0x21e0
pushq $0x1
popq %rdi
callq 0x21e0
pushq $0x2
popq %rdi
callq 0x21e0
callq 0x2070
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/subprocess.c
// Function: subprocess_exit_debug
void subprocess_exit_debug(struct subprocess *sp)
{
	int status = sp->exit_status;

	assert(sp->pid > 0);
	assert(sp->waitpid_pid == sp->pid); /* must be terminated */

	if (WIFEXITED(status)) {
		if (WEXITSTATUS(status) != EXIT_SUCCESS) {
			DEBUG_INFO("child %i exited with error, exit status = %i", sp->pid, WEXITSTATUS(status));
		} else {
			DEBUG_INFO("child %i exited with EXIT_SUCCESS", sp->pid);
		}
	} else if (WIFSIGNALED(status)) {
		printf("child %i was killed by signal %d\n", sp->pid, WTERMSIG(status));
	} else if (WIFSTOPPED(status)) {
		printf("child %i was stopped by signal %d\n", sp->pid, WSTOPSIG(status));
#ifdef WIFCONTINUED
	} else if (WIFCONTINUED(status)) {
		printf("continued\n");
#endif
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0x18(%rdi), %esi
testl %esi, %esi
jle 0x6d14
cmpl %esi, 0x1c(%rdi)
jne 0x6d33
movl 0x14(%rdi), %eax
movl %eax, %edx
andl $0x7f, %edx
je 0x6d12
movl %edx, %ecx
shll $0x18, %ecx
addl $0x1000000, %ecx        # imm = 0x1000000
cmpl $0x2000000, %ecx        # imm = 0x2000000
jl 0x6ce8
leaq 0x4a43(%rip), %rdi      # 0xb729
jmp 0x6cf6
cmpb $0x7f, %al
jne 0x6cfe
movzbl %ah, %edx
leaq 0x4a55(%rip), %rdi      # 0xb74b
xorl %eax, %eax
popq %rbp
jmp 0x2170
cmpl $0xffff, %eax           # imm = 0xFFFF
jne 0x6d12
leaq 0x4e1b(%rip), %rdi      # 0xbb27
popq %rbp
jmp 0x20c0
popq %rbp
retq
leaq 0x3bac(%rip), %rdi      # 0xa8c7
leaq 0x41f7(%rip), %rsi      # 0xaf19
leaq 0x49d0(%rip), %rcx      # 0xb6f9
movl $0x437, %edx            # imm = 0x437
callq 0x21b0
leaq 0x48ef(%rip), %rdi      # 0xb629
leaq 0x41d8(%rip), %rsi      # 0xaf19
leaq 0x49b1(%rip), %rcx      # 0xb6f9
movl $0x438, %edx            # imm = 0x438
callq 0x21b0
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/subprocess.c
// Function: sigaction_SIGCHLD
static void sigaction_SIGCHLD(int n, siginfo_t *si, void *vp)
{
	char msg[] = "sigaction_SIGCHLD(), pid_gone=-1234567890\n";

	//assert(sizeof(si->si_pid) == sizeof(int));

	backfill_u4_dec(msg + sizeof(msg) - 2 /* "\n\0" */, si->si_pid, ' ');
	write_exact(STDERR_FILENO, msg, sizeof(msg) - 1);

	if (selfpipe[1] != -1) {
		int r = write(selfpipe[1], (void*)&si->si_pid, sizeof(si->si_pid));
		if (r == -1 && errno == EAGAIN) {
			char msg[] = "sigaction_SIGCHLD(), pipe buffer is full, drained -1234567890 bytes\n";
			char buf[4096];
			r = read(selfpipe[0], buf, sizeof(buf));
			backfill_u4_dec(msg + sizeof(msg) - 8 /* " bytes\n\0" */, r, ' ');
			write_exact(STDERR_FILENO, msg, sizeof(msg) - 1);
		}
	}

	got_SIGCHLD = 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x1088, %rsp           # imm = 0x1088
movq %rsi, %rbx
movups 0x4639(%rip), %xmm0     # 0xbb5b
leaq -0x17(%rbp), %rdi
movups %xmm0, -0xe(%rdi)
movaps 0x461f(%rip), %xmm0     # 0xbb50
movaps %xmm0, -0x19(%rdi)
movaps 0x4604(%rip), %xmm0     # 0xbb40
movaps %xmm0, -0x29(%rdi)
movl 0x10(%rsi), %esi
callq 0x75d4
leaq -0x40(%rbp), %rdi
pushq $0x2a
popq %rsi
callq 0x7665
movl 0x91ba(%rip), %edi      # 0x10714
cmpl $-0x1, %edi
je 0x75c0
addq $0x10, %rbx
pushq $0x4
popq %rdx
movq %rbx, %rsi
callq 0x2120
cmpl $-0x1, %eax
jne 0x75c0
callq 0x2080
cmpl $0xb, (%rax)
jne 0x75c0
leaq 0x45ec(%rip), %rsi      # 0xbb70
pushq $0x45
popq %rcx
leaq -0x90(%rbp), %rbx
movq %rbx, %rdi
rep  movsb (%rsi), %es:(%rdi)
movl 0x9177(%rip), %edi      # 0x10710
leaq -0x1090(%rbp), %rsi
movl $0x1000, %edx           # imm = 0x1000
callq 0x2200
leaq -0x53(%rbp), %rdi
movl %eax, %esi
callq 0x75d4
pushq $0x44
popq %rsi
movq %rbx, %rdi
callq 0x7665
movl $0x1, 0x9186(%rip)      # 0x10750
addq $0x1088, %rsp           # imm = 0x1088
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/subprocess.c
// Function: backfill_u4_dec
static void backfill_u4_dec(char *s, int v, int pad)
{
	char *r = s - 11;
	assert(s);
	if (v > 0) {
		while (v) {
			*--s = DEC_DIGIT(v % 10);
			v = v / 10;
		}
	} else if (v < 0) {
		unsigned int x = -v;
		while (x) {
			*--s = DEC_DIGIT(x % 10);
			x = x / 10;
		}
		*--s = '-';
	} else {
		*--s = '0';
	}
	while (r < s) {
		*--s = pad;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
je 0x7634
movl %esi, %eax
testl %esi, %esi
jle 0x7604
xorl %ecx, %ecx
pushq $0xa
popq %rsi
leaq 0x43ab(%rip), %r8       # 0xb99a
testl %eax, %eax
je 0x7656
xorl %edx, %edx
divl %esi
movb (%rdx,%r8), %dl
movb %dl, -0x1(%rdi,%rcx)
decq %rcx
jmp 0x75ef
js 0x760d
movb $0x30, %al
pushq $-0x1
popq %rcx
jmp 0x7653
negl %eax
pushq $-0x1
popq %rcx
pushq $0xa
popq %rsi
leaq 0x437e(%rip), %r8       # 0xb99a
testl %eax, %eax
je 0x7630
xorl %edx, %edx
divl %esi
movb (%rdx,%r8), %dl
movb %dl, (%rdi,%rcx)
decq %rcx
jmp 0x761c
movb $0x2d, %al
jmp 0x7653
leaq 0x4d5c(%rip), %rdi      # 0xc397
leaq 0x38d7(%rip), %rsi      # 0xaf19
leaq 0x432a(%rip), %rcx      # 0xb973
movl $0xd5, %edx
callq 0x21b0
movb %al, (%rdi,%rcx)
cmpq $-0xa, %rcx
jl 0x7663
decq %rcx
movb $0x20, %al
jmp 0x7653
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/str.c
// Function: str_alloc
void str_alloc(struct str *x, int n)
{
  if (x->s) {
    if (n > x->a) {
      int i = n + (n >> 3) + 30;
      void *p = realloc_(x->s, x->len, i);
      if (p) {
        x->a = i;
        x->s = p;
        return;
      }
      FATAL("memory allocation failed"); /* it's better be safer than sorry */
    }
    return;
  }
  x->s = malloc(n);
  assert(x->s);
  x->a = n;
  x->len = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r15d
movq %rdi, %rbx
movq (%rdi), %r14
testq %r14, %r14
je 0x9077
cmpl %r15d, 0xc(%rbx)
jge 0x908f
movl %r15d, %eax
sarl $0x3, %eax
leal (%r15,%rax), %r13d
addl $0x1e, %r13d
movslq 0x8(%rbx), %r12
movslq %r13d, %rdi
callq 0x2290
testq %rax, %rax
je 0x90bd
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x2260
movq %r14, %rdi
callq 0x2060
movl %r13d, 0xc(%rbx)
movq %r15, (%rbx)
jmp 0x908f
movslq %r15d, %rdi
callq 0x2290
movq %rax, (%rbx)
testq %rax, %rax
je 0x909e
movl %r15d, 0xc(%rbx)
andl $0x0, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x32ef(%rip), %rdi      # 0xc394
leaq 0x32c9(%rip), %rsi      # 0xc375
leaq 0x32e6(%rip), %rcx      # 0xc399
movl $0x80, %edx
callq 0x21b0
movq 0x6f34(%rip), %rax      # 0xfff8
movq (%rax), %rdi
leaq 0x3297(%rip), %rsi      # 0xc365
leaq 0x32a0(%rip), %rdx      # 0xc375
leaq 0x329f(%rip), %r8       # 0xc37b
pushq $0x7b
popq %rcx
xorl %eax, %eax
callq 0x2230
pushq $0x1
popq %rdi
callq 0x2340
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/str.c
// Function: str_copyn
void str_copyn(struct str *sa, const char *s, int n)
{
  str_alloc(sa, n + 1);
  memcpy(sa->s, s, n);
  sa->len = n;
  sa->s[n] = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
leal 0x1(%rbx), %esi
callq 0x9014
movq (%r15), %rdi
movslq %ebx, %rbx
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2260
movl %ebx, 0x8(%r15)
movq (%r15), %rax
movb $0x0, (%rax,%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/str.c
// Function: str_copyc
void str_copyc(struct str *sa, int c)
{
  if (sa->len == 0) {
    str_alloc(sa, 1);
  }
  sa->s[0] = c;
  sa->len = 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
cmpl $0x0, 0x8(%rdi)
jne 0x91a3
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x9014
movq (%rbx), %rax
movb %r14b, (%rax)
movl $0x1, 0x8(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/str.c
// Function: str_catn
void str_catn(struct str *sa, const char *s, int n)
{
  if (!sa->s) {
    str_copyn(sa, s, n);
    return;
  }
  str_alloc(sa, sa->len + n + 1);
  memcpy(sa->s + sa->len, s, n);
  sa->len += n;
  sa->s[sa->len] = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x9210
movl 0x8(%rbx), %eax
leal (%r15,%rax), %esi
incl %esi
movq %rbx, %rdi
callq 0x9014
movslq 0x8(%rbx), %rdi
addq (%rbx), %rdi
movslq %r15d, %r15
movq %r14, %rsi
movq %r15, %rdx
callq 0x2260
movslq 0x8(%rbx), %rax
addq %r15, %rax
movl %eax, 0x8(%rbx)
movq (%rbx), %rcx
movb $0x0, (%rcx,%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq %r14, %rsi
movl %r15d, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x910b
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/str.c
// Function: str_catc
void str_catc(struct str *sa, int c)
{
  if ((sa->len + 1) >= sa->a) {
    str_alloc(sa, sa->len + 2);
  }
  sa->s[sa->len++] = c;
  sa->s[sa->len] = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
movl 0x8(%rdi), %esi
leal 0x1(%rsi), %eax
cmpl 0xc(%rdi), %eax
jl 0x928a
addl $0x2, %esi
movq %rbx, %rdi
callq 0x9014
movl 0x8(%rbx), %esi
leal 0x1(%rsi), %eax
movq (%rbx), %rcx
movl %eax, 0x8(%rbx)
movslq %esi, %rax
movb %r14b, (%rcx,%rax)
movq (%rbx), %rax
movslq 0x8(%rbx), %rcx
movb $0x0, (%rax,%rcx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/str.c
// Function: str_diffn
int str_diffn(struct str *a, char *b, int bl)
{
  int x = a->len - bl;
  int y = 0;

  if (x > 0) {
    x = 1;
    y = bdiff(a->s, bl, b);
  } else if (x < 0) {
    x = -1;
    y = bdiff(a->s, a->len, b);
  } else {
    y = bdiff(a->s, a->len, b);
  }
  return y ? y : x;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edx, %eax
movq %rsi, %rdx
movl 0x8(%rdi), %esi
cmpl %eax, %esi
jle 0x96ab
movq (%rdi), %rdi
movl %eax, %esi
callq 0x96c9
pushq $0x1
popq %rcx
jmp 0x96bb
setne %bl
movq (%rdi), %rdi
callq 0x96c9
movzbl %bl, %ecx
negl %ecx
testl %eax, %eax
cmovnel %eax, %ecx
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/str.c
// Function: bdiff
static int bdiff(const void *s, int n, const void *t)
{
  const char *x=s;
  const char *y=t;
  for (;;) {
    if (!n)
      return 0;
    if (*x != *y)
      break;
    ++x;
    ++y;
    --n;
  }
  return ((int)(unsigned char)*x)
    - ((int)(unsigned char)*y);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %esi, %ecx
xorl %eax, %eax
xorl %esi, %esi
cmpl %esi, %ecx
je 0x96f1
movzbl (%rdi,%rsi), %r8d
movzbl (%rdx,%rsi), %r9d
cmpb %r9b, %r8b
jne 0x96eb
incq %rsi
jmp 0x96d3
subl %r9d, %r8d
movl %r8d, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/str.c
// Function: str_upper
void str_upper(struct str *s)
{
  int i;
  char c;
  for (i=0; i<s->len; i++, c++) {
    c = s->s[i];
    if (isalpha(c)) {
      s->s[i] = toupper(c);
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
xorl %r14d, %r14d
movslq 0x8(%rbx), %rax
cmpq %rax, %r14
jge 0x97a2
movq (%rbx), %r15
movsbq (%r15,%r14), %r12
callq 0x23b0
movq (%rax), %rax
testb $0x4, 0x1(%rax,%r12,2)
je 0x979d
callq 0x2030
movq (%rax), %rax
movb (%rax,%r12,4), %al
movb %al, (%r15,%r14)
incq %r14
jmp 0x976c
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/str.c
// Function: str_lower
void str_lower(struct str *s)
{
  int i;
  char c;
  for (i=0; i<s->len; i++, c++) {
    c = s->s[i];
    if (isalpha(c)) {
      s->s[i] = tolower(c);
    }
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
xorl %r14d, %r14d
movslq 0x8(%rbx), %rax
cmpq %rax, %r14
jge 0x97f2
movq (%rbx), %r15
movsbq (%r15,%r14), %r12
callq 0x23b0
movq (%rax), %rax
testb $0x4, 0x1(%rax,%r12,2)
je 0x97ed
callq 0x23a0
movq (%rax), %rax
movb (%rax,%r12,4), %al
movb %al, (%r15,%r14)
incq %r14
jmp 0x97bc
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/str.c
// Function: str_shiftr
void str_shiftr(struct str *s, int start, int end, int n, int pad)
{
  int i, window_size;
  char *ss;

  if (start < 0) {
    start = s->len + start;
  }

  if (end < 0) {
    end = s->len + end;
  }

  assert(n >= 0);
  assert(start >= 0);
  assert(start <= s->len);

  window_size = end - start;

  assert(end >= 0);
  assert(start <= end);
  assert(n <= window_size);

  if (end > s->len) {
    /* end is exclusive, so its len compatible
     */
    str_alloc(s, end);
    s->len = end;
  }
  ss = s->s + start;
  bcopyr(ss + n, window_size - n, ss);

  for (i=0; i<n; i++) {
    ss[i] = pad;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebx
movl %ecx, %r15d
movl %edx, %r13d
movl %esi, %r14d
testl %esi, %esi
jns 0x981d
addl 0x8(%rdi), %r14d
testl %r13d, %r13d
jns 0x9826
addl 0x8(%rdi), %r13d
testl %r15d, %r15d
js 0x98e3
testl %r14d, %r14d
js 0x9902
movl 0x8(%rdi), %eax
cmpl %eax, %r14d
jg 0x9921
testl %r13d, %r13d
js 0x9940
cmpl %r14d, %r13d
jb 0x995f
movl %r13d, %r12d
subl %r14d, %r12d
cmpl %r15d, %r12d
jl 0x997e
cmpl %eax, %r13d
jbe 0x9882
movq %rdi, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movl %r13d, %esi
callq 0x9014
movq -0x30(%rbp), %rdi
movl %r13d, 0x8(%rdi)
movq (%rdi), %rdi
movl %r14d, %edx
leaq (%rdi,%rdx), %rax
movl %r15d, %ecx
addl %r15d, %r14d
subl %r13d, %r14d
movslq %r12d, %r8
addq %rdx, %r8
movslq %r15d, %rdx
notq %rdx
leaq (%rdx,%rcx), %rsi
addq %r8, %rsi
addq %rdi, %rsi
addq %r8, %rdx
addq %rdi, %rdx
xorl %edi, %edi
cmpl %edi, %r14d
je 0x98c5
movb (%rdx,%rdi), %r8b
movb %r8b, (%rsi,%rdi)
decq %rdi
jmp 0x98b3
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x98d4
movb %bl, (%rax,%rdx)
incq %rdx
jmp 0x98c7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xace(%rip), %rdi       # 0xa3b8
leaq 0x2a84(%rip), %rsi      # 0xc375
leaq 0x2bcf(%rip), %rcx      # 0xc4c7
movl $0x1c4, %edx            # imm = 0x1C4
callq 0x21b0
leaq 0x2bf0(%rip), %rdi      # 0xc4f9
leaq 0x2a65(%rip), %rsi      # 0xc375
leaq 0x2bb0(%rip), %rcx      # 0xc4c7
movl $0x1c5, %edx            # imm = 0x1C5
callq 0x21b0
leaq 0x2bdc(%rip), %rdi      # 0xc504
leaq 0x2a46(%rip), %rsi      # 0xc375
leaq 0x2b91(%rip), %rcx      # 0xc4c7
movl $0x1c6, %edx            # imm = 0x1C6
callq 0x21b0
leaq 0x2bcd(%rip), %rdi      # 0xc514
leaq 0x2a27(%rip), %rsi      # 0xc375
leaq 0x2b72(%rip), %rcx      # 0xc4c7
movl $0x1ca, %edx            # imm = 0x1CA
callq 0x21b0
leaq 0x2bb7(%rip), %rdi      # 0xc51d
leaq 0x2a08(%rip), %rsi      # 0xc375
leaq 0x2b53(%rip), %rcx      # 0xc4c7
movl $0x1cb, %edx            # imm = 0x1CB
callq 0x21b0
leaq 0x2ba5(%rip), %rdi      # 0xc52a
leaq 0x29e9(%rip), %rsi      # 0xc375
leaq 0x2b34(%rip), %rcx      # 0xc4c7
movl $0x1cc, %edx            # imm = 0x1CC
callq 0x21b0
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/str.c
// Function: str_shiftl
void str_shiftl(struct str *s, int start, int end, int n, int pad)
{
  int i, window_size;
  char *ss;

  if (start < 0) {
    start = s->len + start;
  }

  if (end < 0) {
    end = s->len + end;
  }

  assert(n >= 0);
  assert(start >= 0);
  assert(start <= s->len);

  window_size = end - start;

  assert(end >= 0);
  assert(start <= end);
  assert(n <= window_size);

  assert(end <= s->len);

  ss = s->s + start;
  bcopyl(ss, window_size - n, ss + n);

  ss += window_size - n;
  for (i=0; i<n; i++) {
    ss[i] = pad;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testl %esi, %esi
jns 0x99a8
addl 0x8(%rdi), %esi
testl %edx, %edx
jns 0x99af
addl 0x8(%rdi), %edx
testl %ecx, %ecx
js 0x9a28
testl %esi, %esi
js 0x9a47
movl 0x8(%rdi), %eax
cmpl %eax, %esi
jg 0x9a66
testl %edx, %edx
js 0x9a85
cmpl %esi, %edx
jb 0x9aa4
movl %edx, %r10d
subl %esi, %r10d
movl %r10d, %r9d
subl %ecx, %r9d
jl 0x9ac3
cmpl %eax, %edx
ja 0x9ae2
movl %esi, %eax
addq (%rdi), %rax
movl %ecx, %ecx
movl %r10d, %edx
movq %rax, %rsi
cmpl %edx, %ecx
je 0x9a10
movb (%rsi,%rcx), %dil
movb %dil, (%rsi)
incq %rsi
decq %rdx
jmp 0x99fd
movslq %r9d, %rdx
addq %rdx, %rax
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x9a26
movb %r8b, (%rax,%rdx)
incq %rdx
jmp 0x9a18
popq %rbp
retq
leaq 0x989(%rip), %rdi       # 0xa3b8
leaq 0x293f(%rip), %rsi      # 0xc375
leaq 0x2afe(%rip), %rcx      # 0xc53b
movl $0x1e9, %edx            # imm = 0x1E9
callq 0x21b0
leaq 0x2aab(%rip), %rdi      # 0xc4f9
leaq 0x2920(%rip), %rsi      # 0xc375
leaq 0x2adf(%rip), %rcx      # 0xc53b
movl $0x1ea, %edx            # imm = 0x1EA
callq 0x21b0
leaq 0x2a97(%rip), %rdi      # 0xc504
leaq 0x2901(%rip), %rsi      # 0xc375
leaq 0x2ac0(%rip), %rcx      # 0xc53b
movl $0x1eb, %edx            # imm = 0x1EB
callq 0x21b0
leaq 0x2a88(%rip), %rdi      # 0xc514
leaq 0x28e2(%rip), %rsi      # 0xc375
leaq 0x2aa1(%rip), %rcx      # 0xc53b
movl $0x1ef, %edx            # imm = 0x1EF
callq 0x21b0
leaq 0x2a72(%rip), %rdi      # 0xc51d
leaq 0x28c3(%rip), %rsi      # 0xc375
leaq 0x2a82(%rip), %rcx      # 0xc53b
movl $0x1f0, %edx            # imm = 0x1F0
callq 0x21b0
leaq 0x2a60(%rip), %rdi      # 0xc52a
leaq 0x28a4(%rip), %rsi      # 0xc375
leaq 0x2a63(%rip), %rcx      # 0xc53b
movl $0x1f1, %edx            # imm = 0x1F1
callq 0x21b0
leaq 0x2a84(%rip), %rdi      # 0xc56d
leaq 0x2885(%rip), %rsi      # 0xc375
leaq 0x2a44(%rip), %rcx      # 0xc53b
movl $0x1f3, %edx            # imm = 0x1F3
callq 0x21b0
// File: /workspace/github_c_makefile_star2_O2/alexgirao[P]aimant/str.c
// Function: str_from_file
void str_from_file(struct str *s, const char *file)
{
  off_t fsz = get_file_size(file);
  str_alloc(s, fsz + 1);
  get_file_data(file, fsz, s->s);
  s->s[fsz] = 0;
  s->len = fsz;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x90, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq -0xb0(%rbp), %rsi
movq %r15, %rdi
callq 0x2250
testl %eax, %eax
jne 0x9bc0
movq -0x80(%rbp), %r14
leal 0x1(%r14), %esi
movq %rbx, %rdi
callq 0x9014
movq (%rbx), %r12
leaq 0x2a42(%rip), %rsi      # 0xc5ae
movq %r15, %rdi
callq 0x22f0
testq %r12, %r12
je 0x9bdf
movq %rax, %r15
testq %rax, %rax
je 0x9bfe
pushq $0x1
popq %rdx
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0x20e0
cmpq $0x1, %rax
jne 0x9c1d
movq %r15, %rdi
callq 0x2130
movq (%rbx), %rax
movb $0x0, (%rax,%r14)
movl %r14d, 0x8(%rbx)
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x29b4(%rip), %rdi      # 0xc57b
leaq 0x27a7(%rip), %rsi      # 0xc375
leaq 0x29b7(%rip), %rcx      # 0xc58c
movl $0x20b, %edx            # imm = 0x20B
callq 0x21b0
leaq 0xc6d(%rip), %rdi       # 0xa853
leaq 0x2788(%rip), %rsi      # 0xc375
leaq 0x29bd(%rip), %rcx      # 0xc5b1
movl $0x212, %edx            # imm = 0x212
callq 0x21b0
leaq 0xda3(%rip), %rdi       # 0xa9a8
leaq 0x2769(%rip), %rsi      # 0xc375
leaq 0x299e(%rip), %rcx      # 0xc5b1
movl $0x213, %edx            # imm = 0x213
callq 0x21b0
leaq 0x29be(%rip), %rdi      # 0xc5e2
leaq 0x274a(%rip), %rsi      # 0xc375
leaq 0x297f(%rip), %rcx      # 0xc5b1
movl $0x214, %edx            # imm = 0x214
callq 0x21b0
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: alloc_atom
struct atom *
alloc_atom(void)
{
	struct atom *p;

	if (free_count == 0)
		alloc_block();

	p = free_list;
	free_list = p->u.next;

	free_count--;
	alloc_count++;

	return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0x30dea(%rip), %ecx     # 0x38290
testl %ecx, %ecx
jne 0x74b5
callq 0x74d6
movl 0x30ddb(%rip), %ecx     # 0x38290
movq 0x30ddc(%rip), %rax     # 0x38298
movq (%rax), %rdx
movq %rdx, 0x30dd2(%rip)     # 0x38298
decl %ecx
movl %ecx, 0x30dc2(%rip)     # 0x38290
incl 0x30dcc(%rip)           # 0x382a0
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: alloc_block
void
alloc_block(void)
{
	int i;
	struct atom *p;

	if (block_count == MAXBLOCKS) {
		tos = 0;
		gc(); // prep for next run
		stopf("out of memory");
	}

	p = alloc_mem(BLOCKSIZE * sizeof (struct atom));

	mem[block_count++] = p;

	for (i = 0; i < BLOCKSIZE - 1; i++) {
		p[i].atomtype = FREEATOM;
		p[i].u.next = p + i + 1;
	}

	p[i].atomtype = FREEATOM;
	p[i].u.next = NULL;

	free_list = p;
	free_count = BLOCKSIZE;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpl $0x7d0, 0x30dc0(%rip)   # imm = 0x7D0
je 0x7552
movl $0x3a980, %edi          # imm = 0x3A980
callq 0x779c
movslq 0x30dad(%rip), %rcx     # 0x382a4
leal 0x1(%rcx), %edx
movl %edx, 0x30da4(%rip)     # 0x382a4
leaq 0x30da9(%rip), %rdx     # 0x382b0
movq %rax, (%rdx,%rcx,8)
movq %rax, %rcx
addq $0x18, %rcx
xorl %edx, %edx
cmpq $0x3a968, %rdx          # imm = 0x3A968
je 0x7530
movb $0x0, 0x10(%rax,%rdx)
leaq (%rcx,%rdx), %rsi
movq %rsi, (%rax,%rdx)
addq $0x18, %rdx
jmp 0x7514
movb $0x0, 0x3a978(%rax)
andq $0x0, 0x3a968(%rax)
movq %rax, 0x30d52(%rip)     # 0x38298
movl $0x2710, 0x30d40(%rip)  # imm = 0x2710
popq %rbp
retq
andl $0x0, 0x30d4f(%rip)     # 0x382a8
callq 0x756a
leaq 0x1bc73(%rip), %rdi     # 0x231d8
callq 0x7756
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: stopf
void
stopf(char *s)
{
	print_trace(RED);
	snprintf(strbuf, STRBUFLEN, "Stop: %s\n", s);
	printbuf(strbuf, RED);
	longjmp(jmpbuf, 1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x21385
leaq 0x108194(%rip), %r14    # 0x10f900
leaq 0x207b1(%rip), %rdx     # 0x27f24
movl $0x3e8, %esi            # imm = 0x3E8
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x7100
movq %r14, %rdi
callq 0x13012
leaq 0x10805c(%rip), %rdi    # 0x10f7f0
pushq $0x1
popq %rsi
callq 0x72c0
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: alloc_mem
void *
alloc_mem(int n)
{
	void *p = malloc(n);
	if (p == NULL)
		exit(1);
	return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movslq %edi, %rdi
callq 0x7250
testq %rax, %rax
je 0x77af
popq %rbp
retq
pushq $0x1
popq %rdi
callq 0x7320
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: alloc_vector
struct atom *
alloc_vector(int nrow)
{
	struct atom *p = alloc_tensor(nrow);
	p->u.tensor->ndim = 1;
	p->u.tensor->dim[0] = nrow;
	return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
callq 0x77da
movq (%rax), %rcx
movl $0x1, (%rcx)
movq (%rax), %rcx
movl %ebx, 0x4(%rcx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: alloc_tensor
struct atom *
alloc_tensor(int nelem)
{
	int i;
	struct atom *p;
	struct tensor *t;
	p = alloc_atom();
	t = alloc_mem(sizeof (struct tensor) + nelem * sizeof (struct atom *));
	p->atomtype = TENSOR;
	p->u.tensor = t;
	t->nelem = nelem;
	for (i = 0; i < nelem; i++)
		t->elem[i] = zero;
	tensor_count++;
	return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %edi, %ebx
callq 0x749c
movq %rax, %r14
leal 0x70(,%rbx,8), %edi
callq 0x779c
movb $0x7, 0x10(%r14)
movq %rax, (%r14)
movl %ebx, 0x64(%rax)
movq 0x34927(%rip), %rcx     # 0x3c130
xorl %edx, %edx
testl %ebx, %ebx
cmovlel %edx, %ebx
cmpq %rdx, %rbx
je 0x781f
movq %rcx, 0x68(%rax,%rdx,8)
incq %rdx
jmp 0x7810
incl 0x34913(%rip)           # 0x3c138
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: alloc_matrix
struct atom *
alloc_matrix(int nrow, int ncol)
{
	struct atom *p = alloc_tensor(nrow * ncol);
	p->u.tensor->ndim = 2;
	p->u.tensor->dim[0] = nrow;
	p->u.tensor->dim[1] = ncol;
	return p;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movl %edi, %r14d
movl %esi, %edi
imull %r14d, %edi
callq 0x77da
movq (%rax), %rcx
movl $0x2, (%rcx)
movq (%rax), %rcx
movl %r14d, 0x4(%rcx)
movq (%rax), %rcx
movl %ebx, 0x8(%rcx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: mfloat
double
mfloat(uint32_t *p)
{
	int i, n;
	double d;
	n = MLENGTH(p);
	d = 0.0;
	for (i = 0; i < n; i++)
		d += scalbn((double) p[i], 32 * i);
	return d;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl -0x4(%rdi), %r15d
xorl %r14d, %r14d
testl %r15d, %r15d
cmovlel %r14d, %r15d
shlq $0x5, %r15
xorps %xmm0, %xmm0
cmpq %r14, %r15
je 0x78d0
movl (%rbx), %eax
movsd %xmm0, -0x20(%rbp)
cvtsi2sd %rax, %xmm0
movl %r14d, %edi
callq 0x7260
movsd -0x20(%rbp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, -0x20(%rbp)
movsd -0x20(%rbp), %xmm0
addq $0x20, %r14
addq $0x4, %rbx
jmp 0x789a
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: mscan
uint32_t *
mscan(char *s)
{
	int i, k, len;
	uint32_t *a, *b, *t;
	a = mint(0);
	len = (int) strlen(s);
	if (len == 0)
		return a;
	k = len % 9;
	if (k == 0)
		k = 9;
	for (i = 0; i < k; i++)
		a[0] = 10 * a[0] + s[i] - '0';
	if (k == len)
		return a;
	b = mint(0);
	while (k < len) {
		b[0] = 1000000000; // 10^9
		t = mmul(a, b);
		mfree(a);
		a = t;
		b[0] = 0;
		for (i = 0; i < 9; i++)
			b[0] = 10 * b[0] + s[k++] - '0';
		t = madd(a, b);
		mfree(a);
		a = t;
	}
	mfree(b);
	return a;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %edi, %edi
callq 0x7a09
movq %rax, %r12
movq %rbx, %rdi
callq 0x70e0
movq %rax, %rsi
testl %esi, %esi
je 0x79f7
pushq $0x9
popq %rcx
movl %esi, %eax
cltd
idivl %ecx
movl %edx, %r15d
testl %edx, %edx
cmovel %ecx, %r15d
testl %r15d, %r15d
movl $0x0, %eax
cmovgl %r15d, %eax
cmpq %r14, %rax
je 0x7973
imull $0xa, (%r12), %ecx
movsbl (%rbx,%r14), %edx
addl %edx, %ecx
addl $-0x30, %ecx
movl %ecx, (%r12)
incq %r14
jmp 0x7956
cmpl %esi, %r15d
je 0x79f7
movq %rsi, -0x38(%rbp)
movq %rbx, -0x30(%rbp)
xorl %edi, %edi
callq 0x7a09
movq %rax, %r13
cmpl -0x38(%rbp), %r15d
jge 0x79ef
movslq %r15d, %rbx
addq -0x30(%rbp), %rbx
movl $0x3b9aca00, (%r13)     # imm = 0x3B9ACA00
movq %r12, %rdi
movq %r13, %rsi
callq 0x7a22
movq %rax, %r14
movq %r12, %rdi
callq 0x7ad9
xorl %eax, %eax
xorl %ecx, %ecx
cmpl $0x9, %eax
je 0x79cf
imull $0xa, %ecx, %ecx
movsbl (%rbx,%rax), %edx
addl %edx, %ecx
addl $-0x30, %ecx
incq %rax
jmp 0x79b9
addl $0x9, %r15d
movl %ecx, (%r13)
movq %r14, %rdi
movq %r13, %rsi
callq 0x7aee
movq %rax, %r12
movq %r14, %rdi
callq 0x7ad9
jmp 0x798a
movq %r13, %rdi
callq 0x7ad9
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: mmul
uint32_t *
mmul(uint32_t *u, uint32_t *v)
{
	int i, j, nu, nv, nw;
	uint64_t t;
	uint32_t *w;
	nu = MLENGTH(u);
	nv = MLENGTH(v);
	nw = nu + nv;
	w = mnew(nw);
	for (i = 0; i < nw; i++)
		w[i] = 0;
	for (i = 0; i < nu; i++) {
		t = 0;
		for (j = 0; j < nv; j++) {
			t += (uint64_t) u[i] * v[j] + w[i + j];
			w[i + j] = (uint32_t) t;
			t >>= 32;
		}
		w[i + j] = (uint32_t) t;
	}
	mnorm(w);
	return w;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl -0x4(%rdi), %eax
movl -0x4(%rsi), %r13d
movq %rax, -0x30(%rbp)
leal (%rax,%r13), %r12d
movl %r12d, %edi
callq 0x7d34
movq %rax, %r15
xorl %eax, %eax
testl %r12d, %r12d
cmovlel %eax, %r12d
cmpq %rax, %r12
je 0x7a68
andl $0x0, (%r15,%rax,4)
incq %rax
jmp 0x7a59
xorl %eax, %eax
testl %r13d, %r13d
cmovlel %eax, %r13d
movq -0x30(%rbp), %r10
testl %r10d, %r10d
cmovlel %eax, %r10d
leaq (%r15,%r13,4), %rcx
movq %r15, %rdx
cmpq %r10, %rax
je 0x7abf
xorl %edi, %edi
xorl %esi, %esi
cmpq %rdi, %r13
je 0x7ab3
movl (%r14,%rax,4), %r8d
movl (%rbx,%rdi,4), %r9d
imulq %r8, %r9
movl (%rdx,%rdi,4), %r8d
addq %r8, %rsi
addq %r9, %rsi
movl %esi, (%rdx,%rdi,4)
shrq $0x20, %rsi
incq %rdi
jmp 0x7a8c
movl %esi, (%rcx,%rax,4)
incq %rax
addq $0x4, %rdx
jmp 0x7a83
movq %r15, %rdi
callq 0x7d16
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: madd
uint32_t *
madd(uint32_t *u, uint32_t *v)
{
	int i, nu, nv, nw;
	uint64_t t;
	uint32_t *w;
	nu = MLENGTH(u);
	nv = MLENGTH(v);
	if (nu > nv)
		nw = nu + 1;
	else
		nw = nv + 1;
	w = mnew(nw);
	for (i = 0; i < nu; i++)
		w[i] = u[i];
	for (i = nu; i < nw; i++)
		w[i] = 0;
	t = 0;
	for (i = 0; i < nv; i++) {
		t += (uint64_t) w[i] + v[i];
		w[i] = (uint32_t) t;
		t >>= 32;
	}
	for (i = nv; i < nw; i++) {
		t += w[i];
		w[i] = (uint32_t) t;
		t >>= 32;
	}
	mnorm(w);
	return w;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movslq -0x4(%rdi), %r13
movslq -0x4(%rsi), %r12
cmpl %r12d, %r13d
movl %r12d, %eax
cmovgl %r13d, %eax
movq %rax, -0x30(%rbp)
leal 0x1(%rax), %edi
callq 0x7d34
movq %rax, %rbx
xorl %eax, %eax
testl %r13d, %r13d
movl $0x0, %ecx
cmovgl %r13d, %ecx
cmpq %rax, %rcx
je 0x7b42
movl (%r15,%rax,4), %edx
movl %edx, (%rbx,%rax,4)
incq %rax
jmp 0x7b31
movslq -0x30(%rbp), %rax
cmpq %rax, %r13
jg 0x7b55
andl $0x0, (%rbx,%r13,4)
incq %r13
jmp 0x7b46
xorl %edx, %edx
testl %r12d, %r12d
movl $0x0, %esi
cmovgl %r12d, %esi
xorl %ecx, %ecx
cmpq %rdx, %rsi
je 0x7b95
movl (%rbx,%rdx,4), %edi
movl (%r14,%rdx,4), %r8d
addq %rdi, %rcx
addq %r8, %rcx
movl %ecx, (%rbx,%rdx,4)
shrq $0x20, %rcx
incq %rdx
jmp 0x7b65
movl (%rbx,%r12,4), %edx
addq %rdx, %rcx
movl %ecx, (%rbx,%r12,4)
shrq $0x20, %rcx
incq %r12
cmpq %rax, %r12
jle 0x7b83
movq %rbx, %rdi
callq 0x7d16
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: mstr
char *
mstr(uint32_t *u)
{
	int i, k, n, r;
	static char *buf;
	static int len;

	// estimate string length

	// note that 0xffffffff -> 000000004 294967295

	// hence space for 8 leading zeroes is required

	n = 10 * MLENGTH(u) + 10;

	n = 1000 * (n / 1000 + 1);

	if (n > len) {
		if (buf)
			free(buf);
		buf = alloc_mem(n);
		len = n;
	}

	u = mcopy(u);

	k = len - 1;
	buf[k] = '\0'; // string terminator

	for (;;) {
		r = mdivby1billion(u);
		for (i = 0; i < 9; i++) {
			buf[--k] = r % 10 + '0';
			r /= 10;
		}
		if (MZERO(u))
			break;
	}

	mfree(u);

	// remove leading zeroes

	while (buf[k] == '0' && buf[k + 1])
		k++;

	return buf + k;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
imull $0xa, -0x4(%rdi), %r14d
addl $0xa, %r14d
movl $0x3e8, %ecx            # imm = 0x3E8
movl %r14d, %eax
cltd
idivl %ecx
subl %edx, %r14d
addl %ecx, %r14d
cmpl 0x34562(%rip), %r14d    # 0x3c148
jle 0x7c0a
movq 0x34551(%rip), %rdi     # 0x3c140
callq 0x7040
movl %r14d, %edi
callq 0x779c
movq %rax, 0x3453d(%rip)     # 0x3c140
movl %r14d, 0x3453e(%rip)    # 0x3c148
movq %rbx, %rdi
callq 0x7c9c
movq %rax, %rbx
movslq 0x3452c(%rip), %r14     # 0x3c148
movq 0x3451d(%rip), %r15     # 0x3c140
movb $0x0, -0x1(%r15,%r14)
decq %r14
pushq $0xa
popq %r12
movq %rbx, %rdi
callq 0x7cca
movslq %r14d, %r13
xorl %ecx, %ecx
cmpl $0x9, %ecx
je 0x7c55
cltd
idivl %r12d
addb $0x30, %dl
movb %dl, -0x1(%r15,%r13)
decq %r13
incl %ecx
jmp 0x7c3d
subl %ecx, %r14d
cmpl $0x1, -0x4(%rbx)
jne 0x7c30
cmpl $0x0, (%rbx)
jne 0x7c30
movq %rbx, %rdi
callq 0x7ad9
movq 0x344ce(%rip), %rax     # 0x3c140
leaq (%rax,%r13), %rcx
movb (%rax,%r13), %dl
movq %rcx, %rax
cmpb $0x30, %dl
jne 0x7c8d
leaq 0x1(%rax), %rcx
movb 0x1(%rax), %dl
testb %dl, %dl
jne 0x7c7a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: mcopy
uint32_t *
mcopy(uint32_t *u)
{
	int i;
	uint32_t *v;
	v = mnew(MLENGTH(u));
	for (i = 0; i < MLENGTH(u); i++)
		v[i] = u[i];
	return v;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl -0x4(%rdi), %edi
callq 0x7d34
movslq -0x4(%rbx), %rcx
xorl %edx, %edx
cmpq %rcx, %rdx
jge 0x7cc3
movl (%rbx,%rdx,4), %esi
movl %esi, (%rax,%rdx,4)
incq %rdx
jmp 0x7cb3
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: mdivby1billion
int
mdivby1billion(uint32_t *u)
{
	int i;
	uint64_t r = 0;
	for (i = MLENGTH(u) - 1; i >= 0; i--) {
		r = r << 32 | u[i];
		u[i] = (uint32_t) (r / 1000000000);
		r -= (uint64_t) 1000000000 * u[i];
	}
	mnorm(u);
	return (int) r;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl -0x4(%rdi), %r8d
xorl %ebx, %ebx
movl $0x3b9aca00, %esi       # imm = 0x3B9ACA00
testl %r8d, %r8d
jle 0x7d08
shlq $0x20, %rbx
movl -0x4(%rdi,%r8,4), %ecx
orq %rbx, %rcx
movq %rcx, %rax
xorl %edx, %edx
divq %rsi
movl %eax, -0x4(%rdi,%r8,4)
decq %r8
imulq $-0x3b9aca00, %rax, %rbx # imm = 0xC4653600
addq %rcx, %rbx
jmp 0x7cdb
callq 0x7d16
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: mnew
uint32_t *
mnew(int n)
{
	uint32_t *u;
	u = alloc_mem((n + 1) * sizeof (uint32_t));
	bignum_count++;
	*u = n;
	return u + 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
leal 0x4(,%rbx,4), %edi
callq 0x779c
incl 0x343fe(%rip)           # 0x3c14c
movl %ebx, (%rax)
addq $0x4, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: msub
uint32_t *
msub(uint32_t *u, uint32_t *v)
{
	int i, nu, nv, nw;
	uint64_t t;
	uint32_t *w;
	nu = MLENGTH(u);
	nv = MLENGTH(v);
	if (nu > nv)
		nw = nu;
	else
		nw = nv;
	w = mnew(nw);
	for (i = 0; i < nu; i++)
		w[i] = u[i];
	for (i = nu; i < nw; i++)
		w[i] = 0;
	t = 0;
	for (i = 0; i < nv; i++) {
		t += (uint64_t) w[i] - v[i];
		w[i] = (uint32_t) t;
		t = (int64_t) t >> 32; // cast to extend sign
	}
	for (i = nv; i < nw; i++) {
		t += w[i];
		w[i] = (uint32_t) t;
		t = (int64_t) t >> 32; // cast to extend sign
	}
	mnorm(w);
	return w;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movslq -0x4(%rdi), %r12
movslq -0x4(%rsi), %r13
cmpl %r13d, %r12d
movl %r13d, %edi
cmovgl %r12d, %edi
movl %edi, -0x2c(%rbp)
callq 0x7d34
movq %rax, %rbx
xorl %eax, %eax
testl %r12d, %r12d
movl $0x0, %ecx
cmovgl %r12d, %ecx
cmpq %rax, %rcx
je 0x7dab
movl (%r15,%rax,4), %edx
movl %edx, (%rbx,%rax,4)
incq %rax
jmp 0x7d9a
movslq -0x2c(%rbp), %rax
cmpq %r12, %rax
je 0x7dbe
andl $0x0, (%rbx,%r12,4)
incq %r12
jmp 0x7daf
xorl %edx, %edx
testl %r13d, %r13d
movl $0x0, %esi
cmovgl %r13d, %esi
xorl %ecx, %ecx
cmpq %rdx, %rsi
je 0x7e01
movl (%rbx,%rdx,4), %edi
movl (%r14,%rdx,4), %r8d
subq %r8, %rdi
addq %rcx, %rdi
movl %edi, (%rbx,%rdx,4)
sarq $0x20, %rdi
incq %rdx
movq %rdi, %rcx
jmp 0x7dce
movl (%rbx,%r13,4), %edx
addq %rdx, %rcx
movl %ecx, (%rbx,%r13,4)
sarq $0x20, %rcx
incq %r13
cmpq %r13, %rax
jne 0x7def
movq %rbx, %rdi
callq 0x7d16
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: mpow
uint32_t *
mpow(uint32_t *u, uint32_t *v)
{
	uint32_t *t, *w;
	u = mcopy(u);
	v = mcopy(v);
	// w = 1
	w = mnew(1);
	w[0] = 1;
	for (;;) {
		if (v[0] & 1) {
			// w = w * u
			t = mmul(w, u);
			mfree(w);
			w = t;
		}
		// v = v >> 1
		mshr(v);
		// v = 0?
		if (MLENGTH(v) == 1 && v[0] == 0)
			break;
		// u = u * u
		t = mmul(u, u);
		mfree(u);
		u = t;
	}
	mfree(u);
	mfree(v);
	return w;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
callq 0x7c9c
movq %rax, %r14
movq %rbx, %rdi
callq 0x7c9c
movq %rax, %rbx
pushq $0x1
popq %rdi
callq 0x7d34
movq %rax, %r15
movl $0x1, (%rax)
testb $0x1, (%rbx)
je 0x821c
movq %r15, %rdi
movq %r14, %rsi
callq 0x7a22
movq %rax, %r12
movq %r15, %rdi
callq 0x7ad9
movq %r12, %r15
movq %rbx, %rdi
callq 0x8266
cmpl $0x1, -0x4(%rbx)
jne 0x822f
cmpl $0x0, (%rbx)
je 0x824a
movq %r14, %rdi
movq %r14, %rsi
callq 0x7a22
movq %rax, %r12
movq %r14, %rdi
callq 0x7ad9
movq %r12, %r14
jmp 0x81fe
movq %r14, %rdi
callq 0x7ad9
movq %rbx, %rdi
callq 0x7ad9
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: mshr
void
mshr(uint32_t *u)
{
	int i;
	for (i = 0; i < MLENGTH(u) - 1; i++) {
		u[i] >>= 1;
		if (u[i + 1] & 1)
			u[i] |= 0x80000000;
	}
	u[i] >>= 1;
	mnorm(u);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl -0x4(%rdi), %ecx
cmpl $0x2, %ecx
movl $0x1, %eax
cmovgel %ecx, %eax
decl %eax
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x829e
movl (%rdi,%rcx,4), %edx
shrl %edx
movl %edx, (%rdi,%rcx,4)
testb $0x1, 0x4(%rdi,%rcx,4)
je 0x8299
orl $0x80000000, %edx       # imm = 0x80000000
movl %edx, (%rdi,%rcx,4)
incq %rcx
jmp 0x827c
shrl (%rdi,%rax,4)
popq %rbp
jmp 0x7d16
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: mcmp
int
mcmp(uint32_t *u, uint32_t *v)
{
	int i;
	mnorm(u);
	mnorm(v);
	if (MLENGTH(u) < MLENGTH(v))
		return -1;
	if (MLENGTH(u) > MLENGTH(v))
		return 1;
	for (i = MLENGTH(u) - 1; i >= 0; i--) {
		if (u[i] < v[i])
			return -1;
		if (u[i] > v[i])
			return 1;
	}
	return 0; // u = v
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x7d16
movq %rbx, %rdi
callq 0x7d16
movl -0x4(%r14), %ecx
movl -0x4(%rbx), %esi
pushq $-0x1
popq %rax
cmpl %esi, %ecx
jl 0x82f4
pushq $0x1
popq %rdx
cmpl %esi, %ecx
jg 0x82ee
testl %ecx, %ecx
jle 0x82f2
movl -0x4(%r14,%rcx,4), %esi
movl -0x4(%rbx,%rcx,4), %edi
cmpl %edi, %esi
jb 0x82f4
decq %rcx
cmpl %edi, %esi
jbe 0x82d6
movl %edx, %eax
jmp 0x82f4
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: meq
int
meq(uint32_t *u, uint32_t *v)
{
	int i;
	if (MLENGTH(u) != MLENGTH(v))
		return 0;
	for (i = 0; i < MLENGTH(u); i++)
		if (u[i] != v[i])
			return 0;
	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl -0x4(%rdi), %ecx
cmpl -0x4(%rsi), %ecx
jne 0x8327
xorl %edx, %edx
testl %ecx, %ecx
cmovlel %edx, %ecx
movl $0x1, %eax
cmpq %rdx, %rcx
je 0x8329
movl (%rdi,%rdx,4), %r8d
leaq 0x1(%rdx), %r9
cmpl (%rsi,%rdx,4), %r8d
movq %r9, %rdx
je 0x8311
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/georgeweigt[P]eigenmath/eigenmath.c
// Function: mgcd
uint32_t *
mgcd(uint32_t *u, uint32_t *v)
{
	int i, k, n, sign;
	uint32_t *t;

	if (MZERO(u)) {
		t = mcopy(v);
		return t;
	}

	if (MZERO(v)) {
		t = mcopy(u);
		return t;
	}

	u = mcopy(u);
	v = mcopy(v);

	k = 0;

	while ((u[0] & 1) == 0 && (v[0] & 1) == 0) {
		mshr(u);
		mshr(v);
		k++;
	}

	if (u[0] & 1) {
		t = mcopy(v);
		sign = -1;
	} else {
		t = mcopy(u);
		sign = 1;
	}

	while (1) {

		while ((t[0] & 1) == 0)
			mshr(t);

		if (sign == 1) {
			mfree(u);
			u = mcopy(t);
		} else {
			mfree(v);
			v = mcopy(t);
		}

		mfree(t);

		if (mcmp(u, v) < 0) {
			t = msub(v, u);
			sign = -1;
		} else {
			t = msub(u, v);
			sign = 1;
		}

		if (MZERO(t)) {
			mfree(t);
			mfree(v);
			n = (k / 32) + 1;
			v = mnew(n);
			for (i = 0; i < n; i++)
				v[i] = 0;
			msetbit(v, k);
			t = mmul(u, v);
			mfree(u);
			mfree(v);
			return t;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
cmpl $0x1, -0x4(%rdi)
jne 0x834b
cmpl $0x0, (%rdi)
je 0x84b7
cmpl $0x1, -0x4(%r14)
jne 0x835c
cmpl $0x0, (%r14)
je 0x84ba
callq 0x7c9c
movq %rax, %rbx
movq %r14, %rdi
callq 0x7c9c
movq %rax, %r15
xorl %r14d, %r14d
testb $0x1, (%rbx)
jne 0x8392
testb $0x1, (%r15)
jne 0x8399
movq %rbx, %rdi
callq 0x8266
movq %r15, %rdi
callq 0x8266
incq %r14
jmp 0x8372
movq %r15, %rdi
pushq $-0x1
jmp 0x839e
movq %rbx, %rdi
pushq $0x1
popq %r13
callq 0x7c9c
movq %rax, %r12
testb $0x1, (%r12)
jne 0x83b9
movq %r12, %rdi
callq 0x8266
jmp 0x83a8
cmpl $0x1, %r13d
jne 0x83d4
movq %rbx, %rdi
callq 0x7ad9
movq %r12, %rdi
callq 0x7c9c
movq %rax, %rbx
jmp 0x83e7
movq %r15, %rdi
callq 0x7ad9
movq %r12, %rdi
callq 0x7c9c
movq %rax, %r15
movq %r12, %rdi
callq 0x7ad9
movq %rbx, %rdi
movq %r15, %rsi
callq 0x82a7
testl %eax, %eax
js 0x8410
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7d5b
movq %rax, %r12
pushq $0x1
jmp 0x8420
movq %r15, %rdi
movq %rbx, %rsi
callq 0x7d5b
movq %rax, %r12
pushq $-0x1
popq %r13
cmpl $0x1, -0x4(%r12)
jne 0x83a8
cmpl $0x0, (%r12)
jne 0x83a8
movq %r12, %rdi
callq 0x7ad9
movq %r15, %rdi
callq 0x7ad9
movl %r14d, %r12d
shrl $0x5, %r12d
leal 0x1(%r12), %edi
callq 0x7d34
movq %rax, %r15
movq %r14, %rax
shrq $0x5, %rax
incq %rax
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x8478
andl $0x0, (%r15,%rcx,4)
incq %rcx
jmp 0x8469
pushq $0x1
popq %rax
movl %r14d, %ecx
shll %cl, %eax
movl %r12d, %ecx
orl %eax, (%r15,%rcx,4)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7a22
movq %rax, %r14
movq %rbx, %rdi
callq 0x7ad9
movq %r15, %rdi
callq 0x7ad9
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7c9c