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

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

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

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

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

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

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

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

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

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

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

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

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

declare i32 @w2c_hermes_llvh0x3A0x3AAPInt0x3A0x3AAPInt0x28unsigned0x20int0x2C0x20llvh0x3A0x3AArrayRef0x3Cunsigned0x20long0x20long0x3E0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

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

48:                                               ; preds = %3
  %49 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %49, ptr %13, align 4, !tbaa !9
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.w2c_hermes, ptr %50, i32 0, i32 6
  %52 = load i32, ptr %13, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = add i64 %53, 18
  %55 = call i32 @i32_load8_u(ptr noundef %51, i64 noundef %54)
  store i32 %55, ptr %13, align 4, !tbaa !9
  %56 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %56, ptr %9, align 4, !tbaa !9
  store i32 7, ptr %14, align 4, !tbaa !9
  %57 = load i32, ptr %14, align 4, !tbaa !9
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = and i32 %58, %57
  store i32 %59, ptr %13, align 4, !tbaa !9
  %60 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %60, ptr %8, align 4, !tbaa !9
  %61 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %61, ptr %13, align 4, !tbaa !9
  store i32 6, ptr %14, align 4, !tbaa !9
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = load i32, ptr %13, align 4, !tbaa !9
  %64 = and i32 %63, %62
  store i32 %64, ptr %13, align 4, !tbaa !9
  %65 = load i32, ptr %13, align 4, !tbaa !9
  %66 = icmp ne i32 %65, 0
  %67 = xor i1 %66, true
  %68 = zext i1 %67 to i32
  store i32 %68, ptr %13, align 4, !tbaa !9
  %69 = load i32, ptr %13, align 4, !tbaa !9
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %48
  br label %132

72:                                               ; preds = %48
  %73 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %73, ptr %13, align 4, !tbaa !9
  store i32 3, ptr %14, align 4, !tbaa !9
  %74 = load i32, ptr %13, align 4, !tbaa !9
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = icmp eq i32 %74, %75
  %77 = zext i1 %76 to i32
  store i32 %77, ptr %13, align 4, !tbaa !9
  %78 = load i32, ptr %13, align 4, !tbaa !9
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %72
  br label %132

81:                                               ; preds = %72
  %82 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %82, ptr %13, align 4, !tbaa !9
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.w2c_hermes, ptr %83, i32 0, i32 6
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = zext i32 %85 to i64
  %87 = add i64 %86, 8
  %88 = call i32 @i32_load(ptr noundef %84, i64 noundef %87)
  store i32 %88, ptr %13, align 4, !tbaa !9
  %89 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %89, ptr %8, align 4, !tbaa !9
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.w2c_hermes, ptr %90, i32 0, i32 6
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = add i64 %93, 8
  %95 = call i64 @i64_load(ptr noundef %91, i64 noundef %94)
  store i64 %95, ptr %18, align 8, !tbaa !11
  %96 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %96, ptr %10, align 8, !tbaa !11
  %97 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %97, ptr %13, align 4, !tbaa !9
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.w2c_hermes, ptr %98, i32 0, i32 6
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = zext i32 %100 to i64
  %102 = call i64 @i64_load(ptr noundef %99, i64 noundef %101)
  store i64 %102, ptr %18, align 8, !tbaa !11
  %103 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %103, ptr %12, align 8, !tbaa !11
  %104 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %104, ptr %13, align 4, !tbaa !9
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.w2c_hermes, ptr %105, i32 0, i32 6
  %107 = load i32, ptr %13, align 4, !tbaa !9
  %108 = zext i32 %107 to i64
  %109 = add i64 %108, 16
  %110 = call i64 @i64_load16_s(ptr noundef %106, i64 noundef %109)
  store i64 %110, ptr %18, align 8, !tbaa !11
  store i64 16383, ptr %19, align 8, !tbaa !11
  %111 = load i64, ptr %19, align 8, !tbaa !11
  %112 = load i64, ptr %18, align 8, !tbaa !11
  %113 = add i64 %112, %111
  store i64 %113, ptr %18, align 8, !tbaa !11
  %114 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %114, ptr %11, align 8, !tbaa !11
  store i64 1, ptr %19, align 8, !tbaa !11
  %115 = load i64, ptr %18, align 8, !tbaa !11
  %116 = load i64, ptr %19, align 8, !tbaa !11
  %117 = icmp ne i64 %115, %116
  %118 = zext i1 %117 to i32
  store i32 %118, ptr %13, align 4, !tbaa !9
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %122

121:                                              ; preds = %81
  br label %184

122:                                              ; preds = %81
  %123 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %123, ptr %18, align 8, !tbaa !11
  store i64 48, ptr %19, align 8, !tbaa !11
  %124 = load i64, ptr %19, align 8, !tbaa !11
  %125 = and i64 %124, 63
  %126 = load i64, ptr %18, align 8, !tbaa !11
  %127 = lshr i64 %126, %125
  store i64 %127, ptr %18, align 8, !tbaa !11
  store i64 1, ptr %19, align 8, !tbaa !11
  %128 = load i64, ptr %19, align 8, !tbaa !11
  %129 = load i64, ptr %18, align 8, !tbaa !11
  %130 = and i64 %129, %128
  store i64 %130, ptr %18, align 8, !tbaa !11
  %131 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %131, ptr %11, align 8, !tbaa !11
  br label %184

132:                                              ; preds = %80, %71
  %133 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %133, ptr %13, align 4, !tbaa !9
  %134 = load i32, ptr %13, align 4, !tbaa !9
  switch i32 %134, label %139 [
    i32 0, label %135
    i32 1, label %136
    i32 2, label %137
    i32 3, label %138
  ]

135:                                              ; preds = %132
  br label %140

136:                                              ; preds = %132
  br label %160

137:                                              ; preds = %132
  br label %142

138:                                              ; preds = %132
  br label %184

139:                                              ; preds = %132
  br label %142

140:                                              ; preds = %135
  store i64 32767, ptr %18, align 8, !tbaa !11
  %141 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %141, ptr %11, align 8, !tbaa !11
  br label %184

142:                                              ; preds = %139, %137
  store i32 0, ptr %13, align 4, !tbaa !9
  %143 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %143, ptr %7, align 4, !tbaa !9
  store i32 202756, ptr %14, align 4, !tbaa !9
  %144 = load i32, ptr %14, align 4, !tbaa !9
  %145 = load i32, ptr %13, align 4, !tbaa !9
  %146 = add i32 %145, %144
  store i32 %146, ptr %13, align 4, !tbaa !9
  %147 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %147, ptr %14, align 4, !tbaa !9
  store i32 55395, ptr %15, align 4, !tbaa !9
  %148 = load i32, ptr %15, align 4, !tbaa !9
  %149 = load i32, ptr %14, align 4, !tbaa !9
  %150 = add i32 %149, %148
  store i32 %150, ptr %14, align 4, !tbaa !9
  store i32 2895, ptr %15, align 4, !tbaa !9
  %151 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %151, ptr %16, align 4, !tbaa !9
  store i32 27739, ptr %17, align 4, !tbaa !9
  %152 = load i32, ptr %17, align 4, !tbaa !9
  %153 = load i32, ptr %16, align 4, !tbaa !9
  %154 = add i32 %153, %152
  store i32 %154, ptr %16, align 4, !tbaa !9
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = load i32, ptr %13, align 4, !tbaa !9
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = load i32, ptr %15, align 4, !tbaa !9
  %159 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %155, i32 noundef %156, i32 noundef %157, i32 noundef %158, i32 noundef %159)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

160:                                              ; preds = %136
  %161 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %161, ptr %13, align 4, !tbaa !9
  %162 = load ptr, ptr %4, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.w2c_hermes, ptr %162, i32 0, i32 6
  %164 = load i32, ptr %13, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = add i64 %165, 8
  %167 = call i32 @i32_load(ptr noundef %163, i64 noundef %166)
  store i32 %167, ptr %13, align 4, !tbaa !9
  %168 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %168, ptr %6, align 4, !tbaa !9
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.w2c_hermes, ptr %169, i32 0, i32 6
  %171 = load i32, ptr %13, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = add i64 %172, 8
  %174 = call i64 @i64_load(ptr noundef %170, i64 noundef %173)
  store i64 %174, ptr %18, align 8, !tbaa !11
  %175 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %175, ptr %10, align 8, !tbaa !11
  %176 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %176, ptr %13, align 4, !tbaa !9
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.w2c_hermes, ptr %177, i32 0, i32 6
  %179 = load i32, ptr %13, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = call i64 @i64_load(ptr noundef %178, i64 noundef %180)
  store i64 %181, ptr %18, align 8, !tbaa !11
  %182 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %182, ptr %12, align 8, !tbaa !11
  store i64 32767, ptr %18, align 8, !tbaa !11
  %183 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %183, ptr %11, align 8, !tbaa !11
  br label %184

184:                                              ; preds = %160, %140, %138, %122, %121
  %185 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %185, ptr %13, align 4, !tbaa !9
  store i32 2, ptr %14, align 4, !tbaa !9
  %186 = load ptr, ptr %4, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.w2c_hermes, ptr %186, i32 0, i32 6
  %188 = load i32, ptr %13, align 4, !tbaa !9
  %189 = zext i32 %188 to i64
  %190 = add i64 %189, 12
  %191 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %187, i64 noundef %190, i32 noundef %191)
  %192 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %192, ptr %13, align 4, !tbaa !9
  %193 = load i64, ptr %12, align 8, !tbaa !11
  store i64 %193, ptr %19, align 8, !tbaa !11
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.w2c_hermes, ptr %194, i32 0, i32 6
  %196 = load i32, ptr %13, align 4, !tbaa !9
  %197 = zext i32 %196 to i64
  %198 = add i64 %197, 16
  %199 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %195, i64 noundef %198, i64 noundef %199)
  %200 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %200, ptr %13, align 4, !tbaa !9
  %201 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %201, ptr %14, align 4, !tbaa !9
  store i32 16, ptr %15, align 4, !tbaa !9
  %202 = load i32, ptr %15, align 4, !tbaa !9
  %203 = load i32, ptr %14, align 4, !tbaa !9
  %204 = add i32 %203, %202
  store i32 %204, ptr %14, align 4, !tbaa !9
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.w2c_hermes, ptr %205, i32 0, i32 6
  %207 = load i32, ptr %13, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = add i64 %208, 8
  %210 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %206, i64 noundef %209, i32 noundef %210)
  %211 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %211, ptr %13, align 4, !tbaa !9
  %212 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %212, ptr %14, align 4, !tbaa !9
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.w2c_hermes, ptr %213, i32 0, i32 6
  %215 = load i32, ptr %14, align 4, !tbaa !9
  %216 = zext i32 %215 to i64
  %217 = add i64 %216, 8
  %218 = call i64 @i64_load(ptr noundef %214, i64 noundef %217)
  store i64 %218, ptr %19, align 8, !tbaa !11
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.w2c_hermes, ptr %219, i32 0, i32 6
  %221 = load i32, ptr %13, align 4, !tbaa !9
  %222 = zext i32 %221 to i64
  %223 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %220, i64 noundef %222, i64 noundef %223)
  %224 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %224, ptr %13, align 4, !tbaa !9
  %225 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %225, ptr %19, align 8, !tbaa !11
  store i64 281474976710655, ptr %20, align 8, !tbaa !11
  %226 = load i64, ptr %20, align 8, !tbaa !11
  %227 = load i64, ptr %19, align 8, !tbaa !11
  %228 = and i64 %227, %226
  store i64 %228, ptr %19, align 8, !tbaa !11
  %229 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %229, ptr %20, align 8, !tbaa !11
  store i64 48, ptr %21, align 8, !tbaa !11
  %230 = load i64, ptr %21, align 8, !tbaa !11
  %231 = and i64 %230, 63
  %232 = load i64, ptr %20, align 8, !tbaa !11
  %233 = shl i64 %232, %231
  store i64 %233, ptr %20, align 8, !tbaa !11
  store i64 9223090561878065152, ptr %21, align 8, !tbaa !11
  %234 = load i64, ptr %21, align 8, !tbaa !11
  %235 = load i64, ptr %20, align 8, !tbaa !11
  %236 = and i64 %235, %234
  store i64 %236, ptr %20, align 8, !tbaa !11
  %237 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %237, ptr %16, align 4, !tbaa !9
  store i32 3, ptr %17, align 4, !tbaa !9
  %238 = load i32, ptr %17, align 4, !tbaa !9
  %239 = and i32 %238, 31
  %240 = load i32, ptr %16, align 4, !tbaa !9
  %241 = lshr i32 %240, %239
  store i32 %241, ptr %16, align 4, !tbaa !9
  %242 = load i32, ptr %16, align 4, !tbaa !9
  %243 = zext i32 %242 to i64
  store i64 %243, ptr %21, align 8, !tbaa !11
  store i64 63, ptr %22, align 8, !tbaa !11
  %244 = load i64, ptr %22, align 8, !tbaa !11
  %245 = and i64 %244, 63
  %246 = load i64, ptr %21, align 8, !tbaa !11
  %247 = shl i64 %246, %245
  store i64 %247, ptr %21, align 8, !tbaa !11
  %248 = load i64, ptr %21, align 8, !tbaa !11
  %249 = load i64, ptr %20, align 8, !tbaa !11
  %250 = or i64 %249, %248
  store i64 %250, ptr %20, align 8, !tbaa !11
  %251 = load i64, ptr %20, align 8, !tbaa !11
  %252 = load i64, ptr %19, align 8, !tbaa !11
  %253 = or i64 %252, %251
  store i64 %253, ptr %19, align 8, !tbaa !11
  %254 = load ptr, ptr %4, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.w2c_hermes, ptr %254, i32 0, i32 6
  %256 = load i32, ptr %13, align 4, !tbaa !9
  %257 = zext i32 %256 to i64
  %258 = add i64 %257, 24
  %259 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %255, i64 noundef %258, i64 noundef %259)
  %260 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %260, ptr %13, align 4, !tbaa !9
  store i32 128, ptr %14, align 4, !tbaa !9
  %261 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %261, ptr %15, align 4, !tbaa !9
  %262 = load ptr, ptr %4, align 8, !tbaa !5
  %263 = load i32, ptr %13, align 4, !tbaa !9
  %264 = load i32, ptr %14, align 4, !tbaa !9
  %265 = load i32, ptr %15, align 4, !tbaa !9
  %266 = call i32 @w2c_hermes_llvh0x3A0x3AAPInt0x3A0x3AAPInt0x28unsigned0x20int0x2C0x20llvh0x3A0x3AArrayRef0x3Cunsigned0x20long0x20long0x3E0x29(ptr noundef %262, i32 noundef %263, i32 noundef %264, i32 noundef %265)
  store i32 %266, ptr %13, align 4, !tbaa !9
  %267 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %267, ptr %13, align 4, !tbaa !9
  store i32 32, ptr %14, align 4, !tbaa !9
  %268 = load i32, ptr %14, align 4, !tbaa !9
  %269 = load i32, ptr %13, align 4, !tbaa !9
  %270 = add i32 %269, %268
  store i32 %270, ptr %13, align 4, !tbaa !9
  %271 = load i32, ptr %13, align 4, !tbaa !9
  %272 = load ptr, ptr %4, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.w2c_hermes, ptr %272, i32 0, i32 3
  store i32 %271, ptr %273, align 8, !tbaa !13
  br label %292

274:                                              ; preds = %3
  store i32 0, ptr %13, align 4, !tbaa !9
  %275 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %275, ptr %7, align 4, !tbaa !9
  store i32 106744, ptr %14, align 4, !tbaa !9
  %276 = load i32, ptr %14, align 4, !tbaa !9
  %277 = load i32, ptr %13, align 4, !tbaa !9
  %278 = add i32 %277, %276
  store i32 %278, ptr %13, align 4, !tbaa !9
  %279 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %279, ptr %14, align 4, !tbaa !9
  store i32 55395, ptr %15, align 4, !tbaa !9
  %280 = load i32, ptr %15, align 4, !tbaa !9
  %281 = load i32, ptr %14, align 4, !tbaa !9
  %282 = add i32 %281, %280
  store i32 %282, ptr %14, align 4, !tbaa !9
  store i32 2877, ptr %15, align 4, !tbaa !9
  %283 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %283, ptr %16, align 4, !tbaa !9
  store i32 27739, ptr %17, align 4, !tbaa !9
  %284 = load i32, ptr %17, align 4, !tbaa !9
  %285 = load i32, ptr %16, align 4, !tbaa !9
  %286 = add i32 %285, %284
  store i32 %286, ptr %16, align 4, !tbaa !9
  %287 = load ptr, ptr %4, align 8, !tbaa !5
  %288 = load i32, ptr %13, align 4, !tbaa !9
  %289 = load i32, ptr %14, align 4, !tbaa !9
  %290 = load i32, ptr %15, align 4, !tbaa !9
  %291 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %287, i32 noundef %288, i32 noundef %289, i32 noundef %290, i32 noundef %291)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

292:                                              ; preds = %184
  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 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 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret void
}

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

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

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


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

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

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

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

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

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

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

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

declare i32 @w2c_hermes_llvh0x3A0x3AAPInt0x3A0x3AAPInt0x28unsigned0x20int0x2C0x20llvh0x3A0x3AArrayRef0x3Cunsigned0x20long0x20long0x3E0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_llvh0x3A0x3Adetail0x3A0x3AIEEEFloat0x3A0x3AconvertQuadrupleAPFloatToAPInt0x280x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add i32 %5, -32
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %2 to i64
  %9 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  %10 = icmp eq i32 %9, 216716
  br i1 %10, label %11, label %57

11:                                               ; preds = %3
  %12 = add nuw nsw i64 %8, 18
  %13 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef %12)
  %14 = and i32 %13, 7
  %15 = and i32 %13, 6
  %.not = icmp eq i32 %15, 0
  %16 = icmp eq i32 %14, 3
  %or.cond = or i1 %.not, %16
  br i1 %or.cond, label %30, label %17

17:                                               ; preds = %11
  %18 = add nuw nsw i64 %8, 8
  %19 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %18)
  %20 = zext i32 %19 to i64
  %21 = add nuw nsw i64 %20, 8
  %22 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %21)
  %23 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %20)
  %24 = add nuw nsw i64 %8, 16
  %25 = tail call i64 @i64_load16_s(ptr noundef nonnull %7, i64 noundef %24)
  %26 = add i64 %25, 16383
  %.not157 = icmp eq i64 %26, 1
  br i1 %.not157, label %27, label %40

27:                                               ; preds = %17
  %28 = lshr i64 %22, 48
  %29 = and i64 %28, 1
  br label %40

30:                                               ; preds = %11
  switch i32 %14, label %32 [
    i32 0, label %31
    i32 1, label %33
    i32 3, label %40
  ]

31:                                               ; preds = %30
  br label %40

32:                                               ; preds = %30
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 202756, i32 noundef 55395, i32 noundef 2895, i32 noundef 27739) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

33:                                               ; preds = %30
  %34 = add nuw nsw i64 %8, 8
  %35 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %34)
  %36 = zext i32 %35 to i64
  %37 = add nuw nsw i64 %36, 8
  %38 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %37)
  %39 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %36)
  br label %40

40:                                               ; preds = %30, %17, %33, %31, %27
  %.0155 = phi i64 [ 0, %30 ], [ %38, %33 ], [ 0, %31 ], [ %22, %17 ], [ %22, %27 ]
  %.0154 = phi i64 [ 0, %30 ], [ 32767, %33 ], [ 32767, %31 ], [ %26, %17 ], [ %29, %27 ]
  %.0 = phi i64 [ 0, %30 ], [ %39, %33 ], [ 0, %31 ], [ %23, %17 ], [ %23, %27 ]
  %41 = zext i32 %6 to i64
  %42 = add nuw nsw i64 %41, 12
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %42, i32 noundef 2)
  %43 = add nuw nsw i64 %41, 16
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %43, i64 noundef %.0)
  %44 = add i32 %5, -16
  %45 = add nuw nsw i64 %41, 8
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %45, i32 noundef %44)
  %46 = tail call i64 @i64_load(ptr noundef nonnull %7, i64 noundef %45)
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %41, i64 noundef %46)
  %47 = and i64 %.0155, 281474976710655
  %48 = shl i64 %.0154, 48
  %49 = and i64 %48, 9223090561878065152
  %50 = lshr i32 %13, 3
  %51 = zext nneg i32 %50 to i64
  %52 = shl i64 %51, 63
  %53 = or disjoint i64 %49, %52
  %54 = or disjoint i64 %53, %47
  %55 = add nuw nsw i64 %41, 24
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %55, i64 noundef %54)
  %56 = tail call i32 @w2c_hermes_llvh0x3A0x3AAPInt0x3A0x3AAPInt0x28unsigned0x20int0x2C0x20llvh0x3A0x3AArrayRef0x3Cunsigned0x20long0x20long0x3E0x29(ptr noundef nonnull %0, i32 noundef %1, i32 noundef 128, i32 noundef %6) #4
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret void

57:                                               ; preds = %3
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 106744, i32 noundef 55395, i32 noundef 2877, i32 noundef 27739) #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,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass