; 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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3AFunction0x3A0x3AgetDefinitionKindStr0x28bool0x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #4 {
  %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 i32, align 4
  %14 = alloca i32, align 4
  %15 = 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
  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 8, ptr %15) #5
  %16 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %16, ptr %10, align 4, !tbaa !9
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.w2c_hermes, ptr %17, i32 0, i32 6
  %19 = load i32, ptr %10, align 4, !tbaa !9
  %20 = zext i32 %19 to i64
  %21 = add i64 %20, 104
  %22 = call i32 @i32_load(ptr noundef %18, i64 noundef %21)
  store i32 %22, ptr %10, align 4, !tbaa !9
  %23 = load i32, ptr %10, align 4, !tbaa !9
  switch i32 %23, label %28 [
    i32 0, label %24
    i32 1, label %25
    i32 2, label %26
    i32 3, label %27
  ]

24:                                               ; preds = %4
  br label %226

25:                                               ; preds = %4
  br label %29

26:                                               ; preds = %4
  br label %80

27:                                               ; preds = %4
  br label %167

28:                                               ; preds = %4
  br label %208

29:                                               ; preds = %25
  %30 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %30, ptr %10, align 4, !tbaa !9
  store i32 16, ptr %11, align 4, !tbaa !9
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = load i32, ptr %11, align 4, !tbaa !9
  %33 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %31, i32 noundef %32)
  store i32 %33, ptr %11, align 4, !tbaa !9
  %34 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %34, ptr %7, align 4, !tbaa !9
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.w2c_hermes, ptr %35, i32 0, i32 6
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = zext i32 %37 to i64
  %39 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %36, i64 noundef %38, i32 noundef %39)
  %40 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %40, ptr %10, align 4, !tbaa !9
  store i64 -9223371968135299061, ptr %15, align 8, !tbaa !11
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.w2c_hermes, ptr %41, i32 0, i32 6
  %43 = load i32, ptr %10, align 4, !tbaa !9
  %44 = zext i32 %43 to i64
  %45 = add i64 %44, 4
  %46 = load i64, ptr %15, align 8, !tbaa !11
  call void @i64_store(ptr noundef %42, i64 noundef %45, i64 noundef %46)
  %47 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %47, ptr %10, align 4, !tbaa !9
  store i32 46980, ptr %11, align 4, !tbaa !9
  %48 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %48, ptr %6, align 4, !tbaa !9
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.w2c_hermes, ptr %49, i32 0, i32 6
  %51 = load i32, ptr %11, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = call i64 @i64_load(ptr noundef %50, i64 noundef %52)
  store i64 %53, ptr %15, align 8, !tbaa !11
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.w2c_hermes, ptr %54, i32 0, i32 6
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = zext i32 %56 to i64
  %58 = load i64, ptr %15, align 8, !tbaa !11
  call void @i64_store(ptr noundef %55, i64 noundef %57, i64 noundef %58)
  %59 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %59, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.w2c_hermes, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %10, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = add i64 %63, 11
  %65 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %61, i64 noundef %64, i32 noundef %65)
  %66 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %66, ptr %10, align 4, !tbaa !9
  %67 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %67, ptr %11, align 4, !tbaa !9
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.w2c_hermes, ptr %68, i32 0, i32 6
  %70 = load i32, ptr %11, align 4, !tbaa !9
  %71 = zext i32 %70 to i64
  %72 = add i64 %71, 7
  %73 = call i32 @i32_load(ptr noundef %69, i64 noundef %72)
  store i32 %73, ptr %11, align 4, !tbaa !9
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.w2c_hermes, ptr %74, i32 0, i32 6
  %76 = load i32, ptr %10, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = add i64 %77, 7
  %79 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %75, i64 noundef %78, i32 noundef %79)
  br label %247

80:                                               ; preds = %26
  store i32 14, ptr %10, align 4, !tbaa !9
  store i32 5, ptr %11, align 4, !tbaa !9
  %81 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %81, ptr %12, align 4, !tbaa !9
  %82 = load i32, ptr %12, align 4, !tbaa !9
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %86

84:                                               ; preds = %80
  %85 = load i32, ptr %10, align 4, !tbaa !9
  br label %88

86:                                               ; preds = %80
  %87 = load i32, ptr %11, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %86, %84
  %89 = phi i32 [ %85, %84 ], [ %87, %86 ]
  store i32 %89, ptr %10, align 4, !tbaa !9
  %90 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %90, ptr %7, align 4, !tbaa !9
  store i32 0, ptr %10, align 4, !tbaa !9
  store i32 65402, ptr %11, align 4, !tbaa !9
  %91 = load i32, ptr %11, align 4, !tbaa !9
  %92 = load i32, ptr %10, align 4, !tbaa !9
  %93 = add i32 %92, %91
  store i32 %93, ptr %10, align 4, !tbaa !9
  %94 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %94, ptr %11, align 4, !tbaa !9
  store i32 20456, ptr %12, align 4, !tbaa !9
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = add i32 %96, %95
  store i32 %97, ptr %11, align 4, !tbaa !9
  %98 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %98, ptr %12, align 4, !tbaa !9
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %103

101:                                              ; preds = %88
  %102 = load i32, ptr %10, align 4, !tbaa !9
  br label %105

103:                                              ; preds = %88
  %104 = load i32, ptr %11, align 4, !tbaa !9
  br label %105

105:                                              ; preds = %103, %101
  %106 = phi i32 [ %102, %101 ], [ %104, %103 ]
  store i32 %106, ptr %10, align 4, !tbaa !9
  %107 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %107, ptr %9, align 4, !tbaa !9
  %108 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %108, ptr %10, align 4, !tbaa !9
  %109 = load i32, ptr %10, align 4, !tbaa !9
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %138

111:                                              ; preds = %105
  store i32 16, ptr %10, align 4, !tbaa !9
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = load i32, ptr %10, align 4, !tbaa !9
  %114 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %112, i32 noundef %113)
  store i32 %114, ptr %10, align 4, !tbaa !9
  %115 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %115, ptr %8, align 4, !tbaa !9
  %116 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %116, ptr %10, align 4, !tbaa !9
  store i32 -2147483632, ptr %11, align 4, !tbaa !9
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.w2c_hermes, ptr %117, i32 0, i32 6
  %119 = load i32, ptr %10, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = add i64 %120, 8
  %122 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %118, i64 noundef %121, i32 noundef %122)
  %123 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %123, ptr %10, align 4, !tbaa !9
  %124 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %124, ptr %11, align 4, !tbaa !9
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.w2c_hermes, ptr %125, i32 0, i32 6
  %127 = load i32, ptr %10, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %126, i64 noundef %128, i32 noundef %129)
  %130 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %130, ptr %10, align 4, !tbaa !9
  %131 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %131, ptr %11, align 4, !tbaa !9
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.w2c_hermes, ptr %132, i32 0, i32 6
  %134 = load i32, ptr %10, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = add i64 %135, 4
  %137 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %133, i64 noundef %136, i32 noundef %137)
  br label %149

138:                                              ; preds = %105
  %139 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %139, ptr %10, align 4, !tbaa !9
  %140 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %140, ptr %11, align 4, !tbaa !9
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.w2c_hermes, ptr %141, i32 0, i32 6
  %143 = load i32, ptr %10, align 4, !tbaa !9
  %144 = zext i32 %143 to i64
  %145 = add i64 %144, 11
  %146 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %142, i64 noundef %145, i32 noundef %146)
  %147 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %147, ptr %10, align 4, !tbaa !9
  %148 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %148, ptr %8, align 4, !tbaa !9
  br label %149

149:                                              ; preds = %138, %111
  %150 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %150, ptr %10, align 4, !tbaa !9
  %151 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %151, ptr %11, align 4, !tbaa !9
  %152 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %152, ptr %12, align 4, !tbaa !9
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = load i32, ptr %10, align 4, !tbaa !9
  %155 = load i32, ptr %11, align 4, !tbaa !9
  %156 = load i32, ptr %12, align 4, !tbaa !9
  %157 = call i32 @w2c_hermes_0x5F_memcpy(ptr noundef %153, i32 noundef %154, i32 noundef %155, i32 noundef %156)
  store i32 %157, ptr %10, align 4, !tbaa !9
  %158 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %158, ptr %11, align 4, !tbaa !9
  %159 = load i32, ptr %11, align 4, !tbaa !9
  %160 = load i32, ptr %10, align 4, !tbaa !9
  %161 = add i32 %160, %159
  store i32 %161, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  %162 = load ptr, ptr %5, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.w2c_hermes, ptr %162, i32 0, i32 6
  %164 = load i32, ptr %10, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %163, i64 noundef %165, i32 noundef %166)
  br label %247

167:                                              ; preds = %27
  %168 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %168, ptr %10, align 4, !tbaa !9
  store i32 6, ptr %11, align 4, !tbaa !9
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.w2c_hermes, ptr %169, i32 0, i32 6
  %171 = load i32, ptr %10, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = add i64 %172, 11
  %174 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %170, i64 noundef %173, i32 noundef %174)
  %175 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %175, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.w2c_hermes, ptr %176, i32 0, i32 6
  %178 = load i32, ptr %10, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = add i64 %179, 6
  %181 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %177, i64 noundef %180, i32 noundef %181)
  %182 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %182, ptr %10, align 4, !tbaa !9
  store i32 102548, ptr %11, align 4, !tbaa !9
  %183 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %183, ptr %7, align 4, !tbaa !9
  %184 = load ptr, ptr %5, 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 = call i32 @i32_load(ptr noundef %185, i64 noundef %187)
  store i32 %188, ptr %11, align 4, !tbaa !9
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.w2c_hermes, ptr %189, i32 0, i32 6
  %191 = load i32, ptr %10, align 4, !tbaa !9
  %192 = zext i32 %191 to i64
  %193 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store(ptr noundef %190, i64 noundef %192, i32 noundef %193)
  %194 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %194, ptr %10, align 4, !tbaa !9
  %195 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %195, ptr %11, align 4, !tbaa !9
  %196 = load ptr, ptr %5, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.w2c_hermes, ptr %196, i32 0, i32 6
  %198 = load i32, ptr %11, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = add i64 %199, 4
  %201 = call i32 @i32_load16_u(ptr noundef %197, i64 noundef %200)
  store i32 %201, ptr %11, align 4, !tbaa !9
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.w2c_hermes, ptr %202, i32 0, i32 6
  %204 = load i32, ptr %10, align 4, !tbaa !9
  %205 = zext i32 %204 to i64
  %206 = add i64 %205, 4
  %207 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store16(ptr noundef %203, i64 noundef %206, i32 noundef %207)
  br label %247

208:                                              ; preds = %28
  store i32 0, ptr %10, align 4, !tbaa !9
  %209 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %209, ptr %6, align 4, !tbaa !9
  store i32 175373, ptr %11, align 4, !tbaa !9
  %210 = load i32, ptr %11, align 4, !tbaa !9
  %211 = load i32, ptr %10, align 4, !tbaa !9
  %212 = add i32 %211, %210
  store i32 %212, ptr %10, align 4, !tbaa !9
  %213 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %213, ptr %11, align 4, !tbaa !9
  store i32 62264, ptr %12, align 4, !tbaa !9
  %214 = load i32, ptr %12, align 4, !tbaa !9
  %215 = load i32, ptr %11, align 4, !tbaa !9
  %216 = add i32 %215, %214
  store i32 %216, ptr %11, align 4, !tbaa !9
  store i32 217, ptr %12, align 4, !tbaa !9
  %217 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %217, ptr %13, align 4, !tbaa !9
  store i32 45937, ptr %14, align 4, !tbaa !9
  %218 = load i32, ptr %14, align 4, !tbaa !9
  %219 = load i32, ptr %13, align 4, !tbaa !9
  %220 = add i32 %219, %218
  store i32 %220, ptr %13, align 4, !tbaa !9
  %221 = load ptr, ptr %5, align 8, !tbaa !5
  %222 = load i32, ptr %10, align 4, !tbaa !9
  %223 = load i32, ptr %11, align 4, !tbaa !9
  %224 = load i32, ptr %12, align 4, !tbaa !9
  %225 = load i32, ptr %13, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %221, i32 noundef %222, i32 noundef %223, i32 noundef %224, i32 noundef %225)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

226:                                              ; preds = %24
  %227 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %227, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  %228 = load ptr, ptr %5, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.w2c_hermes, ptr %228, i32 0, i32 6
  %230 = load i32, ptr %10, align 4, !tbaa !9
  %231 = zext i32 %230 to i64
  %232 = add i64 %231, 8
  %233 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %229, i64 noundef %232, i32 noundef %233)
  %234 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %234, ptr %10, align 4, !tbaa !9
  store i64 7957695015192261990, ptr %15, align 8, !tbaa !11
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.w2c_hermes, ptr %235, i32 0, i32 6
  %237 = load i32, ptr %10, align 4, !tbaa !9
  %238 = zext i32 %237 to i64
  %239 = load i64, ptr %15, align 8, !tbaa !11
  call void @i64_store(ptr noundef %236, i64 noundef %238, i64 noundef %239)
  %240 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %240, ptr %10, align 4, !tbaa !9
  store i32 8, ptr %11, align 4, !tbaa !9
  %241 = load ptr, ptr %5, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.w2c_hermes, ptr %241, i32 0, i32 6
  %243 = load i32, ptr %10, align 4, !tbaa !9
  %244 = zext i32 %243 to i64
  %245 = add i64 %244, 11
  %246 = load i32, ptr %11, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %242, i64 noundef %245, i32 noundef %246)
  br label %247

247:                                              ; preds = %226, %167, %149, %29
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void
}

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3AFunction0x3A0x3AgetDefinitionKindStr0x28bool0x290x20const(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #3 {
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = zext i32 %2 to i64
  %7 = add nuw nsw i64 %6, 104
  %8 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %7)
  switch i32 %8, label %40 [
    i32 0, label %41
    i32 1, label %9
    i32 2, label %18
    i32 3, label %33
  ]

9:                                                ; preds = %4
  %10 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef 16) #4
  %11 = zext i32 %1 to i64
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %11, i32 noundef %10)
  %12 = add nuw nsw i64 %11, 4
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %12, i64 noundef -9223371968135299061)
  %13 = tail call i64 @i64_load(ptr noundef nonnull %5, i64 noundef 46980)
  %14 = zext i32 %10 to i64
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %14, i64 noundef %13)
  %15 = add nuw nsw i64 %14, 11
  tail call void @i32_store8(ptr noundef nonnull %5, i64 noundef %15, i32 noundef 0)
  %16 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef 46987)
  %17 = add nuw nsw i64 %14, 7
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %17, i32 noundef %16)
  br label %45

18:                                               ; preds = %4
  %.not = icmp eq i32 %3, 0
  %19 = select i1 %.not, i32 5, i32 14
  %20 = select i1 %.not, i32 20456, i32 65402
  br i1 %.not, label %26, label %21

21:                                               ; preds = %18
  %22 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef 16) #4
  %23 = zext i32 %1 to i64
  %24 = add nuw nsw i64 %23, 8
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %24, i32 noundef -2147483632)
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %23, i32 noundef %22)
  %25 = add nuw nsw i64 %23, 4
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %25, i32 noundef 14)
  br label %29

26:                                               ; preds = %18
  %27 = zext i32 %1 to i64
  %28 = add nuw nsw i64 %27, 11
  tail call void @i32_store8(ptr noundef nonnull %5, i64 noundef %28, i32 noundef 5)
  br label %29

29:                                               ; preds = %26, %21
  %.0 = phi i32 [ %22, %21 ], [ %1, %26 ]
  %30 = tail call i32 @w2c_hermes_0x5F_memcpy(ptr noundef %0, i32 noundef %.0, i32 noundef %20, i32 noundef %19) #4
  %31 = add i32 %30, %19
  %32 = zext i32 %31 to i64
  tail call void @i32_store8(ptr noundef nonnull %5, i64 noundef %32, i32 noundef 0)
  br label %45

33:                                               ; preds = %4
  %34 = zext i32 %1 to i64
  %35 = add nuw nsw i64 %34, 11
  tail call void @i32_store8(ptr noundef nonnull %5, i64 noundef %35, i32 noundef 6)
  %36 = add nuw nsw i64 %34, 6
  tail call void @i32_store8(ptr noundef nonnull %5, i64 noundef %36, i32 noundef 0)
  %37 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef 102548)
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %34, i32 noundef %37)
  %38 = tail call i32 @i32_load16_u(ptr noundef nonnull %5, i64 noundef 102552)
  %39 = add nuw nsw i64 %34, 4
  tail call void @i32_store16(ptr noundef nonnull %5, i64 noundef %39, i32 noundef %38)
  br label %45

40:                                               ; preds = %4
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 175373, i32 noundef 62264, i32 noundef 217, i32 noundef 45937) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

41:                                               ; preds = %4
  %42 = zext i32 %1 to i64
  %43 = add nuw nsw i64 %42, 8
  tail call void @i32_store8(ptr noundef nonnull %5, i64 noundef %43, i32 noundef 0)
  tail call void @i64_store(ptr noundef nonnull %5, i64 noundef %42, i64 noundef 7957695015192261990)
  %44 = add nuw nsw i64 %42, 11
  tail call void @i32_store8(ptr noundef nonnull %5, i64 noundef %44, i32 noundef 8)
  br label %45

45:                                               ; preds = %41, %33, %29, %9
  ret void
}

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: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass