// File: /workspace/github_c_makefile_star2_O1/coyove[P]chann/./lib/unqlite/unqlite.c
// Function: jx9VmConfigure
JX9_PRIVATE sxi32 jx9VmConfigure(
	jx9_vm *pVm, /* Target VM */
	sxi32 nOp,   /* Configuration verb */
	va_list ap   /* Subsequent option arguments */
	)
{
	sxi32 rc = SXRET_OK;
	switch(nOp){
	case JX9_VM_CONFIG_OUTPUT: {
		ProcConsumer xConsumer = va_arg(ap, ProcConsumer);
		void *pUserData = va_arg(ap, void *);
		/* VM output consumer callback */
#ifdef UNTRUST
		if( xConsumer == 0 ){
			rc = SXERR_CORRUPT;
			break;
		}
#endif
		/* Install the output consumer */
		pVm->sVmConsumer.xConsumer = xConsumer;
		pVm->sVmConsumer.pUserData = pUserData;
		break;
							   }
	case JX9_VM_CONFIG_IMPORT_PATH: {
		/* Import path */
		  const char *zPath;
		  SyString sPath;
		  zPath = va_arg(ap, const char *);
#if defined(UNTRUST)
		  if( zPath == 0 ){
			  rc = SXERR_EMPTY;
			  break;
		  }
#endif
		  SyStringInitFromBuf(&sPath, zPath, SyStrlen(zPath));
		  /* Remove trailing slashes and backslashes */
#ifdef __WINNT__
		  SyStringTrimTrailingChar(&sPath, '\\');
#endif
		  SyStringTrimTrailingChar(&sPath, '/');
		  /* Remove leading and trailing white spaces */
		  SyStringFullTrim(&sPath);
		  if( sPath.nByte > 0 ){
			  /* Store the path in the corresponding conatiner */
			  rc = SySetPut(&pVm->aPaths, (const void *)&sPath);
		  }
		  break;
									 }
	case JX9_VM_CONFIG_ERR_REPORT:
		/* Run-Time Error report */
		pVm->bErrReport = 1;
		break;
	case JX9_VM_CONFIG_RECURSION_DEPTH:{
		/* Recursion depth */
		int nDepth = va_arg(ap, int);
		if( nDepth > 2 && nDepth < 1024 ){
			pVm->nMaxDepth = nDepth;
		}
		break;
									   }
	case JX9_VM_OUTPUT_LENGTH: {
		/* VM output length in bytes */
		sxu32 *pOut = va_arg(ap, sxu32 *);
#ifdef UNTRUST
		if( pOut == 0 ){
			rc = SXERR_CORRUPT;
			break;
		}
#endif
		*pOut = pVm->nOutputLen;
		break;
							   }
	case JX9_VM_CONFIG_CREATE_VAR: {
		/* Create a new superglobal/global variable */
		const char *zName = va_arg(ap, const char *);
		jx9_value *pValue = va_arg(ap, jx9_value *);
		SyHashEntry *pEntry;
		jx9_value *pObj;
		sxu32 nByte;
		sxu32 nIdx; 
#ifdef UNTRUST
		if( SX_EMPTY_STR(zName) || pValue == 0 ){
			rc = SXERR_CORRUPT;
			break;
		}
#endif
		nByte = SyStrlen(zName);
		/* Check if the superglobal is already installed */
		pEntry = SyHashGet(&pVm->hSuper, (const void *)zName, nByte);
		if( pEntry ){
			/* Variable already installed */
			nIdx = SX_PTR_TO_INT(pEntry->pUserData);
			/* Extract contents */
			pObj = (jx9_value *)SySetAt(&pVm->aMemObj, nIdx);
			if( pObj ){
				/* Overwrite old contents */
				jx9MemObjStore(pValue, pObj);
			}
		}else{
			/* Install a new variable */
			pObj = jx9VmReserveMemObj(&(*pVm),&nIdx);
			if( pObj == 0 ){
				rc = SXERR_MEM;
				break;
			}
			/* Copy value */
			jx9MemObjStore(pValue, pObj);
			/* Install the superglobal */
			rc = SyHashInsert(&pVm->hSuper, (const void *)zName, nByte, SX_INT_TO_PTR(nIdx));
		}
		break;
									}
	case JX9_VM_CONFIG_SERVER_ATTR:
	case JX9_VM_CONFIG_ENV_ATTR:  {
		const char *zKey   = va_arg(ap, const char *);
		const char *zValue = va_arg(ap, const char *);
		int nLen = va_arg(ap, int);
		jx9_hashmap *pMap;
		jx9_value *pValue;
		if( nOp == JX9_VM_CONFIG_ENV_ATTR ){
			/* Extract the $_ENV superglobal */
			pValue = VmExtractSuper(&(*pVm), "_ENV", sizeof("_ENV")-1);
		}else{
			/* Extract the $_SERVER superglobal */
			pValue = VmExtractSuper(&(*pVm), "_SERVER", sizeof("_SERVER")-1);
		}
		if( pValue == 0 || (pValue->iFlags & MEMOBJ_HASHMAP) == 0 ){
			/* No such entry */
			rc = SXERR_NOTFOUND;
			break;
		}
		/* Point to the hashmap */
		pMap = (jx9_hashmap *)pValue->x.pOther;
		/* Perform the insertion */
		rc = VmHashmapInsert(pMap, zKey, -1, zValue, nLen);
		break;
								   }
	case JX9_VM_CONFIG_ARGV_ENTRY:{
		/* Script arguments */
		const char *zValue = va_arg(ap, const char *);
		jx9_hashmap *pMap;
		jx9_value *pValue;
		/* Extract the $argv array */
		pValue = VmExtractSuper(&(*pVm), "argv", sizeof("argv")-1);
		if( pValue == 0 || (pValue->iFlags & MEMOBJ_HASHMAP) == 0 ){
			/* No such entry */
			rc = SXERR_NOTFOUND;
			break;
		}
		/* Point to the hashmap */
		pMap = (jx9_hashmap *)pValue->x.pOther;
		/* Perform the insertion */
		rc = VmHashmapInsert(pMap, 0, 0, zValue,-1);
		if( rc == SXRET_OK && zValue && zValue[0] != 0 ){
			if( pMap->nEntry > 1 ){
				/* Append space separator first */
				SyBlobAppend(&pVm->sArgv, (const void *)" ", sizeof(char));
			}
			SyBlobAppend(&pVm->sArgv, (const void *)zValue,SyStrlen(zValue));
		}
		break;
								  }
	case JX9_VM_CONFIG_EXEC_VALUE: {
		/* Script return value */
		jx9_value **ppValue = va_arg(ap, jx9_value **);
#ifdef UNTRUST
		if( ppValue == 0 ){
			rc = SXERR_CORRUPT;
			break;
		}
#endif
		*ppValue = &pVm->sExec;
		break;
								   }
	case JX9_VM_CONFIG_IO_STREAM: {
		/* Register an IO stream device */
		const jx9_io_stream *pStream = va_arg(ap, const jx9_io_stream *);
		/* Make sure we are dealing with a valid IO stream */
		if( pStream == 0 || pStream->zName == 0 || pStream->zName[0] == 0 ||
			pStream->xOpen == 0 || pStream->xRead == 0 ){
				/* Invalid stream */
				rc = SXERR_INVALID;
				break;
		}
		if( pVm->pDefStream == 0 && SyStrnicmp(pStream->zName, "file", sizeof("file")-1) == 0 ){
			/* Make the 'file://' stream the defaut stream device */
			pVm->pDefStream = pStream;
		}
		/* Insert in the appropriate container */
		rc = SySetPut(&pVm->aIOstream, (const void *)&pStream);
		break;
								  }
	case JX9_VM_CONFIG_EXTRACT_OUTPUT: {
		/* Point to the VM internal output consumer buffer */
		const void **ppOut = va_arg(ap, const void **);
		unsigned int *pLen = va_arg(ap, unsigned int *);
#ifdef UNTRUST
		if( ppOut == 0 || pLen == 0 ){
			rc = SXERR_CORRUPT;
			break;
		}
#endif
		*ppOut = SyBlobData(&pVm->sConsumer);
		*pLen  = SyBlobLength(&pVm->sConsumer);
		break;
									   }
	case JX9_VM_CONFIG_HTTP_REQUEST:{
		/* Raw HTTP request*/
		const char *zRequest = va_arg(ap, const char *);
		int nByte = va_arg(ap, int);
		if( SX_EMPTY_STR(zRequest) ){
			rc = SXERR_EMPTY;
			break;
		}
		if( nByte < 0 ){
			/* Compute length automatically */
			nByte = (int)SyStrlen(zRequest);
		}
		/* Process the request */
		rc = VmHttpProcessRequest(&(*pVm), zRequest, nByte);
		break;
									}
	default:
		/* Unknown configuration option */
		rc = SXERR_UNKNOWN;
		break;
	}
	return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
leal -0x1(%rsi), %eax
cmpl $0xc, %eax
ja 0x462aa
movq %rdi, %rbx
leaq 0x2e5a0(%rip), %rcx     # 0x74710
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x462d5
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x462e1
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x46398
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x463a4
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x46450
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x4645c
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x4646c
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x46478
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x464b7
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x464c3
movl $0x1, 0x4e8(%rbx)
jmp 0x46ac1
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x464d5
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x464e1
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x46500
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x4650c
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x46525
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x46531
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x465a3
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x465af
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x4661f
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x4662b
movl $0xfffffff3, %r15d      # imm = 0xFFFFFFF3
jmp 0x46ac4
movl (%rdx), %ecx
movq %rbx, %r14
cmpq $0x28, %rcx
ja 0x466fb
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x46707
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movq (%rax), %r14
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x462fa
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x46306
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movq (%rax), %r12
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x4631f
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x4632b
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movl (%rax), %r13d
cmpl $0x9, %esi
jne 0x46344
leaq 0x30486(%rip), %rsi     # 0x767c0
movq %rbx, %rdi
movl $0x4, %edx
jmp 0x46353
leaq 0x3047a(%rip), %rsi     # 0x767c5
movq %rbx, %rdi
movl $0x7, %edx
callq 0x47291
movl $0xfffffffa, %r15d      # imm = 0xFFFFFFFA
testq %rax, %rax
je 0x46ac4
testb $0x40, 0x8(%rax)
je 0x46ac4
movq (%rax), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r12, %rcx
movl %r13d, %r8d
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x472de
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movq (%rax), %r14
leaq 0x3041f(%rip), %rsi     # 0x767cd
movq %rbx, %rdi
movl $0x4, %edx
callq 0x47291
movl $0xfffffffa, %r15d      # imm = 0xFFFFFFFA
testq %rax, %rax
je 0x46ac4
testb $0x40, 0x8(%rax)
je 0x46ac4
movq (%rax), %r12
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r14, %rcx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x472de
movl %eax, %r15d
testl %eax, %eax
sete %al
testq %r14, %r14
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x46ac4
cmpb $0x0, (%r14)
je 0x46ac4
cmpl $0x2, 0x2c(%r12)
jb 0x4642f
leaq 0x3c8(%rbx), %rdi
leaq 0x336f1(%rip), %rsi     # 0x79b16
movl $0x1, %edx
callq 0x360ae
addq $0x3c8, %rbx            # imm = 0x3C8
movq %r14, %rdi
callq 0x2ff3c
movq %rbx, %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0x360ae
jmp 0x46ac4
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movq (%rax), %rax
movl 0x4f4(%rbx), %ecx
movl %ecx, (%rax)
jmp 0x46ac1
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movq (%rax), %rax
movl (%rdx), %esi
cmpq $0x28, %rsi
ja 0x46491
movq %rsi, %rcx
addq 0x10(%rdx), %rcx
addl $0x8, %esi
movl %esi, (%rdx)
jmp 0x4649d
movq 0x8(%rdx), %rcx
leaq 0x8(%rcx), %rsi
movq %rsi, 0x8(%rdx)
movq (%rcx), %rcx
movq 0x390(%rbx), %rdx
movq %rdx, (%rax)
movl 0x398(%rbx), %eax
movl %eax, (%rcx)
jmp 0x46ac1
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movq (%rax), %rax
addq $0x490, %rbx            # imm = 0x490
movq %rbx, (%rax)
jmp 0x46ac1
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movl (%rax), %eax
leal -0x3(%rax), %ecx
xorl %r15d, %r15d
cmpl $0x3fc, %ecx            # imm = 0x3FC
ja 0x46ac4
movl %eax, 0x4f0(%rbx)
jmp 0x46ac4
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movq (%rax), %rax
movl (%rdx), %esi
cmpq $0x28, %rsi
ja 0x46581
movq %rsi, %rcx
addq 0x10(%rdx), %rcx
addl $0x8, %esi
movl %esi, (%rdx)
jmp 0x4658d
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movq (%rax), %rax
movq %rax, -0x148(%rbp)
cmpb $0x0, (%rax)
movq %rax, %rcx
je 0x46864
leaq 0x2(%rax), %rcx
cmpb $0x0, -0x1(%rcx)
je 0x46854
cmpb $0x0, (%rcx)
je 0x46864
cmpb $0x0, 0x1(%rcx)
je 0x46861
leaq 0x4(%rcx), %rdx
cmpb $0x0, 0x2(%rcx)
movq %rdx, %rcx
jne 0x4654b
addq $-0x2, %rdx
movq %rdx, %rcx
jmp 0x46864
movq 0x8(%rdx), %rcx
leaq 0x8(%rcx), %rsi
movq %rsi, 0x8(%rdx)
movq (%rcx), %rcx
movq %rax, 0x4f8(%rbx)
movq %rcx, 0x500(%rbx)
jmp 0x46ac1
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movq (%rax), %r14
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x465c8
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x465d4
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
cmpb $0x0, (%r14)
movq %r14, %r15
je 0x46957
leaq 0x2(%r14), %r15
cmpb $0x0, -0x1(%r15)
je 0x46859
cmpb $0x0, (%r15)
je 0x46957
cmpb $0x0, 0x1(%r15)
je 0x46954
leaq 0x4(%r15), %rcx
cmpb $0x0, 0x2(%r15)
movq %rcx, %r15
jne 0x465e5
addq $-0x2, %rcx
movq %rcx, %r15
jmp 0x46957
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movq (%rax), %r12
movl (%rdx), %ecx
cmpq $0x28, %rcx
ja 0x46644
movq %rcx, %rax
addq 0x10(%rdx), %rax
addl $0x8, %ecx
movl %ecx, (%rdx)
jmp 0x46650
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movl $0xfffffffd, %r15d      # imm = 0xFFFFFFFD
testq %r12, %r12
je 0x46ac4
cmpb $0x0, (%r12)
je 0x46ac4
movl (%rax), %r14d
testl %r14d, %r14d
jns 0x4667d
movq %r12, %rdi
callq 0x2ff3c
movl %eax, %r14d
movq %r12, -0x40(%rbp)
movl %r14d, -0x38(%rbp)
movq $0x20, -0x50(%rbp)
movq %rbx, -0x68(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0x60(%rbp)
movq $0x0, -0x48(%rbp)
movups %xmm0, -0x80(%rbp)
movq %rbx, -0x30(%rbp)
movq %rbx, -0x88(%rbp)
movl $0x0, -0x70(%rbp)
testl %r14d, %r14d
je 0x46787
movl %r14d, %eax
movq %r12, %rbx
addq %rax, %rbx
movsbq (%r12), %r15
cmpq $-0x41, %r15
ja 0x46787
callq 0xc170
movq (%rax), %rax
testb $0x20, 0x1(%rax,%r15,2)
je 0x46787
incq %r12
decl %r14d
jne 0x466c8
xorl %r14d, %r14d
jmp 0x4678a
movq 0x8(%rdx), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rdx)
movq (%rax), %rbx
movq %rbx, -0x148(%rbp)
movl $0xfffffff7, %r15d      # imm = 0xFFFFFFF7
testq %rbx, %rbx
je 0x46ac4
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x46ac4
cmpb $0x0, (%rdi)
je 0x46ac4
cmpq $0x0, 0x10(%rbx)
je 0x46ac4
cmpq $0x0, 0x30(%rbx)
je 0x46ac4
cmpq $0x0, 0x488(%r14)
jne 0x46771
leaq 0x2f4e9(%rip), %rsi     # 0x75c45
movl $0x4, %edx
callq 0x3a837
testl %eax, %eax
jne 0x46771
movq %rbx, 0x488(%r14)
addq $0x460, %r14            # imm = 0x460
leaq -0x148(%rbp), %rsi
movq %r14, %rdi
jmp 0x4694a
movq %r12, %rbx
movl %r14d, -0x38(%rbp)
movq %rbx, -0x40(%rbp)
testl %r14d, %r14d
je 0x467cb
movq -0x40(%rbp), %rbx
movl %r14d, %r14d
leaq -0x1(%r14), %r15
movl %r15d, %eax
movsbq (%rbx,%rax), %r12
cmpq $-0x41, %r12
ja 0x467cb
callq 0xc170
movq (%rax), %rax
testb $0x20, 0x1(%rax,%r12,2)
je 0x467cb
movq %r15, %r14
testl %r15d, %r15d
jne 0x4679e
xorl %r14d, %r14d
leaq -0x40(%rbp), %rdi
movl %r14d, 0x8(%rdi)
leaq -0xb8(%rbp), %rsi
callq 0x47e0b
leaq 0x34718(%rip), %r12     # 0x7aefe
testl %eax, %eax
movq -0x30(%rbp), %rbx
je 0x46a02
movl %eax, %r15d
testl %r15d, %r15d
jne 0x46ac4
leaq -0x40(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0x47442
leaq 0x2ffc0(%rip), %rdx     # 0x767d2
movl $0x8, %r8d
movq %rbx, %rdi
movl $0x8, %esi
movq %r12, %rcx
xorl %eax, %eax
callq 0x47850
cmpl $0x1, %r13d
je 0x46aed
cmpl $0x3, %r13d
je 0x46ae4
cmpl $0x4, %r13d
jne 0x46af6
leaq 0x2ffab(%rip), %rcx     # 0x767fa
jmp 0x46b0c
decq %rcx
jmp 0x46864
decq %r15
jmp 0x46957
incq %rcx
movq %rbx, -0x30(%rbp)
subl %eax, %ecx
movl %ecx, %ebx
incl %ebx
movq %rcx, %rdx
subq $0x1, %rdx
jb 0x46885
decl %ebx
cmpb $0x2f, -0x1(%rax,%rcx)
movq %rdx, %rcx
je 0x46871
jmp 0x46887
xorl %ebx, %ebx
movl %ebx, -0x140(%rbp)
movq -0x148(%rbp), %r15
testl %ebx, %ebx
je 0x468c3
movl %ebx, %r14d
addq %r15, %r14
movsbq (%r15), %r12
cmpq $-0x41, %r12
ja 0x468c3
callq 0xc170
movq (%rax), %rax
testb $0x20, 0x1(%rax,%r12,2)
je 0x468c3
incq %r15
decl %ebx
jne 0x4689e
xorl %ebx, %ebx
jmp 0x468c6
movq %r15, %r14
movl %ebx, -0x140(%rbp)
movq %r14, -0x148(%rbp)
testl %ebx, %ebx
sete %r14b
je 0x46abb
movq -0x148(%rbp), %r15
movl %ebx, %r12d
movb -0x1(%r12,%r15), %r13b
cmpb $-0x41, %r13b
ja 0x46925
callq 0xc170
movq (%rax), %rax
movsbq %r13b, %rcx
testb $0x20, 0x1(%rax,%rcx,2)
je 0x46925
cmpq $0x1, %r12
sete %r14b
je 0x46ab9
movb -0x2(%r15,%r12), %r13b
decq %r12
decl %ebx
cmpb $-0x41, %r13b
jbe 0x468fc
movl %ebx, -0x140(%rbp)
xorl %r15d, %r15d
testb $0x1, %r14b
jne 0x46ac4
movq -0x30(%rbp), %rdi
addq $0x410, %rdi            # imm = 0x410
leaq -0x148(%rbp), %rsi
callq 0x336fc
jmp 0x469e2
incq %r15
movq (%rax), %r12
subl %r14d, %r15d
leaq 0x348(%rbx), %r13
xorl %eax, %eax
cmpl $0x0, 0x370(%rbx)
je 0x46982
testl %r15d, %r15d
je 0x46982
movq %r13, %rdi
movq %r14, %rsi
movl %r15d, %edx
callq 0x4573a
testq %rax, %rax
je 0x469ab
movl 0x10(%rax), %esi
movl %esi, -0x148(%rbp)
xorl %r15d, %r15d
cmpl %esi, 0x218(%rbx)
jbe 0x469ea
imull 0x220(%rbx), %esi
addq 0x210(%rbx), %rsi
jmp 0x469ec
leaq -0x148(%rbp), %rsi
movq %rbx, %rdi
callq 0x40355
testq %rax, %rax
je 0x46ab1
movq %r12, %rdi
movq %rax, %rsi
callq 0x3ebc8
movl -0x148(%rbp), %ecx
movq %r13, %rdi
movq %r14, %rsi
movl %r15d, %edx
callq 0x4542b
movl %eax, %r15d
jmp 0x46ac4
xorl %esi, %esi
testq %rsi, %rsi
je 0x46ac4
movq %r12, %rdi
callq 0x3ebc8
jmp 0x46ac4
movl -0xb0(%rbp), %r14d
testq %r14, %r14
je 0x46ad9
movq -0xb8(%rbp), %r12
addq %r12, %r14
movsbq (%r12), %rbx
cmpq $-0x41, %rbx
ja 0x46a3e
callq 0xc170
movq (%rax), %rax
testb $0x20, 0x1(%rax,%rbx,2)
je 0x46a3e
incq %r12
cmpq %r14, %r12
jb 0x46a1c
movq %r12, %r15
cmpq %r14, %r12
jae 0x46a64
callq 0xc170
movq (%rax), %rax
movq %r12, %r15
movsbq (%r15), %rcx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x46a64
incq %r15
cmpq %r14, %r15
jb 0x46a51
movl $0x5, %r13d
cmpq %r12, %r15
jbe 0x470d2
movl %r15d, %r13d
subl %r12d, %r13d
xorl %ebx, %ebx
leaq 0x2e1f2(%rip), %rax     # 0x74c74
movslq (%rbx,%rax), %rdi
addq %rax, %rdi
movq %r12, %rsi
movl %r13d, %edx
callq 0x3a837
testl %eax, %eax
je 0x470a9
addq $0x4, %rbx
cmpq $0x10, %rbx
jne 0x46a7b
movl $0x5, %r13d
jmp 0x470d2
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
jmp 0x46ac4
xorl %ebx, %ebx
movl %ebx, -0x140(%rbp)
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xfffffffd, %r15d      # imm = 0xFFFFFFFD
jmp 0x467f5
leaq 0x2fe94(%rip), %rcx     # 0x7697f
jmp 0x46b0c
leaq 0x2fe91(%rip), %rcx     # 0x76985
jmp 0x46b0c
cmpl $0x2, %r13d
leaq 0x2fcfd(%rip), %rax     # 0x767fe
leaq 0x2fcfb(%rip), %rcx     # 0x76803
cmoveq %rax, %rcx
leaq 0x2fcd8(%rip), %rdx     # 0x767eb
movq %rbx, %rdi
movl $0x8, %esi
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
xorl %eax, %eax
callq 0x47850
movl -0x110(%rbp), %r8d
testl %r8d, %r8d
je 0x46b6e
cmpl $0x1, %r13d
jne 0x46b6e
leaq -0x118(%rbp), %r14
movq (%r14), %rcx
leaq 0x2fcbe(%rip), %rdx     # 0x76809
movq %rbx, %rdi
movl $0x8, %esi
xorl %eax, %eax
callq 0x47850
leaq -0x88(%rbp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x47954
movq -0xc8(%rbp), %rcx
movl -0xc0(%rbp), %r8d
leaq 0x2fc93(%rip), %rdx     # 0x76816
movq %rbx, %rdi
movl $0x8, %esi
xorl %eax, %eax
callq 0x47850
movq -0x128(%rbp), %r14
movl -0x120(%rbp), %r15d
leaq 0x2fc80(%rip), %rdx     # 0x76827
movq %rbx, %rdi
movl $0x8, %esi
movq %r14, %rcx
movl %r15d, %r8d
xorl %eax, %eax
callq 0x47850
leaq 0x2fc5f(%rip), %rdx     # 0x76822
movq %rbx, %rdi
movl $0x8, %esi
movq %r14, %rcx
movl %r15d, %r8d
xorl %eax, %eax
callq 0x47850
leaq 0x2fc52(%rip), %rsi     # 0x76831
leaq -0x68(%rbp), %rdi
movl $0x6, %edx
callq 0x47b8e
testq %rax, %rax
je 0x46c0f
movq (%rax), %rcx
movl 0x8(%rax), %r8d
leaq 0x2fc38(%rip), %rdx     # 0x76838
movq %rbx, %rdi
movl $0x8, %esi
xorl %eax, %eax
callq 0x47850
leaq 0x2fc2e(%rip), %rsi     # 0x76844
leaq -0x68(%rbp), %rdi
movl $0xe, %edx
callq 0x47b8e
testq %rax, %rax
je 0x46c46
movq (%rax), %rcx
movl 0x8(%rax), %r8d
leaq 0x2fc1c(%rip), %rdx     # 0x76853
movq %rbx, %rdi
movl $0x8, %esi
xorl %eax, %eax
callq 0x47850
leaq 0x2fc1a(%rip), %rsi     # 0x76867
leaq -0x68(%rbp), %rdi
movl $0xf, %edx
callq 0x47b8e
testq %rax, %rax
je 0x46c7d
movq (%rax), %rcx
movl 0x8(%rax), %r8d
leaq 0x2fc09(%rip), %rdx     # 0x76877
movq %rbx, %rdi
movl $0x8, %esi
xorl %eax, %eax
callq 0x47850
leaq 0x2fc08(%rip), %rsi     # 0x7688c
leaq -0x68(%rbp), %rdi
movl $0xf, %edx
callq 0x47b8e
testq %rax, %rax
je 0x46cb4
movq (%rax), %rcx
movl 0x8(%rax), %r8d
leaq 0x2fbf7(%rip), %rdx     # 0x7689c
movq %rbx, %rdi
movl $0x8, %esi
xorl %eax, %eax
callq 0x47850
leaq 0x2fbf6(%rip), %rsi     # 0x768b1
leaq -0x68(%rbp), %rdi
movl $0xa, %edx
callq 0x47b8e
testq %rax, %rax
je 0x46ceb
movq (%rax), %rcx
movl 0x8(%rax), %r8d
leaq 0x2fbe0(%rip), %rdx     # 0x768bc
movq %rbx, %rdi
movl $0x8, %esi
xorl %eax, %eax
callq 0x47850
leaq 0x2fbda(%rip), %rsi     # 0x768cc
leaq -0x68(%rbp), %rdi
movl $0x4, %edx
callq 0x47b8e
testq %rax, %rax
je 0x46d22
movq (%rax), %rcx
movl 0x8(%rax), %r8d
leaq 0x2fbbe(%rip), %rdx     # 0x768d1
movq %rbx, %rdi
movl $0x8, %esi
xorl %eax, %eax
callq 0x47850
leaq 0x2fbb2(%rip), %rsi     # 0x768db
leaq -0x68(%rbp), %rdi
movl $0x7, %edx
callq 0x47b8e
testq %rax, %rax
je 0x46d59
movq (%rax), %rcx
movl 0x8(%rax), %r8d
leaq 0x2fb99(%rip), %rdx     # 0x768e3
movq %rbx, %rdi
movl $0x8, %esi
xorl %eax, %eax
callq 0x47850
leaq 0x2fb90(%rip), %rsi     # 0x768f0
leaq -0x68(%rbp), %rdi
movl $0xa, %edx
callq 0x47b8e
testq %rax, %rax
je 0x46d90
movq (%rax), %rcx
movl 0x8(%rax), %r8d
leaq 0x2fb7a(%rip), %rdx     # 0x768fb
movq %rbx, %rdi
movl $0x8, %esi
xorl %eax, %eax
callq 0x47850
movl %r13d, -0x8c(%rbp)
leaq 0x2fb6d(%rip), %rsi     # 0x7690b
leaq -0x68(%rbp), %rdi
movl $0xd, %edx
callq 0x47b8e
testq %rax, %rax
je 0x46dee
movq %rax, %r14
movq (%rax), %rcx
movl 0x8(%rax), %r8d
leaq 0x2fb57(%rip), %rdx     # 0x76919
movq %rbx, %rdi
movl $0x8, %esi
xorl %eax, %eax
callq 0x47850
movq (%r14), %rcx
movl 0x8(%r14), %r8d
leaq 0x2fb4a(%rip), %rdx     # 0x76929
movq %rbx, %rdi
movl $0x8, %esi
xorl %eax, %eax
callq 0x47850
leaq 0x2fb3d(%rip), %rsi     # 0x76932
movq %rbx, %rdi
movl $0x7, %edx
callq 0x47291
xorl %ecx, %ecx
cmpl $0x0, -0x58(%rbp)
setne %cl
movq -0x60(%rbp), %r13
movl %ecx, -0x4c(%rbp)
je 0x4700b
movq %rax, %r12
movq %rax, -0x98(%rbp)
testq %r12, %r12
je 0x46e48
testb $0x40, 0x8(%r12)
je 0x46e48
movq (%r12), %rdi
movq (%r13), %rsi
movl 0x8(%r13), %edx
movq 0x10(%r13), %rcx
movl 0x18(%r13), %r8d
callq 0x472de
cmpl $0x6, 0x8(%r13)
jne 0x46e68
movq (%r13), %rdi
leaq 0x2c308(%rip), %rsi     # 0x73162
movl $0x6, %edx
callq 0x3a837
testl %eax, %eax
je 0x46e91
movl -0x4c(%rbp), %eax
movl -0x50(%rbp), %ecx
imull %eax, %ecx
addq -0x60(%rbp), %rcx
cmpl -0x58(%rbp), %eax
cmovbq %rcx, %r13
leal 0x1(%rax), %eax
movl $0x0, %ecx
cmovael %ecx, %eax
movl %eax, -0x4c(%rbp)
jb 0x46e22
jmp 0x4700b
movl 0x18(%r13), %ebx
testq %rbx, %rbx
je 0x46e68
movq 0x10(%r13), %r15
movq -0x30(%rbp), %rdi
leaq 0x31737(%rip), %rsi     # 0x785e0
movl $0x7, %edx
callq 0x47291
movq %rax, -0xa0(%rbp)
testq %rax, %rax
je 0x46e68
movq -0xa0(%rbp), %rax
testb $0x40, 0x8(%rax)
je 0x46e68
addq %r15, %rbx
movb $0x1, %r14b
callq 0xc170
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movq (%rax), %rax
movsbq (%r15), %rcx
testb $0x20, 0x1(%rax,%rcx,2)
je 0x46f14
incq %r15
cmpq %rbx, %r15
setb %r14b
jae 0x46e68
movsbq (%r15), %rcx
incq %r15
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x46ef6
decq %r15
testb $0x1, %r14b
je 0x46e68
movl $0x0, -0x78(%rbp)
movl -0x70(%rbp), %eax
testb $0x4, %al
je 0x46f41
movq $0x0, -0x80(%rbp)
movl $0x0, -0x74(%rbp)
andl $-0x5, %eax
movl %eax, -0x70(%rbp)
movq %r15, %r14
cmpq %rbx, %r15
leaq -0xa5cf(%rip), %rdx     # 0x3c97f
leaq -0x88(%rbp), %rcx
jae 0x46f68
movq %r15, %r14
cmpb $0x3b, (%r14)
je 0x46f68
incq %r14
cmpq %rbx, %r14
jb 0x46f5a
movq %r15, %r12
cmpq %r14, %r15
jae 0x46f8b
movq %r14, %rax
subq %r15, %rax
movq %r15, %r12
cmpb $0x3d, (%r12)
je 0x46f8b
incq %r12
decq %rax
jne 0x46f79
movq %r14, %r12
movl %r12d, %esi
subl %r15d, %esi
movq %r15, %rdi
callq 0x48412
movl -0x78(%rbp), %r15d
incq %r12
cmpq %r14, %r12
jae 0x46fd1
movl %r14d, %esi
subl %r12d, %esi
movq %r12, %rdi
leaq -0xa636(%rip), %rdx     # 0x3c97f
leaq -0x88(%rbp), %rcx
callq 0x48412
movq -0x80(%rbp), %rcx
addq %r15, %rcx
movl -0x78(%rbp), %r8d
subl %r15d, %r8d
jmp 0x46fd6
xorl %r8d, %r8d
xorl %ecx, %ecx
movq -0x98(%rbp), %r12
incq %r14
movq -0x80(%rbp), %rsi
movq -0xa0(%rbp), %rax
movq (%rax), %rdi
movl %r15d, %edx
callq 0x472de
movq %r14, %r15
cmpq %rbx, %r14
setb %r14b
jb 0x46ede
jmp 0x46e68
cmpl $0x3, -0x8c(%rbp)
jne 0x4704d
leaq 0x2c93d(%rip), %rsi     # 0x73958
leaq -0x68(%rbp), %rdi
movl $0xc, %edx
callq 0x47b8e
testq %rax, %rax
je 0x4704d
movl 0x8(%rax), %edx
cmpl $0x21, %edx
jb 0x4704d
movq (%rax), %rsi
leaq 0x2f8fa(%rip), %rdi     # 0x7693a
callq 0x34ebe
testl %eax, %eax
je 0x471a5
movq -0x68(%rbp), %rdi
testq %rdi, %rdi
je 0x47064
movq -0x60(%rbp), %rsi
testq %rsi, %rsi
je 0x47064
callq 0x3503f
leaq -0x80(%rbp), %rbx
movq $0x0, -0x60(%rbp)
xorl %r15d, %r15d
movl %r15d, -0x58(%rbp)
movl %r15d, -0x4c(%rbp)
testb $0x6, 0x10(%rbx)
jne 0x47097
cmpl $0x0, -0x74(%rbp)
je 0x47097
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x3503f
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movl $0x0, 0x10(%rbx)
jmp 0x46ac4
leaq 0x2e550(%rip), %rax     # 0x75600
movl (%rbx,%rax), %r13d
jmp 0x470d2
movsbq (%r15), %rbx
cmpq $-0x41, %rbx
ja 0x470d7
callq 0xc170
movq (%rax), %rax
testb $0x20, 0x1(%rax,%rbx,2)
je 0x470d7
incq %r15
cmpq %r14, %r15
jb 0x470b6
movq %r15, %r12
cmpq %r14, %r15
jae 0x470fe
callq 0xc170
movq (%rax), %rax
movq %r15, %r12
movsbq (%r12), %rcx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x470fe
incq %r12
cmpq %r14, %r12
jb 0x470ea
cmpq %r15, %r12
jbe 0x47137
movl %r12d, %edx
subl %r15d, %edx
leaq -0x148(%rbp), %rdi
movq %r15, %rsi
callq 0x47f89
jmp 0x47137
movsbq (%r12), %rbx
cmpq $-0x41, %rbx
ja 0x4713c
callq 0xc170
movq (%rax), %rax
testb $0x20, 0x1(%rax,%rbx,2)
je 0x4713c
incq %r12
cmpq %r14, %r12
jb 0x4711a
movq %r12, %rdx
cmpq %r14, %r12
movq -0x30(%rbp), %rbx
jae 0x47166
callq 0xc170
movq (%rax), %rax
movq %r12, %rdx
movsbq (%rdx), %rcx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x47166
incq %rdx
cmpq %r14, %rdx
jb 0x47153
xorl %r15d, %r15d
cmpq %r12, %rdx
jbe 0x47199
subl %r12d, %edx
leaq 0x2f7fd(%rip), %rsi     # 0x76975
movq %r12, %rdi
callq 0x3a837
testl %eax, %eax
leaq 0x2f659(%rip), %rax     # 0x767e2
leaq 0x33d6e(%rip), %r12     # 0x7aefe
cmoveq %rax, %r12
jmp 0x467f5
leaq 0x33d5e(%rip), %r12     # 0x7aefe
jmp 0x467f5
leaq 0x2f7b0(%rip), %rsi     # 0x7695c
leaq -0x68(%rbp), %rdi
movl $0xe, %edx
callq 0x47b8e
testq %rax, %rax
je 0x4704d
leaq -0xb8(%rbp), %r14
movl $0x0, (%r14)
movq (%rax), %rdi
movl 0x8(%rax), %esi
movq %r14, %rdx
callq 0x47be1
movl (%r14), %ebx
testl %ebx, %ebx
jle 0x4704d
movl -0x38(%rbp), %r14d
movq -0x40(%rbp), %r12
testq %r14, %r14
je 0x47225
movq %r14, %r15
addq %r12, %r15
movsbq (%r12), %r13
cmpq $-0x41, %r13
ja 0x47225
callq 0xc170
movq (%rax), %rax
testb $0x20, 0x1(%rax,%r13,2)
je 0x47225
incq %r12
decl %r14d
jne 0x471fd
xorl %r14d, %r14d
jmp 0x47228
movq %r12, %r15
movl %r14d, -0x38(%rbp)
movq %r15, -0x40(%rbp)
testl %r14d, %r14d
je 0x47269
movq -0x40(%rbp), %r15
movl %r14d, %r14d
leaq -0x1(%r14), %r12
movl %r12d, %eax
movsbq (%r15,%rax), %r13
cmpq $-0x41, %r13
ja 0x47269
callq 0xc170
movq (%rax), %rax
testb $0x20, 0x1(%rax,%r13,2)
je 0x47269
movq %r12, %r14
testl %r12d, %r12d
jne 0x4723c
xorl %r14d, %r14d
cmpl %ebx, %r14d
cmovll %r14d, %ebx
leaq -0x40(%rbp), %rsi
movl %ebx, 0x8(%rsi)
leaq -0x88(%rbp), %rdx
movq -0x30(%rbp), %rdi
movl $0x1, %ecx
callq 0x47954
jmp 0x4704d