// File: /workspace/github_c_makefile_star2_O0/beejjorgensen[P]conquest/conqs3.c
// Function: on_board
void on_board(int x, int y)
{
    int i;
    int starnum;
    board[x][y].tf = ' ';
    i = 1;
    do {
        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 = '*';
                i = 27;
            };
        };
        i = i + 1;
    }
    while (i <= 26);
    if (board[x][y].star != '.') {
        board[x][y].enemy = ' ';
        starnum = board[x][y].star - 'A' + 1;
        if (col_stars[starnum][player] != 0)
            board[x][y].enemy = '@';
    };
    update_board(x, y, both);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movslq -0x4(%rbp), %rcx
leaq 0x8337(%rip), %rax      # 0x12da0
imulq $0xc0, %rcx, %rcx
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl $0x20, 0x8(%rax)
movl $0x1, -0xc(%rbp)
movslq -0xc(%rbp), %rcx
leaq 0x8f09(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x20(%rax)
je 0xab79
movslq -0xc(%rbp), %rcx
leaq 0x8ee7(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
cmpl -0x4(%rbp), %eax
jne 0xab79
movslq -0xc(%rbp), %rcx
leaq 0x8ec4(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
cmpl -0x8(%rbp), %eax
jne 0xab79
movslq -0x4(%rbp), %rcx
leaq 0x82a0(%rip), %rax      # 0x12da0
imulq $0xc0, %rcx, %rcx
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
cmpl $0x20, 0x8(%rax)
jne 0xab49
movl -0xc(%rbp), %ecx
addl $0x61, %ecx
subl $0x1, %ecx
movslq -0x4(%rbp), %rdx
leaq 0x8271(%rip), %rax      # 0x12da0
imulq $0xc0, %rdx, %rdx
addq %rdx, %rax
movslq -0x8(%rbp), %rdx
imulq $0xc, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
jmp 0xab77
movslq -0x4(%rbp), %rcx
leaq 0x824c(%rip), %rax      # 0x12da0
imulq $0xc0, %rcx, %rcx
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl $0x2a, 0x8(%rax)
movl $0x1b, -0xc(%rbp)
jmp 0xab79
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
cmpl $0x1a, -0xc(%rbp)
jle 0xaa8c
movslq -0x4(%rbp), %rcx
leaq 0x8209(%rip), %rax      # 0x12da0
imulq $0xc0, %rcx, %rcx
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
cmpl $0x2e, 0x4(%rax)
je 0xac42
movslq -0x4(%rbp), %rcx
leaq 0x81df(%rip), %rax      # 0x12da0
imulq $0xc0, %rcx, %rcx
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl $0x20, (%rax)
movslq -0x4(%rbp), %rcx
leaq 0x81b9(%rip), %rax      # 0x12da0
imulq $0xc0, %rcx, %rcx
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
subl $0x41, %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
movslq -0x10(%rbp), %rcx
leaq 0x80cd(%rip), %rax      # 0x12ce0
cmpl $0x0, 0x4(%rax,%rcx,8)
je 0xac40
movslq -0x4(%rbp), %rcx
leaq 0x817b(%rip), %rax      # 0x12da0
imulq $0xc0, %rcx, %rcx
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movl $0x40, (%rax)
jmp 0xac42
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
movl $0x2, %edx
callq 0x34f0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)