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

; 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_t1 = 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

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

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

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

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

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

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

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

49:                                               ; preds = %3
  br label %50

50:                                               ; preds = %281, %49
  %51 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %51, ptr %13, align 4, !tbaa !9
  %52 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %52, ptr %14, align 4, !tbaa !9
  store i32 12, ptr %15, align 4, !tbaa !9
  %53 = load i32, ptr %15, align 4, !tbaa !9
  %54 = load i32, ptr %14, align 4, !tbaa !9
  %55 = mul i32 %54, %53
  store i32 %55, ptr %14, align 4, !tbaa !9
  %56 = load i32, ptr %14, align 4, !tbaa !9
  %57 = load i32, ptr %13, align 4, !tbaa !9
  %58 = add i32 %57, %56
  store i32 %58, ptr %13, align 4, !tbaa !9
  %59 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %59, ptr %11, align 4, !tbaa !9
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.w2c_hermes, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %13, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = call i32 @i32_load(ptr noundef %61, i64 noundef %63)
  store i32 %64, ptr %13, align 4, !tbaa !9
  %65 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %65, ptr %12, align 4, !tbaa !9
  %66 = load i32, ptr %13, align 4, !tbaa !9
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %230

68:                                               ; preds = %50
  %69 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %69, ptr %13, align 4, !tbaa !9
  store i32 536870912, ptr %14, align 4, !tbaa !9
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = load i32, ptr %14, align 4, !tbaa !9
  %72 = icmp uge i32 %70, %71
  %73 = zext i1 %72 to i32
  store i32 %73, ptr %13, align 4, !tbaa !9
  %74 = load i32, ptr %13, align 4, !tbaa !9
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %77

76:                                               ; preds = %68
  br label %291

77:                                               ; preds = %68
  %78 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %78, ptr %13, align 4, !tbaa !9
  %79 = load ptr, ptr %4, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.w2c_hermes, ptr %79, i32 0, i32 6
  %81 = load i32, ptr %13, align 4, !tbaa !9
  %82 = zext i32 %81 to i64
  %83 = add i64 %82, 4
  %84 = call i32 @i32_load(ptr noundef %80, i64 noundef %83)
  store i32 %84, ptr %13, align 4, !tbaa !9
  %85 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %85, ptr %7, align 4, !tbaa !9
  %86 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %86, ptr %13, align 4, !tbaa !9
  %87 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %87, ptr %14, align 4, !tbaa !9
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.w2c_hermes, ptr %88, i32 0, i32 6
  %90 = load i32, ptr %13, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = add i64 %91, 12
  %93 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %89, i64 noundef %92, i32 noundef %93)
  %94 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %94, ptr %13, align 4, !tbaa !9
  %95 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %95, ptr %14, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %96 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %96, ptr %16, align 4, !tbaa !9
  store i32 -9, ptr %17, align 4, !tbaa !9
  %97 = load i32, ptr %16, align 4, !tbaa !9
  %98 = load i32, ptr %17, align 4, !tbaa !9
  %99 = icmp ugt i32 %97, %98
  %100 = zext i1 %99 to i32
  store i32 %100, ptr %16, align 4, !tbaa !9
  %101 = load i32, ptr %16, align 4, !tbaa !9
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %105

103:                                              ; preds = %77
  %104 = load i32, ptr %14, align 4, !tbaa !9
  br label %107

105:                                              ; preds = %77
  %106 = load i32, ptr %15, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %105, %103
  %108 = phi i32 [ %104, %103 ], [ %106, %105 ]
  store i32 %108, ptr %14, 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 %13, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = add i64 %112, 8
  %114 = load i32, ptr %14, align 4, !tbaa !9
  call void @i32_store(ptr noundef %110, i64 noundef %113, i32 noundef %114)
  %115 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %115, ptr %13, align 4, !tbaa !9
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.w2c_hermes, ptr %116, i32 0, i32 6
  %118 = load i32, ptr %13, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = add i64 %119, 16
  %121 = call i32 @i32_load(ptr noundef %117, i64 noundef %120)
  store i32 %121, ptr %13, align 4, !tbaa !9
  %122 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %122, ptr %7, align 4, !tbaa !9
  %123 = load i32, ptr %13, align 4, !tbaa !9
  %124 = icmp ne i32 %123, 0
  %125 = xor i1 %124, true
  %126 = zext i1 %125 to i32
  store i32 %126, ptr %13, align 4, !tbaa !9
  %127 = load i32, ptr %13, align 4, !tbaa !9
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %129, label %130

129:                                              ; preds = %107
  br label %309

130:                                              ; preds = %107
  %131 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %131, ptr %13, align 4, !tbaa !9
  %132 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %132, ptr %14, align 4, !tbaa !9
  store i32 12, ptr %15, align 4, !tbaa !9
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = add i32 %134, %133
  store i32 %135, ptr %14, align 4, !tbaa !9
  %136 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %136, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %137 = load i32, ptr %16, align 4, !tbaa !9
  %138 = load i32, ptr %15, align 4, !tbaa !9
  %139 = add i32 %138, %137
  store i32 %139, ptr %15, align 4, !tbaa !9
  %140 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %140, ptr %16, align 4, !tbaa !9
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.w2c_hermes, ptr %141, i32 0, i32 6
  %143 = load i32, ptr %16, align 4, !tbaa !9
  %144 = zext i32 %143 to i64
  %145 = call i32 @i32_load(ptr noundef %142, i64 noundef %144)
  store i32 %145, ptr %16, align 4, !tbaa !9
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.w2c_hermes, ptr %146, i32 0, i32 6
  %148 = load i32, ptr %16, align 4, !tbaa !9
  %149 = zext i32 %148 to i64
  %150 = add i64 %149, 24
  %151 = call i32 @i32_load(ptr noundef %147, i64 noundef %150)
  store i32 %151, ptr %16, align 4, !tbaa !9
  %152 = load i32, ptr %16, align 4, !tbaa !9
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.w2c_hermes, ptr %153, i32 0, i32 7
  %155 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %154, i32 0, i32 2
  %156 = load i32, ptr %155, align 4, !tbaa !17
  %157 = icmp ult i32 %152, %156
  br i1 %157, label %158, label %181

158:                                              ; preds = %130
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.w2c_hermes, ptr %159, i32 0, i32 7
  %161 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %160, i32 0, i32 0
  %162 = load ptr, ptr %161, align 8, !tbaa !18
  %163 = load i32, ptr %16, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %162, i64 %164
  %166 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %165, i32 0, i32 1
  %167 = load ptr, ptr %166, align 8, !tbaa !19
  %168 = icmp ne ptr %167, null
  br i1 %168, label %169, label %181

169:                                              ; preds = %158
  %170 = load ptr, ptr @w2c_hermes_t1, align 8, !tbaa !5
  %171 = load ptr, ptr %4, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.w2c_hermes, ptr %171, i32 0, i32 7
  %173 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %172, i32 0, i32 0
  %174 = load ptr, ptr %173, align 8, !tbaa !18
  %175 = load i32, ptr %16, align 4, !tbaa !9
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %174, i64 %176
  %178 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %177, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8, !tbaa !21
  %180 = call zeroext i1 @func_types_eq(ptr noundef %170, ptr noundef %179)
  br label %181

181:                                              ; preds = %169, %158, %130
  %182 = phi i1 [ false, %158 ], [ false, %130 ], [ %180, %169 ]
  %183 = xor i1 %182, true
  %184 = xor i1 %183, true
  %185 = zext i1 %184 to i32
  %186 = sext i32 %185 to i64
  %187 = call i64 @llvm.expect.i64(i64 %186, i64 1)
  %188 = icmp ne i64 %187, 0
  br i1 %188, label %191, label %189

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

190:                                              ; No predecessors!
  br label %191

191:                                              ; preds = %190, %181
  %192 = phi i1 [ true, %181 ], [ false, %190 ]
  %193 = zext i1 %192 to i32
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.w2c_hermes, ptr %194, i32 0, i32 7
  %196 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %195, i32 0, i32 0
  %197 = load ptr, ptr %196, align 8, !tbaa !18
  %198 = load i32, ptr %16, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %197, i64 %199
  %201 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %200, i32 0, i32 1
  %202 = load ptr, ptr %201, align 8, !tbaa !19
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.w2c_hermes, ptr %203, i32 0, i32 7
  %205 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %204, i32 0, i32 0
  %206 = load ptr, ptr %205, align 8, !tbaa !18
  %207 = load i32, ptr %16, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %206, i64 %208
  %210 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %209, i32 0, i32 2
  %211 = load ptr, ptr %210, align 8, !tbaa !22
  %212 = load i32, ptr %13, align 4, !tbaa !9
  %213 = load i32, ptr %14, align 4, !tbaa !9
  %214 = load i32, ptr %15, align 4, !tbaa !9
  call void %202(ptr noundef %211, i32 noundef %212, i32 noundef %213, i32 noundef %214)
  %215 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %215, ptr %13, align 4, !tbaa !9
  %216 = load ptr, ptr %4, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.w2c_hermes, ptr %216, i32 0, i32 6
  %218 = load i32, ptr %13, align 4, !tbaa !9
  %219 = zext i32 %218 to i64
  %220 = add i64 %219, 4
  %221 = call i32 @i32_load(ptr noundef %217, i64 noundef %220)
  store i32 %221, ptr %13, align 4, !tbaa !9
  %222 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %222, ptr %10, align 4, !tbaa !9
  %223 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %223, ptr %13, align 4, !tbaa !9
  %224 = load ptr, ptr %4, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.w2c_hermes, ptr %224, i32 0, i32 6
  %226 = load i32, ptr %13, align 4, !tbaa !9
  %227 = zext i32 %226 to i64
  %228 = call i32 @i32_load(ptr noundef %225, i64 noundef %227)
  store i32 %228, ptr %13, align 4, !tbaa !9
  %229 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %229, ptr %7, align 4, !tbaa !9
  br label %230

230:                                              ; preds = %191, %50
  %231 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %231, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  %232 = load i32, ptr %14, align 4, !tbaa !9
  %233 = load i32, ptr %13, align 4, !tbaa !9
  %234 = add i32 %233, %232
  store i32 %234, ptr %13, align 4, !tbaa !9
  %235 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %235, ptr %8, align 4, !tbaa !9
  %236 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %236, ptr %14, align 4, !tbaa !9
  %237 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %237, ptr %15, align 4, !tbaa !9
  %238 = load i32, ptr %15, align 4, !tbaa !9
  %239 = load i32, ptr %14, align 4, !tbaa !9
  %240 = sub i32 %239, %238
  store i32 %240, ptr %14, align 4, !tbaa !9
  store i32 12, ptr %15, align 4, !tbaa !9
  %241 = load i32, ptr %15, align 4, !tbaa !9
  %242 = icmp eq i32 %241, 0
  %243 = xor i1 %242, true
  %244 = xor i1 %243, true
  %245 = zext i1 %244 to i32
  %246 = sext i32 %245 to i64
  %247 = call i64 @llvm.expect.i64(i64 %246, i64 0)
  %248 = icmp ne i64 %247, 0
  br i1 %248, label %249, label %251

249:                                              ; preds = %230
  call void @wasm_rt_trap(i32 noundef 3) #7
  unreachable

250:                                              ; No predecessors!
  br label %273

251:                                              ; preds = %230
  %252 = load i32, ptr %14, align 4, !tbaa !9
  %253 = icmp eq i32 %252, -2147483648
  br i1 %253, label %254, label %257

254:                                              ; preds = %251
  %255 = load i32, ptr %15, align 4, !tbaa !9
  %256 = icmp eq i32 %255, -1
  br label %257

257:                                              ; preds = %254, %251
  %258 = phi i1 [ false, %251 ], [ %256, %254 ]
  %259 = xor i1 %258, true
  %260 = xor i1 %259, true
  %261 = zext i1 %260 to i32
  %262 = sext i32 %261 to i64
  %263 = call i64 @llvm.expect.i64(i64 %262, i64 0)
  %264 = icmp ne i64 %263, 0
  br i1 %264, label %265, label %267

265:                                              ; preds = %257
  call void @wasm_rt_trap(i32 noundef 2) #7
  unreachable

266:                                              ; No predecessors!
  br label %271

267:                                              ; preds = %257
  %268 = load i32, ptr %14, align 4, !tbaa !9
  %269 = load i32, ptr %15, align 4, !tbaa !9
  %270 = sdiv i32 %268, %269
  br label %271

271:                                              ; preds = %267, %266
  %272 = phi i32 [ 0, %266 ], [ %270, %267 ]
  br label %273

273:                                              ; preds = %271, %250
  %274 = phi i32 [ 0, %250 ], [ %272, %271 ]
  store i32 %274, ptr %14, align 4, !tbaa !9
  %275 = load i32, ptr %13, align 4, !tbaa !9
  %276 = load i32, ptr %14, align 4, !tbaa !9
  %277 = icmp ult i32 %275, %276
  %278 = zext i1 %277 to i32
  store i32 %278, ptr %13, align 4, !tbaa !9
  %279 = load i32, ptr %13, align 4, !tbaa !9
  %280 = icmp ne i32 %279, 0
  br i1 %280, label %281, label %282

281:                                              ; preds = %273
  br label %50

282:                                              ; preds = %273
  br label %283

283:                                              ; preds = %282, %3
  %284 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %284, ptr %13, align 4, !tbaa !9
  store i32 16, ptr %14, align 4, !tbaa !9
  %285 = load i32, ptr %14, align 4, !tbaa !9
  %286 = load i32, ptr %13, align 4, !tbaa !9
  %287 = add i32 %286, %285
  store i32 %287, ptr %13, align 4, !tbaa !9
  %288 = load i32, ptr %13, align 4, !tbaa !9
  %289 = load ptr, ptr %4, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.w2c_hermes, ptr %289, i32 0, i32 3
  store i32 %288, ptr %290, align 8, !tbaa !11
  br label %311

291:                                              ; preds = %76
  store i32 0, ptr %13, align 4, !tbaa !9
  %292 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %292, ptr %8, align 4, !tbaa !9
  store i32 170731, ptr %14, align 4, !tbaa !9
  %293 = load i32, ptr %14, align 4, !tbaa !9
  %294 = load i32, ptr %13, align 4, !tbaa !9
  %295 = add i32 %294, %293
  store i32 %295, ptr %13, align 4, !tbaa !9
  %296 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %296, ptr %14, align 4, !tbaa !9
  store i32 86175, ptr %15, align 4, !tbaa !9
  %297 = load i32, ptr %15, align 4, !tbaa !9
  %298 = load i32, ptr %14, align 4, !tbaa !9
  %299 = add i32 %298, %297
  store i32 %299, ptr %14, align 4, !tbaa !9
  store i32 116, ptr %15, align 4, !tbaa !9
  %300 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %300, ptr %16, align 4, !tbaa !9
  store i32 91383, ptr %17, align 4, !tbaa !9
  %301 = load i32, ptr %17, align 4, !tbaa !9
  %302 = load i32, ptr %16, align 4, !tbaa !9
  %303 = add i32 %302, %301
  store i32 %303, ptr %16, align 4, !tbaa !9
  %304 = load ptr, ptr %4, align 8, !tbaa !5
  %305 = load i32, ptr %13, align 4, !tbaa !9
  %306 = load i32, ptr %14, align 4, !tbaa !9
  %307 = load i32, ptr %15, align 4, !tbaa !9
  %308 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %304, i32 noundef %305, i32 noundef %306, i32 noundef %307, i32 noundef %308)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

309:                                              ; preds = %129
  %310 = load ptr, ptr %4, align 8, !tbaa !5
  call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_bad_function_call0x5Babi0x3Av150070x5D0x280x29(ptr noundef %310)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

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

declare void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_bad_function_call0x5Babi0x3Av150070x5D0x280x29(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 #4 = { nocallback nofree nosync nounwind willreturn memory(none) }
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, !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 = !{!12, !10, i64 92}
!18 = !{!12, !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_t1 = external local_unnamed_addr constant ptr, align 8

declare void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AIdentifierTable0x3A0x3AvisitIdentifiers0x28std0x3A0x3A_0x5F20x3A0x3Afunction0x3Cvoid0x200x28hermes0x3A0x3Avm0x3A0x3ASymbolID0x2C0x20hermes0x3A0x3Avm0x3A0x3AStringPrimitive0x20const0x2A0x290x3E0x20const0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #3 {
  %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 %1 to i64
  %9 = add nuw nsw i64 %8, 4
  %10 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %9)
  %11 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  %.not = icmp eq i32 %10, %11
  br i1 %.not, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %3
  %12 = zext i32 %6 to i64
  %13 = add nuw nsw i64 %12, 12
  %14 = add nuw nsw i64 %12, 8
  %15 = zext i32 %2 to i64
  %16 = add nuw nsw i64 %15, 16
  %17 = add i32 %5, -4
  %18 = add i32 %5, -8
  %19 = getelementptr inbounds i8, ptr %0, i64 80
  %20 = getelementptr inbounds i8, ptr %0, i64 92
  %21 = load ptr, ptr @w2c_hermes_t1, align 8
  br label %22

22:                                               ; preds = %.preheader, %61
  %.0127 = phi i32 [ %.1128, %61 ], [ %11, %.preheader ]
  %.0126 = phi i32 [ %62, %61 ], [ 0, %.preheader ]
  %.0 = phi i32 [ %.1, %61 ], [ %10, %.preheader ]
  %23 = mul i32 %.0126, 12
  %24 = add i32 %23, %.0127
  %25 = zext i32 %24 to i64
  %26 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %25)
  %.not134 = icmp eq i32 %26, 0
  br i1 %.not134, label %61, label %27

27:                                               ; preds = %22
  %28 = icmp ugt i32 %.0126, 536870911
  br i1 %28, label %66, label %29

29:                                               ; preds = %27
  %30 = add nuw nsw i64 %25, 4
  %31 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %30)
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %13, i32 noundef %.0126)
  %32 = icmp ugt i32 %31, -9
  %33 = select i1 %32, i32 %26, i32 0
  tail call void @i32_store(ptr noundef nonnull %7, i64 noundef %14, i32 noundef %33)
  %34 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %16)
  %.not135 = icmp eq i32 %34, 0
  br i1 %.not135, label %67, label %35

35:                                               ; preds = %29
  %36 = zext i32 %34 to i64
  %37 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %36)
  %38 = zext i32 %37 to i64
  %39 = add nuw nsw i64 %38, 24
  %40 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %39)
  %41 = load i32, ptr %20, align 4, !tbaa !15
  %42 = icmp ult i32 %40, %41
  br i1 %42, label %43, label %.critedge, !prof !16

43:                                               ; preds = %35
  %44 = load ptr, ptr %19, align 8, !tbaa !17
  %45 = zext i32 %40 to i64
  %46 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %44, i64 %45
  %47 = getelementptr inbounds i8, ptr %46, i64 8
  %48 = load ptr, ptr %47, align 8, !tbaa !18
  %.not136 = icmp eq ptr %48, null
  br i1 %.not136, label %.critedge, label %49, !prof !20

49:                                               ; preds = %43
  %50 = load ptr, ptr %46, align 8, !tbaa !21
  %51 = tail call zeroext i1 @func_types_eq(ptr noundef %21, ptr noundef %50)
  br i1 %51, label %52, label %.critedge, !prof !16

.critedge:                                        ; preds = %43, %35, %49
  tail call void @wasm_rt_trap(i32 noundef 6) #4
  unreachable

52:                                               ; preds = %49
  %53 = load ptr, ptr %19, align 8, !tbaa !17
  %54 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %53, i64 %45
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  %56 = load ptr, ptr %55, align 8, !tbaa !18
  %57 = getelementptr inbounds i8, ptr %54, i64 16
  %58 = load ptr, ptr %57, align 8, !tbaa !22
  tail call void %56(ptr noundef %58, i32 noundef %34, i32 noundef %17, i32 noundef %18) #5
  %59 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %9)
  %60 = tail call i32 @i32_load(ptr noundef nonnull %7, i64 noundef %8)
  br label %61

61:                                               ; preds = %52, %22
  %.1128 = phi i32 [ %60, %52 ], [ %.0127, %22 ]
  %.1 = phi i32 [ %59, %52 ], [ %.0, %22 ]
  %62 = add nuw i32 %.0126, 1
  %63 = sub i32 %.1, %.1128
  %64 = sdiv i32 %63, 12
  %65 = icmp ult i32 %62, %64
  br i1 %65, label %22, label %.loopexit

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

66:                                               ; preds = %27
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 170731, i32 noundef 86175, i32 noundef 116, i32 noundef 91383) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable

67:                                               ; preds = %29
  tail call void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_bad_function_call0x5Babi0x3Av150070x5D0x280x29(ptr noundef %0) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #4
  unreachable
}

declare void @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fthrow_bad_function_call0x5Babi0x3Av150070x5D0x280x29(ptr noundef) local_unnamed_addr #0

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { 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 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}
!15 = !{!6, !10, i64 92}
!16 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!17 = !{!6, !7, i64 80}
!18 = !{!19, !7, i64 8}
!19 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16}
!20 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!21 = !{!19, !7, i64 0}
!22 = !{!19, !7, i64 16}


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