// File: /workspace/github_c_makefile_star2_O3/georgeweigt[P]eigenmath/eigenmath.c
// Function: conjfunc_subst
void
conjfunc_subst(void)
{
	int h, 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]);
			conjfunc_subst();
			p1->u.tensor->elem[i] = pop();
		}
		push(p1);
		return;
	}

	// (-1) ^ expr

	if (car(p1) == symbol(POWER) && isminusone(cadr(p1))) {
		push_symbol(POWER);
		push_integer(-1);
		push(caddr(p1));
		negate();
		list(3);
		return;
	}

	if (iscons(p1)) {
		h = tos;
		push(car(p1));
		p1 = cdr(p1);
		while (iscons(p1)) {
			push(car(p1));
			conjfunc_subst();
			p1 = cdr(p1);
		}
		list(tos - h);
		return;
	}

	push(p1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x2f77e(%rip), %r15d    # 0x3f2b8
movl $0xfffe795f, %eax       # imm = 0xFFFE795F
leal (%r15,%rax), %ecx
cmpl %eax, %ecx
jbe 0xfd09
decl %r15d
movl %r15d, 0x2f763(%rip)    # 0x3f2b8
leaq 0x38a64(%rip), %r14     # 0x485c0
movq (%r14,%r15,8), %rbx
movzbl 0x10(%rbx), %r13d
movq %rbx, %rax
cmpl $0x1, %r13d
je 0xfbe2
cmpl $0x7, %r13d
jne 0xfbdb
movq %rbx, %rdi
callq 0x9638
movq %rax, %rbx
movq (%rax), %rax
movslq 0x64(%rax), %r15
testq %r15, %r15
jle 0xfc31
xorl %r12d, %r12d
movl $0xfffe795f, %r13d      # imm = 0xFFFE795F
movq (%rbx), %rax
movq 0x68(%rax,%r12,8), %rdi
callq 0x8ba5
callq 0xfb25
movl 0x2f708(%rip), %eax     # 0x3f2b8
leal (%rax,%r13), %ecx
cmpl %r13d, %ecx
jbe 0xfd09
decl %eax
movl %eax, 0x2f6f3(%rip)     # 0x3f2b8
movq (%r14,%rax,8), %rax
movq (%rbx), %rcx
movq %rax, 0x68(%rcx,%r12,8)
incq %r12
cmpq %r12, %r15
jne 0xfb98
jmp 0xfc31
leaq 0x35e1e(%rip), %rax     # 0x45a00
movq 0x386c7(%rip), %r14     # 0x482b0
cmpq %r14, (%rax)
je 0xfc55
cmpb $0x1, %r13b
jne 0xfc31
movq (%rbx), %rdi
callq 0x8ba5
cmpb $0x1, 0x10(%rbx)
leaq 0x8(%rbx), %rax
leaq 0x35df5(%rip), %rbx     # 0x45a00
cmovneq %rbx, %rax
movq (%rax), %r14
cmpb $0x1, 0x10(%r14)
jne 0xfc47
movq (%r14), %rdi
callq 0x8ba5
callq 0xfb25
leaq 0x8(%r14), %rax
cmpb $0x1, 0x10(%r14)
jmp 0xfc0b
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8ba5
movl 0x2f66b(%rip), %edi     # 0x3f2b8
subl %r15d, %edi
jmp 0xfcf6
leaq 0x8(%rbx), %r12
cmpb $0x1, %r13b
leaq 0x35d9c(%rip), %rcx     # 0x45a00
movq %rcx, %rax
cmoveq %r12, %rax
movq (%rax), %rax
cmpb $0x1, 0x10(%rax)
cmovneq %rcx, %rax
movq (%rax), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x1, %edx
callq 0xd1c4
testl %eax, %eax
je 0xfbee
movq %r14, %rdi
callq 0x8ba5
movq 0x106751(%rip), %rdi    # 0x1163f0
callq 0x8ba5
cmpb $0x1, 0x10(%rbx)
leaq 0x35d51(%rip), %rcx     # 0x45a00
cmovneq %rcx, %r12
movq (%r12), %rax
cmpb $0x1, 0x10(%rax)
jne 0xfcc3
movq 0x8(%rax), %rax
jmp 0xfcca
movq 0x35d36(%rip), %rax     # 0x45a00
cmpb $0x1, 0x10(%rax)
jne 0xfcd3
movq %rax, %rcx
movq (%rcx), %rdi
callq 0x8ba5
movq 0x10670e(%rip), %rdi    # 0x1163f0
callq 0x8ba5
movl $0x2, %edi
callq 0xacef
movl $0x3, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8b7d
leaq 0x1f231(%rip), %rdi     # 0x2ef41
callq 0x780b