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

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

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

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

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

; 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_store8(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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3AIRBuilder0x3A0x3AcreateHBCProfilePointInst0x28unsigned0x20short0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %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 i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, 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 8, ptr %10) #5
  store i64 0, ptr %10, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  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 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store i32 84, ptr %11, align 4, !tbaa !9
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = load i32, ptr %11, align 4, !tbaa !9
  %20 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %18, i32 noundef %19)
  store i32 %20, ptr %11, align 4, !tbaa !9
  %21 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %21, ptr %7, align 4, !tbaa !9
  store i64 0, ptr %16, align 8, !tbaa !11
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.w2c_hermes, ptr %22, i32 0, i32 6
  %24 = load i32, ptr %11, align 4, !tbaa !9
  %25 = zext i32 %24 to i64
  %26 = add i64 %25, 68
  %27 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %23, i64 noundef %26, i64 noundef %27)
  %28 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %28, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.w2c_hermes, ptr %29, i32 0, i32 6
  %31 = load i32, ptr %11, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = add i64 %32, 36
  %34 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %30, i64 noundef %33, i32 noundef %34)
  %35 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %35, ptr %11, align 4, !tbaa !9
  store i32 107, ptr %12, align 4, !tbaa !9
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.w2c_hermes, ptr %36, i32 0, i32 6
  %38 = load i32, ptr %11, align 4, !tbaa !9
  %39 = zext i32 %38 to i64
  %40 = add i64 %39, 8
  %41 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %37, i64 noundef %40, i32 noundef %41)
  %42 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %42, ptr %11, align 4, !tbaa !9
  store i64 8589934592, ptr %16, align 8, !tbaa !11
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.w2c_hermes, ptr %43, i32 0, i32 6
  %45 = load i32, ptr %11, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = add i64 %46, 20
  %48 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %44, i64 noundef %47, i64 noundef %48)
  %49 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %49, ptr %11, align 4, !tbaa !9
  store i32 459775, ptr %12, align 4, !tbaa !9
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.w2c_hermes, ptr %50, i32 0, i32 6
  %52 = load i32, ptr %11, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = add i64 %53, 10
  %55 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %51, i64 noundef %54, i32 noundef %55)
  %56 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %56, ptr %11, align 4, !tbaa !9
  store i64 0, ptr %16, align 8, !tbaa !11
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.w2c_hermes, ptr %57, i32 0, i32 6
  %59 = load i32, ptr %11, align 4, !tbaa !9
  %60 = zext i32 %59 to i64
  %61 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %58, i64 noundef %60, i64 noundef %61)
  %62 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %62, ptr %11, align 4, !tbaa !9
  %63 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %63, ptr %12, align 4, !tbaa !9
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.w2c_hermes, ptr %64, i32 0, i32 6
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = add i64 %67, 80
  %69 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %65, i64 noundef %68, i32 noundef %69)
  %70 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %70, ptr %11, align 4, !tbaa !9
  store i64 8589934592, ptr %16, align 8, !tbaa !11
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %11, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 44
  %76 = load i64, ptr %16, align 8, !tbaa !11
  call void @i64_store(ptr noundef %72, i64 noundef %75, i64 noundef %76)
  %77 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %77, ptr %11, align 4, !tbaa !9
  %78 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %78, ptr %12, align 4, !tbaa !9
  store i32 52, ptr %13, align 4, !tbaa !9
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = add i32 %80, %79
  store i32 %81, ptr %12, align 4, !tbaa !9
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.w2c_hermes, ptr %82, i32 0, i32 6
  %84 = load i32, ptr %11, align 4, !tbaa !9
  %85 = zext i32 %84 to i64
  %86 = add i64 %85, 40
  %87 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %83, i64 noundef %86, i32 noundef %87)
  %88 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %88, ptr %11, align 4, !tbaa !9
  %89 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %89, ptr %12, align 4, !tbaa !9
  store i32 28, ptr %13, align 4, !tbaa !9
  %90 = load i32, ptr %13, align 4, !tbaa !9
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = add i32 %91, %90
  store i32 %92, ptr %12, align 4, !tbaa !9
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.w2c_hermes, ptr %93, i32 0, i32 6
  %95 = load i32, ptr %11, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = add i64 %96, 16
  %98 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %94, i64 noundef %97, i32 noundef %98)
  %99 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %99, ptr %11, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.w2c_hermes, ptr %100, i32 0, i32 6
  %102 = load i32, ptr %11, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = add i64 %103, 76
  %105 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %101, i64 noundef %104, i32 noundef %105)
  %106 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %106, ptr %11, align 4, !tbaa !9
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.w2c_hermes, ptr %107, i32 0, i32 6
  %109 = load i32, ptr %11, align 4, !tbaa !9
  %110 = zext i32 %109 to i64
  %111 = add i64 %110, 8
  %112 = call i32 @i32_load(ptr noundef %108, i64 noundef %111)
  store i32 %112, ptr %11, align 4, !tbaa !9
  %113 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %113, ptr %8, align 4, !tbaa !9
  %114 = load i32, ptr %11, align 4, !tbaa !9
  %115 = icmp ne i32 %114, 0
  br i1 %115, label %116, label %265

116:                                              ; preds = %3
  %117 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %117, ptr %11, align 4, !tbaa !9
  %118 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %118, ptr %12, align 4, !tbaa !9
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.w2c_hermes, ptr %119, i32 0, i32 6
  %121 = load i32, ptr %12, align 4, !tbaa !9
  %122 = zext i32 %121 to i64
  %123 = add i64 %122, 44
  %124 = call i32 @i32_load(ptr noundef %120, i64 noundef %123)
  store i32 %124, ptr %12, align 4, !tbaa !9
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.w2c_hermes, ptr %125, i32 0, i32 6
  %127 = load i32, ptr %12, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = add i64 %128, 136
  %130 = call i64 @i64_load(ptr noundef %126, i64 noundef %129)
  store i64 %130, ptr %16, align 8, !tbaa !11
  %131 = load i64, ptr %16, align 8, !tbaa !11
  store i64 %131, ptr %10, align 8, !tbaa !11
  store i64 1095216660480, ptr %17, align 8, !tbaa !11
  %132 = load i64, ptr %17, align 8, !tbaa !11
  %133 = load i64, ptr %16, align 8, !tbaa !11
  %134 = and i64 %133, %132
  store i64 %134, ptr %16, align 8, !tbaa !11
  store i64 0, ptr %17, align 8, !tbaa !11
  %135 = load i64, ptr %16, align 8, !tbaa !11
  %136 = load i64, ptr %17, align 8, !tbaa !11
  %137 = icmp ne i64 %135, %136
  %138 = zext i1 %137 to i32
  store i32 %138, ptr %12, align 4, !tbaa !9
  %139 = load i32, ptr %12, align 4, !tbaa !9
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %153

141:                                              ; preds = %116
  %142 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %142, ptr %12, align 4, !tbaa !9
  %143 = load ptr, ptr %4, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.w2c_hermes, ptr %143, i32 0, i32 6
  %145 = load i32, ptr %12, align 4, !tbaa !9
  %146 = zext i32 %145 to i64
  %147 = add i64 %146, 4
  %148 = call i32 @i32_load(ptr noundef %144, i64 noundef %147)
  store i32 %148, ptr %12, align 4, !tbaa !9
  %149 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %149, ptr %6, align 4, !tbaa !9
  %150 = load i64, ptr %10, align 8, !tbaa !11
  store i64 %150, ptr %16, align 8, !tbaa !11
  %151 = load i64, ptr %16, align 8, !tbaa !11
  %152 = trunc i64 %151 to i32
  store i32 %152, ptr %12, align 4, !tbaa !9
  br label %183

153:                                              ; preds = %116
  store i32 0, ptr %12, align 4, !tbaa !9
  %154 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %154, ptr %13, align 4, !tbaa !9
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.w2c_hermes, ptr %155, i32 0, i32 6
  %157 = load i32, ptr %13, align 4, !tbaa !9
  %158 = zext i32 %157 to i64
  %159 = add i64 %158, 4
  %160 = call i32 @i32_load(ptr noundef %156, i64 noundef %159)
  store i32 %160, ptr %13, align 4, !tbaa !9
  %161 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %161, ptr %9, align 4, !tbaa !9
  %162 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %162, ptr %14, align 4, !tbaa !9
  store i32 36, ptr %15, align 4, !tbaa !9
  %163 = load i32, ptr %15, align 4, !tbaa !9
  %164 = load i32, ptr %14, align 4, !tbaa !9
  %165 = add i32 %164, %163
  store i32 %165, ptr %14, align 4, !tbaa !9
  %166 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %166, ptr %6, align 4, !tbaa !9
  %167 = load i32, ptr %13, align 4, !tbaa !9
  %168 = load i32, ptr %14, align 4, !tbaa !9
  %169 = icmp eq i32 %167, %168
  %170 = zext i1 %169 to i32
  store i32 %170, ptr %13, align 4, !tbaa !9
  %171 = load i32, ptr %13, align 4, !tbaa !9
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %174

173:                                              ; preds = %153
  br label %183

174:                                              ; preds = %153
  %175 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %175, ptr %12, align 4, !tbaa !9
  %176 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %176, ptr %6, align 4, !tbaa !9
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.w2c_hermes, ptr %177, i32 0, i32 6
  %179 = load i32, ptr %12, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = add i64 %180, 76
  %182 = call i32 @i32_load(ptr noundef %178, i64 noundef %181)
  store i32 %182, ptr %12, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %174, %173, %141
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.w2c_hermes, ptr %184, i32 0, i32 6
  %186 = load i32, ptr %11, align 4, !tbaa !9
  %187 = zext i32 %186 to i64
  %188 = add i64 %187, 76
  %189 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %185, i64 noundef %188, i32 noundef %189)
  %190 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %190, ptr %11, align 4, !tbaa !9
  %191 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %191, ptr %12, align 4, !tbaa !9
  %192 = load ptr, ptr %4, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.w2c_hermes, ptr %192, i32 0, i32 6
  %194 = load i32, ptr %12, align 4, !tbaa !9
  %195 = zext i32 %194 to i64
  %196 = add i64 %195, 12
  %197 = call i32 @i32_load(ptr noundef %193, i64 noundef %196)
  store i32 %197, ptr %12, align 4, !tbaa !9
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.w2c_hermes, ptr %198, i32 0, i32 6
  %200 = load i32, ptr %11, align 4, !tbaa !9
  %201 = zext i32 %200 to i64
  %202 = add i64 %201, 72
  %203 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %199, i64 noundef %202, i32 noundef %203)
  %204 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %204, ptr %11, align 4, !tbaa !9
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.w2c_hermes, ptr %205, i32 0, i32 6
  %207 = load i32, ptr %11, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = add i64 %208, 16
  %210 = call i32 @i32_load(ptr noundef %206, i64 noundef %209)
  store i32 %210, ptr %11, align 4, !tbaa !9
  %211 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %211, ptr %5, align 4, !tbaa !9
  %212 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %212, ptr %11, align 4, !tbaa !9
  %213 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %213, ptr %12, align 4, !tbaa !9
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.w2c_hermes, ptr %214, i32 0, i32 6
  %216 = load i32, ptr %11, align 4, !tbaa !9
  %217 = zext i32 %216 to i64
  %218 = add i64 %217, 36
  %219 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %215, i64 noundef %218, i32 noundef %219)
  %220 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %220, ptr %11, align 4, !tbaa !9
  %221 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %221, ptr %12, align 4, !tbaa !9
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.w2c_hermes, ptr %222, i32 0, i32 6
  %224 = load i32, ptr %11, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = add i64 %225, 68
  %227 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %223, i64 noundef %226, i32 noundef %227)
  %228 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %228, ptr %11, align 4, !tbaa !9
  %229 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %229, ptr %12, align 4, !tbaa !9
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.w2c_hermes, ptr %230, i32 0, i32 6
  %232 = load i32, ptr %12, 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 %12, align 4, !tbaa !9
  %235 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %235, ptr %5, align 4, !tbaa !9
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.w2c_hermes, ptr %236, i32 0, i32 6
  %238 = load i32, ptr %11, align 4, !tbaa !9
  %239 = zext i32 %238 to i64
  %240 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %237, i64 noundef %239, i32 noundef %240)
  %241 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %241, ptr %11, align 4, !tbaa !9
  %242 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %242, ptr %12, align 4, !tbaa !9
  %243 = load ptr, ptr %4, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.w2c_hermes, ptr %243, i32 0, i32 6
  %245 = load i32, ptr %11, align 4, !tbaa !9
  %246 = zext i32 %245 to i64
  %247 = add i64 %246, 4
  %248 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %244, i64 noundef %247, i32 noundef %248)
  %249 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %249, ptr %11, align 4, !tbaa !9
  %250 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %250, ptr %12, align 4, !tbaa !9
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.w2c_hermes, ptr %251, i32 0, i32 6
  %253 = load i32, ptr %11, align 4, !tbaa !9
  %254 = zext i32 %253 to i64
  %255 = add i64 %254, 4
  %256 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %252, i64 noundef %255, i32 noundef %256)
  %257 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %257, ptr %11, align 4, !tbaa !9
  %258 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %258, ptr %12, align 4, !tbaa !9
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.w2c_hermes, ptr %259, i32 0, i32 6
  %261 = load i32, ptr %11, align 4, !tbaa !9
  %262 = zext i32 %261 to i64
  %263 = load i32, ptr %12, align 4, !tbaa !9
  call void @i32_store(ptr noundef %260, i64 noundef %262, i32 noundef %263)
  %264 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %264, ptr %11, align 4, !tbaa !9
  br label %283

265:                                              ; preds = %3
  store i32 0, ptr %11, align 4, !tbaa !9
  %266 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %266, ptr %7, align 4, !tbaa !9
  store i32 152722, ptr %12, align 4, !tbaa !9
  %267 = load i32, ptr %12, align 4, !tbaa !9
  %268 = load i32, ptr %11, align 4, !tbaa !9
  %269 = add i32 %268, %267
  store i32 %269, ptr %11, align 4, !tbaa !9
  %270 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %270, ptr %12, align 4, !tbaa !9
  store i32 80936, ptr %13, align 4, !tbaa !9
  %271 = load i32, ptr %13, align 4, !tbaa !9
  %272 = load i32, ptr %12, align 4, !tbaa !9
  %273 = add i32 %272, %271
  store i32 %273, ptr %12, align 4, !tbaa !9
  store i32 228, ptr %13, align 4, !tbaa !9
  %274 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %274, ptr %14, align 4, !tbaa !9
  store i32 65834, ptr %15, align 4, !tbaa !9
  %275 = load i32, ptr %15, align 4, !tbaa !9
  %276 = load i32, ptr %14, align 4, !tbaa !9
  %277 = add i32 %276, %275
  store i32 %277, ptr %14, align 4, !tbaa !9
  %278 = load ptr, ptr %4, align 8, !tbaa !5
  %279 = load i32, ptr %11, align 4, !tbaa !9
  %280 = load i32, ptr %12, align 4, !tbaa !9
  %281 = load i32, ptr %13, align 4, !tbaa !9
  %282 = load i32, ptr %14, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %278, i32 noundef %279, i32 noundef %280, i32 noundef %281, i32 noundef %282)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

283:                                              ; preds = %183
  %284 = load i32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, 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
  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 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret i32 %284
}

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}


; 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_store16(ptr noundef, i64 noundef, 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 #0

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

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

; 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_store8(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3AIRBuilder0x3A0x3AcreateHBCProfilePointInst0x28unsigned0x20short0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %4 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef 84) #4
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = zext i32 %4 to i64
  %7 = add nuw nsw i64 %6, 68
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %7, i64 noundef 0)
  %8 = add nuw nsw i64 %6, 36
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %8, i32 noundef 0)
  %9 = add nuw nsw i64 %6, 8
  tail call void @i32_store8(ptr noundef nonnull %5, i64 noundef %9, i32 noundef 107)
  %10 = add nuw nsw i64 %6, 20
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %10, i64 noundef 8589934592)
  %11 = add nuw nsw i64 %6, 10
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %11, i32 noundef 459775)
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %6, i64 noundef 0)
  %12 = add nuw nsw i64 %6, 80
  tail call void @i32_store16(ptr noundef nonnull %5, i64 noundef %12, i32 noundef %2)
  %13 = add nuw nsw i64 %6, 44
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %13, i64 noundef 8589934592)
  %14 = add i32 %4, 52
  %15 = add nuw nsw i64 %6, 40
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %15, i32 noundef %14)
  %16 = add i32 %4, 28
  %17 = add nuw nsw i64 %6, 16
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %17, i32 noundef %16)
  %18 = add nuw nsw i64 %6, 76
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %18, i32 noundef 0)
  %19 = zext i32 %1 to i64
  %20 = add nuw nsw i64 %19, 8
  %21 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %20)
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %52, label %22

22:                                               ; preds = %3
  %23 = zext i32 %21 to i64
  %24 = add nuw nsw i64 %23, 44
  %25 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %24)
  %26 = zext i32 %25 to i64
  %27 = add nuw nsw i64 %26, 136
  %28 = tail call i64 @i64_load(ptr noundef nonnull %5, i64 noundef %27)
  %29 = and i64 %28, 1095216660480
  %.not157 = icmp eq i64 %29, 0
  %30 = add nuw nsw i64 %19, 4
  %31 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %30)
  br i1 %.not157, label %34, label %32

32:                                               ; preds = %22
  %33 = trunc i64 %28 to i32
  br label %41

34:                                               ; preds = %22
  %35 = add i32 %21, 36
  %36 = icmp eq i32 %31, %35
  br i1 %36, label %41, label %37

37:                                               ; preds = %34
  %38 = zext i32 %31 to i64
  %39 = add nuw nsw i64 %38, 76
  %40 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %39)
  br label %41

41:                                               ; preds = %34, %37, %32
  %.0 = phi i32 [ %33, %32 ], [ 0, %34 ], [ %40, %37 ]
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %18, i32 noundef %.0)
  %42 = add nuw nsw i64 %19, 12
  %43 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %42)
  %44 = add nuw nsw i64 %6, 72
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %44, i32 noundef %43)
  %45 = add nuw nsw i64 %19, 16
  %46 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %45)
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %8, i32 noundef %21)
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %7, i32 noundef %46)
  %47 = zext i32 %31 to i64
  %48 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %47)
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %6, i32 noundef %48)
  %49 = add nuw nsw i64 %6, 4
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %49, i32 noundef %31)
  %50 = zext i32 %48 to i64
  %51 = add nuw nsw i64 %50, 4
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %51, i32 noundef %4)
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %47, i32 noundef %4)
  ret i32 %4

52:                                               ; preds = %3
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 152722, i32 noundef 80936, i32 noundef 228, i32 noundef 65834) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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)"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass