; 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

; 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

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

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

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

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

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

declare i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Asystem_category0x280x29(ptr noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_llvh0x3A0x3Araw_fd_ostream0x3A0x3Araw_fd_ostream0x28llvh0x3A0x3AStringRef0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aerror_code0x260x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3ACreationDisposition0x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3AFileAccess0x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3AOpenFlags0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6) #4 {
  %8 = alloca ptr, align 8
  %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 i64, align 8
  %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 i32, align 4
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store i32 %6, 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 8, ptr %16) #5
  store i64 0, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  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 8, 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
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.w2c_hermes, ptr %27, i32 0, i32 3
  %29 = load i32, ptr %28, align 8, !tbaa !13
  store i32 %29, ptr %17, align 4, !tbaa !9
  store i32 48, ptr %18, align 4, !tbaa !9
  %30 = load i32, ptr %18, align 4, !tbaa !9
  %31 = load i32, ptr %17, align 4, !tbaa !9
  %32 = sub i32 %31, %30
  store i32 %32, ptr %17, align 4, !tbaa !9
  %33 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %33, ptr %15, align 4, !tbaa !9
  %34 = load i32, ptr %17, align 4, !tbaa !9
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.w2c_hermes, ptr %35, i32 0, i32 3
  store i32 %34, ptr %36, align 8, !tbaa !13
  %37 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %37, ptr %17, align 4, !tbaa !9
  %38 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %38, ptr %18, align 4, !tbaa !9
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.w2c_hermes, ptr %39, i32 0, i32 6
  %41 = load i32, ptr %18, align 4, !tbaa !9
  %42 = zext i32 %41 to i64
  %43 = call i64 @i64_load(ptr noundef %40, i64 noundef %42)
  store i64 %43, ptr %25, align 8, !tbaa !11
  %44 = load i64, ptr %25, align 8, !tbaa !11
  store i64 %44, ptr %16, align 8, !tbaa !11
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.w2c_hermes, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %17, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = add i64 %48, 8
  %50 = load i64, ptr %25, align 8, !tbaa !11
  call void @i64_store(ptr noundef %46, i64 noundef %49, i64 noundef %50)
  %51 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %51, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %18, align 4, !tbaa !9
  %52 = load i32, ptr %18, align 4, !tbaa !9
  %53 = load i32, ptr %17, align 4, !tbaa !9
  %54 = and i32 %53, %52
  store i32 %54, ptr %17, align 4, !tbaa !9
  %55 = load i32, ptr %17, align 4, !tbaa !9
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %382

57:                                               ; preds = %7
  %58 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %58, ptr %24, align 8, !tbaa !11
  store i64 -4294967296, ptr %25, align 8, !tbaa !11
  %59 = load i64, ptr %25, align 8, !tbaa !11
  %60 = load i64, ptr %24, align 8, !tbaa !11
  %61 = and i64 %60, %59
  store i64 %61, ptr %24, align 8, !tbaa !11
  store i64 4294967296, ptr %25, align 8, !tbaa !11
  %62 = load i64, ptr %24, align 8, !tbaa !11
  %63 = load i64, ptr %25, align 8, !tbaa !11
  %64 = icmp ne i64 %62, %63
  %65 = zext i1 %64 to i32
  store i32 %65, ptr %17, align 4, !tbaa !9
  %66 = load i32, ptr %17, align 4, !tbaa !9
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %69

68:                                               ; preds = %57
  br label %116

69:                                               ; preds = %57
  %70 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %70, ptr %24, align 8, !tbaa !11
  %71 = load i64, ptr %24, align 8, !tbaa !11
  %72 = trunc i64 %71 to i32
  store i32 %72, ptr %17, align 4, !tbaa !9
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.w2c_hermes, ptr %73, i32 0, i32 6
  %75 = load i32, ptr %17, align 4, !tbaa !9
  %76 = zext i32 %75 to i64
  %77 = call i32 @i32_load8_u(ptr noundef %74, i64 noundef %76)
  store i32 %77, ptr %17, align 4, !tbaa !9
  store i32 45, ptr %18, align 4, !tbaa !9
  %78 = load i32, ptr %17, align 4, !tbaa !9
  %79 = load i32, ptr %18, align 4, !tbaa !9
  %80 = icmp ne i32 %78, %79
  %81 = zext i1 %80 to i32
  store i32 %81, ptr %17, align 4, !tbaa !9
  %82 = load i32, ptr %17, align 4, !tbaa !9
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %85

84:                                               ; preds = %69
  br label %116

85:                                               ; preds = %69
  %86 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %86, ptr %17, align 4, !tbaa !9
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Asystem_category0x280x29(ptr noundef %87)
  store i32 %88, ptr %18, align 4, !tbaa !9
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.w2c_hermes, ptr %89, i32 0, i32 6
  %91 = load i32, ptr %17, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  %93 = add i64 %92, 4
  %94 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %90, i64 noundef %93, i32 noundef %94)
  %95 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %95, ptr %17, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.w2c_hermes, ptr %96, i32 0, i32 6
  %98 = load i32, ptr %17, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %97, i64 noundef %99, i32 noundef %100)
  store i32 1, ptr %17, align 4, !tbaa !9
  %101 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %101, ptr %13, align 4, !tbaa !9
  %102 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %102, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %103 = load i32, ptr %18, align 4, !tbaa !9
  %104 = load i32, ptr %17, align 4, !tbaa !9
  %105 = and i32 %104, %103
  store i32 %105, ptr %17, align 4, !tbaa !9
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %108, label %109

108:                                              ; preds = %85
  br label %239

109:                                              ; preds = %85
  %110 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %110, ptr %17, align 4, !tbaa !9
  store i32 20, ptr %18, align 4, !tbaa !9
  %111 = load i32, ptr %18, align 4, !tbaa !9
  %112 = load i32, ptr %17, align 4, !tbaa !9
  %113 = add i32 %112, %111
  store i32 %113, ptr %17, align 4, !tbaa !9
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3AChangeStdoutToBinary0x280x29(ptr noundef %114, i32 noundef %115)
  br label %239

116:                                              ; preds = %84, %68
  %117 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %117, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %118 = load i32, ptr %18, align 4, !tbaa !9
  %119 = load i32, ptr %17, align 4, !tbaa !9
  %120 = and i32 %119, %118
  store i32 %120, ptr %17, align 4, !tbaa !9
  %121 = load i32, ptr %17, align 4, !tbaa !9
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %164

123:                                              ; preds = %116
  %124 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %124, ptr %17, align 4, !tbaa !9
  store i32 261, ptr %18, align 4, !tbaa !9
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.w2c_hermes, ptr %125, i32 0, i32 6
  %127 = load i32, ptr %17, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = add i64 %128, 28
  %130 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %126, i64 noundef %129, i32 noundef %130)
  %131 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %131, ptr %17, align 4, !tbaa !9
  %132 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %132, ptr %18, align 4, !tbaa !9
  store i32 8, ptr %19, align 4, !tbaa !9
  %133 = load i32, ptr %19, align 4, !tbaa !9
  %134 = load i32, ptr %18, align 4, !tbaa !9
  %135 = add i32 %134, %133
  store i32 %135, ptr %18, align 4, !tbaa !9
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.w2c_hermes, ptr %136, i32 0, i32 6
  %138 = load i32, ptr %17, align 4, !tbaa !9
  %139 = zext i32 %138 to i64
  %140 = add i64 %139, 20
  %141 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %137, i64 noundef %140, i32 noundef %141)
  %142 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %142, ptr %17, align 4, !tbaa !9
  store i32 32, ptr %18, align 4, !tbaa !9
  %143 = load i32, ptr %18, align 4, !tbaa !9
  %144 = load i32, ptr %17, align 4, !tbaa !9
  %145 = add i32 %144, %143
  store i32 %145, ptr %17, align 4, !tbaa !9
  %146 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %146, ptr %18, align 4, !tbaa !9
  store i32 20, ptr %19, align 4, !tbaa !9
  %147 = load i32, ptr %19, align 4, !tbaa !9
  %148 = load i32, ptr %18, align 4, !tbaa !9
  %149 = add i32 %148, %147
  store i32 %149, ptr %18, align 4, !tbaa !9
  %150 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %150, ptr %19, align 4, !tbaa !9
  store i32 44, ptr %20, align 4, !tbaa !9
  %151 = load i32, ptr %20, align 4, !tbaa !9
  %152 = load i32, ptr %19, align 4, !tbaa !9
  %153 = add i32 %152, %151
  store i32 %153, ptr %19, align 4, !tbaa !9
  %154 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %154, ptr %20, align 4, !tbaa !9
  store i32 3, ptr %21, align 4, !tbaa !9
  %155 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %155, ptr %22, align 4, !tbaa !9
  store i32 438, ptr %23, align 4, !tbaa !9
  %156 = load ptr, ptr %8, align 8, !tbaa !5
  %157 = load i32, ptr %17, align 4, !tbaa !9
  %158 = load i32, ptr %18, align 4, !tbaa !9
  %159 = load i32, ptr %19, align 4, !tbaa !9
  %160 = load i32, ptr %20, align 4, !tbaa !9
  %161 = load i32, ptr %21, align 4, !tbaa !9
  %162 = load i32, ptr %22, align 4, !tbaa !9
  %163 = load i32, ptr %23, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3AopenFile0x28llvh0x3A0x3ATwine0x20const0x260x2C0x20int0x260x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3ACreationDisposition0x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3AFileAccess0x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3AOpenFlags0x2C0x20unsigned0x20int0x29(ptr noundef %156, i32 noundef %157, i32 noundef %158, i32 noundef %159, i32 noundef %160, i32 noundef %161, i32 noundef %162, i32 noundef %163)
  br label %205

