#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*/ step_hash(int);
int func_28(short p_29, unsigned p_30, unsigned p_31, unsigned p_32,
            unsigned p_33) {
  int l_54 = (-6L);
  int *l_208 = &l_54;
  int **l_207 = &l_208;
  int ***l_206 = &l_207;
  int *l_211 = &l_54;
  step_hash(155);
  for (p_29 = (-24); (p_29 == (-4)); p_29++) {
    short l_210 = 0xAC2EL;
    int *l_212 = &l_54;
  }
  step_hash(156);
  (*l_207) = (**l_206);
  step_hash(157);
  return p_30;
}


x86 assembly (clang, -O0):
<func_28>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
movl   $0xfffffffa,-0x18(%rbp)
lea    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    -0x20(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    -0x28(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    -0x18(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    $0x9b,%edi
call   1030 <step_hash@plt>
movw   $0xffe8,-0x2(%rbp)
movswl -0x2(%rbp),%eax
cmp    $0xfffffffc,%eax
jne    118f <func_28+0x7f>
movw   $0xac2e,-0x3a(%rbp)
lea    -0x18(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x2(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x2(%rbp)
jmp    1163 <func_28+0x53>
mov    $0x9c,%edi
call   1030 <step_hash@plt>
mov    -0x30(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%rcx
mov    -0x28(%rbp),%rax
mov    %rcx,(%rax)
mov    $0x9d,%edi
call   1030 <step_hash@plt>
mov    -0x8(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<func_28>:
push   %rbx
mov    %esi,%ebx
mov    $0x9b,%edi
call   1030 <step_hash@plt>
mov    $0x9c,%edi
call   1030 <step_hash@plt>
mov    $0x9d,%edi
call   1030 <step_hash@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @func_28(i16 signext %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i16
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32*
%13 = alloca i32**
%14 = alloca i32***
%15 = alloca i32*
%16 = alloca i16
%17 = alloca i32*
store i16 %0, i16* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
store i32 -6, i32* %11
store i32* %11, i32** %12
store i32** %12, i32*** %13
store i32*** %13, i32**** %14
store i32* %11, i32** %15
%18 = call i32 @step_hash(i32 155)
store i16 -24, i16* %6
br label %19
19: ; preds = %24, %5
%20 = load i16, i16* %6
%21 = sext i16 %20 to i32
%22 = icmp eq i32 %21, -4
br i1 %22, label %23, label %27
23: ; preds = %19
store i16 -21458, i16* %16
store i32* %11, i32** %17
br label %24
24: ; preds = %23
%25 = load i16, i16* %6
%26 = add i16 %25, 1
store i16 %26, i16* %6
br label %19
27: ; preds = %19
%28 = call i32 @step_hash(i32 156)
%29 = load i32***, i32**** %14
%30 = load i32**, i32*** %29
%31 = load i32*, i32** %30
%32 = load i32**, i32*** %13
store i32* %31, i32** %32
%33 = call i32 @step_hash(i32 157)
%34 = load i32, i32* %7
ret i32 %34
}

LLVM IR (-O2):
define i32 @func_28(i16 signext %0, i32 returned %1, i32 %2, i32 %3, i32 %4) {
%6 = tail call i32 @step_hash(i32 155)
%7 = tail call i32 @step_hash(i32 156)
%8 = tail call i32 @step_hash(i32 157)
ret i32 %1
}