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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AcreateValue0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i64 noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, 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 i64 %3, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.w2c_hermes, ptr %17, i32 0, i32 3
  %19 = load i32, ptr %18, align 8, !tbaa !13
  store i32 %19, ptr %11, align 4, !tbaa !9
  store i32 16, ptr %12, align 4, !tbaa !9
  %20 = load i32, ptr %12, align 4, !tbaa !9
  %21 = load i32, ptr %11, align 4, !tbaa !9
  %22 = sub i32 %21, %20
  store i32 %22, ptr %11, align 4, !tbaa !9
  %23 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %23, ptr %9, align 4, !tbaa !9
  %24 = load i32, ptr %11, align 4, !tbaa !9
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.w2c_hermes, ptr %25, i32 0, i32 3
  store i32 %24, ptr %26, align 8, !tbaa !13
  %27 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %27, ptr %11, align 4, !tbaa !9
  %28 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %28, ptr %16, align 8, !tbaa !11
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.w2c_hermes, ptr %29, i32 0, i32 6
  %31 = load i32, ptr %11, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = add i64 %32, 8
  %34 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %30, i64 noundef %33, i64 noundef %34)
  %35 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %35, ptr %15, align 8, !tbaa !11
  store i64 47, ptr %16, align 8, !tbaa !11
  %36 = load i64, ptr %15, align 8, !tbaa !11
  %37 = load i64, ptr %16, align 8, !tbaa !11
  %38 = and i64 %37, 63
  %39 = ashr i64 %36, %38
  store i64 %39, ptr %15, align 8, !tbaa !11
  %40 = load i64, ptr %15, align 8, !tbaa !11
  %41 = trunc i64 %40 to i32
  store i32 %41, ptr %11, align 4, !tbaa !9
  %42 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %42, ptr %10, align 4, !tbaa !9
  store i32 12, ptr %12, align 4, !tbaa !9
  %43 = load i32, ptr %12, align 4, !tbaa !9
  %44 = load i32, ptr %11, align 4, !tbaa !9
  %45 = add i32 %44, %43
  store i32 %45, ptr %11, align 4, !tbaa !9
  %46 = load i32, ptr %11, align 4, !tbaa !9
  switch i32 %46, label %59 [
    i32 0, label %47
    i32 1, label %48
    i32 2, label %49
    i32 3, label %50
    i32 4, label %51
    i32 5, label %52
    i32 6, label %53
    i32 7, label %54
    i32 8, label %55
    i32 9, label %56
    i32 10, label %57
    i32 11, label %58
  ]

47:                                               ; preds = %4
  br label %60

48:                                               ; preds = %4
  br label %67

49:                                               ; preds = %4
  br label %74

50:                                               ; preds = %4
  br label %103

51:                                               ; preds = %4
  br label %207

52:                                               ; preds = %4
  br label %207

53:                                               ; preds = %4
  br label %129

54:                                               ; preds = %4
  br label %129

55:                                               ; preds = %4
  br label %155

56:                                               ; preds = %4
  br label %155

57:                                               ; preds = %4
  br label %181

58:                                               ; preds = %4
  br label %181

59:                                               ; preds = %4
  br label %207

60:                                               ; preds = %47
  %61 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %61, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.w2c_hermes, ptr %62, i32 0, i32 6
  %64 = load i32, ptr %11, align 4, !tbaa !9
  %65 = zext i32 %64 to i64
  %66 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %63, i64 noundef %65, i32 noundef %66)
  br label %231

67:                                               ; preds = %48
  %68 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %68, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.w2c_hermes, ptr %69, i32 0, i32 6
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = zext i32 %71 to i64
  %73 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %70, i64 noundef %72, i32 noundef %73)
  br label %231

74:                                               ; preds = %49
  %75 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %75, ptr %11, align 4, !tbaa !9
  store i32 -10, ptr %12, align 4, !tbaa !9
  %76 = load i32, ptr %11, align 4, !tbaa !9
  %77 = load i32, ptr %12, align 4, !tbaa !9
  %78 = icmp ne i32 %76, %77
  %79 = zext i1 %78 to i32
  store i32 %79, ptr %11, align 4, !tbaa !9
  %80 = load i32, ptr %11, align 4, !tbaa !9
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %83

82:                                               ; preds = %74
  br label %239

83:                                               ; preds = %74
  %84 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %84, ptr %11, align 4, !tbaa !9
  store i32 2, ptr %12, 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 %11, align 4, !tbaa !9
  %88 = zext i32 %87 to i64
  %89 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %86, i64 noundef %88, i32 noundef %89)
  %90 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %90, ptr %11, align 4, !tbaa !9
  %91 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %91, ptr %16, align 8, !tbaa !11
  %92 = load i64, ptr %16, align 8, !tbaa !11
  %93 = trunc i64 %92 to i32
  store i32 %93, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = and i32 %95, %94
  store i32 %96, ptr %12, align 4, !tbaa !9
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.w2c_hermes, ptr %97, i32 0, i32 6
  %99 = load i32, ptr %11, align 4, !tbaa !9
  %100 = zext i32 %99 to i64
  %101 = add i64 %100, 8
  %102 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %98, i64 noundef %101, i32 noundef %102)
  br label %231

103:                                              ; preds = %50
  %104 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %104, ptr %11, align 4, !tbaa !9
  %105 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %105, ptr %12, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %106 = load i32, ptr %13, align 4, !tbaa !9
  %107 = load i32, ptr %12, align 4, !tbaa !9
  %108 = add i32 %107, %106
  store i32 %108, ptr %12, align 4, !tbaa !9
  %109 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %109, ptr %13, align 4, !tbaa !9
  store i32 8, ptr %14, align 4, !tbaa !9
  %110 = load i32, ptr %14, align 4, !tbaa !9
  %111 = load i32, ptr %13, align 4, !tbaa !9
  %112 = add i32 %111, %110
  store i32 %112, ptr %13, align 4, !tbaa !9
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = load i32, ptr %12, align 4, !tbaa !9
  %115 = load i32, ptr %13, align 4, !tbaa !9
  %116 = call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x260x20hermes0x3A0x3AManagedChunkedList0x3C0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x2C0x2016ul0x3E0x3A0x3Aadd0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x260x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x260x29(ptr noundef %113, i32 noundef %114, i32 noundef %115)
  store i32 %116, ptr %12, align 4, !tbaa !9
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.w2c_hermes, ptr %117, i32 0, i32 6
  %119 = load i32, ptr %11, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = add i64 %120, 8
  %122 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %118, i64 noundef %121, i32 noundef %122)
  %123 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %123, ptr %11, align 4, !tbaa !9
  store i32 -2147483643, ptr %12, align 4, !tbaa !9
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %11, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %125, i64 noundef %127, i32 noundef %128)
  br label %231

129:                                              ; preds = %54, %53
  %130 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %130, ptr %11, align 4, !tbaa !9
  %131 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %131, ptr %12, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %132 = load i32, ptr %13, align 4, !tbaa !9
  %133 = load i32, ptr %12, align 4, !tbaa !9
  %134 = add i32 %133, %132
  store i32 %134, ptr %12, align 4, !tbaa !9
  %135 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %135, ptr %13, align 4, !tbaa !9
  store i32 8, ptr %14, align 4, !tbaa !9
  %136 = load i32, ptr %14, align 4, !tbaa !9
  %137 = load i32, ptr %13, align 4, !tbaa !9
  %138 = add i32 %137, %136
  store i32 %138, ptr %13, align 4, !tbaa !9
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = load i32, ptr %12, align 4, !tbaa !9
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x260x20hermes0x3A0x3AManagedChunkedList0x3C0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x2C0x2016ul0x3E0x3A0x3Aadd0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x260x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x260x29(ptr noundef %139, i32 noundef %140, i32 noundef %141)
  store i32 %142, ptr %12, align 4, !tbaa !9
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.w2c_hermes, ptr %143, i32 0, i32 6
  %145 = load i32, ptr %11, align 4, !tbaa !9
  %146 = zext i32 %145 to i64
  %147 = add i64 %146, 8
  %148 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %144, i64 noundef %147, i32 noundef %148)
  %149 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %149, ptr %11, align 4, !tbaa !9
  store i32 -2147483641, ptr %12, align 4, !tbaa !9
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.w2c_hermes, ptr %150, i32 0, i32 6
  %152 = load i32, ptr %11, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %151, i64 noundef %153, i32 noundef %154)
  br label %231

155:                                              ; preds = %56, %55
  %156 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %156, ptr %11, align 4, !tbaa !9
  %157 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %157, ptr %12, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %158 = load i32, ptr %13, align 4, !tbaa !9
  %159 = load i32, ptr %12, align 4, !tbaa !9
  %160 = add i32 %159, %158
  store i32 %160, ptr %12, align 4, !tbaa !9
  %161 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %161, ptr %13, align 4, !tbaa !9
  store i32 8, ptr %14, align 4, !tbaa !9
  %162 = load i32, ptr %14, align 4, !tbaa !9
  %163 = load i32, ptr %13, align 4, !tbaa !9
  %164 = add i32 %163, %162
  store i32 %164, ptr %13, align 4, !tbaa !9
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = load i32, ptr %12, align 4, !tbaa !9
  %167 = load i32, ptr %13, align 4, !tbaa !9
  %168 = call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x260x20hermes0x3A0x3AManagedChunkedList0x3C0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x2C0x2016ul0x3E0x3A0x3Aadd0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x260x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x260x29(ptr noundef %165, i32 noundef %166, i32 noundef %167)
  store i32 %168, ptr %12, align 4, !tbaa !9
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.w2c_hermes, ptr %169, i32 0, i32 6
  %171 = load i32, ptr %11, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = add i64 %172, 8
  %174 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %170, i64 noundef %173, i32 noundef %174)
  %175 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %175, ptr %11, align 4, !tbaa !9
  store i32 -2147483642, ptr %12, align 4, !tbaa !9
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.w2c_hermes, ptr %176, i32 0, i32 6
  %178 = load i32, ptr %11, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %177, i64 noundef %179, i32 noundef %180)
  br label %231

181:                                              ; preds = %58, %57
  %182 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %182, ptr %11, align 4, !tbaa !9
  %183 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %183, ptr %12, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %184 = load i32, ptr %13, align 4, !tbaa !9
  %185 = load i32, ptr %12, align 4, !tbaa !9
  %186 = add i32 %185, %184
  store i32 %186, ptr %12, align 4, !tbaa !9
  %187 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %187, ptr %13, align 4, !tbaa !9
  store i32 8, ptr %14, align 4, !tbaa !9
  %188 = load i32, ptr %14, align 4, !tbaa !9
  %189 = load i32, ptr %13, align 4, !tbaa !9
  %190 = add i32 %189, %188
  store i32 %190, ptr %13, align 4, !tbaa !9
  %191 = load ptr, ptr %5, align 8, !tbaa !5
  %192 = load i32, ptr %12, align 4, !tbaa !9
  %193 = load i32, ptr %13, align 4, !tbaa !9
  %194 = call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x260x20hermes0x3A0x3AManagedChunkedList0x3C0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x2C0x2016ul0x3E0x3A0x3Aadd0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x260x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x260x29(ptr noundef %191, i32 noundef %192, i32 noundef %193)
  store i32 %194, ptr %12, align 4, !tbaa !9
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.w2c_hermes, ptr %195, i32 0, i32 6
  %197 = load i32, ptr %11, align 4, !tbaa !9
  %198 = zext i32 %197 to i64
  %199 = add i64 %198, 8
  %200 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %196, i64 noundef %199, i32 noundef %200)
  %201 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %201, ptr %11, align 4, !tbaa !9
  store i32 -2147483639, ptr %12, align 4, !tbaa !9
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.w2c_hermes, ptr %202, i32 0, i32 6
  %204 = load i32, ptr %11, align 4, !tbaa !9
  %205 = zext i32 %204 to i64
  %206 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %203, i64 noundef %205, i32 noundef %206)
  br label %231

207:                                              ; preds = %59, %52, %51
  %208 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %208, ptr %15, align 8, !tbaa !11
  store i64 -1970324836974592, ptr %16, align 8, !tbaa !11
  %209 = load i64, ptr %15, align 8, !tbaa !11
  %210 = load i64, ptr %16, align 8, !tbaa !11
  %211 = icmp uge i64 %209, %210
  %212 = zext i1 %211 to i32
  store i32 %212, ptr %11, align 4, !tbaa !9
  %213 = load i32, ptr %11, align 4, !tbaa !9
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %215, label %216

215:                                              ; preds = %207
  br label %245

216:                                              ; preds = %207
  %217 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %217, ptr %11, align 4, !tbaa !9
  %218 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %218, ptr %16, align 8, !tbaa !11
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.w2c_hermes, ptr %219, i32 0, i32 6
  %221 = load i32, ptr %11, align 4, !tbaa !9
  %222 = zext i32 %221 to i64
  %223 = add i64 %222, 8
  %224 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %220, i64 noundef %223, i64 noundef %224)
  %225 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %225, ptr %11, align 4, !tbaa !9
  store i32 4, ptr %12, align 4, !tbaa !9
  %226 = load ptr, ptr %5, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.w2c_hermes, ptr %226, i32 0, i32 6
  %228 = load i32, ptr %11, align 4, !tbaa !9
  %229 = zext i32 %228 to i64
  %230 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %227, i64 noundef %229, i32 noundef %230)
  br label %231

231:                                              ; preds = %216, %181, %155, %129, %103, %83, %67, %60
  %232 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %232, ptr %11, align 4, !tbaa !9
  store i32 16, ptr %12, align 4, !tbaa !9
  %233 = load i32, ptr %12, align 4, !tbaa !9
  %234 = load i32, ptr %11, align 4, !tbaa !9
  %235 = add i32 %234, %233
  store i32 %235, ptr %11, align 4, !tbaa !9
  %236 = load i32, ptr %11, align 4, !tbaa !9
  %237 = load ptr, ptr %5, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.w2c_hermes, ptr %237, i32 0, i32 3
  store i32 %236, ptr %238, align 8, !tbaa !13
  br label %251

239:                                              ; preds = %82
  store i32 118407, ptr %11, align 4, !tbaa !9
  store i32 83341, ptr %12, align 4, !tbaa !9
  store i32 465, ptr %13, align 4, !tbaa !9
  store i32 72211, ptr %14, align 4, !tbaa !9
  %240 = load ptr, ptr %5, align 8, !tbaa !5
  %241 = load i32, ptr %11, align 4, !tbaa !9
  %242 = load i32, ptr %12, align 4, !tbaa !9
  %243 = load i32, ptr %13, align 4, !tbaa !9
  %244 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %240, i32 noundef %241, i32 noundef %242, i32 noundef %243, i32 noundef %244)
  call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

245:                                              ; preds = %215
  store i32 200144, ptr %11, align 4, !tbaa !9
  store i32 61000, ptr %12, align 4, !tbaa !9
  store i32 269, ptr %13, align 4, !tbaa !9
  store i32 90695, ptr %14, align 4, !tbaa !9
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = load i32, ptr %11, align 4, !tbaa !9
  %248 = load i32, ptr %12, align 4, !tbaa !9
  %249 = load i32, ptr %13, align 4, !tbaa !9
  %250 = load i32, ptr %14, 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) #5
  unreachable

251:                                              ; preds = %231
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret void
}

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

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

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

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


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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AHermesABIRuntimeImpl0x3A0x3AcreateValue0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i64 noundef %3) local_unnamed_addr #2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add i32 %6, -16
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %7 to i64
  %10 = add nuw nsw i64 %9, 8
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %10, i64 noundef %3)
  %11 = ashr i64 %3, 47
  %12 = trunc nsw i64 %11 to i32
  switch i32 %12, label %47 [
    i32 -12, label %13
    i32 -11, label %15
    i32 -10, label %17
    i32 -9, label %23
    i32 -1, label %41
    i32 -2, label %41
    i32 -6, label %29
    i32 -5, label %29
    i32 -4, label %35
    i32 -3, label %35
  ]

13:                                               ; preds = %4
  %14 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %14, i32 noundef 0)
  br label %52

15:                                               ; preds = %4
  %16 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %16, i32 noundef 1)
  br label %52

17:                                               ; preds = %4
  %.not = icmp eq i64 %11, -10
  br i1 %.not, label %18, label %53

18:                                               ; preds = %17
  %19 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %19, i32 noundef 2)
  %20 = trunc i64 %3 to i32
  %21 = and i32 %20, 1
  %22 = add nuw nsw i64 %19, 8
  tail call void @i32_store8(ptr noundef nonnull %8, i64 noundef %22, i32 noundef %21)
  br label %52

23:                                               ; preds = %4
  %24 = add i32 %2, 16
  %25 = add i32 %6, -8
  %26 = tail call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x260x20hermes0x3A0x3AManagedChunkedList0x3C0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x2C0x2016ul0x3E0x3A0x3Aadd0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x260x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x260x29(ptr noundef nonnull %0, i32 noundef %24, i32 noundef %25)
  %27 = zext i32 %1 to i64
  %28 = add nuw nsw i64 %27, 8
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %28, i32 noundef %26)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %27, i32 noundef -2147483643)
  br label %52

29:                                               ; preds = %4, %4
  %30 = add i32 %2, 16
  %31 = add i32 %6, -8
  %32 = tail call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x260x20hermes0x3A0x3AManagedChunkedList0x3C0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x2C0x2016ul0x3E0x3A0x3Aadd0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x260x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x260x29(ptr noundef nonnull %0, i32 noundef %30, i32 noundef %31)
  %33 = zext i32 %1 to i64
  %34 = add nuw nsw i64 %33, 8
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %34, i32 noundef %32)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %33, i32 noundef -2147483641)
  br label %52

35:                                               ; preds = %4, %4
  %36 = add i32 %2, 16
  %37 = add i32 %6, -8
  %38 = tail call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x260x20hermes0x3A0x3AManagedChunkedList0x3C0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x2C0x2016ul0x3E0x3A0x3Aadd0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x260x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x260x29(ptr noundef nonnull %0, i32 noundef %36, i32 noundef %37)
  %39 = zext i32 %1 to i64
  %40 = add nuw nsw i64 %39, 8
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %40, i32 noundef %38)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %39, i32 noundef -2147483642)
  br label %52

41:                                               ; preds = %4, %4
  %42 = add i32 %2, 16
  %43 = add i32 %6, -8
  %44 = tail call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x260x20hermes0x3A0x3AManagedChunkedList0x3C0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x2C0x2016ul0x3E0x3A0x3Aadd0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x260x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x260x29(ptr noundef nonnull %0, i32 noundef %42, i32 noundef %43)
  %45 = zext i32 %1 to i64
  %46 = add nuw nsw i64 %45, 8
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %46, i32 noundef %44)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %45, i32 noundef -2147483639)
  br label %52

47:                                               ; preds = %4
  %48 = icmp ugt i64 %3, -1970324836974593
  br i1 %48, label %54, label %49

49:                                               ; preds = %47
  %50 = zext i32 %1 to i64
  %51 = add nuw nsw i64 %50, 8
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %51, i64 noundef %3)
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %50, i32 noundef 4)
  br label %52

52:                                               ; preds = %49, %41, %35, %29, %23, %18, %15, %13
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret void

53:                                               ; preds = %17
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 118407, i32 noundef 83341, i32 noundef 465, i32 noundef 72211)
  tail call void @wasm_rt_trap(i32 noundef 5) #3
  unreachable

54:                                               ; preds = %47
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 200144, i32 noundef 61000, i32 noundef 269, i32 noundef 90695)
  tail call void @wasm_rt_trap(i32 noundef 5) #3
  unreachable
}

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

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

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

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