164:                                              ; preds = %116
  %165 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %165, ptr %17, align 4, !tbaa !9
  store i32 261, ptr %18, align 4, !tbaa !9
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.w2c_hermes, ptr %166, i32 0, i32 6
  %168 = load i32, ptr %17, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = add i64 %169, 28
  %171 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %167, i64 noundef %170, i32 noundef %171)
  %172 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %172, ptr %17, align 4, !tbaa !9
  %173 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %173, ptr %18, align 4, !tbaa !9
  store i32 8, ptr %19, align 4, !tbaa !9
  %174 = load i32, ptr %19, align 4, !tbaa !9
  %175 = load i32, ptr %18, align 4, !tbaa !9
  %176 = add i32 %175, %174
  store i32 %176, ptr %18, align 4, !tbaa !9
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.w2c_hermes, ptr %177, i32 0, i32 6
  %179 = load i32, ptr %17, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = add i64 %180, 20
  %182 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %178, i64 noundef %181, i32 noundef %182)
  %183 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %183, ptr %17, align 4, !tbaa !9
  store i32 32, ptr %18, align 4, !tbaa !9
  %184 = load i32, ptr %18, align 4, !tbaa !9
  %185 = load i32, ptr %17, align 4, !tbaa !9
  %186 = add i32 %185, %184
  store i32 %186, ptr %17, align 4, !tbaa !9
  %187 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %187, ptr %18, align 4, !tbaa !9
  store i32 20, ptr %19, align 4, !tbaa !9
  %188 = load i32, ptr %19, align 4, !tbaa !9
  %189 = load i32, ptr %18, align 4, !tbaa !9
  %190 = add i32 %189, %188
  store i32 %190, ptr %18, align 4, !tbaa !9
  %191 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %191, ptr %19, align 4, !tbaa !9
  store i32 44, ptr %20, align 4, !tbaa !9
  %192 = load i32, ptr %20, align 4, !tbaa !9
  %193 = load i32, ptr %19, align 4, !tbaa !9
  %194 = add i32 %193, %192
  store i32 %194, ptr %19, align 4, !tbaa !9
  %195 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %195, ptr %20, align 4, !tbaa !9
  store i32 2, ptr %21, align 4, !tbaa !9
  %196 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %196, ptr %22, align 4, !tbaa !9
  store i32 438, ptr %23, align 4, !tbaa !9
  %197 = load ptr, ptr %8, align 8, !tbaa !5
  %198 = load i32, ptr %17, align 4, !tbaa !9
  %199 = load i32, ptr %18, align 4, !tbaa !9
  %200 = load i32, ptr %19, align 4, !tbaa !9
  %201 = load i32, ptr %20, align 4, !tbaa !9
  %202 = load i32, ptr %21, align 4, !tbaa !9
  %203 = load i32, ptr %22, align 4, !tbaa !9
  %204 = load i32, ptr %23, align 4, !tbaa !9
  call void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3AopenFile0x28llvh0x3A0x3ATwine0x20const0x260x2C0x20int0x260x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3ACreationDisposition0x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3AFileAccess0x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3AOpenFlags0x2C0x20unsigned0x20int0x29(ptr noundef %197, i32 noundef %198, i32 noundef %199, i32 noundef %200, i32 noundef %201, i32 noundef %202, i32 noundef %203, i32 noundef %204)
  br label %205

205:                                              ; preds = %164, %123
  %206 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %206, ptr %17, align 4, !tbaa !9
  %207 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %207, ptr %18, align 4, !tbaa !9
  %208 = load ptr, ptr %8, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.w2c_hermes, ptr %208, i32 0, i32 6
  %210 = load i32, ptr %18, align 4, !tbaa !9
  %211 = zext i32 %210 to i64
  %212 = add i64 %211, 32
  %213 = call i64 @i64_load(ptr noundef %209, i64 noundef %212)
  store i64 %213, ptr %25, align 8, !tbaa !11
  %214 = load i64, ptr %25, align 8, !tbaa !11
  store i64 %214, ptr %16, align 8, !tbaa !11
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.w2c_hermes, ptr %215, i32 0, i32 6
  %217 = load i32, ptr %17, align 4, !tbaa !9
  %218 = zext i32 %217 to i64
  %219 = load i64, ptr %25, align 8, !tbaa !11
  call void @i64_store(ptr noundef %216, i64 noundef %218, i64 noundef %219)
  store i32 -1, ptr %17, align 4, !tbaa !9
  %220 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %220, ptr %18, align 4, !tbaa !9
  %221 = load ptr, ptr %8, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.w2c_hermes, ptr %221, i32 0, i32 6
  %223 = load i32, ptr %18, align 4, !tbaa !9
  %224 = zext i32 %223 to i64
  %225 = add i64 %224, 44
  %226 = call i32 @i32_load(ptr noundef %222, i64 noundef %225)
  store i32 %226, ptr %18, align 4, !tbaa !9
  %227 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %227, ptr %26, align 8, !tbaa !11
  %228 = load i64, ptr %26, align 8, !tbaa !11
  %229 = trunc i64 %228 to i32
  store i32 %229, ptr %19, align 4, !tbaa !9
  %230 = load i32, ptr %19, align 4, !tbaa !9
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %232, label %234

232:                                              ; preds = %205
  %233 = load i32, ptr %17, align 4, !tbaa !9
  br label %236

234:                                              ; preds = %205
  %235 = load i32, ptr %18, align 4, !tbaa !9
  br label %236

236:                                              ; preds = %234, %232
  %237 = phi i32 [ %233, %232 ], [ %235, %234 ]
  store i32 %237, ptr %17, align 4, !tbaa !9
  %238 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %238, ptr %13, align 4, !tbaa !9
  br label %239

239:                                              ; preds = %236, %109, %108
  %240 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %240, ptr %17, align 4, !tbaa !9
  store i64 4294967296, ptr %25, align 8, !tbaa !11
  %241 = load ptr, ptr %8, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.w2c_hermes, ptr %241, i32 0, i32 6
  %243 = load i32, ptr %17, align 4, !tbaa !9
  %244 = zext i32 %243 to i64
  %245 = add i64 %244, 12
  %246 = load i64, ptr %25, align 8, !tbaa !11
  call void @i64_store(ptr noundef %242, i64 noundef %245, i64 noundef %246)
  %247 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %247, ptr %17, align 4, !tbaa !9
  store i64 0, ptr %25, align 8, !tbaa !11
  %248 = load ptr, ptr %8, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.w2c_hermes, ptr %248, i32 0, i32 6
  %250 = load i32, ptr %17, align 4, !tbaa !9
  %251 = zext i32 %250 to i64
  %252 = add i64 %251, 4
  %253 = load i64, ptr %25, align 8, !tbaa !11
  call void @i64_store(ptr noundef %249, i64 noundef %252, i64 noundef %253)
  %254 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %254, ptr %17, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  %255 = load ptr, ptr %8, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.w2c_hermes, ptr %255, i32 0, i32 6
  %257 = load i32, ptr %17, align 4, !tbaa !9
  %258 = zext i32 %257 to i64
  %259 = add i64 %258, 28
  %260 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %256, i64 noundef %259, i32 noundef %260)
  %261 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %261, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %262 = load ptr, ptr %8, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.w2c_hermes, ptr %262, i32 0, i32 6
  %264 = load i32, ptr %17, align 4, !tbaa !9
  %265 = zext i32 %264 to i64
  %266 = add i64 %265, 24
  %267 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %263, i64 noundef %266, i32 noundef %267)
  %268 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %268, ptr %17, align 4, !tbaa !9
  %269 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %269, ptr %18, align 4, !tbaa !9
  %270 = load ptr, ptr %8, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.w2c_hermes, ptr %270, i32 0, i32 6
  %272 = load i32, ptr %17, align 4, !tbaa !9
  %273 = zext i32 %272 to i64
  %274 = add i64 %273, 20
  %275 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %271, i64 noundef %274, i32 noundef %275)
  %276 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %276, ptr %17, align 4, !tbaa !9
  store i32 267108, ptr %18, align 4, !tbaa !9
  %277 = load ptr, ptr %8, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.w2c_hermes, ptr %277, i32 0, i32 6
  %279 = load i32, ptr %17, align 4, !tbaa !9
  %280 = zext i32 %279 to i64
  %281 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %278, i64 noundef %280, i32 noundef %281)
  %282 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %282, ptr %17, align 4, !tbaa !9
  %283 = load ptr, ptr %8, align 8, !tbaa !5
  %284 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Asystem_category0x280x29(ptr noundef %283)
  store i32 %284, ptr %18, align 4, !tbaa !9
  %285 = load ptr, ptr %8, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.w2c_hermes, ptr %285, i32 0, i32 6
  %287 = load i32, ptr %17, align 4, !tbaa !9
  %288 = zext i32 %287 to i64
  %289 = add i64 %288, 32
  %290 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %286, i64 noundef %289, i32 noundef %290)
  %291 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %291, ptr %17, align 4, !tbaa !9
  %292 = load ptr, ptr %8, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.w2c_hermes, ptr %292, i32 0, i32 6
  %294 = load i32, ptr %17, align 4, !tbaa !9
  %295 = zext i32 %294 to i64
  %296 = add i64 %295, 20
  %297 = call i32 @i32_load(ptr noundef %293, i64 noundef %296)
  store i32 %297, ptr %17, align 4, !tbaa !9
  %298 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %298, ptr %13, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  %299 = load i32, ptr %17, align 4, !tbaa !9
  %300 = load i32, ptr %18, align 4, !tbaa !9
  %301 = icmp slt i32 %299, %300
  %302 = zext i1 %301 to i32
  store i32 %302, ptr %17, align 4, !tbaa !9
  %303 = load i32, ptr %17, align 4, !tbaa !9
  %304 = icmp ne i32 %303, 0
  br i1 %304, label %305, label %313

305:                                              ; preds = %239
  %306 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %306, ptr %17, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  %307 = load ptr, ptr %8, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.w2c_hermes, ptr %307, i32 0, i32 6
  %309 = load i32, ptr %17, align 4, !tbaa !9
  %310 = zext i32 %309 to i64
  %311 = add i64 %310, 24
  %312 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %308, i64 noundef %311, i32 noundef %312)
  br label %373

313:                                              ; preds = %239
  %314 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %314, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %18, align 4, !tbaa !9
  %315 = load i32, ptr %17, align 4, !tbaa !9
  %316 = load i32, ptr %18, align 4, !tbaa !9
  %317 = icmp ule i32 %315, %316
  %318 = zext i1 %317 to i32
  store i32 %318, ptr %17, align 4, !tbaa !9
  %319 = load i32, ptr %17, align 4, !tbaa !9
  %320 = icmp ne i32 %319, 0
  br i1 %320, label %321, label %329

321:                                              ; preds = %313
  %322 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %322, ptr %17, align 4, !tbaa !9
  store i32 0, ptr %18, align 4, !tbaa !9
  %323 = load ptr, ptr %8, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.w2c_hermes, ptr %323, i32 0, i32 6
  %325 = load i32, ptr %17, align 4, !tbaa !9
  %326 = zext i32 %325 to i64
  %327 = add i64 %326, 24
  %328 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %324, i64 noundef %327, i32 noundef %328)
  br label %329

329:                                              ; preds = %321, %313
  %330 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %330, ptr %17, align 4, !tbaa !9
  %331 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %331, ptr %18, align 4, !tbaa !9
  store i64 0, ptr %26, align 8, !tbaa !11
  store i32 1, ptr %20, align 4, !tbaa !9
  %332 = load ptr, ptr %8, align 8, !tbaa !5
  %333 = load i32, ptr %18, align 4, !tbaa !9
  %334 = load i64, ptr %26, align 8, !tbaa !11
  %335 = load i32, ptr %20, align 4, !tbaa !9
  %336 = call i64 @w2c_hermes_0x5F_lseek(ptr noundef %332, i32 noundef %333, i64 noundef %334, i32 noundef %335)
  store i64 %336, ptr %25, align 8, !tbaa !11
  %337 = load i64, ptr %25, align 8, !tbaa !11
  store i64 %337, ptr %16, align 8, !tbaa !11
  store i64 -1, ptr %26, align 8, !tbaa !11
  %338 = load i64, ptr %25, align 8, !tbaa !11
  %339 = load i64, ptr %26, align 8, !tbaa !11
  %340 = icmp ne i64 %338, %339
  %341 = zext i1 %340 to i32
  store i32 %341, ptr %18, align 4, !tbaa !9
  %342 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %342, ptr %13, align 4, !tbaa !9
  %343 = load ptr, ptr %8, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.w2c_hermes, ptr %343, i32 0, i32 6
  %345 = load i32, ptr %17, align 4, !tbaa !9
  %346 = zext i32 %345 to i64
  %347 = add i64 %346, 25
  %348 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %344, i64 noundef %347, i32 noundef %348)
  %349 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %349, ptr %17, align 4, !tbaa !9
  %350 = load i32, ptr %17, align 4, !tbaa !9
  %351 = icmp ne i32 %350, 0
  %352 = xor i1 %351, true
  %353 = zext i1 %352 to i32
  store i32 %353, ptr %17, align 4, !tbaa !9
  %354 = load i32, ptr %17, align 4, !tbaa !9
  %355 = icmp ne i32 %354, 0
  br i1 %355, label %356, label %364

356:                                              ; preds = %329
  %357 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %357, ptr %17, align 4, !tbaa !9
  store i64 0, ptr %25, align 8, !tbaa !11
  %358 = load ptr, ptr %8, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.w2c_hermes, ptr %358, i32 0, i32 6
  %360 = load i32, ptr %17, align 4, !tbaa !9
  %361 = zext i32 %360 to i64
  %362 = add i64 %361, 40
  %363 = load i64, ptr %25, align 8, !tbaa !11
  call void @i64_store(ptr noundef %359, i64 noundef %362, i64 noundef %363)
  br label %373

364:                                              ; preds = %329
  %365 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %365, ptr %17, align 4, !tbaa !9
  %366 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %366, ptr %25, align 8, !tbaa !11
  %367 = load ptr, ptr %8, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.w2c_hermes, ptr %367, i32 0, i32 6
  %369 = load i32, ptr %17, align 4, !tbaa !9
  %370 = zext i32 %369 to i64
  %371 = add i64 %370, 40
  %372 = load i64, ptr %25, align 8, !tbaa !11
  call void @i64_store(ptr noundef %368, i64 noundef %371, i64 noundef %372)
  br label %373

373:                                              ; preds = %364, %356, %305
  %374 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %374, ptr %17, align 4, !tbaa !9
  store i32 48, ptr %18, align 4, !tbaa !9
  %375 = load i32, ptr %18, align 4, !tbaa !9
  %376 = load i32, ptr %17, align 4, !tbaa !9
  %377 = add i32 %376, %375
  store i32 %377, ptr %17, align 4, !tbaa !9
  %378 = load i32, ptr %17, align 4, !tbaa !9
  %379 = load ptr, ptr %8, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.w2c_hermes, ptr %379, i32 0, i32 3
  store i32 %378, ptr %380, align 8, !tbaa !13
  %381 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %381, ptr %17, align 4, !tbaa !9
  br label %400

