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

65:                                               ; preds = %5
  %66 = load i32, ptr %16, align 4, !tbaa !9
  br label %69

67:                                               ; preds = %5
  %68 = load i32, ptr %17, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %67, %65
  %70 = phi i32 [ %66, %65 ], [ %68, %67 ]
  store i32 %70, ptr %16, align 4, !tbaa !9
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %15, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 12
  %76 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %72, i64 noundef %75, i32 noundef %76)
  %77 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %77, ptr %15, align 4, !tbaa !9
  store i32 16, ptr %16, align 4, !tbaa !9
  %78 = load i32, ptr %16, align 4, !tbaa !9
  %79 = load i32, ptr %15, align 4, !tbaa !9
  %80 = add i32 %79, %78
  store i32 %80, ptr %15, align 4, !tbaa !9
  %81 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %81, ptr %16, align 4, !tbaa !9
  %82 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %82, ptr %17, align 4, !tbaa !9
  store i32 8, ptr %18, align 4, !tbaa !9
  %83 = load i32, ptr %18, align 4, !tbaa !9
  %84 = load i32, ptr %17, align 4, !tbaa !9
  %85 = add i32 %84, %83
  store i32 %85, ptr %17, align 4, !tbaa !9
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = load i32, ptr %15, align 4, !tbaa !9
  %88 = load i32, ptr %16, align 4, !tbaa !9
  %89 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %86, i32 noundef %87, i32 noundef %88, i32 noundef %89)
  %90 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %90, ptr %15, align 4, !tbaa !9
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.w2c_hermes, ptr %91, i32 0, i32 6
  %93 = load i32, ptr %15, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = add i64 %94, 8
  %96 = call i32 @i32_load(ptr noundef %92, i64 noundef %95)
  store i32 %96, ptr %15, align 4, !tbaa !9
  %97 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %97, ptr %10, align 4, !tbaa !9
  %98 = load i32, ptr %15, align 4, !tbaa !9
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %116

100:                                              ; preds = %69
  %101 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %101, ptr %15, align 4, !tbaa !9
  %102 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %102, ptr %16, align 4, !tbaa !9
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.w2c_hermes, ptr %103, i32 0, i32 6
  %105 = load i32, ptr %16, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = call i32 @i32_load(ptr noundef %104, i64 noundef %106)
  store i32 %107, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  %108 = load i32, ptr %17, align 4, !tbaa !9
  %109 = load i32, ptr %16, align 4, !tbaa !9
  %110 = sub i32 %109, %108
  store i32 %110, ptr %16, align 4, !tbaa !9
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.w2c_hermes, ptr %111, i32 0, i32 6
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %112, i64 noundef %114, i32 noundef %115)
  br label %116

116:                                              ; preds = %100, %69
  %117 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %117, ptr %15, 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 %15, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = add i64 %121, 16
  %123 = call i32 @i32_load(ptr noundef %119, i64 noundef %122)
  store i32 %123, ptr %15, align 4, !tbaa !9
  %124 = load i32, ptr %15, align 4, !tbaa !9
  switch i32 %124, label %127 [
    i32 0, label %125
    i32 1, label %126
  ]

125:                                              ; preds = %116
  br label %128

126:                                              ; preds = %116
  br label %153

127:                                              ; preds = %116
  br label %135

128:                                              ; preds = %125
  %129 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %129, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.w2c_hermes, ptr %130, i32 0, i32 6
  %132 = load i32, ptr %15, align 4, !tbaa !9
  %133 = zext i32 %132 to i64
  %134 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %131, i64 noundef %133, i32 noundef %134)
  br label %197

135:                                              ; preds = %127
  store i32 0, ptr %15, align 4, !tbaa !9
  %136 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %136, ptr %11, align 4, !tbaa !9
  store i32 109639, ptr %16, align 4, !tbaa !9
  %137 = load i32, ptr %16, align 4, !tbaa !9
  %138 = load i32, ptr %15, align 4, !tbaa !9
  %139 = add i32 %138, %137
  store i32 %139, ptr %15, align 4, !tbaa !9
  %140 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %140, ptr %16, align 4, !tbaa !9
  store i32 77564, ptr %17, align 4, !tbaa !9
  %141 = load i32, ptr %17, align 4, !tbaa !9
  %142 = load i32, ptr %16, align 4, !tbaa !9
  %143 = add i32 %142, %141
  store i32 %143, ptr %16, align 4, !tbaa !9
  store i32 179, ptr %17, align 4, !tbaa !9
  %144 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %144, ptr %18, align 4, !tbaa !9
  store i32 90402, ptr %19, align 4, !tbaa !9
  %145 = load i32, ptr %19, align 4, !tbaa !9
  %146 = load i32, ptr %18, align 4, !tbaa !9
  %147 = add i32 %146, %145
  store i32 %147, ptr %18, align 4, !tbaa !9
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = load i32, ptr %15, align 4, !tbaa !9
  %150 = load i32, ptr %16, align 4, !tbaa !9
  %151 = load i32, ptr %17, align 4, !tbaa !9
  %152 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %148, i32 noundef %149, i32 noundef %150, i32 noundef %151, i32 noundef %152)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

153:                                              ; preds = %126
  %154 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %154, ptr %15, align 4, !tbaa !9
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.w2c_hermes, ptr %155, i32 0, i32 6
  %157 = load i32, ptr %15, align 4, !tbaa !9
  %158 = zext i32 %157 to i64
  %159 = add i64 %158, 24
  %160 = call i64 @i64_load(ptr noundef %156, i64 noundef %159)
  store i64 %160, ptr %20, align 8, !tbaa !11
  %161 = load i64, ptr %20, align 8, !tbaa !11
  store i64 %161, ptr %13, align 8, !tbaa !11
  store i64 -1970324836974592, ptr %21, align 8, !tbaa !11
  %162 = load i64, ptr %20, align 8, !tbaa !11
  %163 = load i64, ptr %21, align 8, !tbaa !11
  %164 = icmp uge i64 %162, %163
  %165 = zext i1 %164 to i32
  store i32 %165, ptr %15, align 4, !tbaa !9
  %166 = load i32, ptr %15, align 4, !tbaa !9
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %168, label %169

168:                                              ; preds = %153
  br label %205

169:                                              ; preds = %153
  %170 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %170, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.w2c_hermes, ptr %171, i32 0, i32 6
  %173 = load i32, ptr %15, align 4, !tbaa !9
  %174 = zext i32 %173 to i64
  %175 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %172, i64 noundef %174, i32 noundef %175)
  %176 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %176, ptr %15, align 4, !tbaa !9
  %177 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %177, ptr %21, align 8, !tbaa !11
  %178 = load i64, ptr %21, align 8, !tbaa !11
  %179 = call double @f64_reinterpret_i64(i64 noundef %178)
  store double %179, ptr %23, align 8, !tbaa !13
  %180 = load double, ptr %23, align 8, !tbaa !13
  store double %180, ptr %14, align 8, !tbaa !13
  %181 = load double, ptr %14, align 8, !tbaa !13
  store double %181, ptr %24, align 8, !tbaa !13
  %182 = load double, ptr %23, align 8, !tbaa !13
  %183 = load double, ptr %24, align 8, !tbaa !13
  %184 = fcmp une double %182, %183
  %185 = zext i1 %184 to i32
  store i32 %185, ptr %16, align 4, !tbaa !9
  %186 = load i32, ptr %16, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  store i64 %187, ptr %21, align 8, !tbaa !11
  store i64 -1407374883553280, ptr %22, align 8, !tbaa !11
  %188 = load i64, ptr %22, align 8, !tbaa !11
  %189 = load i64, ptr %21, align 8, !tbaa !11
  %190 = or i64 %189, %188
  store i64 %190, ptr %21, align 8, !tbaa !11
  %191 = load ptr, ptr %6, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.w2c_hermes, ptr %191, i32 0, i32 6
  %193 = load i32, ptr %15, align 4, !tbaa !9
  %194 = zext i32 %193 to i64
  %195 = add i64 %194, 8
  %196 = load i64, ptr %21, align 8, !tbaa !11
  call void @i64_store(ptr noundef %192, i64 noundef %195, i64 noundef %196)
  br label %197

197:                                              ; preds = %169, %128
  %198 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %198, ptr %15, align 4, !tbaa !9
  store i32 32, ptr %16, align 4, !tbaa !9
  %199 = load i32, ptr %16, align 4, !tbaa !9
  %200 = load i32, ptr %15, align 4, !tbaa !9
  %201 = add i32 %200, %199
  store i32 %201, ptr %15, align 4, !tbaa !9
  %202 = load i32, ptr %15, align 4, !tbaa !9
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.w2c_hermes, ptr %203, i32 0, i32 3
  store i32 %202, ptr %204, align 8, !tbaa !15
  br label %223

205:                                              ; preds = %168
  store i32 0, ptr %15, align 4, !tbaa !9
  %206 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %206, ptr %11, align 4, !tbaa !9
  store i32 118741, ptr %16, align 4, !tbaa !9
  %207 = load i32, ptr %16, align 4, !tbaa !9
  %208 = load i32, ptr %15, align 4, !tbaa !9
  %209 = add i32 %208, %207
  store i32 %209, ptr %15, align 4, !tbaa !9
  %210 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %210, ptr %16, align 4, !tbaa !9
  store i32 83341, ptr %17, align 4, !tbaa !9
  %211 = load i32, ptr %17, align 4, !tbaa !9
  %212 = load i32, ptr %16, align 4, !tbaa !9
  %213 = add i32 %212, %211
  store i32 %213, ptr %16, align 4, !tbaa !9
  store i32 444, ptr %17, align 4, !tbaa !9
  %214 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %214, ptr %18, align 4, !tbaa !9
  store i32 97283, ptr %19, align 4, !tbaa !9
  %215 = load i32, ptr %19, align 4, !tbaa !9
  %216 = load i32, ptr %18, align 4, !tbaa !9
  %217 = add i32 %216, %215
  store i32 %217, ptr %18, align 4, !tbaa !9
  %218 = load ptr, ptr %6, align 8, !tbaa !5
  %219 = load i32, ptr %15, align 4, !tbaa !9
  %220 = load i32, ptr %16, align 4, !tbaa !9
  %221 = load i32, ptr %17, align 4, !tbaa !9
  %222 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %218, i32 noundef %219, i32 noundef %220, i32 noundef %221, i32 noundef %222)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

223:                                              ; preds = %197
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  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 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
}

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 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_hermes0x3A0x3Avm0x3A0x3AisNaN0x28void0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3ANativeArgs0x29(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, -32
  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, 8
  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, 12
  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)
  %.not119 = icmp eq i32 %21, 0
  br i1 %.not119, 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, 16
  %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 %43

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, 24
  %34 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %33)
  %35 = icmp ugt i64 %34, -1970324836974593
  br i1 %35, label %44, label %36

36:                                               ; preds = %32
  %37 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %37, i32 noundef 1)
  %38 = tail call double @f64_reinterpret_i64(i64 noundef %34)
  %39 = fcmp uno double %38, 0.000000e+00
  %40 = zext i1 %39 to i64
  %41 = or disjoint i64 %40, -1407374883553280
  %42 = add nuw nsw i64 %37, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %42, i64 noundef %41)
  br label %43

43:                                               ; preds = %36, %29
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void

44:                                               ; 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
}

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