// File: /workspace/github_c_makefile_star2_O0/beejjorgensen[P]conquest/conq2.c
// Function: get_tf
void get_tf(tteam tm, int *I0, int starnum)
{
    int i;
    i = 1;
    while ((tf[tm][i].dest != 0) && (i < 27))
        i = i + 1;
    if (i == 27)
        i = 0;
    else {
        tf[tm][i].s = 0;
        tf[tm][i].t = 0;
        tf[tm][i].c = 0;
        tf[tm][i].b = 0;
        tf[tm][i].eta = 0;
        tf[tm][i].x = stars[starnum].x;
        tf[tm][i].y = stars[starnum].y;
        tf[tm][i].xf = tf[tm][i].x;
        tf[tm][i].yf = tf[tm][i].y;
        tf[tm][i].dest = starnum;
        tf[tm][i].origeta = 0;
        tf[tm][i].blasting = false;
    };
    *I0 = i;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl $0x1, -0x18(%rbp)
movslq -0x4(%rbp), %rax
leaq 0x10b00(%rip), %rcx     # 0x139a0
imulq $0x57c, %rax, %rax      # imm = 0x57C
addq %rax, %rcx
movslq -0x18(%rbp), %rax
imulq $0x34, %rax, %rax
addq %rax, %rcx
xorl %eax, %eax
cmpl $0x0, 0x20(%rcx)
movb %al, -0x19(%rbp)
je 0x2eca
cmpl $0x1b, -0x18(%rbp)
setl %al
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %al
testb $0x1, %al
jne 0x2ed3
jmp 0x2ede
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x2e95
cmpl $0x1b, -0x18(%rbp)
jne 0x2ef0
movl $0x0, -0x18(%rbp)
jmp 0x3120
movslq -0x4(%rbp), %rcx
leaq 0x10aa5(%rip), %rax     # 0x139a0
imulq $0x57c, %rcx, %rcx      # imm = 0x57C
addq %rcx, %rax
movslq -0x18(%rbp), %rcx
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x10(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x10a7e(%rip), %rax     # 0x139a0
imulq $0x57c, %rcx, %rcx      # imm = 0x57C
addq %rcx, %rax
movslq -0x18(%rbp), %rcx
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x14(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x10a57(%rip), %rax     # 0x139a0
imulq $0x57c, %rcx, %rcx      # imm = 0x57C
addq %rcx, %rax
movslq -0x18(%rbp), %rcx
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x18(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x10a30(%rip), %rax     # 0x139a0
imulq $0x57c, %rcx, %rcx      # imm = 0x57C
addq %rcx, %rax
movslq -0x18(%rbp), %rcx
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x1c(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x10a09(%rip), %rax     # 0x139a0
imulq $0x57c, %rcx, %rcx      # imm = 0x57C
addq %rcx, %rax
movslq -0x18(%rbp), %rcx
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x24(%rax)
movslq -0x14(%rbp), %rcx
leaq 0x114e2(%rip), %rax     # 0x144a0
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %ecx
movslq -0x4(%rbp), %rdx
leaq 0x109ce(%rip), %rax     # 0x139a0
imulq $0x57c, %rdx, %rdx      # imm = 0x57C
addq %rdx, %rax
movslq -0x18(%rbp), %rdx
imulq $0x34, %rdx, %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movslq -0x14(%rbp), %rcx
leaq 0x114ac(%rip), %rax     # 0x144a0
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
movslq -0x4(%rbp), %rdx
leaq 0x10997(%rip), %rax     # 0x139a0
imulq $0x57c, %rdx, %rdx      # imm = 0x57C
addq %rdx, %rax
movslq -0x18(%rbp), %rdx
imulq $0x34, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x4(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x10974(%rip), %rax     # 0x139a0
imulq $0x57c, %rcx, %rcx      # imm = 0x57C
addq %rcx, %rax
movslq -0x18(%rbp), %rcx
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %ecx
movslq -0x4(%rbp), %rdx
leaq 0x10952(%rip), %rax     # 0x139a0
imulq $0x57c, %rdx, %rdx      # imm = 0x57C
addq %rdx, %rax
movslq -0x18(%rbp), %rdx
imulq $0x34, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x1092f(%rip), %rax     # 0x139a0
imulq $0x57c, %rcx, %rcx      # imm = 0x57C
addq %rcx, %rax
movslq -0x18(%rbp), %rcx
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %ecx
movslq -0x4(%rbp), %rdx
leaq 0x1090c(%rip), %rax     # 0x139a0
imulq $0x57c, %rdx, %rdx      # imm = 0x57C
addq %rdx, %rax
movslq -0x18(%rbp), %rdx
imulq $0x34, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0xc(%rax)
movl -0x14(%rbp), %ecx
movslq -0x4(%rbp), %rdx
leaq 0x108e6(%rip), %rax     # 0x139a0
imulq $0x57c, %rdx, %rdx      # imm = 0x57C
addq %rdx, %rax
movslq -0x18(%rbp), %rdx
imulq $0x34, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x20(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x108c3(%rip), %rax     # 0x139a0
imulq $0x57c, %rcx, %rcx      # imm = 0x57C
addq %rcx, %rax
movslq -0x18(%rbp), %rcx
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x28(%rax)
movslq -0x4(%rbp), %rcx
leaq 0x1089c(%rip), %rax     # 0x139a0
imulq $0x57c, %rcx, %rcx      # imm = 0x57C
addq %rcx, %rax
movslq -0x18(%rbp), %rcx
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x2c(%rax)
movl -0x18(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
popq %rbp
retq
nopl (%rax,%rax)