; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_opt_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 }
%struct.wasm_rt_funcref_t = type { ptr, ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #4

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3AFunction0x3A0x3A0x7EFunction0x280x29(ptr noundef %0, i32 noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %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 i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %13 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %13, ptr %9, align 4, !tbaa !9
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.w2c_hermes, ptr %14, i32 0, i32 6
  %16 = load i32, ptr %9, align 4, !tbaa !9
  %17 = zext i32 %16 to i64
  %18 = add i64 %17, 60
  %19 = call i32 @i32_load(ptr noundef %15, i64 noundef %18)
  store i32 %19, ptr %9, align 4, !tbaa !9
  %20 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %20, ptr %6, align 4, !tbaa !9
  %21 = load i32, ptr %9, align 4, !tbaa !9
  %22 = icmp ne i32 %21, 0
  br i1 %22, label %23, label %64

23:                                               ; preds = %2
  %24 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %24, ptr %9, align 4, !tbaa !9
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.w2c_hermes, ptr %25, i32 0, i32 6
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = zext i32 %27 to i64
  %29 = add i64 %28, 56
  %30 = call i32 @i32_load(ptr noundef %26, i64 noundef %29)
  store i32 %30, ptr %9, align 4, !tbaa !9
  %31 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %31, ptr %5, align 4, !tbaa !9
  %32 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %32, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %11, align 4, !tbaa !9
  %33 = load i32, ptr %11, align 4, !tbaa !9
  %34 = and i32 %33, 31
  %35 = load i32, ptr %10, align 4, !tbaa !9
  %36 = shl i32 %35, %34
  store i32 %36, ptr %10, align 4, !tbaa !9
  %37 = load i32, ptr %10, align 4, !tbaa !9
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = add i32 %38, %37
  store i32 %39, ptr %9, align 4, !tbaa !9
  %40 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %40, ptr %6, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %62, %23
  %42 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %42, ptr %9, align 4, !tbaa !9
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.w2c_hermes, ptr %43, i32 0, i32 6
  %45 = load i32, ptr %9, align 4, !tbaa !9
  %46 = zext i32 %45 to i64
  %47 = call i32 @i32_load(ptr noundef %44, i64 noundef %46)
  store i32 %47, ptr %9, align 4, !tbaa !9
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3AValue0x3A0x3Adestroy0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %48, i32 noundef %49)
  %50 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %50, ptr %9, align 4, !tbaa !9
  store i32 4, ptr %10, align 4, !tbaa !9
  %51 = load i32, ptr %10, align 4, !tbaa !9
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = add i32 %52, %51
  store i32 %53, ptr %9, align 4, !tbaa !9
  %54 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %54, ptr %5, align 4, !tbaa !9
  %55 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %55, ptr %10, align 4, !tbaa !9
  %56 = load i32, ptr %9, align 4, !tbaa !9
  %57 = load i32, ptr %10, align 4, !tbaa !9
  %58 = icmp ne i32 %56, %57
  %59 = zext i1 %58 to i32
  store i32 %59, ptr %9, align 4, !tbaa !9
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %63

62:                                               ; preds = %41
  br label %41

63:                                               ; preds = %41
  br label %64

64:                                               ; preds = %63, %2
  %65 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %65, ptr %9, align 4, !tbaa !9
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.w2c_hermes, ptr %66, i32 0, i32 6
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = zext i32 %68 to i64
  %70 = add i64 %69, 128
  %71 = call i32 @i32_load(ptr noundef %67, i64 noundef %70)
  store i32 %71, ptr %9, align 4, !tbaa !9
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3AValue0x3A0x3Adestroy0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %72, i32 noundef %73)
  %74 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %74, ptr %9, align 4, !tbaa !9
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.w2c_hermes, ptr %75, i32 0, i32 6
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = add i64 %78, 168
  %80 = call i32 @i32_load(ptr noundef %76, i64 noundef %79)
  store i32 %80, ptr %9, align 4, !tbaa !9
  %81 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %81, ptr %5, align 4, !tbaa !9
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = icmp ne i32 %82, 0
  %84 = xor i1 %83, true
  %85 = zext i1 %84 to i32
  store i32 %85, ptr %9, align 4, !tbaa !9
  %86 = load i32, ptr %9, align 4, !tbaa !9
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %64
  br label %189

89:                                               ; preds = %64
  %90 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %90, ptr %9, align 4, !tbaa !9
  %91 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %91, ptr %10, align 4, !tbaa !9
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.w2c_hermes, ptr %92, i32 0, i32 6
  %94 = load i32, ptr %10, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = add i64 %95, 4
  %97 = call i32 @i32_load(ptr noundef %93, i64 noundef %96)
  store i32 %97, ptr %10, align 4, !tbaa !9
  %98 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %98, ptr %6, align 4, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !9
  %99 = load i32, ptr %11, align 4, !tbaa !9
  %100 = load i32, ptr %10, align 4, !tbaa !9
  %101 = sub i32 %100, %99
  store i32 %101, ptr %10, align 4, !tbaa !9
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.w2c_hermes, ptr %102, i32 0, i32 6
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = add i64 %105, 4
  %107 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %103, i64 noundef %106, i32 noundef %107)
  %108 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %108, ptr %9, align 4, !tbaa !9
  %109 = load i32, ptr %9, align 4, !tbaa !9
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %112

111:                                              ; preds = %89
  br label %189

112:                                              ; preds = %89
  %113 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %113, ptr %9, align 4, !tbaa !9
  %114 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %114, ptr %10, align 4, !tbaa !9
  %115 = load ptr, ptr %3, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.w2c_hermes, ptr %115, i32 0, i32 6
  %117 = load i32, ptr %10, align 4, !tbaa !9
  %118 = zext i32 %117 to i64
  %119 = call i32 @i32_load(ptr noundef %116, i64 noundef %118)
  store i32 %119, ptr %10, align 4, !tbaa !9
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.w2c_hermes, ptr %120, i32 0, i32 6
  %122 = load i32, ptr %10, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = add i64 %123, 8
  %125 = call i32 @i32_load(ptr noundef %121, i64 noundef %124)
  store i32 %125, ptr %10, align 4, !tbaa !9
  %126 = load i32, ptr %10, align 4, !tbaa !9
  %127 = load ptr, ptr %3, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.w2c_hermes, ptr %127, i32 0, i32 7
  %129 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %128, i32 0, i32 2
  %130 = load i32, ptr %129, align 4, !tbaa !11
  %131 = icmp ult i32 %126, %130
  br i1 %131, label %132, label %154

132:                                              ; preds = %112
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.w2c_hermes, ptr %133, i32 0, i32 7
  %135 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %134, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8, !tbaa !17
  %137 = load i32, ptr %10, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %136, i64 %138
  %140 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %139, i32 0, i32 1
  %141 = load ptr, ptr %140, align 8, !tbaa !18
  %142 = icmp ne ptr %141, null
  br i1 %142, label %143, label %154

143:                                              ; preds = %132
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.w2c_hermes, ptr %144, i32 0, i32 7
  %146 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %145, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8, !tbaa !17
  %148 = load i32, ptr %10, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %147, i64 %149
  %151 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %150, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8, !tbaa !20
  %153 = call zeroext i1 @func_types_eq(ptr noundef @.str.3, ptr noundef %152)
  br label %154

154:                                              ; preds = %143, %132, %112
  %155 = phi i1 [ false, %132 ], [ false, %112 ], [ %153, %143 ]
  %156 = xor i1 %155, true
  %157 = xor i1 %156, true
  %158 = zext i1 %157 to i32
  %159 = sext i32 %158 to i64
  %160 = call i64 @llvm.expect.i64(i64 %159, i64 1)
  %161 = icmp ne i64 %160, 0
  br i1 %161, label %164, label %162

162:                                              ; preds = %154
  call void @wasm_rt_trap(i32 noundef 6) #7
  unreachable

163:                                              ; No predecessors!
  br label %164

164:                                              ; preds = %163, %154
  %165 = phi i1 [ true, %154 ], [ false, %163 ]
  %166 = zext i1 %165 to i32
  %167 = load ptr, ptr %3, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.w2c_hermes, ptr %167, i32 0, i32 7
  %169 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %168, i32 0, i32 0
  %170 = load ptr, ptr %169, align 8, !tbaa !17
  %171 = load i32, ptr %10, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %170, i64 %172
  %174 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %173, i32 0, i32 1
  %175 = load ptr, ptr %174, align 8, !tbaa !18
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.w2c_hermes, ptr %176, i32 0, i32 7
  %178 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %177, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8, !tbaa !17
  %180 = load i32, ptr %10, align 4, !tbaa !9
  %181 = zext i32 %180 to i64
  %182 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %179, i64 %181
  %183 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %182, i32 0, i32 2
  %184 = load ptr, ptr %183, align 8, !tbaa !21
  %185 = load i32, ptr %9, align 4, !tbaa !9
  call void %175(ptr noundef %184, i32 noundef %185)
  %186 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %186, ptr %9, align 4, !tbaa !9
  %187 = load ptr, ptr %3, align 8, !tbaa !5
  %188 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fshared_weak_count0x3A0x3A_0x5Frelease_weak0x280x29(ptr noundef %187, i32 noundef %188)
  br label %189

189:                                              ; preds = %164, %111, %88
  %190 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %190, ptr %9, align 4, !tbaa !9
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.w2c_hermes, ptr %191, i32 0, i32 6
  %193 = load i32, ptr %9, align 4, !tbaa !9
  %194 = zext i32 %193 to i64
  %195 = add i64 %194, 56
  %196 = call i32 @i32_load(ptr noundef %192, i64 noundef %195)
  store i32 %196, ptr %9, align 4, !tbaa !9
  %197 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %197, ptr %6, align 4, !tbaa !9
  %198 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %198, ptr %10, align 4, !tbaa !9
  store i32 68, ptr %11, align 4, !tbaa !9
  %199 = load i32, ptr %11, align 4, !tbaa !9
  %200 = load i32, ptr %10, align 4, !tbaa !9
  %201 = add i32 %200, %199
  store i32 %201, ptr %10, align 4, !tbaa !9
  %202 = load i32, ptr %9, align 4, !tbaa !9
  %203 = load i32, ptr %10, align 4, !tbaa !9
  %204 = icmp ne i32 %202, %203
  %205 = zext i1 %204 to i32
  store i32 %205, ptr %9, align 4, !tbaa !9
  %206 = load i32, ptr %9, align 4, !tbaa !9
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %212

208:                                              ; preds = %189
  %209 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %209, ptr %9, align 4, !tbaa !9
  %210 = load ptr, ptr %3, align 8, !tbaa !5
  %211 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %210, i32 noundef %211)
  br label %212

212:                                              ; preds = %208, %189
  %213 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %213, ptr %9, align 4, !tbaa !9
  %214 = load ptr, ptr %3, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.w2c_hermes, ptr %214, i32 0, i32 6
  %216 = load i32, ptr %9, align 4, !tbaa !9
  %217 = zext i32 %216 to i64
  %218 = add i64 %217, 52
  %219 = call i32 @i32_load(ptr noundef %215, i64 noundef %218)
  store i32 %219, ptr %9, align 4, !tbaa !9
  %220 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %220, ptr %5, align 4, !tbaa !9
  %221 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %221, ptr %10, align 4, !tbaa !9
  store i32 48, ptr %11, align 4, !tbaa !9
  %222 = load i32, ptr %11, align 4, !tbaa !9
  %223 = load i32, ptr %10, align 4, !tbaa !9
  %224 = add i32 %223, %222
  store i32 %224, ptr %10, align 4, !tbaa !9
  %225 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %225, ptr %7, align 4, !tbaa !9
  %226 = load i32, ptr %9, align 4, !tbaa !9
  %227 = load i32, ptr %10, align 4, !tbaa !9
  %228 = icmp ne i32 %226, %227
  %229 = zext i1 %228 to i32
  store i32 %229, ptr %9, align 4, !tbaa !9
  %230 = load i32, ptr %9, align 4, !tbaa !9
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %232, label %285

232:                                              ; preds = %212
  br label %233

233:                                              ; preds = %283, %232
  %234 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %234, ptr %9, align 4, !tbaa !9
  %235 = load ptr, ptr %3, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.w2c_hermes, ptr %235, i32 0, i32 6
  %237 = load i32, ptr %9, align 4, !tbaa !9
  %238 = zext i32 %237 to i64
  %239 = add i64 %238, 4
  %240 = call i32 @i32_load(ptr noundef %236, i64 noundef %239)
  store i32 %240, ptr %9, align 4, !tbaa !9
  %241 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %241, ptr %6, align 4, !tbaa !9
  %242 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %242, ptr %10, align 4, !tbaa !9
  %243 = load ptr, ptr %3, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.w2c_hermes, ptr %243, i32 0, i32 6
  %245 = load i32, ptr %10, align 4, !tbaa !9
  %246 = zext i32 %245 to i64
  %247 = call i32 @i32_load(ptr noundef %244, i64 noundef %246)
  store i32 %247, ptr %10, align 4, !tbaa !9
  %248 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %248, ptr %8, align 4, !tbaa !9
  %249 = load ptr, ptr %3, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.w2c_hermes, ptr %249, i32 0, i32 6
  %251 = load i32, ptr %9, align 4, !tbaa !9
  %252 = zext i32 %251 to i64
  %253 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %250, i64 noundef %252, i32 noundef %253)
  %254 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %254, ptr %9, align 4, !tbaa !9
  %255 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %255, ptr %10, align 4, !tbaa !9
  %256 = load ptr, ptr %3, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.w2c_hermes, ptr %256, i32 0, i32 6
  %258 = load i32, ptr %9, align 4, !tbaa !9
  %259 = zext i32 %258 to i64
  %260 = add i64 %259, 4
  %261 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %257, i64 noundef %260, i32 noundef %261)
  %262 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %262, ptr %9, align 4, !tbaa !9
  store i64 0, ptr %12, align 8, !tbaa !22
  %263 = load ptr, ptr %3, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.w2c_hermes, ptr %263, i32 0, i32 6
  %265 = load i32, ptr %9, align 4, !tbaa !9
  %266 = zext i32 %265 to i64
  %267 = load i64, ptr %12, align 8, !tbaa !22
  call void @i64_store(ptr noundef %264, i64 noundef %266, i64 noundef %267)
  %268 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %268, ptr %9, align 4, !tbaa !9
  store i32 8, ptr %10, align 4, !tbaa !9
  %269 = load i32, ptr %10, align 4, !tbaa !9
  %270 = load i32, ptr %9, align 4, !tbaa !9
  %271 = add i32 %270, %269
  store i32 %271, ptr %9, align 4, !tbaa !9
  %272 = load ptr, ptr %3, align 8, !tbaa !5
  %273 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3AValue0x3A0x3Adestroy0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %272, i32 noundef %273)
  %274 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %274, ptr %9, align 4, !tbaa !9
  %275 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %275, ptr %5, align 4, !tbaa !9
  %276 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %276, ptr %10, align 4, !tbaa !9
  %277 = load i32, ptr %9, align 4, !tbaa !9
  %278 = load i32, ptr %10, align 4, !tbaa !9
  %279 = icmp ne i32 %277, %278
  %280 = zext i1 %279 to i32
  store i32 %280, ptr %9, align 4, !tbaa !9
  %281 = load i32, ptr %9, align 4, !tbaa !9
  %282 = icmp ne i32 %281, 0
  br i1 %282, label %283, label %284

283:                                              ; preds = %233
  br label %233

284:                                              ; preds = %233
  br label %285

285:                                              ; preds = %284, %212
  %286 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %286, ptr %9, align 4, !tbaa !9
  %287 = load ptr, ptr %3, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.w2c_hermes, ptr %287, i32 0, i32 6
  %289 = load i32, ptr %9, align 4, !tbaa !9
  %290 = zext i32 %289 to i64
  %291 = add i64 %290, 16
  %292 = call i32 @i32_load(ptr noundef %288, i64 noundef %291)
  store i32 %292, ptr %9, align 4, !tbaa !9
  %293 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %293, ptr %6, align 4, !tbaa !9
  %294 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %294, ptr %10, align 4, !tbaa !9
  store i32 28, ptr %11, align 4, !tbaa !9
  %295 = load i32, ptr %11, align 4, !tbaa !9
  %296 = load i32, ptr %10, align 4, !tbaa !9
  %297 = add i32 %296, %295
  store i32 %297, ptr %10, align 4, !tbaa !9
  %298 = load i32, ptr %9, align 4, !tbaa !9
  %299 = load i32, ptr %10, align 4, !tbaa !9
  %300 = icmp ne i32 %298, %299
  %301 = zext i1 %300 to i32
  store i32 %301, ptr %9, align 4, !tbaa !9
  %302 = load i32, ptr %9, align 4, !tbaa !9
  %303 = icmp ne i32 %302, 0
  br i1 %303, label %304, label %308

304:                                              ; preds = %285
  %305 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %305, ptr %9, align 4, !tbaa !9
  %306 = load ptr, ptr %3, align 8, !tbaa !5
  %307 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_dlfree(ptr noundef %306, i32 noundef %307)
  br label %308

308:                                              ; preds = %304, %285
  %309 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %309, ptr %9, align 4, !tbaa !9
  %310 = load i32, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  ret i32 %310
}

declare void @w2c_hermes_hermes0x3A0x3AValue0x3A0x3Adestroy0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef, i32 noundef) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @func_types_eq(ptr noundef, ptr noundef) #2

declare void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fshared_weak_count0x3A0x3A_0x5Frelease_weak0x280x29(ptr noundef, i32 noundef) #5

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #5 = { "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 #6 = { nounwind }
attributes #7 = { 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 92}
!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 = !{!12, !6, i64 80}
!18 = !{!19, !6, i64 8}
!19 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!19, !6, i64 0}
!21 = !{!19, !6, i64 16}
!22 = !{!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"

%struct.wasm_rt_funcref_t = type { ptr, ptr, ptr }

@.str.3 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @w2c_hermes_hermes0x3A0x3AFunction0x3A0x3A0x7EFunction0x280x29(ptr noundef %0, i32 noundef returned %1) local_unnamed_addr #0 {
  %3 = getelementptr inbounds i8, ptr %0, i64 40
  %4 = zext i32 %1 to i64
  %5 = add nuw nsw i64 %4, 60
  %6 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %5)
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %.loopexit153, label %7

7:                                                ; preds = %2
  %8 = add nuw nsw i64 %4, 56
  %9 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %8)
  %10 = shl i32 %6, 2
  %11 = add i32 %9, %10
  br label %12

12:                                               ; preds = %12, %7
  %.0 = phi i32 [ %9, %7 ], [ %15, %12 ]
  %13 = zext i32 %.0 to i64
  %14 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %13)
  tail call void @w2c_hermes_hermes0x3A0x3AValue0x3A0x3Adestroy0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %0, i32 noundef %14) #4
  %15 = add i32 %.0, 4
  %.not145 = icmp eq i32 %15, %11
  br i1 %.not145, label %.loopexit153, label %12

.loopexit153:                                     ; preds = %12, %2
  %16 = add nuw nsw i64 %4, 128
  %17 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %16)
  tail call void @w2c_hermes_hermes0x3A0x3AValue0x3A0x3Adestroy0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %0, i32 noundef %17) #4
  %18 = add nuw nsw i64 %4, 168
  %19 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %18)
  %.not146 = icmp eq i32 %19, 0
  br i1 %.not146, label %50, label %20

20:                                               ; preds = %.loopexit153
  %21 = zext i32 %19 to i64
  %22 = add nuw nsw i64 %21, 4
  %23 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %22)
  %24 = add i32 %23, -1
  tail call void @i32_store(ptr noundef nonnull %3, i64 noundef %22, i32 noundef %24)
  %.not147 = icmp eq i32 %23, 0
  br i1 %.not147, label %25, label %50

25:                                               ; preds = %20
  %26 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %21)
  %27 = zext i32 %26 to i64
  %28 = add nuw nsw i64 %27, 8
  %29 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %28)
  %30 = getelementptr inbounds i8, ptr %0, i64 80
  %31 = getelementptr inbounds i8, ptr %0, i64 92
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = icmp ult i32 %29, %32
  br i1 %33, label %34, label %.critedge, !prof !15

34:                                               ; preds = %25
  %35 = load ptr, ptr %30, align 8, !tbaa !16
  %36 = zext i32 %29 to i64
  %37 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %35, i64 %36
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load ptr, ptr %38, align 8, !tbaa !17
  %.not148 = icmp eq ptr %39, null
  br i1 %.not148, label %.critedge, label %40, !prof !19

40:                                               ; preds = %34
  %41 = load ptr, ptr %37, align 8, !tbaa !20
  %42 = tail call zeroext i1 @func_types_eq(ptr noundef nonnull @.str.3, ptr noundef %41)
  br i1 %42, label %43, label %.critedge, !prof !15

.critedge:                                        ; preds = %34, %25, %40
  tail call void @wasm_rt_trap(i32 noundef 6) #5
  unreachable

43:                                               ; preds = %40
  %44 = load ptr, ptr %30, align 8, !tbaa !16
  %45 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %44, i64 %36
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  %47 = load ptr, ptr %46, align 8, !tbaa !17
  %48 = getelementptr inbounds i8, ptr %45, i64 16
  %49 = load ptr, ptr %48, align 8, !tbaa !21
  tail call void %47(ptr noundef %49, i32 noundef %19) #4
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fshared_weak_count0x3A0x3A_0x5Frelease_weak0x280x29(ptr noundef nonnull %0, i32 noundef %19) #4
  br label %50

50:                                               ; preds = %20, %.loopexit153, %43
  %51 = add nuw nsw i64 %4, 56
  %52 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %51)
  %53 = add i32 %1, 68
  %.not149 = icmp eq i32 %52, %53
  br i1 %.not149, label %55, label %54

54:                                               ; preds = %50
  tail call void @w2c_hermes_dlfree(ptr noundef %0, i32 noundef %52)
  br label %55

55:                                               ; preds = %54, %50
  %56 = add nuw nsw i64 %4, 52
  %57 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %56)
  %58 = add i32 %1, 48
  %.not150 = icmp eq i32 %57, %58
  br i1 %.not150, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %55, %.preheader
  %.1 = phi i32 [ %61, %.preheader ], [ %57, %55 ]
  %59 = zext i32 %.1 to i64
  %60 = add nuw nsw i64 %59, 4
  %61 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %60)
  %62 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %59)
  %63 = zext i32 %61 to i64
  tail call void @i32_store(ptr noundef nonnull %3, i64 noundef %63, i32 noundef %62)
  %64 = zext i32 %62 to i64
  %65 = add nuw nsw i64 %64, 4
  tail call void @i32_store(ptr noundef nonnull %3, i64 noundef %65, i32 noundef %61)
  tail call void @i64_store(ptr noundef nonnull %3, i64 noundef %59, i64 noundef 0)
  %66 = add i32 %.1, 8
  tail call void @w2c_hermes_hermes0x3A0x3AValue0x3A0x3Adestroy0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef %0, i32 noundef %66) #4
  %.not151 = icmp eq i32 %61, %58
  br i1 %.not151, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %55
  %67 = add nuw nsw i64 %4, 16
  %68 = tail call i32 @i32_load(ptr noundef nonnull %3, i64 noundef %67)
  %69 = add i32 %1, 28
  %.not152 = icmp eq i32 %68, %69
  br i1 %.not152, label %71, label %70

70:                                               ; preds = %.loopexit
  tail call void @w2c_hermes_dlfree(ptr noundef %0, i32 noundef %68)
  br label %71

71:                                               ; preds = %70, %.loopexit
  ret i32 %1
}

declare void @w2c_hermes_hermes0x3A0x3AValue0x3A0x3Adestroy0x28hermes0x3A0x3AValue0x2A0x29(ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @func_types_eq(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fshared_weak_count0x3A0x3A_0x5Frelease_weak0x280x29(ptr noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { 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 = { 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 }
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)"}
!5 = !{!6, !10, i64 92}
!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}
!15 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!16 = !{!6, !7, i64 80}
!17 = !{!18, !7, i64 8}
!18 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16}
!19 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!20 = !{!18, !7, i64 0}
!21 = !{!18, !7, i64 16}


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