; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_opt_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: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 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: inlinehint nounwind uwtable
declare hidden i64 @i64_load(ptr noundef, i64 noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AstrictEqualityTest0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x2C0x20hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %0, i64 noundef %1, i64 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, 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 i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store i64 %2, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.w2c_hermes, ptr %18, i32 0, i32 3
  %20 = load i32, ptr %19, align 8, !tbaa !13
  store i32 %20, ptr %10, align 4, !tbaa !11
  store i32 32, ptr %11, align 4, !tbaa !11
  %21 = load i32, ptr %11, align 4, !tbaa !11
  %22 = load i32, ptr %10, align 4, !tbaa !11
  %23 = sub i32 %22, %21
  store i32 %23, ptr %10, align 4, !tbaa !11
  %24 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %24, ptr %7, align 4, !tbaa !11
  %25 = load i32, ptr %10, align 4, !tbaa !11
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.w2c_hermes, ptr %26, i32 0, i32 3
  store i32 %25, ptr %27, align 8, !tbaa !13
  %28 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %28, ptr %13, align 8, !tbaa !9
  store i64 -1970324836974593, ptr %14, align 8, !tbaa !9
  %29 = load i64, ptr %13, align 8, !tbaa !9
  %30 = load i64, ptr %14, align 8, !tbaa !9
  %31 = icmp ule i64 %29, %30
  %32 = zext i1 %31 to i32
  store i32 %32, ptr %10, align 4, !tbaa !11
  %33 = load i32, ptr %10, align 4, !tbaa !11
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %56

35:                                               ; preds = %3
  %36 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %36, ptr %13, align 8, !tbaa !9
  store i64 -1970324836974593, ptr %14, align 8, !tbaa !9
  %37 = load i64, ptr %13, align 8, !tbaa !9
  %38 = load i64, ptr %14, align 8, !tbaa !9
  %39 = icmp ugt i64 %37, %38
  %40 = zext i1 %39 to i32
  store i32 %40, ptr %10, align 4, !tbaa !11
  %41 = load i32, ptr %10, align 4, !tbaa !11
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %44

43:                                               ; preds = %35
  br label %212

44:                                               ; preds = %35
  %45 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %45, ptr %13, align 8, !tbaa !9
  %46 = load i64, ptr %13, align 8, !tbaa !9
  %47 = call double @f64_reinterpret_i64(i64 noundef %46)
  store double %47, ptr %16, align 8, !tbaa !18
  %48 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %48, ptr %14, align 8, !tbaa !9
  %49 = load i64, ptr %14, align 8, !tbaa !9
  %50 = call double @f64_reinterpret_i64(i64 noundef %49)
  store double %50, ptr %17, align 8, !tbaa !18
  %51 = load double, ptr %16, align 8, !tbaa !18
  %52 = load double, ptr %17, align 8, !tbaa !18
  %53 = fcmp oeq double %51, %52
  %54 = zext i1 %53 to i32
  store i32 %54, ptr %10, align 4, !tbaa !11
  %55 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %55, ptr %8, align 4, !tbaa !11
  br label %212

56:                                               ; preds = %3
  store i32 1, ptr %10, align 4, !tbaa !11
  %57 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %57, ptr %8, align 4, !tbaa !11
  %58 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %58, ptr %13, align 8, !tbaa !9
  %59 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %59, ptr %14, align 8, !tbaa !9
  %60 = load i64, ptr %13, align 8, !tbaa !9
  %61 = load i64, ptr %14, align 8, !tbaa !9
  %62 = icmp eq i64 %60, %61
  %63 = zext i1 %62 to i32
  store i32 %63, ptr %10, align 4, !tbaa !11
  %64 = load i32, ptr %10, align 4, !tbaa !11
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %56
  br label %212

67:                                               ; preds = %56
  store i32 0, ptr %10, align 4, !tbaa !11
  %68 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %68, ptr %8, align 4, !tbaa !11
  %69 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %69, ptr %13, align 8, !tbaa !9
  store i64 48, ptr %14, align 8, !tbaa !9
  %70 = load i64, ptr %13, align 8, !tbaa !9
  %71 = load i64, ptr %14, align 8, !tbaa !9
  %72 = and i64 %71, 63
  %73 = ashr i64 %70, %72
  store i64 %73, ptr %13, align 8, !tbaa !9
  %74 = load i64, ptr %13, align 8, !tbaa !9
  %75 = trunc i64 %74 to i32
  store i32 %75, ptr %10, align 4, !tbaa !11
  %76 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %76, ptr %9, align 4, !tbaa !11
  %77 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %77, ptr %14, align 8, !tbaa !9
  store i64 48, ptr %15, align 8, !tbaa !9
  %78 = load i64, ptr %14, align 8, !tbaa !9
  %79 = load i64, ptr %15, align 8, !tbaa !9
  %80 = and i64 %79, 63
  %81 = ashr i64 %78, %80
  store i64 %81, ptr %14, align 8, !tbaa !9
  %82 = load i64, ptr %14, align 8, !tbaa !9
  %83 = trunc i64 %82 to i32
  store i32 %83, ptr %11, align 4, !tbaa !11
  %84 = load i32, ptr %10, align 4, !tbaa !11
  %85 = load i32, ptr %11, align 4, !tbaa !11
  %86 = icmp ne i32 %84, %85
  %87 = zext i1 %86 to i32
  store i32 %87, ptr %10, align 4, !tbaa !11
  %88 = load i32, ptr %10, align 4, !tbaa !11
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %90, label %91

90:                                               ; preds = %67
  br label %212

91:                                               ; preds = %67
  %92 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %92, ptr %10, align 4, !tbaa !11
  store i32 3, ptr %11, align 4, !tbaa !11
  %93 = load i32, ptr %11, align 4, !tbaa !11
  %94 = load i32, ptr %10, align 4, !tbaa !11
  %95 = add i32 %94, %93
  store i32 %95, ptr %10, align 4, !tbaa !11
  %96 = load i32, ptr %10, align 4, !tbaa !11
  switch i32 %96, label %99 [
    i32 0, label %97
    i32 1, label %98
  ]

97:                                               ; preds = %91
  br label %100

98:                                               ; preds = %91
  br label %112

99:                                               ; preds = %91
  br label %212

100:                                              ; preds = %97
  %101 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %101, ptr %13, align 8, !tbaa !9
  %102 = load i64, ptr %13, align 8, !tbaa !9
  %103 = trunc i64 %102 to i32
  store i32 %103, ptr %10, align 4, !tbaa !11
  %104 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %104, ptr %14, align 8, !tbaa !9
  %105 = load i64, ptr %14, align 8, !tbaa !9
  %106 = trunc i64 %105 to i32
  store i32 %106, ptr %11, align 4, !tbaa !11
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = load i32, ptr %10, align 4, !tbaa !11
  %109 = load i32, ptr %11, align 4, !tbaa !11
  %110 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3A0x3Aequals0x28hermes0x3A0x3Avm0x3A0x3AStringPrimitive0x20const0x2A0x290x20const(ptr noundef %107, i32 noundef %108, i32 noundef %109)
  store i32 %110, ptr %10, align 4, !tbaa !11
  %111 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %111, ptr %8, align 4, !tbaa !11
  br label %212

112:                                              ; preds = %98
  %113 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %113, ptr %10, align 4, !tbaa !11
  %114 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %114, ptr %14, align 8, !tbaa !9
  %115 = load i64, ptr %14, align 8, !tbaa !9
  %116 = trunc i64 %115 to i32
  store i32 %116, ptr %11, align 4, !tbaa !11
  %117 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %117, ptr %8, align 4, !tbaa !11
  store i32 8, ptr %12, align 4, !tbaa !11
  %118 = load i32, ptr %12, align 4, !tbaa !11
  %119 = load i32, ptr %11, align 4, !tbaa !11
  %120 = add i32 %119, %118
  store i32 %120, ptr %11, align 4, !tbaa !11
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.w2c_hermes, ptr %121, i32 0, i32 6
  %123 = load i32, ptr %10, align 4, !tbaa !11
  %124 = zext i32 %123 to i64
  %125 = add i64 %124, 24
  %126 = load i32, ptr %11, align 4, !tbaa !11
  call void @i32_store(ptr noundef %122, i64 noundef %125, i32 noundef %126)
  %127 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %127, ptr %10, align 4, !tbaa !11
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.w2c_hermes, ptr %128, i32 0, i32 6
  %130 = load i32, ptr %10, align 4, !tbaa !11
  %131 = zext i32 %130 to i64
  %132 = add i64 %131, 4
  %133 = call i32 @i32_load(ptr noundef %129, i64 noundef %132)
  store i32 %133, ptr %10, align 4, !tbaa !11
  %134 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %134, ptr %8, align 4, !tbaa !11
  %135 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %135, ptr %10, align 4, !tbaa !11
  %136 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %136, ptr %14, align 8, !tbaa !9
  %137 = load i64, ptr %14, align 8, !tbaa !9
  %138 = trunc i64 %137 to i32
  store i32 %138, ptr %11, align 4, !tbaa !11
  %139 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %139, ptr %9, align 4, !tbaa !11
  store i32 8, ptr %12, align 4, !tbaa !11
  %140 = load i32, ptr %12, align 4, !tbaa !11
  %141 = load i32, ptr %11, align 4, !tbaa !11
  %142 = add i32 %141, %140
  store i32 %142, ptr %11, align 4, !tbaa !11
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.w2c_hermes, ptr %143, i32 0, i32 6
  %145 = load i32, ptr %10, align 4, !tbaa !11
  %146 = zext i32 %145 to i64
  %147 = add i64 %146, 16
  %148 = load i32, ptr %11, align 4, !tbaa !11
  call void @i32_store(ptr noundef %144, i64 noundef %147, i32 noundef %148)
  %149 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %149, ptr %10, align 4, !tbaa !11
  %150 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %150, ptr %11, align 4, !tbaa !11
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.w2c_hermes, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %10, align 4, !tbaa !11
  %154 = zext i32 %153 to i64
  %155 = add i64 %154, 28
  %156 = load i32, ptr %11, align 4, !tbaa !11
  call void @i32_store(ptr noundef %152, i64 noundef %155, i32 noundef %156)
  %157 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %157, ptr %10, align 4, !tbaa !11
  %158 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %158, ptr %11, align 4, !tbaa !11
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.w2c_hermes, ptr %159, i32 0, i32 6
  %161 = load i32, ptr %11, align 4, !tbaa !11
  %162 = zext i32 %161 to i64
  %163 = add i64 %162, 4
  %164 = call i32 @i32_load(ptr noundef %160, i64 noundef %163)
  store i32 %164, ptr %11, align 4, !tbaa !11
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.w2c_hermes, ptr %165, i32 0, i32 6
  %167 = load i32, ptr %10, align 4, !tbaa !11
  %168 = zext i32 %167 to i64
  %169 = add i64 %168, 20
  %170 = load i32, ptr %11, align 4, !tbaa !11
  call void @i32_store(ptr noundef %166, i64 noundef %169, i32 noundef %170)
  %171 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %171, ptr %10, align 4, !tbaa !11
  %172 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %172, ptr %11, align 4, !tbaa !11
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.w2c_hermes, ptr %173, i32 0, i32 6
  %175 = load i32, ptr %11, align 4, !tbaa !11
  %176 = zext i32 %175 to i64
  %177 = add i64 %176, 24
  %178 = call i64 @i64_load(ptr noundef %174, i64 noundef %177)
  store i64 %178, ptr %14, align 8, !tbaa !9
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.w2c_hermes, ptr %179, i32 0, i32 6
  %181 = load i32, ptr %10, align 4, !tbaa !11
  %182 = zext i32 %181 to i64
  %183 = add i64 %182, 8
  %184 = load i64, ptr %14, align 8, !tbaa !9
  call void @i64_store(ptr noundef %180, i64 noundef %183, i64 noundef %184)
  %185 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %185, ptr %10, align 4, !tbaa !11
  %186 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %186, ptr %11, align 4, !tbaa !11
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.w2c_hermes, ptr %187, i32 0, i32 6
  %189 = load i32, ptr %11, align 4, !tbaa !11
  %190 = zext i32 %189 to i64
  %191 = add i64 %190, 16
  %192 = call i64 @i64_load(ptr noundef %188, i64 noundef %191)
  store i64 %192, ptr %14, align 8, !tbaa !9
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.w2c_hermes, ptr %193, i32 0, i32 6
  %195 = load i32, ptr %10, align 4, !tbaa !11
  %196 = zext i32 %195 to i64
  %197 = load i64, ptr %14, align 8, !tbaa !9
  call void @i64_store(ptr noundef %194, i64 noundef %196, i64 noundef %197)
  %198 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %198, ptr %10, align 4, !tbaa !11
  store i32 8, ptr %11, align 4, !tbaa !11
  %199 = load i32, ptr %11, align 4, !tbaa !11
  %200 = load i32, ptr %10, align 4, !tbaa !11
  %201 = add i32 %200, %199
  store i32 %201, ptr %10, align 4, !tbaa !11
  %202 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %202, ptr %11, align 4, !tbaa !11
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = load i32, ptr %10, align 4, !tbaa !11
  %205 = load i32, ptr %11, align 4, !tbaa !11
  %206 = call i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3Acompare0x28hermes0x3A0x3Abigint0x3A0x3AImmutableBigIntRef0x2C0x20hermes0x3A0x3Abigint0x3A0x3AImmutableBigIntRef0x29(ptr noundef %203, i32 noundef %204, i32 noundef %205)
  store i32 %206, ptr %10, align 4, !tbaa !11
  %207 = load i32, ptr %10, align 4, !tbaa !11
  %208 = icmp ne i32 %207, 0
  %209 = xor i1 %208, true
  %210 = zext i1 %209 to i32
  store i32 %210, ptr %10, align 4, !tbaa !11
  %211 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %211, ptr %8, align 4, !tbaa !11
  br label %212

212:                                              ; preds = %112, %100, %99, %90, %66, %44, %43
  %213 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %213, ptr %10, align 4, !tbaa !11
  store i32 32, ptr %11, align 4, !tbaa !11
  %214 = load i32, ptr %11, align 4, !tbaa !11
  %215 = load i32, ptr %10, align 4, !tbaa !11
  %216 = add i32 %215, %214
  store i32 %216, ptr %10, align 4, !tbaa !11
  %217 = load i32, ptr %10, align 4, !tbaa !11
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.w2c_hermes, ptr %218, i32 0, i32 3
  store i32 %217, ptr %219, align 8, !tbaa !13
  %220 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %220, ptr %10, align 4, !tbaa !11
  %221 = load i32, ptr %10, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret i32 %221
}

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

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

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 = { 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 = { "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 }

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !15, i64 40, !17, i64 80}
!15 = !{!"", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !16, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"", !6, i64 0, !12, i64 8, !12, i64 12}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AstrictEqualityTest0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x2C0x20hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %0, i64 noundef %1, i64 noundef %2) local_unnamed_addr #1 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add i32 %5, -32
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = icmp ult i64 %1, -1970324836974592
  br i1 %7, label %8, label %15

