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

; 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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 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 i64 @i64_reinterpret_f64(double noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @f64_reinterpret_i64(i64 noundef) #1

; Function Attrs: nounwind uwtable
declare hidden double @wasm_fabs(double noundef) #4

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmathPow0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #4 {
  %6 = alloca ptr, align 8
  %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 i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 0, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store double 0.000000e+00, ptr %16, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store double 0.000000e+00, ptr %17, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store double 0.000000e+00, ptr %18, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.w2c_hermes, ptr %32, i32 0, i32 3
  %34 = load i32, ptr %33, align 8, !tbaa !15
  store i32 %34, ptr %19, align 4, !tbaa !9
  store i32 48, ptr %20, align 4, !tbaa !9
  %35 = load i32, ptr %20, align 4, !tbaa !9
  %36 = load i32, ptr %19, align 4, !tbaa !9
  %37 = sub i32 %36, %35
  store i32 %37, ptr %19, align 4, !tbaa !9
  %38 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %38, ptr %11, align 4, !tbaa !9
  %39 = load i32, ptr %19, align 4, !tbaa !9
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.w2c_hermes, ptr %40, i32 0, i32 3
  store i32 %39, ptr %41, align 8, !tbaa !15
  %42 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %42, ptr %19, align 4, !tbaa !9
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.w2c_hermes, ptr %43, i32 0, i32 6
  %45 = load i32, ptr %19, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = add i64 %46, 4
  %48 = call i32 @i32_load(ptr noundef %44, i64 noundef %47)
  store i32 %48, ptr %19, align 4, !tbaa !9
  %49 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %49, ptr %12, align 4, !tbaa !9
  %50 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %50, ptr %19, align 4, !tbaa !9
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.w2c_hermes, ptr %51, i32 0, i32 6
  %53 = load i32, ptr %19, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = call i32 @i32_load(ptr noundef %52, i64 noundef %54)
  store i32 %55, ptr %19, align 4, !tbaa !9
  %56 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %56, ptr %10, align 4, !tbaa !9
  %57 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %57, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.w2c_hermes, ptr %58, i32 0, i32 6
  %60 = load i32, ptr %19, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = add i64 %61, 24
  %63 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %59, i64 noundef %62, i32 noundef %63)
  %64 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %64, ptr %19, align 4, !tbaa !9
  %65 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %65, ptr %20, align 4, !tbaa !9
  store i32 8, ptr %21, align 4, !tbaa !9
  %66 = load i32, ptr %21, align 4, !tbaa !9
  %67 = load i32, ptr %20, align 4, !tbaa !9
  %68 = sub i32 %67, %66
  store i32 %68, ptr %20, align 4, !tbaa !9
  store i32 217528, ptr %21, align 4, !tbaa !9
  %69 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %69, ptr %22, align 4, !tbaa !9
  %70 = load i32, ptr %22, align 4, !tbaa !9
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %74

72:                                               ; preds = %5
  %73 = load i32, ptr %20, align 4, !tbaa !9
  br label %76

74:                                               ; preds = %5
  %75 = load i32, ptr %21, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %74, %72
  %77 = phi i32 [ %73, %72 ], [ %75, %74 ]
  store i32 %77, ptr %20, align 4, !tbaa !9
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.w2c_hermes, ptr %78, i32 0, i32 6
  %80 = load i32, ptr %19, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = add i64 %81, 28
  %83 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %79, i64 noundef %82, i32 noundef %83)
  %84 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %84, ptr %19, align 4, !tbaa !9
  store i32 32, ptr %20, align 4, !tbaa !9
  %85 = load i32, ptr %20, align 4, !tbaa !9
  %86 = load i32, ptr %19, align 4, !tbaa !9
  %87 = add i32 %86, %85
  store i32 %87, ptr %19, align 4, !tbaa !9
  %88 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %88, ptr %20, align 4, !tbaa !9
  %89 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %89, ptr %21, align 4, !tbaa !9
  store i32 24, ptr %22, align 4, !tbaa !9
  %90 = load i32, ptr %22, align 4, !tbaa !9
  %91 = load i32, ptr %21, align 4, !tbaa !9
  %92 = add i32 %91, %90
  store i32 %92, ptr %21, align 4, !tbaa !9
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = load i32, ptr %19, align 4, !tbaa !9
  %95 = load i32, ptr %20, align 4, !tbaa !9
  %96 = load i32, ptr %21, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %93, i32 noundef %94, i32 noundef %95, i32 noundef %96)
  %97 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %97, ptr %19, align 4, !tbaa !9
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.w2c_hermes, ptr %98, i32 0, i32 6
  %100 = load i32, ptr %19, align 4, !tbaa !9
  %101 = zext i32 %100 to i64
  %102 = add i64 %101, 24
  %103 = call i32 @i32_load(ptr noundef %99, i64 noundef %102)
  store i32 %103, ptr %19, align 4, !tbaa !9
  %104 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %104, ptr %13, align 4, !tbaa !9
  %105 = load i32, ptr %19, align 4, !tbaa !9
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %123

