; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_compiled_0)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store8(ptr noundef, i64 noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store16(ptr noundef, i64 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3AESTree0x3A0x3ABlockStatementNode0x3A0x3ABlockStatementNode0x28llvh0x3A0x3Asimple_ilist0x3Chermes0x3A0x3AESTree0x3A0x3ANode0x3E0x260x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %17 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %17, ptr %11, align 4, !tbaa !9
  store i64 0, ptr %16, align 8, !tbaa !11
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.w2c_hermes, ptr %18, i32 0, i32 6
  %20 = load i32, ptr %11, align 4, !tbaa !9
  %21 = zext i32 %20 to i64
  %22 = add i64 %21, 12
  %23 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %19, i64 noundef %22, i64 noundef %23)
  %24 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %24, ptr %11, align 4, !tbaa !9
  store i32 20, ptr %12, align 4, !tbaa !9
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.w2c_hermes, ptr %25, i32 0, i32 6
  %27 = load i32, ptr %11, align 4, !tbaa !9
  %28 = zext i32 %27 to i64
  %29 = add i64 %28, 8
  %30 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %26, i64 noundef %29, i32 noundef %30)
  %31 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %31, ptr %11, align 4, !tbaa !9
  store i64 0, ptr %16, align 8, !tbaa !11
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.w2c_hermes, ptr %32, i32 0, i32 6
  %34 = load i32, ptr %11, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %33, i64 noundef %35, i64 noundef %36)
  %37 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %37, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.w2c_hermes, ptr %38, i32 0, i32 6
  %40 = load i32, ptr %11, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = add i64 %41, 34
  %43 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %39, i64 noundef %42, i32 noundef %43)
  %44 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %44, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.w2c_hermes, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %11, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = add i64 %48, 32
  %50 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %46, i64 noundef %49, i32 noundef %50)
  %51 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %51, ptr %11, align 4, !tbaa !9
  store i64 0, ptr %16, align 8, !tbaa !11
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.w2c_hermes, ptr %52, i32 0, i32 6
  %54 = load i32, ptr %11, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = add i64 %55, 20
  %57 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %53, i64 noundef %56, i64 noundef %57)
  %58 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %58, ptr %11, align 4, !tbaa !9
  %59 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %59, ptr %12, align 4, !tbaa !9
  store i32 36, ptr %13, align 4, !tbaa !9
  %60 = load i32, ptr %13, align 4, !tbaa !9
  %61 = load i32, ptr %12, align 4, !tbaa !9
  %62 = add i32 %61, %60
  store i32 %62, ptr %12, align 4, !tbaa !9
  %63 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %63, ptr %7, align 4, !tbaa !9
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.w2c_hermes, ptr %64, i32 0, i32 6
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = add i64 %67, 40
  %69 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %65, i64 noundef %68, i32 noundef %69)
  %70 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %70, ptr %11, align 4, !tbaa !9
  %71 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %71, ptr %12, align 4, !tbaa !9
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.w2c_hermes, ptr %72, i32 0, i32 6
  %74 = load i32, ptr %11, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = add i64 %75, 36
  %77 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %73, i64 noundef %76, i32 noundef %77)
  %78 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %78, ptr %11, align 4, !tbaa !9
  %79 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %79, ptr %12, align 4, !tbaa !9
  %80 = load i32, ptr %11, align 4, !tbaa !9
  %81 = load i32, ptr %12, align 4, !tbaa !9
  %82 = icmp eq i32 %80, %81
  %83 = zext i1 %82 to i32
  store i32 %83, ptr %11, align 4, !tbaa !9
  %84 = load i32, ptr %11, align 4, !tbaa !9
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %87

86:                                               ; preds = %3
  br label %180

87:                                               ; preds = %3
  %88 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %88, ptr %11, align 4, !tbaa !9
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.w2c_hermes, ptr %89, i32 0, i32 6
  %91 = load i32, ptr %11, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = add i64 %92, 4
  %94 = call i32 @i32_load(ptr noundef %90, i64 noundef %93)
  store i32 %94, ptr %11, align 4, !tbaa !9
  %95 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %95, ptr %8, align 4, !tbaa !9
  %96 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %96, ptr %12, align 4, !tbaa !9
  %97 = load i32, ptr %11, align 4, !tbaa !9
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = icmp eq i32 %97, %98
  %100 = zext i1 %99 to i32
  store i32 %100, ptr %11, align 4, !tbaa !9
  %101 = load i32, ptr %11, align 4, !tbaa !9
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %104

103:                                              ; preds = %87
  br label %180

104:                                              ; preds = %87
  %105 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %105, ptr %11, align 4, !tbaa !9
  %106 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %106, ptr %12, align 4, !tbaa !9
  %107 = load i32, ptr %11, align 4, !tbaa !9
  %108 = load i32, ptr %12, align 4, !tbaa !9
  %109 = icmp eq i32 %107, %108
  %110 = zext i1 %109 to i32
  store i32 %110, ptr %11, align 4, !tbaa !9
  %111 = load i32, ptr %11, align 4, !tbaa !9
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %114

113:                                              ; preds = %104
  br label %182

114:                                              ; preds = %104
  %115 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %115, ptr %11, align 4, !tbaa !9
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.w2c_hermes, ptr %116, i32 0, i32 6
  %118 = load i32, ptr %11, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = call i32 @i32_load(ptr noundef %117, i64 noundef %119)
  store i32 %120, ptr %11, align 4, !tbaa !9
  %121 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %121, ptr %9, align 4, !tbaa !9
  %122 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %122, ptr %11, align 4, !tbaa !9
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.w2c_hermes, ptr %123, i32 0, i32 6
  %125 = load i32, ptr %11, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = call i32 @i32_load(ptr noundef %124, i64 noundef %126)
  store i32 %127, ptr %11, align 4, !tbaa !9
  %128 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %128, ptr %10, align 4, !tbaa !9
  %129 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %129, ptr %12, align 4, !tbaa !9
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.w2c_hermes, ptr %130, i32 0, i32 6
  %132 = load i32, ptr %11, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = add i64 %133, 4
  %135 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %131, i64 noundef %134, i32 noundef %135)
  %136 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %136, ptr %11, align 4, !tbaa !9
  %137 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %137, ptr %12, align 4, !tbaa !9
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.w2c_hermes, ptr %138, i32 0, i32 6
  %140 = load i32, ptr %11, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %139, i64 noundef %141, i32 noundef %142)
  %143 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %143, ptr %11, align 4, !tbaa !9
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.w2c_hermes, ptr %144, i32 0, i32 6
  %146 = load i32, ptr %11, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = call i32 @i32_load(ptr noundef %145, i64 noundef %147)
  store i32 %148, ptr %11, align 4, !tbaa !9
  %149 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %149, ptr %6, align 4, !tbaa !9
  %150 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %150, ptr %11, align 4, !tbaa !9
  %151 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %151, ptr %12, align 4, !tbaa !9
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.w2c_hermes, ptr %152, i32 0, i32 6
  %154 = load i32, ptr %11, align 4, !tbaa !9
  %155 = zext i32 %154 to i64
  %156 = add i64 %155, 4
  %157 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %153, i64 noundef %156, i32 noundef %157)
  %158 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %158, ptr %11, align 4, !tbaa !9
  %159 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %159, ptr %12, align 4, !tbaa !9
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.w2c_hermes, ptr %160, i32 0, i32 6
  %162 = load i32, ptr %11, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %161, i64 noundef %163, i32 noundef %164)
  %165 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %165, ptr %11, align 4, !tbaa !9
  %166 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %166, ptr %12, align 4, !tbaa !9
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.w2c_hermes, ptr %167, i32 0, i32 6
  %169 = load i32, ptr %11, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = add i64 %170, 4
  %172 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %168, i64 noundef %171, i32 noundef %172)
  %173 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %173, ptr %11, align 4, !tbaa !9
  %174 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %174, ptr %12, align 4, !tbaa !9
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.w2c_hermes, ptr %175, i32 0, i32 6
  %177 = load i32, ptr %11, align 4, !tbaa !9
  %178 = zext i32 %177 to i64
  %179 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %176, i64 noundef %178, i32 noundef %179)
  br label %180

180:                                              ; preds = %114, %103, %86
  %181 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %181, ptr %11, align 4, !tbaa !9
  br label %200

182:                                              ; preds = %113
  store i32 0, ptr %11, align 4, !tbaa !9
  %183 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %183, ptr %5, align 4, !tbaa !9
  store i32 142905, ptr %12, align 4, !tbaa !9
  %184 = load i32, ptr %12, align 4, !tbaa !9
  %185 = load i32, ptr %11, align 4, !tbaa !9
  %186 = add i32 %185, %184
  store i32 %186, ptr %11, align 4, !tbaa !9
  %187 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %187, ptr %12, align 4, !tbaa !9
  store i32 83477, ptr %13, align 4, !tbaa !9
  %188 = load i32, ptr %13, align 4, !tbaa !9
  %189 = load i32, ptr %12, align 4, !tbaa !9
  %190 = add i32 %189, %188
  store i32 %190, ptr %12, align 4, !tbaa !9
  store i32 61, ptr %13, align 4, !tbaa !9
  %191 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %191, ptr %14, align 4, !tbaa !9
  store i32 72011, ptr %15, align 4, !tbaa !9
  %192 = load i32, ptr %15, align 4, !tbaa !9
  %193 = load i32, ptr %14, align 4, !tbaa !9
  %194 = add i32 %193, %192
  store i32 %194, ptr %14, align 4, !tbaa !9
  %195 = load ptr, ptr %4, align 8, !tbaa !5
  %196 = load i32, ptr %11, align 4, !tbaa !9
  %197 = load i32, ptr %12, align 4, !tbaa !9
  %198 = load i32, ptr %13, align 4, !tbaa !9
  %199 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %195, i32 noundef %196, i32 noundef %197, i32 noundef %198, i32 noundef %199)
  call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

200:                                              ; preds = %180
  %201 = load i32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret i32 %201
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store8(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store16(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_hermes0x3A0x3AESTree0x3A0x3ABlockStatementNode0x3A0x3ABlockStatementNode0x28llvh0x3A0x3Asimple_ilist0x3Chermes0x3A0x3AESTree0x3A0x3ANode0x3E0x260x260x29(ptr noundef %0, i32 noundef returned %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  %5 = zext i32 %1 to i64
  %6 = add nuw nsw i64 %5, 12
  tail call void @i64_store(ptr noundef nonnull %4, i64 noundef %6, i64 noundef 0)
  %7 = add nuw nsw i64 %5, 8
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %7, i32 noundef 20)
  tail call void @i64_store(ptr noundef nonnull %4, i64 noundef %5, i64 noundef 0)
  %8 = add nuw nsw i64 %5, 34
  tail call void @i32_store8(ptr noundef nonnull %4, i64 noundef %8, i32 noundef 0)
  %9 = add nuw nsw i64 %5, 32
  tail call void @i32_store16(ptr noundef nonnull %4, i64 noundef %9, i32 noundef 0)
  %10 = add nuw nsw i64 %5, 20
  tail call void @i64_store(ptr noundef nonnull %4, i64 noundef %10, i64 noundef 0)
  %11 = add i32 %1, 36
  %12 = add nuw nsw i64 %5, 40
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %12, i32 noundef %11)
  %13 = add nuw nsw i64 %5, 36
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %13, i32 noundef %11)
  %14 = icmp eq i32 %11, %2
  br i1 %14, label %34, label %15

15:                                               ; preds = %3
  %16 = zext i32 %2 to i64
  %17 = add nuw nsw i64 %16, 4
  %18 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %17)
  %19 = icmp eq i32 %18, %2
  br i1 %19, label %34, label %20

20:                                               ; preds = %15
  %21 = icmp eq i32 %11, %18
  br i1 %21, label %35, label %22

22:                                               ; preds = %20
  %23 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %16)
  %24 = zext i32 %18 to i64
  %25 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %24)
  %26 = zext i32 %25 to i64
  %27 = add nuw nsw i64 %26, 4
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %27, i32 noundef %2)
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %16, i32 noundef %25)
  %28 = zext i32 %11 to i64
  %29 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %28)
  %30 = zext i32 %23 to i64
  %31 = add nuw nsw i64 %30, 4
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %31, i32 noundef %11)
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %24, i32 noundef %29)
  %32 = zext i32 %29 to i64
  %33 = add nuw nsw i64 %32, 4
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %33, i32 noundef %18)
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %28, i32 noundef %23)
  br label %34

34:                                               ; preds = %15, %3, %22
  ret i32 %1

35:                                               ; preds = %20
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 142905, i32 noundef 83477, i32 noundef 61, i32 noundef 72011)
  tail call void @wasm_rt_trap(i32 noundef 5) #3
  unreachable
}

attributes #0 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass