// File: /workspace/github_c_makefile_star2_O1/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 0x1d6d
leaq 0x1557(%rip), %rbx      # 0x3049
leaq 0x1553(%rip), %r14      # 0x304c
leaq 0x154f(%rip), %r15      # 0x304f
movq (%r12), %r13
movl $0x2, %edx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x26d4
testl %eax, %eax
jne 0x1d5f
movl $0x2, %edx
movq %r13, %rdi
movq %r14, %rsi
callq 0x26d4
testl %eax, %eax
jne 0x1d5f
movq 0x8(%r12), %rax
testq %rax, %rax
je 0x1d5f
movq (%r12), %r13
movq (%rax), %rbp
movl $0x3, %edx
movq %r13, %rdi
movq %r15, %rsi
callq 0x26d4
testl %eax, %eax
je 0x1b79
movl $0x3, %edx
movq %rbp, %rdi
leaq 0x14e7(%rip), %rsi      # 0x3053
callq 0x26d4
testl %eax, %eax
jne 0x1c75
movl $0x2, %edx
movq %r13, %rdi
leaq 0x14c8(%rip), %rsi      # 0x3050
callq 0x26d4
testl %eax, %eax
je 0x1bad
movl $0x2, %edx
movq %rbp, %rdi
leaq 0x14b4(%rip), %rsi      # 0x3054
callq 0x26d4
testl %eax, %eax
jne 0x1c75
movl $0x2, %edx
movq %r13, %rdi
leaq 0x149b(%rip), %rsi      # 0x3057
callq 0x26d4
testl %eax, %eax
je 0x1be1
movl $0x2, %edx
movq %rbp, %rdi
leaq 0x1486(%rip), %rsi      # 0x305a
callq 0x26d4
testl %eax, %eax
jne 0x1c75
movl $0x3, %edx
movq %r13, %rdi
leaq 0x1463(%rip), %rsi      # 0x3053
callq 0x26d4
testl %eax, %eax
je 0x1c0d
movl $0x3, %edx
movq %rbp, %rdi
movq %r15, %rsi
callq 0x26d4
testl %eax, %eax
jne 0x1c75
movl $0x2, %edx
movq %r13, %rdi
leaq 0x1438(%rip), %rsi      # 0x3054
callq 0x26d4
testl %eax, %eax
je 0x1c3d
movl $0x2, %edx
movq %rbp, %rdi
leaq 0x141c(%rip), %rsi      # 0x3050
callq 0x26d4
testl %eax, %eax
jne 0x1c75
movl $0x2, %edx
movq %r13, %rdi
leaq 0x140e(%rip), %rsi      # 0x305a
callq 0x26d4
testl %eax, %eax
je 0x1d5f
movl $0x2, %edx
movq %rbp, %rdi
leaq 0x13ef(%rip), %rsi      # 0x3057
callq 0x26d4
testl %eax, %eax
je 0x1d5f
movq (%r12), %r13
movl $0x3, %edx
movq %r13, %rdi
movq %r15, %rsi
callq 0x26d4
testl %eax, %eax
jne 0x1ca5
movl $0x3, %edx
movq %r13, %rdi
leaq 0x13b7(%rip), %rsi      # 0x3053
callq 0x26d4
testl %eax, %eax
je 0x1cc3
leaq 0x13b1(%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 0x137e(%rip), %rsi      # 0x3050
callq 0x26d4
testl %eax, %eax
jne 0x1cf3
movl $0x2, %edx
movq %r13, %rdi
leaq 0x136a(%rip), %rsi      # 0x3054
callq 0x26d4
testl %eax, %eax
je 0x1d11
leaq 0x1364(%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 0x1337(%rip), %rsi      # 0x3057
callq 0x26d4
testl %eax, %eax
jne 0x1d41
movl $0x2, %edx
movq %r13, %rdi
leaq 0x1322(%rip), %rsi      # 0x305a
callq 0x26d4
testl %eax, %eax
je 0x1d5f
leaq 0x131a(%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 0x1b00
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq