// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1
popq %rbp
movl %ebp, %edi
movl %ebx, %esi
callq 0x222c
movl %eax, 0x4(%rsp)
testl %eax, %eax
je 0x2c94
pushq $0x21
popq %rdi
pushq $0x14
popq %rsi
callq 0x4dbd
leal 0x40(%rbx), %esi
leaq 0x6686(%rip), %rdi      # 0x91ce
xorl %eax, %eax
callq 0x2030
pushq $0x12
popq %r15
pushq $0x3
popq %r13
leaq 0x3(%rsp), %r14
leaq 0x6615(%rip), %r12      # 0x9178
movl %ebp, %eax
testl %eax, %eax
je 0x2c4d
pushq $0x32
popq %rdi
movl %ebp, %esi
callq 0x4dbd
movl %ebx, %edi
callq 0x72df
callq 0x6eef
movl %ebp, %edi
movl %r15d, %esi
callq 0x4dbd
leaq 0x664c(%rip), %rdi      # 0x91e0
xorl %eax, %eax
callq 0x2030
movl %r13d, %edi
movl %r15d, %esi
callq 0x4dbd
movq %r14, %rdi
callq 0x6d93
movzbl 0x3(%rsp), %eax
leal -0x42(%rax), %ecx
cmpl $0x12, %ecx
ja 0x2bd9
movslq (%r12,%rcx,4), %rax
addq %r12, %rax
jmpq *%rax
leaq 0x6634(%rip), %rdi      # 0x91ff
xorl %eax, %eax
callq 0x2030
andl $0x0, 0x4(%rsp)
jmp 0x2c44
cmpl $0x20, %eax
jne 0x2bec
movl %ebx, %edi
leaq 0x4(%rsp), %rsi
callq 0x3c29
jmp 0x2c44
callq 0x6f4d
callq 0x6fb8
leaq 0x6612(%rip), %rdi      # 0x920f
xorl %eax, %eax
callq 0x2030
jmp 0x2c44
callq 0x7c42
jmp 0x2c44
callq 0x418b
jmp 0x2c44
callq 0x3eb4
jmp 0x2c44
callq 0x5edc
jmp 0x2c44
movl %r13d, %edi
callq 0x706a
callq 0x71b1
jmp 0x2c44
callq 0x7920
jmp 0x2c44
callq 0x7716
jmp 0x2c44
callq 0x40b4
movl 0x4(%rsp), %eax
jmp 0x2b65
movslq %ebx, %rax
imulq $0x18, %rax, %rax
leaq 0xd835(%rip), %rcx      # 0x10490
addq %rcx, %rax
addq $0x8, %rax
movq (%rax), %rax
testq %rax, %rax
je 0x2c74
andl $0x0, 0x24(%rax)
addq $0x38, %rax
jmp 0x2c62
pushq $0x1
popq %rdi
pushq $0x18
popq %rsi
callq 0x4dbd
leaq 0x659b(%rip), %rdi      # 0x9221
xorl %eax, %eax
callq 0x2030
movl %ebx, %edi
callq 0x4248
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop