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

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

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

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

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

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

; 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) #3

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @f64_store(ptr noundef, i64 noundef, double noundef) #3

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

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

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

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

66:                                               ; preds = %4
  %67 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %67, ptr %12, align 4, !tbaa !9
  %68 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %68, ptr %13, align 4, !tbaa !9
  store i32 40, ptr %14, align 4, !tbaa !9
  %69 = load i32, ptr %14, align 4, !tbaa !9
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = add i32 %70, %69
  store i32 %71, ptr %13, align 4, !tbaa !9
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = load i32, ptr %12, align 4, !tbaa !9
  %74 = load i32, ptr %13, align 4, !tbaa !9
  %75 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSCallSite0x3A0x3AgetStackTraceInfo0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSCallSite0x3E0x29(ptr noundef %72, i32 noundef %73, i32 noundef %74)
  store i32 %75, ptr %12, align 4, !tbaa !9
  %76 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %76, ptr %10, align 4, !tbaa !9
  br label %118

77:                                               ; preds = %4
  %78 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %78, ptr %12, align 4, !tbaa !9
  %79 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %79, ptr %13, align 4, !tbaa !9
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.w2c_hermes, ptr %80, i32 0, i32 6
  %82 = load i32, ptr %13, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = call i32 @i32_load(ptr noundef %81, i64 noundef %83)
  store i32 %84, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = load i32, ptr %13, align 4, !tbaa !9
  %87 = add i32 %86, %85
  store i32 %87, ptr %13, align 4, !tbaa !9
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.w2c_hermes, ptr %88, i32 0, i32 6
  %90 = load i32, ptr %12, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %89, i64 noundef %91, i32 noundef %92)
  %93 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %93, ptr %12, align 4, !tbaa !9
  %94 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %94, ptr %13, align 4, !tbaa !9
  store i32 40, ptr %14, align 4, !tbaa !9
  %95 = load i32, ptr %14, align 4, !tbaa !9
  %96 = load i32, ptr %13, align 4, !tbaa !9
  %97 = add i32 %96, %95
  store i32 %97, ptr %13, align 4, !tbaa !9
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSCallSite0x3A0x3AgetStackTraceInfo0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSCallSite0x3E0x29(ptr noundef %98, i32 noundef %99, i32 noundef %100)
  store i32 %101, ptr %12, align 4, !tbaa !9
  %102 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %102, ptr %10, align 4, !tbaa !9
  %103 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %103, ptr %12, align 4, !tbaa !9
  %104 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %104, ptr %13, align 4, !tbaa !9
  %105 = load ptr, ptr %5, 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 = call i32 @i32_load(ptr noundef %106, i64 noundef %108)
  store i32 %109, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %110 = load i32, ptr %14, align 4, !tbaa !9
  %111 = load i32, ptr %13, align 4, !tbaa !9
  %112 = sub i32 %111, %110
  store i32 %112, ptr %13, align 4, !tbaa !9
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.w2c_hermes, ptr %113, i32 0, i32 6
  %115 = load i32, ptr %12, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %114, i64 noundef %116, i32 noundef %117)
  br label %118

118:                                              ; preds = %77, %66
  %119 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %119, ptr %12, align 4, !tbaa !9
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.w2c_hermes, ptr %120, i32 0, i32 6
  %122 = load i32, ptr %12, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = call i32 @i32_load(ptr noundef %121, i64 noundef %123)
  store i32 %124, ptr %12, align 4, !tbaa !9
  %125 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %125, ptr %8, align 4, !tbaa !9
  %126 = load i32, ptr %12, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %247

128:                                              ; preds = %118
  %129 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %129, ptr %12, align 4, !tbaa !9
  store i32 4, ptr %13, align 4, !tbaa !9
  %130 = load i32, ptr %13, align 4, !tbaa !9
  %131 = load i32, ptr %12, align 4, !tbaa !9
  %132 = add i32 %131, %130
  store i32 %132, ptr %12, align 4, !tbaa !9
  %133 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %133, ptr %13, align 4, !tbaa !9
  %134 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %134, ptr %14, align 4, !tbaa !9
  %135 = load ptr, ptr %5, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.w2c_hermes, ptr %135, i32 0, i32 6
  %137 = load i32, ptr %14, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = add i64 %138, 4
  %140 = call i32 @i32_load(ptr noundef %136, i64 noundef %139)
  store i32 %140, ptr %14, align 4, !tbaa !9
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = load i32, ptr %12, align 4, !tbaa !9
  %143 = load i32, ptr %13, align 4, !tbaa !9
  %144 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSError0x3A0x3AgetDebugInfo0x28hermes0x3A0x3Avm0x3A0x3ACodeBlock0x2A0x2C0x20unsigned0x20int0x29(ptr noundef %141, i32 noundef %142, i32 noundef %143, i32 noundef %144)
  %145 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %145, ptr %12, align 4, !tbaa !9
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.w2c_hermes, ptr %146, i32 0, i32 6
  %148 = load i32, ptr %12, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = add i64 %149, 36
  %151 = call i32 @i32_load8_u(ptr noundef %147, i64 noundef %150)
  store i32 %151, ptr %12, align 4, !tbaa !9
  %152 = load i32, ptr %12, align 4, !tbaa !9
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %192

154:                                              ; preds = %128
  %155 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %155, ptr %12, align 4, !tbaa !9
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.w2c_hermes, ptr %156, i32 0, i32 6
  %158 = load i32, ptr %12, align 4, !tbaa !9
  %159 = zext i32 %158 to i64
  %160 = add i64 %159, 16
  %161 = call i32 @i32_load(ptr noundef %157, i64 noundef %160)
  store i32 %161, ptr %12, align 4, !tbaa !9
  %162 = load i32, ptr %12, align 4, !tbaa !9
  %163 = uitofp i32 %162 to double
  store double %163, ptr %19, align 8, !tbaa !11
  %164 = load double, ptr %19, align 8, !tbaa !11
  store double %164, ptr %11, align 8, !tbaa !11
  %165 = load double, ptr %19, align 8, !tbaa !11
  %166 = call i64 @i64_reinterpret_f64(double noundef %165)
  store i64 %166, ptr %17, align 8, !tbaa !19
  store i64 -1970324836974592, ptr %18, align 8, !tbaa !19
  %167 = load i64, ptr %17, align 8, !tbaa !19
  %168 = load i64, ptr %18, align 8, !tbaa !19
  %169 = icmp ult i64 %167, %168
  %170 = zext i1 %169 to i32
  store i32 %170, ptr %12, align 4, !tbaa !9
  %171 = load i32, ptr %12, align 4, !tbaa !9
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %174

173:                                              ; preds = %154
  br label %232

174:                                              ; preds = %154
  store i32 0, ptr %12, align 4, !tbaa !9
  %175 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %175, ptr %9, align 4, !tbaa !9
  store i32 168600, ptr %13, align 4, !tbaa !9
  %176 = load i32, ptr %13, align 4, !tbaa !9
  %177 = load i32, ptr %12, align 4, !tbaa !9
  %178 = add i32 %177, %176
  store i32 %178, ptr %12, align 4, !tbaa !9
  %179 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %179, ptr %13, align 4, !tbaa !9
  store i32 83341, ptr %14, align 4, !tbaa !9
  %180 = load i32, ptr %14, align 4, !tbaa !9
  %181 = load i32, ptr %13, align 4, !tbaa !9
  %182 = add i32 %181, %180
  store i32 %182, ptr %13, align 4, !tbaa !9
  store i32 341, ptr %14, align 4, !tbaa !9
  %183 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %183, ptr %15, align 4, !tbaa !9
  store i32 90577, ptr %16, align 4, !tbaa !9
  %184 = load i32, ptr %16, align 4, !tbaa !9
  %185 = load i32, ptr %15, align 4, !tbaa !9
  %186 = add i32 %185, %184
  store i32 %186, ptr %15, align 4, !tbaa !9
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  %188 = load i32, ptr %12, align 4, !tbaa !9
  %189 = load i32, ptr %13, align 4, !tbaa !9
  %190 = load i32, ptr %14, align 4, !tbaa !9
  %191 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %187, i32 noundef %188, i32 noundef %189, i32 noundef %190, i32 noundef %191)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

192:                                              ; preds = %128
  %193 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %193, ptr %12, align 4, !tbaa !9
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.w2c_hermes, ptr %194, i32 0, i32 6
  %196 = load i32, ptr %12, align 4, !tbaa !9
  %197 = zext i32 %196 to i64
  %198 = call i32 @i32_load(ptr noundef %195, i64 noundef %197)
  store i32 %198, ptr %12, align 4, !tbaa !9
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.w2c_hermes, ptr %199, i32 0, i32 6
  %201 = load i32, ptr %12, align 4, !tbaa !9
  %202 = zext i32 %201 to i64
  %203 = call i32 @i32_load(ptr noundef %200, i64 noundef %202)
  store i32 %203, ptr %12, align 4, !tbaa !9
  %204 = load ptr, ptr %5, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.w2c_hermes, ptr %204, i32 0, i32 6
  %206 = load i32, ptr %12, align 4, !tbaa !9
  %207 = zext i32 %206 to i64
  %208 = add i64 %207, 40
  %209 = call i32 @i32_load(ptr noundef %205, i64 noundef %208)
  store i32 %209, ptr %12, align 4, !tbaa !9
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.w2c_hermes, ptr %210, i32 0, i32 6
  %212 = load i32, ptr %12, align 4, !tbaa !9
  %213 = zext i32 %212 to i64
  %214 = add i64 %213, 100
  %215 = call i32 @i32_load(ptr noundef %211, i64 noundef %214)
  store i32 %215, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %216 = load i32, ptr %13, align 4, !tbaa !9
  %217 = load i32, ptr %12, align 4, !tbaa !9
  %218 = add i32 %217, %216
  store i32 %218, ptr %12, align 4, !tbaa !9
  %219 = load i32, ptr %12, align 4, !tbaa !9
  %220 = uitofp i32 %219 to double
  store double %220, ptr %19, align 8, !tbaa !11
  %221 = load double, ptr %19, align 8, !tbaa !11
  store double %221, ptr %11, align 8, !tbaa !11
  %222 = load double, ptr %19, align 8, !tbaa !11
  %223 = call i64 @i64_reinterpret_f64(double noundef %222)
  store i64 %223, ptr %17, align 8, !tbaa !19
  store i64 -1970324836974592, ptr %18, align 8, !tbaa !19
  %224 = load i64, ptr %17, align 8, !tbaa !19
  %225 = load i64, ptr %18, align 8, !tbaa !19
  %226 = icmp uge i64 %224, %225
  %227 = zext i1 %226 to i32
  store i32 %227, ptr %12, align 4, !tbaa !9
  %228 = load i32, ptr %12, align 4, !tbaa !9
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %231

230:                                              ; preds = %192
  br label %269

231:                                              ; preds = %192
  br label %232

232:                                              ; preds = %231, %173
  %233 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %233, ptr %12, align 4, !tbaa !9
  %234 = load double, ptr %11, align 8, !tbaa !11
  store double %234, ptr %20, align 8, !tbaa !11
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.w2c_hermes, ptr %235, i32 0, i32 6
  %237 = load i32, ptr %12, align 4, !tbaa !9
  %238 = zext i32 %237 to i64
  %239 = add i64 %238, 8
  %240 = load double, ptr %20, align 8, !tbaa !11
  call void @f64_store(ptr noundef %236, i64 noundef %239, double noundef %240)
  %241 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %241, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.w2c_hermes, ptr %242, i32 0, i32 6
  %244 = load i32, ptr %12, align 4, !tbaa !9
  %245 = zext i32 %244 to i64
  %246 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %243, i64 noundef %245, i32 noundef %246)
  br label %261

247:                                              ; preds = %118
  %248 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %248, ptr %12, align 4, !tbaa !9
  store i64 -1548112371908608, ptr %18, align 8, !tbaa !19
  %249 = load ptr, ptr %5, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.w2c_hermes, ptr %249, i32 0, i32 6
  %251 = load i32, ptr %12, align 4, !tbaa !9
  %252 = zext i32 %251 to i64
  %253 = add i64 %252, 8
  %254 = load i64, ptr %18, align 8, !tbaa !19
  call void @i64_store(ptr noundef %250, i64 noundef %253, i64 noundef %254)
  %255 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %255, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %256 = load ptr, ptr %5, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.w2c_hermes, ptr %256, i32 0, i32 6
  %258 = load i32, ptr %12, align 4, !tbaa !9
  %259 = zext i32 %258 to i64
  %260 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %257, i64 noundef %259, i32 noundef %260)
  br label %261

261:                                              ; preds = %247, %232
  %262 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %262, ptr %12, align 4, !tbaa !9
  store i32 48, ptr %13, align 4, !tbaa !9
  %263 = load i32, ptr %13, align 4, !tbaa !9
  %264 = load i32, ptr %12, align 4, !tbaa !9
  %265 = add i32 %264, %263
  store i32 %265, ptr %12, align 4, !tbaa !9
  %266 = load i32, ptr %12, align 4, !tbaa !9
  %267 = load ptr, ptr %5, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.w2c_hermes, ptr %267, i32 0, i32 3
  store i32 %266, ptr %268, align 8, !tbaa !13
  br label %287

269:                                              ; preds = %230
  store i32 0, ptr %12, align 4, !tbaa !9
  %270 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %270, ptr %9, align 4, !tbaa !9
  store i32 168600, ptr %13, align 4, !tbaa !9
  %271 = load i32, ptr %13, align 4, !tbaa !9
  %272 = load i32, ptr %12, align 4, !tbaa !9
  %273 = add i32 %272, %271
  store i32 %273, ptr %12, align 4, !tbaa !9
  %274 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %274, ptr %13, align 4, !tbaa !9
  store i32 83341, ptr %14, align 4, !tbaa !9
  %275 = load i32, ptr %14, align 4, !tbaa !9
  %276 = load i32, ptr %13, align 4, !tbaa !9
  %277 = add i32 %276, %275
  store i32 %277, ptr %13, align 4, !tbaa !9
  store i32 341, ptr %14, align 4, !tbaa !9
  %278 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %278, ptr %15, align 4, !tbaa !9
  store i32 90577, ptr %16, align 4, !tbaa !9
  %279 = load i32, ptr %16, align 4, !tbaa !9
  %280 = load i32, ptr %15, align 4, !tbaa !9
  %281 = add i32 %280, %279
  store i32 %281, ptr %15, align 4, !tbaa !9
  %282 = load ptr, ptr %5, align 8, !tbaa !5
  %283 = load i32, ptr %12, align 4, !tbaa !9
  %284 = load i32, ptr %13, align 4, !tbaa !9
  %285 = load i32, ptr %14, align 4, !tbaa !9
  %286 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %282, i32 noundef %283, i32 noundef %284, i32 noundef %285, i32 noundef %286)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

287:                                              ; preds = %261
  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 8, 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 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 #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 = !{!"double", !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, !18, i64 80}
!15 = !{!"", !6, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !17, i64 32}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_Bool", !7, i64 0}
!18 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!19 = !{!16, !16, 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"

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 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 #2

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSCallSite0x3A0x3AgetLineNumber0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSCallSite0x3E0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add i32 %6, -48
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = zext i32 %3 to i64
  %10 = add nuw nsw i64 %9, 4
  %11 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %10)
  %12 = zext i32 %7 to i64
  %13 = add nuw nsw i64 %12, 44
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %13, i32 noundef %11)
  %14 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %9)
  %15 = add nuw nsw i64 %12, 40
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %15, i32 noundef %14)
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %16, label %19

16:                                               ; preds = %4
  %17 = add i32 %6, -8
  %18 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSCallSite0x3A0x3AgetStackTraceInfo0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSCallSite0x3E0x29(ptr noundef nonnull %0, i32 noundef %7, i32 noundef %17)
  br label %27

19:                                               ; preds = %4
  %20 = zext i32 %14 to i64
  %21 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %20)
  %22 = add i32 %21, 1
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %20, i32 noundef %22)
  %23 = add i32 %6, -8
  %24 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSCallSite0x3A0x3AgetStackTraceInfo0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AJSCallSite0x3E0x29(ptr noundef nonnull %0, i32 noundef %7, i32 noundef %23)
  %25 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %20)
  %26 = add i32 %25, -1
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %20, i32 noundef %26)
  br label %27

27:                                               ; preds = %19, %16
  %.0153 = phi i32 [ %18, %16 ], [ %24, %19 ]
  %28 = zext i32 %.0153 to i64
  %29 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %28)
  %.not155 = icmp eq i32 %29, 0
  br i1 %.not155, label %60, label %30

30:                                               ; preds = %27
  %31 = add i32 %6, -44
  %32 = add nuw nsw i64 %28, 4
  %33 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %32)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AJSError0x3A0x3AgetDebugInfo0x28hermes0x3A0x3Avm0x3A0x3ACodeBlock0x2A0x2C0x20unsigned0x20int0x29(ptr noundef nonnull %0, i32 noundef %31, i32 noundef %29, i32 noundef %33)
  %34 = add nuw nsw i64 %12, 36
  %35 = tail call i32 @i32_load8_u(ptr noundef nonnull %8, i64 noundef %34)
  %.not156 = icmp eq i32 %35, 0
  br i1 %.not156, label %43, label %36

36:                                               ; preds = %30
  %37 = add nuw nsw i64 %12, 16
  %38 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %37)
  %39 = uitofp i32 %38 to double
  %40 = tail call i64 @i64_reinterpret_f64(double noundef %39)
  %41 = icmp ult i64 %40, -1970324836974592
  br i1 %41, label %57, label %42

42:                                               ; preds = %36
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 168600, i32 noundef 83341, i32 noundef 341, i32 noundef 90577) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

43:                                               ; preds = %30
  %44 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %28)
  %45 = zext i32 %44 to i64
  %46 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %45)
  %47 = zext i32 %46 to i64
  %48 = add nuw nsw i64 %47, 40
  %49 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %48)
  %50 = zext i32 %49 to i64
  %51 = add nuw nsw i64 %50, 100
  %52 = tail call i32 @i32_load(ptr noundef nonnull %8, i64 noundef %51)
  %53 = add i32 %52, 1
  %54 = uitofp i32 %53 to double
  %55 = tail call i64 @i64_reinterpret_f64(double noundef %54)
  %56 = icmp ugt i64 %55, -1970324836974593
  br i1 %56, label %64, label %57

57:                                               ; preds = %43, %36
  %.0 = phi double [ %39, %36 ], [ %54, %43 ]
  %58 = zext i32 %1 to i64
  %59 = add nuw nsw i64 %58, 8
  tail call void @f64_store(ptr noundef nonnull %8, i64 noundef %59, double noundef %.0)
  br label %63

60:                                               ; preds = %27
  %61 = zext i32 %1 to i64
  %62 = add nuw nsw i64 %61, 8
  tail call void @i64_store(ptr noundef nonnull %8, i64 noundef %62, i64 noundef -1548112371908608)
  br label %63

63:                                               ; preds = %60, %57
  %.sink = phi i64 [ %61, %60 ], [ %58, %57 ]
  tail call void @i32_store(ptr noundef nonnull %8, i64 noundef %.sink, i32 noundef 1)
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret void

64:                                               ; preds = %43
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 168600, i32 noundef 83341, i32 noundef 341, i32 noundef 90577) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

attributes #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 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn nounwind }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass