// File: /workspace/github_c_makefile_star2_O1/MikeGray-APH[P]LibLouisAPH/source/languages/generic-backward.c
// Function: translate_generic_backward
int translate_generic_backward(struct translate *translate)
{
	int processed;

	processed = 0;

	if(translate_get_init_dots_hash_cnt(translate))
	{
		CHANGE_RESET
		if(!generic_process(translate, TABLE_HASH_INIT, BACKWARD))
			return 0;
		CHANGE_CHECK
		processed = 1;
	}

	CHANGE_CHECK
	if(!translate_output_to_input(translate))
		return 0;

	/*   does its own swapping   */
	if(!convert_indicators_emphases(translate, translate->tables[translate->table_cnt - 1]))
		return 0;
	processed = 0;

	CHANGE_RESET
	if(!add_soft_terminators(translate))
		return 0;
	CHANGE_CHECK
	processed = 1;

	CHANGE_CHECK
	if(!translate_output_to_input(translate))
		return 0;

	CHANGE_RESET
	if(!generic_remove_modifier_delimiters(translate))
		return 0;
	CHANGE_CHECK
	processed = 1;

	if(translate_get_posttrans_dots_hash_cnt(translate))
	{
		CHANGE_CHECK
		if(!translate_output_to_input(translate))
			return 0;

		CHANGE_RESET
		if(!generic_process(translate, TABLE_HASH_POSTTRANS, BACKWARD))
			return 0;
		CHANGE_CHECK
		processed = 1;
	}

	if(translate_get_trans_dots_hash_cnt(translate))
	{
		CHANGE_CHECK
		if(!translate_output_to_input(translate))
			return 0;

		CHANGE_RESET
		if(!generic_process(translate, TABLE_HASH_TRANS, BACKWARD))
			return 0;
		CHANGE_CHECK
		processed = 1;
	}

	if(translate_get_pretrans_dots_hash_cnt(translate))
	{
		CHANGE_CHECK
		if(!translate_output_to_input(translate))
			return 0;

		CHANGE_RESET
		if(!generic_process(translate, TABLE_HASH_PRETRANS, BACKWARD))
			return 0;
		CHANGE_CHECK
		processed = 1;
	}

	if(translate_get_postmode_dots_hash_cnt(translate))
	{
		CHANGE_CHECK
		if(!translate_output_to_input(translate))
			return 0;

		CHANGE_RESET
		if(!generic_process(translate, TABLE_HASH_POSTMODE, BACKWARD))
			return 0;
		CHANGE_CHECK
		processed = 1;
	}

	if(translate_is_capital_set(translate))
	{
		CHANGE_CHECK
		if(!translate_output_to_input(translate))
			return 0;

		CHANGE_RESET
		convert_indicators_capital(translate);
		CHANGE_CHECK
		processed = 1;
	}

	if(translate_is_numeric_set(translate))
	{
		CHANGE_CHECK
		if(!translate_output_to_input(translate))
			return 0;

		CHANGE_RESET
		convert_indicators_numeric(translate);
		CHANGE_CHECK
		processed = 1;
	}

	if(translate_get_premode_dots_hash_cnt(translate))
	{
		CHANGE_CHECK
		if(!translate_output_to_input(translate))
			return 0;

		CHANGE_RESET
		if(!generic_process(translate, TABLE_HASH_PREMODE, BACKWARD))
			return 0;
		CHANGE_CHECK
		processed = 1;
	}

	CHANGE_CHECK
	if(!translate_output_to_input(translate))
		return 0;

	CHANGE_RESET
	if(!generic_remove_soft_delimiters(translate))
		return 0;
	CHANGE_CHECK
	processed = 1;

	CHANGE_CHECK
	if(!translate_output_to_input(translate))
		return 0;

	CHANGE_RESET
	if(!generic_remove_hard_and_modifier_delimiters(translate))
		return 0;
	CHANGE_CHECK
	processed = 1;

	if(translate_get_fini_dots_hash_cnt(translate))
	{
		CHANGE_CHECK
		if(!translate_output_to_input(translate))
			return 0;

		CHANGE_RESET
		if(!generic_process(translate, TABLE_HASH_FINI, BACKWARD))
			return 0;
		CHANGE_CHECK
		processed = 1;
	}

	return processed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdi, %rbx
movslq 0xc(%rdi), %rax
testq %rax, %rax
jle 0xe556
movq (%rbx), %rcx
xorl %edx, %edx
xorl %esi, %esi
movq (%rcx,%rdx,8), %rdi
addl 0x28c(%rdi), %esi
incq %rdx
cmpq %rdx, %rax
jne 0xe51c
testl %esi, %esi
je 0xe556
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xad13
testl %eax, %eax
je 0xef6b
cmpl $0x0, 0x94(%rbx)
je 0xe56f
movq %rbx, %rdi
callq 0x79ae
testl %eax, %eax
je 0xef6b
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movq -0x8(%rax,%rcx,8), %r15
xorl %eax, %eax
movl %eax, 0x68(%rbx)
movl %eax, 0x40(%rbx)
movq 0x1d0(%r15), %r14
testq %r14, %r14
je 0xe5ce
movzwl 0x1f2(%r15), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xf43c
testl %eax, %eax
js 0xef6b
je 0xe5b6
movl $0x1, 0x94(%rbx)
movq (%r14), %r14
testl %eax, %eax
je 0xe58a
movq %rbx, %rdi
callq 0x79ae
testl %eax, %eax
jne 0xe58a
jmp 0xef6b
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movq -0x8(%rax,%rcx,8), %rax
cmpl $0x0, 0x1d8(%rax)
je 0xe61b
leaq 0x50(%r15), %rsi
movzwl 0x1f2(%r15), %edx
movq %rbx, %rdi
callq 0xf43c
testl %eax, %eax
js 0xef6b
je 0xe61b
movl $0x1, 0x94(%rbx)
movq %rbx, %rdi
callq 0x79ae
testl %eax, %eax
je 0xef6b
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movq -0x8(%rax,%rcx,8), %rax
cmpl $0x0, 0x1dc(%rax)
je 0xe66b
leaq 0xd0(%r15), %rsi
movzwl 0x1f2(%r15), %edx
movq %rbx, %rdi
callq 0xf43c
testl %eax, %eax
js 0xef6b
je 0xe66b
movl $0x1, 0x94(%rbx)
movq %rbx, %rdi
callq 0x79ae
testl %eax, %eax
je 0xef6b
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movq -0x8(%rax,%rcx,8), %rax
cmpl $0x0, 0x1e0(%rax)
je 0xe6d5
leaq 0x150(%r15), %rsi
leaq 0x28(%rsp), %rax
movl $0x10, %ecx
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
movl $0x0, 0x64(%rax)
movzwl 0x1f2(%r15), %edx
movq %rbx, %rdi
movq %rax, %rsi
callq 0xf43c
testl %eax, %eax
js 0xef6b
je 0xe6d5
movl $0x1, 0x94(%rbx)
movq %rbx, %rdi
callq 0x79ae
testl %eax, %eax
je 0xef6b
movq 0x60(%rbx), %rax
movslq 0x68(%rbx), %rcx
movw $0x0, (%rax,%rcx,2)
xorl %r13d, %r13d
movl %r13d, 0x94(%rbx)
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movq -0x8(%rax,%rcx,8), %r14
decq %rcx
movl %ecx, 0x8(%rbx)
movl %r13d, 0x68(%rbx)
movl %r13d, 0x40(%rbx)
cmpl %r13d, 0x44(%rbx)
jle 0xeae8
leaq 0x150(%r14), %r15
leaq 0x78(%r14), %rax
movq %rax, 0x18(%rsp)
leaq 0x6a(%r14), %rax
movq %rax, 0x20(%rsp)
leaq 0x5c(%r14), %rax
movq %rax, 0x10(%rsp)
leaq 0x16a(%r14), %rax
movq %rax, (%rsp)
leaq 0x86(%r14), %rax
movq %rax, 0x8(%rsp)
xorl %ebp, %ebp
xorl %r12d, %r12d
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x7151
cmpl $0x5, %eax
ja 0xe7db
movl %eax, %ecx
leaq 0x552d(%rip), %rdx      # 0x13c98
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
testl %r13d, %r13d
je 0xe8b7
movq %rbx, %rdi
callq 0x78c4
movl $0x1, %ebp
jmp 0xe81a
movq %rbx, %rdi
callq 0x78c4
testl %eax, %eax
js 0xef6b
movl 0xa8(%r14), %edx
testl %edx, %edx
je 0xe935
movzwl 0x1f2(%r14), %ecx
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
callq 0xa978
xorl %ebp, %ebp
movl $0x0, %r13d
testl %eax, %eax
jne 0xe93a
jmp 0xef6d
xorl %r12d, %r12d
testl %ebp, %ebp
je 0xe82d
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x7666
testl %eax, %eax
jne 0xe93a
jmp 0xef6b
testl %r13d, %r13d
je 0xe8f6
movq %rbx, %rdi
callq 0x78c4
movl $0x1, %r12d
movl $0x1, %r13d
testl %eax, %eax
jns 0xe93a
jmp 0xef6b
movslq 0x40(%rbx), %rax
movq (%rbx), %rdx
movq 0x38(%rbx), %rcx
movslq 0xc(%rbx), %rsi
movq -0x8(%rdx,%rsi,8), %rsi
movzwl (%rcx,%rax,2), %edi
cmpw 0x1ee(%rsi), %di
je 0xe864
cmpw 0x1f0(%rsi), %di
je 0xe864
cmpw 0x1f2(%rsi), %di
jne 0xe94b
testl %r12d, %r12d
je 0xe89a
movl $0x1, 0x94(%rbx)
movl 0x1a8(%r14), %edx
testl %edx, %edx
je 0xe89a
movzwl 0x1f2(%r14), %ecx
movq %rbx, %rdi
movq (%rsp), %rsi
callq 0xa978
testl %eax, %eax
je 0xef6b
movq %rbx, %rdi
callq 0x7933
xorl %r12d, %r12d
movl $0x0, %ebp
testl %eax, %eax
jns 0xe93a
jmp 0xef6d
movl 0xa4(%r14), %edx
testl %edx, %edx
je 0xe77d
cmpl $0x0, 0xa8(%r14)
je 0xe77d
movzwl 0x1f2(%r14), %ecx
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
callq 0xa978
testl %eax, %eax
jne 0xe77d
jmp 0xef6b
movl 0xac(%r14), %edx
testl %edx, %edx
je 0xe80c
cmpl $0x0, 0xb0(%r14)
je 0xe80c
movzwl 0x1f2(%r14), %ecx
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
callq 0xa978
testl %eax, %eax
jne 0xe80c
jmp 0xef6b
xorl %ebp, %ebp
xorl %r13d, %r13d
movl 0x40(%rbx), %eax
cmpl 0x44(%rbx), %eax
jl 0xe74f
jmp 0xeaee
testl %r12d, %r12d
je 0xea3d
testl %eax, %eax
js 0xe9c0
cmpl %eax, 0x44(%rbx)
jle 0xe9c0
movslq 0x8(%rbx), %rsi
movq (%rdx,%rsi,8), %rdi
movzwl (%rcx,%rax,2), %esi
callq 0x1e99
testq %rax, %rax
je 0xe9c0
testb $0x3, 0x24(%rax)
je 0xe9c0
movl $0x1, 0x94(%rbx)
movl 0x1a8(%r14), %edx
testl %edx, %edx
je 0xe9aa
movzwl 0x1f2(%r14), %ecx
movq %rbx, %rdi
movq (%rsp), %rsi
callq 0xa978
testl %eax, %eax
je 0xef6b
cmpl $0x0, 0xb0(%r14)
jne 0xea84
xorl %r12d, %r12d
jmp 0xeacc
movslq 0x40(%rbx), %rax
testq %rax, %rax
js 0xe9fb
cmpl %eax, 0x44(%rbx)
jle 0xe9fb
movslq 0x8(%rbx), %rcx
movq (%rbx), %rdx
movq 0x38(%rbx), %rsi
movq (%rdx,%rcx,8), %rdi
movzwl (%rsi,%rax,2), %esi
callq 0x1e99
testq %rax, %rax
je 0xe9fb
movl $0x1, %r12d
testb $0x30, 0x25(%rax)
jne 0xeacf
movl $0x1, 0x94(%rbx)
movl 0x1a8(%r14), %edx
testl %edx, %edx
je 0xeac7
movzwl 0x1f2(%r14), %ecx
movq %rbx, %rdi
movq (%rsp), %rsi
callq 0xa978
xorl %r12d, %r12d
movl $0x0, %ebp
testl %eax, %eax
jne 0xeacf
jmp 0xef6d
xorl %r12d, %r12d
testl %r13d, %r13d
je 0xeacc
movl $0x1, %r13d
testl %eax, %eax
js 0xeacf
cmpl %eax, 0x44(%rbx)
jle 0xeacf
movslq 0x8(%rbx), %rsi
movq (%rdx,%rsi,8), %rdi
movzwl (%rcx,%rax,2), %esi
callq 0x1e99
testq %rax, %rax
je 0xeacf
testb $0x3, 0x24(%rax)
je 0xeacf
cmpl $0x0, 0xb0(%r14)
movl $0x0, %r13d
je 0xeacf
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x7666
testl %eax, %eax
je 0xef6b
movl 0xb0(%r14), %edx
movzwl 0x1f2(%r14), %ecx
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0xa978
xorl %r12d, %r12d
movl $0x0, %ebp
jmp 0xe7c5
xorl %r12d, %r12d
jmp 0xeacf
xorl %r13d, %r13d
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x7666
xorl %ebp, %ebp
jmp 0xe7cb
movb $0x1, %al
movb $0x1, %cl
jmp 0xeafa
testl %r12d, %r12d
sete %al
testl %r13d, %r13d
sete %cl
testb %al, %al
je 0xeb04
testb %cl, %cl
je 0xeb2e
jmp 0xeb5b
movl 0x1a8(%r14), %edx
testl %edx, %edx
je 0xeb2e
leaq 0x16a(%r14), %rsi
movzwl 0x1f2(%r14), %ecx
movq %rbx, %rdi
callq 0xa978
testl %eax, %eax
je 0xef6b
movl 0xb0(%r14), %edx
testl %edx, %edx
je 0xeb5b
movzwl 0x1f2(%r14), %ecx
addq $0x86, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xa978
testl %eax, %eax
je 0xef6b
movq 0x60(%rbx), %rax
movslq 0x68(%rbx), %rcx
movw $0x0, (%rax,%rcx,2)
movl 0x94(%rbx), %r15d
testl %r15d, %r15d
je 0xeb85
movq %rbx, %rdi
callq 0x79ae
testl %eax, %eax
je 0xef6b
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
callq 0xabdb
xorl %ebp, %ebp
testl %eax, %eax
je 0xef6d
movl 0x94(%rbx), %eax
xorl %r14d, %r14d
orl %eax, %r15d
setne %r14b
movslq 0xc(%rbx), %rcx
testq %rcx, %rcx
jle 0xec20
movq (%rbx), %rdx
xorl %esi, %esi
xorl %edi, %edi
movq (%rdx,%rsi,8), %r8
addl 0x304(%r8), %edi
incq %rsi
cmpq %rsi, %rcx
jne 0xebc1
testl %edi, %edi
je 0xec20
testl %eax, %eax
je 0xebec
movq %rbx, %rdi
callq 0x79ae
testl %eax, %eax
je 0xef6b
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
movl $0x6, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xad13
testl %eax, %eax
je 0xef6b
cmpl $0x0, 0x94(%rbx)
movl $0x1, %eax
cmovnel %eax, %r14d
movslq 0xc(%rbx), %rax
testq %rax, %rax
jle 0xec93
movq (%rbx), %rcx
xorl %edx, %edx
xorl %esi, %esi
movq (%rcx,%rdx,8), %rdi
addl 0x2ec(%rdi), %esi
incq %rdx
cmpq %rdx, %rax
jne 0xec30
testl %esi, %esi
je 0xec93
cmpl $0x0, 0x94(%rbx)
je 0xec5f
movq %rbx, %rdi
callq 0x79ae
testl %eax, %eax
je 0xef6b
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
movl $0x5, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xad13
testl %eax, %eax
je 0xef6b
cmpl $0x0, 0x94(%rbx)
movl $0x1, %eax
cmovnel %eax, %r14d
movslq 0xc(%rbx), %rax
testq %rax, %rax
jle 0xed06
movq (%rbx), %rcx
xorl %edx, %edx
xorl %esi, %esi
movq (%rcx,%rdx,8), %rdi
addl 0x2d4(%rdi), %esi
incq %rdx
cmpq %rdx, %rax
jne 0xeca3
testl %esi, %esi
je 0xed06
cmpl $0x0, 0x94(%rbx)
je 0xecd2
movq %rbx, %rdi
callq 0x79ae
testl %eax, %eax
je 0xef6b
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
movl $0x4, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xad13
testl %eax, %eax
je 0xef6b
cmpl $0x0, 0x94(%rbx)
movl $0x1, %eax
cmovnel %eax, %r14d
movslq 0xc(%rbx), %rax
testq %rax, %rax
jle 0xed79
movq (%rbx), %rcx
xorl %edx, %edx
xorl %esi, %esi
movq (%rcx,%rdx,8), %rdi
addl 0x2bc(%rdi), %esi
incq %rdx
cmpq %rdx, %rax
jne 0xed16
testl %esi, %esi
je 0xed79
cmpl $0x0, 0x94(%rbx)
je 0xed45
movq %rbx, %rdi
callq 0x79ae
testl %eax, %eax
je 0xef6b
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
movl $0x3, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xad13
testl %eax, %eax
je 0xef6b
cmpl $0x0, 0x94(%rbx)
movl $0x1, %eax
cmovnel %eax, %r14d
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movq -0x8(%rax,%rcx,8), %rax
cmpl $0x0, 0x1dc(%rax)
je 0xedc9
cmpl $0x0, 0x94(%rbx)
je 0xeda7
movq %rbx, %rdi
callq 0x79ae
testl %eax, %eax
je 0xef6d
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
callq 0xef85
cmpl $0x0, 0x94(%rbx)
movl $0x1, %eax
cmovnel %eax, %r14d
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movq -0x8(%rax,%rcx,8), %rax
cmpl $0x0, 0x1e0(%rax)
je 0xee19
cmpl $0x0, 0x94(%rbx)
je 0xedf7
movq %rbx, %rdi
callq 0x79ae
testl %eax, %eax
je 0xef6d
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
callq 0xf1de
cmpl $0x0, 0x94(%rbx)
movl $0x1, %eax
cmovnel %eax, %r14d
movslq 0xc(%rbx), %rax
testq %rax, %rax
jle 0xee8c
movq (%rbx), %rcx
xorl %edx, %edx
xorl %esi, %esi
movq (%rcx,%rdx,8), %rdi
addl 0x2a4(%rdi), %esi
incq %rdx
cmpq %rdx, %rax
jne 0xee29
testl %esi, %esi
je 0xee8c
cmpl $0x0, 0x94(%rbx)
je 0xee58
movq %rbx, %rdi
callq 0x79ae
testl %eax, %eax
je 0xef6b
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
movl $0x2, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xad13
testl %eax, %eax
je 0xef6b
cmpl $0x0, 0x94(%rbx)
movl $0x1, %eax
cmovnel %eax, %r14d
cmpl $0x0, 0x94(%rbx)
je 0xeea5
movq %rbx, %rdi
callq 0x79ae
testl %eax, %eax
je 0xef6d
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
callq 0xaae9
testl %eax, %eax
je 0xef6d
movl 0x94(%rbx), %r15d
testl %r15d, %r15d
je 0xeedb
movq %rbx, %rdi
callq 0x79ae
testl %eax, %eax
je 0xef6d
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
callq 0xac72
testl %eax, %eax
je 0xef6d
movl 0x94(%rbx), %eax
orl %eax, %r15d
movl $0x1, %ebp
cmovel %r14d, %ebp
movslq 0xc(%rbx), %rcx
testq %rcx, %rcx
jle 0xef6d
movq (%rbx), %rdx
xorl %esi, %esi
xorl %edi, %edi
movq (%rdx,%rsi,8), %r8
addl 0x31c(%r8), %edi
incq %rsi
cmpq %rsi, %rcx
jne 0xef13
testl %edi, %edi
je 0xef6d
testl %eax, %eax
je 0xef3a
movq %rbx, %rdi
callq 0x79ae
testl %eax, %eax
je 0xef6b
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
movl $0x7, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xad13
testl %eax, %eax
je 0xef6b
cmpl $0x0, 0x94(%rbx)
movl $0x1, %eax
cmovnel %eax, %ebp
jmp 0xef6d
xorl %ebp, %ebp
movl %ebp, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %ebp
jmp 0xef6d