// File: Thomas1995[P]Rentz/src/score.cpp
// Function: _cxx_global_var_init.1
void Table::ChangeScore() {

    int crtConnection = firstPlayer - players.begin();

    int scoreToAdd = 0;

    if(gameType == KingOfHearts)
        ScoreKingOfHearts(scoreToAdd);

    if(gameType == Queens)
        ScoreQueens(scoreToAdd);

    if(gameType == Diamonds)
        ScoreDiamonds(scoreToAdd);

    if(gameType == Acool)
        ScoreAcool(scoreToAdd);

    if(gameType == Whist)
        ScoreWhist(scoreToAdd);

    if(gameType == TenClub)
        ScoreTenClub(scoreToAdd);

    if(gameType == Totals)
        ScoreTotals(scoreToAdd);

    score[crtConnection] += scoreToAdd * (1 + modeNV);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x200, %rsp            # imm = 0x200
movb $0x1, -0x134(%rbp)
leaq -0x110(%rbp), %rax
movq %rax, -0x148(%rbp)
movq %rax, -0x118(%rbp)
leaq -0x119(%rbp), %rdi
movq %rdi, -0x140(%rbp)
callq 0x34e0
movq -0x148(%rbp), %rdi
movq -0x140(%rbp), %rdx
leaq 0x12a05(%rip), %rsi     # 0x16004
callq 0x5640
jmp 0x3606
leaq -0xf0(%rbp), %rax
movq %rax, -0x158(%rbp)
movq %rax, -0x118(%rbp)
leaq -0x12d(%rbp), %rdi
movq %rdi, -0x150(%rbp)
callq 0x34e0
movq -0x158(%rbp), %rdi
movq -0x150(%rbp), %rdx
leaq 0x129c6(%rip), %rsi     # 0x16009
callq 0x5640
jmp 0x364a
leaq -0xd0(%rbp), %rax
movq %rax, -0x168(%rbp)
movq %rax, -0x118(%rbp)
leaq -0x12e(%rbp), %rdi
movq %rdi, -0x160(%rbp)
callq 0x34e0
movq -0x168(%rbp), %rdi
movq -0x160(%rbp), %rdx
leaq 0x12991(%rip), %rsi     # 0x16018
callq 0x5640
jmp 0x368e
leaq -0xb0(%rbp), %rax
movq %rax, -0x178(%rbp)
movq %rax, -0x118(%rbp)
leaq -0x12f(%rbp), %rdi
movq %rdi, -0x170(%rbp)
callq 0x34e0
movq -0x178(%rbp), %rdi
movq -0x170(%rbp), %rdx
leaq 0x12954(%rip), %rsi     # 0x1601f
callq 0x5640
jmp 0x36d2
leaq -0x90(%rbp), %rax
movq %rax, -0x188(%rbp)
movq %rax, -0x118(%rbp)
leaq -0x130(%rbp), %rdi
movq %rdi, -0x180(%rbp)
callq 0x34e0
movq -0x188(%rbp), %rdi
movq -0x180(%rbp), %rdx
leaq 0x12919(%rip), %rsi     # 0x16028
callq 0x5640
jmp 0x3716
leaq -0x70(%rbp), %rax
movq %rax, -0x198(%rbp)
movq %rax, -0x118(%rbp)
leaq -0x131(%rbp), %rdi
movq %rdi, -0x190(%rbp)
callq 0x34e0
movq -0x198(%rbp), %rdi
movq -0x190(%rbp), %rdx
leaq 0x128de(%rip), %rsi     # 0x1602e
callq 0x5640
jmp 0x3757
leaq -0x50(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq %rax, -0x118(%rbp)
leaq -0x132(%rbp), %rdi
movq %rdi, -0x1a0(%rbp)
callq 0x34e0
movq -0x1a8(%rbp), %rdi
movq -0x1a0(%rbp), %rdx
leaq 0x128a3(%rip), %rsi     # 0x16034
callq 0x5640
jmp 0x3798
leaq -0x30(%rbp), %rax
movq %rax, -0x1b8(%rbp)
movq %rax, -0x118(%rbp)
leaq -0x133(%rbp), %rdi
movq %rdi, -0x1b0(%rbp)
callq 0x34e0
movq -0x1b8(%rbp), %rdi
movq -0x1b0(%rbp), %rdx
leaq 0x1286f(%rip), %rsi     # 0x16041
callq 0x5640
jmp 0x37d9
movb $0x0, -0x134(%rbp)
leaq -0x110(%rbp), %rax
movq %rax, -0x10(%rbp)
movq $0x8, -0x8(%rbp)
leaq -0x135(%rbp), %rdi
movq %rdi, -0x1c0(%rbp)
callq 0x56f0
movq -0x1c0(%rbp), %rcx
movq -0x10(%rbp), %rsi
movq -0x8(%rbp), %rdx
leaq 0x1dacc(%rip), %rdi     # 0x212e8
callq 0x5710
jmp 0x3823
leaq -0x135(%rbp), %rdi
callq 0x5790
leaq -0x110(%rbp), %rax
movq %rax, -0x1d0(%rbp)
addq $0x100, %rax            # imm = 0x100
movq %rax, -0x1c8(%rbp)
movq -0x1c8(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x1d8(%rbp)
callq 0x31c0
movq -0x1d0(%rbp), %rcx
movq -0x1d8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x1c8(%rbp)
jne 0x384a
leaq -0x133(%rbp), %rdi
callq 0x3330
leaq -0x132(%rbp), %rdi
callq 0x3330
leaq -0x131(%rbp), %rdi
callq 0x3330
leaq -0x130(%rbp), %rdi
callq 0x3330
leaq -0x12f(%rbp), %rdi
callq 0x3330
leaq -0x12e(%rbp), %rdi
callq 0x3330
leaq -0x12d(%rbp), %rdi
callq 0x3330
leaq -0x119(%rbp), %rdi
callq 0x3330
leaq 0x1ece(%rip), %rdi      # 0x57b0
leaq 0x1d9ff(%rip), %rsi     # 0x212e8
leaq 0x1d9d0(%rip), %rdx     # 0x212c0
callq 0x32a0
addq $0x200, %rsp            # imm = 0x200
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x128(%rbp)
movl %eax, -0x12c(%rbp)
jmp 0x3a73
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x128(%rbp)
movl %eax, -0x12c(%rbp)
jmp 0x3a67
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x128(%rbp)
movl %eax, -0x12c(%rbp)
jmp 0x3a5b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x128(%rbp)
movl %eax, -0x12c(%rbp)
jmp 0x3a4f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x128(%rbp)
movl %eax, -0x12c(%rbp)
jmp 0x3a43
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x128(%rbp)
movl %eax, -0x12c(%rbp)
jmp 0x3a37
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x128(%rbp)
movl %eax, -0x12c(%rbp)
jmp 0x3a2b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x128(%rbp)
movl %eax, -0x12c(%rbp)
jmp 0x3a1f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x128(%rbp)
movl %eax, -0x12c(%rbp)
leaq -0x135(%rbp), %rdi
callq 0x5790
leaq -0x110(%rbp), %rax
movq %rax, -0x1e8(%rbp)
addq $0x100, %rax            # imm = 0x100
movq %rax, -0x1e0(%rbp)
movq -0x1e0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x1f0(%rbp)
callq 0x31c0
movq -0x1e8(%rbp), %rcx
movq -0x1f0(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x1e0(%rbp)
jne 0x39ec
jmp 0x3a1f
leaq -0x133(%rbp), %rdi
callq 0x3330
leaq -0x132(%rbp), %rdi
callq 0x3330
leaq -0x131(%rbp), %rdi
callq 0x3330
leaq -0x130(%rbp), %rdi
callq 0x3330
leaq -0x12f(%rbp), %rdi
callq 0x3330
leaq -0x12e(%rbp), %rdi
callq 0x3330
leaq -0x12d(%rbp), %rdi
callq 0x3330
leaq -0x119(%rbp), %rdi
callq 0x3330
testb $0x1, -0x134(%rbp)
jne 0x3a8a
jmp 0x3ad7
movq -0x118(%rbp), %rax
leaq -0x110(%rbp), %rcx
cmpq %rax, %rcx
movq %rax, -0x1f8(%rbp)
je 0x3ad5
movq -0x1f8(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x200(%rbp)
callq 0x31c0
movq -0x200(%rbp), %rax
leaq -0x110(%rbp), %rcx
cmpq %rcx, %rax
movq %rax, -0x1f8(%rbp)
jne 0x3aa4
jmp 0x3ad7
jmp 0x3ad9
movq -0x128(%rbp), %rdi
callq 0x34d0
nopw %cs:(%rax,%rax)