; 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 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 void @f64_store(ptr noundef, i64 noundef, double noundef) #1

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

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

68:                                               ; preds = %4
  %69 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %69, ptr %12, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = load i32, ptr %12, align 4, !tbaa !9
  %72 = add i32 %71, %70
  store i32 %72, ptr %12, align 4, !tbaa !9
  %73 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %73, ptr %13, align 4, !tbaa !9
  %74 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %74, ptr %14, align 4, !tbaa !9
  store i32 8, ptr %15, align 4, !tbaa !9
  %75 = load i32, ptr %15, align 4, !tbaa !9
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = add i32 %76, %75
  store i32 %77, ptr %14, align 4, !tbaa !9
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = load i32, ptr %13, align 4, !tbaa !9
  %81 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %78, i32 noundef %79, i32 noundef %80, i32 noundef %81)
  br label %126

82:                                               ; preds = %4
  %83 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %83, ptr %12, align 4, !tbaa !9
  %84 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %84, ptr %13, align 4, !tbaa !9
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.w2c_hermes, ptr %85, i32 0, i32 6
  %87 = load i32, ptr %13, align 4, !tbaa !9
  %88 = zext i32 %87 to i64
  %89 = call i32 @i32_load(ptr noundef %86, i64 noundef %88)
  store i32 %89, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %90 = load i32, ptr %14, align 4, !tbaa !9
  %91 = load i32, ptr %13, align 4, !tbaa !9
  %92 = add i32 %91, %90
  store i32 %92, ptr %13, align 4, !tbaa !9
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.w2c_hermes, ptr %93, i32 0, i32 6
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %94, i64 noundef %96, i32 noundef %97)
  %98 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %98, ptr %12, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %99 = load i32, ptr %13, align 4, !tbaa !9
  %100 = load i32, ptr %12, align 4, !tbaa !9
  %101 = add i32 %100, %99
  store i32 %101, ptr %12, align 4, !tbaa !9
  %102 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %102, ptr %13, align 4, !tbaa !9
  %103 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %103, ptr %14, align 4, !tbaa !9
  store i32 8, ptr %15, align 4, !tbaa !9
  %104 = load i32, ptr %15, align 4, !tbaa !9
  %105 = load i32, ptr %14, align 4, !tbaa !9
  %106 = add i32 %105, %104
  store i32 %106, ptr %14, align 4, !tbaa !9
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = load i32, ptr %12, align 4, !tbaa !9
  %109 = load i32, ptr %13, align 4, !tbaa !9
  %110 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %107, i32 noundef %108, i32 noundef %109, i32 noundef %110)
  %111 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %111, ptr %12, align 4, !tbaa !9
  %112 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %112, ptr %13, align 4, !tbaa !9
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.w2c_hermes, ptr %113, i32 0, i32 6
  %115 = load i32, ptr %13, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = call i32 @i32_load(ptr noundef %114, i64 noundef %116)
  store i32 %117, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = sub i32 %119, %118
  store i32 %120, ptr %13, align 4, !tbaa !9
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.w2c_hermes, ptr %121, i32 0, i32 6
  %123 = load i32, ptr %12, align 4, !tbaa !9
  %124 = zext i32 %123 to i64
  %125 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %122, i64 noundef %124, i32 noundef %125)
  br label %126

126:                                              ; preds = %82, %68
  %127 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %127, ptr %12, align 4, !tbaa !9
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.w2c_hermes, ptr %128, i32 0, i32 6
  %130 = load i32, ptr %12, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = add i64 %131, 16
  %133 = call i32 @i32_load(ptr noundef %129, i64 noundef %132)
  store i32 %133, ptr %12, align 4, !tbaa !9
  %134 = load i32, ptr %12, align 4, !tbaa !9
  switch i32 %134, label %137 [
    i32 0, label %135
    i32 1, label %136
  ]

135:                                              ; preds = %126
  br label %138

136:                                              ; preds = %126
  br label %163

137:                                              ; preds = %126
  br label %145

138:                                              ; preds = %135
  %139 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %139, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.w2c_hermes, ptr %140, i32 0, i32 6
  %142 = load i32, ptr %12, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %141, i64 noundef %143, i32 noundef %144)
  br label %225

145:                                              ; preds = %137
  store i32 0, ptr %12, align 4, !tbaa !9
  %146 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %146, ptr %9, align 4, !tbaa !9
  store i32 109639, ptr %13, align 4, !tbaa !9
  %147 = load i32, ptr %13, align 4, !tbaa !9
  %148 = load i32, ptr %12, align 4, !tbaa !9
  %149 = add i32 %148, %147
  store i32 %149, ptr %12, align 4, !tbaa !9
  %150 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %150, ptr %13, align 4, !tbaa !9
  store i32 77564, ptr %14, align 4, !tbaa !9
  %151 = load i32, ptr %14, align 4, !tbaa !9
  %152 = load i32, ptr %13, align 4, !tbaa !9
  %153 = add i32 %152, %151
  store i32 %153, ptr %13, align 4, !tbaa !9
  store i32 179, ptr %14, align 4, !tbaa !9
  %154 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %154, ptr %15, align 4, !tbaa !9
  store i32 90402, ptr %16, align 4, !tbaa !9
  %155 = load i32, ptr %16, align 4, !tbaa !9
  %156 = load i32, ptr %15, align 4, !tbaa !9
  %157 = add i32 %156, %155
  store i32 %157, ptr %15, align 4, !tbaa !9
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = load i32, ptr %12, align 4, !tbaa !9
  %160 = load i32, ptr %13, align 4, !tbaa !9
  %161 = load i32, ptr %14, align 4, !tbaa !9
  %162 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %158, i32 noundef %159, i32 noundef %160, i32 noundef %161, i32 noundef %162)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

163:                                              ; preds = %136
  %164 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %164, ptr %12, align 4, !tbaa !9
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.w2c_hermes, ptr %165, i32 0, i32 6
  %167 = load i32, ptr %12, align 4, !tbaa !9
  %168 = zext i32 %167 to i64
  %169 = add i64 %168, 24
  %170 = call i64 @i64_load(ptr noundef %166, i64 noundef %169)
  store i64 %170, ptr %17, align 8, !tbaa !11
  %171 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %171, ptr %10, align 8, !tbaa !11
  store i64 -1970324836974592, ptr %18, align 8, !tbaa !11
  %172 = load i64, ptr %17, align 8, !tbaa !11
  %173 = load i64, ptr %18, align 8, !tbaa !11
  %174 = icmp uge i64 %172, %173
  %175 = zext i1 %174 to i32
  store i32 %175, ptr %12, align 4, !tbaa !9
  %176 = load i32, ptr %12, align 4, !tbaa !9
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %179

178:                                              ; preds = %163
  br label %233

179:                                              ; preds = %163
  store double 0.000000e+00, ptr %19, align 8, !tbaa !13
  %180 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %180, ptr %18, align 8, !tbaa !11
  %181 = load i64, ptr %18, align 8, !tbaa !11
  %182 = call double @f64_reinterpret_i64(i64 noundef %181)
  store double %182, ptr %20, align 8, !tbaa !13
  %183 = load double, ptr %20, align 8, !tbaa !13
  store double %183, ptr %11, align 8, !tbaa !13
  %184 = load double, ptr %20, align 8, !tbaa !13
  %185 = call double @wasm_trunc(double noundef %184)
  store double %185, ptr %20, align 8, !tbaa !13
  %186 = load double, ptr %11, align 8, !tbaa !13
  store double %186, ptr %21, align 8, !tbaa !13
  %187 = load double, ptr %11, align 8, !tbaa !13
  store double %187, ptr %22, align 8, !tbaa !13
  %188 = load double, ptr %21, align 8, !tbaa !13
  %189 = load double, ptr %22, align 8, !tbaa !13
  %190 = fcmp une double %188, %189
  %191 = zext i1 %190 to i32
  store i32 %191, ptr %14, align 4, !tbaa !9
  %192 = load i32, ptr %14, align 4, !tbaa !9
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %196

194:                                              ; preds = %179
  %195 = load double, ptr %19, align 8, !tbaa !13
  br label %198

196:                                              ; preds = %179
  %197 = load double, ptr %20, align 8, !tbaa !13
  br label %198

198:                                              ; preds = %196, %194
  %199 = phi double [ %195, %194 ], [ %197, %196 ]
  store double %199, ptr %19, align 8, !tbaa !13
  %200 = load double, ptr %19, align 8, !tbaa !13
  store double %200, ptr %11, align 8, !tbaa !13
  %201 = load double, ptr %19, align 8, !tbaa !13
  %202 = call i64 @i64_reinterpret_f64(double noundef %201)
  store i64 %202, ptr %17, align 8, !tbaa !11
  store i64 -1970324836974592, ptr %18, align 8, !tbaa !11
  %203 = load i64, ptr %17, align 8, !tbaa !11
  %204 = load i64, ptr %18, align 8, !tbaa !11
  %205 = icmp uge i64 %203, %204
  %206 = zext i1 %205 to i32
  store i32 %206, ptr %12, align 4, !tbaa !9
  %207 = load i32, ptr %12, align 4, !tbaa !9
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %209, label %210

209:                                              ; preds = %198
  br label %251

210:                                              ; preds = %198
  %211 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %211, ptr %12, align 4, !tbaa !9
  %212 = load double, ptr %11, align 8, !tbaa !13
  store double %212, ptr %20, align 8, !tbaa !13
  %213 = load ptr, ptr %5, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.w2c_hermes, ptr %213, i32 0, i32 6
  %215 = load i32, ptr %12, align 4, !tbaa !9
  %216 = zext i32 %215 to i64
  %217 = add i64 %216, 8
  %218 = load double, ptr %20, align 8, !tbaa !13
  call void @f64_store(ptr noundef %214, i64 noundef %217, double noundef %218)
  %219 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %219, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %220 = load ptr, ptr %5, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.w2c_hermes, ptr %220, i32 0, i32 6
  %222 = load i32, ptr %12, align 4, !tbaa !9
  %223 = zext i32 %222 to i64
  %224 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %221, i64 noundef %223, i32 noundef %224)
  br label %225

225:                                              ; preds = %210, %138
  %226 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %226, ptr %12, align 4, !tbaa !9
  store i32 32, ptr %13, align 4, !tbaa !9
  %227 = load i32, ptr %13, align 4, !tbaa !9
  %228 = load i32, ptr %12, align 4, !tbaa !9
  %229 = add i32 %228, %227
  store i32 %229, ptr %12, align 4, !tbaa !9
  %230 = load i32, ptr %12, align 4, !tbaa !9
  %231 = load ptr, ptr %5, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.w2c_hermes, ptr %231, i32 0, i32 3
  store i32 %230, ptr %232, align 8, !tbaa !15
  br label %269

233:                                              ; preds = %178
  store i32 0, ptr %12, align 4, !tbaa !9
  %234 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %234, ptr %9, align 4, !tbaa !9
  store i32 118741, ptr %13, align 4, !tbaa !9
  %235 = load i32, ptr %13, align 4, !tbaa !9
  %236 = load i32, ptr %12, align 4, !tbaa !9
  %237 = add i32 %236, %235
  store i32 %237, ptr %12, align 4, !tbaa !9
  %238 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %238, ptr %13, align 4, !tbaa !9
  store i32 83341, ptr %14, align 4, !tbaa !9
  %239 = load i32, ptr %14, align 4, !tbaa !9
  %240 = load i32, ptr %13, align 4, !tbaa !9
  %241 = add i32 %240, %239
  store i32 %241, ptr %13, align 4, !tbaa !9
  store i32 444, ptr %14, align 4, !tbaa !9
  %242 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %242, ptr %15, align 4, !tbaa !9
  store i32 97283, ptr %16, align 4, !tbaa !9
  %243 = load i32, ptr %16, align 4, !tbaa !9
  %244 = load i32, ptr %15, align 4, !tbaa !9
  %245 = add i32 %244, %243
  store i32 %245, ptr %15, align 4, !tbaa !9
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = load i32, ptr %12, align 4, !tbaa !9
  %248 = load i32, ptr %13, align 4, !tbaa !9
  %249 = load i32, ptr %14, align 4, !tbaa !9
  %250 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %246, i32 noundef %247, i32 noundef %248, i32 noundef %249, i32 noundef %250)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

251:                                              ; preds = %209
  store i32 0, ptr %12, align 4, !tbaa !9
  %252 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %252, ptr %9, align 4, !tbaa !9
  store i32 168600, ptr %13, align 4, !tbaa !9
  %253 = load i32, ptr %13, align 4, !tbaa !9
  %254 = load i32, ptr %12, align 4, !tbaa !9
  %255 = add i32 %254, %253
  store i32 %255, ptr %12, align 4, !tbaa !9
  %256 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %256, ptr %13, align 4, !tbaa !9
  store i32 83341, ptr %14, align 4, !tbaa !9
  %257 = load i32, ptr %14, align 4, !tbaa !9
  %258 = load i32, ptr %13, align 4, !tbaa !9
  %259 = add i32 %258, %257
  store i32 %259, ptr %13, align 4, !tbaa !9
  store i32 341, ptr %14, align 4, !tbaa !9
  %260 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %260, ptr %15, align 4, !tbaa !9
  store i32 90577, ptr %16, align 4, !tbaa !9
  %261 = load i32, ptr %16, align 4, !tbaa !9
  %262 = load i32, ptr %15, align 4, !tbaa !9
  %263 = add i32 %262, %261
  store i32 %263, ptr %15, align 4, !tbaa !9
  %264 = load ptr, ptr %5, align 8, !tbaa !5
  %265 = load i32, ptr %12, align 4, !tbaa !9
  %266 = load i32, ptr %13, align 4, !tbaa !9
  %267 = load i32, ptr %14, align 4, !tbaa !9
  %268 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %264, i32 noundef %265, i32 noundef %266, i32 noundef %267, i32 noundef %268)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

269:                                              ; preds = %225
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void
}

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

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 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 void @f64_store(ptr noundef, i64 noundef, 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 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_hermes0x3A0x3Avm0x3A0x3AtoIntegerOrInfinity0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add i32 %6, -32
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %3 to i64
  %10 = add nuw nsw i64 %9, 4
  %11 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %10)
  %12 = zext i32 %7 to i64
  %13 = add nuw nsw i64 %12, 12
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %13, i32 noundef %11)
  %14 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %9)
  %15 = add nuw nsw i64 %12, 8
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %15, i32 noundef %14)
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %16, label %19

16:                                               ; preds = %4
  %17 = add i32 %6, -16
  %18 = add i32 %6, -24
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef nonnull %0, i32 noundef %17, i32 noundef %2, i32 noundef %18)
  br label %27

19:                                               ; preds = %4
  %20 = zext i32 %14 to i64
  %21 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %20)
  %22 = add i32 %21, 1
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %20, i32 noundef %22)
  %23 = add i32 %6, -16
  %24 = add i32 %6, -24
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef nonnull %0, i32 noundef %23, i32 noundef %2, i32 noundef %24)
  %25 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %20)
  %26 = add i32 %25, -1
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %20, i32 noundef %26)
  br label %27

27:                                               ; preds = %19, %16
  %28 = add nuw nsw i64 %12, 16
  %29 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %28)
  switch i32 %29, label %32 [
    i32 0, label %30
    i32 1, label %33
  ]

30:                                               ; preds = %27
  %31 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %31, i32 noundef 0)
  br label %47

32:                                               ; preds = %27
  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

33:                                               ; preds = %27
  %34 = add nuw nsw i64 %12, 24
  %35 = tail call i64 @i64_load(ptr noundef nonnull %8, i64 noundef %34)
  %36 = icmp ugt i64 %35, -1970324836974593
  br i1 %36, label %48, label %37

37:                                               ; preds = %33
  %38 = tail call double @f64_reinterpret_i64(i64 noundef %35)
  %39 = tail call double @wasm_trunc(double noundef %38)
  %40 = fcmp uno double %38, 0.000000e+00
  %41 = select i1 %40, double 0.000000e+00, double %39
  %42 = tail call i64 @i64_reinterpret_f64(double noundef %41)
  %43 = icmp ugt i64 %42, -1970324836974593
  br i1 %43, label %49, label %44

44:                                               ; preds = %37
  %45 = zext i32 %1 to i64
  %46 = add nuw nsw i64 %45, 8
  tail call void @f64_store(ptr noundef nonnull %8, i64 noundef %46, double noundef %41)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %45, i32 noundef 1)
  br label %47

47:                                               ; preds = %44, %30
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret void

48:                                               ; preds = %33
  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

49:                                               ; preds = %37
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 168600, i32 noundef 83341, i32 noundef 341, i32 noundef 90577) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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

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