// File: /workspace/github_c_makefile_star2_O3/georgeweigt[P]eigenmath/eigenmath.c
// Function: magfunc_nib
void
magfunc_nib(void)
{
	int h;
	struct atom *p1, *x, *y;

	p1 = pop();

	if (isnum(p1)) {
		push(p1);
		absfunc();
		return;
	}

	// -1 to a power

	if (car(p1) == symbol(POWER) && isminusone(cadr(p1))) {
		push_integer(1);
		return;
	}

	// exponential

	if (car(p1) == symbol(POWER) && cadr(p1) == symbol(EXP1)) {
		push(caddr(p1));
		real();
		expfunc();
		return;
	}

	// product

	if (car(p1) == symbol(MULTIPLY)) {
		p1 = cdr(p1);
		h = tos;
		while (iscons(p1)) {
			push(car(p1));
			magfunc_nib();
			p1 = cdr(p1);
		}
		multiply_factors(tos - h);
		return;
	}

	// sum

	if (car(p1) == symbol(ADD)) {
		push(p1);
		rect(); // convert polar terms, if any
		p1 = pop();
		push(p1);
		real();
		x = pop();
		push(p1);
		imag();
		y = pop();
		if (iszero(y)) {
			push(x);
			return;
		}
		if (iszero(x)) {
			push(y);
			return;
		}
		push(x);
		push(x);
		multiply();
		push(y);
		push(y);
		multiply();
		add();
		sqrtfunc();
		return;
	}

	// real

	push(p1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x25e9d(%rip), %r14d    # 0x3f2b8
movl $0xfffe795f, %eax       # imm = 0xFFFE795F
leal (%r14,%rax), %ecx
cmpl %eax, %ecx
jbe 0x196fb
decl %r14d
movl %r14d, 0x25e82(%rip)    # 0x3f2b8
leaq 0x2f183(%rip), %rax     # 0x485c0
movq (%rax,%r14,8), %rbx
movb 0x10(%rbx), %r12b
movzbl %r12b, %eax
leal -0x4(%rax), %ecx
cmpl $0x2, %ecx
jae 0x1946c
movq %rbx, %rdi
callq 0x8ba5
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9e31
movq %rbx, %rcx
cmpl $0x1, %eax
je 0x1947b
leaq 0x2c585(%rip), %rcx     # 0x45a00
movq 0x2ee2e(%rip), %r15     # 0x482b0
cmpq %r15, (%rcx)
je 0x194d8
cmpb $0x1, %r12b
leaq 0x2c56e(%rip), %r13     # 0x45a00
movq %r13, %rax
cmoveq %rbx, %rax
movq (%rax), %rax
cmpq %r15, %rax
movq %rax, %r15
je 0x1951c
cmpq 0x2edfd(%rip), %r15     # 0x482a8
je 0x1954e
movq 0x2ede8(%rip), %r14     # 0x482a0
movq %rbx, %rdi
callq 0x8ba5
cmpq %r14, %r15
je 0x195a4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%rbx), %rax
cmpb $0x1, %r12b
leaq 0x2c519(%rip), %rcx     # 0x45a00
cmovneq %rcx, %rax
movq (%rax), %rax
cmpb $0x1, 0x10(%rax)
cmoveq %rax, %rcx
movq (%rcx), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x1, %edx
callq 0xd1c4
testl %eax, %eax
je 0x19487
movq 0xf25c1(%rip), %rdi     # 0x10bad8
jmp 0x19696
leaq 0x8(%rbx), %rax
cmpb $0x1, %r12b
cmovneq %r13, %rax
movq (%rax), %rax
cmpb $0x1, 0x10(%rax)
movq 0x2ed92(%rip), %rcx     # 0x482c8
jne 0x1963c
cmpq %rcx, (%rax)
jne 0x194a4
movq 0x8(%rax), %rax
jmp 0x1964c
addq $0x8, %rbx
cmpb $0x1, %r12b
cmovneq %r13, %rbx
movq (%rbx), %rbx
cmpb $0x1, 0x10(%rbx)
movl %r14d, %edi
jne 0x1958e
movq (%rbx), %rdi
callq 0x8ba5
callq 0x19406
leaq 0x8(%rbx), %rax
cmpb $0x1, 0x10(%rbx)
cmovneq %r13, %rax
movq (%rax), %rbx
cmpb $0x1, 0x10(%rbx)
je 0x19566
movl 0x25d2a(%rip), %edi     # 0x3f2b8
subl %r14d, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xacef
callq 0x15d88
movl 0x25d09(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %ebx       # imm = 0xFFFE795F
leal (%rax,%rbx), %ecx
cmpl %ebx, %ecx
jbe 0x196fb
decl %eax
movl %eax, 0x25cf1(%rip)     # 0x3f2b8
leaq 0x2eff2(%rip), %r15     # 0x485c0
movq (%r15,%rax,8), %r14
movq %r14, %rdi
callq 0x8ba5
callq 0xeef9
movl 0x25cd3(%rip), %eax     # 0x3f2b8
leal (%rax,%rbx), %ecx
cmpl %ebx, %ecx
jbe 0x196fb
decl %eax
movl %eax, 0x25cc0(%rip)     # 0x3f2b8
movq (%r15,%rax,8), %rbx
movq %r14, %rdi
callq 0x8ba5
callq 0xeda7
movl 0x25ca9(%rip), %eax     # 0x3f2b8
movl $0xfffe795f, %ecx       # imm = 0xFFFE795F
leal (%rax,%rcx), %edx
cmpl %ecx, %edx
jbe 0x196fb
decl %eax
movl %eax, 0x25c91(%rip)     # 0x3f2b8
movq (%r15,%rax,8), %r14
movq %r14, %rdi
callq 0xb477
testl %eax, %eax
je 0x19687
movq %rbx, %rdi
jmp 0x19696
movq 0x2c3bd(%rip), %rax     # 0x45a00
cmpq %rcx, %rax
jne 0x194a4
cmpb $0x1, 0x10(%rax)
jne 0x19655
movq %rax, %r13
movq (%r13), %rdi
callq 0x8ba5
callq 0xeef9
movq 0x2ec5e(%rip), %rdi     # 0x482c8
callq 0x8ba5
callq 0xb238
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa573
movq %rbx, %rdi
callq 0xb477
testl %eax, %eax
je 0x196a9
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8ba5
movq %rbx, %rdi
callq 0x8ba5
movq %rbx, %rdi
callq 0x8ba5
movl $0x2, %edi
callq 0xacef
movq %r14, %rdi
callq 0x8ba5
movq %r14, %rdi
callq 0x8ba5
movl $0x2, %edi
callq 0xacef
movl $0x2, %edi
callq 0xadb3
movl $0x1, %edi
movl $0x2, %esi
callq 0xa533
jmp 0x19674
leaq 0x1583f(%rip), %rdi     # 0x2ef41
callq 0x780b