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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

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

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

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

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

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

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

47:                                               ; preds = %3
  br label %48

48:                                               ; preds = %171, %47
  %49 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %49, 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 %12, align 4, !tbaa !9
  %53 = zext i32 %52 to i64
  %54 = add i64 %53, 4
  %55 = call i32 @i32_load(ptr noundef %51, i64 noundef %54)
  store i32 %55, ptr %12, align 4, !tbaa !9
  %56 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %56, ptr %9, align 4, !tbaa !9
  %57 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %57, ptr %13, align 4, !tbaa !9
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.w2c_hermes, ptr %58, i32 0, i32 6
  %60 = load i32, ptr %13, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = call i32 @i32_load(ptr noundef %59, i64 noundef %61)
  store i32 %62, ptr %13, align 4, !tbaa !9
  %63 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %63, ptr %10, 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 %12, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %65, i64 noundef %67, i32 noundef %68)
  %69 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %69, ptr %12, align 4, !tbaa !9
  %70 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %70, ptr %13, align 4, !tbaa !9
  %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 %12, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 4
  %76 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %72, i64 noundef %75, i32 noundef %76)
  %77 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %77, ptr %12, align 4, !tbaa !9
  store i64 0, ptr %17, align 8, !tbaa !17
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.w2c_hermes, ptr %78, i32 0, i32 6
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = load i64, ptr %17, align 8, !tbaa !17
  call void @i64_store(ptr noundef %79, i64 noundef %81, i64 noundef %82)
  %83 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %83, ptr %12, align 4, !tbaa !9
  store i32 8, ptr %13, align 4, !tbaa !9
  %84 = load i32, ptr %13, align 4, !tbaa !9
  %85 = load i32, ptr %12, align 4, !tbaa !9
  %86 = add i32 %85, %84
  store i32 %86, ptr %12, align 4, !tbaa !9
  %87 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %87, ptr %13, align 4, !tbaa !9
  %88 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %88, ptr %14, align 4, !tbaa !9
  %89 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %89, ptr %15, align 4, !tbaa !9
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = load i32, ptr %12, align 4, !tbaa !9
  %92 = load i32, ptr %13, align 4, !tbaa !9
  %93 = load i32, ptr %14, align 4, !tbaa !9
  %94 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3AESTree0x3A0x3ARecursiveVisitorDispatch0x3Chermes0x3A0x3AES6ClassesTransformations0x2C0x20false0x3E0x3A0x3Avisit0x28hermes0x3A0x3AES6ClassesTransformations0x260x2C0x20hermes0x3A0x3AESTree0x3A0x3ANode0x2A0x2C0x20hermes0x3A0x3AESTree0x3A0x3ANode0x2A0x29(ptr noundef %90, i32 noundef %91, i32 noundef %92, i32 noundef %93, i32 noundef %94)
  %95 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %95, ptr %12, align 4, !tbaa !9
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.w2c_hermes, ptr %96, i32 0, i32 6
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = add i64 %99, 12
  %101 = call i32 @i32_load8_u(ptr noundef %97, i64 noundef %100)
  store i32 %101, ptr %12, align 4, !tbaa !9
  %102 = load i32, ptr %12, align 4, !tbaa !9
  switch i32 %102, label %106 [
    i32 0, label %103
    i32 1, label %104
    i32 2, label %105
  ]

103:                                              ; preds = %48
  br label %122

104:                                              ; preds = %48
  br label %161

105:                                              ; preds = %48
  br label %107

106:                                              ; preds = %48
  br label %244

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

122:                                              ; preds = %103
  %123 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %123, ptr %12, align 4, !tbaa !9
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %12, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = call i32 @i32_load(ptr noundef %125, i64 noundef %127)
  store i32 %128, ptr %12, align 4, !tbaa !9
  br label %129

129:                                              ; preds = %122, %107
  %130 = load i32, ptr %12, 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 %12, align 4, !tbaa !9
  %132 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %132, ptr %13, align 4, !tbaa !9
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.w2c_hermes, ptr %133, i32 0, i32 6
  %135 = load i32, ptr %12, align 4, !tbaa !9
  %136 = zext i32 %135 to i64
  %137 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %134, i64 noundef %136, i32 noundef %137)
  %138 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %138, ptr %12, align 4, !tbaa !9
  %139 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %139, ptr %13, align 4, !tbaa !9
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.w2c_hermes, ptr %140, i32 0, i32 6
  %142 = load i32, ptr %12, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = add i64 %143, 4
  %145 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %141, i64 noundef %144, i32 noundef %145)
  %146 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %146, ptr %12, align 4, !tbaa !9
  %147 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %147, ptr %13, align 4, !tbaa !9
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.w2c_hermes, ptr %148, i32 0, i32 6
  %150 = load i32, ptr %12, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = add i64 %151, 4
  %153 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %149, i64 noundef %152, i32 noundef %153)
  %154 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %154, ptr %12, align 4, !tbaa !9
  %155 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %155, ptr %13, align 4, !tbaa !9
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.w2c_hermes, ptr %156, i32 0, i32 6
  %158 = load i32, ptr %12, align 4, !tbaa !9
  %159 = zext i32 %158 to i64
  %160 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %157, i64 noundef %159, i32 noundef %160)
  br label %161

161:                                              ; preds = %129, %104
  %162 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %162, ptr %12, align 4, !tbaa !9
  %163 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %163, ptr %7, align 4, !tbaa !9
  %164 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %164, ptr %13, align 4, !tbaa !9
  %165 = load i32, ptr %12, align 4, !tbaa !9
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = icmp ne i32 %165, %166
  %168 = zext i1 %167 to i32
  store i32 %168, ptr %12, align 4, !tbaa !9
  %169 = load i32, ptr %12, align 4, !tbaa !9
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %172

171:                                              ; preds = %161
  br label %48

172:                                              ; preds = %161
  br label %173

173:                                              ; preds = %172, %3
  %174 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %174, ptr %12, align 4, !tbaa !9
  %175 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %175, ptr %13, align 4, !tbaa !9
  %176 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %176, ptr %14, 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 %14, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = add i64 %180, 36
  %182 = call i32 @i32_load(ptr noundef %178, i64 noundef %181)
  store i32 %182, ptr %14, align 4, !tbaa !9
  %183 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %183, ptr %15, align 4, !tbaa !9
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = load i32, ptr %12, align 4, !tbaa !9
  %186 = load i32, ptr %13, align 4, !tbaa !9
  %187 = load i32, ptr %14, align 4, !tbaa !9
  %188 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3AESTree0x3A0x3ARecursiveVisitorDispatch0x3Chermes0x3A0x3AES6ClassesTransformations0x2C0x20false0x3E0x3A0x3Avisit0x28hermes0x3A0x3AES6ClassesTransformations0x260x2C0x20hermes0x3A0x3AESTree0x3A0x3ANode0x2A0x2C0x20hermes0x3A0x3AESTree0x3A0x3ANode0x2A0x29(ptr noundef %184, i32 noundef %185, i32 noundef %186, i32 noundef %187, i32 noundef %188)
  store i32 0, ptr %12, align 4, !tbaa !9
  %189 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %189, ptr %7, align 4, !tbaa !9
  %190 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %190, ptr %12, align 4, !tbaa !9
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.w2c_hermes, ptr %191, i32 0, i32 6
  %193 = load i32, ptr %12, align 4, !tbaa !9
  %194 = zext i32 %193 to i64
  %195 = add i64 %194, 4
  %196 = call i32 @i32_load8_u(ptr noundef %192, i64 noundef %195)
  store i32 %196, ptr %12, align 4, !tbaa !9
  %197 = load i32, ptr %12, align 4, !tbaa !9
  switch i32 %197, label %201 [
    i32 0, label %198
    i32 1, label %199
    i32 2, label %200
  ]

198:                                              ; preds = %173
  br label %236

199:                                              ; preds = %173
  br label %227

200:                                              ; preds = %173
  br label %219

201:                                              ; preds = %173
  br label %202

202:                                              ; preds = %201
  store i32 0, ptr %12, align 4, !tbaa !9
  store i32 195471, ptr %13, align 4, !tbaa !9
  %203 = load i32, ptr %13, align 4, !tbaa !9
  %204 = load i32, ptr %12, align 4, !tbaa !9
  %205 = add i32 %204, %203
  store i32 %205, ptr %12, align 4, !tbaa !9
  %206 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %206, ptr %13, align 4, !tbaa !9
  store i32 79034, ptr %14, align 4, !tbaa !9
  %207 = load i32, ptr %14, align 4, !tbaa !9
  %208 = load i32, ptr %13, align 4, !tbaa !9
  %209 = add i32 %208, %207
  store i32 %209, ptr %13, align 4, !tbaa !9
  store i32 282, ptr %14, align 4, !tbaa !9
  %210 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %210, ptr %15, align 4, !tbaa !9
  store i32 28109, ptr %16, align 4, !tbaa !9
  %211 = load i32, ptr %16, align 4, !tbaa !9
  %212 = load i32, ptr %15, align 4, !tbaa !9
  %213 = add i32 %212, %211
  store i32 %213, ptr %15, align 4, !tbaa !9
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = load i32, ptr %12, align 4, !tbaa !9
  %216 = load i32, ptr %13, align 4, !tbaa !9
  %217 = load i32, ptr %14, align 4, !tbaa !9
  %218 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %214, i32 noundef %215, i32 noundef %216, i32 noundef %217, i32 noundef %218)
  call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

219:                                              ; preds = %200
  %220 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %220, ptr %12, align 4, !tbaa !9
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.w2c_hermes, ptr %221, i32 0, i32 6
  %223 = load i32, ptr %12, align 4, !tbaa !9
  %224 = zext i32 %223 to i64
  %225 = call i32 @i32_load(ptr noundef %222, i64 noundef %224)
  store i32 %225, ptr %12, align 4, !tbaa !9
  %226 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %226, ptr %7, align 4, !tbaa !9
  br label %227

227:                                              ; preds = %219, %199
  %228 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %228, ptr %12, align 4, !tbaa !9
  %229 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %229, ptr %13, 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 = add i64 %233, 36
  %235 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %231, i64 noundef %234, i32 noundef %235)
  br label %236

236:                                              ; preds = %227, %198
  %237 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %237, ptr %12, align 4, !tbaa !9
  store i32 16, ptr %13, align 4, !tbaa !9
  %238 = load i32, ptr %13, align 4, !tbaa !9
  %239 = load i32, ptr %12, align 4, !tbaa !9
  %240 = add i32 %239, %238
  store i32 %240, ptr %12, align 4, !tbaa !9
  %241 = load i32, ptr %12, align 4, !tbaa !9
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.w2c_hermes, ptr %242, i32 0, i32 3
  store i32 %241, ptr %243, align 8, !tbaa !11
  br label %262

244:                                              ; preds = %106
  store i32 0, ptr %12, align 4, !tbaa !9
  %245 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %245, ptr %7, align 4, !tbaa !9
  store i32 195392, ptr %13, align 4, !tbaa !9
  %246 = load i32, ptr %13, align 4, !tbaa !9
  %247 = load i32, ptr %12, align 4, !tbaa !9
  %248 = add i32 %247, %246
  store i32 %248, ptr %12, align 4, !tbaa !9
  %249 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %249, ptr %13, align 4, !tbaa !9
  store i32 79034, ptr %14, align 4, !tbaa !9
  %250 = load i32, ptr %14, align 4, !tbaa !9
  %251 = load i32, ptr %13, align 4, !tbaa !9
  %252 = add i32 %251, %250
  store i32 %252, ptr %13, align 4, !tbaa !9
  store i32 254, ptr %14, align 4, !tbaa !9
  %253 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %253, ptr %15, align 4, !tbaa !9
  store i32 28103, ptr %16, align 4, !tbaa !9
  %254 = load i32, ptr %16, align 4, !tbaa !9
  %255 = load i32, ptr %15, align 4, !tbaa !9
  %256 = add i32 %255, %254
  store i32 %256, ptr %15, align 4, !tbaa !9
  %257 = load ptr, ptr %4, align 8, !tbaa !5
  %258 = load i32, ptr %12, align 4, !tbaa !9
  %259 = load i32, ptr %13, align 4, !tbaa !9
  %260 = load i32, ptr %14, align 4, !tbaa !9
  %261 = load i32, ptr %15, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %257, i32 noundef %258, i32 noundef %259, i32 noundef %260, i32 noundef %261)
  call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

262:                                              ; preds = %236
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { 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, !10, i64 24}
!12 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !13, i64 40, !16, i64 80}
!13 = !{!"", !6, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !15, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!17 = !{!14, !14, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3AESTree0x3A0x3ARecursiveVisitorDispatch0x3Chermes0x3A0x3AES6ClassesTransformations0x2C0x20false0x3E0x3A0x3AvisitChildren0x28hermes0x3A0x3AES6ClassesTransformations0x260x2C0x20hermes0x3A0x3AESTree0x3A0x3AInterfaceTypeAnnotationNode0x2A0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = add i32 %5, -16
  store i32 %6, ptr %4, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = zext i32 %2 to i64
  %9 = add nuw nsw i64 %8, 32
  %10 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %9)
  %11 = add i32 %2, 28
  %.not = icmp eq i32 %10, %11
  br i1 %.not, label %..loopexit_crit_edge, label %.preheader

..loopexit_crit_edge:                             ; preds = %3
  %.pre151 = zext i32 %6 to i64
  br label %.loopexit

.preheader:                                       ; preds = %3
  %12 = add i32 %5, -8
  %13 = zext i32 %6 to i64
  %14 = add nuw nsw i64 %13, 12
  %15 = add nuw nsw i64 %13, 8
  br label %16

16:                                               ; preds = %.preheader, %33
  %.0 = phi i32 [ %19, %33 ], [ %10, %.preheader ]
  %17 = zext i32 %.0 to i64
  %18 = add nuw nsw i64 %17, 4
  %19 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %18)
  %20 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %17)
  %21 = zext i32 %19 to i64
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %21, i32 noundef %20)
  %22 = zext i32 %20 to i64
  %23 = add nuw nsw i64 %22, 4
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %23, i32 noundef %19)
  tail call void @i64_store(ptr noundef nonnull %7, i64 noundef %17, i64 noundef 0)
  tail call void @w2c_hermes_hermes0x3A0x3AESTree0x3A0x3ARecursiveVisitorDispatch0x3Chermes0x3A0x3AES6ClassesTransformations0x2C0x20false0x3E0x3A0x3Avisit0x28hermes0x3A0x3AES6ClassesTransformations0x260x2C0x20hermes0x3A0x3AESTree0x3A0x3ANode0x2A0x2C0x20hermes0x3A0x3AESTree0x3A0x3ANode0x2A0x29(ptr noundef %0, i32 noundef %12, i32 noundef %1, i32 noundef %.0, i32 noundef %2)
  %24 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef %14)
  switch i32 %24, label %43 [
    i32 0, label %28
    i32 1, label %33
    i32 2, label %25
  ]

25:                                               ; preds = %16
  %26 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %15)
  %27 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %21)
  %.pre = zext i32 %26 to i64
  %.pre149 = add nuw nsw i64 %.pre, 4
  br label %30

28:                                               ; preds = %16
  %29 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %21)
  br label %30

30:                                               ; preds = %28, %25
  %.pre-phi150 = phi i64 [ %18, %28 ], [ %.pre149, %25 ]
  %.pre-phi = phi i64 [ %17, %28 ], [ %.pre, %25 ]
  %.0145 = phi i32 [ %29, %28 ], [ %27, %25 ]
  %.1 = phi i32 [ %.0, %28 ], [ %26, %25 ]
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %.pre-phi, i32 noundef %.0145)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %.pre-phi150, i32 noundef %19)
  %31 = zext i32 %.0145 to i64
  %32 = add nuw nsw i64 %31, 4
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %32, i32 noundef %.1)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %21, i32 noundef %.1)
  br label %33

33:                                               ; preds = %16, %30
  %.not148 = icmp eq i32 %19, %11
  br i1 %.not148, label %.loopexit, label %16

.loopexit:                                        ; preds = %33, %..loopexit_crit_edge
  %.pre-phi152 = phi i64 [ %.pre151, %..loopexit_crit_edge ], [ %13, %33 ]
  %34 = add nuw nsw i64 %8, 36
  %35 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %34)
  tail call void @w2c_hermes_hermes0x3A0x3AESTree0x3A0x3ARecursiveVisitorDispatch0x3Chermes0x3A0x3AES6ClassesTransformations0x2C0x20false0x3E0x3A0x3Avisit0x28hermes0x3A0x3AES6ClassesTransformations0x260x2C0x20hermes0x3A0x3AESTree0x3A0x3ANode0x2A0x2C0x20hermes0x3A0x3AESTree0x3A0x3ANode0x2A0x29(ptr noundef %0, i32 noundef %6, i32 noundef %1, i32 noundef %35, i32 noundef %2)
  %36 = add nuw nsw i64 %.pre-phi152, 4
  %37 = tail call i32 @i32_load8_u(ptr noundef nonnull %7, i64 noundef %36)
  switch i32 %37, label %38 [
    i32 0, label %42
    i32 1, label %41
    i32 2, label %39
  ]

38:                                               ; preds = %.loopexit
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 195471, i32 noundef 79034, i32 noundef 282, i32 noundef 28109)
  tail call void @wasm_rt_trap(i32 noundef 5) #3
  unreachable

39:                                               ; preds = %.loopexit
  %40 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %.pre-phi152)
  br label %41

41:                                               ; preds = %.loopexit, %39
  %.2 = phi i32 [ %40, %39 ], [ 0, %.loopexit ]
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %34, i32 noundef %.2)
  br label %42

42:                                               ; preds = %.loopexit, %41
  store i32 %5, ptr %4, align 8, !tbaa !5
  ret void

43:                                               ; preds = %16
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 195392, i32 noundef 79034, i32 noundef 254, i32 noundef 28103)
  tail call void @wasm_rt_trap(i32 noundef 5) #3
  unreachable
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}


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