// File: /workspace/github_c_makefile_star2_O0/schroeder-lvb[P]sissm/src/pioverride.c
// Function: pioverrideInitConfig
int pioverrideInitConfig( void )
{
    cfsPtr cP;

    cP = cfsCreate( sissmGetConfigPath() );

    // read "pioverride.pluginstate" variable from the .cfg file
    pioverrideConfig.pluginState = (int) cfsFetchNum( cP, "pioverride.pluginState", 0.0 );  // disabled by default

    // array of 10 [<gamemodeproperty> <value>] pairs
    //
    strlcpy( pioverrideConfig.cvar[0],  cfsFetchStr( cP, "pioverride.cvar[0]",  "" ), CFS_FETCH_MAX );
    strlcpy( pioverrideConfig.cvar[1],  cfsFetchStr( cP, "pioverride.cvar[1]",  "" ), CFS_FETCH_MAX );
    strlcpy( pioverrideConfig.cvar[2],  cfsFetchStr( cP, "pioverride.cvar[2]",  "" ), CFS_FETCH_MAX );
    strlcpy( pioverrideConfig.cvar[3],  cfsFetchStr( cP, "pioverride.cvar[3]",  "" ), CFS_FETCH_MAX );
    strlcpy( pioverrideConfig.cvar[4],  cfsFetchStr( cP, "pioverride.cvar[4]",  "" ), CFS_FETCH_MAX );
    strlcpy( pioverrideConfig.cvar[5],  cfsFetchStr( cP, "pioverride.cvar[5]",  "" ), CFS_FETCH_MAX );
    strlcpy( pioverrideConfig.cvar[6],  cfsFetchStr( cP, "pioverride.cvar[6]",  "" ), CFS_FETCH_MAX );
    strlcpy( pioverrideConfig.cvar[7],  cfsFetchStr( cP, "pioverride.cvar[7]",  "" ), CFS_FETCH_MAX );
    strlcpy( pioverrideConfig.cvar[8],  cfsFetchStr( cP, "pioverride.cvar[8]",  "" ), CFS_FETCH_MAX );
    strlcpy( pioverrideConfig.cvar[9],  cfsFetchStr( cP, "pioverride.cvar[9]",  "" ), CFS_FETCH_MAX );

    // if pokeEveryRound = 1, then this plugin will program the gamemodeproperty to 
    // the server at start of every round.  Otherwise, it is only programmed at start of 
    // every game.
    //
    pioverrideConfig.pokeEveryRound = (int) cfsFetchNum( cP, "pioverride.pokeEveryRound", 0 );

    cfsDestroy( cP );
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
callq 0x8a90
movq %rax, %rdi
callq 0x9370
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x12aa3(%rip), %rsi     # 0x25657
xorps %xmm0, %xmm0
callq 0x97d0
cvttsd2si %xmm0, %eax
movl %eax, 0xbe2ea(%rip)     # 0xd0eb0
movq -0x8(%rbp), %rdi
leaq 0x12a9d(%rip), %rsi     # 0x2566e
leaq 0x10b39(%rip), %rdx     # 0x23711
callq 0x9430
movq %rax, %rsi
leaq 0xbe2c9(%rip), %rdi     # 0xd0eb0
addq $0x4, %rdi
movl $0x400, %edx            # imm = 0x400
callq 0x11bc0
movq -0x8(%rbp), %rdi
leaq 0x12a81(%rip), %rsi     # 0x25681
leaq 0x10b0a(%rip), %rdx     # 0x23711
callq 0x9430
movq %rax, %rsi
leaq 0xbe29a(%rip), %rdi     # 0xd0eb0
addq $0x4, %rdi
addq $0x400, %rdi            # imm = 0x400
movl $0x400, %edx            # imm = 0x400
callq 0x11bc0
movq -0x8(%rbp), %rdi
leaq 0x12a5e(%rip), %rsi     # 0x25694
leaq 0x10ad4(%rip), %rdx     # 0x23711
callq 0x9430
movq %rax, %rsi
leaq 0xbe264(%rip), %rdi     # 0xd0eb0
addq $0x4, %rdi
addq $0x800, %rdi            # imm = 0x800
movl $0x400, %edx            # imm = 0x400
callq 0x11bc0
movq -0x8(%rbp), %rdi
leaq 0x12a3b(%rip), %rsi     # 0x256a7
leaq 0x10a9e(%rip), %rdx     # 0x23711
callq 0x9430
movq %rax, %rsi
leaq 0xbe22e(%rip), %rdi     # 0xd0eb0
addq $0x4, %rdi
addq $0xc00, %rdi            # imm = 0xC00
movl $0x400, %edx            # imm = 0x400
callq 0x11bc0
movq -0x8(%rbp), %rdi
leaq 0x12a18(%rip), %rsi     # 0x256ba
leaq 0x10a68(%rip), %rdx     # 0x23711
callq 0x9430
movq %rax, %rsi
leaq 0xbe1f8(%rip), %rdi     # 0xd0eb0
addq $0x4, %rdi
addq $0x1000, %rdi           # imm = 0x1000
movl $0x400, %edx            # imm = 0x400
callq 0x11bc0
movq -0x8(%rbp), %rdi
leaq 0x129f5(%rip), %rsi     # 0x256cd
leaq 0x10a32(%rip), %rdx     # 0x23711
callq 0x9430
movq %rax, %rsi
leaq 0xbe1c2(%rip), %rdi     # 0xd0eb0
addq $0x4, %rdi
addq $0x1400, %rdi           # imm = 0x1400
movl $0x400, %edx            # imm = 0x400
callq 0x11bc0
movq -0x8(%rbp), %rdi
leaq 0x129d2(%rip), %rsi     # 0x256e0
leaq 0x109fc(%rip), %rdx     # 0x23711
callq 0x9430
movq %rax, %rsi
leaq 0xbe18c(%rip), %rdi     # 0xd0eb0
addq $0x4, %rdi
addq $0x1800, %rdi           # imm = 0x1800
movl $0x400, %edx            # imm = 0x400
callq 0x11bc0
movq -0x8(%rbp), %rdi
leaq 0x129af(%rip), %rsi     # 0x256f3
leaq 0x109c6(%rip), %rdx     # 0x23711
callq 0x9430
movq %rax, %rsi
leaq 0xbe156(%rip), %rdi     # 0xd0eb0
addq $0x4, %rdi
addq $0x1c00, %rdi           # imm = 0x1C00
movl $0x400, %edx            # imm = 0x400
callq 0x11bc0
movq -0x8(%rbp), %rdi
leaq 0x1298c(%rip), %rsi     # 0x25706
leaq 0x10990(%rip), %rdx     # 0x23711
callq 0x9430
movq %rax, %rsi
leaq 0xbe120(%rip), %rdi     # 0xd0eb0
addq $0x4, %rdi
addq $0x2000, %rdi           # imm = 0x2000
movl $0x400, %edx            # imm = 0x400
callq 0x11bc0
movq -0x8(%rbp), %rdi
leaq 0x12969(%rip), %rsi     # 0x25719
leaq 0x1095a(%rip), %rdx     # 0x23711
callq 0x9430
movq %rax, %rsi
leaq 0xbe0ea(%rip), %rdi     # 0xd0eb0
addq $0x4, %rdi
addq $0x2400, %rdi           # imm = 0x2400
movl $0x400, %edx            # imm = 0x400
callq 0x11bc0
movq -0x8(%rbp), %rdi
leaq 0x12946(%rip), %rsi     # 0x2572c
xorps %xmm0, %xmm0
callq 0x97d0
cvttsd2si %xmm0, %eax
movl %eax, 0xc08bc(%rip)     # 0xd36b4
movq -0x8(%rbp), %rdi
callq 0x93f0
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)