// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x4(%rbp)
movl -0x4(%rbp), %esi
movl $0x1, %edi
callq 0x2250
movl %eax, -0x8(%rbp)
cmpl $0x0, -0x8(%rbp)
je 0x34e1
movl $0x21, %edi
movl $0x14, %esi
callq 0x69f0
movl -0x4(%rbp), %esi
addl $0x41, %esi
subl $0x1, %esi
leaq 0xaed4(%rip), %rdi      # 0xe248
movb $0x0, %al
callq 0x2030
cmpl $0x0, -0x8(%rbp)
je 0x3482
movl $0x32, %edi
movl $0x1, %esi
movl %esi, -0x28(%rbp)
callq 0x69f0
movl -0x4(%rbp), %edi
callq 0xaeb0
callq 0xa6a0
movl -0x28(%rbp), %edi
movl $0x12, %esi
movl %esi, -0x24(%rbp)
callq 0x69f0
leaq 0xae9f(%rip), %rdi      # 0xe25a
xorl %eax, %eax
callq 0x2030
movl -0x24(%rbp), %esi
movl $0x3, %edi
callq 0x69f0
leaq -0x9(%rbp), %rdi
callq 0xa480
movsbl -0x9(%rbp), %eax
addl $-0x20, %eax
movl %eax, %ecx
movq %rcx, -0x20(%rbp)
subl $0x34, %eax
ja 0x3465
movq -0x20(%rbp), %rax
leaq 0xad7f(%rip), %rcx      # 0xe174
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
callq 0x5470
jmp 0x347d
callq 0x8b40
jmp 0x347d
movl $0x3, %edi
callq 0xa970
callq 0xac60
jmp 0x347d
callq 0xb9c0
jmp 0x347d
callq 0xc110
jmp 0x347d
callq 0x5170
jmp 0x347d
callq 0xb5d0
jmp 0x347d
callq 0x5560
jmp 0x347d
movl -0x4(%rbp), %edi
leaq -0x8(%rbp), %rsi
callq 0x4d70
jmp 0x347d
leaq 0xae24(%rip), %rdi      # 0xe279
movb $0x0, %al
callq 0x2030
movl $0x0, -0x8(%rbp)
jmp 0x347d
callq 0xa720
callq 0xa7c0
leaq 0xae13(%rip), %rdi      # 0xe289
movb $0x0, %al
callq 0x2030
jmp 0x337b
movslq -0x4(%rbp), %rcx
leaq 0x11013(%rip), %rax     # 0x144a0
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x34bc
movq -0x18(%rbp), %rax
movl $0x0, 0x24(%rax)
movq -0x18(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x349c
movl $0x1, %edi
movl $0x18, %esi
callq 0x69f0
leaq 0xadc9(%rip), %rdi      # 0xe29b
movb $0x0, %al
callq 0x2030
movl -0x4(%rbp), %edi
callq 0x5620
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)