// File: /workspace/github_c_makefile_star2_O0/beejjorgensen[P]conquest/conqmc.c
// Function: send_scouts
void send_scouts(float slist[nstars + 1], struct sttf *task)
{
    int dest, new_tf, j, doind;
    int doable[nstars + 1];
    if (task->s > 0) {
        doind = 0;
        for (j = 1; j <= nstars; j++) {
            if ((!stars[j].visit[ENEMY]) && (slist[j] > 0)) {
                doind = doind + 1;
                doable[doind] = j;
            };
        };
        while ((doind > 0) && (task->s > 0)) {
            get_tf(ENEMY, &new_tf, task->dest);
            tf[ENEMY][new_tf].s = 1;
            dest = rnd(doind);
            tf[ENEMY][new_tf].dest = doable[dest];
            tf[ENEMY][new_tf].eta =
                (int) ((slist[doable[dest]] - 0.01) / vel[ENEMY])
                + 1;
            depart(task->dest);
            doable[dest] = doable[doind];
            doind = doind - 1;
            task->s = task->s - 1;
        };
        while (task->s > 0) {
            do {
                dest = rnd(nstars);
            }
            while (slist[dest] <= 0);
            get_tf(ENEMY, &new_tf, task->dest);
            tf[ENEMY][new_tf].s = 1;
            tf[ENEMY][new_tf].dest = dest;
            tf[ENEMY][new_tf].eta =
                (int) ((slist[dest] - 0.01) / vel[ENEMY]) + 1;
            depart(task->dest);
            task->s = task->s - 1;
        };
    };
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x10(%rax)
jle 0x730d
movl $0x0, -0x20(%rbp)
movl $0x1, -0x1c(%rbp)
cmpl $0x15, -0x1c(%rbp)
jg 0x7123
movslq -0x1c(%rbp), %rcx
leaq 0xd3c0(%rip), %rax      # 0x144a0
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x10(%rax)
jne 0x7116
movq -0x8(%rbp), %rax
movslq -0x1c(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jbe 0x7116
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
movl -0x1c(%rbp), %ecx
movslq -0x20(%rbp), %rax
movl %ecx, -0x80(%rbp,%rax,4)
jmp 0x7118
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x70cf
jmp 0x7125
xorl %eax, %eax
cmpl $0x0, -0x20(%rbp)
movb %al, -0x81(%rbp)
jle 0x7144
movq -0x10(%rbp), %rax
cmpl $0x0, 0x10(%rax)
setg %al
movb %al, -0x81(%rbp)
movb -0x81(%rbp), %al
testb $0x1, %al
jne 0x7153
jmp 0x722e
movq -0x10(%rbp), %rax
movl 0x20(%rax), %edx
xorl %edi, %edi
leaq -0x18(%rbp), %rsi
callq 0x2e80
movslq -0x18(%rbp), %rcx
leaq 0xc830(%rip), %rax      # 0x139a0
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0x10(%rax)
movl -0x20(%rbp), %edi
callq 0x6a70
movl %eax, -0x14(%rbp)
movslq -0x14(%rbp), %rax
movl -0x80(%rbp,%rax,4), %ecx
movslq -0x18(%rbp), %rdx
leaq 0xc804(%rip), %rax      # 0x139a0
imulq $0x34, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x20(%rax)
movq -0x8(%rbp), %rax
movslq -0x14(%rbp), %rcx
movslq -0x80(%rbp,%rcx,4), %rcx
movss (%rax,%rcx,4), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x711c(%rip), %xmm1     # 0xe2e0
subsd %xmm1, %xmm0
leaq 0xd4e9(%rip), %rax      # 0x146b8
cvtsi2sdl (%rax), %xmm1
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
addl $0x1, %ecx
movslq -0x18(%rbp), %rdx
leaq 0xc7b7(%rip), %rax      # 0x139a0
imulq $0x34, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x24(%rax)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %edi
callq 0x6b40
movslq -0x20(%rbp), %rax
movl -0x80(%rbp,%rax,4), %ecx
movslq -0x14(%rbp), %rax
movl %ecx, -0x80(%rbp,%rax,4)
movl -0x20(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movl 0x10(%rax), %ecx
subl $0x1, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x10(%rax)
jmp 0x7125
jmp 0x7230
movq -0x10(%rbp), %rax
cmpl $0x0, 0x10(%rax)
jle 0x730b
jmp 0x7240
movl $0x15, %edi
callq 0x6a70
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movslq -0x14(%rbp), %rcx
xorps %xmm0, %xmm0
ucomiss (%rax,%rcx,4), %xmm0
jae 0x7240
movq -0x10(%rbp), %rax
movl 0x20(%rax), %edx
xorl %edi, %edi
leaq -0x18(%rbp), %rsi
callq 0x2e80
movslq -0x18(%rbp), %rcx
leaq 0xc725(%rip), %rax      # 0x139a0
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl $0x1, 0x10(%rax)
movl -0x14(%rbp), %ecx
movslq -0x18(%rbp), %rdx
leaq 0xc709(%rip), %rax      # 0x139a0
imulq $0x34, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x20(%rax)
movq -0x8(%rbp), %rax
movslq -0x14(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x7026(%rip), %xmm1     # 0xe2e0
subsd %xmm1, %xmm0
leaq 0xd3f3(%rip), %rax      # 0x146b8
cvtsi2sdl (%rax), %xmm1
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
addl $0x1, %ecx
movslq -0x18(%rbp), %rdx
leaq 0xc6c1(%rip), %rax      # 0x139a0
imulq $0x34, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x24(%rax)
movq -0x10(%rbp), %rax
movl 0x20(%rax), %edi
callq 0x6b40
movq -0x10(%rbp), %rax
movl 0x10(%rax), %ecx
subl $0x1, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x10(%rax)
jmp 0x7230
jmp 0x730d
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)