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

; 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: 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) #1

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #2

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

declare i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #4

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_dumpVector0x28llvh0x3A0x3ABitVector0x20const0x260x2C0x20llvh0x3A0x3AStringRef0x2C0x20llvh0x3A0x3Araw_ostream0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #3 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %19 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %19, ptr %12, align 4, !tbaa !9
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.w2c_hermes, ptr %20, i32 0, i32 6
  %22 = load i32, ptr %12, align 4, !tbaa !9
  %23 = zext i32 %22 to i64
  %24 = call i64 @i64_load(ptr noundef %21, i64 noundef %23)
  store i64 %24, ptr %17, align 8, !tbaa !11
  %25 = load i64, ptr %17, align 8, !tbaa !11
  store i64 %25, ptr %11, align 8, !tbaa !11
  %26 = load i64, ptr %17, align 8, !tbaa !11
  %27 = trunc i64 %26 to i32
  store i32 %27, ptr %12, align 4, !tbaa !9
  %28 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %28, ptr %9, align 4, !tbaa !9
  %29 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %29, ptr %17, align 8, !tbaa !11
  store i64 32, ptr %18, align 8, !tbaa !11
  %30 = load i64, ptr %18, align 8, !tbaa !11
  %31 = and i64 %30, 63
  %32 = load i64, ptr %17, align 8, !tbaa !11
  %33 = lshr i64 %32, %31
  store i64 %33, ptr %17, align 8, !tbaa !11
  %34 = load i64, ptr %17, align 8, !tbaa !11
  %35 = trunc i64 %34 to i32
  store i32 %35, ptr %12, align 4, !tbaa !9
  %36 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %36, ptr %7, align 4, !tbaa !9
  %37 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %37, ptr %13, align 4, !tbaa !9
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.w2c_hermes, ptr %38, i32 0, i32 6
  %40 = load i32, ptr %13, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = add i64 %41, 8
  %43 = call i32 @i32_load(ptr noundef %39, i64 noundef %42)
  store i32 %43, ptr %13, align 4, !tbaa !9
  %44 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %44, ptr %14, align 4, !tbaa !9
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.w2c_hermes, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %14, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = add i64 %48, 12
  %50 = call i32 @i32_load(ptr noundef %46, i64 noundef %49)
  store i32 %50, ptr %14, align 4, !tbaa !9
  %51 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %51, ptr %10, align 4, !tbaa !9
  %52 = load i32, ptr %14, align 4, !tbaa !9
  %53 = load i32, ptr %13, align 4, !tbaa !9
  %54 = sub i32 %53, %52
  store i32 %54, ptr %13, align 4, !tbaa !9
  %55 = load i32, ptr %12, align 4, !tbaa !9
  %56 = load i32, ptr %13, align 4, !tbaa !9
  %57 = icmp ugt i32 %55, %56
  %58 = zext i1 %57 to i32
  store i32 %58, ptr %12, align 4, !tbaa !9
  %59 = load i32, ptr %12, align 4, !tbaa !9
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %61, label %70

61:                                               ; preds = %4
  %62 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %62, ptr %12, align 4, !tbaa !9
  %63 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %63, ptr %13, align 4, !tbaa !9
  %64 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %64, ptr %14, align 4, !tbaa !9
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = load i32, ptr %12, align 4, !tbaa !9
  %67 = load i32, ptr %13, align 4, !tbaa !9
  %68 = load i32, ptr %14, align 4, !tbaa !9
  %69 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %65, i32 noundef %66, i32 noundef %67, i32 noundef %68)
  store i32 %69, ptr %12, align 4, !tbaa !9
  br label %106

70:                                               ; preds = %4
  %71 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %71, ptr %12, align 4, !tbaa !9
  %72 = load i32, ptr %12, align 4, !tbaa !9
  %73 = icmp ne i32 %72, 0
  %74 = xor i1 %73, true
  %75 = zext i1 %74 to i32
  store i32 %75, ptr %12, align 4, !tbaa !9
  %76 = load i32, ptr %12, align 4, !tbaa !9
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %79

78:                                               ; preds = %70
  br label %106

79:                                               ; preds = %70
  %80 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %80, ptr %12, align 4, !tbaa !9
  %81 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %81, ptr %13, align 4, !tbaa !9
  %82 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %82, ptr %14, align 4, !tbaa !9
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = load i32, ptr %12, align 4, !tbaa !9
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = call i32 @w2c_hermes_0x5F_memcpy(ptr noundef %83, i32 noundef %84, i32 noundef %85, i32 noundef %86)
  store i32 %87, ptr %12, align 4, !tbaa !9
  %88 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %88, ptr %12, align 4, !tbaa !9
  %89 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %89, ptr %13, align 4, !tbaa !9
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.w2c_hermes, ptr %90, i32 0, i32 6
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = add i64 %93, 12
  %95 = call i32 @i32_load(ptr noundef %91, i64 noundef %94)
  store i32 %95, ptr %13, align 4, !tbaa !9
  %96 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %96, ptr %14, align 4, !tbaa !9
  %97 = load i32, ptr %14, align 4, !tbaa !9
  %98 = load i32, ptr %13, align 4, !tbaa !9
  %99 = add i32 %98, %97
  store i32 %99, ptr %13, align 4, !tbaa !9
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.w2c_hermes, ptr %100, i32 0, i32 6
  %102 = load i32, ptr %12, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = add i64 %103, 12
  %105 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %101, i64 noundef %104, i32 noundef %105)
  br label %106

106:                                              ; preds = %79, %78, %61
  %107 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %107, ptr %12, align 4, !tbaa !9
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.w2c_hermes, ptr %108, i32 0, i32 6
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = add i64 %111, 8
  %113 = call i32 @i32_load(ptr noundef %109, i64 noundef %112)
  store i32 %113, ptr %12, align 4, !tbaa !9
  %114 = load i32, ptr %12, align 4, !tbaa !9
  %115 = icmp ne i32 %114, 0
  %116 = xor i1 %115, true
  %117 = zext i1 %116 to i32
  store i32 %117, ptr %12, align 4, !tbaa !9
  %118 = load i32, ptr %12, align 4, !tbaa !9
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %120, label %121

120:                                              ; preds = %106
  br label %214

121:                                              ; preds = %106
  store i32 0, ptr %12, align 4, !tbaa !9
  %122 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %122, ptr %7, align 4, !tbaa !9
  br label %123

123:                                              ; preds = %194, %121
  %124 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %124, ptr %12, align 4, !tbaa !9
  store i32 5, ptr %13, align 4, !tbaa !9
  %125 = load i32, ptr %13, align 4, !tbaa !9
  %126 = and i32 %125, 31
  %127 = load i32, ptr %12, align 4, !tbaa !9
  %128 = lshr i32 %127, %126
  store i32 %128, ptr %12, align 4, !tbaa !9
  %129 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %129, ptr %9, align 4, !tbaa !9
  %130 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %130, ptr %13, align 4, !tbaa !9
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.w2c_hermes, ptr %131, i32 0, i32 6
  %133 = load i32, ptr %13, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = add i64 %134, 4
  %136 = call i32 @i32_load(ptr noundef %132, i64 noundef %135)
  store i32 %136, ptr %13, align 4, !tbaa !9
  %137 = load i32, ptr %12, align 4, !tbaa !9
  %138 = load i32, ptr %13, align 4, !tbaa !9
  %139 = icmp ult i32 %137, %138
  %140 = zext i1 %139 to i32
  store i32 %140, ptr %12, align 4, !tbaa !9
  %141 = load i32, ptr %12, align 4, !tbaa !9
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %196

143:                                              ; preds = %123
  %144 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %144, ptr %12, align 4, !tbaa !9
  %145 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %145, ptr %13, align 4, !tbaa !9
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.w2c_hermes, ptr %146, i32 0, i32 6
  %148 = load i32, ptr %13, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = call i32 @i32_load(ptr noundef %147, i64 noundef %149)
  store i32 %150, ptr %13, align 4, !tbaa !9
  %151 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %151, ptr %14, align 4, !tbaa !9
  store i32 2, ptr %15, align 4, !tbaa !9
  %152 = load i32, ptr %15, align 4, !tbaa !9
  %153 = and i32 %152, 31
  %154 = load i32, ptr %14, align 4, !tbaa !9
  %155 = shl i32 %154, %153
  store i32 %155, ptr %14, align 4, !tbaa !9
  %156 = load i32, ptr %14, align 4, !tbaa !9
  %157 = load i32, ptr %13, align 4, !tbaa !9
  %158 = add i32 %157, %156
  store i32 %158, ptr %13, align 4, !tbaa !9
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.w2c_hermes, ptr %159, i32 0, i32 6
  %161 = load i32, ptr %13, align 4, !tbaa !9
  %162 = zext i32 %161 to i64
  %163 = call i32 @i32_load(ptr noundef %160, i64 noundef %162)
  store i32 %163, ptr %13, align 4, !tbaa !9
  %164 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %164, ptr %14, align 4, !tbaa !9
  %165 = load i32, ptr %14, align 4, !tbaa !9
  %166 = and i32 %165, 31
  %167 = load i32, ptr %13, align 4, !tbaa !9
  %168 = lshr i32 %167, %166
  store i32 %168, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %169 = load i32, ptr %14, align 4, !tbaa !9
  %170 = load i32, ptr %13, align 4, !tbaa !9
  %171 = and i32 %170, %169
  store i32 %171, ptr %13, align 4, !tbaa !9
  %172 = load ptr, ptr %5, align 8, !tbaa !5
  %173 = load i32, ptr %12, align 4, !tbaa !9
  %174 = load i32, ptr %13, align 4, !tbaa !9
  %175 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28long0x29(ptr noundef %172, i32 noundef %173, i32 noundef %174)
  store i32 %175, ptr %12, align 4, !tbaa !9
  %176 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %176, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = load i32, ptr %12, align 4, !tbaa !9
  %179 = add i32 %178, %177
  store i32 %179, ptr %12, align 4, !tbaa !9
  %180 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %180, ptr %7, align 4, !tbaa !9
  %181 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %181, ptr %13, align 4, !tbaa !9
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.w2c_hermes, ptr %182, i32 0, i32 6
  %184 = load i32, ptr %13, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = add i64 %185, 8
  %187 = call i32 @i32_load(ptr noundef %183, i64 noundef %186)
  store i32 %187, ptr %13, align 4, !tbaa !9
  %188 = load i32, ptr %12, align 4, !tbaa !9
  %189 = load i32, ptr %13, align 4, !tbaa !9
  %190 = icmp ult i32 %188, %189
  %191 = zext i1 %190 to i32
  store i32 %191, ptr %12, align 4, !tbaa !9
  %192 = load i32, ptr %12, align 4, !tbaa !9
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %195

194:                                              ; preds = %143
  br label %123

195:                                              ; preds = %143
  br label %214

196:                                              ; preds = %123
  store i32 0, ptr %12, align 4, !tbaa !9
  %197 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %197, ptr %7, align 4, !tbaa !9
  store i32 202974, ptr %13, align 4, !tbaa !9
  %198 = load i32, ptr %13, align 4, !tbaa !9
  %199 = load i32, ptr %12, align 4, !tbaa !9
  %200 = add i32 %199, %198
  store i32 %200, ptr %12, align 4, !tbaa !9
  %201 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %201, ptr %13, align 4, !tbaa !9
  store i32 82833, ptr %14, align 4, !tbaa !9
  %202 = load i32, ptr %14, align 4, !tbaa !9
  %203 = load i32, ptr %13, align 4, !tbaa !9
  %204 = add i32 %203, %202
  store i32 %204, ptr %13, align 4, !tbaa !9
  store i32 418, ptr %14, align 4, !tbaa !9
  %205 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %205, ptr %15, align 4, !tbaa !9
  store i32 108367, ptr %16, align 4, !tbaa !9
  %206 = load i32, ptr %16, align 4, !tbaa !9
  %207 = load i32, ptr %15, align 4, !tbaa !9
  %208 = add i32 %207, %206
  store i32 %208, ptr %15, align 4, !tbaa !9
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = load i32, ptr %12, align 4, !tbaa !9
  %211 = load i32, ptr %13, align 4, !tbaa !9
  %212 = load i32, ptr %14, align 4, !tbaa !9
  %213 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %209, i32 noundef %210, i32 noundef %211, i32 noundef %212, i32 noundef %213)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

214:                                              ; preds = %195, %120
  %215 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %215, ptr %12, align 4, !tbaa !9
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.w2c_hermes, ptr %216, i32 0, i32 6
  %218 = load i32, ptr %12, align 4, !tbaa !9
  %219 = zext i32 %218 to i64
  %220 = add i64 %219, 12
  %221 = call i32 @i32_load(ptr noundef %217, i64 noundef %220)
  store i32 %221, ptr %12, align 4, !tbaa !9
  %222 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %222, ptr %7, align 4, !tbaa !9
  %223 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %223, ptr %13, align 4, !tbaa !9
  %224 = load ptr, ptr %5, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.w2c_hermes, ptr %224, i32 0, i32 6
  %226 = load i32, ptr %13, align 4, !tbaa !9
  %227 = zext i32 %226 to i64
  %228 = add i64 %227, 8
  %229 = call i32 @i32_load(ptr noundef %225, i64 noundef %228)
  store i32 %229, ptr %13, align 4, !tbaa !9
  %230 = load i32, ptr %12, align 4, !tbaa !9
  %231 = load i32, ptr %13, align 4, !tbaa !9
  %232 = icmp eq i32 %230, %231
  %233 = zext i1 %232 to i32
  store i32 %233, ptr %12, align 4, !tbaa !9
  %234 = load i32, ptr %12, align 4, !tbaa !9
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %236, label %243

236:                                              ; preds = %214
  %237 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %237, ptr %12, align 4, !tbaa !9
  store i32 213024, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %238 = load ptr, ptr %5, align 8, !tbaa !5
  %239 = load i32, ptr %12, align 4, !tbaa !9
  %240 = load i32, ptr %13, align 4, !tbaa !9
  %241 = load i32, ptr %14, align 4, !tbaa !9
  %242 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %238, i32 noundef %239, i32 noundef %240, i32 noundef %241)
  store i32 %242, ptr %12, align 4, !tbaa !9
  br label %267

243:                                              ; preds = %214
  %244 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %244, ptr %12, align 4, !tbaa !9
  store i32 10, ptr %13, align 4, !tbaa !9
  %245 = load ptr, ptr %5, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.w2c_hermes, ptr %245, i32 0, i32 6
  %247 = load i32, ptr %12, align 4, !tbaa !9
  %248 = zext i32 %247 to i64
  %249 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %246, i64 noundef %248, i32 noundef %249)
  %250 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %250, ptr %12, align 4, !tbaa !9
  %251 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %251, ptr %13, align 4, !tbaa !9
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.w2c_hermes, ptr %252, i32 0, i32 6
  %254 = load i32, ptr %13, align 4, !tbaa !9
  %255 = zext i32 %254 to i64
  %256 = add i64 %255, 12
  %257 = call i32 @i32_load(ptr noundef %253, i64 noundef %256)
  store i32 %257, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %258 = load i32, ptr %14, align 4, !tbaa !9
  %259 = load i32, ptr %13, align 4, !tbaa !9
  %260 = add i32 %259, %258
  store i32 %260, ptr %13, align 4, !tbaa !9
  %261 = load ptr, ptr %5, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.w2c_hermes, ptr %261, i32 0, i32 6
  %263 = load i32, ptr %12, align 4, !tbaa !9
  %264 = zext i32 %263 to i64
  %265 = add i64 %264, 12
  %266 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %262, i64 noundef %265, i32 noundef %266)
  br label %267

267:                                              ; preds = %243, %236
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void
}

declare i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28long0x29(ptr noundef, i32 noundef, i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = { "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}


; 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: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #0

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

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

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

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

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

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

declare i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_dumpVector0x28llvh0x3A0x3ABitVector0x20const0x260x2C0x20llvh0x3A0x3AStringRef0x2C0x20llvh0x3A0x3Araw_ostream0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = zext i32 %2 to i64
  %7 = tail call i64 @i64_load(ptr noundef nonnull %5, i64 noundef %6)
  %8 = trunc i64 %7 to i32
  %9 = lshr i64 %7, 32
  %10 = trunc nuw i64 %9 to i32
  %11 = zext i32 %3 to i64
  %12 = add nuw nsw i64 %11, 8
  %13 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %12)
  %14 = add nuw nsw i64 %11, 12
  %15 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %14)
  %16 = sub i32 %13, %15
  %17 = icmp ult i32 %16, %10
  br i1 %17, label %18, label %20

18:                                               ; preds = %4
  %19 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %3, i32 noundef %8, i32 noundef %10) #4
  br label %25

20:                                               ; preds = %4
  %.not = icmp ult i64 %7, 4294967296
  br i1 %.not, label %25, label %21

21:                                               ; preds = %20
  %22 = tail call i32 @w2c_hermes_0x5F_memcpy(ptr noundef %0, i32 noundef %15, i32 noundef %8, i32 noundef %10)
  %23 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %14)
  %24 = add i32 %23, %10
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %14, i32 noundef %24)
  br label %25

25:                                               ; preds = %20, %21, %18
  %26 = zext i32 %1 to i64
  %27 = add nuw nsw i64 %26, 8
  %28 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %27)
  %.not140 = icmp eq i32 %28, 0
  br i1 %.not140, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %25
  %29 = add nuw nsw i64 %26, 4
  br label %30

30:                                               ; preds = %.preheader, %34
  %.0 = phi i32 [ %44, %34 ], [ 0, %.preheader ]
  %31 = lshr i32 %.0, 5
  %32 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %29)
  %33 = icmp ult i32 %31, %32
  br i1 %33, label %34, label %47

34:                                               ; preds = %30
  %35 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %26)
  %36 = shl nuw nsw i32 %31, 2
  %37 = add i32 %35, %36
  %38 = zext i32 %37 to i64
  %39 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %38)
  %40 = and i32 %.0, 31
  %41 = lshr i32 %39, %40
  %42 = and i32 %41, 1
  %43 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28long0x29(ptr noundef %0, i32 noundef %3, i32 noundef %42) #4
  %44 = add nuw i32 %.0, 1
  %45 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %27)
  %46 = icmp ult i32 %44, %45
  br i1 %46, label %30, label %.loopexit

47:                                               ; preds = %30
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 202974, i32 noundef 82833, i32 noundef 418, i32 noundef 108367)
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

.loopexit:                                        ; preds = %34, %25
  %48 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %14)
  %49 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %12)
  %50 = icmp eq i32 %48, %49
  br i1 %50, label %51, label %53

51:                                               ; preds = %.loopexit
  %52 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %3, i32 noundef 213024, i32 noundef 1) #4
  br label %57

53:                                               ; preds = %.loopexit
  %54 = zext i32 %48 to i64
  tail call void @i32_store8(ptr noundef nonnull %5, i64 noundef %54, i32 noundef 10)
  %55 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %14)
  %56 = add i32 %55, 1
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %14, i32 noundef %56)
  br label %57

57:                                               ; preds = %53, %51
  ret void
}

declare i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Aoperator0x3C0x3C0x28long0x29(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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


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