// File: /workspace/github_c_makefile_star2_O3/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 0x223c
movl %eax, 0x4(%rsp)
testl %eax, %eax
je 0x2dd1
movl $0x21, %edi
movl $0x14, %esi
callq 0x4f79
leal 0x40(%rbx), %esi
leaq 0x6588(%rip), %rdi      # 0x9216
xorl %eax, %eax
callq 0x2030
leaq 0x658c(%rip), %r14      # 0x9228
leaq 0x3(%rsp), %r15
leaq 0x4(%rsp), %r12
leaq 0x65aa(%rip), %r13      # 0x9257
leaq 0x650c(%rip), %rbp      # 0x91c0
movl $0x32, %edi
movl $0x1, %esi
callq 0x4f79
movl %ebx, %edi
callq 0x7730
callq 0x72c9
movl $0x1, %edi
movl $0x12, %esi
callq 0x4f79
movq %r14, %rdi
xorl %eax, %eax
callq 0x2030
movl $0x3, %edi
movl $0x12, %esi
callq 0x4f79
movq %r15, %rdi
callq 0x7153
movzbl 0x3(%rsp), %eax
leal -0x42(%rax), %ecx
cmpl $0x12, %ecx
ja 0x2d1d
movslq (%rbp,%rcx,4), %rax
addq %rbp, %rax
jmpq *%rax
callq 0x4048
jmp 0x2d7d
cmpl $0x20, %eax
jne 0x2d2e
movl %ebx, %edi
movq %r12, %rsi
callq 0x3dcb
jmp 0x2d7d
callq 0x7322
callq 0x738e
movq %r13, %rdi
xorl %eax, %eax
callq 0x2030
jmp 0x2d7d
callq 0x7ba5
jmp 0x2d7d
callq 0x4241
jmp 0x2d7d
callq 0x4329
jmp 0x2d7d
callq 0x6228
jmp 0x2d7d
movl $0x3, %edi
callq 0x747e
callq 0x75db
jmp 0x2d7d
callq 0x8132
jmp 0x2d7d
callq 0x7e00
cmpl $0x0, 0x4(%rsp)
jne 0x2cb4
movslq %ebx, %rax
leaq (%rax,%rax,2), %rax
leaq 0xc6fa(%rip), %rcx      # 0xf490
movq 0x8(%rcx,%rax,8), %rax
testq %rax, %rax
je 0x2dad
movl $0x0, 0x24(%rax)
movq 0x38(%rax), %rax
jmp 0x2d9b
movl $0x1, %edi
movl $0x18, %esi
callq 0x4f79
leaq 0x64a6(%rip), %rdi      # 0x9269
xorl %eax, %eax
callq 0x2030
movl %ebx, %edi
callq 0x43f0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6460(%rip), %rdi      # 0x9247
xorl %eax, %eax
callq 0x2030
movl $0x0, 0x4(%rsp)
jmp 0x2d88