LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/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 %r15
pushq %r14
pushq %rbx
pushq %rax
incl 0x1023d2(%rip)          # 0x10bac4
movl 0x35bc0(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %r15d      # imm = 0xFFFE795F
leal (%rax,%r15), %ecx
cmpl %r15d, %ecx
jbe 0x976c
decl %eax
movl %eax, 0x35ba9(%rip)     # 0x3f2b8
leaq 0x3eeaa(%rip), %r14     # 0x485c0
movq (%r14,%rax,8), %rbx
movq %rbx, %rdi
callq 0x8ba5
movq %rbx, %rdi
callq 0x9778
movl 0x35b88(%rip), %eax     # 0x3f2b8
leal (%rax,%r15), %ecx
cmpl %r15d, %ecx
jbe 0x976c
leal -0x1(%rax), %ecx
movl %ecx, 0x35b76(%rip)     # 0x3f2b8
cmpl $0x1, %eax
jbe 0x976c
movl %ecx, %ecx
movq (%r14,%rcx,8), %rdi
addl $-0x2, %eax
movl %eax, 0x35b62(%rip)     # 0x3f2b8
callq 0x8ba5
decl 0x102363(%rip)          # 0x10bac4
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x257ce(%rip), %rdi     # 0x2ef41
callq 0x780b
// File: /workspace/github_c_makefile_star2_O3/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, 0x102345(%rip)    # 0x10bac8
jne 0x981e
movl 0x102335(%rip), %eax    # 0x10bac4
cmpl $0x3e9, %eax            # imm = 0x3E9
jge 0x982a
cmpl 0x10232c(%rip), %eax    # 0x10bacc
jle 0x97a8
movl %eax, 0x102324(%rip)    # 0x10bacc
movzbl 0x10(%rdi), %eax
decl %eax
cmpl $0x6, %eax
ja 0x97e5
leaq 0x20862(%rip), %rcx     # 0x2a01c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%rdi), %rax
movzbl 0x10(%rax), %ecx
cmpl $0x3, %ecx
je 0x9818
cmpl $0x2, %ecx
jne 0x97e5
incl 0x1022f6(%rip)          # 0x10bad0
callq *0x8(%rax)
decl 0x1022ed(%rip)          # 0x10bad0
popq %rbp
retq
popq %rbp
jmp 0x8ba5
popq %rbp
jmp 0x9c3d
callq 0x8ba5
movq 0x3bbc3(%rip), %rdi     # 0x453c0
callq 0x8ba5
movl $0x2, %edi
callq 0x8b7d
popq %rbp
jmp 0x96a4
popq %rbp
jmp 0x9c71
popq %rbp
jmp 0x9836
leaq 0x20998(%rip), %rdi     # 0x2a1bd
callq 0x780b
leaq 0x20996(%rip), %rdi     # 0x2a1c7
callq 0x780b
// File: /workspace/github_c_makefile_star2_O3/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 0xf05c
cmpq %rbx, %rax
je 0x9c63
movq %rax, %rdi
callq 0x8ba5
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x96a4
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x8ba5
// File: /workspace/github_c_makefile_star2_O3/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 %r15
pushq %r14
pushq %r12
pushq %rbx
callq 0x9638
movq %rax, %rbx
movq (%rax), %rax
cmpl $0x0, 0x64(%rax)
jle 0x9cde
xorl %r14d, %r14d
movl $0xfffe795f, %r15d      # imm = 0xFFFE795F
leaq 0x3e923(%rip), %r12     # 0x485c0
movq 0x68(%rax,%r14,8), %rdi
callq 0x8ba5
callq 0x96e2
movl 0x35606(%rip), %eax     # 0x3f2b8
leal (%rax,%r15), %ecx
cmpl %r15d, %ecx
jbe 0x9cf3
decl %eax
movl %eax, 0x355f5(%rip)     # 0x3f2b8
movq (%r12,%rax,8), %rax
movq (%rbx), %rcx
movq %rax, 0x68(%rcx,%r14,8)
incq %r14
movq (%rbx), %rax
movslq 0x64(%rax), %rcx
cmpq %rcx, %r14
jl 0x9c9d
movq %rbx, %rdi
callq 0x8ba5
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x23025
leaq 0x25247(%rip), %rdi     # 0x2ef41
callq 0x780b
// File: /workspace/github_c_makefile_star2_O3/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 %r12
pushq %rbx
movl 0x355a8(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %ecx       # imm = 0xFFFE795F
leal (%rax,%rcx), %edx
cmpl %ecx, %edx
jbe 0x9df0
decl %eax
movl %eax, 0x35590(%rip)     # 0x3f2b8
leaq 0x3e891(%rip), %r14     # 0x485c0
movq (%r14,%rax,8), %rbx
cmpb $0x1, 0x10(%rbx)
leaq 0x3bcc2(%rip), %r15     # 0x45a00
movq %r15, %rax
cmoveq %rbx, %rax
movq (%rax), %rax
cmpq 0x3e571(%rip), %rax     # 0x482c0
jne 0x9ddb
movq 0x3cf94(%rip), %rdi     # 0x46cf0
callq 0x8ba5
cmpb $0x1, 0x10(%rbx)
leaq 0x8(%rbx), %r12
movq %r15, %rax
cmoveq %r12, %rax
movq (%rax), %rax
cmpb $0x1, 0x10(%rax)
cmovneq %r15, %rax
movq (%rax), %rdi
callq 0x8ba5
cmpb $0x1, 0x10(%rbx)
cmovneq %r15, %r12
movq (%r12), %rax
cmpb $0x1, 0x10(%rax)
jne 0x9d9b
movq 0x8(%rax), %rax
jmp 0x9da2
movq 0x3bc5e(%rip), %rax     # 0x45a00
cmpb $0x1, 0x10(%rax)
jne 0x9dab
movq %rax, %r15
movq (%r15), %rdi
callq 0x8ba5
movl $0x3, %edi
callq 0x8b7d
movl 0x354f5(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %ecx       # imm = 0xFFFE795F
leal (%rax,%rcx), %edx
cmpl %ecx, %edx
jbe 0x9df0
decl %eax
movl %eax, 0x354e1(%rip)     # 0x3f2b8
movq (%r14,%rax,8), %rbx
movq %rbx, %rdi
callq 0x8ba5
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x96a4
leaq 0x2514a(%rip), %rdi     # 0x2ef41
callq 0x780b
// File: /workspace/github_c_makefile_star2_O3/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 0x151ed
callq 0x96e2
callq 0x151ed
popq %rbp
jmp 0x96e2
// File: /workspace/github_c_makefile_star2_O3/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 0xac63
cmpl $0x4, %ecx
jne 0xac72
movl $0x1, %eax
cmpb $0x1, 0x12(%rdi)
jne 0xac72
retq
movl $0x1, %eax
xorpd %xmm0, %xmm0
ucomisd (%rdi), %xmm0
ja 0xac62
pushq %rbp
movq %rsp, %rbp
cmpb $0x1, %cl
leaq 0x3ad80(%rip), %rdx     # 0x45a00
movq %rdx, %rax
cmoveq %rdi, %rax
movq (%rax), %rsi
xorl %eax, %eax
cmpq 0x3d615(%rip), %rsi     # 0x482a8
jne 0xacd7
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 0xacc5
cmpl $0x4, %ecx
jne 0xacd2
cmpb $0x1, 0x12(%rax)
sete %al
jmp 0xacd4
xorpd %xmm0, %xmm0
ucomisd (%rax), %xmm0
seta %al
jmp 0xacd4
xorl %eax, %eax
movzbl %al, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xad37
movl 0x345b6(%rip), %r14d    # 0x3f2b8
subl %edi, %r14d
movl %r14d, %edi
callq 0x19c26
movl %r14d, %edi
callq 0x19cd8
movq %rax, %rbx
movl %r14d, %edi
callq 0x19d79
cmpb $0x7, 0x10(%rbx)
jne 0xad37
movq %rbx, %rdi
callq 0x8ba5
popq %rbx
popq %r14
popq %rbp
jmp 0xa1cc
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x100d84(%rip)          # 0x10bad0
movl 0x34566(%rip), %ebx     # 0x3f2b8
cmpb $0x1, 0x10(%rdi)
leaq 0x8(%rdi), %rax
leaq 0x3ac9f(%rip), %r14     # 0x45a00
cmovneq %r14, %rax
movq (%rax), %r15
cmpb $0x1, 0x10(%r15)
movl %ebx, %edi
jne 0xad9b
movq (%r15), %rdi
callq 0x8ba5
callq 0x96a4
leaq 0x8(%r15), %rax
cmpb $0x1, 0x10(%r15)
cmovneq %r14, %rax
movq (%rax), %r15
cmpb $0x1, 0x10(%r15)
je 0xad71
movl 0x3451d(%rip), %edi     # 0x3f2b8
subl %ebx, %edi
callq 0xadb3
incl 0x100d28(%rip)          # 0x10bad0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x2, %edi
jge 0xadd5
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x344dc(%rip), %r14d    # 0x3f2b8
subl %edi, %r14d
movl %r14d, %edi
callq 0xaf18
movl %r14d, %edi
callq 0xafca
movq %rax, %rbx
movl %r14d, %edi
callq 0xb06b
movl %r14d, %edi
callq 0xb0fc
movl 0x344b0(%rip), %edi     # 0x3f2b8
subl %r14d, %edi
jne 0xae23
cmpb $0x7, 0x10(%rbx)
je 0xaee7
movq 0x38322(%rip), %rdi     # 0x43140
jmp 0xaeea
cmpl $0x2, %edi
jl 0xae43
callq 0x8b7d
movq 0x3d46c(%rip), %rdi     # 0x482a0
callq 0x8ba5
callq 0xb238
callq 0x8be6
cmpb $0x7, 0x10(%rbx)
jne 0xadc6
movl 0x34465(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %ecx       # imm = 0xFFFE795F
leal (%rax,%rcx), %edx
cmpl %ecx, %edx
jbe 0xaefd
decl %eax
movl %eax, 0x3444d(%rip)     # 0x3f2b8
leaq 0x3d74e(%rip), %rcx     # 0x485c0
movq (%rcx,%rax,8), %r14
movq %rbx, %rdi
callq 0x9638
movq %rax, %rbx
movq (%rax), %rax
movslq 0x64(%rax), %r12
testq %r12, %r12
jle 0xaee7
xorl %r13d, %r13d
movl $0xfffe795f, %r15d      # imm = 0xFFFE795F
movq (%rbx), %rax
movq 0x68(%rax,%r13,8), %rdi
callq 0x8ba5
movq %r14, %rdi
callq 0x8ba5
movl $0x2, %edi
callq 0xadb3
movl 0x343fd(%rip), %eax     # 0x3f2b8
leal (%rax,%r15), %ecx
cmpl %r15d, %ecx
jbe 0xaefd
decl %eax
movl %eax, 0x343ec(%rip)     # 0x3f2b8
leaq 0x3d6ed(%rip), %rcx     # 0x485c0
movq (%rcx,%rax,8), %rax
movq (%rbx), %rcx
movq %rax, 0x68(%rcx,%r13,8)
incq %r13
cmpq %r13, %r12
jne 0xae96
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8ba5
leaq 0x2403d(%rip), %rdi     # 0x2ef41
callq 0x780b
// File: /workspace/github_c_makefile_star2_O3/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 0x3438c(%rip), %ebx     # 0x3f2b8
cmpl %edi, %ebx
jle 0xafbb
movslq %edi, %r14
leaq 0x3d682(%rip), %r15     # 0x485c0
leaq 0x3aabb(%rip), %r12     # 0x45a00
movq (%r15,%r14,8), %rax
movb 0x10(%rax), %cl
cmpb $0x1, %cl
movq %r12, %rdx
cmoveq %rax, %rdx
movq (%rdx), %rdx
cmpq 0x3d340(%rip), %rdx     # 0x482a0
jne 0xafb3
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 0xafac
movq (%r13), %rdi
callq 0x8ba5
leaq 0x8(%r13), %rax
cmpb $0x1, 0x10(%r13)
cmovneq %r12, %rax
movq (%rax), %r13
cmpb $0x1, 0x10(%r13)
je 0xaf93
incq %r14
cmpl %r14d, %ebx
jne 0xaf45
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 %r12
pushq %rbx
movl %edi, %ebx
movq 0x3aa22(%rip), %rdi     # 0x45a00
movl 0x342d4(%rip), %eax     # 0x3f2b8
cmpl %ebx, %eax
jle 0xb053
leaq 0x3d5d1(%rip), %r15     # 0x485c0
movl $0xfffe795f, %r12d      # imm = 0xFFFE795F
movslq %ebx, %rcx
movq (%r15,%rcx,8), %r14
cmpb $0x7, 0x10(%r14)
jne 0xb04d
cmpb $0x7, 0x10(%rdi)
jne 0xb036
callq 0x8ba5
movq %r14, %rdi
callq 0x8ba5
callq 0xb297
movl 0x34297(%rip), %eax     # 0x3f2b8
leal (%rax,%r12), %ecx
cmpl %r12d, %ecx
jbe 0xb05f
decl %eax
movl %eax, 0x34286(%rip)     # 0x3f2b8
movq (%r15,%rax,8), %r14
movl %ebx, %edi
movl $0x1, %esi
callq 0xb39c
decl %ebx
movl 0x3426e(%rip), %eax     # 0x3f2b8
movq %r14, %rdi
incl %ebx
cmpl %eax, %ebx
jl 0xaff5
movq %rdi, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x23edb(%rip), %rdi     # 0x2ef41
callq 0x780b
// File: /workspace/github_c_makefile_star2_O3/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 0x3d53e(%rip), %r15     # 0x485c0
leaq (%r15,%r14,8), %rdi
movslq 0x3422b(%rip), %rsi     # 0x3f2b8
subq %r14, %rsi
leaq 0x781(%rip), %rcx       # 0xb818
movl $0x8, %edx
callq 0x70a0
movl 0x34210(%rip), %r12d    # 0x3f2b8
cmpl %r14d, %r12d
jle 0xb0f3
movslq %ebx, %rax
movq (%r15,%rax,8), %rdi
callq 0xb477
movl %ebx, %r14d
testl %eax, %eax
je 0xb0d1
movl %r14d, %edi
movl $0x1, %esi
callq 0xb39c
decl %ebx
jmp 0xb0e5
leal 0x1(%rbx), %r14d
cmpl %r12d, %r14d
jge 0xb0e5
movl %ebx, %edi
callq 0xb4fd
testl %eax, %eax
jne 0xb0c0
incl %ebx
movl 0x341ca(%rip), %r12d    # 0x3f2b8
cmpl %r12d, %ebx
jl 0xb0ad
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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
movl 0x341a7(%rip), %r12d    # 0x3f2b8
cmpl %edi, %r12d
jle 0xb1a3
movl %edi, -0x2c(%rbp)
movslq %edi, %r15
leaq 0x3d499(%rip), %rax     # 0x485c0
leaq (%rax,%r15,8), %rbx
xorl %r13d, %r13d
movq (%rbx), %r14
movq %r14, %rdi
callq 0xbc0d
testl %eax, %eax
je 0xb179
movq %r14, %rdi
callq 0x8ba5
callq 0x96e2
movl 0x34167(%rip), %r12d    # 0x3f2b8
movl $0xfffe795f, %ecx       # imm = 0xFFFE795F
leal (%r12,%rcx), %eax
cmpl %ecx, %eax
jbe 0xb1b2
decl %r12d
movl %r12d, 0x34150(%rip)    # 0x3f2b8
leaq 0x3d451(%rip), %rax     # 0x485c0
movq (%rax,%r12,8), %rax
movq %rax, (%rbx)
incl %r13d
incq %r15
movslq %r12d, %rax
addq $0x8, %rbx
cmpq %rax, %r15
jl 0xb12e
testl %r13d, %r13d
movl -0x2c(%rbp), %edi
je 0xb1a3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xb06b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x23d88(%rip), %rdi     # 0x2ef41
callq 0x780b
// File: /workspace/github_c_makefile_star2_O3/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 0xb1e4
cmpl $0x1, %edi
je 0xb1db
testl %edi, %edi
jne 0xb1f6
movq 0x37f67(%rip), %rdi     # 0x43140
jmp 0xb1eb
movq 0x1008f6(%rip), %rdi    # 0x10bad8
jmp 0xb1eb
movq 0x10b205(%rip), %rdi    # 0x1163f0
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x8ba5
js 0xb20e
callq 0x7b1f
movq %rax, %rbx
movl $0x1, %edi
callq 0x7b1f
xorl %edi, %edi
jmp 0xb227
negl %edi
callq 0x7b1f
movq %rax, %rbx
movl $0x1, %edi
callq 0x7b1f
movl $0x1, %edi
movq %rbx, %rsi
movq %rax, %rdx
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xbf3e
// File: /workspace/github_c_makefile_star2_O3/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 %rbx
pushq %rax
movl 0x34074(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %ecx       # imm = 0xFFFE795F
leal (%rax,%rcx), %edx
cmpl %ecx, %edx
jbe 0xb28b
leal -0x1(%rax), %ecx
movl %ecx, 0x3405f(%rip)     # 0x3f2b8
cmpl $0x1, %eax
jbe 0xb28b
movl %ecx, %ecx
leaq 0x3d359(%rip), %rdx     # 0x485c0
movq (%rdx,%rcx,8), %rdi
addl $-0x2, %eax
movl %eax, 0x34044(%rip)     # 0x3f2b8
movq (%rdx,%rax,8), %rbx
callq 0x8ba5
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x8ba5
leaq 0x23caf(%rip), %rdi     # 0x2ef41
callq 0x780b
// File: /workspace/github_c_makefile_star2_O3/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x3400d(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %ecx       # imm = 0xFFFE795F
leal (%rax,%rcx), %edx
cmpl %ecx, %edx
jbe 0xb384
leal -0x1(%rax), %ecx
movl %ecx, 0x33ff4(%rip)     # 0x3f2b8
cmpl $0x1, %eax
jbe 0xb384
leaq 0x3d2ec(%rip), %rdx     # 0x485c0
movq (%rdx,%rcx,8), %rbx
addl $-0x2, %eax
movl %eax, 0x33fd7(%rip)     # 0x3f2b8
movq (%rdx,%rax,8), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0xb3fb
testl %eax, %eax
je 0xb390
movq %r14, %rdi
callq 0x9638
movq %rax, %r14
movq (%rax), %rax
movslq 0x64(%rax), %r12
testq %r12, %r12
jle 0xb36e
xorl %r13d, %r13d
movl $0xfffe795f, %r15d      # imm = 0xFFFE795F
movq (%r14), %rax
movq 0x68(%rax,%r13,8), %rdi
callq 0x8ba5
movq (%rbx), %rax
movq 0x68(%rax,%r13,8), %rdi
callq 0x8ba5
movl $0x2, %edi
callq 0xadb3
movl 0x33f76(%rip), %eax     # 0x3f2b8
leal (%rax,%r15), %ecx
cmpl %r15d, %ecx
jbe 0xb384
decl %eax
movl %eax, 0x33f65(%rip)     # 0x3f2b8
leaq 0x3d266(%rip), %rcx     # 0x485c0
movq (%rcx,%rax,8), %rax
movq (%r14), %rcx
movq %rax, 0x68(%rcx,%r13,8)
incq %r13
cmpq %r13, %r12
jne 0xb318
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8ba5
leaq 0x23bb6(%rip), %rdi     # 0x2ef41
callq 0x780b
leaq 0x1ee8c(%rip), %rdi     # 0x2a223
callq 0x780b
// File: /workspace/github_c_makefile_star2_O3/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 0x33f16(%rip), %eax     # 0x3f2b8
leal (%rsi,%rdi), %ecx
movl %eax, %r8d
subl %ecx, %r8d
js 0xb3eb
je 0xb3e2
movslq %ecx, %rcx
movslq %edi, %rdx
movl %r8d, %edi
shlq $0x3, %rdx
shlq $0x3, %rcx
xorl %r8d, %r8d
leaq 0x3d1f6(%rip), %r9      # 0x485c0
leaq (%rcx,%r8,8), %r10
movq (%r9,%r10), %r10
leaq (%rdx,%r8,8), %r11
movq %r10, (%r9,%r11)
incq %r8
cmpq %r8, %rdi
jne 0xb3ca
subl %esi, %eax
movl %eax, 0x33ece(%rip)     # 0x3f2b8
retq
pushq %rbp
movq %rsp, %rbp
leaq 0x23b7e(%rip), %rdi     # 0x2ef74
callq 0x780b
// File: /workspace/github_c_makefile_star2_O3/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 0xb43c
xorl %eax, %eax
cmpb $0x7, %cl
jne 0xb444
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movl (%rcx), %edx
movq (%rsi), %rsi
cmpl (%rsi), %edx
jne 0xb447
movl $0x1, %eax
testl %edx, %edx
jle 0xb447
xorl %edi, %edi
movl 0x4(%rcx,%rdi,4), %r8d
cmpl 0x4(%rsi,%rdi,4), %r8d
jne 0xb445
incq %rdi
cmpq %rdi, %rdx
jne 0xb426
jmp 0xb447
xorl %eax, %eax
cmpb $0x7, %cl
setne %al
retq
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0xb4d8
cmpl $0x5, %eax
je 0xb4c5
cmpl $0x7, %eax
jne 0xb4e9
movq (%rdi), %rbx
movslq 0x64(%rbx), %r14
testq %r14, %r14
jle 0xb4f9
decq %r14
xorl %r15d, %r15d
movq 0x68(%rbx,%r15,8), %rdi
callq 0xb477
testl %eax, %eax
setne %al
je 0xb4eb
leaq 0x1(%r15), %rcx
cmpq %r15, %r14
movq %rcx, %r15
jne 0xb4a6
jmp 0xb4eb
xorpd %xmm0, %xmm0
cmpeqsd (%rdi), %xmm0
movq %xmm0, %rax
andl $0x1, %eax
jmp 0xb4eb
movq (%rdi), %rax
cmpl $0x1, -0x4(%rax)
jne 0xb4e9
cmpl $0x0, (%rax)
sete %al
jmp 0xb4eb
xorl %eax, %eax
movzbl %al, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %al
jmp 0xb4eb
// File: /workspace/github_c_makefile_star2_O3/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 0xb7be
cmpb $0x4, 0x10(%rbx)
jne 0xb7be
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0xbc8b
callq 0x8ba5
callq 0x9128
movsd %xmm0, -0x10(%rbp)
movq %rbx, %rdi
callq 0x8ba5
callq 0x9128
addsd -0x10(%rbp), %xmm0
movsd %xmm0, -0x10(%rbp)
callq 0x74dc
movb $0x5, 0x10(%rax)
movsd -0x10(%rbp), %xmm0
movsd %xmm0, (%rax)
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x8ba5
// File: /workspace/github_c_makefile_star2_O3/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 0x28450
movl $0x1, %ebx
testl %eax, %eax
jne 0xbabb
movb 0x10(%r14), %cl
cmpb $0x1, %cl
leaq 0x39f5a(%rip), %rax     # 0x45a00
movq %rax, %rdx
cmoveq %r14, %rdx
movq (%rdx), %rdx
cmpq 0x3c7f1(%rip), %rdx     # 0x482a8
je 0xbac2
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 0xbab9
movq (%r14), %rdi
callq 0x28450
testl %eax, %eax
jne 0xbabb
movq 0x8(%r14), %r14
jmp 0xbad0
// File: /workspace/github_c_makefile_star2_O3/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 0x1a5d5
movl %eax, %r15d
movq %rbx, %rdi
callq 0x1a5d5
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %ecx, %r15d
jb 0xbbbb
movl $0x1, %eax
ja 0xbbbb
movb 0x10(%r14), %cl
cmpb $0x1, %cl
leaq 0x39ecd(%rip), %rax     # 0x45a00
movq %rax, %rdi
cmoveq %r14, %rdi
movq 0x3c76f(%rip), %rsi     # 0x482b0
leaq 0xfff90(%rip), %rdx     # 0x10bad8
cmpq %rsi, (%rdi)
je 0xbb52
movq %rdx, %rcx
jmp 0xbb8f
addq $0x8, %r14
cmpb $0x1, %cl
leaq 0x39ea0(%rip), %rcx     # 0x45a00
cmovneq %rcx, %r14
movq (%r14), %rdi
cmpb $0x1, 0x10(%rdi)
jne 0xbb7c
movq (%rdi), %r14
movq 0x8(%rdi), %rdi
cmpb $0x1, 0x10(%rdi)
je 0xbb8c
jmp 0xbb8f
movq 0x39e7d(%rip), %rdi     # 0x45a00
cmpb $0x1, 0x10(%rdi)
movq %rdi, %r14
jne 0xbb8f
movq %rdi, %rcx
movb 0x10(%rbx), %dil
cmpb $0x1, %dil
movq %rax, %r8
cmoveq %rbx, %r8
cmpq %rsi, (%r8)
je 0xbbc4
movq %rdx, %rax
movq (%rcx), %r15
movq (%rax), %r12
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8d48
testl %eax, %eax
je 0xbbe8
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
addq $0x8, %rbx
cmpb $0x1, %dil
cmovneq %rax, %rbx
movq (%rbx), %rdx
cmpb $0x1, 0x10(%rdx)
jne 0xbbfb
movq (%rdx), %rbx
movq 0x8(%rdx), %rdx
cmpb $0x1, 0x10(%rdx)
je 0xbba3
jmp 0xbba6
movq %r12, %rdi
movq %r15, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x8d48
movq 0x39dfe(%rip), %rdx     # 0x45a00
cmpb $0x1, 0x10(%rdx)
movq %rdx, %rbx
je 0xbba3
jmp 0xbba6
// File: /workspace/github_c_makefile_star2_O3/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 0x74dc
movb $0x5, 0x10(%rax)
movsd -0x8(%rbp), %xmm0
movsd %xmm0, (%rax)
movq %rax, %rdi
addq $0x10, %rsp
popq %rbp
jmp 0x8ba5
// File: /workspace/github_c_makefile_star2_O3/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 0xbed0
callq 0x7c62
jmp 0xbf16
callq 0x8704
cmpl $-0x1, %eax
je 0xbef4
testl %eax, %eax
jne 0xbf0b
movq 0x3725b(%rip), %rdi     # 0x43140
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x8ba5
movq (%rbx), %rdi
addq $0x12, %rbx
movq (%r14), %rsi
callq 0x7f9c
movq %rax, %r14
movq %rbx, %r15
jmp 0xbf19
movq (%r14), %rdi
movq (%rbx), %rsi
callq 0x7f9c
movq %rax, %r14
movzbl (%r15), %ebx
movl $0x1, %edi
callq 0x7b1f
movl %ebx, %edi
movq %r14, %rsi
movq %rax, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xbf3e
// File: /workspace/github_c_makefile_star2_O3/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 0xbf8e
cmpl $0x0, (%rbx)
jne 0xbf8e
cmpl $0x1, -0x4(%r14)
jne 0xbf6c
xorl %r15d, %r15d
cmpl $0x1, (%r14)
je 0xbf8e
addq $-0x4, %r14
movq %r14, %rdi
callq 0x7040
decl 0x371de(%rip)           # 0x4315c
movl $0x1, %edi
callq 0x7b1f
movq %rax, %r14
xorl %r15d, %r15d
callq 0x74dc
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 0x8ba5
// File: /workspace/github_c_makefile_star2_O3/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 0x393a3(%rip), %r14     # 0x45a00
cmovneq %r14, %rax
movq (%rax), %r15
leaq 0xff46d(%rip), %rax     # 0x10bad8
cmpb $0x1, 0x10(%r15)
jne 0xc6de
leaq 0x10(%r15), %rbx
movl $0xfffe795f, %r12d      # imm = 0xFFFE795F
leaq 0x3bf3d(%rip), %r13     # 0x485c0
movq (%r15), %rdi
callq 0x8ba5
callq 0x9cff
movl 0x32c22(%rip), %eax     # 0x3f2b8
leal (%rax,%r12), %ecx
cmpl %r12d, %ecx
jbe 0xc6f4
decl %eax
movl %eax, 0x32c11(%rip)     # 0x3f2b8
movq (%r13,%rax,8), %rdi
callq 0xb477
testl %eax, %eax
jne 0xc6d7
addq $0x8, %r15
cmpb $0x1, (%rbx)
cmovneq %r14, %r15
movq (%r15), %r15
leaq 0x10(%r15), %rbx
cmpb $0x1, 0x10(%r15)
je 0xc683
leaq 0xff403(%rip), %rax     # 0x10bad8
jmp 0xc6de
leaq 0x36a62(%rip), %rax     # 0x43140
movq (%rax), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8ba5
leaq 0x22846(%rip), %rdi     # 0x2ef41
callq 0x780b
// File: /workspace/github_c_makefile_star2_O3/georgeweigt[P]eigenmath/eigenmath.c
// Function: isdoublez
int
isdoublez(struct atom *p)
{
	if (car(p) == symbol(ADD)) {

		if (lengthf(p) != 3)
			return 0;

		if (!isdouble(cadr(p))) // x
			return 0;

		p = caddr(p);
	}

	if (car(p) != symbol(MULTIPLY))
		return 0;

	if (lengthf(p) != 3)
		return 0;

	if (!isdouble(cadr(p))) // y
		return 0;

	p = caddr(p);

	if (car(p) != symbol(POWER))
		return 0;

	if (!isminusone(cadr(p)))
		return 0;

	if (!isequalq(caddr(p), 1, 2))
		return 0;

	return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movb 0x10(%rdi), %cl
cmpb $0x1, %cl
leaq 0x38fd0(%rip), %rax     # 0x45a00
movq %rax, %rdx
cmoveq %rdi, %rdx
movq (%rdx), %rdx
cmpq 0x3b85f(%rip), %rdx     # 0x482a0
je 0xcaab
movq %rdi, %rdx
cmpb $0x1, %cl
cmovneq %rax, %rdx
jne 0xcbc3
movq 0x3b84e(%rip), %rcx     # 0x482a8
cmpq %rcx, (%rdx)
jne 0xcbc3
movl $0x3, %ecx
movq %rdi, %rdx
movq 0x8(%rdx), %rdx
decl %ecx
cmpb $0x1, 0x10(%rdx)
je 0xca6b
testl %ecx, %ecx
jne 0xcbc3
movq 0x8(%rdi), %rcx
cmpb $0x1, 0x10(%rcx)
jne 0xcb00
movq (%rcx), %rdx
cmpb $0x5, 0x10(%rdx)
jne 0xcbc3
movq 0x8(%rcx), %rdx
cmpb $0x1, 0x10(%rdx)
leaq 0x38f5b(%rip), %rcx     # 0x45a00
cmoveq %rdx, %rcx
jmp 0xcb14
cmpb $0x1, %cl
jne 0xcbc3
movl $0x3, %ecx
movq %rdi, %rdx
movq 0x8(%rdx), %rdx
decl %ecx
cmpb $0x1, 0x10(%rdx)
je 0xcabc
testl %ecx, %ecx
jne 0xcbc3
movq 0x8(%rdi), %rcx
cmpb $0x1, 0x10(%rcx)
jne 0xcb68
movq (%rcx), %rdx
cmpb $0x5, 0x10(%rdx)
jne 0xcbc3
movq 0x8(%rcx), %rdx
cmpb $0x1, 0x10(%rdx)
leaq 0x38f06(%rip), %rcx     # 0x45a00
cmoveq %rdx, %rcx
jmp 0xcb7c
movq 0x38ef9(%rip), %rcx     # 0x45a00
cmpb $0x5, 0x10(%rcx)
movq %rax, %rcx
jne 0xcbc3
movq (%rcx), %rcx
movb 0x10(%rcx), %dl
cmpb $0x1, %dl
cmoveq %rcx, %rax
movq (%rax), %rax
cmpq 0x3b785(%rip), %rax     # 0x482b0
jne 0xcbc3
addq $0x8, %rcx
cmpb $0x1, %dl
leaq 0x38ec1(%rip), %r14     # 0x45a00
cmovneq %r14, %rcx
movq (%rcx), %rbx
cmpb $0x1, 0x10(%rbx)
jne 0xcb87
movq (%rbx), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x1, %edx
callq 0xd1c4
testl %eax, %eax
je 0xcbc3
movq 0x8(%rbx), %rbx
jmp 0xcba4
movq 0x38e91(%rip), %rcx     # 0x45a00
cmpb $0x5, 0x10(%rcx)
jne 0xcbc3
leaq 0x38e84(%rip), %rcx     # 0x45a00
movq (%rcx), %rdi
movb 0x10(%rdi), %cl
jmp 0xca43
movq 0x38e72(%rip), %rbx     # 0x45a00
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x1, %edx
callq 0xd1c4
testl %eax, %eax
je 0xcbc3
cmpb $0x1, 0x10(%rbx)
jne 0xcbad
movq %rbx, %r14
movq (%r14), %rdi
movl $0x1, %esi
movl $0x2, %edx
popq %rbx
popq %r14
popq %rbp
jmp 0xd1c4
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/georgeweigt[P]eigenmath/eigenmath.c
// Function: isequalq
int
isequalq(struct atom *p, int a, int b)
{
	int sign;
	if (isrational(p)) {
		if (a < 0) {
			sign = MMINUS;
			a = -a;
		} else
			sign = MPLUS;
		return p->sign == sign && MEQUAL(p->u.q.a, a) && MEQUAL(p->u.q.b, b);
	}
	if (isdouble(p))
		return p->u.d == (double) a / b;
	return 0;
}

// Assembly:
movzbl 0x10(%rdi), %eax
cmpl $0x5, %eax
je 0xd20a
cmpl $0x4, %eax
jne 0xd206
movl %esi, %eax
negl %eax
cmovsl %esi, %eax
shrl $0x1f, %esi
movzbl 0x12(%rdi), %ecx
cmpl %ecx, %esi
jne 0xd206
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
cmpl $0x1, -0x4(%rcx)
jne 0xd225
cmpl %eax, (%rcx)
jne 0xd225
movq 0x8(%rdi), %rax
cmpl $0x1, -0x4(%rax)
jne 0xd225
cmpl %edx, (%rax)
sete %al
jmp 0xd227
xorl %eax, %eax
jmp 0xd228
cvtsi2sd %esi, %xmm0
cvtsi2sd %edx, %xmm1
divsd %xmm1, %xmm0
cmpeqsd (%rdi), %xmm0
movq %xmm0, %rax
andl $0x1, %eax
jmp 0xd228
xorl %eax, %eax
popq %rbp
movzbl %al, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/georgeweigt[P]eigenmath/eigenmath.c
// Function: eval_arctan
void
eval_arctan(struct atom *p1)
{
	push(cadr(p1));
	evalf();

	p1 = cddr(p1);

	if (iscons(p1)) {
		push(car(p1));
		evalf();
	} else
		push_integer(1);

	arctan();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
cmpb $0x1, 0x10(%rdi)
leaq 0x37fb0(%rip), %r15     # 0x45a00
movq %r15, %rax
cmoveq %r14, %rax
movq (%rax), %rax
cmpb $0x1, 0x10(%rax)
cmovneq %r15, %rax
movq (%rax), %rdi
callq 0x8ba5
callq 0x96e2
cmpb $0x1, 0x10(%rbx)
cmovneq %r15, %r14
movq (%r14), %rax
leaq 0x8(%rax), %rcx
cmpb $0x1, 0x10(%rax)
cmovneq %r15, %rcx
movq (%rcx), %rax
cmpb $0x1, 0x10(%rax)
jne 0xda9e
movq (%rax), %rdi
callq 0x8ba5
callq 0x96e2
jmp 0xdaaa
movq 0xfe033(%rip), %rdi     # 0x10bad8
callq 0x8ba5
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0xdab9
// File: /workspace/github_c_makefile_star2_O3/georgeweigt[P]eigenmath/eigenmath.c
// Function: eval_arg
void
eval_arg(struct atom *p1)
{
	push(cadr(p1));
	evalf();
	polar(); // normalize
	argfunc();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpb $0x1, 0x10(%rdi)
leaq 0x8(%rdi), %rax
leaq 0x3746f(%rip), %rcx     # 0x45a00
cmovneq %rcx, %rax
movq (%rax), %rax
cmpb $0x1, 0x10(%rax)
cmoveq %rax, %rcx
movq (%rcx), %rdi
callq 0x8ba5
callq 0x96e2
callq 0xe5b8
popq %rbp
jmp 0xe743
// File: /workspace/github_c_makefile_star2_O3/georgeweigt[P]eigenmath/eigenmath.c
// Function: polar
void
polar(void)
{
	int i, n;
	struct atom *p1, *p2;

	p1 = pop();

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

	push(p1);
	magfunc();
	push(p1);
	argfunc();
	p2 = pop();
	if (isdouble(p2)) {
		push_double(p2->u.d / M_PI);
		push_symbol(PI);
		push(imaginaryunit);
		multiply_factors(3);
	} else {
		// the result of arg is arctan
		push(p2);
		push(imaginaryunit);
		multiply();
	}
	expfunc();
	multiply();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x30cec(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %ecx       # imm = 0xFFFE795F
leal (%rax,%rcx), %edx
cmpl %ecx, %edx
jbe 0xe737
decl %eax
movl %eax, 0x30cd4(%rip)     # 0x3f2b8
leaq 0x39fd5(%rip), %r14     # 0x485c0
movq (%r14,%rax,8), %rbx
cmpb $0x7, 0x10(%rbx)
jne 0xe66c
movq %rbx, %rdi
callq 0x9638
movq %rax, %rbx
movq (%rax), %rax
movslq 0x64(%rax), %r15
testq %r15, %r15
jle 0xe656
xorl %r12d, %r12d
movl $0xfffe795f, %r13d      # imm = 0xFFFE795F
movq (%rbx), %rax
movq 0x68(%rax,%r12,8), %rdi
callq 0x8ba5
callq 0xe5b8
movl 0x30c8b(%rip), %eax     # 0x3f2b8
leal (%rax,%r13), %ecx
cmpl %r13d, %ecx
jbe 0xe737
decl %eax
movl %eax, 0x30c76(%rip)     # 0x3f2b8
movq (%r14,%rax,8), %rax
movq (%rbx), %rcx
movq %rax, 0x68(%rcx,%r12,8)
incq %r12
cmpq %r12, %r15
jne 0xe615
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8ba5
movq %rbx, %rdi
callq 0x8ba5
callq 0xf5df
movq %rbx, %rdi
callq 0x8ba5
callq 0xe743
movl 0x30c2c(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %ecx       # imm = 0xFFFE795F
leal (%rax,%rcx), %edx
cmpl %ecx, %edx
jbe 0xe737
decl %eax
movl %eax, 0x30c14(%rip)     # 0x3f2b8
movq (%r14,%rax,8), %rdi
cmpb $0x5, 0x10(%rdi)
jne 0xe6ec
movsd (%rdi), %xmm0
divsd 0x1ba86(%rip), %xmm0    # 0x2a140
movsd %xmm0, -0x30(%rbp)
callq 0x74dc
movb $0x5, 0x10(%rax)
movsd -0x30(%rbp), %xmm0
movsd %xmm0, (%rax)
movq %rax, %rdi
callq 0x8ba5
movq 0x37970(%rip), %rdi     # 0x46050
callq 0x8ba5
movl $0x3, %ebx
jmp 0xe6f6
callq 0x8ba5
movl $0x2, %ebx
movq 0xfd3e3(%rip), %rdi     # 0x10bae0
callq 0x8ba5
movl %ebx, %edi
callq 0xacef
movq 0x39bb8(%rip), %rdi     # 0x482c8
callq 0x8ba5
callq 0xb238
callq 0xa573
movl $0x2, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xacef
leaq 0x20803(%rip), %rdi     # 0x2ef41
callq 0x780b
// File: /workspace/github_c_makefile_star2_O3/georgeweigt[P]eigenmath/eigenmath.c
// Function: argfunc
void
argfunc(void)
{
	int i, n;
	struct atom *p1, *p2, *num, *den;

	p1 = pop();

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

	push(p1);
	numden();
	num = pop();
	den = pop();
	push(num);
	arg_nib();
	push(den);
	arg_nib();
	subtract();

	p2 = pop();

	if (hasdouble(p1) && findf(p2, symbol(PI))) {
		push(p2);
		push_symbol(PI);
		push_double(M_PI);
		subst();
		evalf();
	} else
		push(p2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x30b61(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %ecx       # imm = 0xFFFE795F
leal (%rax,%rcx), %edx
cmpl %ecx, %edx
jbe 0xe909
decl %eax
movl %eax, 0x30b49(%rip)     # 0x3f2b8
leaq 0x39e4a(%rip), %r15     # 0x485c0
movq (%r15,%rax,8), %rbx
cmpb $0x7, 0x10(%rbx)
jne 0xe7e9
movq %rbx, %rdi
callq 0x9638
movq %rax, %rbx
movq (%rax), %rax
movslq 0x64(%rax), %r14
testq %r14, %r14
jle 0xe7e1
xorl %r12d, %r12d
movl $0xfffe795f, %r13d      # imm = 0xFFFE795F
movq (%rbx), %rax
movq 0x68(%rax,%r12,8), %rdi
callq 0x8ba5
callq 0xe743
movl 0x30b00(%rip), %eax     # 0x3f2b8
leal (%rax,%r13), %ecx
cmpl %r13d, %ecx
jbe 0xe909
decl %eax
movl %eax, 0x30aeb(%rip)     # 0x3f2b8
movq (%r15,%rax,8), %rax
movq (%rbx), %rcx
movq %rax, 0x68(%rcx,%r12,8)
incq %r12
cmpq %r12, %r14
jne 0xe7a0
movq %rbx, %rdi
jmp 0xe8f6
movq %rbx, %rdi
callq 0x8ba5
callq 0xe915
movl 0x30abc(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %ecx       # imm = 0xFFFE795F
leal (%rax,%rcx), %edx
cmpl %ecx, %edx
jbe 0xe909
leal -0x1(%rax), %ecx
movl %ecx, 0x30aa3(%rip)     # 0x3f2b8
cmpl $0x1, %eax
jbe 0xe909
movl %ecx, %ecx
movq (%r15,%rcx,8), %rdi
addl $-0x2, %eax
movl %eax, 0x30a8b(%rip)     # 0x3f2b8
movq (%r15,%rax,8), %r14
callq 0x8ba5
callq 0xea27
movq %r14, %rdi
callq 0x8ba5
callq 0xea27
movq 0x107ba1(%rip), %rdi    # 0x1163f0
callq 0x8ba5
movl $0x2, %edi
callq 0xacef
movl $0x2, %edi
callq 0xadb3
movl 0x30a4a(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %ecx       # imm = 0xFFFE795F
leal (%rax,%rcx), %edx
cmpl %ecx, %edx
jbe 0xe909
decl %eax
movl %eax, 0x30a32(%rip)     # 0x3f2b8
movq (%r15,%rax,8), %r14
movq %rbx, %rdi
callq 0xed67
testl %eax, %eax
je 0xe8f3
movq 0x377b3(%rip), %rsi     # 0x46050
movq %r14, %rdi
callq 0x8c99
testl %eax, %eax
je 0xe8f3
movq %r14, %rdi
callq 0x8ba5
movq 0x37798(%rip), %rdi     # 0x46050
callq 0x8ba5
callq 0x74dc
movb $0x5, 0x10(%rax)
movabsq $0x400921fb54442d18, %rcx # imm = 0x400921FB54442D18
movq %rcx, (%rax)
movq %rax, %rdi
callq 0x8ba5
callq 0x9493
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x96e2
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8ba5
leaq 0x20631(%rip), %rdi     # 0x2ef41
callq 0x780b
// File: /workspace/github_c_makefile_star2_O3/georgeweigt[P]eigenmath/eigenmath.c
// Function: numden
void
numden(void)
{
	struct atom *p0, *p1, *p2;

	p1 = pop();
	p2 = one;

	while (numden_find_divisor(p1)) {
		p0 = pop();
		push(p0);
		push(p1);
		numden_cancel_factor();
		p1 = pop();
		push(p0);
		push(p2);
		multiply();
		p2 = pop();
	}

	push(p2);
	push(p1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x3098f(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %ecx       # imm = 0xFFFE795F
leal (%rax,%rcx), %edx
cmpl %ecx, %edx
jbe 0xea1b
decl %eax
movl %eax, 0x30977(%rip)     # 0x3f2b8
leaq 0x39c78(%rip), %r12     # 0x485c0
movq (%r12,%rax,8), %rbx
movq 0xfd185(%rip), %r14     # 0x10bad8
movq %rbx, %rdi
callq 0x28018
testl %eax, %eax
je 0xe9fd
movl $0xfffe795f, %r13d      # imm = 0xFFFE795F
movl 0x30949(%rip), %eax     # 0x3f2b8
leal (%rax,%r13), %ecx
cmpl %r13d, %ecx
jbe 0xea1b
decl %eax
movl %eax, 0x30934(%rip)     # 0x3f2b8
movq (%r12,%rax,8), %r15
movq %r15, %rdi
callq 0x8ba5
movq %rbx, %rdi
callq 0x8ba5
callq 0x280a2
movl 0x30915(%rip), %eax     # 0x3f2b8
leal (%rax,%r13), %ecx
cmpl %r13d, %ecx
jbe 0xea1b
decl %eax
movl %eax, 0x30904(%rip)     # 0x3f2b8
movq (%r12,%rax,8), %rbx
movq %r15, %rdi
callq 0x8ba5
movq %r14, %rdi
callq 0x8ba5
movl $0x2, %edi
callq 0xacef
movl 0x308e0(%rip), %eax     # 0x3f2b8
leal (%rax,%r13), %ecx
cmpl %r13d, %ecx
jbe 0xea1b
decl %eax
movl %eax, 0x308cf(%rip)     # 0x3f2b8
movq (%r12,%rax,8), %r14
movq %rbx, %rdi
callq 0x28018
testl %eax, %eax
jne 0xe969
movq %r14, %rdi
callq 0x8ba5
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8ba5
leaq 0x2051f(%rip), %rdi     # 0x2ef41
callq 0x780b
// File: /workspace/github_c_makefile_star2_O3/georgeweigt[P]eigenmath/eigenmath.c
// Function: hasdouble
int
hasdouble(struct atom *p)
{
	if (iscons(p)) {
		p = cdr(p);
		while (iscons(p)) {
			if (hasdouble(car(p)))
				return 1;
			p = cdr(p);
		}
		return 0;
	}
	return isdouble(p);
}

// Assembly:
movb 0x10(%rdi), %cl
cmpb $0x1, %cl
jne 0xed95
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rbx), %rbx
cmpb $0x1, 0x10(%rbx)
jne 0xed9e
movq (%rbx), %rdi
callq 0xed67
testl %eax, %eax
je 0xed78
movl $0x1, %eax
jmp 0xeda0
xorl %eax, %eax
cmpb $0x5, %cl
sete %al
retq
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/georgeweigt[P]eigenmath/eigenmath.c
// Function: imag
void
imag(void)
{
	int i, n;
	struct atom *p1;

	p1 = pop();

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

	push(p1);
	rect();
	p1 = pop();
	push_rational(-1, 2);
	push(imaginaryunit);
	push(p1);
	push(p1);
	conjfunc();
	subtract();
	multiply_factors(3);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x304fd(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %ecx       # imm = 0xFFFE795F
leal (%rax,%rcx), %edx
cmpl %ecx, %edx
jbe 0xeeed
decl %eax
movl %eax, 0x304e5(%rip)     # 0x3f2b8
leaq 0x397e6(%rip), %r14     # 0x485c0
movq (%r14,%rax,8), %rdi
cmpb $0x7, 0x10(%rdi)
jne 0xee58
callq 0x9638
movq %rax, %rbx
movq (%rax), %rax
movslq 0x64(%rax), %r15
testq %r15, %r15
jle 0xee42
xorl %r12d, %r12d
movl $0xfffe795f, %r13d      # imm = 0xFFFE795F
movq (%rbx), %rax
movq 0x68(%rax,%r12,8), %rdi
callq 0x8ba5
callq 0xeda7
movl 0x3049f(%rip), %eax     # 0x3f2b8
leal (%rax,%r13), %ecx
cmpl %r13d, %ecx
jbe 0xeeed
decl %eax
movl %eax, 0x3048a(%rip)     # 0x3f2b8
movq (%r14,%rax,8), %rax
movq (%rbx), %rcx
movq %rax, 0x68(%rcx,%r12,8)
incq %r12
cmpq %r12, %r15
jne 0xee01
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8ba5
callq 0x8ba5
callq 0x15d88
movl 0x30450(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %ecx       # imm = 0xFFFE795F
leal (%rax,%rcx), %edx
cmpl %ecx, %edx
jbe 0xeeed
decl %eax
movl %eax, 0x3043c(%rip)     # 0x3f2b8
movq (%r14,%rax,8), %rbx
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl $0x2, %esi
callq 0xa533
movq 0xfcc4a(%rip), %rdi     # 0x10bae0
callq 0x8ba5
movq %rbx, %rdi
callq 0x8ba5
movq %rbx, %rdi
callq 0x8ba5
callq 0xfb25
callq 0x96e2
movq 0x107534(%rip), %rdi    # 0x1163f0
callq 0x8ba5
movl $0x2, %edi
callq 0xacef
movl $0x2, %edi
callq 0xadb3
movl $0x3, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xacef
leaq 0x2004d(%rip), %rdi     # 0x2ef41
callq 0x780b
// File: /workspace/github_c_makefile_star2_O3/georgeweigt[P]eigenmath/eigenmath.c
// Function: real
void
real(void)
{
	int i, n;
	struct atom *p1;

	p1 = pop();

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

	push(p1);
	rect();
	p1 = pop();
	push(p1);
	push(p1);
	conjfunc();
	add();
	push_rational(1, 2);
	multiply();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x303ab(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %ecx       # imm = 0xFFFE795F
leal (%rax,%rcx), %edx
cmpl %ecx, %edx
jbe 0xf01d
decl %eax
movl %eax, 0x30393(%rip)     # 0x3f2b8
leaq 0x39694(%rip), %r14     # 0x485c0
movq (%r14,%rax,8), %rdi
cmpb $0x7, 0x10(%rdi)
jne 0xefaa
callq 0x9638
movq %rax, %rbx
movq (%rax), %rax
movslq 0x64(%rax), %r15
testq %r15, %r15
jle 0xef94
xorl %r12d, %r12d
movl $0xfffe795f, %r13d      # imm = 0xFFFE795F
movq (%rbx), %rax
movq 0x68(%rax,%r12,8), %rdi
callq 0x8ba5
callq 0xeef9
movl 0x3034d(%rip), %eax     # 0x3f2b8
leal (%rax,%r13), %ecx
cmpl %r13d, %ecx
jbe 0xf01d
decl %eax
movl %eax, 0x30338(%rip)     # 0x3f2b8
movq (%r14,%rax,8), %rax
movq (%rbx), %rcx
movq %rax, 0x68(%rcx,%r12,8)
incq %r12
cmpq %r12, %r15
jne 0xef53
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8ba5
callq 0x8ba5
callq 0x15d88
movl 0x302fe(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %ecx       # imm = 0xFFFE795F
leal (%rax,%rcx), %edx
cmpl %ecx, %edx
jbe 0xf01d
decl %eax
movl %eax, 0x302ea(%rip)     # 0x3f2b8
movq (%r14,%rax,8), %rbx
movq %rbx, %rdi
callq 0x8ba5
movq %rbx, %rdi
callq 0x8ba5
callq 0xfb25
callq 0x96e2
movl $0x2, %edi
callq 0xadb3
movl $0x1, %edi
movl $0x2, %esi
callq 0xa533
movl $0x2, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xacef
leaq 0x1ff1d(%rip), %rdi     # 0x2ef41
callq 0x780b