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

; 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: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) #1

; 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) #2

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

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

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

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

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

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_llvh0x3A0x3Asys0x3A0x3AProcess0x3A0x3AGetMallocUsage0x280x29(ptr noundef) #4

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_llvh0x3A0x3ATimer0x3A0x3AstartTimer0x280x29(ptr noundef %0, i32 noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %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 i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.w2c_hermes, ptr %19, i32 0, i32 3
  %21 = load i32, ptr %20, align 8, !tbaa !13
  store i32 %21, ptr %10, align 4, !tbaa !9
  store i32 32, ptr %11, align 4, !tbaa !9
  %22 = load i32, ptr %11, align 4, !tbaa !9
  %23 = load i32, ptr %10, align 4, !tbaa !9
  %24 = sub i32 %23, %22
  store i32 %24, ptr %10, align 4, !tbaa !9
  %25 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %25, ptr %5, align 4, !tbaa !9
  %26 = load i32, ptr %10, align 4, !tbaa !9
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.w2c_hermes, ptr %27, i32 0, i32 3
  store i32 %26, ptr %28, align 8, !tbaa !13
  %29 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %29, ptr %10, align 4, !tbaa !9
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.w2c_hermes, ptr %30, i32 0, i32 6
  %32 = load i32, ptr %10, align 4, !tbaa !9
  %33 = zext i32 %32 to i64
  %34 = add i64 %33, 88
  %35 = call i32 @i32_load8_u(ptr noundef %31, i64 noundef %34)
  store i32 %35, ptr %10, align 4, !tbaa !9
  %36 = load i32, ptr %10, align 4, !tbaa !9
  %37 = icmp ne i32 %36, 0
  %38 = xor i1 %37, true
  %39 = zext i1 %38 to i32
  store i32 %39, ptr %10, align 4, !tbaa !9
  %40 = load i32, ptr %10, align 4, !tbaa !9
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %164

42:                                               ; preds = %2
  %43 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %43, ptr %10, align 4, !tbaa !9
  store i32 257, ptr %11, align 4, !tbaa !9
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.w2c_hermes, ptr %44, i32 0, i32 6
  %46 = load i32, ptr %10, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = add i64 %47, 88
  %49 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %45, i64 noundef %48, i32 noundef %49)
  %50 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %50, ptr %10, align 4, !tbaa !9
  store i64 0, ptr %16, align 8, !tbaa !11
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.w2c_hermes, ptr %51, i32 0, i32 6
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = add i64 %54, 24
  %56 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %52, i64 noundef %55, i64 noundef %56)
  store i32 297916, ptr %10, align 4, !tbaa !9
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.w2c_hermes, ptr %57, i32 0, i32 6
  %59 = load i32, ptr %10, align 4, !tbaa !9
  %60 = zext i32 %59 to i64
  %61 = call i32 @i32_load8_u(ptr noundef %58, i64 noundef %60)
  store i32 %61, ptr %10, align 4, !tbaa !9
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %67

64:                                               ; preds = %42
  %65 = load ptr, ptr %3, align 8, !tbaa !5
  %66 = call i32 @w2c_hermes_llvh0x3A0x3Asys0x3A0x3AProcess0x3A0x3AGetMallocUsage0x280x29(ptr noundef %65)
  store i32 %66, ptr %10, align 4, !tbaa !9
  br label %68

67:                                               ; preds = %42
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %67, %64
  %69 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %69, ptr %6, align 4, !tbaa !9
  %70 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %70, ptr %10, align 4, !tbaa !9
  store i32 24, ptr %11, align 4, !tbaa !9
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = load i32, ptr %10, align 4, !tbaa !9
  %73 = add i32 %72, %71
  store i32 %73, ptr %10, align 4, !tbaa !9
  %74 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %74, ptr %11, align 4, !tbaa !9
  store i32 16, ptr %12, align 4, !tbaa !9
  %75 = load i32, ptr %12, align 4, !tbaa !9
  %76 = load i32, ptr %11, align 4, !tbaa !9
  %77 = add i32 %76, %75
  store i32 %77, ptr %11, align 4, !tbaa !9
  %78 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %78, ptr %12, align 4, !tbaa !9
  store i32 8, ptr %13, align 4, !tbaa !9
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = add i32 %80, %79
  store i32 %81, ptr %12, align 4, !tbaa !9
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = load i32, ptr %10, align 4, !tbaa !9
  %84 = load i32, ptr %11, align 4, !tbaa !9
  %85 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3AProcess0x3A0x3AGetTimeUsage0x28std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Atime_point0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Asystem_clock0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x3E0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x260x29(ptr noundef %82, i32 noundef %83, i32 noundef %84, i32 noundef %85)
  %86 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %86, ptr %10, align 4, !tbaa !9
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.w2c_hermes, ptr %87, i32 0, i32 6
  %89 = load i32, ptr %10, align 4, !tbaa !9
  %90 = zext i32 %89 to i64
  %91 = add i64 %90, 24
  %92 = call i64 @i64_load(ptr noundef %88, i64 noundef %91)
  store i64 %92, ptr %15, align 8, !tbaa !11
  %93 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %93, ptr %7, align 8, !tbaa !11
  %94 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %94, ptr %10, align 4, !tbaa !9
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.w2c_hermes, ptr %95, i32 0, i32 6
  %97 = load i32, ptr %10, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = add i64 %98, 16
  %100 = call i64 @i64_load(ptr noundef %96, i64 noundef %99)
  store i64 %100, ptr %15, align 8, !tbaa !11
  %101 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %101, ptr %8, align 8, !tbaa !11
  %102 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %102, ptr %10, align 4, !tbaa !9
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.w2c_hermes, ptr %103, i32 0, i32 6
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = add i64 %106, 8
  %108 = call i64 @i64_load(ptr noundef %104, i64 noundef %107)
  store i64 %108, ptr %15, align 8, !tbaa !11
  %109 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %109, ptr %9, align 8, !tbaa !11
  %110 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %110, ptr %10, align 4, !tbaa !9
  %111 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %111, ptr %11, align 4, !tbaa !9
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.w2c_hermes, ptr %112, i32 0, i32 6
  %114 = load i32, ptr %10, align 4, !tbaa !9
  %115 = zext i32 %114 to i64
  %116 = add i64 %115, 56
  %117 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %113, i64 noundef %116, i32 noundef %117)
  %118 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %118, ptr %10, align 4, !tbaa !9
  %119 = load i64, ptr %9, align 8, !tbaa !11
  store i64 %119, ptr %16, align 8, !tbaa !11
  %120 = load i64, ptr %16, align 8, !tbaa !11
  %121 = sitofp i64 %120 to double
  store double %121, ptr %17, align 8, !tbaa !18
  store double 1.000000e+09, ptr %18, align 8, !tbaa !18
  %122 = load double, ptr %18, align 8, !tbaa !18
  %123 = load double, ptr %17, align 8, !tbaa !18
  %124 = fdiv double %123, %122
  store double %124, ptr %17, align 8, !tbaa !18
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.w2c_hermes, ptr %125, i32 0, i32 6
  %127 = load i32, ptr %10, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = add i64 %128, 48
  %130 = load double, ptr %17, align 8, !tbaa !18
  call void @f64_store(ptr noundef %126, i64 noundef %129, double noundef %130)
  %131 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %131, ptr %10, align 4, !tbaa !9
  %132 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %132, ptr %16, align 8, !tbaa !11
  %133 = load i64, ptr %16, align 8, !tbaa !11
  %134 = sitofp i64 %133 to double
  store double %134, ptr %17, align 8, !tbaa !18
  store double 1.000000e+09, ptr %18, align 8, !tbaa !18
  %135 = load double, ptr %18, align 8, !tbaa !18
  %136 = load double, ptr %17, align 8, !tbaa !18
  %137 = fdiv double %136, %135
  store double %137, ptr %17, align 8, !tbaa !18
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.w2c_hermes, ptr %138, i32 0, i32 6
  %140 = load i32, ptr %10, align 4, !tbaa !9
  %141 = zext i32 %140 to i64
  %142 = add i64 %141, 40
  %143 = load double, ptr %17, align 8, !tbaa !18
  call void @f64_store(ptr noundef %139, i64 noundef %142, double noundef %143)
  %144 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %144, ptr %10, align 4, !tbaa !9
  %145 = load i64, ptr %7, align 8, !tbaa !11
  store i64 %145, ptr %16, align 8, !tbaa !11
  %146 = load i64, ptr %16, align 8, !tbaa !11
  %147 = sitofp i64 %146 to double
  store double %147, ptr %17, align 8, !tbaa !18
  store double 1.000000e+09, ptr %18, align 8, !tbaa !18
  %148 = load double, ptr %18, align 8, !tbaa !18
  %149 = load double, ptr %17, align 8, !tbaa !18
  %150 = fdiv double %149, %148
  store double %150, ptr %17, align 8, !tbaa !18
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.w2c_hermes, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %10, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = add i64 %154, 32
  %156 = load double, ptr %17, align 8, !tbaa !18
  call void @f64_store(ptr noundef %152, i64 noundef %155, double noundef %156)
  %157 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %157, ptr %10, align 4, !tbaa !9
  store i32 32, ptr %11, align 4, !tbaa !9
  %158 = load i32, ptr %11, align 4, !tbaa !9
  %159 = load i32, ptr %10, align 4, !tbaa !9
  %160 = add i32 %159, %158
  store i32 %160, ptr %10, align 4, !tbaa !9
  %161 = load i32, ptr %10, align 4, !tbaa !9
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.w2c_hermes, ptr %162, i32 0, i32 3
  store i32 %161, ptr %163, align 8, !tbaa !13
  br label %182

164:                                              ; preds = %2
  store i32 0, ptr %10, align 4, !tbaa !9
  %165 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %165, ptr %5, align 4, !tbaa !9
  store i32 148159, ptr %11, align 4, !tbaa !9
  %166 = load i32, ptr %11, align 4, !tbaa !9
  %167 = load i32, ptr %10, align 4, !tbaa !9
  %168 = add i32 %167, %166
  store i32 %168, ptr %10, align 4, !tbaa !9
  %169 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %169, ptr %11, align 4, !tbaa !9
  store i32 57479, ptr %12, align 4, !tbaa !9
  %170 = load i32, ptr %12, align 4, !tbaa !9
  %171 = load i32, ptr %11, align 4, !tbaa !9
  %172 = add i32 %171, %170
  store i32 %172, ptr %11, align 4, !tbaa !9
  store i32 135, ptr %12, align 4, !tbaa !9
  %173 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %173, ptr %13, align 4, !tbaa !9
  store i32 50281, ptr %14, align 4, !tbaa !9
  %174 = load i32, ptr %14, align 4, !tbaa !9
  %175 = load i32, ptr %13, align 4, !tbaa !9
  %176 = add i32 %175, %174
  store i32 %176, ptr %13, align 4, !tbaa !9
  %177 = load ptr, ptr %3, align 8, !tbaa !5
  %178 = load i32, ptr %10, align 4, !tbaa !9
  %179 = load i32, ptr %11, align 4, !tbaa !9
  %180 = load i32, ptr %12, align 4, !tbaa !9
  %181 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %177, i32 noundef %178, i32 noundef %179, i32 noundef %180, i32 noundef %181)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

182:                                              ; preds = %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { "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 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 #5 = { nounwind }
attributes #6 = { 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}
!13 = !{!14, !10, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !17, i64 80}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !16, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !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: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_load(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @f64_store(ptr noundef, i64 noundef, double noundef) local_unnamed_addr #0

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_llvh0x3A0x3Asys0x3A0x3AProcess0x3A0x3AGetMallocUsage0x280x29(ptr noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_llvh0x3A0x3ATimer0x3A0x3AstartTimer0x280x29(ptr noundef %0, i32 noundef %1) local_unnamed_addr #3 {
  %3 = getelementptr inbounds i8, ptr %0, i64 24
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = add i32 %4, -32
  store i32 %5, ptr %3, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = zext i32 %1 to i64
  %8 = add nuw nsw i64 %7, 88
  %9 = tail call i32 @i32_load8_u(ptr noundef nonnull %6, i64 noundef %8)
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %10, label %35

10:                                               ; preds = %2
  tail call void @i32_store16(ptr noundef nonnull %6, i64 noundef %8, i32 noundef 257)
  %11 = zext i32 %5 to i64
  %12 = add nuw nsw i64 %11, 24
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %12, i64 noundef 0)
  %13 = tail call i32 @i32_load8_u(ptr noundef nonnull %6, i64 noundef 297916)
  %.not96 = icmp eq i32 %13, 0
  br i1 %.not96, label %16, label %14

14:                                               ; preds = %10
  %15 = tail call i32 @w2c_hermes_llvh0x3A0x3Asys0x3A0x3AProcess0x3A0x3AGetMallocUsage0x280x29(ptr noundef nonnull %0)
  br label %16

16:                                               ; preds = %10, %14
  %.0 = phi i32 [ %15, %14 ], [ 0, %10 ]
  %17 = add i32 %4, -8
  %18 = add i32 %4, -16
  %19 = add i32 %4, -24
  tail call void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3AProcess0x3A0x3AGetTimeUsage0x28std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Atime_point0x3Cstd0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Asystem_clock0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x3E0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x260x2C0x20std0x3A0x3A_0x5F20x3A0x3Achrono0x3A0x3Aduration0x3Clong0x20long0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aratio0x3C1ll0x2C0x201000000000ll0x3E0x3E0x260x29(ptr noundef nonnull %0, i32 noundef %17, i32 noundef %18, i32 noundef %19)
  %20 = tail call i64 @i64_load(ptr noundef nonnull %6, i64 noundef %12)
  %21 = add nuw nsw i64 %11, 16
  %22 = tail call i64 @i64_load(ptr noundef nonnull %6, i64 noundef %21)
  %23 = add nuw nsw i64 %11, 8
  %24 = tail call i64 @i64_load(ptr noundef nonnull %6, i64 noundef %23)
  %25 = add nuw nsw i64 %7, 56
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %25, i32 noundef %.0)
  %26 = sitofp i64 %24 to double
  %27 = fdiv double %26, 1.000000e+09
  %28 = add nuw nsw i64 %7, 48
  tail call void @f64_store(ptr noundef nonnull %6, i64 noundef %28, double noundef %27)
  %29 = sitofp i64 %22 to double
  %30 = fdiv double %29, 1.000000e+09
  %31 = add nuw nsw i64 %7, 40
  tail call void @f64_store(ptr noundef nonnull %6, i64 noundef %31, double noundef %30)
  %32 = sitofp i64 %20 to double
  %33 = fdiv double %32, 1.000000e+09
  %34 = add nuw nsw i64 %7, 32
  tail call void @f64_store(ptr noundef nonnull %6, i64 noundef %34, double noundef %33)
  store i32 %4, ptr %3, align 8, !tbaa !5
  ret void

35:                                               ; preds = %2
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 148159, i32 noundef 57479, i32 noundef 135, i32 noundef 50281) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

attributes #0 = { 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 #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 = { "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 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)"}
!5 = !{!6, !10, i64 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}


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