; 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 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 hidden double @wasm_fabs(double noundef) #5

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

111:                                              ; preds = %3
  br label %247

112:                                              ; preds = %3
  %113 = load double, ptr %8, align 8, !tbaa !11
  store double %113, ptr %16, align 8, !tbaa !11
  store double 0x41DFFFFFFFC00000, ptr %17, align 8, !tbaa !11
  %114 = load double, ptr %16, align 8, !tbaa !11
  %115 = load double, ptr %17, align 8, !tbaa !11
  %116 = fcmp ogt double %114, %115
  %117 = zext i1 %116 to i32
  store i32 %117, ptr %9, align 4, !tbaa !9
  %118 = load i32, ptr %9, align 4, !tbaa !9
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %121

120:                                              ; preds = %112
  br label %247

121:                                              ; preds = %112
  %122 = load double, ptr %8, align 8, !tbaa !11
  store double %122, ptr %16, align 8, !tbaa !11
  store double 0xC1E0000000000000, ptr %17, align 8, !tbaa !11
  %123 = load double, ptr %16, align 8, !tbaa !11
  %124 = load double, ptr %17, align 8, !tbaa !11
  %125 = fcmp olt double %123, %124
  %126 = zext i1 %125 to i32
  store i32 %126, ptr %9, align 4, !tbaa !9
  %127 = load i32, ptr %9, align 4, !tbaa !9
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %130

129:                                              ; preds = %121
  br label %247

130:                                              ; preds = %121
  %131 = load double, ptr %8, align 8, !tbaa !11
  store double %131, ptr %16, align 8, !tbaa !11
  %132 = load double, ptr %8, align 8, !tbaa !11
  store double %132, ptr %17, align 8, !tbaa !11
  %133 = load double, ptr %17, align 8, !tbaa !11
  %134 = call double @wasm_fabs(double noundef %133)
  store double %134, ptr %17, align 8, !tbaa !11
  store double 0x41E0000000000000, ptr %18, align 8, !tbaa !11
  %135 = load double, ptr %17, align 8, !tbaa !11
  %136 = load double, ptr %18, align 8, !tbaa !11
  %137 = fcmp olt double %135, %136
  %138 = zext i1 %137 to i32
  store i32 %138, ptr %10, align 4, !tbaa !9
  %139 = load i32, ptr %10, align 4, !tbaa !9
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %178

141:                                              ; preds = %130
  %142 = load double, ptr %8, align 8, !tbaa !11
  store double %142, ptr %17, align 8, !tbaa !11
  %143 = load double, ptr %17, align 8, !tbaa !11
  %144 = load double, ptr %17, align 8, !tbaa !11
  %145 = fcmp une double %143, %144
  %146 = xor i1 %145, true
  %147 = xor i1 %146, true
  %148 = zext i1 %147 to i32
  %149 = sext i32 %148 to i64
  %150 = call i64 @llvm.expect.i64(i64 %149, i64 0)
  %151 = icmp ne i64 %150, 0
  br i1 %151, label %152, label %154

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

153:                                              ; No predecessors!
  br label %176

154:                                              ; preds = %141
  %155 = load double, ptr %17, align 8, !tbaa !11
  %156 = fcmp ogt double %155, 0xC1E0000000200000
  br i1 %156, label %157, label %160

157:                                              ; preds = %154
  %158 = load double, ptr %17, align 8, !tbaa !11
  %159 = fcmp olt double %158, 0x41E0000000000000
  br label %160

160:                                              ; preds = %157, %154
  %161 = phi i1 [ false, %154 ], [ %159, %157 ]
  %162 = xor i1 %161, true
  %163 = xor i1 %162, true
  %164 = xor i1 %163, true
  %165 = zext i1 %164 to i32
  %166 = sext i32 %165 to i64
  %167 = call i64 @llvm.expect.i64(i64 %166, i64 0)
  %168 = icmp ne i64 %167, 0
  br i1 %168, label %169, label %171

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

170:                                              ; No predecessors!
  br label %174

171:                                              ; preds = %160
  %172 = load double, ptr %17, align 8, !tbaa !11
  %173 = fptosi double %172 to i32
  br label %174

174:                                              ; preds = %171, %170
  %175 = phi i32 [ 0, %170 ], [ %173, %171 ]
  br label %176

176:                                              ; preds = %174, %153
  %177 = phi i32 [ 0, %153 ], [ %175, %174 ]
  store i32 %177, ptr %10, align 4, !tbaa !9
  br label %179

178:                                              ; preds = %130
  store i32 -2147483648, ptr %10, align 4, !tbaa !9
  br label %179

179:                                              ; preds = %178, %176
  %180 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %180, ptr %7, align 4, !tbaa !9
  %181 = load i32, ptr %10, align 4, !tbaa !9
  %182 = sitofp i32 %181 to double
  store double %182, ptr %17, align 8, !tbaa !11
  %183 = load double, ptr %16, align 8, !tbaa !11
  %184 = load double, ptr %17, align 8, !tbaa !11
  %185 = fcmp une double %183, %184
  %186 = zext i1 %185 to i32
  store i32 %186, ptr %9, align 4, !tbaa !9
  %187 = load i32, ptr %9, align 4, !tbaa !9
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %190

189:                                              ; preds = %179
  br label %247

190:                                              ; preds = %179
  %191 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %191, ptr %9, align 4, !tbaa !9
  %192 = load i32, ptr %9, align 4, !tbaa !9
  %193 = icmp ne i32 %192, 0
  %194 = xor i1 %193, true
  %195 = zext i1 %194 to i32
  store i32 %195, ptr %9, align 4, !tbaa !9
  %196 = load double, ptr %8, align 8, !tbaa !11
  store double %196, ptr %17, align 8, !tbaa !11
  %197 = load double, ptr %17, align 8, !tbaa !11
  %198 = call i64 @i64_reinterpret_f64(double noundef %197)
  store i64 %198, ptr %14, align 8, !tbaa !13
  store i64 0, ptr %15, align 8, !tbaa !13
  %199 = load i64, ptr %14, align 8, !tbaa !13
  %200 = load i64, ptr %15, align 8, !tbaa !13
  %201 = icmp slt i64 %199, %200
  %202 = zext i1 %201 to i32
  %203 = sext i32 %202 to i64
  %204 = trunc i64 %203 to i32
  store i32 %204, ptr %10, align 4, !tbaa !9
  %205 = load i32, ptr %10, align 4, !tbaa !9
  %206 = load i32, ptr %9, align 4, !tbaa !9
  %207 = and i32 %206, %205
  store i32 %207, ptr %9, align 4, !tbaa !9
  %208 = load i32, ptr %9, align 4, !tbaa !9
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %210, label %211

210:                                              ; preds = %190
  br label %247

211:                                              ; preds = %190
  %212 = load double, ptr %8, align 8, !tbaa !11
  store double %212, ptr %16, align 8, !tbaa !11
  store double 5.300000e+01, ptr %17, align 8, !tbaa !11
  %213 = load double, ptr %16, align 8, !tbaa !11
  %214 = load double, ptr %17, align 8, !tbaa !11
  %215 = fcmp olt double %213, %214
  %216 = zext i1 %215 to i32
  store i32 %216, ptr %9, align 4, !tbaa !9
  %217 = load i32, ptr %9, align 4, !tbaa !9
  %218 = icmp ne i32 %217, 0
  %219 = xor i1 %218, true
  %220 = zext i1 %219 to i32
  store i32 %220, ptr %9, align 4, !tbaa !9
  %221 = load i32, ptr %9, align 4, !tbaa !9
  %222 = icmp ne i32 %221, 0
  br i1 %222, label %223, label %224

223:                                              ; preds = %211
  br label %265

224:                                              ; preds = %211
  %225 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %225, ptr %9, align 4, !tbaa !9
  %226 = load i32, ptr %9, align 4, !tbaa !9
  %227 = icmp ne i32 %226, 0
  %228 = xor i1 %227, true
  %229 = zext i1 %228 to i32
  store i32 %229, ptr %9, align 4, !tbaa !9
  %230 = load i32, ptr %9, align 4, !tbaa !9
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %232, label %233

232:                                              ; preds = %224
  br label %265

233:                                              ; preds = %224
  %234 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %234, ptr %9, align 4, !tbaa !9
  %235 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %235, ptr %10, align 4, !tbaa !9
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = load i32, ptr %9, align 4, !tbaa !9
  %238 = load i32, ptr %10, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3ApushOperand0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %236, i32 noundef %237, i32 noundef %238)
  %239 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %239, ptr %9, align 4, !tbaa !9
  store i32 459008, ptr %10, align 4, !tbaa !9
  %240 = load ptr, ptr %4, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.w2c_hermes, ptr %240, i32 0, i32 6
  %242 = load i32, ptr %9, align 4, !tbaa !9
  %243 = zext i32 %242 to i64
  %244 = add i64 %243, 10
  %245 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %241, i64 noundef %244, i32 noundef %245)
  %246 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %246, ptr %9, align 4, !tbaa !9
  br label %283

247:                                              ; preds = %210, %189, %129, %120, %111
  store i32 0, ptr %9, align 4, !tbaa !9
  %248 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %248, ptr %5, align 4, !tbaa !9
  store i32 136575, ptr %10, align 4, !tbaa !9
  %249 = load i32, ptr %10, align 4, !tbaa !9
  %250 = load i32, ptr %9, align 4, !tbaa !9
  %251 = add i32 %250, %249
  store i32 %251, ptr %9, align 4, !tbaa !9
  %252 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %252, ptr %10, align 4, !tbaa !9
  store i32 85918, ptr %11, align 4, !tbaa !9
  %253 = load i32, ptr %11, align 4, !tbaa !9
  %254 = load i32, ptr %10, align 4, !tbaa !9
  %255 = add i32 %254, %253
  store i32 %255, ptr %10, align 4, !tbaa !9
  store i32 894, ptr %11, align 4, !tbaa !9
  %256 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %256, ptr %12, align 4, !tbaa !9
  store i32 111088, ptr %13, align 4, !tbaa !9
  %257 = load i32, ptr %13, align 4, !tbaa !9
  %258 = load i32, ptr %12, align 4, !tbaa !9
  %259 = add i32 %258, %257
  store i32 %259, ptr %12, align 4, !tbaa !9
  %260 = load ptr, ptr %4, align 8, !tbaa !5
  %261 = load i32, ptr %9, align 4, !tbaa !9
  %262 = load i32, ptr %10, align 4, !tbaa !9
  %263 = load i32, ptr %11, align 4, !tbaa !9
  %264 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %260, i32 noundef %261, i32 noundef %262, i32 noundef %263, i32 noundef %264)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

265:                                              ; preds = %232, %223
  store i32 0, ptr %9, align 4, !tbaa !9
  %266 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %266, ptr %5, align 4, !tbaa !9
  store i32 157834, ptr %10, align 4, !tbaa !9
  %267 = load i32, ptr %10, align 4, !tbaa !9
  %268 = load i32, ptr %9, align 4, !tbaa !9
  %269 = add i32 %268, %267
  store i32 %269, ptr %9, align 4, !tbaa !9
  %270 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %270, ptr %10, align 4, !tbaa !9
  store i32 78223, ptr %11, align 4, !tbaa !9
  %271 = load i32, ptr %11, align 4, !tbaa !9
  %272 = load i32, ptr %10, align 4, !tbaa !9
  %273 = add i32 %272, %271
  store i32 %273, ptr %10, align 4, !tbaa !9
  store i32 1006, ptr %11, align 4, !tbaa !9
  %274 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %274, ptr %12, align 4, !tbaa !9
  store i32 23539, ptr %13, align 4, !tbaa !9
  %275 = load i32, ptr %13, align 4, !tbaa !9
  %276 = load i32, ptr %12, align 4, !tbaa !9
  %277 = add i32 %276, %275
  store i32 %277, ptr %12, align 4, !tbaa !9
  %278 = load ptr, ptr %4, align 8, !tbaa !5
  %279 = load i32, ptr %9, align 4, !tbaa !9
  %280 = load i32, ptr %10, align 4, !tbaa !9
  %281 = load i32, ptr %11, align 4, !tbaa !9
  %282 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %278, i32 noundef %279, i32 noundef %280, i32 noundef %281, i32 noundef %282)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

283:                                              ; preds = %233
  %284 = load i32, ptr %9, align 4, !tbaa !9
  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 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  ret i32 %284
}

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 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 hidden double @wasm_fabs(double noundef) local_unnamed_addr #3

; 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_hermes0x3A0x3AGetBuiltinClosureInst0x3A0x3AGetBuiltinClosureInst0x28hermes0x3A0x3ALiteralNumber0x2A0x29(ptr noundef %0, i32 noundef returned %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  %5 = zext i32 %1 to i64
  %6 = add nuw nsw i64 %5, 68
  tail call void @i64_store(ptr noundef nonnull %4, i64 noundef %6, i64 noundef 0)
  %7 = add nuw nsw i64 %5, 36
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %7, i32 noundef 0)
  %8 = add nuw nsw i64 %5, 8
  tail call void @i32_store8(ptr noundef nonnull %4, i64 noundef %8, i32 noundef 98)
  %9 = add nuw nsw i64 %5, 20
  tail call void @i64_store(ptr noundef nonnull %4, i64 noundef %9, i64 noundef 8589934592)
  %10 = add nuw nsw i64 %5, 10
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %10, i32 noundef 459775)
  tail call void @i64_store(ptr noundef nonnull %4, i64 noundef %5, i64 noundef 0)
  %11 = add nuw nsw i64 %5, 44
  tail call void @i64_store(ptr noundef nonnull %4, i64 noundef %11, i64 noundef 8589934592)
  %12 = add i32 %1, 52
  %13 = add nuw nsw i64 %5, 40
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %13, i32 noundef %12)
  %14 = add i32 %1, 28
  %15 = add nuw nsw i64 %5, 16
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %15, i32 noundef %14)
  %16 = add nuw nsw i64 %5, 76
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %16, i32 noundef 0)
  %17 = zext i32 %2 to i64
  %18 = add nuw nsw i64 %17, 32
  %19 = tail call double @f64_load(ptr noundef nonnull %4, i64 noundef %18)
  %20 = fcmp uno double %19, 0.000000e+00
  %21 = fcmp ogt double %19, 0x41DFFFFFFFC00000
  %or.cond = or i1 %20, %21
  %22 = fcmp olt double %19, 0xC1E0000000000000
  %or.cond139 = or i1 %22, %or.cond
  br i1 %or.cond139, label %40, label %23

23:                                               ; preds = %3
  %24 = tail call double @wasm_fabs(double noundef %19)
  %25 = fcmp olt double %24, 0x41E0000000000000
  br i1 %25, label %26, label %32

26:                                               ; preds = %23
  %27 = fcmp ule double %19, 0xC1E0000000200000
  %28 = fcmp uge double %19, 0x41E0000000000000
  %.not136 = or i1 %27, %28
  br i1 %.not136, label %29, label %30, !prof !5

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

30:                                               ; preds = %26
  %31 = fptosi double %19 to i32
  br label %32

32:                                               ; preds = %23, %30
  %.0 = phi i32 [ %31, %30 ], [ -2147483648, %23 ]
  %33 = sitofp i32 %.0 to double
  %34 = fcmp une double %19, %33
  br i1 %34, label %40, label %35

35:                                               ; preds = %32
  %.not = icmp ne i32 %.0, 0
  %36 = tail call i64 @i64_reinterpret_f64(double noundef %19)
  %.not137138 = icmp sgt i64 %36, -1
  %.not137 = select i1 %.not, i1 true, i1 %.not137138
  br i1 %.not137, label %37, label %40

37:                                               ; preds = %35
  %38 = fcmp olt double %19, 5.300000e+01
  %brmerge.not = and i1 %38, %.not
  br i1 %brmerge.not, label %39, label %41

39:                                               ; preds = %37
  tail call void @w2c_hermes_hermes0x3A0x3AInstruction0x3A0x3ApushOperand0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2)
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %10, i32 noundef 459008)
  ret i32 %1

40:                                               ; preds = %35, %32, %3
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 136575, i32 noundef 85918, i32 noundef 894, i32 noundef 111088) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

41:                                               ; preds = %37
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 157834, i32 noundef 78223, i32 noundef 1006, i32 noundef 23539) #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: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass