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

; 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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #1

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

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

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

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

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

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

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

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

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

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

80:                                               ; preds = %5
  store double 0x7FF0000000000000, ptr %28, align 8, !tbaa !13
  %81 = load double, ptr %28, align 8, !tbaa !13
  store double %81, ptr %18, align 8, !tbaa !13
  br label %320

82:                                               ; preds = %5
  %83 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %83, ptr %20, align 4, !tbaa !9
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.w2c_hermes, ptr %84, i32 0, i32 6
  %86 = load i32, ptr %20, align 4, !tbaa !9
  %87 = zext i32 %86 to i64
  %88 = call i32 @i32_load(ptr noundef %85, i64 noundef %87)
  store i32 %88, ptr %20, align 4, !tbaa !9
  %89 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %89, ptr %10, align 4, !tbaa !9
  %90 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %90, ptr %21, align 4, !tbaa !9
  store i32 3, ptr %22, align 4, !tbaa !9
  %91 = load i32, ptr %22, align 4, !tbaa !9
  %92 = and i32 %91, 31
  %93 = load i32, ptr %21, align 4, !tbaa !9
  %94 = shl i32 %93, %92
  store i32 %94, ptr %21, align 4, !tbaa !9
  %95 = load i32, ptr %21, align 4, !tbaa !9
  %96 = load i32, ptr %20, align 4, !tbaa !9
  %97 = sub i32 %96, %95
  store i32 %97, ptr %20, align 4, !tbaa !9
  %98 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %98, ptr %16, align 4, !tbaa !9
  store double 0x7FF0000000000000, ptr %28, align 8, !tbaa !13
  %99 = load double, ptr %28, align 8, !tbaa !13
  store double %99, ptr %18, align 8, !tbaa !13
  br label %100

100:                                              ; preds = %318, %82
  %101 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %101, ptr %20, align 4, !tbaa !9
  %102 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %102, ptr %21, align 4, !tbaa !9
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.w2c_hermes, ptr %103, i32 0, i32 6
  %105 = load i32, ptr %20, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = add i64 %106, 36
  %108 = load i32, ptr %21, align 4, !tbaa !9
  call void @i32_store(ptr noundef %104, i64 noundef %107, i32 noundef %108)
  %109 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %109, ptr %20, align 4, !tbaa !9
  %110 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %110, ptr %21, align 4, !tbaa !9
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.w2c_hermes, ptr %111, i32 0, i32 6
  %113 = load i32, ptr %20, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = add i64 %114, 32
  %116 = load i32, ptr %21, align 4, !tbaa !9
  call void @i32_store(ptr noundef %112, i64 noundef %115, i32 noundef %116)
  %117 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %117, ptr %20, align 4, !tbaa !9
  %118 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %118, ptr %21, align 4, !tbaa !9
  %119 = load ptr, ptr %6, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.w2c_hermes, ptr %119, i32 0, i32 6
  %121 = load i32, ptr %21, align 4, !tbaa !9
  %122 = zext i32 %121 to i64
  %123 = add i64 %122, 32
  %124 = call i64 @i64_load(ptr noundef %120, i64 noundef %123)
  store i64 %124, ptr %26, align 8, !tbaa !11
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.w2c_hermes, ptr %125, i32 0, i32 6
  %127 = load i32, ptr %20, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = add i64 %128, 16
  %130 = load i64, ptr %26, align 8, !tbaa !11
  call void @i64_store(ptr noundef %126, i64 noundef %129, i64 noundef %130)
  %131 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %131, ptr %20, align 4, !tbaa !9
  %132 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %132, ptr %21, align 4, !tbaa !9
  store i32 16, ptr %22, align 4, !tbaa !9
  %133 = load i32, ptr %22, align 4, !tbaa !9
  %134 = load i32, ptr %21, align 4, !tbaa !9
  %135 = add i32 %134, %133
  store i32 %135, ptr %21, align 4, !tbaa !9
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = load i32, ptr %20, align 4, !tbaa !9
  %138 = load i32, ptr %21, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3AflushToMarker0x28hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3AMarker0x29(ptr noundef %136, i32 noundef %137, i32 noundef %138)
  %139 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %139, ptr %20, align 4, !tbaa !9
  %140 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %140, ptr %21, align 4, !tbaa !9
  store i32 8, ptr %22, align 4, !tbaa !9
  %141 = load i32, ptr %22, align 4, !tbaa !9
  %142 = load i32, ptr %21, align 4, !tbaa !9
  %143 = sub i32 %142, %141
  store i32 %143, ptr %21, align 4, !tbaa !9
  %144 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %144, ptr %10, align 4, !tbaa !9
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.w2c_hermes, ptr %145, i32 0, i32 6
  %147 = load i32, ptr %20, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = add i64 %148, 28
  %150 = load i32, ptr %21, align 4, !tbaa !9
  call void @i32_store(ptr noundef %146, i64 noundef %149, i32 noundef %150)
  %151 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %151, ptr %20, align 4, !tbaa !9
  store i32 0, ptr %21, align 4, !tbaa !9
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.w2c_hermes, ptr %152, i32 0, i32 6
  %154 = load i32, ptr %20, align 4, !tbaa !9
  %155 = zext i32 %154 to i64
  %156 = add i64 %155, 24
  %157 = load i32, ptr %21, align 4, !tbaa !9
  call void @i32_store(ptr noundef %153, i64 noundef %156, i32 noundef %157)
  %158 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %158, ptr %20, align 4, !tbaa !9
  store i32 32, ptr %21, align 4, !tbaa !9
  %159 = load i32, ptr %21, align 4, !tbaa !9
  %160 = load i32, ptr %20, align 4, !tbaa !9
  %161 = add i32 %160, %159
  store i32 %161, ptr %20, align 4, !tbaa !9
  %162 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %162, ptr %21, align 4, !tbaa !9
  %163 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %163, ptr %22, align 4, !tbaa !9
  store i32 24, ptr %23, align 4, !tbaa !9
  %164 = load i32, ptr %23, align 4, !tbaa !9
  %165 = load i32, ptr %22, align 4, !tbaa !9
  %166 = add i32 %165, %164
  store i32 %166, ptr %22, align 4, !tbaa !9
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = load i32, ptr %20, align 4, !tbaa !9
  %169 = load i32, ptr %21, align 4, !tbaa !9
  %170 = load i32, ptr %22, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %167, i32 noundef %168, i32 noundef %169, i32 noundef %170)
  %171 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %171, ptr %20, align 4, !tbaa !9
  %172 = load ptr, ptr %6, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.w2c_hermes, ptr %172, i32 0, i32 6
  %174 = load i32, ptr %20, align 4, !tbaa !9
  %175 = zext i32 %174 to i64
  %176 = add i64 %175, 24
  %177 = call i32 @i32_load(ptr noundef %173, i64 noundef %176)
  store i32 %177, ptr %20, align 4, !tbaa !9
  %178 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %178, ptr %12, align 4, !tbaa !9
  %179 = load i32, ptr %20, align 4, !tbaa !9
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %197

181:                                              ; preds = %100
  %182 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %182, ptr %20, align 4, !tbaa !9
  %183 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %183, ptr %21, align 4, !tbaa !9
  %184 = load ptr, ptr %6, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.w2c_hermes, ptr %184, i32 0, i32 6
  %186 = load i32, ptr %21, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = call i32 @i32_load(ptr noundef %185, i64 noundef %187)
  store i32 %188, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %22, align 4, !tbaa !9
  %189 = load i32, ptr %22, align 4, !tbaa !9
  %190 = load i32, ptr %21, align 4, !tbaa !9
  %191 = sub i32 %190, %189
  store i32 %191, ptr %21, align 4, !tbaa !9
  %192 = load ptr, ptr %6, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.w2c_hermes, ptr %192, i32 0, i32 6
  %194 = load i32, ptr %20, align 4, !tbaa !9
  %195 = zext i32 %194 to i64
  %196 = load i32, ptr %21, align 4, !tbaa !9
  call void @i32_store(ptr noundef %193, i64 noundef %195, i32 noundef %196)
  br label %197

