// File: /workspace/github_c_makefile_star2_O0/saltyJeff[P]uClibcpp/extra/config/./expr.c
// Function: expr_eliminate_dups1
static void expr_eliminate_dups1(enum expr_type type, struct expr **ep1, struct expr **ep2)
{
#define e1 (*ep1)
#define e2 (*ep2)
	struct expr *tmp;

	if (e1->type == type) {
		expr_eliminate_dups1(type, &e1->left.expr, &e2);
		expr_eliminate_dups1(type, &e1->right.expr, &e2);
		return;
	}
	if (e2->type == type) {
		expr_eliminate_dups1(type, &e1, &e2->left.expr);
		expr_eliminate_dups1(type, &e1, &e2->right.expr);
		return;
	}
	if (e1 == e2)
		return;

	switch (e1->type) {
	case E_OR: case E_AND:
		expr_eliminate_dups1(e1->type, &e1, &e1);
	default:
		;
	}

	switch (type) {
	case E_OR:
		tmp = expr_join_or(e1, e2);
		if (tmp) {
			expr_free(e1); expr_free(e2);
			e1 = expr_alloc_symbol(&symbol_no);
			e2 = tmp;
			trans_count++;
		}
		break;
	case E_AND:
		tmp = expr_join_and(e1, e2);
		if (tmp) {
			expr_free(e1); expr_free(e2);
			e1 = expr_alloc_symbol(&symbol_yes);
			e2 = tmp;
			trans_count++;
		}
		break;
	default:
		;
	}
#undef e1
#undef e2
}

// Assembly:
subq $0x28, %rsp
movl %edi, 0x24(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq (%rax), %rax
movl (%rax), %eax
cmpl 0x24(%rsp), %eax
jne 0xd12b
movl 0x24(%rsp), %edi
movq 0x18(%rsp), %rax
movq (%rax), %rsi
addq $0x8, %rsi
movq 0x10(%rsp), %rdx
callq 0xd0d0
movl 0x24(%rsp), %edi
movq 0x18(%rsp), %rax
movq (%rax), %rsi
addq $0x10, %rsi
movq 0x10(%rsp), %rdx
callq 0xd0d0
jmp 0xd2ba
movq 0x10(%rsp), %rax
movq (%rax), %rax
movl (%rax), %eax
cmpl 0x24(%rsp), %eax
jne 0xd174
movl 0x24(%rsp), %edi
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rax
movq (%rax), %rdx
addq $0x8, %rdx
callq 0xd0d0
movl 0x24(%rsp), %edi
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rax
movq (%rax), %rdx
addq $0x10, %rdx
callq 0xd0d0
jmp 0xd2ba
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
cmpq (%rcx), %rax
jne 0xd18b
jmp 0xd2ba
movq 0x18(%rsp), %rax
movq (%rax), %rax
movl (%rax), %eax
decl %eax
subl $0x1, %eax
ja 0xd1b7
jmp 0xd19e
movq 0x18(%rsp), %rax
movq (%rax), %rax
movl (%rax), %edi
movq 0x18(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0xd0d0
jmp 0xd1b9
movl 0x24(%rsp), %eax
movl %eax, 0x4(%rsp)
subl $0x1, %eax
je 0xd1d6
jmp 0xd1c8
movl 0x4(%rsp), %eax
subl $0x2, %eax
je 0xd247
jmp 0xd2b8
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movq 0x10(%rsp), %rax
movq (%rax), %rsi
callq 0xc630
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0xd245
movq 0x18(%rsp), %rax
movq (%rax), %rdi
callq 0xbb90
movq 0x10(%rsp), %rax
movq (%rax), %rdi
callq 0xbb90
leaq 0xbfff(%rip), %rdi      # 0x19218
callq 0x6840
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, (%rax)
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, (%rax)
movl 0xdb78(%rip), %eax      # 0x1adb4
addl $0x1, %eax
movl %eax, 0xdb6f(%rip)      # 0x1adb4
jmp 0xd2ba
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movq 0x10(%rsp), %rax
movq (%rax), %rsi
callq 0xca10
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0xd2b6
movq 0x18(%rsp), %rax
movq (%rax), %rdi
callq 0xbb90
movq 0x10(%rsp), %rax
movq (%rax), %rdi
callq 0xbb90
leaq 0xbffe(%rip), %rdi      # 0x19288
callq 0x6840
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, (%rax)
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, (%rax)
movl 0xdb07(%rip), %eax      # 0x1adb4
addl $0x1, %eax
movl %eax, 0xdafe(%rip)      # 0x1adb4
jmp 0xd2ba
jmp 0xd2ba
addq $0x28, %rsp
retq
nop