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

; 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(none)
declare i64 @llvm.expect.i64(i64, i64) #2

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store8(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: nounwind uwtable
declare dso_local void @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3ApushOperand0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef, i32 noundef, i32 noundef) #5

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3AHBCAllocObjectFromBufferInst0x3A0x3AHBCAllocObjectFromBufferInst0x28hermes0x3A0x3ALiteralNumber0x2A0x2C0x20llvh0x3A0x3ASmallVector0x3Cstd0x3A0x3A_0x5F20x3A0x3Apair0x3Chermes0x3A0x3ALiteral0x2A0x2C0x20hermes0x3A0x3ALiteral0x2A0x3E0x2C0x204u0x3E0x20const0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #5 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store double 0.000000e+00, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %22 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %22, ptr %11, align 4, !tbaa !9
  store i64 0, ptr %16, align 8, !tbaa !13
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.w2c_hermes, ptr %23, i32 0, i32 6
  %25 = load i32, ptr %11, align 4, !tbaa !9
  %26 = zext i32 %25 to i64
  %27 = add i64 %26, 68
  %28 = load i64, ptr %16, align 8, !tbaa !13
  call void @i64_store(ptr noundef %24, i64 noundef %27, i64 noundef %28)
  %29 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %29, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.w2c_hermes, ptr %30, i32 0, i32 6
  %32 = load i32, ptr %11, align 4, !tbaa !9
  %33 = zext i32 %32 to i64
  %34 = add i64 %33, 36
  %35 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %31, i64 noundef %34, i32 noundef %35)
  %36 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %36, ptr %11, align 4, !tbaa !9
  store i32 106, ptr %12, align 4, !tbaa !9
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.w2c_hermes, ptr %37, i32 0, i32 6
  %39 = load i32, ptr %11, align 4, !tbaa !9
  %40 = zext i32 %39 to i64
  %41 = add i64 %40, 8
  %42 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %38, i64 noundef %41, i32 noundef %42)
  %43 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %43, ptr %11, align 4, !tbaa !9
  store i64 8589934592, ptr %16, align 8, !tbaa !13
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.w2c_hermes, ptr %44, i32 0, i32 6
  %46 = load i32, ptr %11, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = add i64 %47, 20
  %49 = load i64, ptr %16, align 8, !tbaa !13
  call void @i64_store(ptr noundef %45, i64 noundef %48, i64 noundef %49)
  %50 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %50, ptr %11, align 4, !tbaa !9
  store i64 0, ptr %16, align 8, !tbaa !13
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.w2c_hermes, ptr %51, i32 0, i32 6
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = load i64, ptr %16, align 8, !tbaa !13
  call void @i64_store(ptr noundef %52, i64 noundef %54, i64 noundef %55)
  %56 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %56, ptr %11, align 4, !tbaa !9
  store i32 458880, ptr %12, align 4, !tbaa !9
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.w2c_hermes, ptr %57, i32 0, i32 6
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = zext i32 %59 to i64
  %61 = add i64 %60, 10
  %62 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %58, i64 noundef %61, i32 noundef %62)
  %63 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %63, ptr %11, align 4, !tbaa !9
  store i64 8589934592, ptr %16, align 8, !tbaa !13
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.w2c_hermes, ptr %64, i32 0, i32 6
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = add i64 %67, 44
  %69 = load i64, ptr %16, align 8, !tbaa !13
  call void @i64_store(ptr noundef %65, i64 noundef %68, i64 noundef %69)
  %70 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %70, ptr %11, align 4, !tbaa !9
  %71 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %71, ptr %12, align 4, !tbaa !9
  store i32 52, ptr %13, align 4, !tbaa !9
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = load i32, ptr %12, align 4, !tbaa !9
  %74 = add i32 %73, %72
  store i32 %74, ptr %12, align 4, !tbaa !9
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.w2c_hermes, ptr %75, i32 0, i32 6
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = add i64 %78, 40
  %80 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %76, i64 noundef %79, i32 noundef %80)
  %81 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %81, ptr %11, align 4, !tbaa !9
  %82 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %82, ptr %12, align 4, !tbaa !9
  store i32 28, ptr %13, align 4, !tbaa !9
  %83 = load i32, ptr %13, align 4, !tbaa !9
  %84 = load i32, ptr %12, align 4, !tbaa !9
  %85 = add i32 %84, %83
  store i32 %85, ptr %12, align 4, !tbaa !9
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.w2c_hermes, ptr %86, i32 0, i32 6
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = add i64 %89, 16
  %91 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %87, i64 noundef %90, i32 noundef %91)
  %92 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %92, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.w2c_hermes, ptr %93, i32 0, i32 6
  %95 = load i32, ptr %11, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = add i64 %96, 76
  %98 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %94, i64 noundef %97, i32 noundef %98)
  %99 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %99, ptr %11, align 4, !tbaa !9
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.w2c_hermes, ptr %100, i32 0, i32 6
  %102 = load i32, ptr %11, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = add i64 %103, 32
  %105 = call double @f64_load(ptr noundef %101, i64 noundef %104)
  store double %105, ptr %18, align 8, !tbaa !11
  %106 = load double, ptr %18, align 8, !tbaa !11
  store double %106, ptr %10, align 8, !tbaa !11
  %107 = load double, ptr %10, align 8, !tbaa !11
  store double %107, ptr %19, align 8, !tbaa !11
  %108 = load double, ptr %18, align 8, !tbaa !11
  %109 = load double, ptr %19, align 8, !tbaa !11
  %110 = fcmp une double %108, %109
  %111 = zext i1 %110 to i32
  store i32 %111, ptr %11, align 4, !tbaa !9
  %112 = load i32, ptr %11, align 4, !tbaa !9
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %4
  br label %320

115:                                              ; preds = %4
  %116 = load double, ptr %10, align 8, !tbaa !11
  store double %116, ptr %18, align 8, !tbaa !11
  store double 0x41EFFFFFFFE00000, ptr %19, align 8, !tbaa !11
  %117 = load double, ptr %18, align 8, !tbaa !11
  %118 = load double, ptr %19, align 8, !tbaa !11
  %119 = fcmp ogt double %117, %118
  %120 = zext i1 %119 to i32
  store i32 %120, ptr %11, align 4, !tbaa !9
  %121 = load i32, ptr %11, align 4, !tbaa !9
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %124

123:                                              ; preds = %115
  br label %320

124:                                              ; preds = %115
  %125 = load double, ptr %10, align 8, !tbaa !11
  store double %125, ptr %18, align 8, !tbaa !11
  store double 0.000000e+00, ptr %19, align 8, !tbaa !11
  %126 = load double, ptr %18, align 8, !tbaa !11
  %127 = load double, ptr %19, align 8, !tbaa !11
  %128 = fcmp olt double %126, %127
  %129 = zext i1 %128 to i32
  store i32 %129, ptr %11, align 4, !tbaa !9
  %130 = load i32, ptr %11, align 4, !tbaa !9
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %133

132:                                              ; preds = %124
  br label %320

133:                                              ; preds = %124
  %134 = load double, ptr %10, align 8, !tbaa !11
  store double %134, ptr %18, align 8, !tbaa !11
  %135 = load double, ptr %10, align 8, !tbaa !11
  store double %135, ptr %19, align 8, !tbaa !11
  store double 0x41F0000000000000, ptr %20, align 8, !tbaa !11
  %136 = load double, ptr %19, align 8, !tbaa !11
  %137 = load double, ptr %20, align 8, !tbaa !11
  %138 = fcmp olt double %136, %137
  %139 = zext i1 %138 to i32
  store i32 %139, ptr %12, align 4, !tbaa !9
  %140 = load double, ptr %10, align 8, !tbaa !11
  store double %140, ptr %20, align 8, !tbaa !11
  store double 0.000000e+00, ptr %21, align 8, !tbaa !11
  %141 = load double, ptr %20, align 8, !tbaa !11
  %142 = load double, ptr %21, align 8, !tbaa !11
  %143 = fcmp oge double %141, %142
  %144 = zext i1 %143 to i32
  store i32 %144, ptr %13, align 4, !tbaa !9
  %145 = load i32, ptr %13, align 4, !tbaa !9
  %146 = load i32, ptr %12, align 4, !tbaa !9
  %147 = and i32 %146, %145
  store i32 %147, ptr %12, align 4, !tbaa !9
  %148 = load i32, ptr %12, align 4, !tbaa !9
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %187

150:                                              ; preds = %133
  %151 = load double, ptr %10, align 8, !tbaa !11
  store double %151, ptr %19, align 8, !tbaa !11
  %152 = load double, ptr %19, align 8, !tbaa !11
  %153 = load double, ptr %19, align 8, !tbaa !11
  %154 = fcmp une double %152, %153
  %155 = xor i1 %154, true
  %156 = xor i1 %155, true
  %157 = zext i1 %156 to i32
  %158 = sext i32 %157 to i64
  %159 = call i64 @llvm.expect.i64(i64 %158, i64 0)
  %160 = icmp ne i64 %159, 0
  br i1 %160, label %161, label %163

161:                                              ; preds = %150
  call void @wasm_rt_trap(i32 noundef 4) #7
  unreachable

162:                                              ; No predecessors!
  br label %185

163:                                              ; preds = %150
  %164 = load double, ptr %19, align 8, !tbaa !11
  %165 = fcmp ogt double %164, -1.000000e+00
  br i1 %165, label %166, label %169

166:                                              ; preds = %163
  %167 = load double, ptr %19, align 8, !tbaa !11
  %168 = fcmp olt double %167, 0x41F0000000000000
  br label %169

169:                                              ; preds = %166, %163
  %170 = phi i1 [ false, %163 ], [ %168, %166 ]
  %171 = xor i1 %170, true
  %172 = xor i1 %171, true
  %173 = xor i1 %172, true
  %174 = zext i1 %173 to i32
  %175 = sext i32 %174 to i64
  %176 = call i64 @llvm.expect.i64(i64 %175, i64 0)
  %177 = icmp ne i64 %176, 0
  br i1 %177, label %178, label %180

178:                                              ; preds = %169
  call void @wasm_rt_trap(i32 noundef 2) #7
  unreachable

179:                                              ; No predecessors!
  br label %183

180:                                              ; preds = %169
  %181 = load double, ptr %19, align 8, !tbaa !11
  %182 = fptoui double %181 to i32
  br label %183

183:                                              ; preds = %180, %179
  %184 = phi i32 [ 0, %179 ], [ %182, %180 ]
  br label %185

185:                                              ; preds = %183, %162
  %186 = phi i32 [ 0, %162 ], [ %184, %183 ]
  store i32 %186, ptr %12, align 4, !tbaa !9
  br label %188

187:                                              ; preds = %133
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %188

188:                                              ; preds = %187, %185
  %189 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %189, ptr %9, align 4, !tbaa !9
  %190 = load i32, ptr %12, align 4, !tbaa !9
  %191 = uitofp i32 %190 to double
  store double %191, ptr %19, align 8, !tbaa !11
  %192 = load double, ptr %18, align 8, !tbaa !11
  %193 = load double, ptr %19, align 8, !tbaa !11
  %194 = fcmp une double %192, %193
  %195 = zext i1 %194 to i32
  store i32 %195, ptr %11, align 4, !tbaa !9
  %196 = load i32, ptr %11, align 4, !tbaa !9
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %198, label %199

198:                                              ; preds = %188
  br label %320

199:                                              ; preds = %188
  %200 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %200, ptr %11, align 4, !tbaa !9
  %201 = load i32, ptr %11, align 4, !tbaa !9
  %202 = icmp ne i32 %201, 0
  %203 = xor i1 %202, true
  %204 = zext i1 %203 to i32
  store i32 %204, ptr %11, align 4, !tbaa !9
  %205 = load double, ptr %10, align 8, !tbaa !11
  store double %205, ptr %19, align 8, !tbaa !11
  %206 = load double, ptr %19, align 8, !tbaa !11
  %207 = call i64 @i64_reinterpret_f64(double noundef %206)
  store i64 %207, ptr %16, align 8, !tbaa !13
  store i64 0, ptr %17, align 8, !tbaa !13
  %208 = load i64, ptr %16, align 8, !tbaa !13
  %209 = load i64, ptr %17, align 8, !tbaa !13
  %210 = icmp slt i64 %208, %209
  %211 = zext i1 %210 to i32
  %212 = sext i32 %211 to i64
  %213 = trunc i64 %212 to i32
  store i32 %213, ptr %12, align 4, !tbaa !9
  %214 = load i32, ptr %12, align 4, !tbaa !9
  %215 = load i32, ptr %11, align 4, !tbaa !9
  %216 = and i32 %215, %214
  store i32 %216, ptr %11, align 4, !tbaa !9
  %217 = load i32, ptr %11, align 4, !tbaa !9
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %219, label %220

219:                                              ; preds = %199
  br label %320

220:                                              ; preds = %199
  %221 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %221, ptr %11, align 4, !tbaa !9
  %222 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %222, ptr %12, align 4, !tbaa !9
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = load i32, ptr %11, align 4, !tbaa !9
  %225 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3ApushOperand0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %223, i32 noundef %224, i32 noundef %225)
  %226 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %226, ptr %11, align 4, !tbaa !9
  %227 = load ptr, ptr %5, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.w2c_hermes, ptr %227, i32 0, i32 6
  %229 = load i32, ptr %11, align 4, !tbaa !9
  %230 = zext i32 %229 to i64
  %231 = add i64 %230, 4
  %232 = call i32 @i32_load(ptr noundef %228, i64 noundef %231)
  store i32 %232, ptr %11, align 4, !tbaa !9
  %233 = load i32, ptr %11, align 4, !tbaa !9
  %234 = icmp ne i32 %233, 0
  br i1 %234, label %235, label %318

235:                                              ; preds = %220
  store i32 0, ptr %11, align 4, !tbaa !9
  %236 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %236, ptr %7, align 4, !tbaa !9
  br label %237

237:                                              ; preds = %316, %235
  %238 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %238, ptr %11, align 4, !tbaa !9
  %239 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %239, ptr %12, align 4, !tbaa !9
  store i32 3, ptr %13, align 4, !tbaa !9
  %240 = load i32, ptr %13, align 4, !tbaa !9
  %241 = and i32 %240, 31
  %242 = load i32, ptr %12, align 4, !tbaa !9
  %243 = shl i32 %242, %241
  store i32 %243, ptr %12, align 4, !tbaa !9
  %244 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %244, ptr %9, align 4, !tbaa !9
  %245 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %245, ptr %13, align 4, !tbaa !9
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.w2c_hermes, ptr %246, i32 0, i32 6
  %248 = load i32, ptr %13, align 4, !tbaa !9
  %249 = zext i32 %248 to i64
  %250 = call i32 @i32_load(ptr noundef %247, i64 noundef %249)
  store i32 %250, ptr %13, align 4, !tbaa !9
  %251 = load i32, ptr %13, align 4, !tbaa !9
  %252 = load i32, ptr %12, align 4, !tbaa !9
  %253 = add i32 %252, %251
  store i32 %253, ptr %12, align 4, !tbaa !9
  %254 = load ptr, ptr %5, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.w2c_hermes, ptr %254, i32 0, i32 6
  %256 = load i32, ptr %12, align 4, !tbaa !9
  %257 = zext i32 %256 to i64
  %258 = call i32 @i32_load(ptr noundef %255, i64 noundef %257)
  store i32 %258, ptr %12, align 4, !tbaa !9
  %259 = load ptr, ptr %5, align 8, !tbaa !5
  %260 = load i32, ptr %11, align 4, !tbaa !9
  %261 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3ApushOperand0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %259, i32 noundef %260, i32 noundef %261)
  %262 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %262, ptr %11, align 4, !tbaa !9
  %263 = load ptr, ptr %5, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.w2c_hermes, ptr %263, i32 0, i32 6
  %265 = load i32, ptr %11, align 4, !tbaa !9
  %266 = zext i32 %265 to i64
  %267 = add i64 %266, 4
  %268 = call i32 @i32_load(ptr noundef %264, i64 noundef %267)
  store i32 %268, ptr %11, align 4, !tbaa !9
  %269 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %269, ptr %12, align 4, !tbaa !9
  %270 = load i32, ptr %11, align 4, !tbaa !9
  %271 = load i32, ptr %12, align 4, !tbaa !9
  %272 = icmp ule i32 %270, %271
  %273 = zext i1 %272 to i32
  store i32 %273, ptr %11, align 4, !tbaa !9
  %274 = load i32, ptr %11, align 4, !tbaa !9
  %275 = icmp ne i32 %274, 0
  br i1 %275, label %276, label %277

276:                                              ; preds = %237
  br label %338

277:                                              ; preds = %237
  %278 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %278, ptr %11, align 4, !tbaa !9
  %279 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %279, ptr %12, align 4, !tbaa !9
  %280 = load ptr, ptr %5, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.w2c_hermes, ptr %280, i32 0, i32 6
  %282 = load i32, ptr %12, align 4, !tbaa !9
  %283 = zext i32 %282 to i64
  %284 = call i32 @i32_load(ptr noundef %281, i64 noundef %283)
  store i32 %284, ptr %12, align 4, !tbaa !9
  %285 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %285, ptr %13, align 4, !tbaa !9
  %286 = load i32, ptr %13, align 4, !tbaa !9
  %287 = load i32, ptr %12, align 4, !tbaa !9
  %288 = add i32 %287, %286
  store i32 %288, ptr %12, align 4, !tbaa !9
  %289 = load ptr, ptr %5, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.w2c_hermes, ptr %289, i32 0, i32 6
  %291 = load i32, ptr %12, align 4, !tbaa !9
  %292 = zext i32 %291 to i64
  %293 = add i64 %292, 4
  %294 = call i32 @i32_load(ptr noundef %290, i64 noundef %293)
  store i32 %294, ptr %12, align 4, !tbaa !9
  %295 = load ptr, ptr %5, align 8, !tbaa !5
  %296 = load i32, ptr %11, align 4, !tbaa !9
  %297 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3ApushOperand0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %295, i32 noundef %296, i32 noundef %297)
  %298 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %298, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  %299 = load i32, ptr %12, align 4, !tbaa !9
  %300 = load i32, ptr %11, align 4, !tbaa !9
  %301 = add i32 %300, %299
  store i32 %301, ptr %11, align 4, !tbaa !9
  %302 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %302, ptr %7, align 4, !tbaa !9
  %303 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %303, ptr %12, align 4, !tbaa !9
  %304 = load ptr, ptr %5, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.w2c_hermes, ptr %304, i32 0, i32 6
  %306 = load i32, ptr %12, align 4, !tbaa !9
  %307 = zext i32 %306 to i64
  %308 = add i64 %307, 4
  %309 = call i32 @i32_load(ptr noundef %305, i64 noundef %308)
  store i32 %309, ptr %12, align 4, !tbaa !9
  %310 = load i32, ptr %11, align 4, !tbaa !9
  %311 = load i32, ptr %12, align 4, !tbaa !9
  %312 = icmp ult i32 %310, %311
  %313 = zext i1 %312 to i32
  store i32 %313, ptr %11, align 4, !tbaa !9
  %314 = load i32, ptr %11, align 4, !tbaa !9
  %315 = icmp ne i32 %314, 0
  br i1 %315, label %316, label %317

316:                                              ; preds = %277
  br label %237

317:                                              ; preds = %277
  br label %318

318:                                              ; preds = %317, %220
  %319 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %319, ptr %11, align 4, !tbaa !9
  br label %356

320:                                              ; preds = %219, %198, %132, %123, %114
  store i32 0, ptr %11, align 4, !tbaa !9
  %321 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %321, ptr %8, align 4, !tbaa !9
  store i32 188085, ptr %12, align 4, !tbaa !9
  %322 = load i32, ptr %12, align 4, !tbaa !9
  %323 = load i32, ptr %11, align 4, !tbaa !9
  %324 = add i32 %323, %322
  store i32 %324, ptr %11, align 4, !tbaa !9
  %325 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %325, ptr %12, align 4, !tbaa !9
  store i32 78223, ptr %13, align 4, !tbaa !9
  %326 = load i32, ptr %13, align 4, !tbaa !9
  %327 = load i32, ptr %12, align 4, !tbaa !9
  %328 = add i32 %327, %326
  store i32 %328, ptr %12, align 4, !tbaa !9
  store i32 1587, ptr %13, align 4, !tbaa !9
  %329 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %329, ptr %14, align 4, !tbaa !9
  store i32 23136, ptr %15, align 4, !tbaa !9
  %330 = load i32, ptr %15, align 4, !tbaa !9
  %331 = load i32, ptr %14, align 4, !tbaa !9
  %332 = add i32 %331, %330
  store i32 %332, ptr %14, align 4, !tbaa !9
  %333 = load ptr, ptr %5, align 8, !tbaa !5
  %334 = load i32, ptr %11, align 4, !tbaa !9
  %335 = load i32, ptr %12, align 4, !tbaa !9
  %336 = load i32, ptr %13, align 4, !tbaa !9
  %337 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %333, i32 noundef %334, i32 noundef %335, i32 noundef %336, i32 noundef %337)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

338:                                              ; preds = %276
  store i32 0, ptr %11, align 4, !tbaa !9
  %339 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %339, ptr %8, align 4, !tbaa !9
  store i32 118701, ptr %12, align 4, !tbaa !9
  %340 = load i32, ptr %12, align 4, !tbaa !9
  %341 = load i32, ptr %11, align 4, !tbaa !9
  %342 = add i32 %341, %340
  store i32 %342, ptr %11, align 4, !tbaa !9
  %343 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %343, ptr %12, align 4, !tbaa !9
  store i32 79572, ptr %13, align 4, !tbaa !9
  %344 = load i32, ptr %13, align 4, !tbaa !9
  %345 = load i32, ptr %12, align 4, !tbaa !9
  %346 = add i32 %345, %344
  store i32 %346, ptr %12, align 4, !tbaa !9
  store i32 166, ptr %13, align 4, !tbaa !9
  %347 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %347, ptr %14, align 4, !tbaa !9
  store i32 108367, ptr %15, align 4, !tbaa !9
  %348 = load i32, ptr %15, align 4, !tbaa !9
  %349 = load i32, ptr %14, align 4, !tbaa !9
  %350 = add i32 %349, %348
  store i32 %350, ptr %14, align 4, !tbaa !9
  %351 = load ptr, ptr %5, align 8, !tbaa !5
  %352 = load i32, ptr %11, align 4, !tbaa !9
  %353 = load i32, ptr %12, align 4, !tbaa !9
  %354 = load i32, ptr %13, align 4, !tbaa !9
  %355 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %351, i32 noundef %352, i32 noundef %353, i32 noundef %354, i32 noundef %355)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

356:                                              ; preds = %318
  %357 = load i32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret i32 %357
}

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 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #3 = { 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 #4 = { "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 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 #6 = { nounwind }
attributes #7 = { 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 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}


; 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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_hermes0x3A0x3AHBCAllocObjectFromBufferInst0x3A0x3AHBCAllocObjectFromBufferInst0x28hermes0x3A0x3ALiteralNumber0x2A0x2C0x20llvh0x3A0x3ASmallVector0x3Cstd0x3A0x3A_0x5F20x3A0x3Apair0x3Chermes0x3A0x3ALiteral0x2A0x2C0x20hermes0x3A0x3ALiteral0x2A0x3E0x2C0x204u0x3E0x20const0x260x29(ptr noundef %0, i32 noundef returned %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = zext i32 %1 to i64
  %7 = add nuw nsw i64 %6, 68
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %7, i64 noundef 0)
  %8 = add nuw nsw i64 %6, 36
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %8, i32 noundef 0)
  %9 = add nuw nsw i64 %6, 8
  tail call void @i32_store8(ptr noundef nonnull %5, i64 noundef %9, i32 noundef 106)
  %10 = add nuw nsw i64 %6, 20
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %10, i64 noundef 8589934592)
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %6, i64 noundef 0)
  %11 = add nuw nsw i64 %6, 10
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %11, i32 noundef 458880)
  %12 = add nuw nsw i64 %6, 44
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %12, i64 noundef 8589934592)
  %13 = add i32 %1, 52
  %14 = add nuw nsw i64 %6, 40
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %14, i32 noundef %13)
  %15 = add i32 %1, 28
  %16 = add nuw nsw i64 %6, 16
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %16, i32 noundef %15)
  %17 = add nuw nsw i64 %6, 76
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %17, i32 noundef 0)
  %18 = zext i32 %2 to i64
  %19 = add nuw nsw i64 %18, 32
  %20 = tail call double @f64_load(ptr noundef nonnull %5, i64 noundef %19)
  %21 = fcmp uno double %20, 0.000000e+00
  %22 = fcmp ogt double %20, 0x41EFFFFFFFE00000
  %or.cond = or i1 %21, %22
  %23 = fcmp olt double %20, 0.000000e+00
  %or.cond184 = or i1 %23, %or.cond
  br i1 %or.cond184, label %55, label %24

24:                                               ; preds = %4
  %25 = fcmp uge double %20, 0x41F0000000000000
  br i1 %25, label %31, label %26

26:                                               ; preds = %24
  %27 = fcmp ule double %20, -1.000000e+00
  br i1 %27, label %28, label %29, !prof !5

28:                                               ; preds = %26
  tail call void @wasm_rt_trap(i32 noundef 2) #4
  unreachable

29:                                               ; preds = %26
  %30 = fptoui double %20 to i32
  br label %31

31:                                               ; preds = %24, %29
  %.0175 = phi i32 [ %30, %29 ], [ 0, %24 ]
  %32 = uitofp i32 %.0175 to double
  %33 = fcmp une double %20, %32
  br i1 %33, label %55, label %34

34:                                               ; preds = %31
  %.not = icmp ne i32 %.0175, 0
  %35 = tail call i64 @i64_reinterpret_f64(double noundef %20)
  %.not180181 = icmp sgt i64 %35, -1
  %.not180 = select i1 %.not, i1 true, i1 %.not180181
  br i1 %.not180, label %36, label %55

36:                                               ; preds = %34
  tail call void @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3ApushOperand0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2)
  %37 = zext i32 %3 to i64
  %38 = add nuw nsw i64 %37, 4
  %39 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %38)
  %.not182 = icmp eq i32 %39, 0
  br i1 %.not182, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %36, %46
  %.0 = phi i32 [ %52, %46 ], [ 0, %36 ]
  %40 = shl i32 %.0, 3
  %41 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %37)
  %42 = add i32 %40, %41
  %43 = zext i32 %42 to i64
  %44 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %43)
  tail call void @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3ApushOperand0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %44)
  %45 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %38)
  %.not183 = icmp ugt i32 %45, %.0
  br i1 %.not183, label %46, label %56

46:                                               ; preds = %.preheader
  %47 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %37)
  %48 = add i32 %47, %40
  %49 = zext i32 %48 to i64
  %50 = add nuw nsw i64 %49, 4
  %51 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %50)
  tail call void @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3ApushOperand0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %51)
  %52 = add nuw i32 %.0, 1
  %53 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %38)
  %54 = icmp ult i32 %52, %53
  br i1 %54, label %.preheader, label %.loopexit

.loopexit:                                        ; preds = %46, %36
  ret i32 %1

55:                                               ; preds = %34, %31, %4
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 188085, i32 noundef 78223, i32 noundef 1587, i32 noundef 23136) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

56:                                               ; preds = %.preheader
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 118701, i32 noundef 79572, i32 noundef 166, i32 noundef 108367) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  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 = { noreturn nounwind }
attributes #5 = { 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 = !{!"branch_weights", !"expected", i32 1, i32 2000}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass