; 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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AisSameValue0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x2C0x20hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %0, i64 noundef %1, i64 noundef %2) #3 {
  %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 i64, 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
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.w2c_hermes, ptr %17, i32 0, i32 3
  %19 = load i32, ptr %18, align 8, !tbaa !13
  store i32 %19, ptr %10, align 4, !tbaa !11
  store i32 32, ptr %11, align 4, !tbaa !11
  %20 = load i32, ptr %11, align 4, !tbaa !11
  %21 = load i32, ptr %10, align 4, !tbaa !11
  %22 = sub i32 %21, %20
  store i32 %22, ptr %10, align 4, !tbaa !11
  %23 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %23, ptr %7, align 4, !tbaa !11
  %24 = load i32, ptr %10, align 4, !tbaa !11
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.w2c_hermes, ptr %25, i32 0, i32 3
  store i32 %24, ptr %26, align 8, !tbaa !13
  %27 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %27, ptr %13, align 8, !tbaa !9
  store i64 9223372036854775807, ptr %14, align 8, !tbaa !9
  %28 = load i64, ptr %14, align 8, !tbaa !9
  %29 = load i64, ptr %13, align 8, !tbaa !9
  %30 = and i64 %29, %28
  store i64 %30, ptr %13, align 8, !tbaa !9
  store i64 9221120237041090560, ptr %14, align 8, !tbaa !9
  %31 = load i64, ptr %13, align 8, !tbaa !9
  %32 = load i64, ptr %14, align 8, !tbaa !9
  %33 = icmp eq i64 %31, %32
  %34 = zext i1 %33 to i32
  store i32 %34, ptr %10, align 4, !tbaa !11
  %35 = load i32, ptr %10, align 4, !tbaa !11
  %36 = icmp ne i32 %35, 0
  br i1 %36, label %37, label %50

37:                                               ; preds = %3
  store i32 1, ptr %10, align 4, !tbaa !11
  %38 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %38, ptr %14, align 8, !tbaa !9
  store i64 9223372036854775807, ptr %15, align 8, !tbaa !9
  %39 = load i64, ptr %15, align 8, !tbaa !9
  %40 = load i64, ptr %14, align 8, !tbaa !9
  %41 = and i64 %40, %39
  store i64 %41, ptr %14, align 8, !tbaa !9
  store i64 9221120237041090560, ptr %15, align 8, !tbaa !9
  %42 = load i64, ptr %14, align 8, !tbaa !9
  %43 = load i64, ptr %15, align 8, !tbaa !9
  %44 = icmp eq i64 %42, %43
  %45 = zext i1 %44 to i32
  store i32 %45, ptr %11, align 4, !tbaa !11
  %46 = load i32, ptr %11, align 4, !tbaa !11
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %49

48:                                               ; preds = %37
  br label %199

49:                                               ; preds = %37
  br label %50

50:                                               ; preds = %49, %3
  store i32 0, ptr %10, align 4, !tbaa !11
  %51 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %51, ptr %14, align 8, !tbaa !9
  store i64 48, ptr %15, align 8, !tbaa !9
  %52 = load i64, ptr %14, align 8, !tbaa !9
  %53 = load i64, ptr %15, align 8, !tbaa !9
  %54 = and i64 %53, 63
  %55 = ashr i64 %52, %54
  store i64 %55, ptr %14, align 8, !tbaa !9
  %56 = load i64, ptr %14, align 8, !tbaa !9
  %57 = trunc i64 %56 to i32
  store i32 %57, ptr %11, align 4, !tbaa !11
  %58 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %58, ptr %9, align 4, !tbaa !11
  %59 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %59, ptr %15, align 8, !tbaa !9
  store i64 48, ptr %16, align 8, !tbaa !9
  %60 = load i64, ptr %15, align 8, !tbaa !9
  %61 = load i64, ptr %16, align 8, !tbaa !9
  %62 = and i64 %61, 63
  %63 = ashr i64 %60, %62
  store i64 %63, ptr %15, align 8, !tbaa !9
  %64 = load i64, ptr %15, align 8, !tbaa !9
  %65 = trunc i64 %64 to i32
  store i32 %65, ptr %12, align 4, !tbaa !11
  %66 = load i32, ptr %11, align 4, !tbaa !11
  %67 = load i32, ptr %12, align 4, !tbaa !11
  %68 = icmp ne i32 %66, %67
  %69 = zext i1 %68 to i32
  store i32 %69, ptr %11, align 4, !tbaa !11
  %70 = load i32, ptr %11, align 4, !tbaa !11
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %50
  br label %199

73:                                               ; preds = %50
  %74 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %74, ptr %10, align 4, !tbaa !11
  store i32 3, ptr %11, align 4, !tbaa !11
  %75 = load i32, ptr %11, align 4, !tbaa !11
  %76 = load i32, ptr %10, align 4, !tbaa !11
  %77 = add i32 %76, %75
  store i32 %77, ptr %10, align 4, !tbaa !11
  %78 = load i32, ptr %10, align 4, !tbaa !11
  switch i32 %78, label %81 [
    i32 0, label %79
    i32 1, label %80
  ]

79:                                               ; preds = %73
  br label %82

80:                                               ; preds = %73
  br label %93

81:                                               ; preds = %73
  br label %192

82:                                               ; preds = %79
  %83 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %83, ptr %13, align 8, !tbaa !9
  %84 = load i64, ptr %13, align 8, !tbaa !9
  %85 = trunc i64 %84 to i32
  store i32 %85, ptr %10, align 4, !tbaa !11
  %86 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %86, ptr %14, align 8, !tbaa !9
  %87 = load i64, ptr %14, align 8, !tbaa !9
  %88 = trunc i64 %87 to i32
  store i32 %88, ptr %11, align 4, !tbaa !11
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = load i32, ptr %10, align 4, !tbaa !11
  %91 = load i32, ptr %11, align 4, !tbaa !11
  %92 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3A0x3Aequals0x28hermes0x3A0x3Avm0x3A0x3AStringPrimitive0x20const0x2A0x290x20const(ptr noundef %89, i32 noundef %90, i32 noundef %91)
  store i32 %92, ptr %10, align 4, !tbaa !11
  br label %199

93:                                               ; preds = %80
  %94 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %94, ptr %10, align 4, !tbaa !11
  %95 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %95, ptr %14, align 8, !tbaa !9
  %96 = load i64, ptr %14, align 8, !tbaa !9
  %97 = trunc i64 %96 to i32
  store i32 %97, ptr %11, align 4, !tbaa !11
  %98 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %98, ptr %8, align 4, !tbaa !11
  store i32 8, ptr %12, align 4, !tbaa !11
  %99 = load i32, ptr %12, align 4, !tbaa !11
  %100 = load i32, ptr %11, align 4, !tbaa !11
  %101 = add i32 %100, %99
  store i32 %101, ptr %11, align 4, !tbaa !11
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.w2c_hermes, ptr %102, i32 0, i32 6
  %104 = load i32, ptr %10, align 4, !tbaa !11
  %105 = zext i32 %104 to i64
  %106 = add i64 %105, 24
  %107 = load i32, ptr %11, align 4, !tbaa !11
  call void @i32_store(ptr noundef %103, i64 noundef %106, i32 noundef %107)
  %108 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %108, ptr %10, align 4, !tbaa !11
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.w2c_hermes, ptr %109, i32 0, i32 6
  %111 = load i32, ptr %10, align 4, !tbaa !11
  %112 = zext i32 %111 to i64
  %113 = add i64 %112, 4
  %114 = call i32 @i32_load(ptr noundef %110, i64 noundef %113)
  store i32 %114, ptr %10, align 4, !tbaa !11
  %115 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %115, ptr %8, align 4, !tbaa !11
  %116 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %116, ptr %10, align 4, !tbaa !11
  %117 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %117, ptr %14, align 8, !tbaa !9
  %118 = load i64, ptr %14, align 8, !tbaa !9
  %119 = trunc i64 %118 to i32
  store i32 %119, ptr %11, align 4, !tbaa !11
  %120 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %120, ptr %9, align 4, !tbaa !11
  store i32 8, ptr %12, align 4, !tbaa !11
  %121 = load i32, ptr %12, align 4, !tbaa !11
  %122 = load i32, ptr %11, align 4, !tbaa !11
  %123 = add i32 %122, %121
  store i32 %123, ptr %11, align 4, !tbaa !11
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %10, align 4, !tbaa !11
  %127 = zext i32 %126 to i64
  %128 = add i64 %127, 16
  %129 = load i32, ptr %11, align 4, !tbaa !11
  call void @i32_store(ptr noundef %125, i64 noundef %128, i32 noundef %129)
  %130 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %130, ptr %10, align 4, !tbaa !11
  %131 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %131, ptr %11, align 4, !tbaa !11
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.w2c_hermes, ptr %132, i32 0, i32 6
  %134 = load i32, ptr %10, align 4, !tbaa !11
  %135 = zext i32 %134 to i64
  %136 = add i64 %135, 28
  %137 = load i32, ptr %11, align 4, !tbaa !11
  call void @i32_store(ptr noundef %133, i64 noundef %136, i32 noundef %137)
  %138 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %138, ptr %10, align 4, !tbaa !11
  %139 = load i32, ptr %9, align 4, !tbaa !11
  store i32 %139, ptr %11, align 4, !tbaa !11
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.w2c_hermes, ptr %140, i32 0, i32 6
  %142 = load i32, ptr %11, align 4, !tbaa !11
  %143 = zext i32 %142 to i64
  %144 = add i64 %143, 4
  %145 = call i32 @i32_load(ptr noundef %141, i64 noundef %144)
  store i32 %145, ptr %11, align 4, !tbaa !11
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.w2c_hermes, ptr %146, i32 0, i32 6
  %148 = load i32, ptr %10, align 4, !tbaa !11
  %149 = zext i32 %148 to i64
  %150 = add i64 %149, 20
  %151 = load i32, ptr %11, align 4, !tbaa !11
  call void @i32_store(ptr noundef %147, i64 noundef %150, i32 noundef %151)
  %152 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %152, ptr %10, align 4, !tbaa !11
  %153 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %153, ptr %11, align 4, !tbaa !11
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.w2c_hermes, ptr %154, i32 0, i32 6
  %156 = load i32, ptr %11, align 4, !tbaa !11
  %157 = zext i32 %156 to i64
  %158 = add i64 %157, 24
  %159 = call i64 @i64_load(ptr noundef %155, i64 noundef %158)
  store i64 %159, ptr %14, align 8, !tbaa !9
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.w2c_hermes, ptr %160, i32 0, i32 6
  %162 = load i32, ptr %10, align 4, !tbaa !11
  %163 = zext i32 %162 to i64
  %164 = add i64 %163, 8
  %165 = load i64, ptr %14, align 8, !tbaa !9
  call void @i64_store(ptr noundef %161, i64 noundef %164, i64 noundef %165)
  %166 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %166, ptr %10, align 4, !tbaa !11
  %167 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %167, ptr %11, align 4, !tbaa !11
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.w2c_hermes, ptr %168, i32 0, i32 6
  %170 = load i32, ptr %11, align 4, !tbaa !11
  %171 = zext i32 %170 to i64
  %172 = add i64 %171, 16
  %173 = call i64 @i64_load(ptr noundef %169, i64 noundef %172)
  store i64 %173, ptr %14, align 8, !tbaa !9
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.w2c_hermes, ptr %174, i32 0, i32 6
  %176 = load i32, ptr %10, align 4, !tbaa !11
  %177 = zext i32 %176 to i64
  %178 = load i64, ptr %14, align 8, !tbaa !9
  call void @i64_store(ptr noundef %175, i64 noundef %177, i64 noundef %178)
  %179 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %179, ptr %10, align 4, !tbaa !11
  store i32 8, ptr %11, align 4, !tbaa !11
  %180 = load i32, ptr %11, align 4, !tbaa !11
  %181 = load i32, ptr %10, align 4, !tbaa !11
  %182 = add i32 %181, %180
  store i32 %182, ptr %10, align 4, !tbaa !11
  %183 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %183, ptr %11, align 4, !tbaa !11
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = load i32, ptr %10, align 4, !tbaa !11
  %186 = load i32, ptr %11, align 4, !tbaa !11
  %187 = call i32 @w2c_hermes_hermes0x3A0x3Abigint0x3A0x3Acompare0x28hermes0x3A0x3Abigint0x3A0x3AImmutableBigIntRef0x2C0x20hermes0x3A0x3Abigint0x3A0x3AImmutableBigIntRef0x29(ptr noundef %184, i32 noundef %185, i32 noundef %186)
  store i32 %187, ptr %10, align 4, !tbaa !11
  %188 = load i32, ptr %10, align 4, !tbaa !11
  %189 = icmp ne i32 %188, 0
  %190 = xor i1 %189, true
  %191 = zext i1 %190 to i32
  store i32 %191, ptr %10, align 4, !tbaa !11
  br label %199

192:                                              ; preds = %81
  %193 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %193, ptr %13, align 8, !tbaa !9
  %194 = load i64, ptr %6, align 8, !tbaa !9
  store i64 %194, ptr %14, align 8, !tbaa !9
  %195 = load i64, ptr %13, align 8, !tbaa !9
  %196 = load i64, ptr %14, align 8, !tbaa !9
  %197 = icmp eq i64 %195, %196
  %198 = zext i1 %197 to i32
  store i32 %198, ptr %10, align 4, !tbaa !11
  br label %199

199:                                              ; preds = %192, %93, %82, %72, %48
  %200 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %200, ptr %8, align 4, !tbaa !11
  %201 = load i32, ptr %7, align 4, !tbaa !11
  store i32 %201, ptr %10, align 4, !tbaa !11
  store i32 32, ptr %11, align 4, !tbaa !11
  %202 = load i32, ptr %11, align 4, !tbaa !11
  %203 = load i32, ptr %10, align 4, !tbaa !11
  %204 = add i32 %203, %202
  store i32 %204, ptr %10, align 4, !tbaa !11
  %205 = load i32, ptr %10, align 4, !tbaa !11
  %206 = load ptr, ptr %4, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.w2c_hermes, ptr %206, i32 0, i32 3
  store i32 %205, ptr %207, align 8, !tbaa !13
  %208 = load i32, ptr %8, align 4, !tbaa !11
  store i32 %208, ptr %10, align 4, !tbaa !11
  %209 = load i32, ptr %10, align 4, !tbaa !11
  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 %209
}

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

!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}


; 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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AisSameValue0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x2C0x20hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %0, i64 noundef %1, i64 noundef %2) local_unnamed_addr #2 {
  %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 = and i64 %1, 9223372036854775807
  %8 = icmp eq i64 %7, 9221120237041090560
  %9 = and i64 %2, 9223372036854775807
  %10 = icmp eq i64 %9, 9221120237041090560
  %or.cond = and i1 %8, %10
  br i1 %or.cond, label %46, label %11

11:                                               ; preds = %3
  %12 = ashr i64 %1, 48
  %13 = ashr i64 %2, 48
  %.not = icmp eq i64 %12, %13
  br i1 %.not, label %14, label %46

14:                                               ; preds = %11
  %15 = trunc nsw i64 %12 to i32
  switch i32 %15, label %43 [
    i32 -3, label %16
    i32 -2, label %20
  ]

16:                                               ; preds = %14
  %17 = trunc i64 %1 to i32
  %18 = trunc i64 %2 to i32
  %19 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3A0x3Aequals0x28hermes0x3A0x3Avm0x3A0x3AStringPrimitive0x20const0x2A0x290x20const(ptr noundef nonnull %0, i32 noundef %17, i32 noundef %18) #3
  br label %46

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

43:                                               ; preds = %14
  %44 = icmp eq i64 %1, %2
  %45 = zext i1 %44 to i32
  br label %46

46:                                               ; preds = %3, %11, %43, %20, %16
  %.0 = phi i32 [ 0, %11 ], [ %45, %43 ], [ %42, %20 ], [ %19, %16 ], [ 1, %3 ]
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret i32 %.0
}

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