382:                                              ; preds = %7
  store i32 0, ptr %17, align 4, !tbaa !9
  %383 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %383, ptr %9, align 4, !tbaa !9
  store i32 203624, ptr %18, align 4, !tbaa !9
  %384 = load i32, ptr %18, align 4, !tbaa !9
  %385 = load i32, ptr %17, align 4, !tbaa !9
  %386 = add i32 %385, %384
  store i32 %386, ptr %17, align 4, !tbaa !9
  %387 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %387, ptr %18, align 4, !tbaa !9
  store i32 59150, ptr %19, align 4, !tbaa !9
  %388 = load i32, ptr %19, align 4, !tbaa !9
  %389 = load i32, ptr %18, align 4, !tbaa !9
  %390 = add i32 %389, %388
  store i32 %390, ptr %18, align 4, !tbaa !9
  store i32 505, ptr %19, align 4, !tbaa !9
  %391 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %391, ptr %20, align 4, !tbaa !9
  store i32 109633, ptr %21, align 4, !tbaa !9
  %392 = load i32, ptr %21, align 4, !tbaa !9
  %393 = load i32, ptr %20, align 4, !tbaa !9
  %394 = add i32 %393, %392
  store i32 %394, ptr %20, align 4, !tbaa !9
  %395 = load ptr, ptr %8, align 8, !tbaa !5
  %396 = load i32, ptr %17, align 4, !tbaa !9
  %397 = load i32, ptr %18, align 4, !tbaa !9
  %398 = load i32, ptr %19, align 4, !tbaa !9
  %399 = load i32, ptr %20, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %395, i32 noundef %396, i32 noundef %397, i32 noundef %398, i32 noundef %399)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

400:                                              ; preds = %373
  %401 = load i32, ptr %17, align 4, !tbaa !9
  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 8, 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 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  ret i32 %401
}

declare i64 @w2c_hermes_0x5F_lseek(ptr noundef, i32 noundef, i64 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 = { 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, !10, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !17, i64 80}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !16, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"", !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 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

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

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

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

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

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

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

declare i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Asystem_category0x280x29(ptr noundef) local_unnamed_addr #2

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

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

17:                                               ; preds = %7
  %18 = and i64 %13, -4294967296
  %.not226 = icmp eq i64 %18, 4294967296
  br i1 %.not226, label %19, label %29

19:                                               ; preds = %17
  %20 = and i64 %13, 4294967295
  %21 = tail call i32 @i32_load8_u(ptr noundef nonnull %11, i64 noundef %20)
  %.not227 = icmp eq i32 %21, 45
  br i1 %.not227, label %22, label %29

22:                                               ; preds = %19
  %23 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Asystem_category0x280x29(ptr noundef nonnull %0) #4
  %24 = zext i32 %3 to i64
  %25 = add nuw nsw i64 %24, 4
  tail call void @i32_store(ptr noundef nonnull %11, i64 noundef %25, i32 noundef %23)
  tail call void @i32_store(ptr noundef nonnull %11, i64 noundef %24, i32 noundef 0)
  %26 = and i32 %6, 1
  %.not228 = icmp eq i32 %26, 0
  br i1 %.not228, label %27, label %43

27:                                               ; preds = %22
  %28 = add i32 %9, -28
  tail call void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3AChangeStdoutToBinary0x280x29(ptr noundef nonnull %0, i32 noundef %28)
  br label %43

29:                                               ; preds = %19, %17
  %30 = add nuw nsw i64 %14, 28
  tail call void @i32_store16(ptr noundef nonnull %11, i64 noundef %30, i32 noundef 261)
  %31 = add i32 %9, -40
  %32 = add nuw nsw i64 %14, 20
  tail call void @i32_store(ptr noundef nonnull %11, i64 noundef %32, i32 noundef %31)
  %33 = add i32 %9, -16
  %34 = add i32 %9, -28
  %35 = add i32 %9, -4
  %. = and i32 %5, 3
  tail call void @w2c_hermes_llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3AopenFile0x28llvh0x3A0x3ATwine0x20const0x260x2C0x20int0x260x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3ACreationDisposition0x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3AFileAccess0x2C0x20llvh0x3A0x3Asys0x3A0x3Afs0x3A0x3AOpenFlags0x2C0x20unsigned0x20int0x29(ptr noundef nonnull %0, i32 noundef %33, i32 noundef %34, i32 noundef %35, i32 noundef %4, i32 noundef %., i32 noundef %6, i32 noundef 438)
  %36 = add nuw nsw i64 %14, 32
  %37 = tail call i64 @i64_load(ptr noundef nonnull %11, i64 noundef %36)
  %38 = zext i32 %3 to i64
  tail call void @i64_store(ptr noundef nonnull %11, i64 noundef %38, i64 noundef %37)
  %39 = add nuw nsw i64 %14, 44
  %40 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %39)
  %41 = and i64 %37, 4294967295
  %.not230 = icmp eq i64 %41, 0
  %42 = select i1 %.not230, i32 %40, i32 -1
  br label %43

43:                                               ; preds = %22, %29, %27
  %.0 = phi i32 [ %42, %29 ], [ 1, %22 ], [ 1, %27 ]
  %44 = zext i32 %1 to i64
  %45 = add nuw nsw i64 %44, 12
  tail call void @i64_store(ptr noundef nonnull %11, i64 noundef %45, i64 noundef 4294967296)
  %46 = add nuw nsw i64 %44, 4
  tail call void @i64_store(ptr noundef nonnull %11, i64 noundef %46, i64 noundef 0)
  %47 = add nuw nsw i64 %44, 28
  tail call void @i32_store(ptr noundef nonnull %11, i64 noundef %47, i32 noundef 0)
  %48 = add nuw nsw i64 %44, 24
  tail call void @i32_store8(ptr noundef nonnull %11, i64 noundef %48, i32 noundef 1)
  %49 = add nuw nsw i64 %44, 20
  tail call void @i32_store(ptr noundef nonnull %11, i64 noundef %49, i32 noundef %.0)
  tail call void @i32_store(ptr noundef nonnull %11, i64 noundef %44, i32 noundef 267108)
  %50 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Asystem_category0x280x29(ptr noundef nonnull %0) #4
  %51 = add nuw nsw i64 %44, 32
  tail call void @i32_store(ptr noundef nonnull %11, i64 noundef %51, i32 noundef %50)
  %52 = tail call i32 @i32_load(ptr noundef nonnull %11, i64 noundef %49)
  %53 = icmp slt i32 %52, 0
  br i1 %53, label %54, label %55

54:                                               ; preds = %43
  tail call void @i32_store8(ptr noundef nonnull %11, i64 noundef %48, i32 noundef 0)
  br label %66

55:                                               ; preds = %43
  %56 = icmp ult i32 %52, 3
  br i1 %56, label %57, label %58

57:                                               ; preds = %55
  tail call void @i32_store8(ptr noundef nonnull %11, i64 noundef %48, i32 noundef 0)
  br label %58

58:                                               ; preds = %57, %55
  %59 = tail call i64 @w2c_hermes_0x5F_lseek(ptr noundef nonnull %0, i32 noundef %52, i64 noundef 0, i32 noundef 1) #4
  %60 = icmp ne i64 %59, -1
  %61 = zext i1 %60 to i32
  %62 = add nuw nsw i64 %44, 25
  tail call void @i32_store8(ptr noundef nonnull %11, i64 noundef %62, i32 noundef %61)
  %63 = add nuw nsw i64 %44, 40
  br i1 %60, label %65, label %64

64:                                               ; preds = %58
  tail call void @i64_store(ptr noundef nonnull %11, i64 noundef %63, i64 noundef 0)
  br label %66

65:                                               ; preds = %58
  tail call void @i64_store(ptr noundef nonnull %11, i64 noundef %63, i64 noundef %59)
  br label %66

66:                                               ; preds = %65, %64, %54
  store i32 %9, ptr %8, align 8, !tbaa !5
  ret i32 %1

67:                                               ; preds = %7
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 203624, i32 noundef 59150, i32 noundef 505, i32 noundef 109633) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

declare i64 @w2c_hermes_0x5F_lseek(ptr noundef, i32 noundef, i64 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 = { 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: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass