// File: /workspace/github_cpp_makefile_star2_O1/szmer[P]brill/./src/rules_scoretab.cpp
// Function: RulesScoreTab::inc_good(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>>)
void RulesScoreTab::inc_good(int rule_type, string cue1, string alter_tag, string target) {

	long long rule_id = rule_type * RULE_RANGE
			+ tag_index[ cue1 ] * 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, "", 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 %r8, -0xa8(%rbp)
movq %rcx, %r13
movq %rdi, %rbx
imull $0x767ed6b, %esi, %eax  # imm = 0x767ED6B
movslq %eax, %r15
leaq 0x68(%rdi), %r14
movq %r14, %rdi
movq %rdx, -0xa0(%rbp)
movq %rdx, %rsi
callq 0xab48
movslq (%rax), %rax
movq 0x90(%rbx), %r12
imulq %r12, %r12
imulq %rax, %r12
movq %r14, %rdi
movq %r13, -0x98(%rbp)
movq %r13, %rsi
callq 0xab48
movslq (%rax), %r13
imulq 0x90(%rbx), %r13
addq %r15, %r13
movq -0xa8(%rbp), %r15
addq %r12, %r13
movq %r14, %rdi
movq %r15, %rsi
callq 0xab48
movslq (%rax), %rcx
addq %r13, %rcx
movq %rcx, -0x30(%rbp)
movq 0x48(%rbx), %rsi
leaq 0x40(%rbx), %rax
movq %rax, %rdx
testq %rsi, %rsi
je 0x5388
movq %rax, %rdx
xorl %edi, %edi
cmpq %rcx, 0x20(%rsi)
setl %dil
cmovgeq %rsi, %rdx
movq 0x10(%rsi,%rdi,8), %rsi
testq %rsi, %rsi
jne 0x5370
movq %rax, %rsi
cmpq %rax, %rdx
je 0x539b
cmpq 0x20(%rdx), %rcx
cmovlq %rax, %rdx
movq %rdx, %rsi
leaq 0x38(%rbx), %r14
cmpq %rax, %rsi
jne 0x55a5
leaq -0x80(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0xa0(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x90(%rbp), %rdi
callq 0xbd5c
leaq -0x60(%rbp), %rax
movq %rax, -0x10(%rax)
leaq 0x8d6a(%rip), %rdx      # 0xe146
leaq -0x70(%rbp), %rdi
movq %rdx, %rsi
callq 0xbdf6
leaq -0xb8(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0x98(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0xc8(%rbp), %rdi
callq 0xbd5c
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0xbd5c
movq -0x30(%rbp), %r9
leaq -0x158(%rbp), %rdi
leaq -0x90(%rbp), %rsi
leaq -0x70(%rbp), %rdx
leaq -0xc8(%rbp), %rcx
leaq -0x50(%rbp), %r8
callq 0x4fea
leaq -0x30(%rbp), %rsi
movq %r14, %rdi
callq 0xad8e
movq %rax, %r15
leaq -0x158(%rbp), %rsi
movq %rax, %rdi
callq 0x22a0
leaq 0x20(%r15), %rdi
leaq -0x138(%rbp), %rsi
callq 0x22a0
leaq 0x40(%r15), %rdi
leaq -0x118(%rbp), %rsi
callq 0x22a0
movq %r15, %rdi
addq $0x60, %rdi
leaq -0xf8(%rbp), %r12
movq %r12, %rsi
callq 0x22a0
movq 0x20(%r12), %rax
movq %rax, 0x80(%r15)
movq 0x28(%r12), %rax
movq %rax, 0x88(%r15)
movq (%r12), %rdi
leaq -0xe8(%rbp), %rax
cmpq %rax, %rdi
je 0x54dc
movq -0xe8(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x108(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq -0x60(%rbp), %r15
movq %r13, %r12
je 0x5502
movq -0x108(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x128(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq -0x80(%rbp), %r13
je 0x5525
movq -0x128(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x148(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5544
movq -0x148(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x555d
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0xc8(%rbp), %rdi
cmpq %r12, %rdi
je 0x5578
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x70(%rbp), %rdi
cmpq %r15, %rdi
je 0x558d
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2240
movq -0x90(%rbp), %rdi
cmpq %r13, %rdi
je 0x55a5
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2240
leaq -0x30(%rbp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0xad8e
incl 0x88(%rax)
addq $0x8, %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0xd604
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x158(%rbp), %rdi
callq 0xadf8
jmp 0x55ef
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x560d
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2240
jmp 0x560d
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x562d
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x2240
jmp 0x562d
movq %rax, %rbx
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x564b
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2240
jmp 0x564b
movq %rax, %rbx
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x5667
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x2240
movq %rbx, %rdi
callq 0x23b0
nop