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

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

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

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef, i32 noundef, i64 noundef) #2

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARequireContext0x3A0x3Acreate0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ADomain0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x29(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 i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i64, align 8
  %19 = 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) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store i64 0, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store i64 0, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %20 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %20, ptr %15, align 4, !tbaa !9
  store i32 1368, ptr %16, align 4, !tbaa !9
  %21 = load i32, ptr %16, align 4, !tbaa !9
  %22 = load i32, ptr %15, align 4, !tbaa !9
  %23 = add i32 %22, %21
  store i32 %23, ptr %15, align 4, !tbaa !9
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.w2c_hermes, ptr %24, i32 0, i32 6
  %26 = load i32, ptr %15, align 4, !tbaa !9
  %27 = zext i32 %26 to i64
  %28 = call i32 @i32_load(ptr noundef %25, i64 noundef %27)
  store i32 %28, ptr %15, align 4, !tbaa !9
  %29 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %29, ptr %16, align 4, !tbaa !9
  store i32 1364, ptr %17, align 4, !tbaa !9
  %30 = load i32, ptr %17, align 4, !tbaa !9
  %31 = load i32, ptr %16, align 4, !tbaa !9
  %32 = add i32 %31, %30
  store i32 %32, ptr %16, align 4, !tbaa !9
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.w2c_hermes, ptr %33, i32 0, i32 6
  %35 = load i32, ptr %16, align 4, !tbaa !9
  %36 = zext i32 %35 to i64
  %37 = call i32 @i32_load(ptr noundef %34, i64 noundef %36)
  store i32 %37, ptr %16, align 4, !tbaa !9
  %38 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %38, ptr %9, align 4, !tbaa !9
  %39 = load i32, ptr %16, align 4, !tbaa !9
  %40 = load i32, ptr %15, align 4, !tbaa !9
  %41 = sub i32 %40, %39
  store i32 %41, ptr %15, align 4, !tbaa !9
  store i32 39, ptr %16, align 4, !tbaa !9
  %42 = load i32, ptr %15, align 4, !tbaa !9
  %43 = load i32, ptr %16, align 4, !tbaa !9
  %44 = icmp ule i32 %42, %43
  %45 = zext i1 %44 to i32
  store i32 %45, ptr %15, align 4, !tbaa !9
  %46 = load i32, ptr %15, align 4, !tbaa !9
  %47 = icmp ne i32 %46, 0
  br i1 %47, label %48, label %58

48:                                               ; preds = %4
  %49 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %49, ptr %15, align 4, !tbaa !9
  store i32 808, ptr %16, align 4, !tbaa !9
  %50 = load i32, ptr %16, align 4, !tbaa !9
  %51 = load i32, ptr %15, align 4, !tbaa !9
  %52 = add i32 %51, %50
  store i32 %52, ptr %15, align 4, !tbaa !9
  store i32 40, ptr %16, align 4, !tbaa !9
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = load i32, ptr %15, align 4, !tbaa !9
  %55 = load i32, ptr %16, align 4, !tbaa !9
  %56 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AallocSlow0x28unsigned0x20int0x29(ptr noundef %53, i32 noundef %54, i32 noundef %55)
  store i32 %56, ptr %15, align 4, !tbaa !9
  %57 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %57, ptr %9, align 4, !tbaa !9
  br label %70

58:                                               ; preds = %4
  %59 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %59, ptr %15, align 4, !tbaa !9
  %60 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %60, ptr %16, align 4, !tbaa !9
  store i32 40, ptr %17, align 4, !tbaa !9
  %61 = load i32, ptr %17, align 4, !tbaa !9
  %62 = load i32, ptr %16, align 4, !tbaa !9
  %63 = add i32 %62, %61
  store i32 %63, ptr %16, align 4, !tbaa !9
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.w2c_hermes, ptr %64, i32 0, i32 6
  %66 = load i32, ptr %15, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = add i64 %67, 1364
  %69 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %65, i64 noundef %68, i32 noundef %69)
  br label %70

70:                                               ; preds = %58, %48
  %71 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %71, ptr %15, align 4, !tbaa !9
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.w2c_hermes, ptr %72, i32 0, i32 6
  %74 = load i32, ptr %15, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = add i64 %75, 16
  %77 = call i64 @i64_load(ptr noundef %73, i64 noundef %76)
  store i64 %77, ptr %18, align 8, !tbaa !11
  %78 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %78, ptr %13, align 8, !tbaa !11
  %79 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %79, ptr %15, align 4, !tbaa !9
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.w2c_hermes, ptr %80, i32 0, i32 6
  %82 = load i32, ptr %15, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = add i64 %83, 5632
  %85 = call i64 @i64_load(ptr noundef %81, i64 noundef %84)
  store i64 %85, ptr %18, align 8, !tbaa !11
  %86 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %86, ptr %14, align 8, !tbaa !11
  %87 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %87, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.w2c_hermes, ptr %88, i32 0, i32 6
  %90 = load i32, ptr %15, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = add i64 %91, 24
  %93 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %89, i64 noundef %92, i32 noundef %93)
  %94 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %94, ptr %15, align 4, !tbaa !9
  store i64 0, ptr %19, align 8, !tbaa !11
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.w2c_hermes, ptr %95, i32 0, i32 6
  %97 = load i32, ptr %15, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = add i64 %98, 16
  %100 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %96, i64 noundef %99, i64 noundef %100)
  %101 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %101, ptr %15, align 4, !tbaa !9
  %102 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %102, ptr %19, align 8, !tbaa !11
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.w2c_hermes, ptr %103, i32 0, i32 6
  %105 = load i32, ptr %15, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = add i64 %106, 12
  %108 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store32(ptr noundef %104, i64 noundef %107, i64 noundef %108)
  %109 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %109, ptr %15, align 4, !tbaa !9
  %110 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %110, ptr %19, align 8, !tbaa !11
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.w2c_hermes, ptr %111, i32 0, i32 6
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = zext i32 %113 to i64
  %115 = add i64 %114, 8
  %116 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store32(ptr noundef %112, i64 noundef %115, i64 noundef %116)
  %117 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %117, ptr %15, align 4, !tbaa !9
  store i64 1073741864, ptr %19, align 8, !tbaa !11
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.w2c_hermes, ptr %118, i32 0, i32 6
  %120 = load i32, ptr %15, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %119, i64 noundef %121, i64 noundef %122)
  %123 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %123, ptr %15, align 4, !tbaa !9
  store i32 14, ptr %16, align 4, !tbaa !9
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = add i64 %127, 36
  %129 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %125, i64 noundef %128, i32 noundef %129)
  %130 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %130, ptr %15, align 4, !tbaa !9
  store i64 60129542158, ptr %19, align 8, !tbaa !11
  %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 %15, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = add i64 %134, 28
  %136 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %132, i64 noundef %135, i64 noundef %136)
  %137 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %137, ptr %15, align 4, !tbaa !9
  %138 = load i32, ptr %15, align 4, !tbaa !9
  %139 = zext i32 %138 to i64
  store i64 %139, ptr %18, align 8, !tbaa !11
  store i64 -281474976710656, ptr %19, align 8, !tbaa !11
  %140 = load i64, ptr %19, align 8, !tbaa !11
  %141 = load i64, ptr %18, align 8, !tbaa !11
  %142 = or i64 %141, %140
  store i64 %142, ptr %18, align 8, !tbaa !11
  %143 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %143, ptr %13, align 8, !tbaa !11
  %144 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %144, ptr %15, align 4, !tbaa !9
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.w2c_hermes, ptr %145, i32 0, i32 6
  %147 = load i32, ptr %15, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  %149 = add i64 %148, 4
  %150 = call i32 @i32_load(ptr noundef %146, i64 noundef %149)
  store i32 %150, ptr %15, align 4, !tbaa !9
  %151 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %151, ptr %10, align 4, !tbaa !9
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.w2c_hermes, ptr %152, i32 0, i32 6
  %154 = load i32, ptr %15, align 4, !tbaa !9
  %155 = zext i32 %154 to i64
  %156 = add i64 %155, 164
  %157 = call i32 @i32_load(ptr noundef %153, i64 noundef %156)
  store i32 %157, ptr %15, align 4, !tbaa !9
  %158 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %158, ptr %9, align 4, !tbaa !9
  %159 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %159, ptr %16, align 4, !tbaa !9
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.w2c_hermes, ptr %160, i32 0, i32 6
  %162 = load i32, ptr %16, align 4, !tbaa !9
  %163 = zext i32 %162 to i64
  %164 = add i64 %163, 168
  %165 = call i32 @i32_load(ptr noundef %161, i64 noundef %164)
  store i32 %165, ptr %16, align 4, !tbaa !9
  %166 = load i32, ptr %15, align 4, !tbaa !9
  %167 = load i32, ptr %16, align 4, !tbaa !9
  %168 = icmp ult i32 %166, %167
  %169 = zext i1 %168 to i32
  store i32 %169, ptr %15, align 4, !tbaa !9
  %170 = load i32, ptr %15, align 4, !tbaa !9
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %172, label %191

172:                                              ; preds = %70
  %173 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %173, ptr %15, align 4, !tbaa !9
  %174 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %174, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %175 = load i32, ptr %17, align 4, !tbaa !9
  %176 = load i32, ptr %16, align 4, !tbaa !9
  %177 = add i32 %176, %175
  store i32 %177, ptr %16, align 4, !tbaa !9
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.w2c_hermes, ptr %178, i32 0, i32 6
  %180 = load i32, ptr %15, align 4, !tbaa !9
  %181 = zext i32 %180 to i64
  %182 = add i64 %181, 164
  %183 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %179, i64 noundef %182, i32 noundef %183)
  %184 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %184, ptr %15, align 4, !tbaa !9
  %185 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %185, ptr %19, align 8, !tbaa !11
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.w2c_hermes, ptr %186, i32 0, i32 6
  %188 = load i32, ptr %15, align 4, !tbaa !9
  %189 = zext i32 %188 to i64
  %190 = load i64, ptr %19, align 8, !tbaa !11
  call void @i64_store(ptr noundef %187, i64 noundef %189, i64 noundef %190)
  br label %205

191:                                              ; preds = %70
  %192 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %192, ptr %15, align 4, !tbaa !9
  %193 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %193, ptr %19, align 8, !tbaa !11
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = load i32, ptr %15, align 4, !tbaa !9
  %196 = load i64, ptr %19, align 8, !tbaa !11
  %197 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %194, i32 noundef %195, i64 noundef %196)
  store i32 %197, ptr %15, align 4, !tbaa !9
  %198 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %198, ptr %9, align 4, !tbaa !9
  %199 = load ptr, ptr %5, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.w2c_hermes, ptr %199, i32 0, i32 6
  %201 = load i32, ptr %15, align 4, !tbaa !9
  %202 = zext i32 %201 to i64
  %203 = call i64 @i64_load(ptr noundef %200, i64 noundef %202)
  store i64 %203, ptr %18, align 8, !tbaa !11
  %204 = load i64, ptr %18, align 8, !tbaa !11
  store i64 %204, ptr %13, align 8, !tbaa !11
  br label %205

205:                                              ; preds = %191, %172
  %206 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %206, ptr %15, align 4, !tbaa !9
  store i32 808, ptr %16, align 4, !tbaa !9
  %207 = load i32, ptr %16, align 4, !tbaa !9
  %208 = load i32, ptr %15, align 4, !tbaa !9
  %209 = add i32 %208, %207
  store i32 %209, ptr %15, align 4, !tbaa !9
  %210 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %210, ptr %10, align 4, !tbaa !9
  %211 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %211, ptr %15, align 4, !tbaa !9
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.w2c_hermes, ptr %212, i32 0, i32 6
  %214 = load i32, ptr %15, align 4, !tbaa !9
  %215 = zext i32 %214 to i64
  %216 = call i32 @i32_load(ptr noundef %213, i64 noundef %215)
  store i32 %216, ptr %15, align 4, !tbaa !9
  %217 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %217, ptr %11, align 4, !tbaa !9
  %218 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %218, ptr %15, align 4, !tbaa !9
  store i32 1356, ptr %16, align 4, !tbaa !9
  %219 = load i32, ptr %16, align 4, !tbaa !9
  %220 = load i32, ptr %15, align 4, !tbaa !9
  %221 = add i32 %220, %219
  store i32 %221, ptr %15, align 4, !tbaa !9
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.w2c_hermes, ptr %222, i32 0, i32 6
  %224 = load i32, ptr %15, align 4, !tbaa !9
  %225 = zext i32 %224 to i64
  %226 = call i32 @i32_load(ptr noundef %223, i64 noundef %225)
  store i32 %226, ptr %15, align 4, !tbaa !9
  %227 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %227, ptr %7, align 4, !tbaa !9
  %228 = load i64, ptr %13, align 8, !tbaa !11
  store i64 %228, ptr %19, align 8, !tbaa !11
  %229 = load i64, ptr %19, align 8, !tbaa !11
  %230 = trunc i64 %229 to i32
  store i32 %230, ptr %16, align 4, !tbaa !9
  store i32 20, ptr %17, align 4, !tbaa !9
  %231 = load i32, ptr %17, align 4, !tbaa !9
  %232 = load i32, ptr %16, align 4, !tbaa !9
  %233 = add i32 %232, %231
  store i32 %233, ptr %16, align 4, !tbaa !9
  %234 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %234, ptr %12, align 4, !tbaa !9
  store i32 -4194304, ptr %17, align 4, !tbaa !9
  %235 = load i32, ptr %17, align 4, !tbaa !9
  %236 = load i32, ptr %16, align 4, !tbaa !9
  %237 = and i32 %236, %235
  store i32 %237, ptr %16, align 4, !tbaa !9
  %238 = load i32, ptr %15, align 4, !tbaa !9
  %239 = load i32, ptr %16, align 4, !tbaa !9
  %240 = icmp ne i32 %238, %239
  %241 = zext i1 %240 to i32
  store i32 %241, ptr %15, align 4, !tbaa !9
  %242 = load i32, ptr %15, align 4, !tbaa !9
  %243 = icmp ne i32 %242, 0
  br i1 %243, label %244, label %260

244:                                              ; preds = %205
  %245 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %245, ptr %15, align 4, !tbaa !9
  %246 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %246, ptr %16, align 4, !tbaa !9
  %247 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %247, ptr %17, align 4, !tbaa !9
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = load i32, ptr %15, align 4, !tbaa !9
  %250 = load i32, ptr %16, align 4, !tbaa !9
  %251 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AwriteBarrierSlow0x28hermes0x3A0x3Avm0x3A0x3AGCPointerBase0x20const0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AGCCell0x20const0x2A0x29(ptr noundef %248, i32 noundef %249, i32 noundef %250, i32 noundef %251)
  %252 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %252, ptr %15, align 4, !tbaa !9
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.w2c_hermes, ptr %253, i32 0, i32 6
  %255 = load i32, ptr %15, align 4, !tbaa !9
  %256 = zext i32 %255 to i64
  %257 = add i64 %256, 1356
  %258 = call i32 @i32_load(ptr noundef %254, i64 noundef %257)
  store i32 %258, ptr %15, align 4, !tbaa !9
  %259 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %259, ptr %7, align 4, !tbaa !9
  br label %260

260:                                              ; preds = %244, %205
  %261 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %261, ptr %15, align 4, !tbaa !9
  %262 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %262, ptr %16, align 4, !tbaa !9
  %263 = load ptr, ptr %5, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.w2c_hermes, ptr %263, i32 0, i32 6
  %265 = load i32, ptr %15, align 4, !tbaa !9
  %266 = zext i32 %265 to i64
  %267 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %264, i64 noundef %266, i32 noundef %267)
  %268 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %268, ptr %15, align 4, !tbaa !9
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.w2c_hermes, ptr %269, i32 0, i32 6
  %271 = load i32, ptr %15, align 4, !tbaa !9
  %272 = zext i32 %271 to i64
  %273 = call i32 @i32_load(ptr noundef %270, i64 noundef %272)
  store i32 %273, ptr %15, align 4, !tbaa !9
  %274 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %274, ptr %6, align 4, !tbaa !9
  %275 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %275, ptr %15, align 4, !tbaa !9
  %276 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %276, ptr %16, align 4, !tbaa !9
  %277 = load ptr, ptr %5, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.w2c_hermes, ptr %277, i32 0, i32 6
  %279 = load i32, ptr %16, align 4, !tbaa !9
  %280 = zext i32 %279 to i64
  %281 = call i32 @i32_load(ptr noundef %278, i64 noundef %280)
  store i32 %281, ptr %16, align 4, !tbaa !9
  store i32 24, ptr %17, align 4, !tbaa !9
  %282 = load i32, ptr %17, align 4, !tbaa !9
  %283 = load i32, ptr %16, align 4, !tbaa !9
  %284 = add i32 %283, %282
  store i32 %284, ptr %16, align 4, !tbaa !9
  %285 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %285, ptr %7, align 4, !tbaa !9
  store i32 -4194304, ptr %17, align 4, !tbaa !9
  %286 = load i32, ptr %17, align 4, !tbaa !9
  %287 = load i32, ptr %16, align 4, !tbaa !9
  %288 = and i32 %287, %286
  store i32 %288, ptr %16, align 4, !tbaa !9
  %289 = load i32, ptr %15, align 4, !tbaa !9
  %290 = load i32, ptr %16, align 4, !tbaa !9
  %291 = icmp ne i32 %289, %290
  %292 = zext i1 %291 to i32
  store i32 %292, ptr %15, align 4, !tbaa !9
  %293 = load i32, ptr %15, align 4, !tbaa !9
  %294 = icmp ne i32 %293, 0
  br i1 %294, label %295, label %303

295:                                              ; preds = %260
  %296 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %296, ptr %15, align 4, !tbaa !9
  %297 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %297, ptr %16, align 4, !tbaa !9
  %298 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %298, ptr %17, align 4, !tbaa !9
  %299 = load ptr, ptr %5, align 8, !tbaa !5
  %300 = load i32, ptr %15, align 4, !tbaa !9
  %301 = load i32, ptr %16, align 4, !tbaa !9
  %302 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AwriteBarrierSlow0x28hermes0x3A0x3Avm0x3A0x3AGCPointerBase0x20const0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AGCCell0x20const0x2A0x29(ptr noundef %299, i32 noundef %300, i32 noundef %301, i32 noundef %302)
  br label %303

303:                                              ; preds = %295, %260
  %304 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %304, ptr %15, align 4, !tbaa !9
  %305 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %305, ptr %16, align 4, !tbaa !9
  %306 = load ptr, ptr %5, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.w2c_hermes, ptr %306, i32 0, i32 6
  %308 = load i32, ptr %15, align 4, !tbaa !9
  %309 = zext i32 %308 to i64
  %310 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %307, i64 noundef %309, i32 noundef %310)
  %311 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %311, ptr %15, align 4, !tbaa !9
  %312 = load i32, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret i32 %312
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !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 void @i64_store(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

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

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

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARequireContext0x3A0x3Acreate0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3ADomain0x3E0x2C0x20hermes0x3A0x3Avm0x3A0x3AHandle0x3Chermes0x3A0x3Avm0x3A0x3AStringPrimitive0x3E0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = add i32 %1, 1368
  %6 = getelementptr inbounds i8, ptr %0, i64 40
  %7 = zext i32 %5 to i64
  %8 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %7)
  %9 = add i32 %1, 1364
  %10 = zext i32 %9 to i64
  %11 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %10)
  %12 = sub i32 %8, %11
  %13 = icmp ult i32 %12, 40
  br i1 %13, label %14, label %17

14:                                               ; preds = %4
  %15 = add i32 %1, 808
  %16 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AallocSlow0x28unsigned0x20int0x29(ptr noundef %0, i32 noundef %15, i32 noundef 40) #3
  %.pre = zext i32 %1 to i64
  br label %21

17:                                               ; preds = %4
  %18 = add i32 %11, 40
  %19 = zext i32 %1 to i64
  %20 = add nuw nsw i64 %19, 1364
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %20, i32 noundef %18)
  br label %21

21:                                               ; preds = %17, %14
  %.pre-phi = phi i64 [ %19, %17 ], [ %.pre, %14 ]
  %.0176 = phi i32 [ %11, %17 ], [ %16, %14 ]
  %22 = add nuw nsw i64 %.pre-phi, 16
  %23 = tail call i64 @i64_load(ptr noundef nonnull %6, i64 noundef %22)
  %24 = add nuw nsw i64 %.pre-phi, 5632
  %25 = tail call i64 @i64_load(ptr noundef nonnull %6, i64 noundef %24)
  %26 = zext i32 %.0176 to i64
  %27 = add nuw nsw i64 %26, 24
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %27, i32 noundef 0)
  %28 = add nuw nsw i64 %26, 16
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %28, i64 noundef 0)
  %29 = add nuw nsw i64 %26, 12
  tail call void @i64_store32(ptr noundef nonnull %6, i64 noundef %29, i64 noundef %25)
  %30 = add nuw nsw i64 %26, 8
  tail call void @i64_store32(ptr noundef nonnull %6, i64 noundef %30, i64 noundef %23)
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %26, i64 noundef 1073741864)
  %31 = add nuw nsw i64 %26, 36
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %31, i32 noundef 14)
  %32 = add nuw nsw i64 %26, 28
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %32, i64 noundef 60129542158)
  %33 = or disjoint i64 %26, -281474976710656
  %34 = add nuw nsw i64 %.pre-phi, 4
  %35 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %34)
  %36 = zext i32 %35 to i64
  %37 = add nuw nsw i64 %36, 164
  %38 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %37)
  %39 = add nuw nsw i64 %36, 168
  %40 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %39)
  %41 = icmp ult i32 %38, %40
  br i1 %41, label %42, label %45

42:                                               ; preds = %21
  %43 = add i32 %38, 8
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %37, i32 noundef %43)
  %44 = zext i32 %38 to i64
  tail call void @i64_store(ptr noundef nonnull %6, i64 noundef %44, i64 noundef %33)
  br label %49

45:                                               ; preds = %21
  %46 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A_newChunkAndPHV0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x29(ptr noundef %0, i32 noundef %35, i64 noundef %33) #3
  %47 = zext i32 %46 to i64
  %48 = tail call i64 @i64_load(ptr noundef nonnull %6, i64 noundef %47)
  br label %49

49:                                               ; preds = %45, %42
  %.1 = phi i32 [ %38, %42 ], [ %46, %45 ]
  %.0 = phi i64 [ %33, %42 ], [ %48, %45 ]
  %50 = add i32 %1, 808
  %51 = zext i32 %2 to i64
  %52 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %51)
  %53 = add i32 %1, 1356
  %54 = zext i32 %53 to i64
  %55 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %54)
  %56 = trunc i64 %.0 to i32
  %57 = add i32 %56, 20
  %58 = and i32 %57, -4194304
  %.not = icmp eq i32 %55, %58
  br i1 %.not, label %62, label %59

59:                                               ; preds = %49
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AwriteBarrierSlow0x28hermes0x3A0x3Avm0x3A0x3AGCPointerBase0x20const0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AGCCell0x20const0x2A0x29(ptr noundef %0, i32 noundef %50, i32 noundef %57, i32 noundef %52) #3
  %60 = add nuw nsw i64 %.pre-phi, 1356
  %61 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %60)
  br label %62

62:                                               ; preds = %59, %49
  %.0177 = phi i32 [ %61, %59 ], [ %55, %49 ]
  %63 = zext i32 %57 to i64
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %63, i32 noundef %52)
  %64 = zext i32 %3 to i64
  %65 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %64)
  %66 = zext i32 %.1 to i64
  %67 = tail call i32 @i32_load(ptr noundef nonnull %6, i64 noundef %66)
  %68 = add i32 %67, 24
  %69 = and i32 %68, -4194304
  %.not180 = icmp eq i32 %.0177, %69
  br i1 %.not180, label %71, label %70

70:                                               ; preds = %62
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AHadesGC0x3A0x3AwriteBarrierSlow0x28hermes0x3A0x3Avm0x3A0x3AGCPointerBase0x20const0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3AGCCell0x20const0x2A0x29(ptr noundef %0, i32 noundef %50, i32 noundef %68, i32 noundef %65) #3
  br label %71

71:                                               ; preds = %70, %62
  %72 = zext i32 %68 to i64
  tail call void @i32_store(ptr noundef nonnull %6, i64 noundef %72, i32 noundef %65)
  ret i32 %.1
}

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}


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