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

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

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

@w2c_hermes_t3 = external constant ptr, align 8

; 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_load(ptr noundef, i64 noundef) #2

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

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

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

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

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

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

29:                                               ; preds = %3
  %30 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %30, ptr %9, align 4, !tbaa !9
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.w2c_hermes, ptr %31, i32 0, i32 6
  %33 = load i32, ptr %9, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = call i64 @i64_load(ptr noundef %32, i64 noundef %34)
  store i64 %35, ptr %14, align 8, !tbaa !11
  %36 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %36, ptr %8, align 8, !tbaa !11
  %37 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %37, ptr %9, align 4, !tbaa !9
  store i64 0, ptr %15, align 8, !tbaa !11
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.w2c_hermes, ptr %38, i32 0, i32 6
  %40 = load i32, ptr %9, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = load i64, ptr %15, align 8, !tbaa !11
  call void @i64_store(ptr noundef %39, i64 noundef %41, i64 noundef %42)
  %43 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %43, ptr %9, align 4, !tbaa !9
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.w2c_hermes, ptr %44, i32 0, i32 6
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = add i64 %47, 44
  %49 = call i32 @i32_load(ptr noundef %45, i64 noundef %48)
  store i32 %49, ptr %9, align 4, !tbaa !9
  %50 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %50, ptr %6, align 4, !tbaa !9
  %51 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %51, ptr %9, align 4, !tbaa !9
  %52 = load i64, ptr %8, align 8, !tbaa !11
  store i64 %52, ptr %15, align 8, !tbaa !11
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.w2c_hermes, ptr %53, i32 0, i32 6
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = zext i32 %55 to i64
  %57 = add i64 %56, 40
  %58 = load i64, ptr %15, align 8, !tbaa !11
  call void @i64_store(ptr noundef %54, i64 noundef %57, i64 noundef %58)
  %59 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %59, ptr %9, align 4, !tbaa !9
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  %62 = xor i1 %61, true
  %63 = zext i1 %62 to i32
  store i32 %63, ptr %9, align 4, !tbaa !9
  %64 = load i32, ptr %9, align 4, !tbaa !9
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %67

66:                                               ; preds = %29
  br label %168

67:                                               ; preds = %29
  %68 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %68, ptr %9, align 4, !tbaa !9
  %69 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %69, ptr %10, align 4, !tbaa !9
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.w2c_hermes, ptr %70, i32 0, i32 6
  %72 = load i32, ptr %10, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = add i64 %73, 4
  %75 = call i32 @i32_load(ptr noundef %71, i64 noundef %74)
  store i32 %75, ptr %10, align 4, !tbaa !9
  %76 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %76, ptr %7, align 4, !tbaa !9
  store i32 1, ptr %11, align 4, !tbaa !9
  %77 = load i32, ptr %11, align 4, !tbaa !9
  %78 = load i32, ptr %10, align 4, !tbaa !9
  %79 = sub i32 %78, %77
  store i32 %79, ptr %10, align 4, !tbaa !9
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.w2c_hermes, ptr %80, i32 0, i32 6
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = zext i32 %82 to i64
  %84 = add i64 %83, 4
  %85 = load i32, ptr %10, align 4, !tbaa !9
  call void @i32_store(ptr noundef %81, i64 noundef %84, i32 noundef %85)
  %86 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %86, ptr %9, align 4, !tbaa !9
  %87 = load i32, ptr %9, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %90

89:                                               ; preds = %67
  br label %168

90:                                               ; preds = %67
  %91 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %91, ptr %9, align 4, !tbaa !9
  %92 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %92, ptr %10, align 4, !tbaa !9
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.w2c_hermes, ptr %93, i32 0, i32 6
  %95 = load i32, ptr %10, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = call i32 @i32_load(ptr noundef %94, i64 noundef %96)
  store i32 %97, ptr %10, align 4, !tbaa !9
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.w2c_hermes, ptr %98, i32 0, i32 6
  %100 = load i32, ptr %10, align 4, !tbaa !9
  %101 = zext i32 %100 to i64
  %102 = add i64 %101, 8
  %103 = call i32 @i32_load(ptr noundef %99, i64 noundef %102)
  store i32 %103, ptr %10, align 4, !tbaa !9
  %104 = load i32, ptr %10, align 4, !tbaa !9
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.w2c_hermes, ptr %105, i32 0, i32 7
  %107 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %106, i32 0, i32 2
  %108 = load i32, ptr %107, align 4, !tbaa !13
  %109 = icmp ult i32 %104, %108
  br i1 %109, label %110, label %133

110:                                              ; preds = %90
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.w2c_hermes, ptr %111, i32 0, i32 7
  %113 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %112, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8, !tbaa !18
  %115 = load i32, ptr %10, align 4, !tbaa !9
  %116 = zext i32 %115 to i64
  %117 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %114, i64 %116
  %118 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %117, i32 0, i32 1
  %119 = load ptr, ptr %118, align 8, !tbaa !19
  %120 = icmp ne ptr %119, null
  br i1 %120, label %121, label %133

121:                                              ; preds = %110
  %122 = load ptr, ptr @w2c_hermes_t3, align 8, !tbaa !5
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.w2c_hermes, ptr %123, i32 0, i32 7
  %125 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %124, i32 0, i32 0
  %126 = load ptr, ptr %125, align 8, !tbaa !18
  %127 = load i32, ptr %10, align 4, !tbaa !9
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %126, i64 %128
  %130 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !21
  %132 = call zeroext i1 @func_types_eq(ptr noundef %122, ptr noundef %131)
  br label %133

133:                                              ; preds = %121, %110, %90
  %134 = phi i1 [ false, %110 ], [ false, %90 ], [ %132, %121 ]
  %135 = xor i1 %134, true
  %136 = xor i1 %135, true
  %137 = zext i1 %136 to i32
  %138 = sext i32 %137 to i64
  %139 = call i64 @llvm.expect.i64(i64 %138, i64 1)
  %140 = icmp ne i64 %139, 0
  br i1 %140, label %143, label %141

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

142:                                              ; No predecessors!
  br label %143

143:                                              ; preds = %142, %133
  %144 = phi i1 [ true, %133 ], [ false, %142 ]
  %145 = zext i1 %144 to i32
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.w2c_hermes, ptr %146, i32 0, i32 7
  %148 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %147, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8, !tbaa !18
  %150 = load i32, ptr %10, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %149, i64 %151
  %153 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %152, i32 0, i32 1
  %154 = load ptr, ptr %153, align 8, !tbaa !19
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.w2c_hermes, ptr %155, i32 0, i32 7
  %157 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %156, i32 0, i32 0
  %158 = load ptr, ptr %157, align 8, !tbaa !18
  %159 = load i32, ptr %10, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %158, i64 %160
  %162 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %161, i32 0, i32 2
  %163 = load ptr, ptr %162, align 8, !tbaa !22
  %164 = load i32, ptr %9, align 4, !tbaa !9
  call void %154(ptr noundef %163, i32 noundef %164)
  %165 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %165, ptr %9, align 4, !tbaa !9
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fshared_weak_count0x3A0x3A_0x5Frelease_weak0x280x29(ptr noundef %166, i32 noundef %167)
  br label %168

168:                                              ; preds = %143, %89, %66
  %169 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %169, ptr %9, align 4, !tbaa !9
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = load i32, ptr %9, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntimeModule0x3A0x3AimportStringIDMapMayAllocate0x280x29(ptr noundef %170, i32 noundef %171)
  %172 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %172, ptr %9, align 4, !tbaa !9
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.w2c_hermes, ptr %173, i32 0, i32 6
  %175 = load i32, ptr %9, align 4, !tbaa !9
  %176 = zext i32 %175 to i64
  %177 = add i64 %176, 40
  %178 = call i32 @i32_load(ptr noundef %174, i64 noundef %177)
  store i32 %178, ptr %9, align 4, !tbaa !9
  %179 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %179, ptr %6, align 4, !tbaa !9
  %180 = load i32, ptr %9, align 4, !tbaa !9
  %181 = icmp ne i32 %180, 0
  %182 = xor i1 %181, true
  %183 = zext i1 %182 to i32
  store i32 %183, ptr %9, align 4, !tbaa !9
  %184 = load i32, ptr %9, align 4, !tbaa !9
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %186, label %187

186:                                              ; preds = %168
  br label %266

187:                                              ; preds = %168
  %188 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %188, ptr %9, align 4, !tbaa !9
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.w2c_hermes, ptr %189, i32 0, i32 6
  %191 = load i32, ptr %9, align 4, !tbaa !9
  %192 = zext i32 %191 to i64
  %193 = add i64 %192, 8
  %194 = call i32 @i32_load(ptr noundef %190, i64 noundef %193)
  store i32 %194, ptr %9, align 4, !tbaa !9
  %195 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %195, ptr %6, align 4, !tbaa !9
  %196 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %196, ptr %10, align 4, !tbaa !9
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.w2c_hermes, ptr %197, i32 0, i32 6
  %199 = load i32, ptr %10, align 4, !tbaa !9
  %200 = zext i32 %199 to i64
  %201 = add i64 %200, 32
  %202 = call i32 @i32_load(ptr noundef %198, i64 noundef %201)
  store i32 %202, ptr %10, align 4, !tbaa !9
  %203 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %203, ptr %11, align 4, !tbaa !9
  %204 = load ptr, ptr %4, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.w2c_hermes, ptr %204, i32 0, i32 6
  %206 = load i32, ptr %11, align 4, !tbaa !9
  %207 = zext i32 %206 to i64
  %208 = add i64 %207, 28
  %209 = call i32 @i32_load(ptr noundef %205, i64 noundef %208)
  store i32 %209, 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 = sub i32 %211, %210
  store i32 %212, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %11, align 4, !tbaa !9
  %213 = load i32, ptr %10, align 4, !tbaa !9
  %214 = load i32, ptr %11, align 4, !tbaa !9
  %215 = and i32 %214, 31
  %216 = ashr i32 %213, %215
  store i32 %216, ptr %10, align 4, !tbaa !9
  %217 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %217, ptr %7, align 4, !tbaa !9
  %218 = load i32, ptr %9, align 4, !tbaa !9
  %219 = load i32, ptr %10, align 4, !tbaa !9
  %220 = icmp ult i32 %218, %219
  %221 = zext i1 %220 to i32
  store i32 %221, ptr %9, align 4, !tbaa !9
  %222 = load i32, ptr %9, align 4, !tbaa !9
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %224, label %225

224:                                              ; preds = %187
  br label %284

225:                                              ; preds = %187
  %226 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %226, ptr %9, align 4, !tbaa !9
  %227 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %227, ptr %10, align 4, !tbaa !9
  %228 = load i32, ptr %9, align 4, !tbaa !9
  %229 = load i32, ptr %10, align 4, !tbaa !9
  %230 = icmp ugt i32 %228, %229
  %231 = zext i1 %230 to i32
  store i32 %231, ptr %9, align 4, !tbaa !9
  %232 = load i32, ptr %9, align 4, !tbaa !9
  %233 = icmp ne i32 %232, 0
  br i1 %233, label %234, label %247

234:                                              ; preds = %225
  %235 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %235, ptr %9, align 4, !tbaa !9
  store i32 28, ptr %10, align 4, !tbaa !9
  %236 = load i32, ptr %10, align 4, !tbaa !9
  %237 = load i32, ptr %9, align 4, !tbaa !9
  %238 = add i32 %237, %236
  store i32 %238, ptr %9, align 4, !tbaa !9
  %239 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %239, ptr %10, align 4, !tbaa !9
  %240 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %240, ptr %11, align 4, !tbaa !9
  %241 = load i32, ptr %11, align 4, !tbaa !9
  %242 = load i32, ptr %10, align 4, !tbaa !9
  %243 = sub i32 %242, %241
  store i32 %243, ptr %10, align 4, !tbaa !9
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = load i32, ptr %9, align 4, !tbaa !9
  %246 = load i32, ptr %10, align 4, !tbaa !9
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Chermes0x3A0x3Avm0x3A0x3ACodeBlock0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Chermes0x3A0x3Avm0x3A0x3ACodeBlock0x2A0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x29(ptr noundef %244, i32 noundef %245, i32 noundef %246)
  br label %247

247:                                              ; preds = %234, %225
  br label %302

248:                                              ; preds = %3
  store i32 0, ptr %9, align 4, !tbaa !9
  %249 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %249, ptr %5, align 4, !tbaa !9
  store i32 177146, ptr %10, align 4, !tbaa !9
  %250 = load i32, ptr %10, align 4, !tbaa !9
  %251 = load i32, ptr %9, align 4, !tbaa !9
  %252 = add i32 %251, %250
  store i32 %252, ptr %9, align 4, !tbaa !9
  %253 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %253, ptr %10, align 4, !tbaa !9
  store i32 60939, ptr %11, align 4, !tbaa !9
  %254 = load i32, ptr %11, align 4, !tbaa !9
  %255 = load i32, ptr %10, align 4, !tbaa !9
  %256 = add i32 %255, %254
  store i32 %256, ptr %10, align 4, !tbaa !9
  store i32 124, ptr %11, align 4, !tbaa !9
  %257 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %257, ptr %12, align 4, !tbaa !9
  store i32 91454, ptr %13, align 4, !tbaa !9
  %258 = load i32, ptr %13, align 4, !tbaa !9
  %259 = load i32, ptr %12, align 4, !tbaa !9
  %260 = add i32 %259, %258
  store i32 %260, ptr %12, align 4, !tbaa !9
  %261 = load ptr, ptr %4, align 8, !tbaa !5
  %262 = load i32, ptr %9, align 4, !tbaa !9
  %263 = load i32, ptr %10, align 4, !tbaa !9
  %264 = load i32, ptr %11, align 4, !tbaa !9
  %265 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %261, i32 noundef %262, i32 noundef %263, i32 noundef %264, i32 noundef %265)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

266:                                              ; preds = %186
  store i32 0, ptr %9, align 4, !tbaa !9
  %267 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %267, ptr %5, align 4, !tbaa !9
  store i32 168320, ptr %10, align 4, !tbaa !9
  %268 = load i32, ptr %10, align 4, !tbaa !9
  %269 = load i32, ptr %9, align 4, !tbaa !9
  %270 = add i32 %269, %268
  store i32 %270, ptr %9, align 4, !tbaa !9
  %271 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %271, ptr %10, align 4, !tbaa !9
  store i32 60939, ptr %11, align 4, !tbaa !9
  %272 = load i32, ptr %11, align 4, !tbaa !9
  %273 = load i32, ptr %10, align 4, !tbaa !9
  %274 = add i32 %273, %272
  store i32 %274, ptr %10, align 4, !tbaa !9
  store i32 301, ptr %11, align 4, !tbaa !9
  %275 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %275, ptr %12, align 4, !tbaa !9
  store i32 63473, ptr %13, align 4, !tbaa !9
  %276 = load i32, ptr %13, align 4, !tbaa !9
  %277 = load i32, ptr %12, align 4, !tbaa !9
  %278 = add i32 %277, %276
  store i32 %278, ptr %12, align 4, !tbaa !9
  %279 = load ptr, ptr %4, align 8, !tbaa !5
  %280 = load i32, ptr %9, align 4, !tbaa !9
  %281 = load i32, ptr %10, align 4, !tbaa !9
  %282 = load i32, ptr %11, align 4, !tbaa !9
  %283 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %279, i32 noundef %280, i32 noundef %281, i32 noundef %282, i32 noundef %283)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

284:                                              ; preds = %224
  store i32 0, ptr %9, align 4, !tbaa !9
  %285 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %285, ptr %5, align 4, !tbaa !9
  store i32 186285, ptr %10, align 4, !tbaa !9
  %286 = load i32, ptr %10, align 4, !tbaa !9
  %287 = load i32, ptr %9, align 4, !tbaa !9
  %288 = add i32 %287, %286
  store i32 %288, ptr %9, align 4, !tbaa !9
  %289 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %289, ptr %10, align 4, !tbaa !9
  store i32 60939, ptr %11, align 4, !tbaa !9
  %290 = load i32, ptr %11, align 4, !tbaa !9
  %291 = load i32, ptr %10, align 4, !tbaa !9
  %292 = add i32 %291, %290
  store i32 %292, ptr %10, align 4, !tbaa !9
  store i32 304, ptr %11, align 4, !tbaa !9
  %293 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %293, ptr %12, align 4, !tbaa !9
  store i32 63473, ptr %13, align 4, !tbaa !9
  %294 = load i32, ptr %13, align 4, !tbaa !9
  %295 = load i32, ptr %12, align 4, !tbaa !9
  %296 = add i32 %295, %294
  store i32 %296, ptr %12, align 4, !tbaa !9
  %297 = load ptr, ptr %4, align 8, !tbaa !5
  %298 = load i32, ptr %9, align 4, !tbaa !9
  %299 = load i32, ptr %10, align 4, !tbaa !9
  %300 = load i32, ptr %11, align 4, !tbaa !9
  %301 = load i32, ptr %12, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %297, i32 noundef %298, i32 noundef %299, i32 noundef %300, i32 noundef %301)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

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

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

declare void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Chermes0x3A0x3Avm0x3A0x3ACodeBlock0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Chermes0x3A0x3Avm0x3A0x3ACodeBlock0x2A0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x29(ptr noundef, i32 noundef, i32 noundef) #4

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 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #4 = { "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 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 #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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 92}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !17, i64 80}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !16, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}
!18 = !{!14, !6, i64 80}
!19 = !{!20, !6, i64 8}
!20 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!20, !6, i64 0}
!22 = !{!20, !6, i64 16}


; 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 }

@w2c_hermes_t3 = external local_unnamed_addr constant ptr, align 8

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @func_types_eq(ptr noundef, ptr 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 #1

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

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

8:                                                ; preds = %3
  %9 = zext i32 %2 to i64
  %10 = tail call i64 @i64_load(ptr noundef nonnull %4, i64 noundef %9)
  tail call void @i64_store(ptr noundef nonnull %4, i64 noundef %9, i64 noundef 0)
  %11 = add nuw nsw i64 %5, 44
  %12 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %11)
  tail call void @i64_store(ptr noundef nonnull %4, i64 noundef %6, i64 noundef %10)
  %.not142 = icmp eq i32 %12, 0
  br i1 %.not142, label %44, label %13

13:                                               ; preds = %8
  %14 = zext i32 %12 to i64
  %15 = add nuw nsw i64 %14, 4
  %16 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %15)
  %17 = add i32 %16, -1
  tail call void @i32_store(ptr noundef nonnull %4, i64 noundef %15, i32 noundef %17)
  %.not143 = icmp eq i32 %16, 0
  br i1 %.not143, label %18, label %44

18:                                               ; preds = %13
  %19 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %14)
  %20 = zext i32 %19 to i64
  %21 = add nuw nsw i64 %20, 8
  %22 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %21)
  %23 = getelementptr inbounds i8, ptr %0, i64 80
  %24 = getelementptr inbounds i8, ptr %0, i64 92
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = icmp ult i32 %22, %25
  br i1 %26, label %27, label %.critedge, !prof !15

27:                                               ; preds = %18
  %28 = load ptr, ptr %23, align 8, !tbaa !16
  %29 = zext i32 %22 to i64
  %30 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %28, i64 %29
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %.not144 = icmp eq ptr %32, null
  br i1 %.not144, label %.critedge, label %33, !prof !19

33:                                               ; preds = %27
  %34 = load ptr, ptr @w2c_hermes_t3, align 8, !tbaa !20
  %35 = load ptr, ptr %30, align 8, !tbaa !21
  %36 = tail call zeroext i1 @func_types_eq(ptr noundef %34, ptr noundef %35)
  br i1 %36, label %37, label %.critedge, !prof !15

.critedge:                                        ; preds = %27, %18, %33
  tail call void @wasm_rt_trap(i32 noundef 6) #4
  unreachable

37:                                               ; preds = %33
  %38 = load ptr, ptr %23, align 8, !tbaa !16
  %39 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %38, i64 %29
  %40 = getelementptr inbounds i8, ptr %39, i64 8
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  %42 = getelementptr inbounds i8, ptr %39, i64 16
  %43 = load ptr, ptr %42, align 8, !tbaa !22
  tail call void %41(ptr noundef %43, i32 noundef %12) #5
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fshared_weak_count0x3A0x3A_0x5Frelease_weak0x280x29(ptr noundef nonnull %0, i32 noundef %12) #5
  br label %44

44:                                               ; preds = %13, %8, %37
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ARuntimeModule0x3A0x3AimportStringIDMapMayAllocate0x280x29(ptr noundef %0, i32 noundef %1)
  %45 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %6)
  %.not145 = icmp eq i32 %45, 0
  br i1 %.not145, label %63, label %46

46:                                               ; preds = %44
  %47 = zext i32 %45 to i64
  %48 = add nuw nsw i64 %47, 8
  %49 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %48)
  %50 = add nuw nsw i64 %5, 32
  %51 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %50)
  %52 = add nuw nsw i64 %5, 28
  %53 = tail call i32 @i32_load(ptr noundef nonnull %4, i64 noundef %52)
  %54 = sub i32 %51, %53
  %55 = ashr i32 %54, 2
  %56 = icmp ult i32 %49, %55
  br i1 %56, label %64, label %57

57:                                               ; preds = %46
  %58 = icmp ugt i32 %49, %55
  br i1 %58, label %59, label %65

59:                                               ; preds = %57
  %60 = add i32 %1, 28
  %61 = sub i32 %49, %55
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Avector0x3Chermes0x3A0x3Avm0x3A0x3ACodeBlock0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Chermes0x3A0x3Avm0x3A0x3ACodeBlock0x2A0x3E0x3E0x3A0x3A_0x5Fappend0x28unsigned0x20long0x29(ptr noundef %0, i32 noundef %60, i32 noundef %61) #5
  br label %65

62:                                               ; preds = %3
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 177146, i32 noundef 60939, i32 noundef 124, i32 noundef 91454) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

63:                                               ; preds = %44
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 168320, i32 noundef 60939, i32 noundef 301, i32 noundef 63473) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

64:                                               ; preds = %46
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 186285, i32 noundef 60939, i32 noundef 304, i32 noundef 63473) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

65:                                               ; preds = %57, %59
  ret void
}

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

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

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 = { "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 = { noreturn nounwind }
attributes #5 = { 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 = !{!7, !7, i64 0}
!21 = !{!18, !7, i64 0}
!22 = !{!18, !7, i64 16}


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