// File: /workspace/github_c_makefile_star2_O0/MikeGray-APH[P]LibLouisAPH/source/table.c
// Function: table_add_rule
struct rule* table_add_rule(
	struct table *table,
	const enum table_hash_type hash_type,
	const enum rule_direction direction,
	struct filter *filter_forward,
	struct filter *filter_backward,
	const unichar *chars,
	const int chars_len,
	const unichar *dots,
	const int dots_len,
	const int chars_weight,
	const int dots_weight)
{
	struct rule **chars_hash, **dots_hash;
	int *chars_hash_cnt, *dots_hash_cnt;
	unsigned int chars_hash_size, dots_hash_size;

	//NOTE:  these affect the function above when compiling optimal
	chars_hash =
	dots_hash = NULL;
	chars_hash_cnt =
	dots_hash_cnt = NULL;

#ifdef TABLE_ALLOCATE_HASHES
	int size;
#endif

	switch(hash_type)
	{
#ifdef TABLE_ALLOCATE_HASHES

	case TABLE_HASH_INIT:

		if(!table->init_chars_hash)
		{
			size = TABLE_INIT_HASH_SIZE * sizeof(struct rule*);
			table->init_chars_hash = MALLOC(size);
			LOG_ALLOCATE_FAIL_RETURN_NULL(table->init_chars_hash)
			memset(table->init_chars_hash, 0, size);
		}
		if(!table->init_dots_hash)
		{
			ASSERT(table->init_chars_hash)
			size = TABLE_DOTS_HASH_SIZE * sizeof(struct rule*);
			table->init_dots_hash = MALLOC(size);
			LOG_ALLOCATE_FAIL_RETURN_NULL(table->init_dots_hash)
			memset(table->init_dots_hash, 0, size);
		}
		chars_hash = table->init_chars_hash;
		chars_hash_cnt = &table->init_chars_hash_cnt;
		chars_hash_size = TABLE_INIT_HASH_SIZE;
		dots_hash = table->init_dots_hash;
		dots_hash_cnt = &table->init_dots_hash_cnt;
		dots_hash_size = TABLE_DOTS_HASH_SIZE;
		break;

	case TABLE_HASH_PREMODE:

		if(!table->premode_chars_hash)
		{
			size = TABLE_PREMODE_HASH_SIZE * sizeof(struct rule*);
			table->premode_chars_hash = MALLOC(size);
			LOG_ALLOCATE_FAIL_RETURN_NULL(table->premode_chars_hash)
			memset(table->premode_chars_hash, 0, size);
		}
		if(!table->premode_dots_hash)
		{
			ASSERT(table->premode_chars_hash)
			size = TABLE_DOTS_HASH_SIZE * sizeof(struct rule*);
			table->premode_dots_hash = MALLOC(size);
			LOG_ALLOCATE_FAIL_RETURN_NULL(table->premode_dots_hash)
			memset(table->premode_dots_hash, 0, size);
		}
		chars_hash = table->premode_chars_hash;
		chars_hash_cnt = &table->premode_chars_hash_cnt;
		chars_hash_size = TABLE_PREMODE_HASH_SIZE;
		dots_hash = table->premode_dots_hash;
		dots_hash_cnt = &table->premode_dots_hash_cnt;
		dots_hash_size = TABLE_DOTS_HASH_SIZE;
		break;

	case TABLE_HASH_POSTMODE:

		if(!table->postmode_chars_hash)
		{
			size = TABLE_POSTMODE_HASH_SIZE * sizeof(struct rule*);
			table->postmode_chars_hash = MALLOC(size);
			LOG_ALLOCATE_FAIL_RETURN_NULL(table->postmode_chars_hash)
			memset(table->postmode_chars_hash, 0, size);
		}
		if(!table->postmode_dots_hash)
		{
			ASSERT(table->postmode_chars_hash)
			size = TABLE_DOTS_HASH_SIZE * sizeof(struct rule*);
			table->postmode_dots_hash = MALLOC(size);
			LOG_ALLOCATE_FAIL_RETURN_NULL(table->postmode_dots_hash)
			memset(table->postmode_dots_hash, 0, size);
		}
		chars_hash = table->postmode_chars_hash;
		chars_hash_cnt = &table->postmode_chars_hash_cnt;
		chars_hash_size = TABLE_POSTMODE_HASH_SIZE;
		dots_hash = table->postmode_dots_hash;
		dots_hash_cnt = &table->postmode_dots_hash_cnt;
		dots_hash_size = TABLE_DOTS_HASH_SIZE;
		break;

	case TABLE_HASH_PRETRANS:

		if(!table->pretrans_chars_hash)
		{
			size = TABLE_PRETRANS_HASH_SIZE * sizeof(struct rule*);
			table->pretrans_chars_hash = MALLOC(size);
			LOG_ALLOCATE_FAIL_RETURN_NULL(table->pretrans_chars_hash)
			memset(table->pretrans_chars_hash, 0, size);
		}
		if(!table->pretrans_dots_hash)
		{
			ASSERT(table->pretrans_chars_hash)
			size = TABLE_DOTS_HASH_SIZE * sizeof(struct rule*);
			table->pretrans_dots_hash = MALLOC(size);
			LOG_ALLOCATE_FAIL_RETURN_NULL(table->pretrans_dots_hash)
			memset(table->pretrans_dots_hash, 0, size);
		}
		chars_hash = table->pretrans_chars_hash;
		chars_hash_cnt = &table->pretrans_chars_hash_cnt;
		chars_hash_size = TABLE_PRETRANS_HASH_SIZE;
		dots_hash = table->pretrans_dots_hash;
		dots_hash_cnt = &table->pretrans_dots_hash_cnt;
		dots_hash_size = TABLE_DOTS_HASH_SIZE;
		break;

	case TABLE_HASH_TRANS:

		if(!table->trans_chars_hash)
		{
			ASSERT(!table->trans_dots_hash)
			size = TABLE_TRANS_HASH_SIZE * sizeof(struct rule*);
			table->trans_chars_hash = MALLOC(size);
			LOG_ALLOCATE_FAIL_RETURN_NULL(table->trans_chars_hash)
			memset(table->trans_chars_hash, 0, size);
		}
		if(!table->trans_dots_hash)
		{
			ASSERT(table->trans_chars_hash)
			size = TABLE_DOTS_HASH_SIZE * sizeof(struct rule*);
			table->trans_dots_hash = MALLOC(size);
			LOG_ALLOCATE_FAIL_RETURN_NULL(table->trans_dots_hash)
			memset(table->trans_dots_hash, 0, size);
		}
		chars_hash = table->trans_chars_hash;
		chars_hash_cnt = &table->trans_chars_hash_cnt;
		chars_hash_size = TABLE_TRANS_HASH_SIZE;
		dots_hash = table->trans_dots_hash;
		dots_hash_cnt = &table->trans_dots_hash_cnt;
		dots_hash_size = TABLE_DOTS_HASH_SIZE;
		break;

	case TABLE_HASH_POSTTRANS:

		if(!table->posttrans_chars_hash)
		{
			ASSERT(!table->posttrans_dots_hash)
			size = TABLE_TRANS_HASH_SIZE * sizeof(struct rule*);
			table->posttrans_chars_hash = MALLOC(size);
			LOG_ALLOCATE_FAIL_RETURN_NULL(table->posttrans_chars_hash)
			memset(table->posttrans_chars_hash, 0, size);
		}
		if(!table->posttrans_dots_hash)
		{
			ASSERT(table->posttrans_chars_hash)
			size = TABLE_DOTS_HASH_SIZE * sizeof(struct rule*);
			table->posttrans_dots_hash = MALLOC(size);
			LOG_ALLOCATE_FAIL_RETURN_NULL(table->posttrans_dots_hash)
			memset(table->posttrans_dots_hash, 0, size);
		}
		chars_hash = table->posttrans_chars_hash;
		chars_hash_cnt = &table->posttrans_chars_hash_cnt;
		chars_hash_size = TABLE_POSTTRANS_HASH_SIZE;
		dots_hash = table->posttrans_dots_hash;
		dots_hash_cnt = &table->posttrans_dots_hash_cnt;
		dots_hash_size = TABLE_DOTS_HASH_SIZE;
		break;

	case TABLE_HASH_FINI:

		if(!table->fini_chars_hash)
		{
			size = TABLE_FINI_HASH_SIZE * sizeof(struct rule*);
			table->fini_chars_hash = MALLOC(size);
			LOG_ALLOCATE_FAIL_RETURN_NULL(table->fini_chars_hash)
			memset(table->fini_chars_hash, 0, size);
		}
		if(!table->fini_dots_hash)
		{
			ASSERT(table->fini_chars_hash)
			size = TABLE_DOTS_HASH_SIZE * sizeof(struct rule*);
			table->fini_dots_hash = MALLOC(size);
			LOG_ALLOCATE_FAIL_RETURN_NULL(table->fini_dots_hash)
			memset(table->fini_dots_hash, 0, size);
		}
		chars_hash = table->fini_chars_hash;
		chars_hash_cnt = &table->fini_chars_hash_cnt;
		chars_hash_size = TABLE_FINI_HASH_SIZE;
		dots_hash = table->fini_dots_hash;
		dots_hash_cnt = &table->fini_dots_hash_cnt;
		dots_hash_size = TABLE_DOTS_HASH_SIZE;
		break;

#else

	case TABLE_HASH_INIT:

		chars_hash = table->init_chars_hash;
		chars_hash_cnt = &table->init_chars_hash_cnt;
		chars_hash_size = TABLE_INIT_HASH_SIZE;
		dots_hash = table->init_dots_hash;
		dots_hash_cnt = &table->init_dots_hash_cnt;
		dots_hash_size = TABLE_DOTS_HASH_SIZE;
		break;

	case TABLE_HASH_PREMODE:

		chars_hash = table->premode_chars_hash;
		chars_hash_cnt = &table->premode_chars_hash_cnt;
		chars_hash_size = TABLE_PREMODE_HASH_SIZE;
		dots_hash = table->premode_dots_hash;
		dots_hash_cnt = &table->premode_dots_hash_cnt;
		dots_hash_size = TABLE_DOTS_HASH_SIZE;
		break;

	case TABLE_HASH_POSTMODE:

		chars_hash = table->postmode_chars_hash;
		chars_hash_cnt = &table->postmode_chars_hash_cnt;
		chars_hash_size = TABLE_POSTMODE_HASH_SIZE;
		dots_hash = table->postmode_dots_hash;
		dots_hash_cnt = &table->postmode_dots_hash_cnt;
		dots_hash_size = TABLE_DOTS_HASH_SIZE;
		break;

	case TABLE_HASH_PRETRANS:

		chars_hash = table->pretrans_chars_hash;
		chars_hash_cnt = &table->pretrans_chars_hash_cnt;
		chars_hash_size = TABLE_PRETRANS_HASH_SIZE;
		dots_hash = table->pretrans_dots_hash;
		dots_hash_cnt = &table->pretrans_dots_hash_cnt;
		dots_hash_size = TABLE_DOTS_HASH_SIZE;
		break;

	case TABLE_HASH_TRANS:

		chars_hash = table->trans_chars_hash;
		chars_hash_cnt = &table->trans_chars_hash_cnt;
		chars_hash_size = TABLE_TRANS_HASH_SIZE;
		dots_hash = table->trans_dots_hash;
		dots_hash_cnt = &table->trans_dots_hash_cnt;
		dots_hash_size = TABLE_DOTS_HASH_SIZE;
		break;

	case TABLE_HASH_POSTTRANS:

		chars_hash = table->posttrans_chars_hash;
		chars_hash_cnt = &table->posttrans_chars_hash_cnt;
		chars_hash_size = TABLE_POSTTRANS_HASH_SIZE;
		dots_hash = table->posttrans_dots_hash;
		dots_hash_cnt = &table->posttrans_dots_hash_cnt;
		dots_hash_size = TABLE_DOTS_HASH_SIZE;
		break;

	case TABLE_HASH_FINI:

		chars_hash = table->fini_chars_hash;
		chars_hash_cnt = &table->fini_chars_hash_cnt;
		chars_hash_size = TABLE_FINI_HASH_SIZE;
		dots_hash = table->fini_dots_hash;
		dots_hash_cnt = &table->fini_dots_hash_cnt;
		dots_hash_size = TABLE_DOTS_HASH_SIZE;
		break;
#endif

	case TABLE_HASH_NONE:

		log_message(LOG_FATAL, "%s:%d  table_add_rule failed", __FILE__, __LINE__);
		ASSERT(0)
		return NULL;
	}

	switch(direction)
	{
	case BOTH:

		return rule_add_new(
			chars_hash, chars_hash_cnt, chars_hash_size,
			dots_hash, dots_hash_cnt, dots_hash_size,
			filter_forward, filter_backward, chars, chars_len, dots, dots_len, chars_weight, dots_weight);
	case FORWARD:

		return rule_add_new(
			chars_hash, chars_hash_cnt, chars_hash_size,
			NULL, NULL, 0,
			filter_forward, filter_backward, chars, chars_len, dots, dots_len, chars_weight, dots_weight);
	case BACKWARD:

		return rule_add_new(
			NULL, NULL, 0,
			dots_hash, dots_hash_cnt, dots_hash_size,
			filter_forward, filter_backward, chars, chars_len, dots, dots_len, chars_weight, dots_weight);
	}

	ASSERT(0);
	return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movl 0x30(%rbp), %eax
movl 0x28(%rbp), %eax
movl 0x20(%rbp), %eax
movq 0x18(%rbp), %rax
movl 0x10(%rbp), %eax
movq %rdi, -0x38(%rbp)
movl %esi, -0x3c(%rbp)
movl %edx, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
movq %r8, -0x50(%rbp)
movq %r9, -0x58(%rbp)
movq $0x0, -0x68(%rbp)
movq $0x0, -0x60(%rbp)
movq $0x0, -0x78(%rbp)
movq $0x0, -0x70(%rbp)
movl -0x3c(%rbp), %eax
movq %rax, -0x90(%rbp)
subq $0x7, %rax
ja 0x3976
movq -0x90(%rbp), %rax
leaq 0x1b31c(%rip), %rcx     # 0x1e238
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x38(%rbp), %rax
cmpq $0x0, 0x278(%rax)
jne 0x2faa
movl $0x800, -0x84(%rbp)     # imm = 0x800
movslq -0x84(%rbp), %rdi
callq 0x1160
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x278(%rax)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x278(%rax)
jne 0x2f91
movl $0x7, %edi
leaq 0x1b307(%rip), %rsi     # 0x1e278
leaq 0x1b320(%rip), %rdx     # 0x1e298
movl $0x2d2, %ecx            # imm = 0x2D2
movb $0x0, %al
callq 0xf610
movq $0x0, -0x30(%rbp)
jmp 0x3ae0
movq -0x38(%rbp), %rax
movq 0x278(%rax), %rdi
movslq -0x84(%rbp), %rdx
xorl %esi, %esi
callq 0x1100
movq -0x38(%rbp), %rax
cmpq $0x0, 0x280(%rax)
jne 0x3046
movq -0x38(%rbp), %rax
cmpq $0x0, 0x278(%rax)
jne 0x2fcf
callq 0x1050
movl $0x800, -0x84(%rbp)     # imm = 0x800
movslq -0x84(%rbp), %rdi
callq 0x1160
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x280(%rax)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x280(%rax)
jne 0x302d
movl $0x7, %edi
leaq 0x1b26b(%rip), %rsi     # 0x1e278
leaq 0x1b284(%rip), %rdx     # 0x1e298
movl $0x2da, %ecx            # imm = 0x2DA
movb $0x0, %al
callq 0xf610
movq $0x0, -0x30(%rbp)
jmp 0x3ae0
movq -0x38(%rbp), %rax
movq 0x280(%rax), %rdi
movslq -0x84(%rbp), %rdx
xorl %esi, %esi
callq 0x1100
movq -0x38(%rbp), %rax
movq 0x278(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
addq $0x288, %rax            # imm = 0x288
movq %rax, -0x70(%rbp)
movl $0x100, -0x7c(%rbp)     # imm = 0x100
movq -0x38(%rbp), %rax
movq 0x280(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rax
addq $0x28c, %rax            # imm = 0x28C
movq %rax, -0x78(%rbp)
movl $0x100, -0x80(%rbp)     # imm = 0x100
jmp 0x3976
movq -0x38(%rbp), %rax
cmpq $0x0, 0x290(%rax)
jne 0x3118
movl $0x800, -0x84(%rbp)     # imm = 0x800
movslq -0x84(%rbp), %rdi
callq 0x1160
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x290(%rax)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x290(%rax)
jne 0x30ff
movl $0x7, %edi
leaq 0x1b199(%rip), %rsi     # 0x1e278
leaq 0x1b1b2(%rip), %rdx     # 0x1e298
movl $0x2eb, %ecx            # imm = 0x2EB
movb $0x0, %al
callq 0xf610
movq $0x0, -0x30(%rbp)
jmp 0x3ae0
movq -0x38(%rbp), %rax
movq 0x290(%rax), %rdi
movslq -0x84(%rbp), %rdx
xorl %esi, %esi
callq 0x1100
movq -0x38(%rbp), %rax
cmpq $0x0, 0x298(%rax)
jne 0x31b4
movq -0x38(%rbp), %rax
cmpq $0x0, 0x290(%rax)
jne 0x313d
callq 0x1050
movl $0x800, -0x84(%rbp)     # imm = 0x800
movslq -0x84(%rbp), %rdi
callq 0x1160
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x298(%rax)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x298(%rax)
jne 0x319b
movl $0x7, %edi
leaq 0x1b0fd(%rip), %rsi     # 0x1e278
leaq 0x1b116(%rip), %rdx     # 0x1e298
movl $0x2f3, %ecx            # imm = 0x2F3
movb $0x0, %al
callq 0xf610
movq $0x0, -0x30(%rbp)
jmp 0x3ae0
movq -0x38(%rbp), %rax
movq 0x298(%rax), %rdi
movslq -0x84(%rbp), %rdx
xorl %esi, %esi
callq 0x1100
movq -0x38(%rbp), %rax
movq 0x290(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
addq $0x2a0, %rax            # imm = 0x2A0
movq %rax, -0x70(%rbp)
movl $0x100, -0x7c(%rbp)     # imm = 0x100
movq -0x38(%rbp), %rax
movq 0x298(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rax
addq $0x2a4, %rax            # imm = 0x2A4
movq %rax, -0x78(%rbp)
movl $0x100, -0x80(%rbp)     # imm = 0x100
jmp 0x3976
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2a8(%rax)
jne 0x3286
movl $0x800, -0x84(%rbp)     # imm = 0x800
movslq -0x84(%rbp), %rdi
callq 0x1160
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x2a8(%rax)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2a8(%rax)
jne 0x326d
movl $0x7, %edi
leaq 0x1b02b(%rip), %rsi     # 0x1e278
leaq 0x1b044(%rip), %rdx     # 0x1e298
movl $0x304, %ecx            # imm = 0x304
movb $0x0, %al
callq 0xf610
movq $0x0, -0x30(%rbp)
jmp 0x3ae0
movq -0x38(%rbp), %rax
movq 0x2a8(%rax), %rdi
movslq -0x84(%rbp), %rdx
xorl %esi, %esi
callq 0x1100
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2b0(%rax)
jne 0x3322
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2a8(%rax)
jne 0x32ab
callq 0x1050
movl $0x800, -0x84(%rbp)     # imm = 0x800
movslq -0x84(%rbp), %rdi
callq 0x1160
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x2b0(%rax)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2b0(%rax)
jne 0x3309
movl $0x7, %edi
leaq 0x1af8f(%rip), %rsi     # 0x1e278
leaq 0x1afa8(%rip), %rdx     # 0x1e298
movl $0x30c, %ecx            # imm = 0x30C
movb $0x0, %al
callq 0xf610
movq $0x0, -0x30(%rbp)
jmp 0x3ae0
movq -0x38(%rbp), %rax
movq 0x2b0(%rax), %rdi
movslq -0x84(%rbp), %rdx
xorl %esi, %esi
callq 0x1100
movq -0x38(%rbp), %rax
movq 0x2a8(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
addq $0x2b8, %rax            # imm = 0x2B8
movq %rax, -0x70(%rbp)
movl $0x100, -0x7c(%rbp)     # imm = 0x100
movq -0x38(%rbp), %rax
movq 0x2b0(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rax
addq $0x2bc, %rax            # imm = 0x2BC
movq %rax, -0x78(%rbp)
movl $0x100, -0x80(%rbp)     # imm = 0x100
jmp 0x3976
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2c0(%rax)
jne 0x33f4
movl $0x800, -0x84(%rbp)     # imm = 0x800
movslq -0x84(%rbp), %rdi
callq 0x1160
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x2c0(%rax)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2c0(%rax)
jne 0x33db
movl $0x7, %edi
leaq 0x1aebd(%rip), %rsi     # 0x1e278
leaq 0x1aed6(%rip), %rdx     # 0x1e298
movl $0x31d, %ecx            # imm = 0x31D
movb $0x0, %al
callq 0xf610
movq $0x0, -0x30(%rbp)
jmp 0x3ae0
movq -0x38(%rbp), %rax
movq 0x2c0(%rax), %rdi
movslq -0x84(%rbp), %rdx
xorl %esi, %esi
callq 0x1100
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2c8(%rax)
jne 0x3490
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2c0(%rax)
jne 0x3419
callq 0x1050
movl $0x800, -0x84(%rbp)     # imm = 0x800
movslq -0x84(%rbp), %rdi
callq 0x1160
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x2c8(%rax)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2c8(%rax)
jne 0x3477
movl $0x7, %edi
leaq 0x1ae21(%rip), %rsi     # 0x1e278
leaq 0x1ae3a(%rip), %rdx     # 0x1e298
movl $0x325, %ecx            # imm = 0x325
movb $0x0, %al
callq 0xf610
movq $0x0, -0x30(%rbp)
jmp 0x3ae0
movq -0x38(%rbp), %rax
movq 0x2c8(%rax), %rdi
movslq -0x84(%rbp), %rdx
xorl %esi, %esi
callq 0x1100
movq -0x38(%rbp), %rax
movq 0x2c0(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
addq $0x2d0, %rax            # imm = 0x2D0
movq %rax, -0x70(%rbp)
movl $0x100, -0x7c(%rbp)     # imm = 0x100
movq -0x38(%rbp), %rax
movq 0x2c8(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rax
addq $0x2d4, %rax            # imm = 0x2D4
movq %rax, -0x78(%rbp)
movl $0x100, -0x80(%rbp)     # imm = 0x100
jmp 0x3976
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2d8(%rax)
jne 0x3579
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2e0(%rax)
je 0x3502
callq 0x1050
movl $0x800, -0x84(%rbp)     # imm = 0x800
movslq -0x84(%rbp), %rdi
callq 0x1160
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x2d8(%rax)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2d8(%rax)
jne 0x3560
movl $0x7, %edi
leaq 0x1ad38(%rip), %rsi     # 0x1e278
leaq 0x1ad51(%rip), %rdx     # 0x1e298
movl $0x337, %ecx            # imm = 0x337
movb $0x0, %al
callq 0xf610
movq $0x0, -0x30(%rbp)
jmp 0x3ae0
movq -0x38(%rbp), %rax
movq 0x2d8(%rax), %rdi
movslq -0x84(%rbp), %rdx
xorl %esi, %esi
callq 0x1100
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2e0(%rax)
jne 0x3615
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2d8(%rax)
jne 0x359e
callq 0x1050
movl $0x800, -0x84(%rbp)     # imm = 0x800
movslq -0x84(%rbp), %rdi
callq 0x1160
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x2e0(%rax)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2e0(%rax)
jne 0x35fc
movl $0x7, %edi
leaq 0x1ac9c(%rip), %rsi     # 0x1e278
leaq 0x1acb5(%rip), %rdx     # 0x1e298
movl $0x33f, %ecx            # imm = 0x33F
movb $0x0, %al
callq 0xf610
movq $0x0, -0x30(%rbp)
jmp 0x3ae0
movq -0x38(%rbp), %rax
movq 0x2e0(%rax), %rdi
movslq -0x84(%rbp), %rdx
xorl %esi, %esi
callq 0x1100
movq -0x38(%rbp), %rax
movq 0x2d8(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
addq $0x2e8, %rax            # imm = 0x2E8
movq %rax, -0x70(%rbp)
movl $0x100, -0x7c(%rbp)     # imm = 0x100
movq -0x38(%rbp), %rax
movq 0x2e0(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rax
addq $0x2ec, %rax            # imm = 0x2EC
movq %rax, -0x78(%rbp)
movl $0x100, -0x80(%rbp)     # imm = 0x100
jmp 0x3976
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2f0(%rax)
jne 0x36fe
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2f8(%rax)
je 0x3687
callq 0x1050
movl $0x800, -0x84(%rbp)     # imm = 0x800
movslq -0x84(%rbp), %rdi
callq 0x1160
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x2f0(%rax)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2f0(%rax)
jne 0x36e5
movl $0x7, %edi
leaq 0x1abb3(%rip), %rsi     # 0x1e278
leaq 0x1abcc(%rip), %rdx     # 0x1e298
movl $0x351, %ecx            # imm = 0x351
movb $0x0, %al
callq 0xf610
movq $0x0, -0x30(%rbp)
jmp 0x3ae0
movq -0x38(%rbp), %rax
movq 0x2f0(%rax), %rdi
movslq -0x84(%rbp), %rdx
xorl %esi, %esi
callq 0x1100
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2f8(%rax)
jne 0x379a
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2f0(%rax)
jne 0x3723
callq 0x1050
movl $0x800, -0x84(%rbp)     # imm = 0x800
movslq -0x84(%rbp), %rdi
callq 0x1160
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x2f8(%rax)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x2f8(%rax)
jne 0x3781
movl $0x7, %edi
leaq 0x1ab17(%rip), %rsi     # 0x1e278
leaq 0x1ab30(%rip), %rdx     # 0x1e298
movl $0x359, %ecx            # imm = 0x359
movb $0x0, %al
callq 0xf610
movq $0x0, -0x30(%rbp)
jmp 0x3ae0
movq -0x38(%rbp), %rax
movq 0x2f8(%rax), %rdi
movslq -0x84(%rbp), %rdx
xorl %esi, %esi
callq 0x1100
movq -0x38(%rbp), %rax
movq 0x2f0(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
addq $0x300, %rax            # imm = 0x300
movq %rax, -0x70(%rbp)
movl $0x100, -0x7c(%rbp)     # imm = 0x100
movq -0x38(%rbp), %rax
movq 0x2f8(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rax
addq $0x304, %rax            # imm = 0x304
movq %rax, -0x78(%rbp)
movl $0x100, -0x80(%rbp)     # imm = 0x100
jmp 0x3976
movq -0x38(%rbp), %rax
cmpq $0x0, 0x308(%rax)
jne 0x386c
movl $0x800, -0x84(%rbp)     # imm = 0x800
movslq -0x84(%rbp), %rdi
callq 0x1160
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x308(%rax)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x308(%rax)
jne 0x3853
movl $0x7, %edi
leaq 0x1aa45(%rip), %rsi     # 0x1e278
leaq 0x1aa5e(%rip), %rdx     # 0x1e298
movl $0x36a, %ecx            # imm = 0x36A
movb $0x0, %al
callq 0xf610
movq $0x0, -0x30(%rbp)
jmp 0x3ae0
movq -0x38(%rbp), %rax
movq 0x308(%rax), %rdi
movslq -0x84(%rbp), %rdx
xorl %esi, %esi
callq 0x1100
movq -0x38(%rbp), %rax
cmpq $0x0, 0x310(%rax)
jne 0x3908
movq -0x38(%rbp), %rax
cmpq $0x0, 0x308(%rax)
jne 0x3891
callq 0x1050
movl $0x800, -0x84(%rbp)     # imm = 0x800
movslq -0x84(%rbp), %rdi
callq 0x1160
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x310(%rax)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x310(%rax)
jne 0x38ef
movl $0x7, %edi
leaq 0x1a9a9(%rip), %rsi     # 0x1e278
leaq 0x1a9c2(%rip), %rdx     # 0x1e298
movl $0x372, %ecx            # imm = 0x372
movb $0x0, %al
callq 0xf610
movq $0x0, -0x30(%rbp)
jmp 0x3ae0
movq -0x38(%rbp), %rax
movq 0x310(%rax), %rdi
movslq -0x84(%rbp), %rdx
xorl %esi, %esi
callq 0x1100
movq -0x38(%rbp), %rax
movq 0x308(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
addq $0x318, %rax            # imm = 0x318
movq %rax, -0x70(%rbp)
movl $0x100, -0x7c(%rbp)     # imm = 0x100
movq -0x38(%rbp), %rax
movq 0x310(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x38(%rbp), %rax
addq $0x31c, %rax            # imm = 0x31C
movq %rax, -0x78(%rbp)
movl $0x100, -0x80(%rbp)     # imm = 0x100
jmp 0x3976
movl $0x7, %edi
leaq 0x1a949(%rip), %rsi     # 0x1e2a7
leaq 0x1a933(%rip), %rdx     # 0x1e298
movl $0x3c8, %ecx            # imm = 0x3C8
movb $0x0, %al
callq 0xf610
callq 0x1050
movl -0x40(%rbp), %eax
movl %eax, -0x94(%rbp)
subl $-0x1, %eax
je 0x3a76
jmp 0x398a
movl -0x94(%rbp), %eax
testl %eax, %eax
je 0x39a6
jmp 0x3996
movl -0x94(%rbp), %eax
subl $0x1, %eax
je 0x3a10
jmp 0x3adb
movq -0x60(%rbp), %rdi
movq -0x70(%rbp), %rsi
movl -0x7c(%rbp), %edx
movq -0x68(%rbp), %rcx
movq -0x78(%rbp), %r8
movl -0x80(%rbp), %r9d
movq -0x48(%rbp), %r13
movq -0x50(%rbp), %r12
movq -0x58(%rbp), %r15
movl 0x10(%rbp), %r14d
movq 0x18(%rbp), %rbx
movl 0x20(%rbp), %r11d
movl 0x28(%rbp), %r10d
movl 0x30(%rbp), %eax
movq %r13, (%rsp)
movq %r12, 0x8(%rsp)
movq %r15, 0x10(%rsp)
movl %r14d, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
movl %r11d, 0x28(%rsp)
movl %r10d, 0x30(%rsp)
movl %eax, 0x38(%rsp)
callq 0x3b00
movq %rax, -0x30(%rbp)
jmp 0x3ae0
movq -0x60(%rbp), %rdi
movq -0x70(%rbp), %rsi
movl -0x7c(%rbp), %edx
movq -0x48(%rbp), %r13
movq -0x50(%rbp), %r12
movq -0x58(%rbp), %r15
movl 0x10(%rbp), %r14d
movq 0x18(%rbp), %rbx
movl 0x20(%rbp), %r11d
movl 0x28(%rbp), %r10d
movl 0x30(%rbp), %eax
xorl %ecx, %ecx
movl %ecx, %r8d
xorl %r9d, %r9d
movq %r8, %rcx
movq %r13, (%rsp)
movq %r12, 0x8(%rsp)
movq %r15, 0x10(%rsp)
movl %r14d, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
movl %r11d, 0x28(%rsp)
movl %r10d, 0x30(%rsp)
movl %eax, 0x38(%rsp)
callq 0x3b00
movq %rax, -0x30(%rbp)
jmp 0x3ae0
movq -0x68(%rbp), %rcx
movq -0x78(%rbp), %r8
movl -0x80(%rbp), %r9d
movq -0x48(%rbp), %r13
movq -0x50(%rbp), %r12
movq -0x58(%rbp), %r15
movl 0x10(%rbp), %r14d
movq 0x18(%rbp), %rbx
movl 0x20(%rbp), %r11d
movl 0x28(%rbp), %r10d
movl 0x30(%rbp), %eax
xorl %edx, %edx
movl %edx, %esi
xorl %edx, %edx
movq %rsi, %rdi
movq %r13, (%rsp)
movq %r12, 0x8(%rsp)
movq %r15, 0x10(%rsp)
movl %r14d, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
movl %r11d, 0x28(%rsp)
movl %r10d, 0x30(%rsp)
movl %eax, 0x38(%rsp)
callq 0x3b00
movq %rax, -0x30(%rbp)
jmp 0x3ae0
callq 0x1050
movq -0x30(%rbp), %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw %cs:(%rax,%rax)