// File: /workspace/github_c_makefile_star2_O3/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      # 0x9508
xorl %eax, %eax
callq 0x2030
movl $0x32, %edi
movl $0x1, %esi
callq 0x4f79
movl $0x1, %r13d
leaq 0xb837(%rip), %rbp      # 0xf8b4
leaq 0xb82c(%rip), %r14      # 0xf8b0
leaq 0x5486(%rip), %rbx      # 0x9511
leaq (,%r13,2), %rax
addq %r13, %rax
leaq 0xb3f3(%rip), %rcx      # 0xf490
movq 0x8(%rcx,%rax,8), %r15
testq %r15, %r15
je 0x421c
movl %r13d, %r12d
orl $0x40, %r12d
cmpl $0x1, 0xc(%r15)
jne 0x420f
movq 0x8f24(%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 0x40e8
andb %cl, %al
je 0x4101
callq 0x75db
callq 0x72c9
movl $0x32, %edi
movl $0x1, %esi
callq 0x4f79
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 0x4f79
addl $-0x5, (%r14)
cmpl $0x0, 0x8(%r15)
je 0x414a
movl 0xc(%r15), %eax
testl %eax, %eax
je 0x4193
cmpl $0x1, %eax
je 0x415d
cmpl $0x2, %eax
jne 0x4202
leaq 0x53f4(%rip), %rdi      # 0x953c
jmp 0x4151
leaq 0x53e0(%rip), %rdi      # 0x9531
xorl %eax, %eax
callq 0x2030
jmp 0x4202
movl 0x10(%r15), %esi
movl 0x14(%r15), %edx
leaq 0x53db(%rip), %rdi      # 0x9547
xorl %eax, %eax
callq 0x2030
cmpl $0x0, 0x20(%r15)
leaq 0x53d3(%rip), %rdi      # 0x9552
leaq 0x549f(%rip), %rax      # 0x9625
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x2030
jmp 0x41c6
leaq 0x53c9(%rip), %rdi      # 0x9563
xorl %eax, %eax
callq 0x2030
cmpl $0x0, 0x20(%r15)
leaq 0x53bb(%rip), %rdi      # 0x9568
leaq 0x5471(%rip), %rax      # 0x9625
cmoveq %rax, %rdi
xorl %eax, %eax
callq 0x2030
cmpl $0x0, 0x24(%r15)
je 0x4202
movl 0x18(%r15), %esi
testl %esi, %esi
je 0x41de
leaq 0x5381(%rip), %rdi      # 0x9556
xorl %eax, %eax
callq 0x2030
jmp 0x41ec
leaq 0x543f(%rip), %rdi      # 0x9624
xorl %eax, %eax
callq 0x2030
movl 0x1c(%r15), %esi
testl %esi, %esi
je 0x4202
leaq 0x5361(%rip), %rdi      # 0x955c
xorl %eax, %eax
callq 0x2030
movl (%r14), %edi
movl (%rbp), %esi
incl %esi
callq 0x4f79
movq 0x38(%r15), %r15
testq %r15, %r15
jne 0x40b2
incq %r13
cmpq $0x16, %r13
jne 0x408b
callq 0x72c9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7322