LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: mroot
uint32_t *
mroot(uint32_t *a, uint32_t *n)
{
	int i, j, k;
	uint32_t *b, *c, m;

	if (MLENGTH(n) > 1 || n[0] == 0)
		return NULL;

	// k is bit length of a

	k = 32 * (MLENGTH(a) - 1);

	m = a[MLENGTH(a) - 1];

	while (m) {
		m >>= 1;
		k++;
	}

	if (k == 0)
		return mint(0);

	// initial guess of index of ms bit in result

	k = (k - 1) / n[0];

	j = k / 32 + 1; // k is bit index, not number of bits

	b = mnew(j);

	for (i = 0; i < j; i++)
		b[i] = 0;

	while (k >= 0) {
		msetbit(b, k);
		mnorm(b);
		c = mpow(b, n);
		switch (mcmp(c, a)) {
		case -1:
			break;
		case 0:
			mfree(c);
			return b;
		case 1:
			mclrbit(b, k);
			break;
		}
		mfree(c);
		k--;
	}

	mfree(b);

	return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, -0x38(%rbp)
cmpl $0x1, -0x4(%rsi)
jg 0x8a9b
movl (%rsi), %ecx
testl %ecx, %ecx
je 0x8a9b
movq -0x38(%rbp), %rdi
movslq -0x4(%rdi), %rax
leaq -0x1(%rax), %rdx
shll $0x5, %edx
movl -0x4(%rdi,%rax,4), %eax
bsrl %eax, %edi
xorl $0x1f, %edi
negl %edi
testl %eax, %eax
leal 0x20(%rdx,%rdi), %eax
cmovel %edx, %eax
testl %eax, %eax
je 0x8aac
movq %rsi, -0x40(%rbp)
decl %eax
xorl %edx, %edx
divl %ecx
movl %eax, %r12d
leal 0x1f(%r12), %r14d
testl %eax, %eax
cmovnsl %eax, %r14d
sarl $0x5, %r14d
leal 0x8(,%r14,4), %edi
incl %r14d
callq 0x7810
incl 0x35799(%rip)           # 0x3e15c
movq %rax, %r13
movl %r14d, (%rax)
leaq 0x4(%rax), %rdx
cmpl $-0x1f, %r12d
movq %rdx, -0x30(%rbp)
jl 0x89ed
shlq $0x2, %r14
movq -0x30(%rbp), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x7130
movq -0x30(%rbp), %rdx
testl %r12d, %r12d
js 0x8a8d
movl (%r13), %ebx
movl $0x1, %r15d
movl %r12d, %ecx
shll %cl, %r15d
movq %r12, -0x48(%rbp)
shrl $0x5, %r12d
orl %r15d, (%rdx,%r12,4)
cmpl $0x2, %ebx
jl 0x8a34
movl %ebx, %eax
cmpl $0x0, (%r13,%rax,4)
jne 0x8a34
leal -0x1(%rbx), %eax
movl %eax, (%r13)
cmpl $0x2, %ebx
movl %eax, %ebx
jg 0x8a17
movl $0x1, %ebx
movq %rdx, %rdi
movq -0x40(%rbp), %rsi
callq 0x851d
movq %rax, %r14
movq %rax, %rdi
movq -0x38(%rbp), %rsi
callq 0x866a
cmpl $0x1, %eax
je 0x8a5a
testl %eax, %eax
jne 0x8a65
jmp 0x8ac1
notl %r15d
movq -0x30(%rbp), %rax
andl %r15d, (%rax,%r12,4)
addq $-0x4, %r14
movq %r14, %rdi
callq 0x7040
decl 0x356e5(%rip)           # 0x3e15c
movq -0x48(%rbp), %rcx
leal -0x1(%rcx), %eax
testl %ecx, %ecx
movl %eax, %r12d
movq -0x30(%rbp), %rdx
jg 0x89fa
movq %r13, %rdi
callq 0x7040
decl 0x356c1(%rip)           # 0x3e15c
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %edi, %edi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7ad5
addq $-0x4, %r14
movq %r14, %rdi
callq 0x7040
decl 0x35689(%rip)           # 0x3e15c
movq -0x30(%rbp), %rax
jmp 0x8a9d
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: list
void
list(int n)
{
	int i;
	push_symbol(NIL);
	for (i = 0; i < n; i++)
		cons();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
movq 0x37f18(%rip), %rdi     # 0x40a00
callq 0x8b01
testl %ebx, %ebx
jle 0x8afa
callq 0x8b47
decl %ebx
jne 0x8af1
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: push
void
push(struct atom *p)
{
	if (tos < 0 || tos >= STACKSIZE)
		stopf("stack error");
	stack[tos++] = p;
	if (tos > max_tos)
		max_tos = tos;
}

// Assembly:
cmpl $0x186a0, 0x317ad(%rip) # imm = 0x186A0
jae 0x8b37
movslq 0x317a4(%rip), %rcx     # 0x3a2b8
leal 0x1(%rcx), %eax
movl %eax, 0x3179b(%rip)     # 0x3a2b8
leaq 0x3aa9c(%rip), %rdx     # 0x435c0
movq %rdi, (%rdx,%rcx,8)
cmpl 0x1088be(%rip), %ecx    # 0x1113ec
jl 0x8b36
movl %eax, 0x1088b6(%rip)    # 0x1113ec
retq
pushq %rbp
movq %rsp, %rbp
leaq 0x223df(%rip), %rdi     # 0x2af21
callq 0x77c8
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: cons
void
cons(void)
{
	struct atom *p;
	p = alloc_atom();
	p->atomtype = CONS;
	p->u.cons.cdr = pop();
	p->u.cons.car = pop();
	push(p);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
callq 0x74ec
movq %rax, %rbx
movb $0x1, 0x10(%rax)
callq 0x8b78
movq %rax, 0x8(%rbx)
callq 0x8b78
movq %rax, (%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x8b01
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: lengthf
int
lengthf(struct atom *p)
{
	int n = 0;
	while (iscons(p)) {
		n++;
		p = cdr(p);
	}
	return n;
}

// Assembly:
xorl %eax, %eax
cmpb $0x1, 0x10(%rdi)
jne 0x8bd2
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
incl %eax
movq 0x8(%rdi), %rdi
cmpb $0x1, 0x10(%rdi)
je 0x8bc5
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: findf
int
findf(struct atom *p, struct atom *q)
{
	int i;

	if (equal(p, q))
		return 1;

	if (istensor(p)) {
		for (i = 0; i < p->u.tensor->nelem; i++)
			if (findf(p->u.tensor->elem[i], q))
				return 1;
		return 0;
	}

	while (iscons(p)) {
		if (findf(car(p), q))
			return 1;
		p = cdr(p);
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
callq 0x8c79
movl $0x1, %ebx
testl %eax, %eax
je 0x8c68
cmpb $0x7, 0x10(%r15)
jne 0x8c2a
movq (%r15), %rax
cmpl $0x0, 0x64(%rax)
jle 0x8c66
xorl %r12d, %r12d
movq 0x68(%rax,%r12,8), %rdi
movq %r14, %rsi
callq 0x8bd3
testl %eax, %eax
jne 0x8c68
incq %r12
movq (%r15), %rax
movslq 0x64(%rax), %rcx
cmpq %rcx, %r12
jl 0x8c08
jmp 0x8c66
cmpb $0x1, 0x10(%r15)
jne 0x8c66
leaq 0x10(%r15), %r13
leaq 0x37dc4(%rip), %r12     # 0x40a00
movq (%r15), %rdi
movq %r14, %rsi
callq 0x8bd3
testl %eax, %eax
jne 0x8c68
addq $0x8, %r15
cmpb $0x1, (%r13)
cmovneq %r12, %r15
movq (%r15), %r15
leaq 0x10(%r15), %r13
cmpb $0x1, 0x10(%r15)
je 0x8c3c
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: cmp_numbers
int
cmp_numbers(struct atom *p1, struct atom *p2)
{
	double d1, d2;

	if (isrational(p1) && isrational(p2))
		return cmp_rationals(p1, p2);

	push(p1);
	d1 = pop_double();

	push(p2);
	d2 = pop_double();

	if (d1 < d2)
		return -1;

	if (d1 > d2)
		return 1;

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpb $0x4, 0x10(%rdi)
jne 0x8eb2
cmpb $0x4, 0x10(%rbx)
jne 0x8eb2
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x8f7f
callq 0x8b01
callq 0x9086
movsd %xmm0, -0x10(%rbp)
movq %rbx, %rdi
callq 0x8b01
callq 0x9086
movsd -0x10(%rbp), %xmm1
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
ucomisd %xmm1, %xmm0
ja 0x8ee7
xorl %eax, %eax
ucomisd %xmm0, %xmm1
seta %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: cmp_tensors
int
cmp_tensors(struct atom *p1, struct atom *p2)
{
	int i, t;

	t = p1->u.tensor->ndim - p2->u.tensor->ndim;

	if (t)
		return t;

	for (i = 0; i < p1->u.tensor->ndim; i++) {
		t = p1->u.tensor->dim[i] - p2->u.tensor->dim[i];
		if (t)
			return t;
	}

	for (i = 0; i < p1->u.tensor->nelem; i++) {
		t = cmp(p1->u.tensor->elem[i], p2->u.tensor->elem[i]);
		if (t)
			return t;
	}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rcx
movl (%rcx), %edx
movq (%rsi), %rsi
movl (%rsi), %edi
movl %edx, %eax
subl %edi, %eax
jne 0x8f74
testl %edx, %edx
jle 0x8f41
xorl %edi, %edi
movl 0x4(%rcx,%rdi,4), %eax
subl 0x4(%rsi,%rdi,4), %eax
jne 0x8f74
incq %rdi
cmpq %rdi, %rdx
jne 0x8f2f
movq (%r14), %rax
cmpl $0x0, 0x64(%rax)
jle 0x8f72
xorl %r15d, %r15d
movq 0x68(%rax,%r15,8), %rdi
movq (%rbx), %rax
movq 0x68(%rax,%r15,8), %rsi
callq 0x8c79
testl %eax, %eax
jne 0x8f74
incq %r15
movq (%r14), %rax
movslq 0x64(%rax), %rcx
cmpq %rcx, %r15
jl 0x8f4d
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: cmp_rationals
int
cmp_rationals(struct atom *a, struct atom *b)
{
	int t;
	uint32_t *ab, *ba;
	if (a->sign == MMINUS && b->sign == MPLUS)
		return -1;
	if (a->sign == MPLUS && b->sign == MMINUS)
		return 1;
	if (isinteger(a) && isinteger(b)) {
		if (a->sign == MMINUS)
			return mcmp(b->u.q.a, a->u.q.a);
		else
			return mcmp(a->u.q.a, b->u.q.a);
	}
	ab = mmul(a->u.q.a, b->u.q.b);
	ba = mmul(a->u.q.b, b->u.q.a);
	if (a->sign == MMINUS)
		t = mcmp(ba, ab);
	else
		t = mcmp(ab, ba);
	mfree(ab);
	mfree(ba);
	return t;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movb 0x12(%rdi), %al
cmpb $0x1, %al
jne 0x8fa2
cmpb $0x0, 0x12(%r14)
je 0x9061
testb %al, %al
jne 0x8fb7
movl $0x1, %r15d
cmpb $0x1, 0x12(%r14)
je 0x9067
cmpb $0x4, 0x10(%rbx)
jne 0x8ff5
movq 0x8(%rbx), %rcx
cmpl $0x1, -0x4(%rcx)
jne 0x8ff5
cmpl $0x1, (%rcx)
jne 0x8ff5
cmpb $0x4, 0x10(%r14)
jne 0x8ff5
movq 0x8(%r14), %rcx
cmpl $0x1, -0x4(%rcx)
jne 0x8ff5
cmpl $0x1, (%rcx)
jne 0x8ff5
cmpb $0x1, %al
jne 0x9073
movq (%r14), %rdi
movq (%rbx), %rsi
jmp 0x9079
movq (%rbx), %rdi
movq 0x8(%r14), %rsi
callq 0x7b16
movq %rax, %r12
movq 0x8(%rbx), %rdi
movq (%r14), %rsi
callq 0x7b16
movq %rax, %r14
cmpb $0x1, 0x12(%rbx)
jne 0x9021
movq %r14, %rdi
movq %r12, %rsi
jmp 0x9027
movq %r12, %rdi
movq %r14, %rsi
callq 0x866a
movl %eax, %r15d
addq $-0x4, %r12
movq %r12, %rdi
callq 0x7040
movl 0x3511b(%rip), %ebx     # 0x3e15c
leal -0x1(%rbx), %eax
movl %eax, 0x35112(%rip)     # 0x3e15c
addq $-0x4, %r14
movq %r14, %rdi
callq 0x7040
addl $-0x2, %ebx
movl %ebx, 0x350fd(%rip)     # 0x3e15c
jmp 0x9067
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq (%rbx), %rdi
movq (%r14), %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x866a
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: pop_double
double
pop_double(void)
{
	double a, b, d;
	struct atom *p;

	p = pop();

	if (!isnum(p))
		stopf("number expected");

	if (isdouble(p))
		d = p->u.d;
	else {
		a = mfloat(p->u.q.a);
		b = mfloat(p->u.q.b);
		d = a / b;
		if (isnegativenumber(p))
			d = -d;
	}

	return d;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
callq 0x8b78
movq %rax, %rbx
movb 0x10(%rax), %al
andb $-0x2, %al
cmpb $0x4, %al
jne 0x9104
cmpb $0x5, 0x10(%rbx)
jne 0x90ac
movsd (%rbx), %xmm1
jmp 0x90f9
movq (%rbx), %rdi
callq 0x78f4
movapd %xmm0, -0x20(%rbp)
movq 0x8(%rbx), %rdi
callq 0x78f4
movapd -0x20(%rbp), %xmm1
divsd %xmm0, %xmm1
movzbl 0x10(%rbx), %eax
cmpl $0x5, %eax
je 0x90e2
cmpl $0x4, %eax
jne 0x90f9
cmpb $0x1, 0x12(%rbx)
sete %al
jmp 0x90ed
xorpd %xmm0, %xmm0
ucomisd (%rbx), %xmm0
seta %al
testb %al, %al
je 0x90f9
xorpd 0x1cff7(%rip), %xmm1    # 0x260f0
movapd %xmm1, %xmm0
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
leaq 0x21e39(%rip), %rdi     # 0x2af44
callq 0x77c8
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: find_denominator
int
find_denominator(struct atom *p)
{
	struct atom *q;
	p = cdr(p);
	while (iscons(p)) {
		q = car(p);
		if (car(q) == symbol(POWER) && isnegativenumber(caddr(q)))
			return 1;
		p = cdr(p);
	}
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpb $0x1, 0x10(%rdi)
leaq 0x8(%rdi), %rax
leaq 0x378bd(%rip), %rcx     # 0x40a00
cmovneq %rcx, %rax
movq (%rax), %rdx
xorl %eax, %eax
cmpb $0x1, 0x10(%rdx)
jne 0x91f2
movq 0x3a153(%rip), %rsi     # 0x432b0
xorpd %xmm0, %xmm0
movq (%rdx), %rdi
movb 0x10(%rdi), %r8b
cmpb $0x1, %r8b
movq %rcx, %r9
cmoveq %rdi, %r9
cmpq %rsi, (%r9)
jne 0x91dd
addq $0x8, %rdi
cmpb $0x1, %r8b
cmovneq %rcx, %rdi
movq (%rdi), %rdi
movb 0x10(%rdi), %r8b
addq $0x8, %rdi
cmpb $0x1, %r8b
movq %rcx, %r9
cmoveq %rdi, %r9
movq (%r9), %r9
cmpb $0x1, 0x10(%r9)
movq %rcx, %r9
jne 0x91b2
cmpb $0x1, %r8b
cmovneq %rcx, %rdi
movq (%rdi), %r9
movq (%r9), %rdi
movzbl 0x10(%rdi), %r8d
cmpl $0x5, %r8d
je 0x91d0
cmpl $0x4, %r8d
jne 0x91dd
cmpb $0x1, 0x12(%rdi)
sete %dil
jmp 0x91d8
ucomisd (%rdi), %xmm0
seta %dil
testb %dil, %dil
jne 0x91ed
movq 0x8(%rdx), %rdx
cmpb $0x1, 0x10(%rdx)
je 0x9161
jmp 0x91f2
movl $0x1, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: count_denominators
int
count_denominators(struct atom *p)
{
	int n = 0;
	p = cdr(p);
	while (iscons(p)) {
		if (isdenominator(car(p)))
			n++;
		p = cdr(p);
	}
	return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
cmpb $0x1, 0x10(%rdi)
leaq 0x8(%rdi), %rax
leaq 0x377c7(%rip), %rcx     # 0x40a00
cmoveq %rax, %rcx
movq (%rcx), %r14
xorl %ebx, %ebx
cmpb $0x1, 0x10(%r14)
jne 0x9260
xorl %ebx, %ebx
movq (%r14), %rdi
callq 0x9267
addl %eax, %ebx
movq 0x8(%r14), %r14
cmpb $0x1, 0x10(%r14)
je 0x924b
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: isdenominator
int
isdenominator(struct atom *p)
{
	if (car(p) == symbol(POWER) && isnegativenumber(caddr(p)))
		return 1;
	else if (isrational(p) && !MEQUAL(p->u.q.b, 1))
		return 1;
	else
		return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb 0x10(%rdi), %cl
cmpb $0x1, %cl
leaq 0x37788(%rip), %rax     # 0x40a00
movq %rax, %rdx
cmoveq %rdi, %rdx
movq (%rdx), %rdx
cmpq 0x3a027(%rip), %rdx     # 0x432b0
je 0x92a8
cmpb $0x4, %cl
jne 0x92a4
movq 0x8(%rdi), %rcx
movl $0x1, %eax
cmpl $0x1, -0x4(%rcx)
jne 0x92a6
cmpl $0x1, (%rcx)
jne 0x92a6
xorl %eax, %eax
popq %rbp
retq
leaq 0x8(%rdi), %rdx
cmpb $0x1, %cl
cmovneq %rax, %rdx
movq (%rdx), %rdx
movb 0x10(%rdx), %sil
addq $0x8, %rdx
cmpb $0x1, %sil
movq %rax, %r8
cmoveq %rdx, %r8
movq (%r8), %r8
cmpb $0x1, 0x10(%r8)
jne 0x92e5
cmpb $0x1, %sil
leaq 0x37722(%rip), %rax     # 0x40a00
cmoveq %rdx, %rax
movq (%rax), %rax
movq (%rax), %rax
movzbl 0x10(%rax), %edx
cmpl $0x5, %edx
je 0x92ff
cmpl $0x4, %edx
jne 0x928b
cmpb $0x1, 0x12(%rax)
sete %dl
jmp 0x930a
xorpd %xmm0, %xmm0
ucomisd (%rax), %xmm0
seta %dl
movl $0x1, %eax
testb %dl, %dl
je 0x928b
jmp 0x92a6
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: count_numerators
int
count_numerators(struct atom *p)
{
	int n = 0;
	p = cdr(p);
	while (iscons(p)) {
		if (isnumerator(car(p)))
			n++;
		p = cdr(p);
	}
	return n;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
cmpb $0x1, 0x10(%rdi)
leaq 0x8(%rdi), %rax
leaq 0x376d1(%rip), %rcx     # 0x40a00
cmoveq %rax, %rcx
movq (%rcx), %r14
xorl %ebx, %ebx
cmpb $0x1, 0x10(%r14)
jne 0x9356
xorl %ebx, %ebx
movq (%r14), %rdi
callq 0x935d
addl %eax, %ebx
movq 0x8(%r14), %r14
cmpb $0x1, 0x10(%r14)
je 0x9341
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: isnumerator
int
isnumerator(struct atom *p)
{
	if (car(p) == symbol(POWER) && isnegativenumber(caddr(p)))
		return 0;
	else if (isrational(p) && MEQUAL(p->u.q.a, 1))
		return 0;
	else
		return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movb 0x10(%rdi), %al
cmpb $0x1, %al
leaq 0x37693(%rip), %rcx     # 0x40a00
movq %rcx, %rdx
cmoveq %rdi, %rdx
movq (%rdx), %rdx
cmpq 0x39f32(%rip), %rdx     # 0x432b0
je 0x9399
cmpb $0x4, %al
jne 0x9392
movq (%rdi), %rax
cmpl $0x1, -0x4(%rax)
jne 0x9392
cmpl $0x1, (%rax)
je 0x93fe
movl $0x1, %eax
jmp 0x9400
leaq 0x8(%rdi), %rdx
cmpb $0x1, %al
cmovneq %rcx, %rdx
movq (%rdx), %rdx
movb 0x10(%rdx), %sil
addq $0x8, %rdx
cmpb $0x1, %sil
movq %rcx, %r8
cmoveq %rdx, %r8
movq (%r8), %r8
cmpb $0x1, 0x10(%r8)
jne 0x93d5
cmpb $0x1, %sil
leaq 0x37632(%rip), %rcx     # 0x40a00
cmoveq %rdx, %rcx
movq (%rcx), %rcx
movq (%rcx), %rcx
movzbl 0x10(%rcx), %edx
cmpl $0x5, %edx
je 0x93ef
cmpl $0x4, %edx
jne 0x9380
cmpb $0x1, 0x12(%rcx)
sete %cl
jmp 0x93fa
xorpd %xmm0, %xmm0
ucomisd (%rcx), %xmm0
seta %cl
testb %cl, %cl
je 0x9380
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: subst
void
subst(void)
{
	int h, i, n;
	struct atom *p1, *p2, *p3;

	p3 = pop(); // new expr
	p2 = pop(); // old expr
	p1 = pop(); // expr

	if (p2 == symbol(NIL) || p3 == symbol(NIL)) {
		push(p1);
		return;
	}

	if (istensor(p1)) {
		p1 = copy_tensor(p1);
		n = p1->u.tensor->nelem;
		for (i = 0; i < n; i++) {
			push(p1->u.tensor->elem[i]);
			push(p2);
			push(p3);
			subst();
			p1->u.tensor->elem[i] = pop();
		}
		push(p1);
		return;
	}

	if (equal(p1, p2)) {
		push(p3);
		return;
	}

	if (!iscons(p1)) {
		push(p1);
		return;
	}

	// depth first

	h = tos;

	while (iscons(p1)) {
		push(car(p1));
		push(p2);
		push(p3);
		subst();
		p1 = cdr(p1);
	}

	list(tos - h);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
callq 0x8b78
movq %rax, %rbx
callq 0x8b78
movq %rax, %r14
callq 0x8b78
movq %rax, %r15
movq 0x375d1(%rip), %rax     # 0x40a00
cmpq %rax, %r14
sete %cl
cmpq %rax, %rbx
sete %al
orb %cl, %al
cmpb $0x1, %al
je 0x9522
cmpb $0x7, 0x10(%r15)
jne 0x94a3
movq %r15, %rdi
callq 0x953d
movq %rax, %r15
movq (%rax), %rax
movslq 0x64(%rax), %r12
testq %r12, %r12
jle 0x9522
xorl %r13d, %r13d
movq (%r15), %rax
movq 0x68(%rax,%r13,8), %rdi
callq 0x8b01
movq %r14, %rdi
callq 0x8b01
movq %rbx, %rdi
callq 0x8b01
callq 0x9402
callq 0x8b78
movq (%r15), %rcx
movq %rax, 0x68(%rcx,%r13,8)
incq %r13
cmpq %r13, %r12
jne 0x946a
jmp 0x9522
movq %r15, %rdi
movq %r14, %rsi
callq 0x8c79
testl %eax, %eax
je 0x9538
cmpb $0x1, 0x10(%r15)
jne 0x9522
movl 0x30df4(%rip), %r12d    # 0x3a2b8
cmpb $0x1, 0x10(%r15)
jne 0x9506
leaq 0x3752e(%rip), %r13     # 0x40a00
movq (%r15), %rdi
callq 0x8b01
movq %r14, %rdi
callq 0x8b01
movq %rbx, %rdi
callq 0x8b01
callq 0x9402
leaq 0x8(%r15), %rax
cmpb $0x1, 0x10(%r15)
cmovneq %r13, %rax
movq (%rax), %r15
cmpb $0x1, 0x10(%r15)
je 0x94d2
movl 0x30dac(%rip), %edi     # 0x3a2b8
subl %r12d, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8ad9
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8b01
movq %rbx, %rdi
jmp 0x9525
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: copy_tensor
struct atom *
copy_tensor(struct atom *p1)
{
	int i;
	struct atom *p2;

	p2 = alloc_tensor(p1->u.tensor->nelem);

	p2->u.tensor->ndim = p1->u.tensor->ndim;

	for (i = 0; i < p1->u.tensor->ndim; i++)
		p2->u.tensor->dim[i] = p1->u.tensor->dim[i];

	for (i = 0; i < p1->u.tensor->nelem; i++)
		p2->u.tensor->elem[i] = p1->u.tensor->elem[i];

	return p2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
movl 0x64(%rax), %edi
callq 0x7850
movq (%rbx), %rcx
movl (%rcx), %ecx
movq (%rax), %rdx
movl %ecx, (%rdx)
movq (%rbx), %rdx
cmpl $0x0, (%rdx)
jle 0x957e
xorl %ecx, %ecx
movl 0x4(%rdx,%rcx,4), %edx
movq (%rax), %rsi
movl %edx, 0x4(%rsi,%rcx,4)
incq %rcx
movq (%rbx), %rdx
movslq (%rdx), %rsi
cmpq %rsi, %rcx
jl 0x9565
movq (%rbx), %rdx
cmpl $0x0, 0x64(%rdx)
jle 0x95a5
xorl %ecx, %ecx
movq 0x68(%rdx,%rcx,8), %rdx
movq (%rax), %rsi
movq %rdx, 0x68(%rsi,%rcx,8)
incq %rcx
movq (%rbx), %rdx
movslq 0x64(%rdx), %rsi
cmpq %rsi, %rcx
jl 0x9589
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: evalg
void
evalg(void)
{
	if (gc_level == eval_level && alloc_count > MAXBLOCKS * BLOCKSIZE / 10)
		gc();
	gc_level++;
	evalf();
	gc_level--;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0xfd50a(%rip), %eax     # 0x106ac0
cmpl 0xfd508(%rip), %eax     # 0x106ac4
jne 0x95cf
cmpl $0x1e8481, 0x30ce8(%rip) # imm = 0x1E8481
jl 0x95cf
callq 0x75c4
incl 0xfd4eb(%rip)           # 0x106ac0
callq 0x95e2
decl 0xfd4e0(%rip)           # 0x106ac0
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: evalf
void
evalf(void)
{
	struct atom *p;
	eval_level++;
	p = pop();
	push(p); // make visible to garbage collector
	evalf_nib(p);
	p = pop();
	pop(); // remove
	push(p);
	eval_level--;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
incl 0xfd4d6(%rip)           # 0x106ac4
callq 0x8b78
movq %rax, %rbx
movq %rax, %rdi
callq 0x8b01
movq %rbx, %rdi
callq 0x9628
callq 0x8b78
movq %rax, %rbx
callq 0x8b78
movq %rbx, %rdi
callq 0x8b01
decl 0xfd4a3(%rip)           # 0x106ac4
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: evalf_nib
void
evalf_nib(struct atom *p1)
{
	if (interrupt)
		stopf("interrupt");

	// this is needed to prevent seg fault (STACKSIZE is greater than process stack)

	if (eval_level > 1000)
		stopf("evaluation depth exceeded, possibly due to recursive function or circular symbol definition");

	if (eval_level > max_eval_level)
		max_eval_level = eval_level;

	if (iscons(p1) && iskeyword(car(p1))) {
		expanding++;
		car(p1)->u.ksym.func(p1); // call through function pointer
		expanding--;
		return;
	}

	if (iscons(p1) && isusersymbol(car(p1))) {
		eval_user_function(p1);
		return;
	}

	if (iskeyword(p1)) { // bare keyword
		push(p1);
		push_symbol(LAST); // default arg
		list(2);
		evalg();
		return;
	}

	if (isusersymbol(p1)) {
		eval_user_symbol(p1);
		return;
	}

	if (istensor(p1)) {
		eval_tensor(p1);
		return;
	}

	push(p1); // rational, double, or string
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpl $0x0, 0xfd495(%rip)     # 0x106ac8
jne 0x96d6
cmpl $0x3e9, 0xfd481(%rip)   # imm = 0x3E9
jge 0x96e2
movl 0xfd475(%rip), %eax     # 0x106ac4
cmpl 0xfd477(%rip), %eax     # 0x106acc
jle 0x965d
movl %eax, 0xfd46f(%rip)     # 0x106acc
movzbl 0x10(%rdi), %eax
cmpl $0x1, %eax
jne 0x9694
movq (%rdi), %rcx
cmpb $0x2, 0x10(%rcx)
jne 0x9680
incl 0xfd45b(%rip)           # 0x106ad0
callq *0x8(%rcx)
decl 0xfd452(%rip)           # 0x106ad0
popq %rbp
retq
cmpl $0x1, %eax
jne 0x9694
movq (%rdi), %rcx
cmpb $0x3, 0x10(%rcx)
jne 0x9694
popq %rbp
jmp 0x96ee
cmpl $0x7, %eax
je 0x96ca
cmpl $0x3, %eax
je 0x96c4
cmpl $0x2, %eax
jne 0x96d0
callq 0x8b01
movq 0x36d11(%rip), %rdi     # 0x403c0
callq 0x8b01
movl $0x2, %edi
callq 0x8ad9
popq %rbp
jmp 0x95ac
popq %rbp
jmp 0x9a5b
popq %rbp
jmp 0x9a8f
popq %rbp
jmp 0x8b01
leaq 0x1cac0(%rip), %rdi     # 0x2619d
callq 0x77c8
leaq 0x1cabe(%rip), %rdi     # 0x261a7
callq 0x77c8
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: eval_user_symbol
void
eval_user_symbol(struct atom *p1)
{
	struct atom *p2;
	p2 = get_binding(p1);
	if (p1 == p2)
		push(p1); // symbol evaluates to itself
	else {
		push(p2); // evaluate symbol binding
		evalg();
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0xe468
cmpq %rbx, %rax
je 0x9a81
movq %rax, %rdi
callq 0x8b01
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x95ac
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x8b01
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: eval_tensor
void
eval_tensor(struct atom *p1)
{
	int i;

	p1 = copy_tensor(p1);

	for (i = 0; i < p1->u.tensor->nelem; i++) {
		push(p1->u.tensor->elem[i]);
		evalf();
		p1->u.tensor->elem[i] = pop();
	}

	push(p1);

	promote_tensor();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
callq 0x953d
movq %rax, %rbx
movq (%rax), %rax
cmpl $0x0, 0x64(%rax)
jle 0x9ad5
xorl %r14d, %r14d
movq 0x68(%rax,%r14,8), %rdi
callq 0x8b01
callq 0x95e2
callq 0x8b78
movq (%rbx), %rcx
movq %rax, 0x68(%rcx,%r14,8)
incq %r14
movq (%rbx), %rax
movslq 0x64(%rax), %rcx
cmpq %rcx, %r14
jl 0x9aaa
movq %rbx, %rdi
callq 0x8b01
popq %rbx
popq %r14
popq %rbp
jmp 0x20202
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: evalp
void
evalp(void)
{
	struct atom *p1;
	p1 = pop();
	if (car(p1) == symbol(SETQ)) {
		push_symbol(TESTEQ);
		push(cadr(p1));
		push(caddr(p1));
		list(3);
		p1 = pop();
	}
	push(p1);
	evalg();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
callq 0x8b78
movq %rax, %rbx
cmpb $0x1, 0x10(%rax)
leaq 0x36efd(%rip), %r14     # 0x40a00
movq %r14, %rax
cmoveq %rbx, %rax
movq (%rax), %rax
cmpq 0x397ac(%rip), %rax     # 0x432c0
jne 0x9b9b
movq 0x381cf(%rip), %rdi     # 0x41cf0
callq 0x8b01
movq %rbx, %r15
addq $0x8, %r15
cmpb $0x1, 0x10(%rbx)
movq %r14, %rax
cmoveq %r15, %rax
movq (%rax), %rax
cmpb $0x1, 0x10(%rax)
cmovneq %r14, %rax
movq (%rax), %rdi
callq 0x8b01
cmpb $0x1, 0x10(%rbx)
cmovneq %r14, %r15
movq (%r15), %rax
movb 0x10(%rax), %cl
addq $0x8, %rax
cmpb $0x1, %cl
movq %r14, %rdx
cmoveq %rax, %rdx
movq (%rdx), %rdx
cmpb $0x1, 0x10(%rdx)
jne 0x9b81
cmpb $0x1, %cl
leaq 0x36e86(%rip), %rcx     # 0x40a00
cmoveq %rax, %rcx
movq (%rcx), %r14
movq (%r14), %rdi
callq 0x8b01
movl $0x3, %edi
callq 0x8ad9
callq 0x8b78
movq %rax, %rbx
movq %rbx, %rdi
callq 0x8b01
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x95ac
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: floatfunc
void
floatfunc(void)
{
	floatfunc_subst();
	evalf();
	floatfunc_subst(); // in case pi popped up
	evalf();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
callq 0x13b42
callq 0x95e2
callq 0x13b42
popq %rbp
jmp 0x95e2
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: isnegativeterm
int
isnegativenumber(struct atom *p)
{
	if (isrational(p))
		return p->sign == MMINUS;
	else if (isdouble(p))
		return p->u.d < 0.0;
	else
		return 0;
}

// Assembly:
movzbl 0x10(%rdi), %ecx
cmpl $0x5, %ecx
je 0xa82a
cmpl $0x4, %ecx
jne 0xa83e
cmpb $0x1, 0x12(%rdi)
sete %dl
jmp 0xa835
xorpd %xmm0, %xmm0
ucomisd (%rdi), %xmm0
seta %dl
movl $0x1, %eax
testb %dl, %dl
jne 0xa8a4
pushq %rbp
movq %rsp, %rbp
cmpb $0x1, %cl
leaq 0x361b4(%rip), %rdx     # 0x40a00
movq %rdx, %rax
cmoveq %rdi, %rax
movq (%rax), %rsi
xorl %eax, %eax
cmpq 0x38a49(%rip), %rsi     # 0x432a8
jne 0xa8a3
addq $0x8, %rdi
cmpb $0x1, %cl
cmovneq %rdx, %rdi
movq (%rdi), %rax
cmpb $0x1, 0x10(%rax)
cmoveq %rax, %rdx
movq (%rdx), %rax
movzbl 0x10(%rax), %ecx
cmpl $0x5, %ecx
je 0xa891
cmpl $0x4, %ecx
jne 0xa89e
cmpb $0x1, 0x12(%rax)
sete %al
jmp 0xa8a0
xorpd %xmm0, %xmm0
ucomisd (%rax), %xmm0
seta %al
jmp 0xa8a0
xorl %eax, %eax
movzbl %al, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: multiply_factors
void
multiply_factors(int n)
{
	int h;
	struct atom *T;

	if (n < 2)
		return;

	h = tos - n;

	flatten_factors(h);

	T = multiply_tensor_factors(h);

	multiply_scalar_factors(h);

	if (istensor(T)) {
		push(T);
		inner();
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
cmpl $0x2, %edi
jl 0xa903
movl 0x2f9ea(%rip), %r14d    # 0x3a2b8
subl %edi, %r14d
movl %r14d, %edi
callq 0x17fc1
movl %r14d, %edi
callq 0x18073
movq %rax, %rbx
movl %r14d, %edi
callq 0x180ec
cmpb $0x7, 0x10(%rbx)
jne 0xa903
movq %rbx, %rdi
callq 0x8b01
popq %rbx
popq %r14
popq %rbp
jmp 0x9ef3
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: eval_add
void
eval_add(struct atom *p1)
{
	int h = tos;
	expanding--; // undo expanding++ in evalf
	p1 = cdr(p1);
	while (iscons(p1)) {
		push(car(p1));
		evalg();
		p1 = cdr(p1);
	}
	add_terms(tos - h);
	expanding++;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
decl 0xfc1b8(%rip)           # 0x106ad0
cmpb $0x1, 0x10(%rdi)
leaq 0x8(%rdi), %rax
leaq 0x360d9(%rip), %r14     # 0x40a00
cmovneq %r14, %rax
movl 0x2f987(%rip), %ebx     # 0x3a2b8
movq (%rax), %r15
cmpb $0x1, 0x10(%r15)
jne 0xa957
movq (%r15), %rdi
callq 0x8b01
callq 0x95ac
leaq 0x8(%r15), %rax
cmpb $0x1, 0x10(%r15)
cmovneq %r14, %rax
jmp 0xa931
movl 0x2f95b(%rip), %edi     # 0x3a2b8
subl %ebx, %edi
callq 0xa975
incl 0xfc166(%rip)           # 0x106ad0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: add_terms
void
add_terms(int n)
{
	int h, i;
	struct atom *p, *T;

	if (n < 2)
		return;

	h = tos - n;

	flatten_terms(h);

	T = combine_tensors(h);

	combine_terms(h);
	normalize_terms(h);

	n = tos - h;

	if (n == 0) {
		if (istensor(T))
			push(T);
		else
			push_integer(0);
		return;
	}

	if (n > 1) {
		list(n);
		push_symbol(ADD);
		swap();
		cons(); // prepend ADD to list
	}

	if (!istensor(T))
		return;

	// add scalar p to every element of T, as is done in R

	p = pop();
	T = copy_tensor(T);
	n = T->u.tensor->nelem;
	for (i = 0; i < n; i++) {
		push(T->u.tensor->elem[i]);
		push(p);
		add();
		T->u.tensor->elem[i] = pop();
	}
	push(T);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpl $0x2, %edi
jge 0xa98e
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl 0x2f923(%rip), %r14d    # 0x3a2b8
subl %edi, %r14d
movl %r14d, %edi
callq 0xaa74
movl %r14d, %edi
callq 0xab26
movq %rax, %rbx
movl %r14d, %edi
callq 0xab9f
movl %r14d, %edi
callq 0xac30
movl 0x2f8f7(%rip), %edi     # 0x3a2b8
subl %r14d, %edi
jne 0xa9d9
cmpb $0x7, 0x10(%rbx)
je 0xaa55
movq 0x33769(%rip), %rdi     # 0x3e140
jmp 0xaa58
cmpl $0x2, %edi
jl 0xa9f9
callq 0x8ad9
movq 0x388b6(%rip), %rdi     # 0x432a0
callq 0x8b01
callq 0xad38
callq 0x8b47
cmpb $0x7, 0x10(%rbx)
jne 0xa985
callq 0x8b78
movq %rax, %r14
movq %rbx, %rdi
callq 0x953d
movq %rax, %rbx
movq (%rax), %rax
movslq 0x64(%rax), %r15
testq %r15, %r15
jle 0xaa55
xorl %r12d, %r12d
movq (%rbx), %rax
movq 0x68(%rax,%r12,8), %rdi
callq 0x8b01
movq %r14, %rdi
callq 0x8b01
movl $0x2, %edi
callq 0xa975
callq 0x8b78
movq (%rbx), %rcx
movq %rax, 0x68(%rcx,%r12,8)
incq %r12
cmpq %r12, %r15
jne 0xaa21
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x8b01
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: flatten_terms
void
flatten_terms(int h)
{
	int i, n;
	struct atom *p1;
	n = tos;
	for (i = h; i < n; i++) {
		p1 = stack[i];
		if (car(p1) == symbol(ADD)) {
			stack[i] = cadr(p1);
			p1 = cddr(p1);
			while (iscons(p1)) {
				push(car(p1));
				p1 = cdr(p1);
			}
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x2f830(%rip), %ebx     # 0x3a2b8
cmpl %edi, %ebx
jle 0xab17
movslq %edi, %r14
leaq 0x38b26(%rip), %r15     # 0x435c0
leaq 0x35f5f(%rip), %r12     # 0x40a00
movq (%r15,%r14,8), %rax
movb 0x10(%rax), %cl
cmpb $0x1, %cl
movq %r12, %rdx
cmoveq %rax, %rdx
movq (%rdx), %rdx
cmpq 0x387e4(%rip), %rdx     # 0x432a0
jne 0xab0f
addq $0x8, %rax
cmpb $0x1, %cl
cmovneq %r12, %rax
movq (%rax), %rcx
cmpb $0x1, 0x10(%rcx)
cmovneq %r12, %rcx
movq (%rcx), %rcx
movq %rcx, (%r15,%r14,8)
movq (%rax), %rax
leaq 0x8(%rax), %rcx
cmpb $0x1, 0x10(%rax)
cmovneq %r12, %rcx
movq (%rcx), %r13
jmp 0xab08
movq (%r13), %rdi
callq 0x8b01
leaq 0x8(%r13), %rax
cmpb $0x1, 0x10(%r13)
cmovneq %r12, %rax
movq (%rax), %r13
cmpb $0x1, 0x10(%r13)
je 0xaaef
incq %r14
cmpl %r14d, %ebx
jne 0xaaa1
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: combine_tensors
struct atom *
combine_tensors(int h)
{
	int i;
	struct atom *p1, *T;
	T = symbol(NIL);
	for (i = h; i < tos; i++) {
		p1 = stack[i];
		if (istensor(p1)) {
			if (istensor(T)) {
				push(T);
				push(p1);
				add_tensors();
				T = pop();
			} else
				T = p1;
			slice(i, 1);
			i--; // use same index again
		}
	}
	return T;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
movq 0x35ec7(%rip), %rdi     # 0x40a00
cmpl %ebx, 0x2f779(%rip)     # 0x3a2b8
jle 0xab91
leaq 0x38a78(%rip), %r15     # 0x435c0
movslq %ebx, %rax
movq (%r15,%rax,8), %r14
cmpb $0x7, 0x10(%r14)
jne 0xab87
cmpb $0x7, 0x10(%rdi)
jne 0xab76
callq 0x8b01
movq %r14, %rdi
callq 0x8b01
callq 0xad63
callq 0x8b78
movq %rax, %r14
movl %ebx, %edi
movl $0x1, %esi
callq 0xadfc
decl %ebx
movq %r14, %rdi
incl %ebx
cmpl 0x2f729(%rip), %ebx     # 0x3a2b8
jl 0xab48
movq %rdi, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: combine_terms
void
combine_terms(int h)
{
	int i;
	sort_terms(h);
	for (i = h; i < tos; i++) {
		if (iszero(stack[i])) {
			slice(i, 1); // remove
			i--; // use same index again
		} else if (i + 1 < tos && combine_terms_nib(i)) {
			slice(i + 1, 1); // remove
			i--; // use same index again
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edi, %ebx
movslq %edi, %r14
leaq 0x38a0a(%rip), %r15     # 0x435c0
leaq (%r15,%r14,8), %rdi
movslq 0x2f6f7(%rip), %rsi     # 0x3a2b8
subq %r14, %rsi
leaq 0x66e(%rip), %rcx       # 0xb239
movl $0x8, %edx
callq 0x70a0
movl 0x2f6dc(%rip), %r12d    # 0x3a2b8
cmpl %r14d, %r12d
jle 0xac27
movslq %ebx, %rax
movq (%r15,%rax,8), %rdi
callq 0xaece
movl %ebx, %r14d
testl %eax, %eax
je 0xac05
movl %r14d, %edi
movl $0x1, %esi
callq 0xadfc
decl %ebx
jmp 0xac19
leal 0x1(%rbx), %r14d
cmpl %r12d, %r14d
jge 0xac19
movl %ebx, %edi
callq 0xaf54
testl %eax, %eax
jne 0xabf4
incl %ebx
movl 0x2f696(%rip), %r12d    # 0x3a2b8
cmpl %r12d, %ebx
jl 0xabe1
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: normalize_terms
void
normalize_terms(int h)
{
	int i, n;
	struct atom *p;
	n = 0;
	for (i = h; i < tos; i++) {
		p = stack[i];
		if (isradicalterm(p)) {
			push(p);
			evalf();
			stack[i] = pop();
			n++;
		}
	}
	if (n)
		combine_terms(h);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl %edi, 0x2f674(%rip)     # 0x3a2b8
jle 0xacaf
movl %edi, %ebx
movslq %edi, %r15
leaq 0x3896e(%rip), %rax     # 0x435c0
leaq (%rax,%r15,8), %r13
xorl %r12d, %r12d
movq (%r13), %r14
movq %r14, %rdi
callq 0xb68c
testl %eax, %eax
je 0xac82
movq %r14, %rdi
callq 0x8b01
callq 0x95e2
callq 0x8b78
movq %rax, (%r13)
incl %r12d
incq %r15
movslq 0x2f62c(%rip), %rax     # 0x3a2b8
addq $0x8, %r13
cmpq %rax, %r15
jl 0xac59
testl %r12d, %r12d
je 0xacaf
movl %ebx, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xab9f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: push_integer
void
push_integer(int n)
{
	switch (n) {
	case 0:
		push(zero);
		break;
	case 1:
		push(one);
		break;
	case -1:
		push(minusone);
		break;
	default:
		if (n < 0)
			push_bignum(MMINUS, mint(-n), mint(1));
		else
			push_bignum(MPLUS, mint(n), mint(1));
		break;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
cmpl $-0x1, %edi
je 0xace4
cmpl $0x1, %edi
je 0xacdb
testl %edi, %edi
jne 0xacf6
movq 0x33467(%rip), %rdi     # 0x3e140
jmp 0xaceb
movq 0xfbdf6(%rip), %rdi     # 0x106ad8
jmp 0xaceb
movq 0x106705(%rip), %rdi    # 0x1113f0
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x8b01
js 0xad0e
callq 0x7ad5
movq %rax, %rbx
movl $0x1, %edi
callq 0x7ad5
xorl %edi, %edi
jmp 0xad27
negl %edi
callq 0x7ad5
movq %rax, %rbx
movl $0x1, %edi
callq 0x7ad5
movl $0x1, %edi
movq %rbx, %rsi
movq %rax, %rdx
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xb9f7
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: swap
void
swap(void)
{
	struct atom *p1, *p2;
	p1 = pop();
	p2 = pop();
	push(p1);
	push(p2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
callq 0x8b78
movq %rax, %rbx
callq 0x8b78
movq %rax, %r14
movq %rbx, %rdi
callq 0x8b01
movq %r14, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x8b01
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: add_tensors
void
add_tensors(void)
{
	int i, n;
	struct atom *p1, *p2;

	p2 = pop();
	p1 = pop();

	if (!compatible_dimensions(p1, p2))
		stopf("incompatible tensor arithmetic");

	p1 = copy_tensor(p1);

	n = p1->u.tensor->nelem;

	for (i = 0; i < n; i++) {
		push(p1->u.tensor->elem[i]);
		push(p2->u.tensor->elem[i]);
		add();
		p1->u.tensor->elem[i] = pop();
	}

	push(p1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
callq 0x8b78
movq %rax, %rbx
callq 0x8b78
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0xae52
testl %eax, %eax
je 0xadf0
movq %r14, %rdi
callq 0x953d
movq %rax, %r14
movq (%rax), %rax
movslq 0x64(%rax), %r15
testq %r15, %r15
jle 0xade0
xorl %r12d, %r12d
movq (%r14), %rax
movq 0x68(%rax,%r12,8), %rdi
callq 0x8b01
movq (%rbx), %rax
movq 0x68(%rax,%r12,8), %rdi
callq 0x8b01
movl $0x2, %edi
callq 0xa975
callq 0x8b78
movq (%r14), %rcx
movq %rax, 0x68(%rcx,%r12,8)
incq %r12
cmpq %r12, %r15
jne 0xada7
movq %r14, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x8b01
leaq 0x1b40c(%rip), %rdi     # 0x26203
callq 0x77c8
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: slice
void
slice(int h, int n)
{
	int i, m;
	m = tos - h - n;
	if (m < 0)
		stopf("stack slice error");
	for (i = 0; i < m; i++)
		stack[h + i] = stack[h + n + i];
	tos -= n;
}

// Assembly:
movl 0x2f4b6(%rip), %edx     # 0x3a2b8
leal (%rsi,%rdi), %eax
subl %eax, %edx
js 0xae42
je 0xae3b
cltq
movslq %edi, %rcx
movl %edx, %edx
shlq $0x3, %rcx
shlq $0x3, %rax
xorl %edi, %edi
leaq 0x3879d(%rip), %r8      # 0x435c0
leaq (%rax,%rdi,8), %r9
movq (%r8,%r9), %r9
leaq (%rcx,%rdi,8), %r10
movq %r9, (%r8,%r10)
incq %rdi
cmpq %rdi, %rdx
jne 0xae23
subl %esi, 0x2f477(%rip)     # 0x3a2b8
retq
pushq %rbp
movq %rsp, %rbp
leaq 0x20107(%rip), %rdi     # 0x2af54
callq 0x77c8
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: compatible_dimensions
int
compatible_dimensions(struct atom *p, struct atom *q)
{
	int i, n;

	if (!istensor(p) && !istensor(q))
		return 1; // both p and q are scalars

	if (!istensor(p) || !istensor(q))
		return 0; // scalar and tensor

	n = p->u.tensor->ndim;

	if (n != q->u.tensor->ndim)
		return 0;

	for (i = 0; i < n; i++)
		if (p->u.tensor->dim[i] != q->u.tensor->dim[i])
			return 0;

	return 1;
}

// Assembly:
cmpb $0x7, 0x10(%rdi)
movb 0x10(%rsi), %cl
jne 0xae93
xorl %eax, %eax
cmpb $0x7, %cl
jne 0xae9b
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movl (%rcx), %edx
movq (%rsi), %rsi
cmpl (%rsi), %edx
jne 0xae9e
movl $0x1, %eax
testl %edx, %edx
jle 0xae9e
xorl %edi, %edi
movl 0x4(%rcx,%rdi,4), %r8d
cmpl 0x4(%rsi,%rdi,4), %r8d
jne 0xae9c
incq %rdi
cmpq %rdi, %rdx
jne 0xae7d
jmp 0xae9e
xorl %eax, %eax
cmpb $0x7, %cl
setne %al
retq
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: iszero
int
iszero(struct atom *p)
{
	int i;
	if (isrational(p))
		return MZERO(p->u.q.a);
	if (isdouble(p))
		return p->u.d == 0.0;
	if (istensor(p)) {
		for (i = 0; i < p->u.tensor->nelem; i++)
			if (!iszero(p->u.tensor->elem[i]))
				return 0;
		return 1;
	}
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movzbl 0x10(%rdi), %eax
cmpl $0x4, %eax
je 0xaf2f
cmpl $0x5, %eax
je 0xaf1c
cmpl $0x7, %eax
jne 0xaf40
movq (%rdi), %rbx
movslq 0x64(%rbx), %r14
testq %r14, %r14
jle 0xaf50
decq %r14
xorl %r15d, %r15d
movq 0x68(%rbx,%r15,8), %rdi
callq 0xaece
testl %eax, %eax
setne %al
je 0xaf42
leaq 0x1(%r15), %rcx
cmpq %r15, %r14
movq %rcx, %r15
jne 0xaefd
jmp 0xaf42
xorpd %xmm0, %xmm0
cmpeqsd (%rdi), %xmm0
movq %xmm0, %rax
andl $0x1, %eax
jmp 0xaf42
movq (%rdi), %rax
cmpl $0x1, -0x4(%rax)
jne 0xaf40
cmpl $0x0, (%rax)
sete %al
jmp 0xaf42
xorl %eax, %eax
movzbl %al, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %al
jmp 0xaf42
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: add_numbers
void
add_numbers(struct atom *p1, struct atom *p2)
{
	double d1, d2;

	if (isrational(p1) && isrational(p2)) {
		add_rationals(p1, p2);
		return;
	}

	push(p1);
	d1 = pop_double();

	push(p2);
	d2 = pop_double();

	push_double(d1 + d2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpb $0x4, 0x10(%rdi)
jne 0xb1df
cmpb $0x4, 0x10(%rbx)
jne 0xb1df
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xb71c
callq 0x8b01
callq 0x9086
movsd %xmm0, -0x10(%rbp)
movq %rbx, %rdi
callq 0x8b01
callq 0x9086
addsd -0x10(%rbp), %xmm0
movsd %xmm0, -0x10(%rbp)
callq 0x74ec
movb $0x5, 0x10(%rax)
movsd -0x10(%rbp), %xmm0
movsd %xmm0, (%rax)
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x8b01
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: isimaginaryterm
int
isimaginaryterm(struct atom *p)
{
	if (isimaginaryfactor(p))
		return 1;
	if (car(p) == symbol(MULTIPLY)) {
		p = cdr(p);
		while (iscons(p)) {
			if (isimaginaryfactor(car(p)))
				return 1;
			p = cdr(p);
		}
	}
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
callq 0x24dcc
movl $0x1, %ebx
testl %eax, %eax
jne 0xb51c
movb 0x10(%r14), %cl
cmpb $0x1, %cl
leaq 0x354f9(%rip), %rax     # 0x40a00
movq %rax, %rdx
cmoveq %r14, %rdx
movq (%rdx), %rdx
cmpq 0x37d90(%rip), %rdx     # 0x432a8
je 0xb523
xorl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
addq $0x8, %r14
cmpb $0x1, %cl
cmoveq %r14, %rax
movq (%rax), %r14
cmpb $0x1, 0x10(%r14)
jne 0xb51a
movq (%r14), %rdi
callq 0x24dcc
testl %eax, %eax
jne 0xb51c
movq 0x8(%r14), %r14
jmp 0xb531
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: cmp_factors
int
cmp_factors(struct atom *p1, struct atom *p2)
{
	int a, b, c;
	struct atom *base1, *base2, *expo1, *expo2;

	a = order_factor(p1);
	b = order_factor(p2);

	if (a < b)
		return -1;

	if (a > b)
		return 1;

	if (car(p1) == symbol(POWER)) {
		base1 = cadr(p1);
		expo1 = caddr(p1);
	} else {
		base1 = p1;
		expo1 = one;
	}

	if (car(p2) == symbol(POWER)) {
		base2 = cadr(p2);
		expo2 = caddr(p2);
	} else {
		base2 = p2;
		expo2 = one;
	}

	c = cmp(base1, base2);

	if (c == 0)
		c = cmp(expo2, expo1); // swapped to reverse sort order

	return c;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x188ba
movl %eax, %r15d
movq %rbx, %rdi
callq 0x188ba
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %ecx, %r15d
jb 0xb670
movl $0x1, %eax
ja 0xb670
movb 0x10(%r14), %cl
cmpb $0x1, %cl
leaq 0x3546c(%rip), %rax     # 0x40a00
movq %rax, %rdi
cmoveq %r14, %rdi
movq 0x37d0e(%rip), %rsi     # 0x432b0
leaq 0xfb52f(%rip), %rdx     # 0x106ad8
cmpq %rsi, (%rdi)
je 0xb5b3
movq %rdx, %rcx
jmp 0xb5fe
addq $0x8, %r14
cmpb $0x1, %cl
leaq 0x3543f(%rip), %rcx     # 0x40a00
cmovneq %rcx, %r14
movq (%r14), %r9
movb 0x10(%r9), %r8b
leaq 0x8(%r9), %rdi
cmpb $0x1, %r8b
cmovneq %rcx, %r9
movq %rcx, %r10
cmoveq %rdi, %r10
movq (%r9), %r14
movq (%r10), %r9
cmpb $0x1, 0x10(%r9)
jne 0xb5fe
cmpb $0x1, %r8b
leaq 0x35409(%rip), %rcx     # 0x40a00
cmoveq %rdi, %rcx
movq (%rcx), %rcx
movb 0x10(%rbx), %dil
cmpb $0x1, %dil
movq %rax, %r8
cmoveq %rbx, %r8
cmpq %rsi, (%r8)
jne 0xb65b
addq $0x8, %rbx
cmpb $0x1, %dil
cmovneq %rax, %rbx
movq (%rbx), %rdi
movb 0x10(%rdi), %sil
leaq 0x8(%rdi), %rdx
cmpb $0x1, %sil
cmovneq %rax, %rdi
movq %rax, %r8
cmoveq %rdx, %r8
movq (%rdi), %rbx
movq (%r8), %rdi
cmpb $0x1, 0x10(%rdi)
jne 0xb658
cmpb $0x1, %sil
leaq 0x353b1(%rip), %rax     # 0x40a00
cmoveq %rdx, %rax
movq (%rax), %rdx
jmp 0xb65b
movq %rax, %rdx
movq (%rcx), %r15
movq (%rdx), %r12
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8c79
testl %eax, %eax
je 0xb679
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
movq %r15, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x8c79
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: push_double
void
push_double(double d)
{
	struct atom *p;
	p = alloc_atom();
	p->atomtype = DOUBLE;
	p->u.d = d;
	push(p);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movsd %xmm0, -0x8(%rbp)
callq 0x74ec
movb $0x5, 0x10(%rax)
movsd -0x8(%rbp), %xmm0
movsd %xmm0, (%rax)
movq %rax, %rdi
addq $0x10, %rsp
popq %rbp
jmp 0x8b01
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: add_integers
void
add_integers(struct atom *p1, struct atom *p2)
{
	int sign = 0; // compiler nag
	uint32_t *c = NULL; // compiler nag
	if (p1->sign == p2->sign) {
		c = madd(p1->u.q.a, p2->u.q.a);
		sign = p1->sign;
	} else {
		switch (mcmp(p1->u.q.a, p2->u.q.a)) {
		case 1:
			c = msub(p1->u.q.a, p2->u.q.a);
			sign = p1->sign;
			break;
		case 0:
			push_integer(0);
			return;
		case -1:
			c = msub(p2->u.q.a, p1->u.q.a);
			sign = p2->sign;
			break;
		default:
			stopf("error");
		}
	}
	push_bignum(sign, c, mint(1));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x12(%rdi), %r15
movb 0x12(%rdi), %al
movq (%rdi), %rdi
movq (%rsi), %rsi
cmpb 0x12(%rbx), %al
jne 0xb989
callq 0x7c0e
jmp 0xb9cf
callq 0x866a
cmpl $-0x1, %eax
je 0xb9ad
testl %eax, %eax
jne 0xb9c4
movq 0x327a2(%rip), %rdi     # 0x3e140
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x8b01
movq (%rbx), %rdi
addq $0x12, %rbx
movq (%r14), %rsi
callq 0x7f39
movq %rax, %r14
movq %rbx, %r15
jmp 0xb9d2
movq (%r14), %rdi
movq (%rbx), %rsi
callq 0x7f39
movq %rax, %r14
movzbl (%r15), %ebx
movl $0x1, %edi
callq 0x7ad5
movl %ebx, %edi
movq %r14, %rsi
movq %rax, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xb9f7
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: push_bignum
void
push_bignum(int sign, uint32_t *a, uint32_t *b)
{
	struct atom *p;

	// normalize zero

	if (MZERO(a)) {
		sign = MPLUS;
		if (!MEQUAL(b, 1)) {
			mfree(b);
			b = mint(1);
		}
	}

	p = alloc_atom();
	p->atomtype = RATIONAL;
	p->sign = sign;
	p->u.q.a = a;
	p->u.q.b = b;

	push(p);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movl %edi, %r15d
cmpl $0x1, -0x4(%rsi)
jne 0xba47
cmpl $0x0, (%rbx)
jne 0xba47
cmpl $0x1, -0x4(%r14)
jne 0xba25
xorl %r15d, %r15d
cmpl $0x1, (%r14)
je 0xba47
addq $-0x4, %r14
movq %r14, %rdi
callq 0x7040
decl 0x32725(%rip)           # 0x3e15c
movl $0x1, %edi
callq 0x7ad5
movq %rax, %r14
xorl %r15d, %r15d
callq 0x74ec
movb $0x4, 0x10(%rax)
movb %r15b, 0x12(%rax)
movq %rbx, (%rax)
movq %r14, 0x8(%rax)
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x8b01
// File: /workspace/github_c_makefile_star2_O1/georgeweigt[P]eigenmath/eigenmath.c
// Function: eval_and
void
eval_and(struct atom *p1)
{
	struct atom *p2;
	p1 = cdr(p1);
	while (iscons(p1)) {
		push(car(p1));
		evalp();
		p2 = pop();
		if (iszero(p2)) {
			push_integer(0);
			return;
		}
		p1 = cdr(p1);
	}
	push_integer(1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpb $0x1, 0x10(%rdi)
leaq 0x8(%rdi), %rax
leaq 0x34986(%rip), %r14     # 0x40a00
cmovneq %r14, %rax
movq (%rax), %r15
leaq 0xfaa50(%rip), %rbx     # 0x106ad8
cmpb $0x1, 0x10(%r15)
jne 0xc0d8
leaq 0x10(%r15), %r13
leaq 0x320a6(%rip), %r12     # 0x3e140
movq (%r15), %rdi
callq 0x8b01
callq 0x9ae6
callq 0x8b78
movq %rax, %rdi
callq 0xaece
testl %eax, %eax
jne 0xc0d5
addq $0x8, %r15
cmpb $0x1, (%r13)
cmovneq %r14, %r15
movq (%r15), %r15
leaq 0x10(%r15), %r13
cmpb $0x1, 0x10(%r15)
je 0xc09a
jmp 0xc0d8
movq %r12, %rbx
movq (%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8b01