LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/mabdi[P]bunney/bunny-exec.c
// Function: timeout
static void timeout(int sig) {
  struct timeval t;
  _u32 i;

  if (timeout_done) return;

  gettimeofday(&t,0);
  
  i = (t.tv_sec - start_time.tv_sec) * 1000 + (t.tv_usec - start_time.tv_usec) / 1000;
  
  if (i > time_limit) exitflags |= EXITF_TIMEOUT; else {
    i = (t.tv_sec - last_time.tv_sec) * 1000 + (t.tv_usec - last_time.tv_usec) / 1000;
      if (i > stuck_limit) exitflags |= EXITF_STUCK; else return;
  }  

  timeout_done = 1;

#ifdef DEBUG_TRACE
    printf("[bunny-exec] Execution timed out (diff = %u), orig_pid = %u, shmreg->lock = %u...\n",
           i, orig_pid, shmreg->lock);
#endif /* DEBUG_TRACE */

  /* Just let report_kids() take its course, it's safer than calling non-reentrant code
     from here. */

  if (orig_pid > 0) kill(orig_pid,SIGKILL);
  
}

// Assembly:
cmpb $0x0, 0x2cc1(%rip)      # 0x5199
jne 0x2592
pushq %rbx
subq $0x10, %rsp
movq %rsp, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1200
movq (%rbx), %rsi
movq 0x8(%rbx), %rcx
movl 0x2c63(%rip), %eax      # 0x5160
movl %esi, %edx
subl %eax, %edx
imull $0x3e8, %edx, %r8d      # imm = 0x3E8
movq %rcx, %rax
subq 0x2c56(%rip), %rax      # 0x5168
movabsq $0x20c49ba5e353f7cf, %rdi # imm = 0x20C49BA5E353F7CF
imulq %rdi
movq %rdx, %rax
shrq $0x3f, %rax
shrq $0x7, %rdx
addl %eax, %edx
addl %r8d, %edx
movb $0x1, %al
cmpl %edx, 0x2c19(%rip)      # 0x5150
leaq 0x10(%rsp), %rsp
popq %rbx
jb 0x2571
subl 0x2c2b(%rip), %esi      # 0x5170
imull $0x3e8, %esi, %esi      # imm = 0x3E8
subq 0x2c26(%rip), %rcx      # 0x5178
movq %rcx, %rax
imulq %rdi
movq %rdx, %rax
shrq $0x3f, %rax
shrq $0x7, %rdx
addl %eax, %edx
addl %esi, %edx
movb $0x4, %al
cmpl %edx, 0x2be5(%rip)      # 0x5154
jae 0x2592
orb %al, 0x2c23(%rip)       # 0x519a
movb $0x1, 0x2c1b(%rip)      # 0x5199
movl 0x2c18(%rip), %edi      # 0x519c
testl %edi, %edi
jle 0x2592
movl $0x9, %esi
jmp 0x11a0
retq
// File: /workspace/github_c_makefile_star2_O3/mabdi[P]bunney/bunny-exec.c
// Function: handle_kill
static void handle_kill(int sig) {
  _u32 i;

#ifdef DEBUG_TRACE
  printf("[bunny-exec] Received signal %u.\n",sig);
#endif /* DEBUG_TRACE */
  
  shmctl(shmid, IPC_RMID, 0);
  
  if (orig_pid > 0) kill(orig_pid,SIGKILL);
  for (i=0;i<proc_cnt;i++) 
    if (procs[i].pid) kill(procs[i].pid,SIGKILL);

  exit(1);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl 0x2beb(%rip), %edi      # 0x5188
xorl %esi, %esi
xorl %edx, %edx
callq 0x10c0
movl 0x2bf0(%rip), %edi      # 0x519c
testl %edi, %edi
jle 0x25ba
movl $0x9, %esi
callq 0x11a0
movl 0x2be0(%rip), %eax      # 0x51a0
testl %eax, %eax
je 0x25fc
movq 0x2bdd(%rip), %rcx      # 0x51a8
xorl %ebx, %ebx
xorl %r14d, %r14d
movl (%rcx,%rbx), %edi
testl %edi, %edi
je 0x25ee
movl $0x9, %esi
callq 0x11a0
movq 0x2bc0(%rip), %rcx      # 0x51a8
movl 0x2bb2(%rip), %eax      # 0x51a0
incq %r14
movl %eax, %edx
addq $0x40, %rbx
cmpq %rdx, %r14
jb 0x25d0
movl $0x1, %edi
callq 0x1130
// File: /workspace/github_c_makefile_star2_O3/mabdi[P]bunney/bunny-exec.c
// Function: read_shm
static _u8 read_shm(void* ptr, _u32 siz) {
  _s32 avail;

  /* Races here are OK, because the amount of data to be read can only increase
     with time. */

  do {
    avail = shmreg->write_off - shmreg->read_off;
    if (avail < 0) avail += shmreg->length;
    if (avail >= siz) break;
    if (report_kids()) return 1;
    sched_yield();
  } while (1);

  do {
    while (shmreg->lock)
      if (report_kids()) return 1; else sched_yield();
    atomic_inc(&shmreg->lock);
    if (shmreg->lock == 1) break;
    atomic_dec(&shmreg->lock);
    if (shmreg->lock < 0 || shmreg->lock > 1)
      fatal("SHM spinlock state corrupted (up at %d)",shmreg->lock);
  } while (1);

  if (shmreg->read_off + siz >= shmreg->length) {
    _u32 copy1 = shmreg->length - shmreg->read_off, siz2 = siz - copy1;
    memcpy(ptr, (void*) shmreg->data + shmreg->read_off, copy1);
    ptr += copy1;
    memcpy(ptr, (void*) shmreg->data, siz2);
  } else
    memcpy(ptr, (void*) shmreg->data + shmreg->read_off, siz);

  shmreg->read_off = (shmreg->read_off + siz) % (shmreg->length);

  atomic_dec(&shmreg->lock);

  return 0;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movq 0x2b6b(%rip), %rdi      # 0x5190
movl 0x8(%rdi), %eax
subl 0xc(%rdi), %eax
jns 0x2630
addl 0x4(%rdi), %eax
cmpl %ebx, %eax
jae 0x2683
callq 0x277a
testb %al, %al
jne 0x2691
callq 0x11c0
jmp 0x261e
callq 0x11c0
movq 0x2b40(%rip), %rdi      # 0x5190
jmp 0x2683
lock
incl (%rdi)
movq 0x2b34(%rip), %rbp      # 0x5190
movl (%rbp), %eax
cmpl $0x1, %eax
je 0x26a2
lock
decl (%rbp)
movq 0x2b21(%rip), %rdi      # 0x5190
cmpl $0x0, (%rdi)
js 0x270c
movl (%rdi), %eax
cmpl $0x2, %eax
jge 0x270c
cmpl $0x0, (%rdi)
je 0x2652
callq 0x277a
testb %al, %al
je 0x2644
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0xc(%rbp), %eax
addl %ebx, %eax
cmpl 0x4(%rbp), %eax
jae 0x26be
movl 0xc(%rbp), %eax
leaq (%rax,%rbp), %rsi
addq $0x54, %rsi
movl %ebx, %edx
movq %r14, %rdi
jmp 0x26f2
movl 0x4(%rbp), %r15d
subl 0xc(%rbp), %r15d
movl %ebx, %r12d
subl %r15d, %r12d
leaq 0x54(%rbp), %r13
movl 0xc(%rbp), %eax
leaq (%rax,%rbp), %rsi
addq $0x54, %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x10b0
addq %r15, %r14
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x10b0
addl 0xc(%rbp), %ebx
movl %ebx, %eax
xorl %edx, %edx
divl 0x4(%rbp)
xorl %eax, %eax
movl %edx, 0xc(%rbp)
lock
decl (%rbp)
jmp 0x2693
callq 0x1780
// File: /workspace/github_c_makefile_star2_O3/mabdi[P]bunney/bunny-exec.c
// Function: get_procentry
static _s32 get_procentry(_u32 pid,_u8 make_new) {
  _u32 rno;

  for (rno=0;rno<proc_cnt;rno++) 
    if (procs[rno].pid == pid) return rno;

  if (!make_new) return -1;
  
  proc_cnt++;
  
  if ((proc_cnt % ALLOC_CHUNK) == 1) {
    procs = realloc(procs,(proc_cnt + ALLOC_CHUNK) * sizeof(struct proc_state));
    if (!procs) fatal("out of memory");
    memset((void*)(procs+rno),0,sizeof(struct proc_state) * ALLOC_CHUNK);
  }

  procs[rno].pid = pid;
  
  return rno;

}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edi, %ebp
movl 0x2861(%rip), %ebx      # 0x51a0
testq %rbx, %rbx
je 0x295d
movq 0x285d(%rip), %rcx      # 0x51a8
xorl %eax, %eax
cmpl %ebp, (%rcx)
je 0x29be
incq %rax
addq $0x40, %rcx
cmpq %rax, %rbx
jne 0x294d
testb %sil, %sil
je 0x29c2
leal 0x1(%rbx), %eax
movl %eax, 0x2835(%rip)      # 0x51a0
andl $0x7f, %eax
movq 0x2833(%rip), %r14      # 0x51a8
cmpl $0x1, %eax
jne 0x29b1
leal 0x81(%rbx), %esi
shlq $0x6, %rsi
movq %r14, %rdi
callq 0x1210
movq %rax, 0x2815(%rip)      # 0x51a8
testq %rax, %rax
je 0x29ce
movq %rax, %r14
movq %rbx, %rdi
shlq $0x6, %rdi
addq %rax, %rdi
movl $0x2000, %edx           # imm = 0x2000
xorl %esi, %esi
callq 0x1060
movq %rbx, %rax
shlq $0x6, %rax
movl %ebp, (%r14,%rax)
jmp 0x29c7
movl %eax, %ebx
jmp 0x29c7
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
callq 0x1815
// File: /workspace/github_c_makefile_star2_O3/lmcilroy[P]lzm/lzdata.c
// Function: usage
static void
usage(void)
{
	printf("usage: lzdata [options] <files...>\n");
	printf("	--filesize <size>	file size (MB)\n");
	printf("	--chunksize <size>	chunk size (KB)\n");
	printf("	--minlitlen <len>	minimum literal length\n");
	printf("	--maxlitlen <len>	minimum literal length\n");
	printf("	--minmatchlen <len>	minimum match length\n");
	printf("	--maxmatchlen <len>	minimum match length\n");
	printf("	--minoffset <len>	minimum offset length\n");
	printf("	--maxoffset <len>	minimum offset length\n");
	printf("	--matchprob <prob>	probability of match [0..1]\n");
	printf("	--litlenscale <val>	literal length scale (> 0)\n");
	printf("	--matchlenscale <val>	match length scale (> 0)\n");
	printf("	--randomseed <val>	random number seed\n");
	printf("	--verbose		report details used\n");
	printf("	--help			this help\n");
}

// Assembly:
pushq %rax
leaq 0x14f2(%rip), %rdi      # 0x3409
callq 0x1050
leaq 0x1509(%rip), %rdi      # 0x342c
callq 0x1050
leaq 0x151f(%rip), %rdi      # 0x344e
callq 0x1050
leaq 0x1537(%rip), %rdi      # 0x3472
callq 0x1050
leaq 0x1555(%rip), %rdi      # 0x349c
callq 0x1050
leaq 0x1573(%rip), %rdi      # 0x34c6
callq 0x1050
leaq 0x1591(%rip), %rdi      # 0x34f0
callq 0x1050
leaq 0x15af(%rip), %rdi      # 0x351a
callq 0x1050
leaq 0x15cc(%rip), %rdi      # 0x3543
callq 0x1050
leaq 0x15e9(%rip), %rdi      # 0x356c
callq 0x1050
leaq 0x160d(%rip), %rdi      # 0x359c
callq 0x1050
leaq 0x1631(%rip), %rdi      # 0x35cc
callq 0x1050
leaq 0x1655(%rip), %rdi      # 0x35fc
callq 0x1050
leaq 0x1670(%rip), %rdi      # 0x3623
callq 0x1050
leaq 0x1684(%rip), %rdi      # 0x3643
popq %rax
jmp 0x1050
// File: /workspace/github_c_makefile_star2_O3/lmcilroy[P]lzm/lzdata.c
// Function: gen_literal
static unsigned int
gen_literal(unsigned char * const buffer, unsigned int pos,
    const unsigned int size, struct lzdata_args * const args)
{
	unsigned int length;
	unsigned int end;

	length = args->lit_len_scale / (1 - rngd()) -
	    args->lit_len_scale + args->min_lit_len;

	if (length > args->max_lit_len)
		length = args->max_lit_len;

	if (pos + length > size)
		length = size - pos;

	LOG("L %d %d\n", pos, length);

	args->literals++;
	args->literal_bytes += length;

	end = pos + length;

	if (end > 3) {
		while (pos < end - 3) {
			writemem32(&buffer[pos], rngl());
			pos += 4;
		}
	}

	while (pos < end)
		buffer[pos++] = rngl();

	return pos;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %r15
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movsd 0x38(%rcx), %xmm0
movsd %xmm0, 0x8(%rsp)
callq 0x1150
movsd 0x103c(%rip), %xmm1     # 0x3030
subsd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
divsd %xmm1, %xmm0
subsd 0x38(%r15), %xmm0
movapd %xmm0, %xmm1
movl 0x14(%r15), %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movl 0x18(%r15), %ecx
cmpl %eax, %ecx
cmovbl %ecx, %eax
leal (%rax,%r14), %ecx
movl %ebp, %r12d
subl %r14d, %r12d
cmpl %ebp, %ecx
cmovbel %eax, %r12d
incq 0x50(%r15)
addq %r12, 0x60(%r15)
addl %r14d, %r12d
cmpl $0x4, %r12d
jb 0x206a
leal -0x3(%r12), %ebp
cmpl %r14d, %ebp
jbe 0x206a
movl %r14d, %r15d
callq 0x10b0
movl %eax, (%rbx,%r15)
addl $0x4, %r14d
cmpl %ebp, %r14d
jb 0x2055
movl %r12d, %r15d
subl %r14d, %r15d
jbe 0x208f
movl %r14d, %eax
addq %rax, %rbx
xorl %r14d, %r14d
callq 0x10b0
movb %al, (%rbx,%r14)
incq %r14
cmpl %r14d, %r15d
jne 0x207b
movl %r12d, %r14d
movl %r14d, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/sissm.c
// Function: sissmSegfaultInstall
int sissmSegfaultInstall( char *sissmCfgFileName )
{
    struct sigaction sa;
    char crashFilename[256];
    time_t curtime;
    struct tm *loctime;

    memset( &sa, 0, sizeof(struct sigaction) );
    sigemptyset( &sa.sa_mask );
    sa.sa_sigaction = sissmSegfaultSigaction;
    sa.sa_flags = SA_SIGINFO;

    sigaction(SIGSEGV, &sa, NULL);                                       // invalid memory access
    sigaction(SIGFPE,  &sa, NULL);                                              // divide-by-zero
    sigaction(SIGABRT, &sa, NULL);                                              // stack smashing

    strlcpy( crashFilename, sissmCfgFileName, 256 );
    strlcat( crashFilename, ".crashreport", 256 );
    segfaultFPW = fopen( crashFilename, "at" );

    curtime = time (NULL);
    loctime = localtime (&curtime);
    if ( NULL != segfaultFPW ) {
        fprintf( segfaultFPW, "\n\n------\nInitialized Crash Reporter: %s\n", asctime(loctime) );
        fflush( segfaultFPW );
    }

    return (segfaultFPW == NULL);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movl $0x98, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x81b0
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x8260
leaq -0x141(%rip), %rax      # 0x853d
movq %rax, -0x8(%r15)
movl $0x4, 0x80(%r15)
movl $0xb, %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x80a0
movl $0x8, %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x80a0
movl $0x6, %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x80a0
leaq 0xa0(%rsp), %r14
movl $0x100, %edx            # imm = 0x100
movq %r14, %rdi
movq %rbx, %rsi
callq 0xf384
leaq 0x12993(%rip), %rsi     # 0x1b06c
movl $0x100, %edx            # imm = 0x100
movq %r14, %rdi
callq 0xf310
leaq 0x1523b(%rip), %rsi     # 0x1d928
movq %r14, %rdi
callq 0x8320
movq %rax, 0x2180c(%rip)     # 0x29f08
xorl %edi, %edi
callq 0x82a0
movq %rsp, %rdi
movq %rax, (%rdi)
callq 0x8070
movq 0x217f3(%rip), %rbx     # 0x29f08
testq %rbx, %rbx
je 0x8751
movq %rax, %rdi
callq 0x8140
leaq 0x12950(%rip), %rsi     # 0x1b079
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x8250
movq 0x217cb(%rip), %rdi     # 0x29f08
callq 0x82c0
xorl %eax, %eax
cmpq $0x0, 0x217bc(%rip)     # 0x29f08
sete %al
jmp 0x8756
movl $0x1, %eax
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/sissm.c
// Function: sissmDiagnostics
int sissmDiagnostics( void )
{
    int errCode = 0;

    // Check RCON configuration
    //
    if ( (sissmConfig.rconPort < 1024) || (sissmConfig.rconPort > 32767) ) {
        printf("\n** CONFIGURATION ERROR: Invalid Rcon Port is set in .cfg\n");
        printf("Please fix rconPort '%d'.\n", sissmConfig.rconPort );
        errCode = 1;
    }
    if (0 == strlen( sissmConfig.rconPassword) ) {
        printf("\n** CONFIGURATION ERROR: Rcon password is not set in .cfg\n");
        printf("Please fix rconPassword\n");
        errCode = 1;
    }
    if ( 0 == strncmp( "000.000.000.000", reformatIP( sissmConfig.rconIP ), 16 ))  {
        printf("\n** CONFIGURATION ERROR: Invalid server IP set in .cfg\n"); 
        printf("Please fix rconIP '%s'\n", sissmConfig.rconIP );
        errCode = 1;
    }

    // Check critical files
    //
    if ( !isReadable( sissmConfig.gameLogFile ) ) {
        printf("\n** CONFIGURATION ERROR: Game log file not found or unable to read in .cfg\n");
        printf("Please fix gameLogFile: '%s'\n", sissmConfig.gameLogFile );
        errCode = 1;
    }

    if ( errCode ) {
        printf("\nPress ^C now, or SISSM will proceed to run in 15 seconds\n");
        sleep( 15 );
    }

    return errCode;
}

// Assembly:
pushq %rbx
movl $0xffff8000, %eax       # imm = 0xFFFF8000
addl 0x21c4e(%rip), %eax     # 0x2a718
xorl %ebx, %ebx
cmpl $0xffff83ff, %eax       # imm = 0xFFFF83FF
ja 0x8af8
leaq 0x12943(%rip), %rdi     # 0x1b41d
callq 0x8090
movl 0x21c33(%rip), %esi     # 0x2a718
leaq 0x126f4(%rip), %rdi     # 0x1b1e0
xorl %eax, %eax
callq 0x8180
movl $0x1, %ebx
cmpb $0x0, 0x21c1d(%rip)     # 0x2a71c
jne 0x8b1e
leaq 0x1294f(%rip), %rdi     # 0x1b457
callq 0x8090
leaq 0x1297d(%rip), %rdi     # 0x1b491
callq 0x8090
movl $0x1, %ebx
leaq 0x21ff7(%rip), %rdi     # 0x2ab1c
callq 0xfa5d
leaq 0x126ca(%rip), %rdi     # 0x1b1fb
movl $0x10, %edx
movq %rax, %rsi
callq 0x8080
testl %eax, %eax
je 0x8b5a
leaq 0x223d3(%rip), %rdi     # 0x2af1c
callq 0xfafc
testl %eax, %eax
je 0x8b8b
testl %ebx, %ebx
jne 0x8bac
xorl %eax, %eax
jmp 0x8bc7
leaq 0x12948(%rip), %rdi     # 0x1b4a9
callq 0x8090
leaq 0x1269e(%rip), %rdi     # 0x1b20b
leaq 0x21fa8(%rip), %rsi     # 0x2ab1c
xorl %eax, %eax
callq 0x8180
leaq 0x2239a(%rip), %rdi     # 0x2af1c
callq 0xfafc
testl %eax, %eax
jne 0x8bac
leaq 0x1294e(%rip), %rdi     # 0x1b4e0
callq 0x8090
leaq 0x12685(%rip), %rdi     # 0x1b223
leaq 0x22377(%rip), %rsi     # 0x2af1c
xorl %eax, %eax
callq 0x8180
leaq 0x12978(%rip), %rdi     # 0x1b52b
callq 0x8090
movl $0xf, %edi
callq 0x83a0
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/sissm.c
// Function: sissm_terminal
int sissm_terminal( int argc, char *argv[] )
{
    int paramError = 1;
#ifdef _WIN32
    logPrintfInit( 2, "nul", 1 );
#else
    logPrintfInit( 2, "/dev/null", 1 );
#endif
    if ( argc == 5 ) {
        rdrvTerminal( argv[2], argv[3], argv[4] );
    }
    else if ( paramError ) {
        printf("\n\nSISSM RCON Terminal Tool\n./sissm -t [hostname/IP][port#][rconpassword]");
        printf("\nExample  ./sissm -t 127.0.0.1 27015 myRconPassword\n\n");
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x12443(%rip), %rsi     # 0x1b3ca
movl $0x2, %edi
movl $0x1, %edx
callq 0x1a3b8
cmpl $0x5, %ebp
jne 0x8fae
movq 0x10(%rbx), %rdi
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdx
callq 0x9902
jmp 0x8fc8
leaq 0x1241f(%rip), %rdi     # 0x1b3d4
xorl %eax, %eax
callq 0x8180
leaq 0x125a2(%rip), %rdi     # 0x1b565
callq 0x8090
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/cfs.c
// Function: cfsCreate
cfsPtr cfsCreate( char *fileName ) 
{
    cfsPtr pCfs = NULL;
    FILE    *fpr;

    if ( NULL != (fpr = fopen( fileName, "rt" )) ) {
        if ( NULL != (pCfs = (cfsPtr) calloc ( 1, sizeof( cfsObj )))) {
            strlcpy( pCfs->cfsFilename, fileName, CFS_FILENAME_MAX );
            pCfs->fpr = fpr;
        }
    }
    return( pCfs );
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x12e80(%rip), %rsi     # 0x1be8b
callq 0x8320
testq %rax, %rax
je 0x9048
movq %rax, %r15
movl $0x1, %edi
movl $0x408, %esi            # imm = 0x408
callq 0x8210
testq %rax, %rax
je 0x9048
movq %rax, %r14
movl $0x400, %edx            # imm = 0x400
movq %rax, %rdi
movq %rbx, %rsi
callq 0xf384
movq %r15, 0x400(%r14)
jmp 0x904b
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/cfs.c
// Function: cfsDestroy
void cfsDestroy( cfsPtr pCfs )
{
    if ( NULL != pCfs )  {
        if ( NULL != pCfs ) fclose( pCfs->fpr );
        free( pCfs );
    }
    return;
}

// Assembly:
testq %rdi, %rdi
je 0x9072
pushq %rbx
movq %rdi, %rbx
movq 0x400(%rdi), %rdi
callq 0x8100
movq %rbx, %rdi
popq %rbx
jmp 0x8040
retq
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/cfs.c
// Function: cfsFetchNum
double cfsFetchNum( cfsPtr pCfs, char *varName, double defaultValue )
{
    double retValue;
    char   defaultValueString[256];
    char   *w;

    snprintf( defaultValueString, 256, "%lf", defaultValue );
    w = cfsFetchStr( pCfs, varName, defaultValueString );

    if ( 1 != sscanf( w, "%lf", &retValue )) retValue = defaultValue;

    return( retValue );
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x13e13(%rip), %r15     # 0x1d098
leaq 0x10(%rsp), %r12
movl $0x100, %esi            # imm = 0x100
movq %r12, %rdi
movq %r15, %rdx
movsd %xmm0, (%rsp)
movb $0x1, %al
callq 0x8190
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x9073
leaq 0x22a8a(%rip), %rdi     # 0x2bd40
leaq 0x8(%rsp), %rdx
movq %r15, %rsi
xorl %eax, %eax
callq 0x82d0
cmpl $0x1, %eax
je 0x92d1
movsd (%rsp), %xmm0
jmp 0x92d7
movsd 0x8(%rsp), %xmm0
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/rdrv.c
// Function: rdrvLogFile
void rdrvLogFile( char *buf, int n, char *fileName )
{
    int   i;
    FILE *fpw;

    if (fileName != NULL) {
        if (strlen( fileName ) != 0) {
            if (NULL != (fpw = fopen( fileName, "wb" ))) {
                for ( i = 0; i<n; i++ ) { fprintf( fpw, "%c", buf[i] ); }
                fclose( fpw );
            }
        }
    }
    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdx, %rdx
je 0x9345
cmpb $0x0, (%rdx)
je 0x9345
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x12294(%rip), %rsi     # 0x1b59a
movq %rdx, %rdi
callq 0x8320
testq %rax, %rax
je 0x9345
movq %rax, %r14
testl %ebp, %ebp
jle 0x9335
movl %ebp, %r15d
xorl %r12d, %r12d
movsbl (%rbx,%r12), %edi
movq %r14, %rsi
callq 0x81e0
incq %r12
cmpq %r12, %r15
jne 0x9320
movq %r14, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x8100
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/rdrv.c
// Function: rdrvReceive
int rdrvReceive( rdrvObj *rPtr, char *bufin )
{
    int n, i;

    for ( i = 0; i<20; i++ ) {
#ifdef _WIN32
        n = recv( rPtr->sockfd, bufin, BUFSIZE_R, 0);
#else
        n = read( rPtr->sockfd, bufin, BUFSIZE_R );
#endif
        if ( n != -1 ) break;
        usleep( RDRV_DELAY_RCVPOLL20 ); 
   }
    if ( n != -1 ) {

#if RDRV_DEBUGPRINT
        printf("Rcvd: ");
        for (i=0; i<n; i++) printf("%02x ", 0xff & bufin[i]);  // printf("%03d %02x\n", i, bufin[i]);
        printf("\n");
#endif

        if ( n < RCVHDRSIZE ) {
            n = -1;
        }
        else {
            n = n - RCVHDRSIZE;
            if ( n != 0 ) {
                for (i = 0; i<n; i++) {
                    bufin[i] = bufin[i+RCVHDRSIZE];
                }
            }
        }
    }
    return( n );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x14, %ebp
movl 0x154(%r14), %edi
movl $0x4000, %edx           # imm = 0x4000
movq %rbx, %rsi
callq 0x81f0
movq %rax, %r15
cmpl $-0x1, %r15d
jne 0x942c
movl $0x186a0, %edi          # imm = 0x186A0
callq 0x83f0
decl %ebp
jne 0x93fa
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x9453
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0xc, %r15d
jl 0x9453
addl $-0xc, %r15d
je 0x9451
leaq 0xc(%rbx), %rsi
movl %r15d, %edx
movq %rbx, %rdi
callq 0x8300
movl %r15d, %eax
jmp 0x9453
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/rdrv.c
// Function: rdrvInit
rdrvObj *rdrvInit( char *hostName, int portNo, char *rconPassword )
{
#ifdef _WIN32
    WSADATA  wsaData;
#endif
    rdrvObj *rPtr;

    rPtr = (rdrvObj *) calloc( 1, sizeof( rdrvObj ) );
    rPtr->isConnected = 0;
    if (NULL != rPtr) {
        rPtr->sockfd = -1;
        strlcpy(rPtr->rconPassword, rconPassword, RCONPASSMAX);
        rPtr->portNo = portNo;
        strlcpy(rPtr->hostName, hostName, RCONHOSTMAX);
#ifdef _WIN32
        WSAStartup(MAKEWORD(2,2), &wsaData);
#endif
    }
    return( rPtr );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movl $0x1, %edi
movl $0x170, %esi            # imm = 0x170
callq 0x8210
movq %rax, %r15
movl $0xffffffff, 0x154(%rax) # imm = 0xFFFFFFFF
leaq 0x104(%rax), %rdi
movl $0x50, %edx
movq %rbx, %rsi
callq 0xf384
movl %ebp, 0x100(%r15)
movl $0x100, %edx            # imm = 0x100
movq %r15, %rdi
movq %r14, %rsi
callq 0xf384
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/rdrv.c
// Function: rdrvXmtRcv
int rdrvXmtRcv( rdrvObj *rPtr, int msgType, char *rconCmd, char *rconResp )
{
    int n, errCode = 0, retryCount = 0;

    while ( retryCount++ < 5 ) {
        if ( 0 == (errCode = rdrvSend( rPtr, msgType, rconCmd ))) {
            usleep( RDRV_DELAY_XMT2RCV );
            n = rdrvReceive( rPtr, rconResp );
            if ( n >= 0 ) break;
            if ( n <  0 ) usleep( RDRV_DELAY_RETRANSMIT );
        }
    }
    if ( errCode || ( retryCount >= 5) ) n = -1;
    
    return( n );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r15
callq 0x934e
movl $0x2710, %edi           # imm = 0x2710
callq 0x83f0
movq %r15, %rdi
movq %rbx, %rsi
callq 0x93e8
xorl %r12d, %r12d
testl %eax, %eax
jns 0x971a
jmp 0x9700
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0x934e
movl $0x2710, %edi           # imm = 0x2710
callq 0x83f0
movq %r15, %rdi
movq %rbx, %rsi
callq 0x93e8
incl %r12d
testl %eax, %eax
jns 0x9712
movl $0x7a120, %edi          # imm = 0x7A120
callq 0x83f0
cmpl $0x4, %r12d
jne 0x96d7
jmp 0x971f
cmpl $0x4, %r12d
setae %r12b
testb %r12b, %r12b
je 0x9724
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/rdrv.c
// Function: rdrvCommand
int rdrvCommand( rdrvObj *rPtr, int msgType, char *rconCmd, char *rconResp, int *bytesRead )
{
    int         bytesRead2, errCode;
    static char rconRespCont[BUFSIZE_R];                // for receiving continuation buffer
    static char *rconCmdBlank = "";                               // for sending null string  

    errCode = _rdrvCommand( rPtr, msgType, rconCmd, rconResp, bytesRead );

    while (0 == errCode ) {

        // The above response code postfixes the data with "0x00 0x00" representing end of message
        // BUT this "0x00 0x00" will be missing if data has additional continuation packet(s)
        //
        errCode = _rdrvCommand( rPtr, 0, rconCmdBlank, rconRespCont, &bytesRead2 );
        if ( bytesRead2 <= 2) break;    // if there is no continuation, break out

        logPrintf(LOG_LEVEL_INFO, "rdrv", "Continuation RCON packet %02x %02x %02x containing ::%s::", 
            rconRespCont[0], rconRespCont[1], rconRespCont[2], &rconRespCont[3] );

        // Concatenate the continuation data to the end of master receive buffer
        // First 3 bytes of cont response should be { 0x00 0x00 0x80 } so we skip that
        //
        if (( *bytesRead + bytesRead2 - 3 ) >=  BUFSIZE_R ) break;   // memory bounds safety check
        memcpy( &rconResp[ *bytesRead ], &rconRespCont[ 3 ], bytesRead2 - 3 );
        *bytesRead += (bytesRead2 - 3);          // update totoal size not including 3 byte header
        
    }

    return( errCode );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbx
movq %rcx, %r14
movq %rdi, %r15
callq 0x97f9
movl %eax, %r12d
testl %eax, %eax
je 0x9762
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x231da(%rip), %r13     # 0x2c943
movq %r15, %rdi
xorl %esi, %esi
leaq 0x11f94(%rip), %rdx     # 0x1b709
leaq 0x231c4(%rip), %rcx     # 0x2c940
leaq 0x14(%rsp), %r8
callq 0x97f9
movl %eax, %r12d
movl 0x14(%rsp), %ebp
cmpl $0x3, %ebp
jl 0x9750
movsbl 0x231a7(%rip), %ecx     # 0x2c940
movsbl 0x231a0(%rip), %r8d     # 0x2c941
movsbl 0x23199(%rip), %r9d     # 0x2c942
movq %r13, (%rsp)
movl $0x2, %edi
leaq 0x11de4(%rip), %rsi     # 0x1b59d
leaq 0x11e5a(%rip), %rdx     # 0x1b61a
xorl %eax, %eax
callq 0x1a3e3
movslq (%rbx), %rdi
leal (%rdi,%rbp), %eax
cmpl $0x4002, %eax           # imm = 0x4002
jg 0x9750
addq %r14, %rdi
addl $-0x3, %ebp
movq %r13, %rsi
movq %rbp, %rdx
callq 0x8290
addl %ebp, (%rbx)
testl %r12d, %r12d
je 0x9769
jmp 0x9750
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/rdrv.c
// Function: rdrvCommand
static int _rdrvCommand( rdrvObj *rPtr, int msgType, char *rconCmd, char *rconResp, int *bytesRead )
{
    int n, exitFlag = 0, retryCount = 0, errCode = 0;

    *bytesRead = 0;

    while ( !exitFlag ) {

        // if no handle (initial or reset condition)
        // try to open the connection.
        //
        if ( rPtr->isConnected == 0 ) {

            // (re-)connect
            //
            rdrvConnect( rPtr );             // ignore the return error
            usleep( RDRV_DELAY_CONN2XMT );
        }

        if ( rPtr->isConnected ) {
            errCode = rdrvSend( rPtr, msgType, rconCmd );
            usleep( RDRV_DELAY_XMT2RCV );
            if ( 0 == errCode ) {
                n = rdrvReceive( rPtr, rconResp );
                if (n > 0)  {
                    *bytesRead = n;
                    exitFlag = 1;
                }
                else {
                    *bytesRead = 0;
                    errCode = 1;
                }
            }
            if ( 0 != errCode ) {
                // disconnect and reconnect
                //
                logPrintf( LOG_LEVEL_CRITICAL, "rdrv", "Warning: RCON comms lost - re-opening with new channel");
                rdrvDisconnect( rPtr );  // ignore this error
                usleep( RDRV_DELAY_RETRY_DISC2CONN );
                rdrvConnect( rPtr );     // ignore this error
                usleep( RDRV_DELAY_RETRY_CONN2XMT );
            }
        }

        ++retryCount;
        if ( retryCount > 3 ) {
            exitFlag = 1;
        }
    }
    if ( retryCount > 3 ) errCode = 2;
    return( errCode );
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %r12
movl $0x0, (%r8)
xorl %r13d, %r13d
cmpl $0x0, 0x16c(%r12)
jne 0x9848
movq %r12, %rdi
callq 0x945e
movl $0x3d090, %edi          # imm = 0x3D090
callq 0x83f0
cmpl $0x0, 0x16c(%r12)
je 0x98d0
movq %r12, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x934e
movl $0x2710, %edi           # imm = 0x2710
callq 0x83f0
movq %r12, %rdi
movq %r14, %rsi
callq 0x93e8
testl %eax, %eax
movl $0x0, %ecx
cmovlel %ecx, %eax
movl %eax, (%rbx)
jg 0x98e8
xorl %edi, %edi
leaq 0x11d1c(%rip), %rsi     # 0x1b59d
leaq 0x11dcc(%rip), %rdx     # 0x1b654
xorl %eax, %eax
callq 0x1a3e3
movl 0x154(%r12), %edi
callq 0x81d0
movl $0xffffffff, 0x154(%r12) # imm = 0xFFFFFFFF
movl $0x0, 0x16c(%r12)
movl $0xf4240, %edi          # imm = 0xF4240
callq 0x83f0
movq %r12, %rdi
callq 0x945e
movl $0xf4240, %edi          # imm = 0xF4240
callq 0x83f0
leal 0x1(%r13), %eax
cmpl $0x3, %r13d
movl %eax, %r13d
jb 0x981c
movl $0x2, %eax
jmp 0x98f3
xorl %eax, %eax
cmpl $0x3, %r13d
setae %al
addl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdMacros
int _cmdMacros( char *arg, char *arg2, char *passThru ) 
{
    int i, j = 1, errCode = 1;
    char *w;
    char statusIn[ 1024 ];

    for (i = 0; i<NUM_MACROS; i++) {
        w = getWord( picladminConfig.macros[i], 0, "\007");                // get the macro label
        if ( w != NULL ) {                                       // skip blank entries (possible)
            if ( 0 == strcmp( arg, w ) ) {                         // check if operator cmd match
                while ( NULL != ( w = getWord( picladminConfig.macros[i], j++, "\007" )) ) {
                    errCode = (0 == apiRcon( w, statusIn ));
                    if ( errCode ) break;
                } 
                break;
            }
        }
    }
    _stddResp( errCode );   // ok or error message to game

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rdi, %r14
xorl %r13d, %r13d
leaq 0x2ae9a(%rip), %rbp     # 0x34940
leaq 0x11c5b(%rip), %r15     # 0x1b708
leaq 0x2c290(%rip), %r12     # 0x35d44
leaq 0x4004(,%rbp), %rbx
addq %r13, %rbx
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0xf82d
testq %rax, %rax
je 0x9ae0
movq %r14, %rdi
movq %rax, %rsi
callq 0x8220
testl %eax, %eax
je 0x9b35
addq $0x400, %r13            # imm = 0x400
cmpq $0x20000, %r13          # imm = 0x20000
jne 0x9ab4
callq 0x83c0
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x21, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
movslq %eax, %rdi
shlq $0xa, %rdi
addq %r12, %rdi
xorl %eax, %eax
callq 0x134e5
xorl %eax, %eax
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x11bcc(%rip), %rdx     # 0x1b708
movq %rbx, %rdi
movl $0x1, %esi
callq 0xf82d
testq %rax, %rax
je 0x9af0
movl $0x2, %ebp
movq %rsp, %r14
leaq 0x11bab(%rip), %r15     # 0x1b708
leaq 0x2ade0(%rip), %r13     # 0x34944
movq %rax, %rdi
movq %r14, %rsi
callq 0x13827
testl %eax, %eax
je 0x9af0
movq %rbx, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0xf82d
incl %ebp
testq %rax, %rax
jne 0x9b64
movq %r13, %r12
jmp 0x9af0
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdMacrosList
int _cmdMacrosList( char *arg, char *arg2, char *passThru ) 
{
    int i, errCode = 1;
    char listOut[ 1024 ];

    strlcpy( listOut, "Macros: ", 1024 ); 

    for (i = 0; i<NUM_MACROS; i++) {
        if ( 0 != strlen( picladminConfig.macros[i] )) {    // skip blank entries (possible)
            strlcat( listOut, getWord( picladminConfig.macros[i], 0, "\007" ), 1024 );
            strlcat( listOut, " ", 1024 );
            if ( strlen( listOut ) > 40 ) {
                apiSaySys( listOut );
                strclr( listOut );
            }
            errCode = 0;
        }
    }
    if ( errCode ) {
        apiSaySys( "No Macros defined in config" );
    }
    else {
        if (0 != strlen( listOut )) apiSaySys( listOut );
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movabsq $0x203a736f7263614d, %rax # imm = 0x203A736F7263614D
movq %rsp, %rbx
movq %rax, (%rbx)
movb $0x0, 0x8(%rbx)
movl $0x1, %ebp
xorl %r12d, %r12d
leaq 0x2ad79(%rip), %r13     # 0x34940
leaq 0x11b3a(%rip), %r14     # 0x1b708
leaq 0x12579(%rip), %r15     # 0x1c14e
cmpb $0x0, 0x4004(%r12,%r13)
je 0x9c39
leaq (%r12,%r13), %rdi
addq $0x4004, %rdi           # imm = 0x4004
xorl %ebp, %ebp
xorl %esi, %esi
movq %r14, %rdx
callq 0xf82d
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
movq %rax, %rsi
callq 0xf310
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
movq %r15, %rsi
callq 0xf310
movq %rbx, %rdi
callq 0x8120
cmpq $0x29, %rax
jb 0x9c39
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %eax, %eax
callq 0x134e5
movq %rbx, %rdi
callq 0xf829
addq $0x400, %r12            # imm = 0x400
cmpq $0x20000, %r12          # imm = 0x20000
jne 0x9bd5
testl %ebp, %ebp
je 0x9c56
leaq 0x11abf(%rip), %rbx     # 0x1b713
jmp 0x9c5c
cmpb $0x0, (%rsp)
je 0x9c66
movq %rbx, %rdi
xorl %eax, %eax
callq 0x134e5
xorl %eax, %eax
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdDeveloper
int _cmdDeveloper( char *arg, char *arg2, char *passThru ) 
{ 
    long int argLong;
    char p2pVarName[255];
    int errCode = 1;

    if ( 0 != strlen( arg )) {
        strlcpy( p2pVarName, "dev.p2p.", 80 );
        strlcat( p2pVarName, arg,        80 );
        errCode = 0;
    } 

    if (1 == sscanf( arg2, "%ld", &argLong )) 
        p2pSetL( p2pVarName, argLong );
    else 
        argLong = 0;

    argLong = p2pGetL( p2pVarName, argLong );
    apiSaySys( "Developer var = '%s' value = '%ld'", p2pVarName, argLong );

    return errCode; 
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rsi, %r14
cmpb $0x0, (%rdi)
je 0x9e16
movq %rdi, %rsi
movabsq $0x2e7032702e766564, %rax # imm = 0x2E7032702E766564
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
movb $0x0, 0x8(%rdi)
movl $0x50, %edx
callq 0xf310
xorl %ebx, %ebx
jmp 0x9e1b
movl $0x1, %ebx
leaq 0x14d90(%rip), %rsi     # 0x1ebb2
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
xorl %eax, %eax
callq 0x82d0
cmpl $0x1, %eax
jne 0x9e4c
movq 0x8(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x180a5
movq 0x8(%rsp), %rsi
jmp 0x9e57
movq $0x0, 0x8(%rsp)
xorl %esi, %esi
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x181e1
movq %rax, 0x8(%rsp)
leaq 0x118e7(%rip), %rdi     # 0x1b757
movq %r14, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x134e5
movl %ebx, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdLock
int _cmdLock( char *arg, char *arg2, char *passThru ) 
{  
    int errCode = 0;

    if (0 == strcmp( "off", arg )) {
        p2pSetL( "pigateway.p2p.lockOut", 0L );
        apiSaySys( "Server public slots are UNLOCKED." );
    }
    else if (0 == strcmp( "on", arg )) {
        p2pSetL( "pigateway.p2p.lockOut", 1L );
        apiSaySys( "Server LOCKED to public until next map." );
    }
    else if (0 == strcmp( "perm", arg )) {
        p2pSetL( "pigateway.p2p.lockOut", 2L );
        apiSaySys( "Server LOCKED to public until unlocked.");
    }
    else if (0 == strcmp( "clan", arg )) {
        p2pSetL( "pigateway.p2p.lockOut", 3L );
        apiSaySys( "Server LOCKED for clan-only until unlocked.");
    }
    else if (0 == strlen( arg )) {
        _sayLockStatus( 0 );
    }
    else {
        apiSaySys( "Missing or incorrect option: off|on|perm|clan" );
    }

    // _stddResp( errCode );   // ok or error message to game
    
    return errCode; 
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x118e0(%rip), %rdi     # 0x1b77a
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0x9ef7
movzbl (%rbx), %ebp
movl %ebp, %eax
subl $0x6f, %eax
jne 0x9ebd
movzbl 0x1(%rbx), %eax
subl $0x6e, %eax
jne 0x9ebd
movzbl 0x2(%rbx), %eax
negl %eax
testl %eax, %eax
je 0x9f0e
leaq 0x11914(%rip), %rdi     # 0x1b7de
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0x9f28
leaq 0x11983(%rip), %rdi     # 0x1b860
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0x9f42
testb %bpl, %bpl
je 0x9f6a
leaq 0x11942(%rip), %rdi     # 0x1b837
jmp 0x9f5a
leaq 0x11880(%rip), %rdi     # 0x1b77e
xorl %esi, %esi
callq 0x180a5
leaq 0x11888(%rip), %rdi     # 0x1b794
jmp 0x9f5a
leaq 0x11869(%rip), %rdi     # 0x1b77e
movl $0x1, %esi
callq 0x180a5
leaq 0x11890(%rip), %rdi     # 0x1b7b6
jmp 0x9f5a
leaq 0x1184f(%rip), %rdi     # 0x1b77e
movl $0x2, %esi
callq 0x180a5
leaq 0x118a3(%rip), %rdi     # 0x1b7e3
jmp 0x9f5a
leaq 0x11835(%rip), %rdi     # 0x1b77e
movl $0x3, %esi
callq 0x180a5
leaq 0x118b1(%rip), %rdi     # 0x1b80b
xorl %eax, %eax
callq 0x134e5
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %rbp
retq
leaq 0x1180d(%rip), %rdi     # 0x1b77e
xorl %esi, %esi
callq 0x181e1
cmpb $0x3, %al
je 0x9fa8
movzbl %al, %eax
cmpl $0x2, %eax
je 0x9f97
cmpl $0x1, %eax
jne 0x9fb9
movb $0x0, 0x4(%rsp)
movl $0x276e6f27, (%rsp)     # imm = 0x276E6F27
jmp 0x9fc7
movl $0x276d72, 0x3(%rsp)    # imm = 0x276D72
movl $0x72657027, (%rsp)     # imm = 0x72657027
jmp 0x9fc7
movl $0x276e61, 0x3(%rsp)    # imm = 0x276E61
movl $0x616c6327, (%rsp)     # imm = 0x616C6327
jmp 0x9fc7
movw $0x27, 0x4(%rsp)
movl $0x66666f27, (%rsp)     # imm = 0x66666F27
leaq 0x12796(%rip), %rdi     # 0x1c764
movq %rsp, %rsi
xorl %eax, %eax
callq 0x134e5
jmp 0x9f61
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdGeneva
int _cmdGeneva( char *arg, char *arg2, char *passThru ) 
{  
    int errCode = 0;

    if (0 == strcmp( "off", arg )) {
        p2pSetL( "piantirush.p2p.genevaKick", 0L );
        apiSaySys( "Geneva Rule Off" );
    }
    else if (0 == strcmp( "on", arg )) {
        p2pSetL( "piantirush.p2p.genevaKick", 1L );
        apiSaySys( "*Geneva Rule is ON - weapons restrictions apply!" );
    }
    else {
        switch ( p2pGetL( "piantirush.p2p.genevaKick", 0L ) ) {
            case 1L:  apiSaySys( "Geneva is ON - weapons restrictions apply" );    break;
            default:  apiSaySys( "Geneva is OFF - no restrictions" );  
        }
    }
    
    return errCode; 
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x11795(%rip), %rdi     # 0x1b77a
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0xa032
movzbl (%rbx), %eax
subl $0x6f, %eax
jne 0xa006
movzbl 0x1(%rbx), %eax
subl $0x6e, %eax
jne 0xa006
movzbl 0x2(%rbx), %eax
negl %eax
leaq 0x11856(%rip), %rdi     # 0x1b865
testl %eax, %eax
je 0xa049
xorl %esi, %esi
callq 0x181e1
cmpq $0x1, %rax
leaq 0x1189b(%rip), %rax     # 0x1b8c0
leaq 0x118be(%rip), %rdi     # 0x1b8ea
cmoveq %rax, %rdi
jmp 0xa05a
leaq 0x1182c(%rip), %rdi     # 0x1b865
xorl %esi, %esi
callq 0x180a5
leaq 0x11838(%rip), %rdi     # 0x1b87f
jmp 0xa05a
movl $0x1, %esi
callq 0x180a5
leaq 0x11835(%rip), %rdi     # 0x1b88f
xorl %eax, %eax
callq 0x134e5
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdWax
int _cmdWax( char *arg, char *arg2, char *passThru ) 
{  
    int errCode = 0;

    if (0 == strcmp( "off", arg )) {
        p2pSetL( "piantirush.p2p.training", 0L );
        apiSaySys( "Wax Off - starting next objective");
    }
    else if (0 == strcmp( "on", arg )) {
        p2pSetL( "piantirush.p2p.training", 1L );
        apiSaySys( "Wax On - starting next objective");
        p2pSetF("piantirush.p2p.fast", 0.0 );             // turn off FAST mode
    }
    else if (0 == strcmp( "perm", arg )) {
        p2pSetL( "piantirush.p2p.training", 2L );
        apiSaySys( "Wax On/Perm - starting next objective");
        p2pSetF("piantirush.p2p.fast", 0.0 );             // turn off FAST mode
    }
    else {
        switch ( p2pGetL( "piantirush.p2p.training", 0L ) ) {
            case 1L:  apiSaySys( "Wax is ON" );    break;
            case 2L:  apiSaySys( "Wax is PERM" );  break;
            default:  apiSaySys( "Wax is OFF" );  
        }
    }
    
    return errCode; 
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x1170a(%rip), %rdi     # 0x1b77a
movq %rbx, %rsi
callq 0x8220
testl %eax, %eax
je 0xa0cd
movzbl (%rbx), %eax
subl $0x6f, %eax
jne 0xa091
movzbl 0x1(%rbx), %eax
subl $0x6e, %eax
jne 0xa091
movzbl 0x2(%rbx), %eax
negl %eax
testl %eax, %eax
je 0xa0eb
leaq 0x11740(%rip), %rdi     # 0x1b7de
movq %rbx, %rsi
callq 0x8220
leaq 0x1185d(%rip), %rdi     # 0x1b90a
testl %eax, %eax
je 0xa105
xorl %esi, %esi
callq 0x181e1
cmpq $0x2, %rax
je 0xa130
cmpq $0x1, %rax
jne 0xa139
leaq 0x118d4(%rip), %rdi     # 0x1b99f
jmp 0xa0e2
leaq 0x11836(%rip), %rdi     # 0x1b90a
xorl %esi, %esi
callq 0x180a5
leaq 0x11840(%rip), %rdi     # 0x1b922
xorl %eax, %eax
callq 0x134e5
jmp 0xa12c
leaq 0x11818(%rip), %rdi     # 0x1b90a
movl $0x1, %esi
callq 0x180a5
leaq 0x11841(%rip), %rdi     # 0x1b944
jmp 0xa116
movl $0x2, %esi
callq 0x180a5
leaq 0x11863(%rip), %rdi     # 0x1b979
xorl %eax, %eax
callq 0x134e5
leaq 0x11841(%rip), %rdi     # 0x1b965
xorps %xmm0, %xmm0
callq 0x17f94
xorl %eax, %eax
popq %rbx
retq
leaq 0x11872(%rip), %rdi     # 0x1b9a9
jmp 0xa0e2
leaq 0x11875(%rip), %rdi     # 0x1b9b5
jmp 0xa0e2
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdStrict
int _cmdStrict( char *arg, char *arg2, char *passThru ) 
{
    switch ( p2pGetL( "piantirush.p2p.training", 0L ) ) {
    case 0L:
        p2pSetL( "piantirush.p2p.training", 1L );
        apiSaySys( picladminConfig.strictTutorial );
        p2pSetF("piantirush.p2p.fast", 0.0 );             // turn off FAST mode
        break;
    default:
        apiSaySys( "Strict/Wax mode already enabled" );
    };
    return 0;
}

// Assembly:
pushq %rax
leaq 0x117c0(%rip), %rdi     # 0x1b90a
xorl %esi, %esi
callq 0x181e1
testq %rax, %rax
je 0xa166
leaq 0x11863(%rip), %rdi     # 0x1b9c0
xorl %eax, %eax
callq 0x134e5
jmp 0xa194
leaq 0x1179d(%rip), %rdi     # 0x1b90a
movl $0x1, %esi
callq 0x180a5
leaq 0x537de(%rip), %rdi     # 0x5d95c
xorl %eax, %eax
callq 0x134e5
leaq 0x117d9(%rip), %rdi     # 0x1b965
xorps %xmm0, %xmm0
callq 0x17f94
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdThirdWave
int _cmdThirdWave( char *arg, char *arg2, char *passThru ) 
{  
    int errCode = 0;

    if (0 == strcmp( "off", arg )) {
        p2pSetL( "pithirdwave.p2p.thirdWaveEnable", 0L );
        apiSay( "ThirdWave Algorithm DISABLED." );
    }
    else if (0 == strcmp( "on", arg )) {
        p2pSetL( "pithirdwave.p2p.thirdWaveEnable", 1L );
        apiSay( "ThirdWave Algorithm ENABLED." );
    }
    else
        errCode = 1;

    _stddResp( errCode );   // ok or error message to game
    
    return errCode; 
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x115d4(%rip), %rdi     # 0x1b77a
movq %r14, %rsi
callq 0x8220
xorl %ebx, %ebx
testl %eax, %eax
je 0xa1e0
movzbl (%r14), %eax
subl $0x6f, %eax
jne 0xa1cc
movzbl 0x1(%r14), %eax
subl $0x6e, %eax
jne 0xa1cc
movzbl 0x2(%r14), %eax
negl %eax
testl %eax, %eax
je 0xa1eb
leaq 0x2bb6b(%rip), %r14     # 0x35d44
movl $0x1, %ebx
jmp 0xa214
leaq 0x11819(%rip), %r14     # 0x1ba00
xorl %esi, %esi
jmp 0xa1f7
leaq 0x1182c(%rip), %r14     # 0x1ba1e
movl $0x1, %esi
leaq 0x117e2(%rip), %rdi     # 0x1b9e0
callq 0x180a5
movq %r14, %rdi
xorl %eax, %eax
callq 0x13337
leaq 0x2a730(%rip), %r14     # 0x34944
callq 0x83c0
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x21, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
movslq %eax, %rdi
shlq $0xa, %rdi
addq %r14, %rdi
xorl %eax, %eax
callq 0x134e5
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/schroeder-lvb[P]sissm/src/picladmin.c
// Function: cmdBotFixed
int _cmdBotFixed( char *arg, char *arg2, char *passThru ) 
{  
    int errCode = 1, botCount;

    if (1 == sscanf( arg, "%d", &botCount )) {
        if ( ( botCount <=  picladminConfig.botMaxAllowed ) && ( botCount >= 0 ) ) {
           apiGameModePropertySet( "minimumenemies", _int2str( botCount/2 ) ); 
           apiGameModePropertySet( "maximumenemies", _int2str( botCount/2 ) );  
           apiGameModePropertySet( "soloenemies", _int2str( botCount/2 ) );  
           p2pSetL( "picladmin.p2p.botAdminControl", 1L );  // flag as admin control
           errCode = 0;
        }
    }
    _stddResp( errCode );   // ok or error message to game
    
    return errCode; 
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0x11e66(%rip), %rsi     # 0x1c0c5
leaq 0xc(%rsp), %rdx
xorl %eax, %eax
callq 0x82d0
leaq 0x2bad2(%rip), %r14     # 0x35d44
movl $0x1, %ebx
cmpl $0x1, %eax
jne 0xa33f
movl 0xc(%rsp), %ecx
testl %ecx, %ecx
js 0xa33f
cmpl 0x4e6b2(%rip), %ecx     # 0x58944
jg 0xa33f
shrl %ecx
leaq 0x53bcf(%rip), %r14     # 0x5de70
leaq 0x11e1d(%rip), %r15     # 0x1c0c5
xorl %ebx, %ebx
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x8190
leaq 0x11778(%rip), %rdi     # 0x1ba3b
movq %r14, %rsi
callq 0x131ed
movl 0xc(%rsp), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x8190
leaq 0x11759(%rip), %rdi     # 0x1ba4a
movq %r14, %rsi
callq 0x131ed
movl 0xc(%rsp), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x8190
leaq 0x1173a(%rip), %rdi     # 0x1ba59
movq %r14, %rsi
callq 0x131ed
leaq 0x11737(%rip), %rdi     # 0x1ba65
movl $0x1, %esi
callq 0x180a5
leaq 0x2a605(%rip), %r14     # 0x34944
callq 0x83c0
cltq
imulq $0x66666667, %rax, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x21, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,4), %ecx
subl %ecx, %eax
movslq %eax, %rdi
shlq $0xa, %rdi
addq %r14, %rdi
xorl %eax, %eax
callq 0x134e5
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq