// File: /workspace/github_c_makefile_star2_O0/beejjorgensen[P]conquest/conq4.c
// Function: zero_tf
void zero_tf(tteam tm, int tf_num)
{
    int x, y, i;
    if (tf[tm][tf_num].dest != 0) {
        x = tf[tm][tf_num].x;
        y = tf[tm][tf_num].y;
        if ((tf[tm][tf_num].s + tf[tm][tf_num].t + tf[tm][tf_num].c +
             tf[tm][tf_num].b) == 0) {
            if (tf[tm][tf_num].eta == 0) {
                tf_stars[tf[tm][tf_num].dest][tm]--;
            };
            tf[tm][tf_num].dest = 0;
            if (tm == player) {
                board[x][y].tf = ' ';
                for (i = 1; i <= 26; i++) {
                    if ((tf[player][i].dest != 0) &&
                        (tf[player][i].x == x) && (tf[player][i].y == y)) {
                        if (board[x][y].tf == ' ')
                            board[x][y].tf = i + 'a' - 1;
                        else
                            board[x][y].tf = '*';
                    };
                }
                update_board(x, y, right);
            }

        };
    };
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movslq -0x4(%rbp), %rcx
leaq 0xf707(%rip), %rax      # 0x139a0
imulq $0x57c, %rcx, %rcx      # imm = 0x57C
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x20(%rax)
je 0x4569
movslq -0x4(%rbp), %rcx
leaq 0xf6dd(%rip), %rax      # 0x139a0
imulq $0x57c, %rcx, %rcx      # imm = 0x57C
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
movl %eax, -0xc(%rbp)
movslq -0x4(%rbp), %rcx
leaq 0xf6b8(%rip), %rax      # 0x139a0
imulq $0x57c, %rcx, %rcx      # imm = 0x57C
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movl %eax, -0x10(%rbp)
movslq -0x4(%rbp), %rcx
leaq 0xf692(%rip), %rax      # 0x139a0
imulq $0x57c, %rcx, %rcx      # imm = 0x57C
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl 0x10(%rax), %eax
movslq -0x4(%rbp), %rdx
leaq 0xf66f(%rip), %rcx      # 0x139a0
imulq $0x57c, %rdx, %rdx      # imm = 0x57C
addq %rdx, %rcx
movslq -0x8(%rbp), %rdx
imulq $0x34, %rdx, %rdx
addq %rdx, %rcx
addl 0x14(%rcx), %eax
movslq -0x4(%rbp), %rdx
leaq 0xf64c(%rip), %rcx      # 0x139a0
imulq $0x57c, %rdx, %rdx      # imm = 0x57C
addq %rdx, %rcx
movslq -0x8(%rbp), %rdx
imulq $0x34, %rdx, %rdx
addq %rdx, %rcx
addl 0x18(%rcx), %eax
movslq -0x4(%rbp), %rdx
leaq 0xf629(%rip), %rcx      # 0x139a0
imulq $0x57c, %rdx, %rdx      # imm = 0x57C
addq %rdx, %rcx
movslq -0x8(%rbp), %rdx
imulq $0x34, %rdx, %rdx
addq %rdx, %rcx
addl 0x1c(%rcx), %eax
cmpl $0x0, %eax
jne 0x4567
movslq -0x4(%rbp), %rcx
leaq 0xf5fd(%rip), %rax      # 0x139a0
imulq $0x57c, %rcx, %rcx      # imm = 0x57C
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x24(%rax)
jne 0x43fd
movslq -0x4(%rbp), %rcx
leaq 0xf5d7(%rip), %rax      # 0x139a0
imulq $0x57c, %rcx, %rcx      # imm = 0x57C
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movslq 0x20(%rax), %rcx
leaq 0xe847(%rip), %rax      # 0x12c30
shlq $0x3, %rcx
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
movl (%rax,%rcx,4), %edx
addl $-0x1, %edx
movl %edx, (%rax,%rcx,4)
movslq -0x4(%rbp), %rcx
leaq 0xf598(%rip), %rax      # 0x139a0
imulq $0x57c, %rcx, %rcx      # imm = 0x57C
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x20(%rax)
cmpl $0x1, -0x4(%rbp)
jne 0x4565
movslq -0xc(%rbp), %rcx
leaq 0xe967(%rip), %rax      # 0x12da0
imulq $0xc0, %rcx, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl $0x20, 0x8(%rax)
movl $0x1, -0x14(%rbp)
cmpl $0x1a, -0x14(%rbp)
jg 0x4558
movslq -0x14(%rbp), %rcx
leaq 0xf52f(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x20(%rax)
je 0x4548
movslq -0x14(%rbp), %rcx
leaq 0xf50d(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
cmpl -0xc(%rbp), %eax
jne 0x4548
movslq -0x14(%rbp), %rcx
leaq 0xf4ea(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
cmpl -0x10(%rbp), %eax
jne 0x4548
movslq -0xc(%rbp), %rcx
leaq 0xe8ca(%rip), %rax      # 0x12da0
imulq $0xc0, %rcx, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
cmpl $0x20, 0x8(%rax)
jne 0x451f
movl -0x14(%rbp), %ecx
addl $0x61, %ecx
subl $0x1, %ecx
movslq -0xc(%rbp), %rdx
leaq 0xe89b(%rip), %rax      # 0x12da0
imulq $0xc0, %rdx, %rdx
addq %rdx, %rax
movslq -0x10(%rbp), %rdx
imulq $0xc, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
jmp 0x4546
movslq -0xc(%rbp), %rcx
leaq 0xe876(%rip), %rax      # 0x12da0
imulq $0xc0, %rcx, %rcx
addq %rcx, %rax
movslq -0x10(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl $0x2a, 0x8(%rax)
jmp 0x4548
jmp 0x454a
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x445c
movl -0xc(%rbp), %edi
movl -0x10(%rbp), %esi
xorl %edx, %edx
callq 0x34f0
jmp 0x4567
jmp 0x4569
addq $0x20, %rsp
popq %rbp
retq
nop