// File: /workspace/github_c_makefile_star2_O3/paulahemsi[P]push_swap/./source/reduce_instructions.c
// Function: reduce_instructions
void	reduce_instructions(t_list **instructions)
{
	t_list	*instr;

	instr = *instructions;
	while (instr)
	{
		if (is_reducible(instr->content))
			if (instr->next)
				if (next_is_a_match(instr->content, instr->next->content))
					replace_instructions(&instr, instr->content);
		instr = instr->next;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %r12
testq %r12, %r12
je 0x1d71
leaq 0x1553(%rip), %rbx      # 0x3049
leaq 0x154f(%rip), %r14      # 0x304c
leaq 0x154b(%rip), %r15      # 0x304f
movq (%r12), %r13
movl $0x2, %edx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x26a4
testl %eax, %eax
jne 0x1d63
movl $0x2, %edx
movq %r13, %rdi
movq %r14, %rsi
callq 0x26a4
testl %eax, %eax
jne 0x1d63
movq 0x8(%r12), %rax
testq %rax, %rax
je 0x1d63
movq (%r12), %r13
movq (%rax), %rbp
movl $0x3, %edx
movq %r13, %rdi
movq %r15, %rsi
callq 0x26a4
testl %eax, %eax
je 0x1b7d
movl $0x3, %edx
movq %rbp, %rdi
leaq 0x14e3(%rip), %rsi      # 0x3053
callq 0x26a4
testl %eax, %eax
jne 0x1c79
movl $0x2, %edx
movq %r13, %rdi
leaq 0x14c4(%rip), %rsi      # 0x3050
callq 0x26a4
testl %eax, %eax
je 0x1bb1
movl $0x2, %edx
movq %rbp, %rdi
leaq 0x14b0(%rip), %rsi      # 0x3054
callq 0x26a4
testl %eax, %eax
jne 0x1c79
movl $0x2, %edx
movq %r13, %rdi
leaq 0x1497(%rip), %rsi      # 0x3057
callq 0x26a4
testl %eax, %eax
je 0x1be5
movl $0x2, %edx
movq %rbp, %rdi
leaq 0x1482(%rip), %rsi      # 0x305a
callq 0x26a4
testl %eax, %eax
jne 0x1c79
movl $0x3, %edx
movq %r13, %rdi
leaq 0x145f(%rip), %rsi      # 0x3053
callq 0x26a4
testl %eax, %eax
je 0x1c11
movl $0x3, %edx
movq %rbp, %rdi
movq %r15, %rsi
callq 0x26a4
testl %eax, %eax
jne 0x1c79
movl $0x2, %edx
movq %r13, %rdi
leaq 0x1434(%rip), %rsi      # 0x3054
callq 0x26a4
testl %eax, %eax
je 0x1c41
movl $0x2, %edx
movq %rbp, %rdi
leaq 0x1418(%rip), %rsi      # 0x3050
callq 0x26a4
testl %eax, %eax
jne 0x1c79
movl $0x2, %edx
movq %r13, %rdi
leaq 0x140a(%rip), %rsi      # 0x305a
callq 0x26a4
testl %eax, %eax
je 0x1d63
movl $0x2, %edx
movq %rbp, %rdi
leaq 0x13eb(%rip), %rsi      # 0x3057
callq 0x26a4
testl %eax, %eax
je 0x1d63
movq (%r12), %r13
movl $0x3, %edx
movq %r13, %rdi
movq %r15, %rsi
callq 0x26a4
testl %eax, %eax
jne 0x1ca9
movl $0x3, %edx
movq %r13, %rdi
leaq 0x13b3(%rip), %rsi      # 0x3053
callq 0x26a4
testl %eax, %eax
je 0x1cc7
leaq 0x13ad(%rip), %rax      # 0x305d
movq %rax, (%r12)
movq 0x8(%r12), %rdi
movq 0x8(%rdi), %rax
movq %rax, 0x8(%r12)
callq 0x1070
movl $0x2, %edx
movq %r13, %rdi
leaq 0x137a(%rip), %rsi      # 0x3050
callq 0x26a4
testl %eax, %eax
jne 0x1cf7
movl $0x2, %edx
movq %r13, %rdi
leaq 0x1366(%rip), %rsi      # 0x3054
callq 0x26a4
testl %eax, %eax
je 0x1d15
leaq 0x1360(%rip), %rax      # 0x305e
movq %rax, (%r12)
movq 0x8(%r12), %rdi
movq 0x8(%rdi), %rax
movq %rax, 0x8(%r12)
callq 0x1070
movl $0x2, %edx
movq %r13, %rdi
leaq 0x1333(%rip), %rsi      # 0x3057
callq 0x26a4
testl %eax, %eax
jne 0x1d45
movl $0x2, %edx
movq %r13, %rdi
leaq 0x131e(%rip), %rsi      # 0x305a
callq 0x26a4
testl %eax, %eax
je 0x1d63
leaq 0x1316(%rip), %rax      # 0x3062
movq %rax, (%r12)
movq 0x8(%r12), %rdi
movq 0x8(%rdi), %rax
movq %rax, 0x8(%r12)
callq 0x1070
movq 0x8(%r12), %r12
testq %r12, %r12
jne 0x1b04
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq