// File: /workspace/github_c_makefile_star2_O1/canboat[P]canboat/n2kd/main.c
// Function: handleClientRequest
static void handleClientRequest(int i)
{
  ssize_t r;
  char   *p;
  size_t  remain;

  if (stream[i].len >= sizeof(stream[i].buffer) - 2)
  {
    logAbort("Input line on stream %d too long: %s\n", i, stream[i].buffer);
  }
  remain = sizeof(stream[i].buffer) - stream[i].len - 2;

  logDebug("handleClientRequest: read i=%d\n", i);
  logDebug("read %s i=%d fd=%d len=%u remain=%u\n", streamTypeName[stream[i].type], i, stream[i].fd, stream[i].len, remain);
  r = read(stream[i].fd, stream[i].buffer + stream[i].len, remain);

  if (r <= 0)
  {
    logDebug("read %s i=%d fd=%d r=%d\n", streamTypeName[stream[i].type], i, stream[i].fd, r);
    if (stream[i].type == DATA_INPUT_STREAM)
    {
      stop = true;
    }
    else
    {
      closeStream(i);
      return;
    }
  }
  logDebug("processing stream %d\n", i);

  stream[i].len += r;
  stream[i].buffer[stream[i].len] = 0;

  while (stream[i].len > 0)
  {
    size_t len;

    logDebug("processing stream %d buffer '%-1.20s...' len=%zu\n", i, stream[i].buffer, stream[i].len);
    p = strchr(stream[i].buffer, '\n');
    if (!p)
    {
      break;
    }
    len = p - stream[i].buffer;
    if (stream[i].type == CLIENT_INPUT_STREAM)
    {
      write(stdoutfd, stream[i].buffer, len + 1);
    }
    else
    {
      sbAppendData(&tcpMessage, stream[i].buffer, len + 1);
      if (stream[i].type != DATA_INPUT_STREAM || stream[outputIdx].type == DATA_OUTPUT_COPY)
      {
        /* Send all TCP client input and the main stdin stream if the mode is -o */
        /* directly to stdout */
        sbAppendData(&outMessage, stream[i].buffer, len + 1);
      }
    }
    *p = 0;
    if (storeMessage(stream[i].buffer, len) && haveNMEA0183Client)
    {
      convertJSONToNMEA0183(&nmeaMessage, stream[i].buffer);
    }
    p++, len++;
    stream[i].len -= len;

    /* Now remove [buffer..p> == the entire line */
    memmove(stream[i].buffer, p, stream[i].len + 1);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl %edi, %r13d
movslq %edi, %rax
imulq $0x8038, %rax, %rax     # imm = 0x8038
leaq 0xc03f(%rip), %r15      # 0xe520
leaq (%r15,%rax), %r12
cmpq $0x7ffe, 0x8030(%rax,%r15) # imm = 0x7FFE
jb 0x2509
leaq 0x18(%r12), %rdx
leaq 0x73b0(%rip), %rdi      # 0x98af
movl %r13d, %esi
xorl %eax, %eax
callq 0x766f
movl $0x7ffe, %ebx           # imm = 0x7FFE
subq 0x8030(%r12), %rbx
leaq 0x73b8(%rip), %rdi      # 0x98d5
movl %r13d, %esi
xorl %eax, %eax
callq 0x7549
movl (%r12), %ecx
movl 0x4(%r12), %eax
leaq 0xbcc9(%rip), %r14      # 0xe200
movq (%r14,%rax,8), %rsi
movq 0x8030(%r12), %r8
leaq 0x73ab(%rip), %rdi      # 0x98f5
movl %r13d, %edx
movq %rbx, %r9
xorl %eax, %eax
callq 0x7549
movl (%r12), %edi
leaq 0x18(%r12), %rbp
movq 0x8030(%r12), %rsi
addq %rbp, %rsi
movq %rbx, %rdx
callq 0x21b0
movq %rax, %rbx
testq %rax, %rax
jg 0x25af
movl (%r12), %ecx
movl 0x4(%r12), %eax
movq (%r14,%rax,8), %rsi
leaq 0x738b(%rip), %rdi      # 0x991a
movl %r13d, %edx
movq %rbx, %r8
xorl %eax, %eax
callq 0x7549
cmpl $0xe, 0x4(%r12)
jne 0x3066
movb $0x1, 0xbf63(%rip)      # 0xe512
leaq 0x737d(%rip), %rdi      # 0x9933
movl %r13d, %esi
xorl %eax, %eax
callq 0x7549
movq 0x8030(%r12), %rax
addq %rbx, %rax
movq %rax, 0x8030(%r12)
movb $0x0, 0x18(%r12,%rax)
leaq 0x4(%r12), %rax
movq %rax, 0x98(%rsp)
xorl %ebx, %ebx
movq 0x8030(%r12), %rcx
testq %rcx, %rcx
je 0x3054
leaq 0x7349(%rip), %rdi      # 0x9949
movl %r13d, %esi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x7549
movq %rbp, %rdi
movl $0xa, %esi
callq 0x2110
testq %rax, %rax
je 0x3054
movq %rax, %r14
subq %rbp, %rax
movq %rax, 0x20(%rsp)
leaq 0x1(%rax), %rdx
cmpl $0x2, 0x4(%r12)
movq %rdx, 0x58(%rsp)
jne 0x264e
movl $0x1, %edi
movq %rbp, %rsi
callq 0x20e0
jmp 0x268f
leaq 0x2019ed3(%rip), %rdi   # 0x201c528
movq %rbp, %rsi
callq 0x78d2
cmpl $0xe, 0x4(%r12)
jne 0x267b
movslq 0xbccc(%rip), %rax      # 0xe338
imulq $0x8038, %rax, %rax     # imm = 0x8038
cmpl $0x10, 0x4(%rax,%r15)
jne 0x268f
leaq 0x2019ebe(%rip), %rdi   # 0x201c540
movq %rbp, %rsi
movq 0x58(%rsp), %rdx
callq 0x78d2
movb $0x0, (%r14)
movl %ebx, 0x14(%rsp)
movl $0xff, 0x4c(%rsp)
movl %ebx, 0x10(%rsp)
callq 0x7328
movq %rax, 0x50(%rsp)
movl $0x7, %edi
callq 0x7780
testb %al, %al
je 0x26fc
movq 0x20(%rsp), %rax
cmpq $0x51, %rax
jb 0x26e8
movq 0x98(%rsp), %rcx
leaq (%rcx,%rax), %rdx
leaq 0x72c5(%rip), %rdi      # 0x999e
movq %rbp, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x7549
jmp 0x26fc
leaq 0x72d3(%rip), %rdi      # 0x99c2
movq %rbp, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x7549
movq %rbp, %rdi
leaq 0x72d3(%rip), %rsi      # 0x99d9
callq 0x2370
testq %rax, %rax
je 0x273b
movq (%rbp), %rax
movabsq $0x7473656d6974227b, %rcx # imm = 0x7473656D6974227B
xorq %rcx, %rax
movq 0x3(%rbp), %rcx
movabsq $0x706d617473656d69, %rdx # imm = 0x706D617473656D69
xorq %rdx, %rcx
orq %rax, %rcx
je 0x27db
movq %r14, 0x40(%rsp)
movl $0x10, %ecx
movq %rbp, %rdi
leaq 0x6a6e(%rip), %rsi      # 0x91bd
leaq 0x60(%rsp), %r14
movq %r14, %rdx
callq 0x7c81
testb %al, %al
je 0x27c3
leaq 0x7288(%rip), %rdi      # 0x99ef
movq %r14, %rsi
xorl %eax, %eax
callq 0x7438
movl $0x10, %ecx
movq %rbp, %rdi
leaq 0x729a(%rip), %rsi      # 0x9a1a
movq %r14, %rdx
callq 0x7c81
testb %al, %al
je 0x2fd3
movl 0x60(%rsp), %eax
movl $0x6973, %ecx           # imm = 0x6973
xorl %ecx, %eax
movzbl 0x62(%rsp), %ecx
orw %ax, %cx
jne 0x2fd3
leaq 0x7273(%rip), %rdi      # 0x9a23
xorl %eax, %eax
callq 0x7438
movb $0x1, 0xbbaa(%rip)      # 0xe368
jmp 0x2fd3
leaq 0x7273(%rip), %rdi      # 0x9a3d
xorl %eax, %eax
callq 0x7549
movq 0x40(%rsp), %r14
jmp 0x2ff5
movq 0x20(%rsp), %rax
cmpw $0x7d7d, 0x16(%r12,%rax) # imm = 0x7D7D
je 0x2800
leaq 0x7270(%rip), %rdi      # 0x9a61
movq %rbp, %rsi
xorl %eax, %eax
callq 0x7549
jmp 0x2ff5
movq %r14, 0x40(%rsp)
movl $0x10, %ecx
movq %rbp, %rdi
leaq 0x7268(%rip), %rsi      # 0x9a7c
leaq 0x60(%rsp), %r14
movq %r14, %rdx
callq 0x7c81
testb %al, %al
je 0x283b
movq %r14, %rdi
leaq 0x7df5(%rip), %rsi      # 0xa624
leaq 0x14(%rsp), %rdx
xorl %eax, %eax
callq 0x2240
movl $0x10, %ecx
movq %rbp, %rdi
leaq 0x7236(%rip), %rsi      # 0x9a80
movq %r14, %rdx
callq 0x7c81
testb %al, %al
je 0x286c
movq %r14, %rdi
leaq 0x7dc4(%rip), %rsi      # 0xa624
leaq 0x4c(%rsp), %rdx
xorl %eax, %eax
callq 0x2240
movl $0x10, %ecx
movq %rbp, %rdi
leaq 0x7209(%rip), %rsi      # 0x9a84
movq %r14, %rdx
callq 0x7c81
testb %al, %al
je 0x289f
leaq 0x60(%rsp), %rdi
leaq 0x7d91(%rip), %rsi      # 0xa624
leaq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0x2240
movl 0x10(%rsp), %ecx
cmpl $0x1ffb8, %ecx          # imm = 0x1FFB8
movq 0x40(%rsp), %r14
jg 0x28b8
leal -0xe7ff(%rcx), %edx
jmp 0x28d1
leal -0x40000(%rcx), %eax
leal -0x2e846(%rcx), %edx
cmpl $0x201, %eax            # imm = 0x201
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmovael %eax, %edx
movl %edx, 0x28(%rsp)
movl 0x14(%rsp), %esi
movl 0x4c(%rsp), %edx
leaq 0x71a4(%rip), %rdi      # 0x9a88
movl 0x28(%rsp), %r8d
xorl %eax, %eax
callq 0x7549
movl 0x28(%rsp), %eax
movl 0x10(%rsp), %esi
testl %eax, %eax
js 0x291d
movl $0x78, 0x30(%rsp)
cmpl $0xee00, %esi           # imm = 0xEE00
movq %r12, 0x38(%rsp)
movq %rbp, 0x18(%rsp)
jne 0x2933
xorl %esi, %esi
jmp 0x2b2a
leaq 0x7181(%rip), %rdi      # 0x9aa5
movq %rbp, %rdx
xorl %eax, %eax
callq 0x75dc
jmp 0x2ff5
movl %r13d, 0x8(%rsp)
leaq 0xafe1(%rip), %r14      # 0xd920
leaq 0x673a(%rip), %r12      # 0x9080
xorl %r15d, %r15d
movq (%r14), %r13
movq %rbp, %rdi
movq %r13, %rsi
callq 0x2370
testq %rax, %rax
je 0x2a00
movq %rax, %rbx
movq %rax, %rbp
leaq 0x714e(%rip), %rdi      # 0x9abb
movl %r15d, %esi
movq %r13, %rdx
xorl %eax, %eax
callq 0x7549
movq %r13, %rdi
callq 0x2100
addq %rax, %rbx
cmpb $0x7b, (%rbp,%rax)
jne 0x2a26
movq %rbx, %rdi
leaq 0x7138(%rip), %rsi      # 0x9ad2
callq 0x2370
movq %rax, %r13
movq %rbx, %rdi
movl $0x7d, %esi
callq 0x2110
movq %rax, %rbp
testq %r13, %r13
sete %al
cmpq %rbp, %r13
seta %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x29f1
movq %rbx, %rdi
leaq 0x710a(%rip), %rsi      # 0x9ad9
callq 0x2370
movq %rax, %r13
testq %rax, %rax
setne %cl
cmpq %rbp, %rax
setbe %al
andb %cl, %al
addq $0x7, %r13
testb %al, %al
cmoveq %rbx, %r13
jmp 0x29f7
addq $0x6, %r13
movb $0x1, %al
movq 0x18(%rsp), %rbp
testb %al, %al
jne 0x2a29
incq %r15
addq $0x4, %r12
addq $0x8, %r14
cmpq $0x5, %r15
jne 0x2949
xorl %esi, %esi
movl 0x8(%rsp), %r13d
movq 0x38(%rsp), %r12
jmp 0x2b26
movq %rbx, %r13
movl $0x1, %ebp
xorl %r14d, %r14d
leaq 0x70a9(%rip), %rbx      # 0x9ae1
movsbl (%r13,%r14), %esi
movl $0x4, %edx
movq %rbx, %rdi
callq 0x21a0
incq %r14
decq %rbp
testq %rax, %rax
jne 0x2a38
leaq (%r14,%r13), %rbx
decq %rbx
movq %rbx, 0x30(%rsp)
movq %rbx, %rdi
movl $0x20, %esi
callq 0x2110
movq %rax, %r15
movq %rbx, %rdi
movl $0x22, %esi
callq 0x2110
cmpq %r15, %rax
movq %r15, %rbx
cmovbq %rax, %rbx
testq %r15, %r15
movq 0x30(%rsp), %r15
cmoveq %rax, %rbx
testq %rbx, %rbx
jne 0x2aac
movq %r15, %rdi
callq 0x2100
addq %r13, %rax
leaq (%r14,%rax), %rbx
decq %rbx
cmpq %r15, %rbx
jbe 0x2abd
leaq -0x1(%rbx), %rax
cmpb $0x2c, -0x1(%rbx)
cmoveq %rax, %rbx
movq %rbx, %rdi
subq %r13, %rdi
subq %r14, %rdi
leaq 0x1(%rdi), %r14
addq $0x2, %rdi
callq 0x2220
testq %rax, %rax
jne 0x2aef
leaq 0x7006(%rip), %rdi      # 0x9ae5
movq %rax, %r15
movq %r14, %rsi
xorl %eax, %eax
callq 0x766f
movq %r15, %rax
movq %rax, %rdi
movq %rax, %r15
movq 0x30(%rsp), %rsi
movq %r14, %rdx
callq 0x2200
movq %r15, %rsi
addq %r15, %rbx
subq %r13, %rbx
movb $0x0, (%rbx,%rbp)
movl (%r12), %eax
movl %eax, 0x30(%rsp)
movl 0x8(%rsp), %r13d
movq 0x38(%rsp), %r12
movq 0x18(%rsp), %rbp
movl 0x28(%rsp), %eax
movl %eax, %eax
leaq 0x2019a4d(%rip), %rcx   # 0x201c580
leaq (%rcx,%rax,8), %r14
movq (%r14), %rbx
testq %rbx, %rbx
movq %rsi, 0x8(%rsp)
jne 0x2bc8
cmpq $0x200, 0x20a77fd(%rip) # imm = 0x200
jne 0x2b63
leaq 0x6fac(%rip), %rdi      # 0x9b08
xorl %eax, %eax
callq 0x766f
movl $0x1, %edi
movl $0x40, %esi
callq 0x21c0
movq %rax, %rbx
testq %rax, %rax
jne 0x2b8d
movl $0x40, %esi
leaq 0x6f5f(%rip), %rdi      # 0x9ae5
xorl %eax, %eax
callq 0x766f
movq %rbx, (%r14)
movq 0x20a77b9(%rip), %rax   # 0x20aa350
leaq 0x1(%rax), %rcx
movq %rcx, 0x20a77ae(%rip)   # 0x20aa350
leaq 0x20a67a7(%rip), %rcx   # 0x20a9350
movq %r14, (%rcx,%rax,8)
movl 0x10(%rsp), %esi
leaq 0x6f5f(%rip), %rdi      # 0x9b17
movl 0x28(%rsp), %edx
xorl %eax, %eax
callq 0x7549
movq 0x8(%rsp), %rsi
movq %r14, 0x28(%rsp)
cmpq $0x0, 0x8(%rbx)
je 0x2c35
movl 0x4(%rbx), %r15d
testq %r15, %r15
je 0x2cf9
movl 0x14(%rsp), %ebp
leaq 0x30(%rbx), %r12
xorl %r14d, %r14d
movzbl -0x20(%r12), %eax
cmpl %eax, %ebp
jne 0x2c17
movq (%r12), %rdi
testq %rdi, %rdi
je 0x2c26
testq %rsi, %rsi
je 0x2c17
movq 0x8(%rsp), %rsi
callq 0x21d0
movq 0x8(%rsp), %rsi
testl %eax, %eax
je 0x2c26
incq %r14
addq $0x30, %r12
cmpq %r14, %r15
jne 0x2bec
movl %r15d, %r14d
movq 0x38(%rsp), %r12
movq 0x18(%rsp), %rbp
jmp 0x2cfc
movl 0x10(%rsp), %eax
movl %eax, (%rbx)
movq %rbp, %rdi
leaq 0x6ef2(%rip), %rsi      # 0x9b37
callq 0x2370
movq 0x8(%rsp), %rsi
testq %rax, %rax
je 0x2bd4
movq %rax, %r15
movl %r13d, %r14d
addq $0xf, %r15
movq %r15, %rdi
movl $0x3a, %esi
callq 0x2110
movq %rax, %rbp
movq %r15, %rdi
movl $0x22, %esi
callq 0x2110
cmpq %rbp, %rax
movq %rbp, %r13
cmovbq %rax, %r13
testq %rbp, %rbp
cmoveq %rax, %r13
testq %r13, %r13
je 0x302d
subq %r15, %r13
leaq 0x6ecd(%rip), %rdi      # 0x9b6c
movq %r13, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x7549
leaq 0x1(%r13), %rdi
callq 0x2220
movq %rax, 0x8(%rbx)
testq %rax, %rax
jne 0x2ccf
leaq 0x6e20(%rip), %rdi      # 0x9ae5
movq %r13, %rsi
xorl %eax, %eax
callq 0x766f
movq 0x8(%rbx), %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x2200
movq 0x8(%rbx), %rax
movb $0x0, (%rax,%r13)
movl %r14d, %r13d
movq 0x18(%rsp), %rbp
movq 0x8(%rsp), %rsi
jmp 0x2bd4
xorl %r14d, %r14d
testl %r15d, %r15d
sete %al
cmpl %r15d, %r14d
setne %cl
movl $0x0, %edx
cmovel %edx, %r14d
orb %al, %cl
je 0x2d1a
movl %r14d, %r15d
jmp 0x2d67
movq %r12, %rbp
leaq 0x30(%rbx), %r14
xorl %r12d, %r12d
movq 0x50(%rsp), %rax
cmpq %rax, -0x18(%r14)
jb 0x2d3d
incq %r12
addq $0x30, %r14
cmpq %r12, %r15
jne 0x2d29
jmp 0x2d5f
movb 0x14(%rsp), %al
movb %al, -0x20(%r14)
movq (%r14), %rdi
testq %rdi, %rdi
je 0x2d57
callq 0x2030
movq 0x8(%rsp), %rsi
movq %rsi, (%r14)
movl %r12d, %r15d
xorl %esi, %esi
movq %rbp, %r12
movq 0x18(%rsp), %rbp
movl 0x4(%rbx), %eax
movl %r15d, %edx
cmpl %eax, %r15d
movq %rsi, 0x8(%rsp)
jne 0x2dff
movq %rdx, 0x90(%rsp)
incl %eax
movl %eax, 0x4(%rbx)
leaq (%rax,%rax,2), %r15
shlq $0x4, %r15
addq $0x10, %r15
movq 0x28(%rsp), %r14
movq (%r14), %rdi
movq %r15, %rsi
callq 0x2260
movq %rax, %rbx
testq %rax, %rax
jne 0x2dbd
leaq 0x6d32(%rip), %rdi      # 0x9ae5
movq %r15, %rsi
xorl %eax, %eax
callq 0x766f
movq %rbx, (%r14)
movb 0x14(%rsp), %al
movq 0x90(%rsp), %rdx
leaq (%rdx,%rdx,2), %rcx
shlq $0x4, %rcx
movb %al, 0x10(%rbx,%rcx)
movq 0x8(%rsp), %rax
movq %rax, 0x30(%rbx,%rcx)
xorl %eax, %eax
movq %rax, 0x38(%rbx,%rcx)
movl %eax, 0x14(%rbx,%rcx)
movq %rax, 0x20(%rbx,%rcx)
movl %eax, 0x28(%rbx,%rcx)
movq $0x0, 0x8(%rsp)
movq 0x20(%rsp), %rax
leaq (%rdx,%rdx,2), %r14
shlq $0x4, %r14
movq 0x38(%rbx,%r14), %rdi
leaq 0x2(%rax), %rsi
testq %rdi, %rdi
leaq 0xb701(%rip), %r15      # 0xe520
je 0x2e28
callq 0x2260
jmp 0x2e30
movq %rsi, %rdi
callq 0x2220
addq %rbx, %r14
addq $0x10, %r14
movq %rax, 0x28(%r14)
testq %rax, %rax
movq 0x20(%rsp), %rdx
jne 0x2e5d
leaq 0x6c99(%rip), %rdi      # 0x9ae5
movq 0x58(%rsp), %rsi
xorl %eax, %eax
callq 0x766f
movq 0x20(%rsp), %rdx
movq 0x28(%r14), %rdi
movq %rbp, %rsi
callq 0x2200
movq 0x20(%rsp), %rcx
movq 0x28(%r14), %rax
movb $0xa, (%rax,%rcx)
movq 0x28(%r14), %rax
movb $0x0, 0x1(%rax,%rcx)
movl $0x78, %ebx
movl 0x10(%rsp), %esi
cmpl $0x1f015, %esi          # imm = 0x1F015
jg 0x2ea2
cmpl $0xee00, %esi           # imm = 0xEE00
je 0x2ebd
cmpl $0x1f014, %esi          # imm = 0x1F014
je 0x2ebd
jmp 0x2eb9
cmpl $0x1f016, %esi          # imm = 0x1F016
je 0x2ebd
cmpl $0x1ff00, %esi          # imm = 0x1FF00
jne 0x2eb9
movl $0x83d600, %ebx         # imm = 0x83D600
jmp 0x2ebd
movl 0x30(%rsp), %ebx
leaq 0x6cb8(%rip), %rdi      # 0x9b7c
movl %ebx, %edx
xorl %eax, %eax
callq 0x7549
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2edc
callq 0x2030
movslq %ebx, %rax
imulq $0x3e8, %rax, %rax      # imm = 0x3E8
movq 0x50(%rsp), %rdx
addq %rdx, %rax
movq %rax, 0x8(%r14)
movq 0x10(%r14), %rax
testq %rax, %rax
je 0x2f03
movl %edx, %ecx
subl %eax, %ecx
movl %ecx, 0x4(%r14)
movq %rdx, 0x10(%r14)
incl 0x18(%r14)
movq 0x201965e(%rip), %rax   # 0x201c570
movl $0xea60, %ecx           # imm = 0xEA60
addq %rcx, %rax
cmpq %rdx, %rax
movl $0x0, %ebx
ja 0x2fd3
movq %rdx, 0x2019641(%rip)   # 0x201c570
movl 0x13627(%rip), %eax     # 0x1655c
andl $-0x2, %eax
cmpl $0x10, %eax
jne 0x2fd3
leaq 0x20accd0(%rip), %rcx   # 0x20afc18
movq 0x10(%rcx), %rax
movq %rax, 0x80(%rsp)
movups (%rcx), %xmm0
movaps %xmm0, 0x70(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0x7431
leaq 0x70(%rsp), %r14
movq %r14, %rdi
leaq 0x6c61(%rip), %rsi      # 0x9bd9
movq %rax, %rdx
xorl %eax, %eax
callq 0x7a17
leaq 0xa0(%rsp), %rdi
callq 0x7431
movq %r14, %rdi
leaq 0x6c5d(%rip), %rsi      # 0x9bf6
movq %rax, %rdx
xorl %eax, %eax
callq 0x7a17
movl $0x1, %edi
movq %r14, %rsi
callq 0x418f
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x2fc8
callq 0x2030
movq $0x0, 0x70(%rsp)
leaq 0x78(%rsp), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
cmpb $0x1, 0xb39e(%rip)      # 0xe378
movq 0x40(%rsp), %r14
movq 0x20(%rsp), %rcx
jne 0x2ffa
leaq 0x201956b(%rip), %rdi   # 0x201c558
movq %rbp, %rsi
callq 0x68d4
movq 0x20(%rsp), %rcx
leaq 0x1(%r14), %rsi
movq %rcx, %rax
notq %rax
movq 0x8030(%r12), %rdx
addq %rdx, %rax
movq %rax, 0x8030(%r12)
subq %rcx, %rdx
movq %rbp, %rdi
callq 0x2290
testq %r14, %r14
jne 0x25e8
jmp 0x3054
leaq 0x6b12(%rip), %rdi      # 0x9b46
movq %r15, %rsi
xorl %eax, %eax
callq 0x7549
movl %r14d, %r13d
leaq 0xb4d8(%rip), %r15      # 0xe520
xorl %ebx, %ebx
movq 0x18(%rsp), %rbp
jmp 0x27d1
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r13d, %edi
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x4062