8:                                                ; preds = %3
  %9 = icmp ugt i64 %2, -1970324836974593
  br i1 %9, label %49, label %10

10:                                               ; preds = %8
  %11 = tail call double @f64_reinterpret_i64(i64 noundef %1)
  %12 = tail call double @f64_reinterpret_i64(i64 noundef %2)
  %13 = fcmp oeq double %11, %12
  %14 = zext i1 %13 to i32
  br label %49

15:                                               ; preds = %3
  %16 = icmp eq i64 %1, %2
  br i1 %16, label %49, label %17

17:                                               ; preds = %15
  %18 = ashr i64 %1, 48
  %19 = ashr i64 %2, 48
  %.not = icmp eq i64 %18, %19
  br i1 %.not, label %20, label %49

20:                                               ; preds = %17
  %21 = trunc nsw i64 %18 to i32
  switch i32 %21, label %49 [
    i32 -3, label %22
    i32 -2, label %26
  ]

22:                                               ; preds = %20
  %23 = trunc i64 %1 to i32
  %24 = trunc i64 %2 to i32
  %25 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3A0x3Aequals0x28hermes0x3A0x3Avm0x3A0x3AStringPrimitive0x20const0x2A0x290x20const(ptr noundef nonnull %0, i32 noundef %23, i32 noundef %24) #3
  br label %49

26:                                               ; preds = %20
  %27 = trunc i64 %1 to i32
  %28 = add i32 %27, 8
  %29 = getelementptr inbounds i8, ptr %0, i64 40
  %30 = zext i32 %6 to i64
  %31 = add nuw nsw i64 %30, 24
  tail call void @i32_store(ptr noundef nonnull %29, i64 noundef %31, i32 noundef %28)
  %32 = and i64 %1, 4294967295
  %33 = add nuw nsw i64 %32, 4
  %34 = tail call i32 @i32_load(ptr noundef nonnull %29, i64 noundef %33)
  %35 = trunc i64 %2 to i32
  %36 = add i32 %35, 8
  %37 = add nuw nsw i64 %30, 16
  tail call void @i32_store(ptr noundef nonnull %29, i64 noundef %37, i32 noundef %36)
  %38 = add nuw nsw i64 %30, 28
  tail call void @i32_store(ptr noundef nonnull %29, i64 noundef %38, i32 noundef %34)
  %39 = and i64 %2, 4294967295
  %40 = add nuw nsw i64 %39, 4
  %41 = tail call i32 @i32_load(ptr noundef nonnull %29, i64 noundef %40)
  %42 = add nuw nsw i64 %30, 20
  tail call void @i32_store(ptr noundef nonnull %29, i64 noundef %42, i32 noundef %41)
  %43 = tail call i64 @i64_load(ptr noundef nonnull %29, i64 noundef %31)
  %44 = add nuw nsw i64 %30, 8
  tail call void @i64_store(ptr noundef nonnull %29, i64 noundef %44, i64 noundef %43)
  %45 = tail call i64 @i64_load(ptr noundef nonnull %29, i64 noundef %37)
  tail call void @i64_store(ptr noundef nonnull %29, i64 noundef %30, i64 noundef %45)
  %46 = add i32 %5, -24
  %47 = tail call i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3Acompare0x28hermes0x3A0x3Abigint0x3A0x3AImmutableBigIntRef0x2C0x20hermes0x3A0x3Abigint0x3A0x3AImmutableBigIntRef0x29(ptr noundef nonnull %0, i32 noundef %46, i32 noundef %6) #3
  %.not119 = icmp eq i32 %47, 0
  %48 = zext i1 %.not119 to i32
  br label %49

49:                                               ; preds = %20, %17, %15, %8, %26, %22, %10
  %.0 = phi i32 [ 0, %8 ], [ %14, %10 ], [ 1, %15 ], [ 0, %17 ], [ 0, %20 ], [ %48, %26 ], [ %25, %22 ]
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret i32 %.0
}

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

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

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 = { 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 = { "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 }

!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