// File: szmer[P]brill/./src/rules_scoretab.cpp
// Function: RulesScoreTab::inc_bad_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>>)
void RulesScoreTab::inc_bad_ext(int rule_type, string cue1, string cue2, string good_target) {
	// Compute the high and low bound for rules concerning this situation.
	long long rule_ind_lowbnd = 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[ good_target ] * tag_index.size(); // here as the alter_tag
	long long rule_ind_hibnd = 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[ good_target ] * tag_index.size()
			+ tag_index.size();

	inc_bad_general(rule_ind_lowbnd, rule_ind_hibnd);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movq %rdx, -0xf8(%rbp)
movl %esi, %eax
movq -0xf8(%rbp), %rsi
movq %rsi, -0xb0(%rbp)
movq %rcx, -0x88(%rbp)
movq %r8, -0x68(%rbp)
movq %rdi, -0x8(%rbp)
movl %eax, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x48(%rbp)
movslq -0xc(%rbp), %rax
movabsq $0xe6f93c791, %rcx      # imm = 0xE6F93C791
imulq %rcx, %rax
movq %rax, -0xd8(%rbp)
addq $0x68, %rdi
callq 0xbd80
movq -0x48(%rbp), %rdi
movslq (%rax), %rax
movq %rax, -0xf0(%rbp)
addq $0x68, %rdi
callq 0xbf20
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movq -0xf0(%rbp), %rax
imulq %rcx, %rax
movq %rax, -0xe8(%rbp)
addq $0x68, %rdi
callq 0xbf20
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movq -0xe8(%rbp), %rax
imulq %rcx, %rax
movq %rax, -0xe0(%rbp)
addq $0x68, %rdi
callq 0xbf20
movq -0xe0(%rbp), %rcx
movq -0x88(%rbp), %rsi
movq -0x48(%rbp), %rdi
movq %rax, %rdx
movq -0xd8(%rbp), %rax
imulq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0xc0(%rbp)
addq $0x68, %rdi
callq 0xbd80
movq -0x48(%rbp), %rdi
movslq (%rax), %rax
movq %rax, -0xd0(%rbp)
addq $0x68, %rdi
callq 0xbf20
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movq -0xd0(%rbp), %rax
imulq %rcx, %rax
movq %rax, -0xc8(%rbp)
addq $0x68, %rdi
callq 0xbf20
movq -0xc8(%rbp), %rcx
movq -0x68(%rbp), %rsi
movq -0x48(%rbp), %rdi
movq %rax, %rdx
movq -0xc0(%rbp), %rax
imulq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0xa8(%rbp)
addq $0x68, %rdi
callq 0xbd80
movq -0x48(%rbp), %rdi
movslq (%rax), %rax
movq %rax, -0xb8(%rbp)
addq $0x68, %rdi
callq 0xbf20
movq -0xb8(%rbp), %rcx
movq -0xb0(%rbp), %rsi
movq -0x48(%rbp), %rdi
movq %rax, %rdx
movq -0xa8(%rbp), %rax
imulq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movslq -0xc(%rbp), %rax
movabsq $0xe6f93c791, %rcx      # imm = 0xE6F93C791
imulq %rcx, %rax
movq %rax, -0x80(%rbp)
addq $0x68, %rdi
callq 0xbd80
movq -0x48(%rbp), %rdi
movslq (%rax), %rax
movq %rax, -0xa0(%rbp)
addq $0x68, %rdi
callq 0xbf20
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movq -0xa0(%rbp), %rax
imulq %rcx, %rax
movq %rax, -0x98(%rbp)
addq $0x68, %rdi
callq 0xbf20
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movq -0x98(%rbp), %rax
imulq %rcx, %rax
movq %rax, -0x90(%rbp)
addq $0x68, %rdi
callq 0xbf20
movq -0x90(%rbp), %rcx
movq -0x88(%rbp), %rsi
movq -0x48(%rbp), %rdi
movq %rax, %rdx
movq -0x80(%rbp), %rax
imulq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x60(%rbp)
addq $0x68, %rdi
callq 0xbd80
movq -0x48(%rbp), %rdi
movslq (%rax), %rax
movq %rax, -0x78(%rbp)
addq $0x68, %rdi
callq 0xbf20
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movq -0x78(%rbp), %rax
imulq %rcx, %rax
movq %rax, -0x70(%rbp)
addq $0x68, %rdi
callq 0xbf20
movq -0x70(%rbp), %rcx
movq -0x68(%rbp), %rsi
movq -0x48(%rbp), %rdi
movq %rax, %rdx
movq -0x60(%rbp), %rax
imulq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
addq $0x68, %rdi
callq 0xbd80
movq -0x48(%rbp), %rdi
movslq (%rax), %rax
movq %rax, -0x58(%rbp)
addq $0x68, %rdi
callq 0xbf20
movq -0x58(%rbp), %rcx
movq -0x48(%rbp), %rdi
movq %rax, %rdx
movq -0x50(%rbp), %rax
imulq %rdx, %rcx
addq %rcx, %rax
movq %rax, -0x40(%rbp)
addq $0x68, %rdi
callq 0xbf20
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movq -0x40(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rsi
movq -0x38(%rbp), %rdx
callq 0x79f0
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
nopl (%rax)