// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
cmpl $0x0, -0x4(%rbp)
je 0xb3e4
cmpl $0x15, -0x4(%rbp)
jg 0xb3e4
leaq 0x99ee(%rip), %rax      # 0x148c4
movl (%rax), %eax
addl $0x3, %eax
movslq -0x4(%rbp), %rdx
leaq 0x7d4a(%rip), %rcx      # 0x12c30
addl 0x4(%rcx,%rdx,8), %eax
movslq -0x4(%rbp), %rdx
leaq 0x7d3b(%rip), %rcx      # 0x12c30
addl (%rcx,%rdx,8), %eax
cmpl $0x13, %eax
jle 0xaf16
callq 0xa6a0
callq 0xac60
movl $0x32, %edi
movl $0x1, %esi
callq 0x69f0
movslq -0x4(%rbp), %rcx
leaq 0x957f(%rip), %rax      # 0x144a0
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
cmpl $0x1, 0x14(%rax)
jne 0xb3e2
movl $0x0, -0x8(%rbp)
movl -0x4(%rbp), %esi
addl $0x41, %esi
subl $0x1, %esi
leaq 0x40af(%rip), %rdi      # 0xeff8
movb $0x0, %al
callq 0x2030
leaq 0x996d(%rip), %rax      # 0x148c4
movl (%rax), %esi
addl $0x1, %esi
movl $0x32, %edi
callq 0x69f0
movslq -0x4(%rbp), %rcx
leaq 0x7cbf(%rip), %rax      # 0x12c30
cmpl $0x0, 0x4(%rax,%rcx,8)
je 0xb042
movl $0x1, -0x8(%rbp)
movl $0x1, -0xc(%rbp)
cmpl $0x1a, -0xc(%rbp)
jg 0xb040
movslq -0xc(%rbp), %rcx
leaq 0x8a01(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl 0x20(%rax), %eax
cmpl -0x4(%rbp), %eax
jne 0xb030
movslq -0xc(%rbp), %rcx
leaq 0x89e1(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x24(%rax)
jne 0xb030
movl -0xc(%rbp), %esi
addl $0x61, %esi
subl $0x1, %esi
leaq 0x4036(%rip), %rdi      # 0xf018
movb $0x0, %al
callq 0x2030
leaq 0x98d4(%rip), %rax      # 0x148c4
movl (%rax), %esi
movl $0x37, %edi
callq 0x69f0
movslq -0xc(%rbp), %rax
leaq 0x8999(%rip), %rdi      # 0x139a0
addq $0x57c, %rdi            # imm = 0x57C
imulq $0x34, %rax, %rax
addq %rax, %rdi
callq 0x2b00
leaq 0x98a3(%rip), %rax      # 0x148c4
movl (%rax), %esi
addl $0x1, %esi
movl $0x32, %edi
callq 0x69f0
jmp 0xb032
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xaf8a
jmp 0xb042
cmpl $0x0, -0x8(%rbp)
jne 0xb063
movslq -0x4(%rbp), %rcx
leaq 0x7c8d(%rip), %rax      # 0x12ce0
cmpl $0x0, 0x4(%rax,%rcx,8)
setne %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x8(%rbp)
cmpl $0x0, -0x8(%rbp)
je 0xb126
movslq -0x4(%rbp), %rcx
leaq 0x7bb8(%rip), %rax      # 0x12c30
cmpl $0x0, (%rax,%rcx,8)
je 0xb126
movl $0x1, -0xc(%rbp)
movslq -0xc(%rbp), %rax
leaq 0x890c(%rip), %rcx      # 0x139a0
imulq $0x34, %rax, %rax
addq %rax, %rcx
movb $0x1, %al
cmpl $0x0, 0x24(%rcx)
movb %al, -0x19(%rbp)
jne 0xb0c4
movslq -0xc(%rbp), %rcx
leaq 0x88ef(%rip), %rax      # 0x139a0
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl 0x20(%rax), %eax
cmpl -0x4(%rbp), %eax
setne %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
testb $0x1, %al
jne 0xb0cd
jmp 0xb0d8
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xb089
leaq 0x3f59(%rip), %rdi      # 0xf038
movb $0x0, %al
callq 0x2030
leaq 0x97d7(%rip), %rax      # 0x148c4
movl (%rax), %esi
movl $0x37, %edi
callq 0x69f0
movslq -0xc(%rbp), %rax
leaq 0x889c(%rip), %rdi      # 0x139a0
imulq $0x34, %rax, %rax
addq %rax, %rdi
callq 0x2b00
leaq 0x97ad(%rip), %rax      # 0x148c4
movl (%rax), %esi
addl $0x1, %esi
movl $0x32, %edi
callq 0x69f0
movslq -0x4(%rbp), %rcx
leaq 0x936f(%rip), %rax      # 0x144a0
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0xb170
leaq 0x3f09(%rip), %rdi      # 0xf057
movb $0x0, %al
callq 0x2030
leaq 0x9768(%rip), %rax      # 0x148c4
movl (%rax), %esi
addl $0x1, %esi
movl $0x32, %edi
callq 0x69f0
jmp 0xb3e0
jmp 0xb172
cmpq $0x0, -0x18(%rbp)
je 0xb3de
movq 0x6e6c(%rip), %rax      # 0x11ff0
movq (%rax), %rdi
movl $0x20, %esi
callq 0x20a0
leaq 0x972c(%rip), %rax      # 0x148c4
cmpl $0x15, (%rax)
jle 0xb1a9
leaq 0x971c(%rip), %rax      # 0x148c0
cmpl $0x32, (%rax)
jge 0xb1b5
leaq 0x9714(%rip), %rax      # 0x148c4
cmpl $0x18, (%rax)
jle 0xb1ce
callq 0xac60
callq 0xa6a0
movl $0x32, %edi
movl $0x1, %esi
callq 0x69f0
movq -0x18(%rbp), %rax
movl (%rax), %esi
movq -0x18(%rbp), %rax
movl 0x8(%rax), %edx
leaq 0x33e7(%rip), %rdi      # 0xe5c9
movb $0x0, %al
callq 0x2030
leaq 0x96d0(%rip), %rax      # 0x148c0
movl (%rax), %edi
addl $0x5, %edi
leaq 0x96c8(%rip), %rax      # 0x148c4
movl (%rax), %esi
callq 0x69f0
leaq 0x96b6(%rip), %rax      # 0x148c0
movl (%rax), %ecx
subl $0x5, %ecx
leaq 0x96aa(%rip), %rax      # 0x148c0
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jne 0xb235
leaq 0x33c0(%rip), %rdi      # 0xe5e9
movb $0x0, %al
callq 0x2030
jmp 0xb3b3
movq -0x18(%rbp), %rax
cmpl $0x2, 0xc(%rax)
jne 0xb258
cmpl $0x0, -0x8(%rbp)
je 0xb258
leaq 0x33a8(%rip), %rdi      # 0xe5f4
movb $0x0, %al
callq 0x2030
jmp 0xb3b1
movq -0x18(%rbp), %rax
cmpl $0x1, 0xc(%rax)
jne 0xb2fd
movq -0x18(%rbp), %rax
movl 0x10(%rax), %esi
movq -0x18(%rbp), %rax
movl 0x14(%rax), %edx
leaq 0x3384(%rip), %rdi      # 0xe5ff
movb $0x0, %al
callq 0x2030
movq -0x18(%rbp), %rax
cmpl $0x0, 0x20(%rax)
je 0xb29c
leaq 0x3377(%rip), %rdi      # 0xe60a
movb $0x0, %al
callq 0x2030
jmp 0xb2aa
leaq 0x349e(%rip), %rdi      # 0xe741
movb $0x0, %al
callq 0x2030
movq -0x18(%rbp), %rax
cmpl $0x0, 0x18(%rax)
je 0xb2cb
movq -0x18(%rbp), %rax
movl 0x18(%rax), %esi
leaq 0x334c(%rip), %rdi      # 0xe60e
movb $0x0, %al
callq 0x2030
jmp 0xb2d9
leaq 0x346e(%rip), %rdi      # 0xe740
movb $0x0, %al
callq 0x2030
movq -0x18(%rbp), %rax
cmpl $0x0, 0x1c(%rax)
je 0xb2f8
movq -0x18(%rbp), %rax
movl 0x1c(%rax), %esi
leaq 0x3323(%rip), %rdi      # 0xe614
movb $0x0, %al
callq 0x2030
jmp 0xb3af
movq -0x18(%rbp), %rax
cmpl $0x0, 0xc(%rax)
jne 0xb3ad
cmpl $0x0, -0x8(%rbp)
je 0xb3ad
leaq 0x32ff(%rip), %rdi      # 0xe61b
movb $0x0, %al
callq 0x2030
cmpl $0x0, -0x8(%rbp)
je 0xb343
movq -0x18(%rbp), %rax
cmpl $0x0, 0x20(%rax)
je 0xb343
leaq 0x32e6(%rip), %rdi      # 0xe620
movb $0x0, %al
callq 0x2030
jmp 0xb351
leaq 0x33f7(%rip), %rdi      # 0xe741
movb $0x0, %al
callq 0x2030
movq -0x18(%rbp), %rax
cmpl $0x0, 0x24(%rax)
je 0xb3ab
movq -0x18(%rbp), %rax
cmpl $0x0, 0x18(%rax)
je 0xb37c
movq -0x18(%rbp), %rax
movl 0x18(%rax), %esi
leaq 0x329b(%rip), %rdi      # 0xe60e
movb $0x0, %al
callq 0x2030
jmp 0xb38a
leaq 0x33bd(%rip), %rdi      # 0xe740
movb $0x0, %al
callq 0x2030
movq -0x18(%rbp), %rax
cmpl $0x0, 0x1c(%rax)
je 0xb3a9
movq -0x18(%rbp), %rax
movl 0x1c(%rax), %esi
leaq 0x3272(%rip), %rdi      # 0xe614
movb $0x0, %al
callq 0x2030
jmp 0xb3ab
jmp 0xb3ad
jmp 0xb3af
jmp 0xb3b1
jmp 0xb3b3
leaq 0x9506(%rip), %rax      # 0x148c0
movl (%rax), %edi
leaq 0x9501(%rip), %rax      # 0x148c4
movl (%rax), %esi
addl $0x1, %esi
callq 0x69f0
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0xb172
jmp 0xb3e0
jmp 0xb3e2
jmp 0xb3e4
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)