// File: /workspace/github_c_makefile_star2_O3/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 0xe3d6
movq (%rbx), %rcx
xorl %edx, %edx
xorl %esi, %esi
movq (%rcx,%rdx,8), %rdi
addl 0x28c(%rdi), %esi
incq %rdx
cmpq %rdx, %rax
jne 0xe39c
testl %esi, %esi
je 0xe3d6
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xabf7
testl %eax, %eax
je 0xede5
cmpl $0x0, 0x94(%rbx)
je 0xe3ef
movq %rbx, %rdi
callq 0x77bf
testl %eax, %eax
je 0xede5
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
movq %r15, %rax
testq %r14, %r14
je 0xe461
movzwl 0x1f2(%r15), %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xf2f9
testl %eax, %eax
js 0xede5
je 0xe44d
movl $0x1, 0x94(%rbx)
movq (%r14), %r14
movq %rbx, %rdi
callq 0x77bf
testl %eax, %eax
jne 0xe450
jmp 0xede5
movq (%r14), %r14
testq %r14, %r14
jne 0xe412
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movq -0x8(%rax,%rcx,8), %rax
cmpl $0x0, 0x1d8(%rax)
je 0xe4a2
leaq 0x50(%r15), %rsi
movzwl 0x1f2(%r15), %edx
movq %rbx, %rdi
callq 0xf2f9
testl %eax, %eax
js 0xede5
je 0xe4a2
movl $0x1, 0x94(%rbx)
movq %rbx, %rdi
callq 0x77bf
testl %eax, %eax
je 0xede5
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movq -0x8(%rax,%rcx,8), %rax
cmpl $0x0, 0x1dc(%rax)
je 0xe4f2
leaq 0xd0(%r15), %rsi
movzwl 0x1f2(%r15), %edx
movq %rbx, %rdi
callq 0xf2f9
testl %eax, %eax
js 0xede5
je 0xe4f2
movl $0x1, 0x94(%rbx)
movq %rbx, %rdi
callq 0x77bf
testl %eax, %eax
je 0xede5
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movq -0x8(%rax,%rcx,8), %rax
cmpl $0x0, 0x1e0(%rax)
je 0xe55c
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 0xf2f9
testl %eax, %eax
js 0xede5
je 0xe55c
movl $0x1, 0x94(%rbx)
movq %rbx, %rdi
callq 0x77bf
testl %eax, %eax
je 0xede5
movq 0x60(%rbx), %rax
movslq 0x68(%rbx), %rcx
movw $0x0, (%rax,%rcx,2)
xorl %r12d, %r12d
movl %r12d, 0x94(%rbx)
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movq -0x8(%rax,%rcx,8), %r14
decq %rcx
movl %ecx, 0x8(%rbx)
movl %r12d, 0x68(%rbx)
movl %r12d, 0x40(%rbx)
cmpl %r12d, 0x44(%rbx)
jle 0xe9d9
leaq 0x150(%r14), %r13
leaq 0x78(%r14), %rax
movq %rax, 0x20(%rsp)
leaq 0x6a(%r14), %rax
movq %rax, 0x18(%rsp)
leaq 0x5c(%r14), %rax
movq %rax, 0x10(%rsp)
leaq 0x16a(%r14), %rax
movq %rax, 0x8(%rsp)
leaq 0x86(%r14), %rax
movq %rax, (%rsp)
xorl %ebp, %ebp
xorl %r15d, %r15d
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x6f4b
cmpl $0x4, %eax
jne 0xe64a
testl %r12d, %r12d
je 0xe617
movq %rbx, %rdi
callq 0x76d5
testl %eax, %eax
js 0xede5
movl 0x40(%rbx), %eax
movl $0x1, %r12d
movl $0x1, %r15d
cmpl 0x44(%rbx), %eax
jl 0xe5d6
jmp 0xe98a
movl 0xac(%r14), %edx
testl %edx, %edx
je 0xe5ee
cmpl $0x0, 0xb0(%r14)
je 0xe5ee
movzwl 0x1f2(%r14), %ecx
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
callq 0xa884
testl %eax, %eax
jne 0xe5ee
jmp 0xede5
cmpl $0x5, %eax
ja 0xe6da
movl %eax, %ecx
leaq 0x570c(%rip), %rdx      # 0x13d68
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
testl %r12d, %r12d
je 0xe789
movq %rbx, %rdi
callq 0x76d5
movl $0x1, %ebp
movl $0x1, %r12d
testl %eax, %eax
jns 0xe7cd
jmp 0xede5
movq %rbx, %rdi
callq 0x76d5
testl %eax, %eax
js 0xede5
movl 0xa8(%r14), %edx
testl %edx, %edx
je 0xe7c8
movzwl 0x1f2(%r14), %ecx
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
callq 0xa884
xorl %ebp, %ebp
movl $0x0, %r12d
testl %eax, %eax
jne 0xe7cd
jmp 0xede7
xorl %r15d, %r15d
testl %ebp, %ebp
je 0xe702
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x7467
testl %eax, %eax
jne 0xe7cd
jmp 0xede5
movslq 0x40(%rbx), %rdx
movq (%rbx), %rax
movq 0x38(%rbx), %rcx
movslq 0xc(%rbx), %rsi
movq -0x8(%rax,%rsi,8), %rsi
movzwl (%rcx,%rdx,2), %ecx
cmpw 0x1ee(%rsi), %cx
je 0xe739
cmpw 0x1f0(%rsi), %cx
je 0xe739
cmpw 0x1f2(%rsi), %cx
jne 0xe7de
testl %r15d, %r15d
je 0xe770
movl $0x1, 0x94(%rbx)
movl 0x1a8(%r14), %edx
testl %edx, %edx
je 0xe770
movzwl 0x1f2(%r14), %ecx
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0xa884
testl %eax, %eax
je 0xede5
movq %rbx, %rdi
callq 0x7744
xorl %r15d, %r15d
movl $0x0, %ebp
testl %eax, %eax
jns 0xe7cd
jmp 0xede7
movl 0xa4(%r14), %edx
testl %edx, %edx
je 0xe66e
cmpl $0x0, 0xa8(%r14)
je 0xe66e
movzwl 0x1f2(%r14), %ecx
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
callq 0xa884
testl %eax, %eax
jne 0xe66e
jmp 0xede5
xorl %ebp, %ebp
xorl %r12d, %r12d
movl 0x40(%rbx), %eax
cmpl 0x44(%rbx), %eax
jl 0xe5d6
jmp 0xe981
testl %r15d, %r15d
je 0xe8d1
testl %edx, %edx
js 0xe853
cmpl %edx, 0x44(%rbx)
jle 0xe853
movslq 0x8(%rbx), %rdx
movq (%rax,%rdx,8), %rdi
movzwl %cx, %esi
callq 0x1ef5
testq %rax, %rax
je 0xe853
testb $0x3, 0x24(%rax)
je 0xe853
movl $0x1, 0x94(%rbx)
movl 0x1a8(%r14), %edx
testl %edx, %edx
je 0xe83d
movzwl 0x1f2(%r14), %ecx
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0xa884
testl %eax, %eax
je 0xede5
cmpl $0x0, 0xb0(%r14)
jne 0xe917
xorl %r15d, %r15d
jmp 0xe95e
movslq 0x40(%rbx), %rax
testq %rax, %rax
js 0xe88e
cmpl %eax, 0x44(%rbx)
jle 0xe88e
movslq 0x8(%rbx), %rcx
movq (%rbx), %rdx
movq 0x38(%rbx), %rsi
movq (%rdx,%rcx,8), %rdi
movzwl (%rsi,%rax,2), %esi
callq 0x1ef5
testq %rax, %rax
je 0xe88e
movl $0x1, %r15d
testb $0x30, 0x25(%rax)
jne 0xe961
movl $0x1, 0x94(%rbx)
movl 0x1a8(%r14), %edx
testl %edx, %edx
je 0xe959
movzwl 0x1f2(%r14), %ecx
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0xa884
xorl %r15d, %r15d
movl $0x0, %ebp
testl %eax, %eax
jne 0xe961
jmp 0xede7
xorl %r15d, %r15d
testl %r12d, %r12d
je 0xe95e
movl $0x1, %r12d
testl %edx, %edx
js 0xe961
cmpl %edx, 0x44(%rbx)
jle 0xe961
movslq 0x8(%rbx), %rdx
movq (%rax,%rdx,8), %rdi
movzwl %cx, %esi
callq 0x1ef5
testq %rax, %rax
je 0xe961
testb $0x3, 0x24(%rax)
je 0xe961
cmpl $0x0, 0xb0(%r14)
movl $0x0, %r12d
je 0xe961
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x7467
testl %eax, %eax
je 0xede5
movl 0xb0(%r14), %edx
movzwl 0x1f2(%r14), %ecx
movq %rbx, %rdi
movq (%rsp), %rsi
callq 0xa884
xorl %r15d, %r15d
movl $0x0, %ebp
jmp 0xe6c4
xorl %r15d, %r15d
jmp 0xe961
xorl %r12d, %r12d
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x7467
xorl %ebp, %ebp
jmp 0xe6ca
movl %eax, %ebp
jmp 0xede7
testl %r15d, %r15d
je 0xedfb
movl 0x1a8(%r14), %edx
testl %edx, %edx
je 0xe9b2
movzwl 0x1f2(%r14), %ecx
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
callq 0xa884
testl %eax, %eax
je 0xede5
movl 0xb0(%r14), %edx
testl %edx, %edx
je 0xe9d9
movzwl 0x1f2(%r14), %ecx
movq %rbx, %rdi
movq (%rsp), %rsi
callq 0xa884
testl %eax, %eax
je 0xede5
movq 0x60(%rbx), %rax
movslq 0x68(%rbx), %rcx
movw $0x0, (%rax,%rcx,2)
movl 0x94(%rbx), %r15d
testl %r15d, %r15d
je 0xea03
movq %rbx, %rdi
callq 0x77bf
testl %eax, %eax
je 0xede5
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
callq 0xaabf
xorl %ebp, %ebp
testl %eax, %eax
je 0xede7
movl 0x94(%rbx), %eax
xorl %r14d, %r14d
orl %eax, %r15d
setne %r14b
movslq 0xc(%rbx), %rcx
movq (%rbx), %rdx
testq %rcx, %rcx
jle 0xec07
xorl %esi, %esi
xorl %edi, %edi
movq (%rdx,%rsi,8), %r8
addl 0x304(%r8), %edi
incq %rsi
cmpq %rsi, %rcx
jne 0xea43
testl %edi, %edi
je 0xeaa9
testl %eax, %eax
je 0xea6e
movq %rbx, %rdi
callq 0x77bf
testl %eax, %eax
je 0xede5
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
movl $0x6, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xabf7
testl %eax, %eax
je 0xede5
movl 0x94(%rbx), %eax
testl %eax, %eax
movl $0x1, %ecx
cmovnel %ecx, %r14d
movl 0xc(%rbx), %ecx
movq (%rbx), %rdx
testl %ecx, %ecx
jle 0xec07
movl %ecx, %esi
xorl %edi, %edi
xorl %r8d, %r8d
movq (%rdx,%rdi,8), %r9
addl 0x2ec(%r9), %r8d
incq %rdi
cmpq %rdi, %rsi
jne 0xeab8
testl %r8d, %r8d
je 0xeb1f
testl %eax, %eax
je 0xeae4
movq %rbx, %rdi
callq 0x77bf
testl %eax, %eax
je 0xede5
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
movl $0x5, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xabf7
testl %eax, %eax
je 0xede5
movl 0x94(%rbx), %eax
testl %eax, %eax
movl $0x1, %ecx
cmovnel %ecx, %r14d
movl 0xc(%rbx), %ecx
movq (%rbx), %rdx
testl %ecx, %ecx
jle 0xec07
movl %ecx, %esi
xorl %edi, %edi
xorl %r8d, %r8d
movq (%rdx,%rdi,8), %r9
addl 0x2d4(%r9), %r8d
incq %rdi
cmpq %rdi, %rsi
jne 0xeb2e
testl %r8d, %r8d
je 0xeb95
testl %eax, %eax
je 0xeb5a
movq %rbx, %rdi
callq 0x77bf
testl %eax, %eax
je 0xede5
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
movl $0x4, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xabf7
testl %eax, %eax
je 0xede5
movl 0x94(%rbx), %eax
testl %eax, %eax
movl $0x1, %ecx
cmovnel %ecx, %r14d
movl 0xc(%rbx), %ecx
movq (%rbx), %rdx
testl %ecx, %ecx
jle 0xec07
movl %ecx, %esi
xorl %edi, %edi
xorl %r8d, %r8d
movq (%rdx,%rdi,8), %r9
addl 0x2bc(%r9), %r8d
incq %rdi
cmpq %rdi, %rsi
jne 0xeba0
testl %r8d, %r8d
je 0xec07
testl %eax, %eax
je 0xebcc
movq %rbx, %rdi
callq 0x77bf
testl %eax, %eax
je 0xede5
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
movl $0x3, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xabf7
testl %eax, %eax
je 0xede5
movl 0x94(%rbx), %eax
testl %eax, %eax
movl $0x1, %ecx
cmovnel %ecx, %r14d
movq (%rbx), %rdx
movl 0xc(%rbx), %ecx
movslq %ecx, %rsi
movq -0x8(%rdx,%rsi,8), %rdx
cmpl $0x0, 0x1dc(%rdx)
je 0xec5b
testl %eax, %eax
je 0xec2c
movq %rbx, %rdi
callq 0x77bf
testl %eax, %eax
je 0xede7
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
callq 0xee09
movl 0x94(%rbx), %eax
testl %eax, %eax
movl $0x1, %ecx
cmovnel %ecx, %r14d
movq (%rbx), %rdx
movslq 0xc(%rbx), %rcx
movq -0x8(%rdx,%rcx,8), %rdx
cmpl $0x0, 0x1e0(%rdx)
je 0xec9e
testl %eax, %eax
je 0xec78
movq %rbx, %rdi
callq 0x77bf
testl %eax, %eax
je 0xede7
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
callq 0xf077
movl 0xc(%rbx), %ecx
movl 0x94(%rbx), %eax
testl %eax, %eax
movl $0x1, %edx
cmovnel %edx, %r14d
testl %ecx, %ecx
jle 0xed0b
movq (%rbx), %rdx
movl %ecx, %ecx
xorl %esi, %esi
xorl %edi, %edi
movq (%rdx,%rsi,8), %r8
addl 0x2a4(%r8), %edi
incq %rsi
cmpq %rsi, %rcx
jne 0xecab
testl %edi, %edi
je 0xed0b
testl %eax, %eax
je 0xecd6
movq %rbx, %rdi
callq 0x77bf
testl %eax, %eax
je 0xede5
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
movl $0x2, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xabf7
testl %eax, %eax
je 0xede5
movl 0x94(%rbx), %eax
testl %eax, %eax
movl $0x1, %ecx
cmovnel %ecx, %r14d
testl %eax, %eax
je 0xed1f
movq %rbx, %rdi
callq 0x77bf
testl %eax, %eax
je 0xede7
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
callq 0xa9ed
testl %eax, %eax
je 0xede7
movl 0x94(%rbx), %r15d
testl %r15d, %r15d
je 0xed55
movq %rbx, %rdi
callq 0x77bf
testl %eax, %eax
je 0xede7
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
callq 0xab56
testl %eax, %eax
je 0xede7
movl 0x94(%rbx), %eax
orl %eax, %r15d
movl $0x1, %ebp
cmovel %r14d, %ebp
movslq 0xc(%rbx), %rcx
testq %rcx, %rcx
jle 0xede7
movq (%rbx), %rdx
xorl %esi, %esi
xorl %edi, %edi
movq (%rdx,%rsi,8), %r8
addl 0x31c(%r8), %edi
incq %rsi
cmpq %rsi, %rcx
jne 0xed8d
testl %edi, %edi
je 0xede7
testl %eax, %eax
je 0xedb4
movq %rbx, %rdi
callq 0x77bf
testl %eax, %eax
je 0xede5
movl $0x0, 0x94(%rbx)
movq %rbx, %rdi
movl $0x7, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xabf7
testl %eax, %eax
je 0xede5
cmpl $0x0, 0x94(%rbx)
movl $0x1, %eax
cmovnel %eax, %ebp
jmp 0xede7
xorl %ebp, %ebp
movl %ebp, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testl %r12d, %r12d
jne 0xe9b2
jmp 0xe9d9