// File: /workspace/github_c_makefile_star2_O2/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
leaq 0x15ff(%rip), %rbx      # 0x3049
pushq $0x2
popq %r14
leaq 0x15f7(%rip), %r15      # 0x304c
movq (%rdi), %r13
movq %r13, (%rsp)
testq %r13, %r13
je 0x1c87
movq (%r13), %r12
movq %r12, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x25d8
testl %eax, %eax
jne 0x1c7a
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x25d8
testl %eax, %eax
jne 0x1c7a
movq 0x8(%r13), %rax
testq %rax, %rax
je 0x1c7a
movq (%r13), %rbp
movq (%rax), %r12
movq %rbp, %rdi
leaq 0x159c(%rip), %rsi      # 0x304f
pushq $0x3
popq %rdx
callq 0x25d8
testl %eax, %eax
je 0x1ad9
movq %r12, %rdi
leaq 0x158a(%rip), %rsi      # 0x3053
pushq $0x3
popq %rdx
callq 0x25d8
testl %eax, %eax
jne 0x1bc5
movq %rbp, %rdi
leaq 0x156d(%rip), %rsi      # 0x3050
movq %r14, %rdx
callq 0x25d8
testl %eax, %eax
je 0x1b09
movq %r12, %rdi
leaq 0x155b(%rip), %rsi      # 0x3054
movq %r14, %rdx
callq 0x25d8
testl %eax, %eax
jne 0x1bc5
movq %rbp, %rdi
leaq 0x1544(%rip), %rsi      # 0x3057
movq %r14, %rdx
callq 0x25d8
testl %eax, %eax
je 0x1b39
movq %r12, %rdi
leaq 0x1531(%rip), %rsi      # 0x305a
movq %r14, %rdx
callq 0x25d8
testl %eax, %eax
jne 0x1bc5
movq %rbp, %rdi
leaq 0x1510(%rip), %rsi      # 0x3053
pushq $0x3
popq %rdx
callq 0x25d8
testl %eax, %eax
je 0x1b65
movq %r12, %rdi
leaq 0x14f6(%rip), %rsi      # 0x304f
pushq $0x3
popq %rdx
callq 0x25d8
testl %eax, %eax
jne 0x1bc5
movq %rbp, %rdi
leaq 0x14e5(%rip), %rsi      # 0x3054
movq %r14, %rdx
callq 0x25d8
testl %eax, %eax
je 0x1b91
movq %r12, %rdi
leaq 0x14cb(%rip), %rsi      # 0x3050
movq %r14, %rdx
callq 0x25d8
testl %eax, %eax
jne 0x1bc5
movq %rbp, %rdi
leaq 0x14bf(%rip), %rsi      # 0x305a
movq %r14, %rdx
callq 0x25d8
testl %eax, %eax
je 0x1c7a
movq %r12, %rdi
leaq 0x14a2(%rip), %rsi      # 0x3057
movq %r14, %rdx
callq 0x25d8
testl %eax, %eax
je 0x1c7a
movq (%r13), %r12
movq %r12, %rdi
leaq 0x147c(%rip), %rsi      # 0x304f
pushq $0x3
popq %rdx
callq 0x25d8
testl %eax, %eax
jne 0x1bf5
movq %r12, %rdi
leaq 0x146a(%rip), %rsi      # 0x3053
pushq $0x3
popq %rdx
callq 0x25d8
testl %eax, %eax
je 0x1c04
movq %rsp, %rdi
leaq 0x145e(%rip), %rsi      # 0x305d
callq 0x1c96
movq %r12, %rdi
leaq 0x1442(%rip), %rsi      # 0x3050
movq %r14, %rdx
callq 0x25d8
testl %eax, %eax
jne 0x1c30
movq %r12, %rdi
leaq 0x1430(%rip), %rsi      # 0x3054
movq %r14, %rdx
callq 0x25d8
testl %eax, %eax
je 0x1c3f
movq %rsp, %rdi
leaq 0x1424(%rip), %rsi      # 0x305e
callq 0x1c96
movq %r12, %rdi
leaq 0x140e(%rip), %rsi      # 0x3057
movq %r14, %rdx
callq 0x25d8
testl %eax, %eax
jne 0x1c6b
movq %r12, %rdi
leaq 0x13fb(%rip), %rsi      # 0x305a
movq %r14, %rdx
callq 0x25d8
testl %eax, %eax
je 0x1c7a
movq %rsp, %rdi
leaq 0x13ed(%rip), %rsi      # 0x3062
callq 0x1c96
movq (%rsp), %rdi
addq $0x8, %rdi
jmp 0x1a55
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq