#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ replace_number(int **, int, int);
void break_left_wall(int maze[25][25], int walls[25][25 - 1], int i, int j) {
  walls[i][j - 1] = 0;
  replace_number(maze, maze[i][j], maze[i][j - 1]);
}


x86 assembly (clang, -O0):
<break_left_wall>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x60,%rcx,%rcx
add    %rcx,%rax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x8(%rbp),%rdi
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x64,%rcx,%rcx
add    %rcx,%rax
mov    -0x18(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edx
call   1030 <replace_number@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<break_left_wall>:
movslq %edx,%rax
lea    (%rax,%rax,2),%rdx
shl    $0x5,%rdx
add    %rsi,%rdx
movslq %ecx,%rcx
movl   $0x0,-0x4(%rdx,%rcx,4)
imul   $0x64,%rax,%rax
add    %rdi,%rax
mov    -0x4(%rax,%rcx,4),%edx
mov    (%rax,%rcx,4),%esi
jmp    1030 <replace_number@plt>

LLVM IR (-O0):
define void @break_left_wall([25 x i32]* %0, [24 x i32]* %1, i32 %2, i32 %3) {
%5 = alloca [25 x i32]*
%6 = alloca [24 x i32]*
%7 = alloca i32
%8 = alloca i32
store [25 x i32]* %0, [25 x i32]** %5
store [24 x i32]* %1, [24 x i32]** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load [24 x i32]*, [24 x i32]** %6
%10 = load i32, i32* %7
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [24 x i32], [24 x i32]* %9, i64 %11
%13 = load i32, i32* %8
%14 = sub nsw i32 %13, 1
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [24 x i32], [24 x i32]* %12, i64 0, i64 %15
store i32 0, i32* %16
%17 = load [25 x i32]*, [25 x i32]** %5
%18 = bitcast [25 x i32]* %17 to i32**
%19 = load [25 x i32]*, [25 x i32]** %5
%20 = load i32, i32* %7
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [25 x i32], [25 x i32]* %19, i64 %21
%23 = load i32, i32* %8
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [25 x i32], [25 x i32]* %22, i64 0, i64 %24
%26 = load i32, i32* %25
%27 = load [25 x i32]*, [25 x i32]** %5
%28 = load i32, i32* %7
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [25 x i32], [25 x i32]* %27, i64 %29
%31 = load i32, i32* %8
%32 = sub nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [25 x i32], [25 x i32]* %30, i64 0, i64 %33
%35 = load i32, i32* %34
%36 = call i32 @replace_number(i32** %18, i32 %26, i32 %35)
ret void
}

LLVM IR (-O2):
define void @break_left_wall([25 x i32]* %0, [24 x i32]* nocapture writeonly %1, i32 %2, i32 %3) {
%5 = sext i32 %2 to i64
%6 = add nsw i32 %3, -1
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds [24 x i32], [24 x i32]* %1, i64 %5, i64 %7
store i32 0, i32* %8
%9 = bitcast [25 x i32]* %0 to i32**
%10 = sext i32 %3 to i64
%11 = getelementptr inbounds [25 x i32], [25 x i32]* %0, i64 %5, i64 %10
%12 = load i32, i32* %11
%13 = getelementptr inbounds [25 x i32], [25 x i32]* %0, i64 %5, i64 %7
%14 = load i32, i32* %13
%15 = tail call i32 @replace_number(i32** %9, i32 %12, i32 %14)
ret void
}