// File: /workspace/github_c_makefile_star2_O0/beejjorgensen[P]conquest/conqtf.c
// Function: join_tf
void join_tf(void)
{
    char tf1, tf2;
    int tf1n, tf2n, ind, value;
    char iline[81];
    printw("oin tfs:");
    ind = 1;
    get_line(iline, &ind, true);
    cle3r_left();
    get_token(iline, &ind, &value, &tf1);
    tf1n = tf1 - 'A' + 1;
    if ((tf1n < 1) || (tf1n > 26)) {
        error_message();
        printw("  ! illegal tf %c", tf1);
    } else if ((tf[player][tf1n].eta) > 0) {
        error_message();
        printw("  !tf%c is not in normal space ", tf1);
    } else if (tf[player][tf1n].dest == 0) {
        error_message();
        printw("  !nonexistent tf");
    } else if (tf[player][tf1n].blasting) {
        error_message();
        printw("  !Tf is blasting a planet    ");
    } else {
        get_token(iline, &ind, &value, &tf2);
        while (tf2 != ' ') {
            tf2n = tf2 - 'A' + 1;
            if ((tf2n < 1) || (tf2n > 26)) {
                error_message();
                printw("  !illegal tf %c", tf2);
            } else if (tf2n == tf1n) {
                error_message();
                printw("!Duplicate tf %c", tf2);
            } else if (tf[player][tf2n].dest == 0) {
                error_message();
                printw("!Nonexistant TF%c", tf2);
            } else if ((tf[player][tf2n].x != tf[player][tf1n].x) ||
                       (tf[player][tf2n].y != tf[player][tf2n].y)) {
                error_message();
                printw("  !tf%c bad location", tf2);
            } else if (tf[player][tf2n].eta != 0) {
                error_message();
                printw("  !tf%c is not in normal space ", tf2);
            } else if (tf[player][tf2n].blasting) {
                error_message();
                printw(" !Tf%c is blasting a planet    ", tf2);
            } else {
                joinsilent(player, &tf[player][tf1n], &tf[player][tf2n]);
            };
            get_token(iline, &ind, &value, &tf2);
        };
        on_board(tf[player][tf1n].x, tf[player][tf1n].y);
        point(1, 19);
        pr3nt_tf(tf1n);
    };
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
leaq 0x3049(%rip), %rdi      # 0xf168
movb $0x0, %al
callq 0x2030
movl $0x1, -0x10(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x10(%rbp), %rsi
movl $0x1, %edx
callq 0xa4b0
callq 0xa720
leaq -0x70(%rbp), %rdi
leaq -0x10(%rbp), %rsi
leaq -0x14(%rbp), %rdx
leaq -0x1(%rbp), %rcx
callq 0xa7e0
movsbl -0x1(%rbp), %eax
subl $0x41, %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
cmpl $0x1, -0x8(%rbp)
jl 0xc172
cmpl $0x1a, -0x8(%rbp)
jle 0xc18e
callq 0xa7c0
movsbl -0x1(%rbp), %esi
leaq 0x2fef(%rip), %rdi      # 0xf171
movb $0x0, %al
callq 0x2030
jmp 0xc49a
movslq -0x8(%rbp), %rcx
leaq 0x7807(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x24(%rax)
jle 0xc1c8
callq 0xa7c0
movsbl -0x1(%rbp), %esi
leaq 0x2fc7(%rip), %rdi      # 0xf183
movb $0x0, %al
callq 0x2030
jmp 0xc498
movslq -0x8(%rbp), %rcx
leaq 0x77cd(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x20(%rax)
jne 0xc1fe
callq 0xa7c0
leaq 0x2978(%rip), %rdi      # 0xeb6a
movb $0x0, %al
callq 0x2030
jmp 0xc496
movslq -0x8(%rbp), %rcx
leaq 0x7797(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x2c(%rax)
je 0xc234
callq 0xa7c0
leaq 0x2f7b(%rip), %rdi      # 0xf1a3
movb $0x0, %al
callq 0x2030
jmp 0xc494
leaq -0x70(%rbp), %rdi
leaq -0x10(%rbp), %rsi
leaq -0x14(%rbp), %rdx
leaq -0x2(%rbp), %rcx
callq 0xa7e0
movsbl -0x2(%rbp), %eax
cmpl $0x20, %eax
je 0xc443
movsbl -0x2(%rbp), %eax
subl $0x41, %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
cmpl $0x1, -0xc(%rbp)
jl 0xc26f
cmpl $0x1a, -0xc(%rbp)
jle 0xc28b
callq 0xa7c0
movsbl -0x2(%rbp), %esi
leaq 0x2f43(%rip), %rdi      # 0xf1c2
movb $0x0, %al
callq 0x2030
jmp 0xc429
movl -0xc(%rbp), %eax
cmpl -0x8(%rbp), %eax
jne 0xc2af
callq 0xa7c0
movsbl -0x2(%rbp), %esi
leaq 0x2f30(%rip), %rdi      # 0xf1d3
movb $0x0, %al
callq 0x2030
jmp 0xc427
movslq -0xc(%rbp), %rcx
leaq 0x76e6(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x20(%rax)
jne 0xc2e9
callq 0xa7c0
movsbl -0x2(%rbp), %esi
leaq 0x2f07(%rip), %rdi      # 0xf1e4
movb $0x0, %al
callq 0x2030
jmp 0xc425
movslq -0xc(%rbp), %rcx
leaq 0x76ac(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
movslq -0x8(%rbp), %rdx
leaq 0x7692(%rip), %rcx      # 0x139a0
addq $0x57c, %rcx            # imm = 0x57C
imulq $0x34, %rdx, %rdx
addq %rdx, %rcx
cmpl (%rcx), %eax
jne 0xc359
movslq -0xc(%rbp), %rcx
leaq 0x7675(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movslq -0xc(%rbp), %rdx
leaq 0x765a(%rip), %rcx      # 0x139a0
addq $0x57c, %rcx            # imm = 0x57C
imulq $0x34, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x4(%rcx), %eax
je 0xc375
callq 0xa7c0
movsbl -0x2(%rbp), %esi
leaq 0x2e8d(%rip), %rdi      # 0xf1f6
movb $0x0, %al
callq 0x2030
jmp 0xc423
movslq -0xc(%rbp), %rcx
leaq 0x7620(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x24(%rax)
je 0xc3ac
callq 0xa7c0
movsbl -0x2(%rbp), %esi
leaq 0x2de0(%rip), %rdi      # 0xf183
movb $0x0, %al
callq 0x2030
jmp 0xc421
movslq -0xc(%rbp), %rcx
leaq 0x75e9(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x2c(%rax)
je 0xc3e3
callq 0xa7c0
movsbl -0x2(%rbp), %esi
leaq 0x2e31(%rip), %rdi      # 0xf20b
movb $0x0, %al
callq 0x2030
jmp 0xc41f
movslq -0x8(%rbp), %rax
leaq 0x75b2(%rip), %rsi      # 0x139a0
addq $0x57c, %rsi            # imm = 0x57C
imulq $0x34, %rax, %rax
addq %rax, %rsi
movslq -0xc(%rbp), %rax
leaq 0x7599(%rip), %rdx      # 0x139a0
addq $0x57c, %rdx            # imm = 0x57C
imulq $0x34, %rax, %rax
addq %rax, %rdx
movl $0x1, %edi
callq 0x3130
jmp 0xc421
jmp 0xc423
jmp 0xc425
jmp 0xc427
jmp 0xc429
leaq -0x70(%rbp), %rdi
leaq -0x10(%rbp), %rsi
leaq -0x14(%rbp), %rdx
leaq -0x2(%rbp), %rcx
callq 0xa7e0
jmp 0xc249
movslq -0x8(%rbp), %rcx
leaq 0x7552(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %edi
movslq -0x8(%rbp), %rcx
leaq 0x7538(%rip), %rax      # 0x139a0
addq $0x57c, %rax            # imm = 0x57C
imulq $0x34, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %esi
callq 0xaa50
movl $0x1, %edi
movl $0x13, %esi
callq 0x69f0
movl -0x8(%rbp), %edi
callq 0xaca0
jmp 0xc496
jmp 0xc498
jmp 0xc49a
addq $0x70, %rsp
popq %rbp
retq