107:                                              ; preds = %76
  %108 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %108, ptr %19, align 4, !tbaa !9
  %109 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %109, ptr %20, align 4, !tbaa !9
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.w2c_hermes, ptr %110, i32 0, i32 6
  %112 = load i32, ptr %20, align 4, !tbaa !9
  %113 = zext i32 %112 to i64
  %114 = call i32 @i32_load(ptr noundef %111, i64 noundef %113)
  store i32 %114, ptr %20, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  %115 = load i32, ptr %21, align 4, !tbaa !9
  %116 = load i32, ptr %20, align 4, !tbaa !9
  %117 = sub i32 %116, %115
  store i32 %117, ptr %20, align 4, !tbaa !9
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.w2c_hermes, ptr %118, i32 0, i32 6
  %120 = load i32, ptr %19, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %119, i64 noundef %121, i32 noundef %122)
  br label %123

123:                                              ; preds = %107, %76
  %124 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %124, ptr %19, align 4, !tbaa !9
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.w2c_hermes, ptr %125, i32 0, i32 6
  %127 = load i32, ptr %19, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = add i64 %128, 32
  %130 = call i32 @i32_load(ptr noundef %126, i64 noundef %129)
  store i32 %130, ptr %19, align 4, !tbaa !9
  %131 = load i32, ptr %19, align 4, !tbaa !9
  switch i32 %131, label %134 [
    i32 0, label %132
    i32 1, label %133
  ]

132:                                              ; preds = %123
  br label %135

133:                                              ; preds = %123
  br label %160

134:                                              ; preds = %123
  br label %142

135:                                              ; preds = %132
  %136 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %136, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.w2c_hermes, ptr %137, i32 0, i32 6
  %139 = load i32, ptr %19, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %138, i64 noundef %140, i32 noundef %141)
  br label %403

142:                                              ; preds = %134
  store i32 0, ptr %19, align 4, !tbaa !9
  %143 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %143, ptr %11, align 4, !tbaa !9
  store i32 109639, ptr %20, align 4, !tbaa !9
  %144 = load i32, ptr %20, align 4, !tbaa !9
  %145 = load i32, ptr %19, align 4, !tbaa !9
  %146 = add i32 %145, %144
  store i32 %146, ptr %19, align 4, !tbaa !9
  %147 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %147, ptr %20, align 4, !tbaa !9
  store i32 77564, ptr %21, align 4, !tbaa !9
  %148 = load i32, ptr %21, align 4, !tbaa !9
  %149 = load i32, ptr %20, align 4, !tbaa !9
  %150 = add i32 %149, %148
  store i32 %150, ptr %20, align 4, !tbaa !9
  store i32 179, ptr %21, align 4, !tbaa !9
  %151 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %151, ptr %22, align 4, !tbaa !9
  store i32 90402, ptr %23, align 4, !tbaa !9
  %152 = load i32, ptr %23, align 4, !tbaa !9
  %153 = load i32, ptr %22, align 4, !tbaa !9
  %154 = add i32 %153, %152
  store i32 %154, ptr %22, align 4, !tbaa !9
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = load i32, ptr %19, align 4, !tbaa !9
  %157 = load i32, ptr %20, align 4, !tbaa !9
  %158 = load i32, ptr %21, align 4, !tbaa !9
  %159 = load i32, ptr %22, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %155, i32 noundef %156, i32 noundef %157, i32 noundef %158, i32 noundef %159)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

160:                                              ; preds = %133
  %161 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %161, ptr %19, align 4, !tbaa !9
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.w2c_hermes, ptr %162, i32 0, i32 6
  %164 = load i32, ptr %19, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = add i64 %165, 40
  %167 = call i64 @i64_load(ptr noundef %163, i64 noundef %166)
  store i64 %167, ptr %24, align 8, !tbaa !11
  %168 = load i64, ptr %24, align 8, !tbaa !11
  store i64 %168, ptr %15, align 8, !tbaa !11
  store i64 -1970324836974592, ptr %25, align 8, !tbaa !11
  %169 = load i64, ptr %24, align 8, !tbaa !11
  %170 = load i64, ptr %25, align 8, !tbaa !11
  %171 = icmp uge i64 %169, %170
  %172 = zext i1 %171 to i32
  store i32 %172, ptr %19, align 4, !tbaa !9
  %173 = load i32, ptr %19, align 4, !tbaa !9
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %176

175:                                              ; preds = %160
  br label %411

176:                                              ; preds = %160
  %177 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %177, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  %178 = load ptr, ptr %6, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.w2c_hermes, ptr %178, i32 0, i32 6
  %180 = load i32, ptr %19, align 4, !tbaa !9
  %181 = zext i32 %180 to i64
  %182 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %179, i64 noundef %181, i32 noundef %182)
  %183 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %183, ptr %19, align 4, !tbaa !9
  store i32 217528, ptr %20, align 4, !tbaa !9
  %184 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %184, ptr %21, align 4, !tbaa !9
  store i32 16, ptr %22, align 4, !tbaa !9
  %185 = load i32, ptr %22, align 4, !tbaa !9
  %186 = load i32, ptr %21, align 4, !tbaa !9
  %187 = sub i32 %186, %185
  store i32 %187, ptr %21, align 4, !tbaa !9
  %188 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %188, ptr %22, align 4, !tbaa !9
  store i32 1, ptr %23, align 4, !tbaa !9
  %189 = load i32, ptr %22, align 4, !tbaa !9
  %190 = load i32, ptr %23, align 4, !tbaa !9
  %191 = icmp ule i32 %189, %190
  %192 = zext i1 %191 to i32
  store i32 %192, ptr %22, align 4, !tbaa !9
  %193 = load i32, ptr %22, align 4, !tbaa !9
  %194 = icmp ne i32 %193, 0
  br i1 %194, label %195, label %197

195:                                              ; preds = %176
  %196 = load i32, ptr %20, align 4, !tbaa !9
  br label %199

197:                                              ; preds = %176
  %198 = load i32, ptr %21, align 4, !tbaa !9
  br label %199

199:                                              ; preds = %197, %195
  %200 = phi i32 [ %196, %195 ], [ %198, %197 ]
  store i32 %200, ptr %20, align 4, !tbaa !9
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.w2c_hermes, ptr %201, i32 0, i32 6
  %203 = load i32, ptr %19, align 4, !tbaa !9
  %204 = zext i32 %203 to i64
  %205 = add i64 %204, 4
  %206 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %202, i64 noundef %205, i32 noundef %206)
  %207 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %207, ptr %19, align 4, !tbaa !9
  store i32 8, ptr %20, align 4, !tbaa !9
  %208 = load i32, ptr %20, align 4, !tbaa !9
  %209 = load i32, ptr %19, align 4, !tbaa !9
  %210 = add i32 %209, %208
  store i32 %210, ptr %19, align 4, !tbaa !9
  %211 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %211, ptr %20, align 4, !tbaa !9
  %212 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %212, ptr %21, align 4, !tbaa !9
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = load i32, ptr %19, align 4, !tbaa !9
  %215 = load i32, ptr %20, align 4, !tbaa !9
  %216 = load i32, ptr %21, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %213, i32 noundef %214, i32 noundef %215, i32 noundef %216)
  %217 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %217, ptr %19, align 4, !tbaa !9
  %218 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %218, ptr %20, align 4, !tbaa !9
  %219 = load ptr, ptr %6, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.w2c_hermes, ptr %219, i32 0, i32 6
  %221 = load i32, ptr %20, align 4, !tbaa !9
  %222 = zext i32 %221 to i64
  %223 = add i64 %222, 8
  %224 = call i32 @i32_load(ptr noundef %220, i64 noundef %223)
  store i32 %224, ptr %20, align 4, !tbaa !9
  %225 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %225, ptr %9, align 4, !tbaa !9
  %226 = load ptr, ptr %6, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.w2c_hermes, ptr %226, i32 0, i32 6
  %228 = load i32, ptr %19, align 4, !tbaa !9
  %229 = zext i32 %228 to i64
  %230 = add i64 %229, 32
  %231 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %227, i64 noundef %230, i32 noundef %231)
  %232 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %232, ptr %19, align 4, !tbaa !9
  %233 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %233, ptr %20, align 4, !tbaa !9
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.w2c_hermes, ptr %234, i32 0, i32 6
  %236 = load i32, ptr %20, align 4, !tbaa !9
  %237 = zext i32 %236 to i64
  %238 = add i64 %237, 16
  %239 = call i64 @i64_load(ptr noundef %235, i64 noundef %238)
  store i64 %239, ptr %25, align 8, !tbaa !11
  %240 = load i64, ptr %25, align 8, !tbaa !11
  store i64 %240, ptr %14, align 8, !tbaa !11
  %241 = load ptr, ptr %6, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.w2c_hermes, ptr %241, i32 0, i32 6
  %243 = load i32, ptr %19, align 4, !tbaa !9
  %244 = zext i32 %243 to i64
  %245 = add i64 %244, 40
  %246 = load i64, ptr %25, align 8, !tbaa !11
  call void @i64_store(ptr noundef %242, i64 noundef %245, i64 noundef %246)
  %247 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %247, ptr %19, align 4, !tbaa !9
  %248 = load ptr, ptr %6, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.w2c_hermes, ptr %248, i32 0, i32 6
  %250 = load i32, ptr %19, align 4, !tbaa !9
  %251 = zext i32 %250 to i64
  %252 = call i32 @i32_load(ptr noundef %249, i64 noundef %251)
  store i32 %252, ptr %19, align 4, !tbaa !9
  %253 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %253, ptr %10, align 4, !tbaa !9
  %254 = load i32, ptr %19, align 4, !tbaa !9
  %255 = icmp ne i32 %254, 0
  br i1 %255, label %256, label %272

256:                                              ; preds = %199
  %257 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %257, ptr %19, align 4, !tbaa !9
  %258 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %258, ptr %20, align 4, !tbaa !9
  %259 = load ptr, ptr %6, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.w2c_hermes, ptr %259, i32 0, i32 6
  %261 = load i32, ptr %20, align 4, !tbaa !9
  %262 = zext i32 %261 to i64
  %263 = call i32 @i32_load(ptr noundef %260, i64 noundef %262)
  store i32 %263, ptr %20, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  %264 = load i32, ptr %21, align 4, !tbaa !9
  %265 = load i32, ptr %20, align 4, !tbaa !9
  %266 = sub i32 %265, %264
  store i32 %266, ptr %20, align 4, !tbaa !9
  %267 = load ptr, ptr %6, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.w2c_hermes, ptr %267, i32 0, i32 6
  %269 = load i32, ptr %19, align 4, !tbaa !9
  %270 = zext i32 %269 to i64
  %271 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %268, i64 noundef %270, i32 noundef %271)
  br label %272

272:                                              ; preds = %256, %199
  %273 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %273, ptr %19, align 4, !tbaa !9
  %274 = load i32, ptr %19, align 4, !tbaa !9
  switch i32 %274, label %277 [
    i32 0, label %275
    i32 1, label %276
  ]

275:                                              ; preds = %272
  br label %278

276:                                              ; preds = %272
  br label %303

277:                                              ; preds = %272
  br label %285

278:                                              ; preds = %275
  %279 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %279, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  %280 = load ptr, ptr %6, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.w2c_hermes, ptr %280, i32 0, i32 6
  %282 = load i32, ptr %19, align 4, !tbaa !9
  %283 = zext i32 %282 to i64
  %284 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %281, i64 noundef %283, i32 noundef %284)
  br label %403

285:                                              ; preds = %277
  store i32 0, ptr %19, align 4, !tbaa !9
  %286 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %286, ptr %11, align 4, !tbaa !9
  store i32 109639, ptr %20, align 4, !tbaa !9
  %287 = load i32, ptr %20, align 4, !tbaa !9
  %288 = load i32, ptr %19, align 4, !tbaa !9
  %289 = add i32 %288, %287
  store i32 %289, ptr %19, align 4, !tbaa !9
  %290 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %290, ptr %20, align 4, !tbaa !9
  store i32 77564, ptr %21, align 4, !tbaa !9
  %291 = load i32, ptr %21, align 4, !tbaa !9
  %292 = load i32, ptr %20, align 4, !tbaa !9
  %293 = add i32 %292, %291
  store i32 %293, ptr %20, align 4, !tbaa !9
  store i32 179, ptr %21, align 4, !tbaa !9
  %294 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %294, ptr %22, align 4, !tbaa !9
  store i32 90402, ptr %23, align 4, !tbaa !9
  %295 = load i32, ptr %23, align 4, !tbaa !9
  %296 = load i32, ptr %22, align 4, !tbaa !9
  %297 = add i32 %296, %295
  store i32 %297, ptr %22, align 4, !tbaa !9
  %298 = load ptr, ptr %6, align 8, !tbaa !5
  %299 = load i32, ptr %19, align 4, !tbaa !9
  %300 = load i32, ptr %20, align 4, !tbaa !9
  %301 = load i32, ptr %21, align 4, !tbaa !9
  %302 = load i32, ptr %22, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %298, i32 noundef %299, i32 noundef %300, i32 noundef %301, i32 noundef %302)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

303:                                              ; preds = %276
  %304 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %304, ptr %24, align 8, !tbaa !11
  store i64 -1970324836974592, ptr %25, align 8, !tbaa !11
  %305 = load i64, ptr %24, align 8, !tbaa !11
  %306 = load i64, ptr %25, align 8, !tbaa !11
  %307 = icmp uge i64 %305, %306
  %308 = zext i1 %307 to i32
  store i32 %308, ptr %19, align 4, !tbaa !9
  %309 = load i32, ptr %19, align 4, !tbaa !9
  %310 = icmp ne i32 %309, 0
  br i1 %310, label %311, label %312

311:                                              ; preds = %303
  br label %429

312:                                              ; preds = %303
  %313 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %313, ptr %27, align 8, !tbaa !13
  %314 = load double, ptr %27, align 8, !tbaa !13
  store double %314, ptr %16, align 8, !tbaa !13
  %315 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %315, ptr %25, align 8, !tbaa !11
  %316 = load i64, ptr %25, align 8, !tbaa !11
  %317 = call double @f64_reinterpret_i64(i64 noundef %316)
  store double %317, ptr %28, align 8, !tbaa !13
  %318 = load double, ptr %28, align 8, !tbaa !13
  store double %318, ptr %17, align 8, !tbaa !13
  %319 = load double, ptr %17, align 8, !tbaa !13
  store double %319, ptr %29, align 8, !tbaa !13
  %320 = load double, ptr %28, align 8, !tbaa !13
  %321 = load double, ptr %29, align 8, !tbaa !13
  %322 = fcmp une double %320, %321
  %323 = zext i1 %322 to i32
  store i32 %323, ptr %20, align 4, !tbaa !9
  %324 = load i32, ptr %20, align 4, !tbaa !9
  %325 = icmp ne i32 %324, 0
  br i1 %325, label %326, label %327

326:                                              ; preds = %312
  br label %371

327:                                              ; preds = %312
  store double 1.000000e+00, ptr %27, align 8, !tbaa !13
  %328 = load double, ptr %27, align 8, !tbaa !13
  store double %328, ptr %16, align 8, !tbaa !13
  %329 = load double, ptr %17, align 8, !tbaa !13
  store double %329, ptr %28, align 8, !tbaa !13
  store double 0.000000e+00, ptr %29, align 8, !tbaa !13
  %330 = load double, ptr %28, align 8, !tbaa !13
  %331 = load double, ptr %29, align 8, !tbaa !13
  %332 = fcmp oeq double %330, %331
  %333 = zext i1 %332 to i32
  store i32 %333, ptr %20, align 4, !tbaa !9
  %334 = load i32, ptr %20, align 4, !tbaa !9
  %335 = icmp ne i32 %334, 0
  br i1 %335, label %336, label %337

336:                                              ; preds = %327
  br label %371

337:                                              ; preds = %327
  %338 = load i64, ptr %15, align 8, !tbaa !11
  store i64 %338, ptr %24, align 8, !tbaa !11
  %339 = load i64, ptr %24, align 8, !tbaa !11
  %340 = call double @f64_reinterpret_i64(i64 noundef %339)
  store double %340, ptr %27, align 8, !tbaa !13
  %341 = load double, ptr %27, align 8, !tbaa !13
  store double %341, ptr %18, align 8, !tbaa !13
  %342 = load double, ptr %27, align 8, !tbaa !13
  %343 = call double @wasm_fabs(double noundef %342)
  store double %343, ptr %27, align 8, !tbaa !13
  store double 1.000000e+00, ptr %28, align 8, !tbaa !13
  %344 = load double, ptr %27, align 8, !tbaa !13
  %345 = load double, ptr %28, align 8, !tbaa !13
  %346 = fcmp oeq double %344, %345
  %347 = zext i1 %346 to i32
  store i32 %347, ptr %19, align 4, !tbaa !9
  %348 = load i32, ptr %19, align 4, !tbaa !9
  %349 = icmp ne i32 %348, 0
  br i1 %349, label %350, label %364

350:                                              ; preds = %337
  %351 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %351, ptr %27, align 8, !tbaa !13
  %352 = load double, ptr %27, align 8, !tbaa !13
  store double %352, ptr %16, align 8, !tbaa !13
  %353 = load double, ptr %17, align 8, !tbaa !13
  store double %353, ptr %28, align 8, !tbaa !13
  %354 = load double, ptr %28, align 8, !tbaa !13
  %355 = call double @wasm_fabs(double noundef %354)
  store double %355, ptr %28, align 8, !tbaa !13
  store double 0x7FF0000000000000, ptr %29, align 8, !tbaa !13
  %356 = load double, ptr %28, align 8, !tbaa !13
  %357 = load double, ptr %29, align 8, !tbaa !13
  %358 = fcmp oeq double %356, %357
  %359 = zext i1 %358 to i32
  store i32 %359, ptr %20, align 4, !tbaa !9
  %360 = load i32, ptr %20, align 4, !tbaa !9
  %361 = icmp ne i32 %360, 0
  br i1 %361, label %362, label %363

362:                                              ; preds = %350
  br label %371

363:                                              ; preds = %350
  br label %364

364:                                              ; preds = %363, %337
  %365 = load double, ptr %18, align 8, !tbaa !13
  store double %365, ptr %27, align 8, !tbaa !13
  %366 = load double, ptr %17, align 8, !tbaa !13
  store double %366, ptr %28, align 8, !tbaa !13
  %367 = load ptr, ptr %6, align 8, !tbaa !5
  %368 = load double, ptr %27, align 8, !tbaa !13
  %369 = load double, ptr %28, align 8, !tbaa !13
  %370 = call double @w2c_hermes_pow(ptr noundef %367, double noundef %368, double noundef %369)
  store double %370, ptr %27, align 8, !tbaa !13
  br label %371

371:                                              ; preds = %364, %362, %336, %326
  %372 = load double, ptr %27, align 8, !tbaa !13
  store double %372, ptr %16, align 8, !tbaa !13
  %373 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %373, ptr %19, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  %374 = load ptr, ptr %6, align 8, !tbaa !5
  %375 = getelementptr inbounds %struct.w2c_hermes, ptr %374, i32 0, i32 6
  %376 = load i32, ptr %19, align 4, !tbaa !9
  %377 = zext i32 %376 to i64
  %378 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %375, i64 noundef %377, i32 noundef %378)
  %379 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %379, ptr %19, align 4, !tbaa !9
  store i64 9221120237041090560, ptr %25, align 8, !tbaa !11
  %380 = load double, ptr %16, align 8, !tbaa !13
  store double %380, ptr %29, align 8, !tbaa !13
  %381 = load double, ptr %29, align 8, !tbaa !13
  %382 = call i64 @i64_reinterpret_f64(double noundef %381)
  store i64 %382, ptr %26, align 8, !tbaa !11
  %383 = load double, ptr %16, align 8, !tbaa !13
  store double %383, ptr %30, align 8, !tbaa !13
  %384 = load double, ptr %16, align 8, !tbaa !13
  store double %384, ptr %31, align 8, !tbaa !13
  %385 = load double, ptr %30, align 8, !tbaa !13
  %386 = load double, ptr %31, align 8, !tbaa !13
  %387 = fcmp une double %385, %386
  %388 = zext i1 %387 to i32
  store i32 %388, ptr %22, align 4, !tbaa !9
  %389 = load i32, ptr %22, align 4, !tbaa !9
  %390 = icmp ne i32 %389, 0
  br i1 %390, label %391, label %393

391:                                              ; preds = %371
  %392 = load i64, ptr %25, align 8, !tbaa !11
  br label %395

393:                                              ; preds = %371
  %394 = load i64, ptr %26, align 8, !tbaa !11
  br label %395

395:                                              ; preds = %393, %391
  %396 = phi i64 [ %392, %391 ], [ %394, %393 ]
  store i64 %396, ptr %25, align 8, !tbaa !11
  %397 = load ptr, ptr %6, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct.w2c_hermes, ptr %397, i32 0, i32 6
  %399 = load i32, ptr %19, align 4, !tbaa !9
  %400 = zext i32 %399 to i64
  %401 = add i64 %400, 8
  %402 = load i64, ptr %25, align 8, !tbaa !11
  call void @i64_store(ptr noundef %398, i64 noundef %401, i64 noundef %402)
  br label %403

403:                                              ; preds = %395, %278, %135
  %404 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %404, ptr %19, align 4, !tbaa !9
  store i32 48, ptr %20, align 4, !tbaa !9
  %405 = load i32, ptr %20, align 4, !tbaa !9
  %406 = load i32, ptr %19, align 4, !tbaa !9
  %407 = add i32 %406, %405
  store i32 %407, ptr %19, align 4, !tbaa !9
  %408 = load i32, ptr %19, align 4, !tbaa !9
  %409 = load ptr, ptr %6, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.w2c_hermes, ptr %409, i32 0, i32 3
  store i32 %408, ptr %410, align 8, !tbaa !15
  br label %447

411:                                              ; preds = %175
  store i32 0, ptr %19, align 4, !tbaa !9
  %412 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %412, ptr %11, align 4, !tbaa !9
  store i32 118741, ptr %20, align 4, !tbaa !9
  %413 = load i32, ptr %20, align 4, !tbaa !9
  %414 = load i32, ptr %19, align 4, !tbaa !9
  %415 = add i32 %414, %413
  store i32 %415, ptr %19, align 4, !tbaa !9
  %416 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %416, ptr %20, align 4, !tbaa !9
  store i32 83341, ptr %21, align 4, !tbaa !9
  %417 = load i32, ptr %21, align 4, !tbaa !9
  %418 = load i32, ptr %20, align 4, !tbaa !9
  %419 = add i32 %418, %417
  store i32 %419, ptr %20, align 4, !tbaa !9
  store i32 444, ptr %21, align 4, !tbaa !9
  %420 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %420, ptr %22, align 4, !tbaa !9
  store i32 97283, ptr %23, align 4, !tbaa !9
  %421 = load i32, ptr %23, align 4, !tbaa !9
  %422 = load i32, ptr %22, align 4, !tbaa !9
  %423 = add i32 %422, %421
  store i32 %423, ptr %22, align 4, !tbaa !9
  %424 = load ptr, ptr %6, align 8, !tbaa !5
  %425 = load i32, ptr %19, align 4, !tbaa !9
  %426 = load i32, ptr %20, align 4, !tbaa !9
  %427 = load i32, ptr %21, align 4, !tbaa !9
  %428 = load i32, ptr %22, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %424, i32 noundef %425, i32 noundef %426, i32 noundef %427, i32 noundef %428)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

429:                                              ; preds = %311
  store i32 0, ptr %19, align 4, !tbaa !9
  %430 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %430, ptr %11, align 4, !tbaa !9
  store i32 118741, ptr %20, align 4, !tbaa !9
  %431 = load i32, ptr %20, align 4, !tbaa !9
  %432 = load i32, ptr %19, align 4, !tbaa !9
  %433 = add i32 %432, %431
  store i32 %433, ptr %19, align 4, !tbaa !9
  %434 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %434, ptr %20, align 4, !tbaa !9
  store i32 83341, ptr %21, align 4, !tbaa !9
  %435 = load i32, ptr %21, align 4, !tbaa !9
  %436 = load i32, ptr %20, align 4, !tbaa !9
  %437 = add i32 %436, %435
  store i32 %437, ptr %20, align 4, !tbaa !9
  store i32 444, ptr %21, align 4, !tbaa !9
  %438 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %438, ptr %22, align 4, !tbaa !9
  store i32 97283, ptr %23, align 4, !tbaa !9
  %439 = load i32, ptr %23, align 4, !tbaa !9
  %440 = load i32, ptr %22, align 4, !tbaa !9
  %441 = add i32 %440, %439
  store i32 %441, ptr %22, align 4, !tbaa !9
  %442 = load ptr, ptr %6, align 8, !tbaa !5
  %443 = load i32, ptr %19, align 4, !tbaa !9
  %444 = load i32, ptr %20, align 4, !tbaa !9
  %445 = load i32, ptr %21, align 4, !tbaa !9
  %446 = load i32, ptr %22, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %442, i32 noundef %443, i32 noundef %444, i32 noundef %445, i32 noundef %446)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

447:                                              ; preds = %403
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  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 8, 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
  ret void
}

declare double @w2c_hermes_pow(ptr noundef, double noundef, double noundef) #3

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, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !10, i64 24}
!16 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !17, i64 40, !19, i64 80}
!17 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !18, i64 32}
!18 = !{!"_Bool", !7, i64 0}
!19 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}


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

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

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

; 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 i64 @i64_load(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_reinterpret_f64(double noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden double @f64_reinterpret_i64(i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden double @wasm_fabs(double noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AmathPow0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -48
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = zext i32 %4 to i64
  %11 = add nuw nsw i64 %10, 4
  %12 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %11)
  %13 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %10)
  %14 = zext i32 %8 to i64
  %15 = add nuw nsw i64 %14, 24
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %15, i32 noundef 0)
  %16 = add i32 %13, -8
  %.not = icmp eq i32 %12, 0
  %17 = select i1 %.not, i32 217528, i32 %16
  %18 = add nuw nsw i64 %14, 28
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %18, i32 noundef %17)
  %19 = add i32 %7, -16
  %20 = add i32 %7, -24
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %0, i32 noundef %19, i32 noundef %3, i32 noundef %20)
  %21 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %15)
  %.not249 = icmp eq i32 %21, 0
  br i1 %.not249, label %26, label %22

22:                                               ; preds = %5
  %23 = zext i32 %21 to i64
  %24 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %23)
  %25 = add i32 %24, -1
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %23, i32 noundef %25)
  br label %26

26:                                               ; preds = %22, %5
  %27 = add nuw nsw i64 %14, 32
  %28 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %27)
  switch i32 %28, label %31 [
    i32 0, label %29
    i32 1, label %32
  ]

29:                                               ; preds = %26
  %30 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %30, i32 noundef 0)
  br label %79

31:                                               ; preds = %26
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 109639, i32 noundef 77564, i32 noundef 179, i32 noundef 90402) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

32:                                               ; preds = %26
  %33 = add nuw nsw i64 %14, 40
  %34 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %33)
  %35 = icmp ugt i64 %34, -1970324836974593
  br i1 %35, label %80, label %36

36:                                               ; preds = %32
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %14, i32 noundef 0)
  %37 = add i32 %13, -16
  %38 = icmp ult i32 %12, 2
  %39 = select i1 %38, i32 217528, i32 %37
  %40 = add nuw nsw i64 %14, 4
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %40, i32 noundef %39)
  %41 = add i32 %7, -40
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef nonnull %0, i32 noundef %41, i32 noundef %3, i32 noundef %8)
  %42 = add nuw nsw i64 %14, 8
  %43 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %42)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %27, i32 noundef %43)
  %44 = add nuw nsw i64 %14, 16
  %45 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %44)
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %33, i64 noundef %45)
  %46 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %14)
  %.not250 = icmp eq i32 %46, 0
  br i1 %.not250, label %51, label %47

47:                                               ; preds = %36
  %48 = zext i32 %46 to i64
  %49 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %48)
  %50 = add i32 %49, -1
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %48, i32 noundef %50)
  br label %51

51:                                               ; preds = %47, %36
  switch i32 %43, label %54 [
    i32 0, label %52
    i32 1, label %55
  ]

52:                                               ; preds = %51
  %53 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %53, i32 noundef 0)
  br label %79

54:                                               ; preds = %51
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 109639, i32 noundef 77564, i32 noundef 179, i32 noundef 90402) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

55:                                               ; preds = %51
  %56 = icmp ugt i64 %45, -1970324836974593
  br i1 %56, label %81, label %57

57:                                               ; preds = %55
  %58 = tail call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  %59 = tail call double @f64_reinterpret_i64(i64 noundef %45)
  %60 = fcmp uno double %59, 0.000000e+00
  br i1 %60, label %73, label %61

61:                                               ; preds = %57
  %62 = fcmp oeq double %59, 0.000000e+00
  br i1 %62, label %73, label %63

63:                                               ; preds = %61
  %64 = tail call double @f64_reinterpret_i64(i64 noundef %34)
  %65 = tail call double @wasm_fabs(double noundef %64)
  %66 = fcmp oeq double %65, 1.000000e+00
  br i1 %66, label %67, label %71

67:                                               ; preds = %63
  %68 = tail call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  %69 = tail call double @wasm_fabs(double noundef %59)
  %70 = fcmp oeq double %69, 0x7FF0000000000000
  br i1 %70, label %73, label %71

71:                                               ; preds = %67, %63
  %72 = tail call double @w2c_hermes_pow(ptr noundef nonnull %0, double noundef %64, double noundef %59) #4
  br label %73

73:                                               ; preds = %67, %61, %57, %71
  %.0 = phi double [ %58, %57 ], [ 1.000000e+00, %61 ], [ %68, %67 ], [ %72, %71 ]
  %74 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %74, i32 noundef 1)
  %75 = tail call i64 @i64_reinterpret_f64(double noundef %.0)
  %76 = fcmp uno double %.0, 0.000000e+00
  %77 = select i1 %76, i64 9221120237041090560, i64 %75
  %78 = add nuw nsw i64 %74, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %78, i64 noundef %77)
  br label %79

79:                                               ; preds = %73, %52, %29
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void

80:                                               ; preds = %32
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 118741, i32 noundef 83341, i32 noundef 444, i32 noundef 97283) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

81:                                               ; preds = %55
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 118741, i32 noundef 83341, i32 noundef 444, i32 noundef 97283) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

declare double @w2c_hermes_pow(ptr noundef, double noundef, double noundef) local_unnamed_addr #2

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