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

; 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 i32 @i32_load(ptr noundef, i64 noundef) #1

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

declare i32 @w2c_hermes_0x5F_errno_location_0(ptr noundef) #2

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

declare void @w2c_hermes_dlfree(ptr noundef, i32 noundef) #2

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

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

declare i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Ageneric_category0x280x29(ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3AopenFile0x28llvh0x3A0x3ATwine0x20const0x260x2C0x20int0x260x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3ACreationDisposition0x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3AFileAccess0x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3AOpenFlags0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #3 {
  %9 = alloca ptr, align 8
  %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 i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store i32 %2, ptr %11, align 4, !tbaa !9
  store i32 %3, ptr %12, align 4, !tbaa !9
  store i32 %4, ptr %13, align 4, !tbaa !9
  store i32 %5, ptr %14, align 4, !tbaa !9
  store i32 %6, ptr %15, align 4, !tbaa !9
  store i32 %7, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.w2c_hermes, ptr %24, i32 0, i32 3
  %26 = load i32, ptr %25, align 8, !tbaa !11
  store i32 %26, ptr %19, align 4, !tbaa !9
  store i32 160, ptr %20, align 4, !tbaa !9
  %27 = load i32, ptr %20, align 4, !tbaa !9
  %28 = load i32, ptr %19, align 4, !tbaa !9
  %29 = sub i32 %28, %27
  store i32 %29, ptr %19, align 4, !tbaa !9
  %30 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %30, ptr %18, align 4, !tbaa !9
  %31 = load i32, ptr %19, align 4, !tbaa !9
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.w2c_hermes, ptr %32, i32 0, i32 3
  store i32 %31, ptr %33, align 8, !tbaa !11
  %34 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %34, ptr %19, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  %35 = load i32, ptr %20, align 4, !tbaa !9
  %36 = load i32, ptr %19, align 4, !tbaa !9
  %37 = sub i32 %36, %35
  store i32 %37, ptr %19, align 4, !tbaa !9
  %38 = load i32, ptr %19, align 4, !tbaa !9
  switch i32 %38, label %41 [
    i32 0, label %39
    i32 1, label %40
  ]

39:                                               ; preds = %8
  br label %55

40:                                               ; preds = %8
  br label %42

41:                                               ; preds = %8
  br label %44

42:                                               ; preds = %40
  store i32 1, ptr %19, align 4, !tbaa !9
  %43 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %43, ptr %17, align 4, !tbaa !9
  br label %55

44:                                               ; preds = %41
  %45 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %45, ptr %19, align 4, !tbaa !9
  store i32 3, ptr %20, align 4, !tbaa !9
  %46 = load i32, ptr %19, align 4, !tbaa !9
  %47 = load i32, ptr %20, align 4, !tbaa !9
  %48 = icmp eq i32 %46, %47
  %49 = zext i1 %48 to i32
  store i32 %49, ptr %19, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  %50 = load i32, ptr %20, align 4, !tbaa !9
  %51 = and i32 %50, 31
  %52 = load i32, ptr %19, align 4, !tbaa !9
  %53 = shl i32 %52, %51
  store i32 %53, ptr %19, align 4, !tbaa !9
  %54 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %54, ptr %17, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %44, %42, %39
  store i32 3, ptr %19, align 4, !tbaa !9
  %56 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %56, ptr %20, align 4, !tbaa !9
  %57 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %57, ptr %21, align 4, !tbaa !9
  store i32 2, ptr %22, align 4, !tbaa !9
  %58 = load i32, ptr %22, align 4, !tbaa !9
  %59 = load i32, ptr %21, align 4, !tbaa !9
  %60 = and i32 %59, %58
  store i32 %60, ptr %21, align 4, !tbaa !9
  %61 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %61, ptr %14, align 4, !tbaa !9
  %62 = load i32, ptr %21, align 4, !tbaa !9
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %66

64:                                               ; preds = %55
  %65 = load i32, ptr %19, align 4, !tbaa !9
  br label %68

66:                                               ; preds = %55
  %67 = load i32, ptr %20, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %66, %64
  %69 = phi i32 [ %65, %64 ], [ %67, %66 ]
  store i32 %69, ptr %19, align 4, !tbaa !9
  %70 = load i32, ptr %19, align 4, !tbaa !9
  switch i32 %70, label %75 [
    i32 0, label %71
    i32 1, label %72
    i32 2, label %73
    i32 3, label %74
  ]

71:                                               ; preds = %68
  br label %82

72:                                               ; preds = %68
  br label %76

73:                                               ; preds = %68
  br label %94

74:                                               ; preds = %68
  br label %88

75:                                               ; preds = %68
  br label %94

76:                                               ; preds = %72
  %77 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %77, ptr %19, align 4, !tbaa !9
  store i32 192, ptr %20, align 4, !tbaa !9
  %78 = load i32, ptr %20, align 4, !tbaa !9
  %79 = load i32, ptr %19, align 4, !tbaa !9
  %80 = or i32 %79, %78
  store i32 %80, ptr %19, align 4, !tbaa !9
  %81 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %81, ptr %17, align 4, !tbaa !9
  br label %94

82:                                               ; preds = %71
  %83 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %83, ptr %19, align 4, !tbaa !9
  store i32 576, ptr %20, align 4, !tbaa !9
  %84 = load i32, ptr %20, align 4, !tbaa !9
  %85 = load i32, ptr %19, align 4, !tbaa !9
  %86 = or i32 %85, %84
  store i32 %86, ptr %19, align 4, !tbaa !9
  %87 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %87, ptr %17, align 4, !tbaa !9
  br label %94

88:                                               ; preds = %74
  %89 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %89, ptr %19, align 4, !tbaa !9
  store i32 64, ptr %20, align 4, !tbaa !9
  %90 = load i32, ptr %20, align 4, !tbaa !9
  %91 = load i32, ptr %19, align 4, !tbaa !9
  %92 = or i32 %91, %90
  store i32 %92, ptr %19, align 4, !tbaa !9
  %93 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %93, ptr %17, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %88, %82, %76, %75, %73
  %95 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %95, ptr %19, align 4, !tbaa !9
  store i64 549755813888, ptr %23, align 8, !tbaa !17
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.w2c_hermes, ptr %96, i32 0, i32 6
  %98 = load i32, ptr %19, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = add i64 %99, 24
  %101 = load i64, ptr %23, align 8, !tbaa !17
  call void @i64_store(ptr noundef %97, i64 noundef %100, i64 noundef %101)
  %102 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %102, ptr %19, align 4, !tbaa !9
  %103 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %103, ptr %20, align 4, !tbaa !9
  store i32 32, ptr %21, align 4, !tbaa !9
  %104 = load i32, ptr %21, align 4, !tbaa !9
  %105 = load i32, ptr %20, align 4, !tbaa !9
  %106 = add i32 %105, %104
  store i32 %106, ptr %20, align 4, !tbaa !9
  %107 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %107, ptr %13, align 4, !tbaa !9
  %108 = load ptr, ptr %9, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.w2c_hermes, ptr %108, i32 0, i32 6
  %110 = load i32, ptr %19, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = add i64 %111, 20
  %113 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %109, i64 noundef %112, i32 noundef %113)
  %114 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %114, ptr %19, align 4, !tbaa !9
  store i32 12, ptr %20, align 4, !tbaa !9
  %115 = load i32, ptr %20, align 4, !tbaa !9
  %116 = load i32, ptr %19, align 4, !tbaa !9
  %117 = add i32 %116, %115
  store i32 %117, ptr %19, align 4, !tbaa !9
  %118 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %118, ptr %20, align 4, !tbaa !9
  %119 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %119, ptr %21, align 4, !tbaa !9
  store i32 20, ptr %22, align 4, !tbaa !9
  %120 = load i32, ptr %22, align 4, !tbaa !9
  %121 = load i32, ptr %21, align 4, !tbaa !9
  %122 = add i32 %121, %120
  store i32 %122, ptr %21, align 4, !tbaa !9
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = load i32, ptr %19, align 4, !tbaa !9
  %125 = load i32, ptr %20, align 4, !tbaa !9
  %126 = load i32, ptr %21, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3ATwine0x3A0x3AtoNullTerminatedStringRef0x28llvh0x3A0x3ASmallVectorImpl0x3Cchar0x3E0x260x290x20const(ptr noundef %123, i32 noundef %124, i32 noundef %125, i32 noundef %126)
  %127 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %127, ptr %19, align 4, !tbaa !9
  %128 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %128, ptr %20, align 4, !tbaa !9
  store i32 16, ptr %21, align 4, !tbaa !9
  %129 = load i32, ptr %21, align 4, !tbaa !9
  %130 = and i32 %129, 31
  %131 = load i32, ptr %20, align 4, !tbaa !9
  %132 = shl i32 %131, %130
  store i32 %132, ptr %20, align 4, !tbaa !9
  store i32 524288, ptr %21, align 4, !tbaa !9
  %133 = load i32, ptr %21, align 4, !tbaa !9
  %134 = load i32, ptr %20, align 4, !tbaa !9
  %135 = and i32 %134, %133
  store i32 %135, ptr %20, align 4, !tbaa !9
  %136 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %136, ptr %21, align 4, !tbaa !9
  store i32 9, ptr %22, align 4, !tbaa !9
  %137 = load i32, ptr %22, align 4, !tbaa !9
  %138 = and i32 %137, 31
  %139 = load i32, ptr %21, align 4, !tbaa !9
  %140 = shl i32 %139, %138
  store i32 %140, ptr %21, align 4, !tbaa !9
  %141 = load i32, ptr %21, align 4, !tbaa !9
  %142 = load i32, ptr %20, align 4, !tbaa !9
  %143 = or i32 %142, %141
  store i32 %143, ptr %20, align 4, !tbaa !9
  store i32 524288, ptr %21, align 4, !tbaa !9
  %144 = load i32, ptr %21, align 4, !tbaa !9
  %145 = load i32, ptr %20, align 4, !tbaa !9
  %146 = xor i32 %145, %144
  store i32 %146, ptr %20, align 4, !tbaa !9
  %147 = load i32, ptr %20, align 4, !tbaa !9
  %148 = load i32, ptr %19, align 4, !tbaa !9
  %149 = or i32 %148, %147
  store i32 %149, ptr %19, align 4, !tbaa !9
  %150 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %150, ptr %15, align 4, !tbaa !9
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = call i32 @w2c_hermes_0x5F_errno_location_0(ptr noundef %151)
  store i32 %152, ptr %19, align 4, !tbaa !9
  %153 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %153, ptr %17, align 4, !tbaa !9
  br label %154

154:                                              ; preds = %203, %94
  %155 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %155, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  %156 = load ptr, ptr %9, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.w2c_hermes, ptr %156, i32 0, i32 6
  %158 = load i32, ptr %19, align 4, !tbaa !9
  %159 = zext i32 %158 to i64
  %160 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %157, i64 noundef %159, i32 noundef %160)
  %161 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %161, ptr %19, align 4, !tbaa !9
  %162 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %162, ptr %20, align 4, !tbaa !9
  %163 = load ptr, ptr %9, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.w2c_hermes, ptr %163, i32 0, i32 6
  %165 = load i32, ptr %19, align 4, !tbaa !9
  %166 = zext i32 %165 to i64
  %167 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %164, i64 noundef %166, i32 noundef %167)
  %168 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %168, ptr %19, align 4, !tbaa !9
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.w2c_hermes, ptr %169, i32 0, i32 6
  %171 = load i32, ptr %19, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = add i64 %172, 12
  %174 = call i32 @i32_load(ptr noundef %170, i64 noundef %173)
  store i32 %174, ptr %19, align 4, !tbaa !9
  %175 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %175, ptr %20, align 4, !tbaa !9
  %176 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %176, ptr %21, align 4, !tbaa !9
  %177 = load ptr, ptr %9, align 8, !tbaa !5
  %178 = load i32, ptr %19, align 4, !tbaa !9
  %179 = load i32, ptr %20, align 4, !tbaa !9
  %180 = load i32, ptr %21, align 4, !tbaa !9
  %181 = call i32 @w2c_hermes_open(ptr noundef %177, i32 noundef %178, i32 noundef %179, i32 noundef %180)
  store i32 %181, ptr %19, align 4, !tbaa !9
  %182 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %182, ptr %14, align 4, !tbaa !9
  store i32 -1, ptr %20, align 4, !tbaa !9
  %183 = load i32, ptr %19, align 4, !tbaa !9
  %184 = load i32, ptr %20, align 4, !tbaa !9
  %185 = icmp ne i32 %183, %184
  %186 = zext i1 %185 to i32
  store i32 %186, ptr %19, align 4, !tbaa !9
  %187 = load i32, ptr %19, align 4, !tbaa !9
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %190

189:                                              ; preds = %154
  br label %211

190:                                              ; preds = %154
  %191 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %191, ptr %19, align 4, !tbaa !9
  %192 = load ptr, ptr %9, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.w2c_hermes, ptr %192, i32 0, i32 6
  %194 = load i32, ptr %19, align 4, !tbaa !9
  %195 = zext i32 %194 to i64
  %196 = call i32 @i32_load(ptr noundef %193, i64 noundef %195)
  store i32 %196, ptr %19, align 4, !tbaa !9
  store i32 27, ptr %20, align 4, !tbaa !9
  %197 = load i32, ptr %19, align 4, !tbaa !9
  %198 = load i32, ptr %20, align 4, !tbaa !9
  %199 = icmp eq i32 %197, %198
  %200 = zext i1 %199 to i32
  store i32 %200, ptr %19, align 4, !tbaa !9
  %201 = load i32, ptr %19, align 4, !tbaa !9
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %203, label %204

203:                                              ; preds = %190
  br label %154

204:                                              ; preds = %190
  %205 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %205, ptr %19, align 4, !tbaa !9
  store i32 -1, ptr %20, align 4, !tbaa !9
  %206 = load ptr, ptr %9, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.w2c_hermes, ptr %206, i32 0, i32 6
  %208 = load i32, ptr %19, align 4, !tbaa !9
  %209 = zext i32 %208 to i64
  %210 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %207, i64 noundef %209, i32 noundef %210)
  br label %228

211:                                              ; preds = %189
  %212 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %212, ptr %19, align 4, !tbaa !9
  %213 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %213, ptr %20, align 4, !tbaa !9
  %214 = load ptr, ptr %9, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.w2c_hermes, ptr %214, i32 0, i32 6
  %216 = load i32, ptr %19, align 4, !tbaa !9
  %217 = zext i32 %216 to i64
  %218 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %215, i64 noundef %217, i32 noundef %218)
  %219 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %219, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  %220 = load i32, ptr %19, align 4, !tbaa !9
  %221 = load i32, ptr %20, align 4, !tbaa !9
  %222 = icmp sge i32 %220, %221
  %223 = zext i1 %222 to i32
  store i32 %223, ptr %19, align 4, !tbaa !9
  %224 = load i32, ptr %19, align 4, !tbaa !9
  %225 = icmp ne i32 %224, 0
  br i1 %225, label %226, label %227

226:                                              ; preds = %211
  br label %252

227:                                              ; preds = %211
  br label %228

228:                                              ; preds = %227, %204
  %229 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %229, ptr %19, align 4, !tbaa !9
  %230 = load ptr, ptr %9, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.w2c_hermes, ptr %230, i32 0, i32 6
  %232 = load i32, ptr %19, align 4, !tbaa !9
  %233 = zext i32 %232 to i64
  %234 = call i32 @i32_load(ptr noundef %231, i64 noundef %233)
  store i32 %234, ptr %19, align 4, !tbaa !9
  %235 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %235, ptr %17, align 4, !tbaa !9
  %236 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %236, ptr %19, align 4, !tbaa !9
  %237 = load ptr, ptr %9, align 8, !tbaa !5
  %238 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Ageneric_category0x280x29(ptr noundef %237)
  store i32 %238, ptr %20, align 4, !tbaa !9
  %239 = load ptr, ptr %9, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.w2c_hermes, ptr %239, i32 0, i32 6
  %241 = load i32, ptr %19, align 4, !tbaa !9
  %242 = zext i32 %241 to i64
  %243 = add i64 %242, 4
  %244 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %240, i64 noundef %243, i32 noundef %244)
  %245 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %245, ptr %19, align 4, !tbaa !9
  %246 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %246, ptr %20, align 4, !tbaa !9
  %247 = load ptr, ptr %9, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.w2c_hermes, ptr %247, i32 0, i32 6
  %249 = load i32, ptr %19, align 4, !tbaa !9
  %250 = zext i32 %249 to i64
  %251 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %248, i64 noundef %250, i32 noundef %251)
  br label %268

252:                                              ; preds = %226
  %253 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %253, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  %254 = load ptr, ptr %9, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.w2c_hermes, ptr %254, i32 0, i32 6
  %256 = load i32, ptr %19, align 4, !tbaa !9
  %257 = zext i32 %256 to i64
  %258 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %255, i64 noundef %257, i32 noundef %258)
  %259 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %259, ptr %19, align 4, !tbaa !9
  %260 = load ptr, ptr %9, align 8, !tbaa !5
  %261 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Asystem_category0x280x29(ptr noundef %260)
  store i32 %261, ptr %20, align 4, !tbaa !9
  %262 = load ptr, ptr %9, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.w2c_hermes, ptr %262, i32 0, i32 6
  %264 = load i32, ptr %19, align 4, !tbaa !9
  %265 = zext i32 %264 to i64
  %266 = add i64 %265, 4
  %267 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %263, i64 noundef %266, i32 noundef %267)
  br label %268

268:                                              ; preds = %252, %228
  %269 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %269, ptr %19, align 4, !tbaa !9
  %270 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %270, ptr %20, align 4, !tbaa !9
  %271 = load ptr, ptr %9, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.w2c_hermes, ptr %271, i32 0, i32 6
  %273 = load i32, ptr %20, align 4, !tbaa !9
  %274 = zext i32 %273 to i64
  %275 = add i64 %274, 20
  %276 = call i32 @i32_load(ptr noundef %272, i64 noundef %275)
  store i32 %276, ptr %20, align 4, !tbaa !9
  %277 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %277, ptr %17, align 4, !tbaa !9
  %278 = load i32, ptr %19, align 4, !tbaa !9
  %279 = load i32, ptr %20, align 4, !tbaa !9
  %280 = icmp ne i32 %278, %279
  %281 = zext i1 %280 to i32
  store i32 %281, ptr %19, align 4, !tbaa !9
  %282 = load i32, ptr %19, align 4, !tbaa !9
  %283 = icmp ne i32 %282, 0
  br i1 %283, label %284, label %288

284:                                              ; preds = %268
  %285 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %285, ptr %19, align 4, !tbaa !9
  %286 = load ptr, ptr %9, align 8, !tbaa !5
  %287 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %286, i32 noundef %287)
  br label %288

288:                                              ; preds = %284, %268
  %289 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %289, ptr %19, align 4, !tbaa !9
  store i32 160, ptr %20, align 4, !tbaa !9
  %290 = load i32, ptr %20, align 4, !tbaa !9
  %291 = load i32, ptr %19, align 4, !tbaa !9
  %292 = add i32 %291, %290
  store i32 %292, ptr %19, align 4, !tbaa !9
  %293 = load i32, ptr %19, align 4, !tbaa !9
  %294 = load ptr, ptr %9, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.w2c_hermes, ptr %294, i32 0, i32 3
  store i32 %293, ptr %295, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  ret void
}

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

declare i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Asystem_category0x280x29(ptr noundef) #2

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

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

declare i32 @w2c_hermes_0x5F_errno_location_0(ptr noundef) local_unnamed_addr #1

declare void @w2c_hermes_dlfree(ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

declare i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Ageneric_category0x280x29(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3AopenFile0x28llvh0x3A0x3ATwine0x20const0x260x2C0x20int0x260x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3ACreationDisposition0x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3AFileAccess0x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3AOpenFlags0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) local_unnamed_addr #2 {
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = load i32, ptr %9, align 8, !tbaa !5
  %11 = add i32 %10, -160
  store i32 %11, ptr %9, align 8, !tbaa !5
  switch i32 %5, label %13 [
    i32 1, label %16
    i32 2, label %12
  ]

12:                                               ; preds = %8
  br label %16

13:                                               ; preds = %8
  %14 = icmp eq i32 %5, 3
  %15 = select i1 %14, i32 2, i32 0
  br label %16

16:                                               ; preds = %8, %13, %12
  %.0 = phi i32 [ %15, %13 ], [ 1, %12 ], [ 0, %8 ]
  %17 = and i32 %6, 2
  %.not = icmp eq i32 %17, 0
  %18 = select i1 %.not, i32 %4, i32 3
  switch i32 %18, label %25 [
    i32 0, label %21
    i32 1, label %19
    i32 3, label %23
  ]

19:                                               ; preds = %16
  %20 = or disjoint i32 %.0, 192
  br label %25

21:                                               ; preds = %16
  %22 = or disjoint i32 %.0, 576
  br label %25

23:                                               ; preds = %16
  %24 = or disjoint i32 %.0, 64
  br label %25

25:                                               ; preds = %16, %23, %21, %19
  %.1 = phi i32 [ %.0, %16 ], [ %24, %23 ], [ %20, %19 ], [ %22, %21 ]
  %26 = getelementptr inbounds i8, ptr %0, i64 40
  %27 = zext i32 %11 to i64
  %28 = add nuw nsw i64 %27, 24
  tail call void @i64_store(ptr noundef nonnull %26, i64 noundef %28, i64 noundef 549755813888)
  %29 = add i32 %10, -128
  %30 = add nuw nsw i64 %27, 20
  tail call void @i32_store(ptr noundef nonnull %26, i64 noundef %30, i32 noundef %29)
  %31 = add i32 %10, -148
  %32 = add i32 %10, -140
  tail call void @w2c_hermes_llvh0x3A0x3ATwine0x3A0x3AtoNullTerminatedStringRef0x28llvh0x3A0x3ASmallVectorImpl0x3Cchar0x3E0x260x290x20const(ptr noundef nonnull %0, i32 noundef %31, i32 noundef %2, i32 noundef %32)
  %33 = shl i32 %6, 16
  %34 = and i32 %33, 524288
  %35 = shl nuw nsw i32 %17, 9
  %36 = or disjoint i32 %34, %35
  %37 = xor i32 %36, 524288
  %38 = or i32 %.1, %37
  %39 = tail call i32 @w2c_hermes_0x5F_errno_location_0(ptr noundef nonnull %0) #3
  %40 = zext i32 %39 to i64
  %41 = add nuw nsw i64 %27, 12
  br label %42

42:                                               ; preds = %45, %25
  tail call void @i32_store(ptr noundef nonnull %26, i64 noundef %40, i32 noundef 0)
  tail call void @i32_store(ptr noundef nonnull %26, i64 noundef %27, i32 noundef %7)
  %43 = tail call i32 @i32_load(ptr noundef nonnull %26, i64 noundef %41)
  %44 = tail call i32 @w2c_hermes_open(ptr noundef %0, i32 noundef %43, i32 noundef %38, i32 noundef %11)
  %.not160 = icmp eq i32 %44, -1
  br i1 %.not160, label %45, label %50

45:                                               ; preds = %42
  %46 = tail call i32 @i32_load(ptr noundef nonnull %26, i64 noundef %40)
  %47 = icmp eq i32 %46, 27
  br i1 %47, label %42, label %48

48:                                               ; preds = %45
  %49 = zext i32 %3 to i64
  tail call void @i32_store(ptr noundef nonnull %26, i64 noundef %49, i32 noundef -1)
  br label %53

50:                                               ; preds = %42
  %51 = zext i32 %3 to i64
  tail call void @i32_store(ptr noundef nonnull %26, i64 noundef %51, i32 noundef %44)
  %52 = icmp sgt i32 %44, -1
  br i1 %52, label %58, label %53

53:                                               ; preds = %50, %48
  %54 = tail call i32 @i32_load(ptr noundef nonnull %26, i64 noundef %40)
  %55 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Ageneric_category0x280x29(ptr noundef %0) #3
  %56 = zext i32 %1 to i64
  %57 = add nuw nsw i64 %56, 4
  tail call void @i32_store(ptr noundef nonnull %26, i64 noundef %57, i32 noundef %55)
  tail call void @i32_store(ptr noundef nonnull %26, i64 noundef %56, i32 noundef %54)
  br label %62

58:                                               ; preds = %50
  %59 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %26, i64 noundef %59, i32 noundef 0)
  %60 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Asystem_category0x280x29(ptr noundef %0) #3
  %61 = add nuw nsw i64 %59, 4
  tail call void @i32_store(ptr noundef nonnull %26, i64 noundef %61, i32 noundef %60)
  br label %62

62:                                               ; preds = %58, %53
  %63 = tail call i32 @i32_load(ptr noundef nonnull %26, i64 noundef %30)
  %.not161 = icmp eq i32 %29, %63
  br i1 %.not161, label %65, label %64

64:                                               ; preds = %62
  tail call void @w2c_hermes_dlfree(ptr noundef %0, i32 noundef %63) #3
  br label %65

65:                                               ; preds = %64, %62
  store i32 %10, ptr %9, align 8, !tbaa !5
  ret void
}

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

declare i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Asystem_category0x280x29(ptr noundef) local_unnamed_addr #1

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,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass