// File: /workspace/github_cpp_makefile_star2_O2/szmer[P]brill/./src/rules_scoretab.cpp
// Function: RulesScoreTab::inc_good_ext(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void RulesScoreTab::inc_good_ext(int rule_type, string cue1, string cue2, string alter_tag, string target) {

	long long rule_id = rule_type * EXT_RULE_RANGE
			+ tag_index[ cue1 ] * tag_index.size()*tag_index.size()*tag_index.size()
			+ tag_index[ cue2 ] * tag_index.size()*tag_index.size()
			+ tag_index[ alter_tag ] * tag_index.size()
			+ tag_index[ target ];

	if(tab.find(rule_id) == tab.end())  // if there's no entry for this rule, create one
		tab[ rule_id ] = RuleScore(cue1, cue2, alter_tag, target, rule_id);

	tab[rule_id].good ++;
	eligible_rules.insert(rule_id);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %r9, -0x50(%rbp)
movq %r8, -0x38(%rbp)
movq %rcx, %r15
movq %rdi, %rbx
movslq %esi, %rax
movabsq $0xe6f93c791, %r13      # imm = 0xE6F93C791
imulq %rax, %r13
leaq 0x68(%rdi), %r14
movq %r14, %rdi
movq %rdx, -0x40(%rbp)
movq %rdx, %rsi
callq 0x7306
movslq (%rax), %rax
movq 0x90(%rbx), %r12
imulq %r12, %rax
imulq %r12, %r12
imulq %rax, %r12
movq %r14, %rdi
movq %r15, -0x48(%rbp)
movq %r15, %rsi
callq 0x7306
movslq (%rax), %rax
movq 0x90(%rbx), %r15
imulq %r15, %r15
imulq %rax, %r15
addq %r13, %r15
movq %r14, %rdi
movq -0x38(%rbp), %rsi
callq 0x7306
movslq (%rax), %r13
imulq 0x90(%rbx), %r13
addq %r15, %r13
movq -0x50(%rbp), %r15
addq %r12, %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0x7306
movslq (%rax), %rax
addq %r13, %rax
leaq -0x30(%rbp), %rsi
movq %rax, (%rsi)
leaq 0x38(%rbx), %r14
movq %r14, %rdi
callq 0x9bc8
leaq 0x40(%rbx), %rcx
cmpq %rcx, %rax
jne 0x48c3
movq -0x38(%rbp), %r12
leaq -0xd0(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x2290
leaq -0xb0(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x2290
leaq -0x90(%rbp), %rdi
movq %r12, %rsi
callq 0x2290
leaq -0x70(%rbp), %rdi
movq %r15, %rsi
callq 0x2290
movq -0x30(%rbp), %r9
leaq -0x160(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
leaq -0xb0(%rbp), %rdx
leaq -0x90(%rbp), %rcx
leaq -0x70(%rbp), %r8
callq 0x436a
leaq -0x30(%rbp), %rsi
movq %r14, %rdi
callq 0x75e2
leaq -0x160(%rbp), %r15
movq %rax, %rdi
movq %r15, %rsi
callq 0x7634
movq %r15, %rdi
callq 0x75b0
leaq -0x70(%rbp), %rdi
callq 0x23e8
leaq -0x90(%rbp), %rdi
callq 0x23e8
leaq -0xb0(%rbp), %rdi
callq 0x23e8
leaq -0xd0(%rbp), %rdi
callq 0x23e8
leaq -0x30(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x75e2
incl 0x88(%rax)
addq $0x8, %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x9f60
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x160(%rbp), %rdi
callq 0x75b0
jmp 0x490d
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0x23e8
jmp 0x491b
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x23e8
jmp 0x492c
movq %rax, %rbx
leaq -0xb0(%rbp), %rdi
callq 0x23e8
jmp 0x493d
movq %rax, %rbx
leaq -0xd0(%rbp), %rdi
callq 0x23e8
movq %rbx, %rdi
callq 0x2370
nop