197:                                              ; preds = %181, %100
  %198 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %198, ptr %20, align 4, !tbaa !9
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.w2c_hermes, ptr %199, i32 0, i32 6
  %201 = load i32, ptr %20, align 4, !tbaa !9
  %202 = zext i32 %201 to i64
  %203 = add i64 %202, 32
  %204 = call i32 @i32_load(ptr noundef %200, i64 noundef %203)
  store i32 %204, ptr %20, align 4, !tbaa !9
  %205 = load i32, ptr %20, align 4, !tbaa !9
  switch i32 %205, label %208 [
    i32 0, label %206
    i32 1, label %207
  ]

206:                                              ; preds = %197
  br label %369

207:                                              ; preds = %197
  br label %227

208:                                              ; preds = %197
  br label %209

209:                                              ; preds = %208
  store i32 0, ptr %20, align 4, !tbaa !9
  %210 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %210, ptr %11, align 4, !tbaa !9
  store i32 109639, ptr %21, align 4, !tbaa !9
  %211 = load i32, ptr %21, align 4, !tbaa !9
  %212 = load i32, ptr %20, align 4, !tbaa !9
  %213 = add i32 %212, %211
  store i32 %213, ptr %20, align 4, !tbaa !9
  %214 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %214, ptr %21, align 4, !tbaa !9
  store i32 77564, ptr %22, align 4, !tbaa !9
  %215 = load i32, ptr %22, align 4, !tbaa !9
  %216 = load i32, ptr %21, align 4, !tbaa !9
  %217 = add i32 %216, %215
  store i32 %217, ptr %21, align 4, !tbaa !9
  store i32 179, ptr %22, align 4, !tbaa !9
  %218 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %218, ptr %23, align 4, !tbaa !9
  store i32 90402, ptr %24, align 4, !tbaa !9
  %219 = load i32, ptr %24, align 4, !tbaa !9
  %220 = load i32, ptr %23, align 4, !tbaa !9
  %221 = add i32 %220, %219
  store i32 %221, ptr %23, align 4, !tbaa !9
  %222 = load ptr, ptr %6, align 8, !tbaa !5
  %223 = load i32, ptr %20, align 4, !tbaa !9
  %224 = load i32, ptr %21, align 4, !tbaa !9
  %225 = load i32, ptr %22, align 4, !tbaa !9
  %226 = load i32, ptr %23, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %222, i32 noundef %223, i32 noundef %224, i32 noundef %225, i32 noundef %226)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

227:                                              ; preds = %207
  %228 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %228, ptr %20, align 4, !tbaa !9
  %229 = load ptr, ptr %6, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.w2c_hermes, ptr %229, i32 0, i32 6
  %231 = load i32, ptr %20, align 4, !tbaa !9
  %232 = zext i32 %231 to i64
  %233 = add i64 %232, 40
  %234 = call i64 @i64_load(ptr noundef %230, i64 noundef %233)
  store i64 %234, ptr %25, align 8, !tbaa !11
  %235 = load i64, ptr %25, align 8, !tbaa !11
  store i64 %235, ptr %17, align 8, !tbaa !11
  store i64 -1970324836974592, ptr %26, align 8, !tbaa !11
  %236 = load i64, ptr %25, align 8, !tbaa !11
  %237 = load i64, ptr %26, align 8, !tbaa !11
  %238 = icmp uge i64 %236, %237
  %239 = zext i1 %238 to i32
  store i32 %239, ptr %20, align 4, !tbaa !9
  %240 = load i32, ptr %20, align 4, !tbaa !9
  %241 = icmp ne i32 %240, 0
  br i1 %241, label %242, label %243

242:                                              ; preds = %227
  br label %351

243:                                              ; preds = %227
  %244 = load double, ptr %18, align 8, !tbaa !13
  store double %244, ptr %28, align 8, !tbaa !13
  %245 = load double, ptr %18, align 8, !tbaa !13
  store double %245, ptr %29, align 8, !tbaa !13
  %246 = load double, ptr %28, align 8, !tbaa !13
  %247 = load double, ptr %29, align 8, !tbaa !13
  %248 = fcmp une double %246, %247
  %249 = zext i1 %248 to i32
  store i32 %249, ptr %20, align 4, !tbaa !9
  %250 = load i32, ptr %20, align 4, !tbaa !9
  %251 = icmp ne i32 %250, 0
  br i1 %251, label %252, label %253

252:                                              ; preds = %243
  br label %309

253:                                              ; preds = %243
  %254 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %254, ptr %25, align 8, !tbaa !11
  %255 = load i64, ptr %25, align 8, !tbaa !11
  %256 = call double @f64_reinterpret_i64(i64 noundef %255)
  store double %256, ptr %28, align 8, !tbaa !13
  %257 = load double, ptr %28, align 8, !tbaa !13
  store double %257, ptr %19, align 8, !tbaa !13
  %258 = load double, ptr %19, align 8, !tbaa !13
  store double %258, ptr %29, align 8, !tbaa !13
  %259 = load double, ptr %28, align 8, !tbaa !13
  %260 = load double, ptr %29, align 8, !tbaa !13
  %261 = fcmp une double %259, %260
  %262 = zext i1 %261 to i32
  store i32 %262, ptr %20, align 4, !tbaa !9
  %263 = load i32, ptr %20, align 4, !tbaa !9
  %264 = icmp ne i32 %263, 0
  br i1 %264, label %265, label %268

265:                                              ; preds = %253
  %266 = call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  store double %266, ptr %28, align 8, !tbaa !13
  %267 = load double, ptr %28, align 8, !tbaa !13
  store double %267, ptr %18, align 8, !tbaa !13
  br label %309

268:                                              ; preds = %253
  %269 = load double, ptr %18, align 8, !tbaa !13
  store double %269, ptr %28, align 8, !tbaa !13
  %270 = load double, ptr %19, align 8, !tbaa !13
  store double %270, ptr %29, align 8, !tbaa !13
  %271 = load double, ptr %28, align 8, !tbaa !13
  %272 = load double, ptr %29, align 8, !tbaa !13
  %273 = fcmp ogt double %271, %272
  %274 = zext i1 %273 to i32
  store i32 %274, ptr %20, align 4, !tbaa !9
  %275 = load i32, ptr %20, align 4, !tbaa !9
  %276 = icmp ne i32 %275, 0
  %277 = xor i1 %276, true
  %278 = zext i1 %277 to i32
  store i32 %278, ptr %20, align 4, !tbaa !9
  %279 = load i32, ptr %20, align 4, !tbaa !9
  %280 = icmp ne i32 %279, 0
  br i1 %280, label %281, label %306

281:                                              ; preds = %268
  %282 = load double, ptr %18, align 8, !tbaa !13
  store double %282, ptr %28, align 8, !tbaa !13
  %283 = load double, ptr %28, align 8, !tbaa !13
  %284 = call i64 @i64_reinterpret_f64(double noundef %283)
  store i64 %284, ptr %25, align 8, !tbaa !11
  store i64 0, ptr %26, align 8, !tbaa !11
  %285 = load i64, ptr %25, align 8, !tbaa !11
  %286 = load i64, ptr %26, align 8, !tbaa !11
  %287 = icmp slt i64 %285, %286
  %288 = zext i1 %287 to i32
  %289 = sext i32 %288 to i64
  %290 = trunc i64 %289 to i32
  store i32 %290, ptr %20, align 4, !tbaa !9
  %291 = load i32, ptr %20, align 4, !tbaa !9
  %292 = icmp ne i32 %291, 0
  br i1 %292, label %293, label %294

293:                                              ; preds = %281
  br label %309

294:                                              ; preds = %281
  %295 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %295, ptr %25, align 8, !tbaa !11
  store i64 0, ptr %26, align 8, !tbaa !11
  %296 = load i64, ptr %25, align 8, !tbaa !11
  %297 = load i64, ptr %26, align 8, !tbaa !11
  %298 = icmp sge i64 %296, %297
  %299 = zext i1 %298 to i32
  %300 = sext i32 %299 to i64
  %301 = trunc i64 %300 to i32
  store i32 %301, ptr %20, align 4, !tbaa !9
  %302 = load i32, ptr %20, align 4, !tbaa !9
  %303 = icmp ne i32 %302, 0
  br i1 %303, label %304, label %305

304:                                              ; preds = %294
  br label %309

305:                                              ; preds = %294
  br label %306

306:                                              ; preds = %305, %268
  %307 = load double, ptr %19, align 8, !tbaa !13
  store double %307, ptr %28, align 8, !tbaa !13
  %308 = load double, ptr %28, align 8, !tbaa !13
  store double %308, ptr %18, align 8, !tbaa !13
  br label %309

309:                                              ; preds = %306, %304, %293, %265, %252
  %310 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %310, ptr %20, align 4, !tbaa !9
  %311 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %311, ptr %21, align 4, !tbaa !9
  %312 = load i32, ptr %20, align 4, !tbaa !9
  %313 = load i32, ptr %21, align 4, !tbaa !9
  %314 = icmp ne i32 %312, %313
  %315 = zext i1 %314 to i32
  store i32 %315, ptr %20, align 4, !tbaa !9
  %316 = load i32, ptr %20, align 4, !tbaa !9
  %317 = icmp ne i32 %316, 0
  br i1 %317, label %318, label %319

318:                                              ; preds = %309
  br label %100

319:                                              ; preds = %309
  br label %320

320:                                              ; preds = %319, %80
  %321 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %321, ptr %20, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  %322 = load ptr, ptr %6, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.w2c_hermes, ptr %322, i32 0, i32 6
  %324 = load i32, ptr %20, align 4, !tbaa !9
  %325 = zext i32 %324 to i64
  %326 = load i32, ptr %21, align 4, !tbaa !9
  call void @i32_store(ptr noundef %323, i64 noundef %325, i32 noundef %326)
  %327 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %327, ptr %20, align 4, !tbaa !9
  store i64 9221120237041090560, ptr %26, align 8, !tbaa !11
  %328 = load double, ptr %18, align 8, !tbaa !13
  store double %328, ptr %30, align 8, !tbaa !13
  %329 = load double, ptr %30, align 8, !tbaa !13
  %330 = call i64 @i64_reinterpret_f64(double noundef %329)
  store i64 %330, ptr %27, align 8, !tbaa !11
  %331 = load double, ptr %18, align 8, !tbaa !13
  store double %331, ptr %31, align 8, !tbaa !13
  %332 = load double, ptr %18, align 8, !tbaa !13
  store double %332, ptr %32, align 8, !tbaa !13
  %333 = load double, ptr %31, align 8, !tbaa !13
  %334 = load double, ptr %32, align 8, !tbaa !13
  %335 = fcmp une double %333, %334
  %336 = zext i1 %335 to i32
  store i32 %336, ptr %23, align 4, !tbaa !9
  %337 = load i32, ptr %23, align 4, !tbaa !9
  %338 = icmp ne i32 %337, 0
  br i1 %338, label %339, label %341

339:                                              ; preds = %320
  %340 = load i64, ptr %26, align 8, !tbaa !11
  br label %343

341:                                              ; preds = %320
  %342 = load i64, ptr %27, align 8, !tbaa !11
  br label %343

343:                                              ; preds = %341, %339
  %344 = phi i64 [ %340, %339 ], [ %342, %341 ]
  store i64 %344, ptr %26, align 8, !tbaa !11
  %345 = load ptr, ptr %6, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.w2c_hermes, ptr %345, i32 0, i32 6
  %347 = load i32, ptr %20, align 4, !tbaa !9
  %348 = zext i32 %347 to i64
  %349 = add i64 %348, 8
  %350 = load i64, ptr %26, align 8, !tbaa !11
  call void @i64_store(ptr noundef %346, i64 noundef %349, i64 noundef %350)
  br label %376

351:                                              ; preds = %242
  store i32 0, ptr %20, align 4, !tbaa !9
  %352 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %352, ptr %11, align 4, !tbaa !9
  store i32 118741, ptr %21, align 4, !tbaa !9
  %353 = load i32, ptr %21, align 4, !tbaa !9
  %354 = load i32, ptr %20, align 4, !tbaa !9
  %355 = add i32 %354, %353
  store i32 %355, ptr %20, align 4, !tbaa !9
  %356 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %356, ptr %21, align 4, !tbaa !9
  store i32 83341, ptr %22, align 4, !tbaa !9
  %357 = load i32, ptr %22, align 4, !tbaa !9
  %358 = load i32, ptr %21, align 4, !tbaa !9
  %359 = add i32 %358, %357
  store i32 %359, ptr %21, align 4, !tbaa !9
  store i32 444, ptr %22, align 4, !tbaa !9
  %360 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %360, ptr %23, align 4, !tbaa !9
  store i32 97283, ptr %24, align 4, !tbaa !9
  %361 = load i32, ptr %24, align 4, !tbaa !9
  %362 = load i32, ptr %23, align 4, !tbaa !9
  %363 = add i32 %362, %361
  store i32 %363, ptr %23, align 4, !tbaa !9
  %364 = load ptr, ptr %6, align 8, !tbaa !5
  %365 = load i32, ptr %20, align 4, !tbaa !9
  %366 = load i32, ptr %21, align 4, !tbaa !9
  %367 = load i32, ptr %22, align 4, !tbaa !9
  %368 = load i32, ptr %23, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %364, i32 noundef %365, i32 noundef %366, i32 noundef %367, i32 noundef %368)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

369:                                              ; preds = %206
  %370 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %370, ptr %20, align 4, !tbaa !9
  store i32 0, ptr %21, align 4, !tbaa !9
  %371 = load ptr, ptr %6, align 8, !tbaa !5
  %372 = getelementptr inbounds %struct.w2c_hermes, ptr %371, i32 0, i32 6
  %373 = load i32, ptr %20, align 4, !tbaa !9
  %374 = zext i32 %373 to i64
  %375 = load i32, ptr %21, align 4, !tbaa !9
  call void @i32_store(ptr noundef %372, i64 noundef %374, i32 noundef %375)
  br label %376

376:                                              ; preds = %369, %343
  %377 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %377, ptr %20, align 4, !tbaa !9
  %378 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %378, ptr %21, align 4, !tbaa !9
  %379 = load ptr, ptr %6, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.w2c_hermes, ptr %379, i32 0, i32 6
  %381 = load i32, ptr %20, align 4, !tbaa !9
  %382 = zext i32 %381 to i64
  %383 = add i64 %382, 36
  %384 = load i32, ptr %21, align 4, !tbaa !9
  call void @i32_store(ptr noundef %380, i64 noundef %383, i32 noundef %384)
  %385 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %385, ptr %20, align 4, !tbaa !9
  %386 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %386, ptr %21, align 4, !tbaa !9
  %387 = load ptr, ptr %6, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.w2c_hermes, ptr %387, i32 0, i32 6
  %389 = load i32, ptr %20, align 4, !tbaa !9
  %390 = zext i32 %389 to i64
  %391 = add i64 %390, 32
  %392 = load i32, ptr %21, align 4, !tbaa !9
  call void @i32_store(ptr noundef %388, i64 noundef %391, i32 noundef %392)
  %393 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %393, ptr %20, align 4, !tbaa !9
  %394 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %394, ptr %21, align 4, !tbaa !9
  %395 = load ptr, ptr %6, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.w2c_hermes, ptr %395, i32 0, i32 6
  %397 = load i32, ptr %21, align 4, !tbaa !9
  %398 = zext i32 %397 to i64
  %399 = add i64 %398, 32
  %400 = call i64 @i64_load(ptr noundef %396, i64 noundef %399)
  store i64 %400, ptr %26, align 8, !tbaa !11
  %401 = load ptr, ptr %6, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.w2c_hermes, ptr %401, i32 0, i32 6
  %403 = load i32, ptr %20, align 4, !tbaa !9
  %404 = zext i32 %403 to i64
  %405 = add i64 %404, 8
  %406 = load i64, ptr %26, align 8, !tbaa !11
  call void @i64_store(ptr noundef %402, i64 noundef %405, i64 noundef %406)
  %407 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %407, ptr %20, align 4, !tbaa !9
  %408 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %408, ptr %21, align 4, !tbaa !9
  store i32 8, ptr %22, align 4, !tbaa !9
  %409 = load i32, ptr %22, align 4, !tbaa !9
  %410 = load i32, ptr %21, align 4, !tbaa !9
  %411 = add i32 %410, %409
  store i32 %411, ptr %21, align 4, !tbaa !9
  %412 = load ptr, ptr %6, align 8, !tbaa !5
  %413 = load i32, ptr %20, align 4, !tbaa !9
  %414 = load i32, ptr %21, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3AflushToMarker0x28hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3AMarker0x29(ptr noundef %412, i32 noundef %413, i32 noundef %414)
  %415 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %415, ptr %20, align 4, !tbaa !9
  store i32 48, ptr %21, align 4, !tbaa !9
  %416 = load i32, ptr %21, align 4, !tbaa !9
  %417 = load i32, ptr %20, align 4, !tbaa !9
  %418 = add i32 %417, %416
  store i32 %418, ptr %20, align 4, !tbaa !9
  %419 = load i32, ptr %20, align 4, !tbaa !9
  %420 = load ptr, ptr %6, align 8, !tbaa !5
  %421 = getelementptr inbounds %struct.w2c_hermes, ptr %420, i32 0, i32 3
  store i32 %419, ptr %421, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %11) #5
  ret void
}

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

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

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


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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 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 i64 @i64_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: inlinehint nounwind uwtable
declare hidden double @f64_reinterpret_i64(i64 noundef) local_unnamed_addr #0

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

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

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

..loopexit_crit_edge:                             ; preds = %5
  %.pre229 = zext i32 %8 to i64
  %.pre = add nuw nsw i64 %.pre229, 36
  %.pre230 = add nuw nsw i64 %.pre229, 32
  br label %.loopexit

21:                                               ; preds = %5
  %22 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %18)
  %23 = shl i32 %20, 3
  %24 = sub i32 %22, %23
  %25 = zext i32 %8 to i64
  %26 = add nuw nsw i64 %25, 36
  %27 = add nuw nsw i64 %25, 32
  %28 = add nuw nsw i64 %25, 16
  %29 = add i32 %7, -32
  %30 = add nuw nsw i64 %25, 28
  %31 = add nuw nsw i64 %25, 24
  %32 = add i32 %7, -16
  %33 = add i32 %7, -24
  %34 = add nuw nsw i64 %25, 40
  br label %35

35:                                               ; preds = %63, %21
  %.0219 = phi double [ 0x7FF0000000000000, %21 ], [ %.1, %63 ]
  %.0 = phi i32 [ %22, %21 ], [ %37, %63 ]
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %26, i32 noundef %15)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %27, i32 noundef %17)
  %36 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %27)
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %28, i64 noundef %36)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3AflushToMarker0x28hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3AMarker0x29(ptr noundef %0, i32 noundef %12, i32 noundef %29) #4
  %37 = add i32 %.0, -8
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %30, i32 noundef %37)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %31, i32 noundef 0)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AtoNumber_RJS0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x3E0x29(ptr noundef %0, i32 noundef %32, i32 noundef %3, i32 noundef %33)
  %38 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %31)
  %.not223 = icmp eq i32 %38, 0
  br i1 %.not223, label %43, label %39

39:                                               ; preds = %35
  %40 = zext i32 %38 to i64
  %41 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %40)
  %42 = add i32 %41, -1
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %40, i32 noundef %42)
  br label %43

43:                                               ; preds = %39, %35
  %44 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %27)
  switch i32 %44, label %45 [
    i32 0, label %70
    i32 1, label %46
  ]

45:                                               ; preds = %43
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 109639, i32 noundef 77564, i32 noundef 179, i32 noundef 90402) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

46:                                               ; preds = %43
  %47 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %34)
  %48 = icmp ugt i64 %47, -1970324836974593
  br i1 %48, label %69, label %49

49:                                               ; preds = %46
  %50 = fcmp uno double %.0219, 0.000000e+00
  br i1 %50, label %63, label %51

51:                                               ; preds = %49
  %52 = tail call double @f64_reinterpret_i64(i64 noundef %47)
  %53 = fcmp uno double %52, 0.000000e+00
  br i1 %53, label %54, label %56

54:                                               ; preds = %51
  %55 = tail call double @f64_reinterpret_i64(i64 noundef 9221120237041090560)
  br label %63

56:                                               ; preds = %51
  %57 = fcmp ule double %.0219, %52
  br i1 %57, label %58, label %62

58:                                               ; preds = %56
  %59 = tail call i64 @i64_reinterpret_f64(double noundef %.0219)
  %60 = icmp slt i64 %59, 0
  %61 = icmp sgt i64 %47, -1
  %or.cond = or i1 %61, %60
  br i1 %or.cond, label %63, label %62

62:                                               ; preds = %58, %56
  br label %63

63:                                               ; preds = %58, %49, %62, %54
  %.1 = phi double [ %.0219, %49 ], [ %55, %54 ], [ %.0219, %58 ], [ %52, %62 ]
  %.not224 = icmp eq i32 %37, %24
  br i1 %.not224, label %.loopexit, label %35

.loopexit:                                        ; preds = %63, %..loopexit_crit_edge
  %.pre227.pre-phi = phi i64 [ %.pre230, %..loopexit_crit_edge ], [ %27, %63 ]
  %.pre225.pre-phi = phi i64 [ %.pre, %..loopexit_crit_edge ], [ %26, %63 ]
  %.pre.pre-phi = phi i64 [ %.pre229, %..loopexit_crit_edge ], [ %25, %63 ]
  %.2 = phi double [ 0x7FF0000000000000, %..loopexit_crit_edge ], [ %.1, %63 ]
  %64 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %64, i32 noundef 1)
  %65 = tail call i64 @i64_reinterpret_f64(double noundef %.2)
  %66 = fcmp uno double %.2, 0.000000e+00
  %67 = select i1 %66, i64 9221120237041090560, i64 %65
  %68 = add nuw nsw i64 %64, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %68, i64 noundef %67)
  br label %72

69:                                               ; preds = %46
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 118741, i32 noundef 83341, i32 noundef 444, i32 noundef 97283) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

70:                                               ; preds = %43
  %71 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %71, i32 noundef 0)
  br label %72

72:                                               ; preds = %70, %.loopexit
  %.pre-phi228 = phi i64 [ %27, %70 ], [ %.pre227.pre-phi, %.loopexit ]
  %.pre-phi226 = phi i64 [ %26, %70 ], [ %.pre225.pre-phi, %.loopexit ]
  %.pre-phi = phi i64 [ %25, %70 ], [ %.pre.pre-phi, %.loopexit ]
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %.pre-phi226, i32 noundef %15)
  tail call void @i32_store(ptr noundef nonnull %9, i64 noundef %.pre-phi228, i32 noundef %17)
  %73 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %.pre-phi228)
  %74 = add nuw nsw i64 %.pre-phi, 8
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %74, i64 noundef %73)
  %75 = add i32 %7, -40
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3AflushToMarker0x28hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3AMarker0x29(ptr noundef %0, i32 noundef %12, i32 noundef %75) #4
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret void
}

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass