// File: /workspace/github_c_makefile_star2_O1/beejjorgensen[P]conquest/conqd3.c
// Function: print_col
void print_col(void)
{
    int i;
    boolean see;
    tplanet *pplanet;
    printw("olonies:");
    point(50, 1);
    for (i = 1; i <= nstars; i++) {
        pplanet = stars[i].first_planet;
        while (pplanet != nil) {
            if ((pplanet->team) == player) {
                addch(i + 'A' - 1);
                see = true;
                if (((y_cursor > 21) && (x_cursor >= 50)) ||
                    (y_cursor > 24)) {
                    pause();
                    clear_field();
                    point(50, 1);
                };
                printw("%d:%2d                         ", pplanet->number,
                       pplanet->psee_capacity);
                point(x_cursor + 5, y_cursor);
                x_cursor = x_cursor - 5;
                if (pplanet->psee_capacity == 0)
                    printw(" Decimated");
                else if ((pplanet->team == none) && see)
                    printw(" No colony");
                else if (pplanet->team == player) {
                    printw("(%2d,/%3d)", pplanet->inhabitants,
                           pplanet->iu);
                    if (pplanet->conquered)
                        printw("Con");
                    else
                        printw("   ");
                    if (pplanet->mb != 0)
                        printw("%2dmb", pplanet->mb);
                    else
                        printw("    ");
                    if (pplanet->amb != 0)
                        printw("%2damb", pplanet->amb);
                } else if ((pplanet->team == ENEMY) && see) {
                    printw("*EN*");
                    if (see && pplanet->conquered) {
                        printw("Conquered");
                    } else
                        printw("   ");
                    if (pplanet->under_attack) {
                        if (pplanet->mb != 0)
                            printw("%2dmb", pplanet->mb);
                        else
                            printw("    ");
                        if (pplanet->amb != 0)
                            printw("%2damb", pplanet->amb);
                    };
                };
                point(x_cursor, y_cursor + 1);

            };
            pplanet = pplanet->next;
        };
    };
    clear_field();
    cle3r_left();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x54ae(%rip), %rdi      # 0x94c0
xorl %eax, %eax
callq 0x2030
movl $0x32, %edi
movl $0x1, %esi
callq 0x4f69
movl $0x1, %r13d
leaq 0xb88f(%rip), %rbp      # 0xf8c4
leaq 0xb884(%rip), %r14      # 0xf8c0
leaq 0x5486(%rip), %rbx      # 0x94c9
leaq (,%r13,2), %rax
addq %r13, %rax
leaq 0xb44b(%rip), %rcx      # 0xf4a0
movq 0x8(%rcx,%rax,8), %r15
testq %r15, %r15
je 0x41d4
movl %r13d, %r12d
orl $0x40, %r12d
cmpl $0x1, 0xc(%r15)
jne 0x41c7
movq 0x8f6c(%rip), %rax      # 0xcfe8
movq (%rax), %rdi
movl %r12d, %esi
callq 0x20a0
movl (%rbp), %edx
cmpl $0x16, %edx
setge %al
cmpl $0x32, (%r14)
setge %cl
cmpl $0x18, %edx
jg 0x40a0
andb %cl, %al
je 0x40b9
callq 0x763e
callq 0x731e
movl $0x32, %edi
movl $0x1, %esi
callq 0x4f69
movl (%r15), %esi
movl 0x8(%r15), %edx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2030
movl (%r14), %edi
addl $0x5, %edi
movl (%rbp), %esi
callq 0x4f69
addl $-0x5, (%r14)
cmpl $0x0, 0x8(%r15)
je 0x4102
movl 0xc(%r15), %eax
testl %eax, %eax
je 0x414b
cmpl $0x1, %eax
je 0x4115
cmpl $0x2, %eax
jne 0x41ba
leaq 0x53f4(%rip), %rdi      # 0x94f4
jmp 0x4109
leaq 0x53e0(%rip), %rdi      # 0x94e9
xorl %eax, %eax
callq 0x2030
jmp 0x41ba
movl 0x10(%r15), %esi
movl 0x14(%r15), %edx
leaq 0x53db(%rip), %rdi      # 0x94ff
xorl %eax, %eax
callq 0x2030
cmpl $0x0, 0x20(%r15)
leaq 0x53d3(%rip), %rdi      # 0x950a
leaq 0x5497(%rip), %rax      # 0x95d5
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x2030
jmp 0x417e
leaq 0x53c9(%rip), %rdi      # 0x951b
xorl %eax, %eax
callq 0x2030
cmpl $0x0, 0x20(%r15)
leaq 0x53bb(%rip), %rdi      # 0x9520
leaq 0x5469(%rip), %rax      # 0x95d5
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x2030
cmpl $0x0, 0x24(%r15)
je 0x41ba
movl 0x18(%r15), %esi
testl %esi, %esi
je 0x4196
leaq 0x5381(%rip), %rdi      # 0x950e
xorl %eax, %eax
callq 0x2030
jmp 0x41a4
leaq 0x5437(%rip), %rdi      # 0x95d4
xorl %eax, %eax
callq 0x2030
movl 0x1c(%r15), %esi
testl %esi, %esi
je 0x41ba
leaq 0x5361(%rip), %rdi      # 0x9514
xorl %eax, %eax
callq 0x2030
movl (%r14), %edi
movl (%rbp), %esi
incl %esi
callq 0x4f69
movq 0x38(%r15), %r15
testq %r15, %r15
jne 0x406a
incq %r13
cmpq $0x16, %r13
jne 0x4043
callq 0x731e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7377