// File: /workspace/github_c_makefile_star2_O2/beejjorgensen[P]conquest/conqs3.c
// Function: pr5nt_star
void pr5nt_star(int stnum)
{
    boolean see;
    int i;
    tplanet *p;
    if ((stnum != 0) && (stnum <= nstars)) {
        if ((y_cursor + 3 + tf_stars[stnum][player] +
             tf_stars[stnum][ENEMY]) > 19) {
            clear_field();
            pause();
            point(50, 1);
        };
        if (stars[stnum].visit[player] == true) {
            see = false;
            printw("----- star %c -----            ", stnum + 'A' - 1);
            point(50, y_cursor + 1);
            if (tf_stars[stnum][player] != 0) {
                see = true;
                for (i = 1; i <= 26; i++) {
                    if (tf[player][i].dest == stnum
                        && tf[player][i].eta == 0) {
                        printw("TF%c                           ",
                               i + 'a' - 1);
                        point(55, y_cursor);
                        disp_tf(&tf[player][i]);
                        point(50, y_cursor + 1);
                    };
                };
            };
            if (!see)
                see = col_stars[stnum][player] != 0;
            if (see && (tf_stars[stnum][ENEMY] != 0)) {
                i = 1;
                while (tf[ENEMY][i].eta != 0 ||
                       (tf[ENEMY][i].dest != stnum))
                    i = i + 1;
                printw(" EN:                          ");
                point(55, y_cursor);
                disp_tf(&tf[ENEMY][i]);
                point(50, y_cursor + 1);
            };
            p = stars[stnum].first_planet;
            if (p == nil) {
                printw("  no useable planets          ");
                point(50, y_cursor + 1);
            } else {
                while (p != nil) {
                    addch(' ');
                    if (((y_cursor > 21) && (x_cursor >= 50)) ||
                        (y_cursor > 24)) {
                        pause();
                        clear_field();
                        point(50, 1);
                    };
                    printw("%d:%2d                         ", p->number,
                           p->psee_capacity);
                    point(x_cursor + 5, y_cursor);
                    x_cursor = x_cursor - 5;
                    if (p->psee_capacity == 0)
                        printw(" Decimated");
                    else if ((p->team == none) && see)
                        printw(" No colony");
                    else if (p->team == player) {
                        printw("(%2d,/%3d)", p->inhabitants, p->iu);
                        if (p->conquered)
                            printw("Con");
                        else
                            printw("   ");
                        if (p->mb != 0)
                            printw("%2dmb", p->mb);
                        else
                            printw("    ");
                        if (p->amb != 0)
                            printw("%2damb", p->amb);
                    } else if ((p->team == ENEMY) && see) {
                        printw("*EN*");
                        if (see && p->conquered) {
                            printw("Conquered");
                        } else
                            printw("   ");
                        if (p->under_attack) {
                            if (p->mb != 0)
                                printw("%2dmb", p->mb);
                            else
                                printw("    ");
                            if (p->amb != 0)
                                printw("%2damb", p->amb);
                        };
                    };
                    point(x_cursor, y_cursor + 1);

                    p = p->next;
                };
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %edi, %edi
sete %al
cmpl $0x16, %edi
setge %cl
orb %al, %cl
jne 0x75d6
movl %edi, %ebx
leaq 0x95ae(%rip), %r13      # 0x108b4
movl (%r13), %eax
movslq %edi, %rbp
leaq 0x790c(%rip), %r14      # 0xec20
addl 0x4(%r14,%rbp,8), %eax
movl (%r14,%rbp,8), %ecx
addl %ecx, %eax
addl $0x3, %eax
cmpl $0x14, %eax
jl 0x733c
callq 0x6eef
callq 0x71b1
pushq $0x32
popq %rdi
pushq $0x1
popq %rsi
callq 0x4dbd
imulq $0x18, %rbp, %rax
leaq 0x9149(%rip), %r15      # 0x10490
cmpl $0x1, 0x14(%r15,%rax)
jne 0x75d6
addq %rax, %r15
leal 0x40(%rbx), %esi
leaq 0x2ae0(%rip), %rdi      # 0x9e40
xorl %eax, %eax
callq 0x2030
movl (%r13), %esi
incl %esi
pushq $0x32
popq %rdi
callq 0x4dbd
cmpl $0x0, 0x4(%r14,%rbp,8)
je 0x73e1
movl $0x5b0, %r14d           # imm = 0x5B0
addq 0x6c1e(%rip), %r14      # 0xdfa8
pushq $-0x1a
popq %r12
testq %r12, %r12
je 0x73ef
cmpl %ebx, 0x20(%r14)
jne 0x73d8
cmpl $0x0, 0x24(%r14)
jne 0x73d8
leal 0x1b(%r12), %esi
orl $0x60, %esi
leaq 0x2ab1(%rip), %rdi      # 0x9e60
xorl %eax, %eax
callq 0x2030
movl (%r13), %esi
pushq $0x37
popq %rdi
callq 0x4dbd
movq %r14, %rdi
callq 0x274e
movl (%r13), %esi
incl %esi
pushq $0x32
popq %rdi
callq 0x4dbd
incq %r12
addq $0x34, %r14
jmp 0x738e
leaq 0x78e8(%rip), %rax      # 0xecd0
cmpl $0x0, 0x4(%rax,%rbp,8)
je 0x7449
movb $0x1, %r12b
leaq 0x7827(%rip), %rax      # 0xec20
cmpl $0x0, (%rax,%rbp,8)
je 0x744c
leaq 0x858a(%rip), %r14      # 0xf990
addq $0x34, %r14
cmpl $0x0, 0x24(%r14)
jne 0x7406
cmpl %ebx, 0x20(%r14)
jne 0x7406
leaq 0x2a62(%rip), %rdi      # 0x9e80
xorl %eax, %eax
callq 0x2030
movl (%r13), %esi
pushq $0x37
popq %rdi
callq 0x4dbd
movq %r14, %rdi
callq 0x274e
movl (%r13), %esi
incl %esi
pushq $0x32
popq %rdi
callq 0x4dbd
jmp 0x744c
xorl %r12d, %r12d
movq 0x8(%r15), %rbp
testq %rbp, %rbp
je 0x75e5
pushq $0x20
popq %rbx
leaq 0x944d(%rip), %r14      # 0x108b0
leaq 0x205f(%rip), %r15      # 0x94c9
xorb $0x1, %r12b
testq %rbp, %rbp
je 0x75d6
movq 0x6b6a(%rip), %rax      # 0xdfe8
movq (%rax), %rdi
movl %ebx, %esi
callq 0x2090
movl (%r13), %edx
cmpl $0x16, %edx
setge %al
cmpl $0x32, (%r14)
setge %cl
cmpl $0x18, %edx
jg 0x74a2
andb %cl, %al
je 0x74b7
callq 0x71b1
callq 0x6eef
pushq $0x32
popq %rdi
pushq $0x1
popq %rsi
callq 0x4dbd
movl (%rbp), %esi
movl 0x8(%rbp), %edx
movq %r15, %rdi
xorl %eax, %eax
callq 0x2030
movl (%r14), %edi
addl $0x5, %edi
movl (%r13), %esi
callq 0x4dbd
addl $-0x5, (%r14)
cmpl $0x0, 0x8(%rbp)
je 0x74f7
movl 0xc(%rbp), %eax
cmpl $0x2, %eax
setne %cl
orb %r12b, %cl
jne 0x751c
leaq 0x1fff(%rip), %rdi      # 0x94f4
jmp 0x74fe
leaq 0x1feb(%rip), %rdi      # 0x94e9
xorl %eax, %eax
callq 0x2030
movl (%r14), %edi
movl (%r13), %esi
incl %esi
callq 0x4dbd
movq 0x38(%rbp), %rbp
jmp 0x746e
cmpl $0x1, %eax
jne 0x7554
movl 0x10(%rbp), %esi
movl 0x14(%rbp), %edx
leaq 0x1fd1(%rip), %rdi      # 0x94ff
xorl %eax, %eax
callq 0x2030
cmpl $0x0, 0x20(%rbp)
leaq 0x1fca(%rip), %rdi      # 0x950a
leaq 0x209e(%rip), %rax      # 0x95e5
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x2030
jmp 0x7593
testl %eax, %eax
setne %al
orb %r12b, %al
jne 0x7505
leaq 0x1fb6(%rip), %rdi      # 0x951b
xorl %eax, %eax
callq 0x2030
cmpl $0x0, 0x20(%rbp)
leaq 0x1fa9(%rip), %rdi      # 0x9520
leaq 0x2067(%rip), %rax      # 0x95e5
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x2030
cmpl $0x0, 0x24(%rbp)
je 0x7505
movl 0x18(%rbp), %esi
testl %esi, %esi
je 0x75aa
leaq 0x1f6d(%rip), %rdi      # 0x950e
xorl %eax, %eax
callq 0x2030
jmp 0x75b8
leaq 0x2033(%rip), %rdi      # 0x95e4
xorl %eax, %eax
callq 0x2030
movl 0x1c(%rbp), %esi
testl %esi, %esi
je 0x7505
leaq 0x1f4a(%rip), %rdi      # 0x9514
xorl %eax, %eax
callq 0x2030
jmp 0x7505
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x28b3(%rip), %rdi      # 0x9e9f
xorl %eax, %eax
callq 0x2030
movl (%r13), %esi
incl %esi
pushq $0x32
popq %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4dbd