// File: /workspace/github_c_makefile_star2_O1/beejjorgensen[P]conquest/conq3.c
// Function: pl2yerattack
void pl2yerattack(int starnum)
{
    boolean battle;
    char command;
    struct stplanet *pplanet;
    battle = any_bc(player, starnum);
    if ((battle)) {
        point(33, 20);
        printw("Attack at star %c", starnum + 'A' - 1);
        while (battle) {
            point(50, 1);
            pr5nt_star(starnum);
            clear_field();
            point(1, 18);
            printw("P?                            ");
            point(3, 18);
            get_char(&command);
            switch (command) {
            case 'S':
                starsum();
                break;
            case 'M':
                printmap();
                break;
            case 'H':
                help(3);
                pause();
                break;
            case 'N':
                make_tf();
                break;
            case 'J':
                join_tf();
                break;
            case 'C':
                print_col();
                break;
            case 'R':
                ressum();
                break;
            case 'T':
                tfsum();
                break;
            case 'G':
            case ' ':
                play_salvo(starnum, &battle);
                break;
            case 'B':
                printw("reak off attack");
                battle = false;
                break;
            default:
                cle3r_left();
                error_message();
                printw(" !Illegal command");
                break;
            };                  /*switch ( */
        };
        pplanet = stars[starnum].first_planet;
        while (pplanet != nil) {
            pplanet->under_attack = false;
            pplanet = pplanet->next;
        };
        point(1, 24);
        printw("Planet attack concluded       ");
        revolt(starnum);
    };

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
movl $0x1, %edi
movl %ebx, %esi
callq 0x224c
movl %eax, 0x4(%rsp)
testl %eax, %eax
je 0x2d54
movl $0x21, %edi
movl $0x14, %esi
callq 0x4f69
leal 0x40(%rbx), %esi
leaq 0x65e0(%rip), %rdi      # 0x91ce
xorl %eax, %eax
callq 0x2030
cmpl $0x0, 0x4(%rsp)
je 0x2d0b
leaq 0x65d9(%rip), %r14      # 0x91e0
leaq 0x3(%rsp), %r15
leaq 0x4(%rsp), %r12
leaq 0x65f7(%rip), %r13      # 0x920f
leaq 0x6559(%rip), %rbp      # 0x9178
movl $0x32, %edi
movl $0x1, %esi
callq 0x4f69
movl %ebx, %edi
callq 0x7793
callq 0x731e
movl $0x1, %edi
movl $0x12, %esi
callq 0x4f69
movq %r14, %rdi
xorl %eax, %eax
callq 0x2030
movl $0x3, %edi
movl $0x12, %esi
callq 0x4f69
movq %r15, %rdi
callq 0x7187
movzbl 0x3(%rsp), %eax
leal -0x42(%rax), %ecx
cmpl $0x12, %ecx
ja 0x2c99
movslq (%rbp,%rcx,4), %rax
addq %rbp, %rax
jmpq *%rax
leaq 0x6577(%rip), %rdi      # 0x91ff
xorl %eax, %eax
callq 0x2030
movl $0x0, 0x4(%rsp)
jmp 0x2d00
cmpl $0x20, %eax
jne 0x2caa
movl %ebx, %edi
movq %r12, %rsi
callq 0x3d62
jmp 0x2d00
callq 0x7377
callq 0x73e3
movq %r13, %rdi
xorl %eax, %eax
callq 0x2030
jmp 0x2d00
callq 0x81c8
jmp 0x2d00
callq 0x42e1
jmp 0x2d00
callq 0x4000
jmp 0x2d00
callq 0x61f4
jmp 0x2d00
movl $0x3, %edi
callq 0x74d3
callq 0x763e
jmp 0x2d00
callq 0x7e60
jmp 0x2d00
callq 0x7c11
jmp 0x2d00
callq 0x41f9
cmpl $0x0, 0x4(%rsp)
jne 0x2c1f
movslq %ebx, %rax
leaq (%rax,%rax,2), %rax
leaq 0xc787(%rip), %rcx      # 0xf4a0
movq 0x8(%rcx,%rax,8), %rax
testq %rax, %rax
je 0x2d30
movl $0x0, 0x24(%rax)
movq 0x38(%rax), %rax
jmp 0x2d1e
movl $0x1, %edi
movl $0x18, %esi
callq 0x4f69
leaq 0x64db(%rip), %rdi      # 0x9221
xorl %eax, %eax
callq 0x2030
movl %ebx, %edi
callq 0x43a8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop