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

; 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_t6 = 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: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) #1

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

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

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

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

; 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 zeroext i1 @func_types_eq(ptr noundef, ptr noundef) #1

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

42:                                               ; preds = %5
  br label %346

43:                                               ; preds = %5
  %44 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %44, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %45 = load i32, ptr %18, align 4, !tbaa !9
  %46 = load i32, ptr %17, align 4, !tbaa !9
  %47 = add i32 %46, %45
  store i32 %47, ptr %17, align 4, !tbaa !9
  %48 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %48, ptr %16, align 4, !tbaa !9
  %49 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %49, ptr %18, align 4, !tbaa !9
  %50 = load i32, ptr %17, align 4, !tbaa !9
  %51 = load i32, ptr %18, align 4, !tbaa !9
  %52 = icmp eq i32 %50, %51
  %53 = zext i1 %52 to i32
  store i32 %53, ptr %17, align 4, !tbaa !9
  %54 = load i32, ptr %17, align 4, !tbaa !9
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %57

56:                                               ; preds = %43
  br label %346

57:                                               ; preds = %43
  br label %58

58:                                               ; preds = %344, %57
  %59 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %59, ptr %17, align 4, !tbaa !9
  %60 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %60, ptr %11, align 4, !tbaa !9
  %61 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %61, ptr %18, align 4, !tbaa !9
  %62 = load i32, ptr %17, align 4, !tbaa !9
  %63 = load i32, ptr %18, align 4, !tbaa !9
  %64 = icmp eq i32 %62, %63
  %65 = zext i1 %64 to i32
  store i32 %65, ptr %17, align 4, !tbaa !9
  %66 = load i32, ptr %17, align 4, !tbaa !9
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %69

68:                                               ; preds = %58
  br label %330

69:                                               ; preds = %58
  br label %70

70:                                               ; preds = %328, %69
  %71 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %71, ptr %17, align 4, !tbaa !9
  store i32 12, ptr %18, align 4, !tbaa !9
  %72 = load i32, ptr %18, align 4, !tbaa !9
  %73 = load i32, ptr %17, align 4, !tbaa !9
  %74 = add i32 %73, %72
  store i32 %74, ptr %17, align 4, !tbaa !9
  %75 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %75, ptr %18, align 4, !tbaa !9
  %76 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %76, ptr %19, align 4, !tbaa !9
  %77 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %77, ptr %20, align 4, !tbaa !9
  %78 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %78, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %22, align 4, !tbaa !9
  %79 = load i32, ptr %22, align 4, !tbaa !9
  %80 = load i32, ptr %21, align 4, !tbaa !9
  %81 = sub i32 %80, %79
  store i32 %81, ptr %21, align 4, !tbaa !9
  %82 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %82, ptr %14, align 4, !tbaa !9
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = load i32, ptr %17, align 4, !tbaa !9
  %85 = load i32, ptr %18, align 4, !tbaa !9
  %86 = load i32, ptr %19, align 4, !tbaa !9
  %87 = load i32, ptr %20, align 4, !tbaa !9
  %88 = load i32, ptr %21, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3A_less0x28hermes0x3A0x3Avm0x3A0x3ASortModel0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20int0x3E0x3E0x20const0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %83, i32 noundef %84, i32 noundef %85, i32 noundef %86, i32 noundef %87, i32 noundef %88)
  %89 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %89, ptr %17, align 4, !tbaa !9
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.w2c_hermes, ptr %90, i32 0, i32 6
  %92 = load i32, ptr %17, align 4, !tbaa !9
  %93 = zext i32 %92 to i64
  %94 = add i64 %93, 12
  %95 = call i32 @i32_load16_u(ptr noundef %91, i64 noundef %94)
  store i32 %95, ptr %17, align 4, !tbaa !9
  %96 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %96, ptr %13, align 4, !tbaa !9
  store i32 255, ptr %18, align 4, !tbaa !9
  %97 = load i32, ptr %18, align 4, !tbaa !9
  %98 = load i32, ptr %17, align 4, !tbaa !9
  %99 = and i32 %98, %97
  store i32 %99, ptr %17, align 4, !tbaa !9
  %100 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %100, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %101 = load i32, ptr %17, align 4, !tbaa !9
  %102 = load i32, ptr %18, align 4, !tbaa !9
  %103 = icmp ne i32 %101, %102
  %104 = zext i1 %103 to i32
  store i32 %104, ptr %17, align 4, !tbaa !9
  %105 = load i32, ptr %17, align 4, !tbaa !9
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %134

107:                                              ; preds = %70
  %108 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %108, ptr %17, align 4, !tbaa !9
  %109 = load i32, ptr %17, align 4, !tbaa !9
  %110 = icmp ne i32 %109, 0
  %111 = xor i1 %110, true
  %112 = zext i1 %111 to i32
  store i32 %112, ptr %17, align 4, !tbaa !9
  %113 = load i32, ptr %17, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %116

115:                                              ; preds = %107
  br label %346

116:                                              ; preds = %107
  store i32 0, ptr %17, align 4, !tbaa !9
  %117 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %117, ptr %11, align 4, !tbaa !9
  store i32 109676, ptr %18, align 4, !tbaa !9
  %118 = load i32, ptr %18, align 4, !tbaa !9
  %119 = load i32, ptr %17, align 4, !tbaa !9
  %120 = add i32 %119, %118
  store i32 %120, ptr %17, align 4, !tbaa !9
  %121 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %121, ptr %18, align 4, !tbaa !9
  store i32 77564, ptr %19, align 4, !tbaa !9
  %122 = load i32, ptr %19, align 4, !tbaa !9
  %123 = load i32, ptr %18, align 4, !tbaa !9
  %124 = add i32 %123, %122
  store i32 %124, ptr %18, align 4, !tbaa !9
  store i32 223, ptr %19, align 4, !tbaa !9
  %125 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %125, ptr %20, align 4, !tbaa !9
  store i32 90402, ptr %21, align 4, !tbaa !9
  %126 = load i32, ptr %21, align 4, !tbaa !9
  %127 = load i32, ptr %20, align 4, !tbaa !9
  %128 = add i32 %127, %126
  store i32 %128, ptr %20, align 4, !tbaa !9
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = load i32, ptr %17, align 4, !tbaa !9
  %131 = load i32, ptr %18, align 4, !tbaa !9
  %132 = load i32, ptr %19, align 4, !tbaa !9
  %133 = load i32, ptr %20, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %129, i32 noundef %130, i32 noundef %131, i32 noundef %132, i32 noundef %133)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

134:                                              ; preds = %70
  %135 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %135, ptr %17, align 4, !tbaa !9
  store i32 256, ptr %18, align 4, !tbaa !9
  %136 = load i32, ptr %18, align 4, !tbaa !9
  %137 = load i32, ptr %17, align 4, !tbaa !9
  %138 = and i32 %137, %136
  store i32 %138, ptr %17, align 4, !tbaa !9
  %139 = load i32, ptr %17, align 4, !tbaa !9
  %140 = icmp ne i32 %139, 0
  %141 = xor i1 %140, true
  %142 = zext i1 %141 to i32
  store i32 %142, ptr %17, align 4, !tbaa !9
  %143 = load i32, ptr %17, align 4, !tbaa !9
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %145, label %146

145:                                              ; preds = %134
  br label %330

146:                                              ; preds = %134
  %147 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %147, ptr %17, align 4, !tbaa !9
  %148 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %148, ptr %18, align 4, !tbaa !9
  %149 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %149, ptr %19, align 4, !tbaa !9
  %150 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %150, ptr %20, align 4, !tbaa !9
  %151 = load ptr, ptr %6, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.w2c_hermes, ptr %151, i32 0, i32 6
  %153 = load i32, ptr %20, align 4, !tbaa !9
  %154 = zext i32 %153 to i64
  %155 = call i32 @i32_load(ptr noundef %152, i64 noundef %154)
  store i32 %155, ptr %20, align 4, !tbaa !9
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.w2c_hermes, ptr %156, i32 0, i32 6
  %158 = load i32, ptr %20, align 4, !tbaa !9
  %159 = zext i32 %158 to i64
  %160 = call i32 @i32_load(ptr noundef %157, i64 noundef %159)
  store i32 %160, ptr %20, align 4, !tbaa !9
  %161 = load i32, ptr %20, align 4, !tbaa !9
  %162 = load ptr, ptr %6, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.w2c_hermes, ptr %162, i32 0, i32 7
  %164 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %163, i32 0, i32 2
  %165 = load i32, ptr %164, align 4, !tbaa !17
  %166 = icmp ult i32 %161, %165
  br i1 %166, label %167, label %190

167:                                              ; preds = %146
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.w2c_hermes, ptr %168, i32 0, i32 7
  %170 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %169, i32 0, i32 0
  %171 = load ptr, ptr %170, align 8, !tbaa !18
  %172 = load i32, ptr %20, align 4, !tbaa !9
  %173 = zext i32 %172 to i64
  %174 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %171, i64 %173
  %175 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %174, i32 0, i32 1
  %176 = load ptr, ptr %175, align 8, !tbaa !19
  %177 = icmp ne ptr %176, null
  br i1 %177, label %178, label %190

178:                                              ; preds = %167
  %179 = load ptr, ptr @w2c_hermes_t6, align 8, !tbaa !5
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.w2c_hermes, ptr %180, i32 0, i32 7
  %182 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %181, i32 0, i32 0
  %183 = load ptr, ptr %182, align 8, !tbaa !18
  %184 = load i32, ptr %20, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %183, i64 %185
  %187 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %186, i32 0, i32 0
  %188 = load ptr, ptr %187, align 8, !tbaa !21
  %189 = call zeroext i1 @func_types_eq(ptr noundef %179, ptr noundef %188)
  br label %190

190:                                              ; preds = %178, %167, %146
  %191 = phi i1 [ false, %167 ], [ false, %146 ], [ %189, %178 ]
  %192 = xor i1 %191, true
  %193 = xor i1 %192, true
  %194 = zext i1 %193 to i32
  %195 = sext i32 %194 to i64
  %196 = call i64 @llvm.expect.i64(i64 %195, i64 1)
  %197 = icmp ne i64 %196, 0
  br i1 %197, label %200, label %198

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

199:                                              ; No predecessors!
  br label %200

200:                                              ; preds = %199, %190
  %201 = phi i1 [ true, %190 ], [ false, %199 ]
  %202 = zext i1 %201 to i32
  %203 = load ptr, ptr %6, 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 %20, 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 1
  %211 = load ptr, ptr %210, align 8, !tbaa !19
  %212 = load ptr, ptr %6, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.w2c_hermes, ptr %212, i32 0, i32 7
  %214 = getelementptr inbounds %struct.wasm_rt_funcref_table_t, ptr %213, i32 0, i32 0
  %215 = load ptr, ptr %214, align 8, !tbaa !18
  %216 = load i32, ptr %20, align 4, !tbaa !9
  %217 = zext i32 %216 to i64
  %218 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %215, i64 %217
  %219 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %218, i32 0, i32 2
  %220 = load ptr, ptr %219, align 8, !tbaa !22
  %221 = load i32, ptr %17, align 4, !tbaa !9
  %222 = load i32, ptr %18, align 4, !tbaa !9
  %223 = load i32, ptr %19, align 4, !tbaa !9
  %224 = call i32 %211(ptr noundef %220, i32 noundef %221, i32 noundef %222, i32 noundef %223)
  store i32 %224, ptr %17, align 4, !tbaa !9
  %225 = load i32, ptr %17, align 4, !tbaa !9
  %226 = icmp ne i32 %225, 0
  %227 = xor i1 %226, true
  %228 = zext i1 %227 to i32
  store i32 %228, ptr %17, align 4, !tbaa !9
  %229 = load i32, ptr %17, align 4, !tbaa !9
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %231, label %233

231:                                              ; preds = %200
  store i32 0, ptr %17, align 4, !tbaa !9
  %232 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %232, ptr %12, align 4, !tbaa !9
  br label %346

233:                                              ; preds = %200
  %234 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %234, ptr %17, align 4, !tbaa !9
  %235 = load ptr, ptr %6, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.w2c_hermes, ptr %235, i32 0, i32 6
  %237 = load i32, ptr %17, 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 %17, align 4, !tbaa !9
  %241 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %241, ptr %18, align 4, !tbaa !9
  %242 = load ptr, ptr %6, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.w2c_hermes, ptr %242, i32 0, i32 6
  %244 = load i32, ptr %18, align 4, !tbaa !9
  %245 = zext i32 %244 to i64
  %246 = call i32 @i32_load(ptr noundef %243, i64 noundef %245)
  store i32 %246, ptr %18, align 4, !tbaa !9
  %247 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %247, ptr %13, align 4, !tbaa !9
  %248 = load i32, ptr %18, align 4, !tbaa !9
  %249 = load i32, ptr %17, align 4, !tbaa !9
  %250 = sub i32 %249, %248
  store i32 %250, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %18, align 4, !tbaa !9
  %251 = load i32, ptr %17, align 4, !tbaa !9
  %252 = load i32, ptr %18, align 4, !tbaa !9
  %253 = and i32 %252, 31
  %254 = ashr i32 %251, %253
  store i32 %254, ptr %17, align 4, !tbaa !9
  %255 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %255, ptr %12, align 4, !tbaa !9
  %256 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %256, ptr %18, align 4, !tbaa !9
  %257 = load i32, ptr %17, align 4, !tbaa !9
  %258 = load i32, ptr %18, align 4, !tbaa !9
  %259 = icmp ule i32 %257, %258
  %260 = zext i1 %259 to i32
  store i32 %260, ptr %17, align 4, !tbaa !9
  %261 = load i32, ptr %17, align 4, !tbaa !9
  %262 = icmp ne i32 %261, 0
  br i1 %262, label %263, label %264

263:                                              ; preds = %233
  br label %355

264:                                              ; preds = %233
  %265 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %265, ptr %17, align 4, !tbaa !9
  %266 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %266, ptr %18, align 4, !tbaa !9
  %267 = load i32, ptr %17, align 4, !tbaa !9
  %268 = load i32, ptr %18, align 4, !tbaa !9
  %269 = icmp ule i32 %267, %268
  %270 = zext i1 %269 to i32
  store i32 %270, ptr %17, align 4, !tbaa !9
  %271 = load i32, ptr %17, align 4, !tbaa !9
  %272 = icmp ne i32 %271, 0
  br i1 %272, label %273, label %274

273:                                              ; preds = %264
  br label %373

274:                                              ; preds = %264
  %275 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %275, ptr %17, align 4, !tbaa !9
  %276 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %276, ptr %18, align 4, !tbaa !9
  store i32 2, ptr %19, align 4, !tbaa !9
  %277 = load i32, ptr %19, align 4, !tbaa !9
  %278 = and i32 %277, 31
  %279 = load i32, ptr %18, align 4, !tbaa !9
  %280 = shl i32 %279, %278
  store i32 %280, ptr %18, align 4, !tbaa !9
  %281 = load i32, ptr %18, align 4, !tbaa !9
  %282 = load i32, ptr %17, align 4, !tbaa !9
  %283 = add i32 %282, %281
  store i32 %283, ptr %17, align 4, !tbaa !9
  %284 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %284, ptr %11, align 4, !tbaa !9
  %285 = load ptr, ptr %6, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.w2c_hermes, ptr %285, i32 0, i32 6
  %287 = load i32, ptr %17, align 4, !tbaa !9
  %288 = zext i32 %287 to i64
  %289 = call i32 @i32_load(ptr noundef %286, i64 noundef %288)
  store i32 %289, ptr %17, align 4, !tbaa !9
  %290 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %290, ptr %12, align 4, !tbaa !9
  %291 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %291, ptr %17, align 4, !tbaa !9
  %292 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %292, ptr %18, align 4, !tbaa !9
  %293 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %293, ptr %19, align 4, !tbaa !9
  store i32 2, ptr %20, align 4, !tbaa !9
  %294 = load i32, ptr %20, align 4, !tbaa !9
  %295 = and i32 %294, 31
  %296 = load i32, ptr %19, align 4, !tbaa !9
  %297 = shl i32 %296, %295
  store i32 %297, ptr %19, align 4, !tbaa !9
  %298 = load i32, ptr %19, align 4, !tbaa !9
  %299 = load i32, ptr %18, align 4, !tbaa !9
  %300 = add i32 %299, %298
  store i32 %300, ptr %18, align 4, !tbaa !9
  %301 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %301, ptr %13, align 4, !tbaa !9
  %302 = load ptr, ptr %6, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.w2c_hermes, ptr %302, i32 0, i32 6
  %304 = load i32, ptr %18, align 4, !tbaa !9
  %305 = zext i32 %304 to i64
  %306 = call i32 @i32_load(ptr noundef %303, i64 noundef %305)
  store i32 %306, ptr %18, align 4, !tbaa !9
  %307 = load ptr, ptr %6, align 8, !tbaa !5
  %308 = getelementptr inbounds %struct.w2c_hermes, ptr %307, i32 0, i32 6
  %309 = load i32, ptr %17, align 4, !tbaa !9
  %310 = zext i32 %309 to i64
  %311 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %308, i64 noundef %310, i32 noundef %311)
  %312 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %312, ptr %17, align 4, !tbaa !9
  %313 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %313, ptr %18, align 4, !tbaa !9
  %314 = load ptr, ptr %6, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.w2c_hermes, ptr %314, i32 0, i32 6
  %316 = load i32, ptr %17, align 4, !tbaa !9
  %317 = zext i32 %316 to i64
  %318 = load i32, ptr %18, align 4, !tbaa !9
  call void @i32_store(ptr noundef %315, i64 noundef %317, i32 noundef %318)
  %319 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %319, ptr %17, align 4, !tbaa !9
  %320 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %320, ptr %11, align 4, !tbaa !9
  %321 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %321, ptr %18, align 4, !tbaa !9
  %322 = load i32, ptr %17, align 4, !tbaa !9
  %323 = load i32, ptr %18, align 4, !tbaa !9
  %324 = icmp ne i32 %322, %323
  %325 = zext i1 %324 to i32
  store i32 %325, ptr %17, align 4, !tbaa !9
  %326 = load i32, ptr %17, align 4, !tbaa !9
  %327 = icmp ne i32 %326, 0
  br i1 %327, label %328, label %329

328:                                              ; preds = %274
  br label %70

329:                                              ; preds = %274
  br label %330

330:                                              ; preds = %329, %145, %68
  store i32 1, ptr %17, align 4, !tbaa !9
  %331 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %331, ptr %12, align 4, !tbaa !9
  %332 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %332, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %18, align 4, !tbaa !9
  %333 = load i32, ptr %18, align 4, !tbaa !9
  %334 = load i32, ptr %17, align 4, !tbaa !9
  %335 = add i32 %334, %333
  store i32 %335, ptr %17, align 4, !tbaa !9
  %336 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %336, ptr %16, align 4, !tbaa !9
  %337 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %337, ptr %18, align 4, !tbaa !9
  %338 = load i32, ptr %17, align 4, !tbaa !9
  %339 = load i32, ptr %18, align 4, !tbaa !9
  %340 = icmp ne i32 %338, %339
  %341 = zext i1 %340 to i32
  store i32 %341, ptr %17, align 4, !tbaa !9
  %342 = load i32, ptr %17, align 4, !tbaa !9
  %343 = icmp ne i32 %342, 0
  br i1 %343, label %344, label %345

344:                                              ; preds = %330
  br label %58

345:                                              ; preds = %330
  br label %346

346:                                              ; preds = %345, %231, %115, %56, %42
  %347 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %347, ptr %17, align 4, !tbaa !9
  store i32 16, ptr %18, align 4, !tbaa !9
  %348 = load i32, ptr %18, align 4, !tbaa !9
  %349 = load i32, ptr %17, align 4, !tbaa !9
  %350 = add i32 %349, %348
  store i32 %350, ptr %17, align 4, !tbaa !9
  %351 = load i32, ptr %17, align 4, !tbaa !9
  %352 = load ptr, ptr %6, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.w2c_hermes, ptr %352, i32 0, i32 3
  store i32 %351, ptr %353, align 8, !tbaa !11
  %354 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %354, ptr %17, align 4, !tbaa !9
  br label %391

355:                                              ; preds = %263
  store i32 0, ptr %17, align 4, !tbaa !9
  %356 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %356, ptr %11, align 4, !tbaa !9
  store i32 169099, ptr %18, align 4, !tbaa !9
  %357 = load i32, ptr %18, align 4, !tbaa !9
  %358 = load i32, ptr %17, align 4, !tbaa !9
  %359 = add i32 %358, %357
  store i32 %359, ptr %17, align 4, !tbaa !9
  %360 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %360, ptr %18, align 4, !tbaa !9
  store i32 60063, ptr %19, align 4, !tbaa !9
  %361 = load i32, ptr %19, align 4, !tbaa !9
  %362 = load i32, ptr %18, align 4, !tbaa !9
  %363 = add i32 %362, %361
  store i32 %363, ptr %18, align 4, !tbaa !9
  store i32 48, ptr %19, align 4, !tbaa !9
  %364 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %364, ptr %20, align 4, !tbaa !9
  store i32 63282, ptr %21, align 4, !tbaa !9
  %365 = load i32, ptr %21, align 4, !tbaa !9
  %366 = load i32, ptr %20, align 4, !tbaa !9
  %367 = add i32 %366, %365
  store i32 %367, ptr %20, align 4, !tbaa !9
  %368 = load ptr, ptr %6, align 8, !tbaa !5
  %369 = load i32, ptr %17, align 4, !tbaa !9
  %370 = load i32, ptr %18, align 4, !tbaa !9
  %371 = load i32, ptr %19, align 4, !tbaa !9
  %372 = load i32, ptr %20, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %368, i32 noundef %369, i32 noundef %370, i32 noundef %371, i32 noundef %372)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

373:                                              ; preds = %273
  store i32 0, ptr %17, align 4, !tbaa !9
  %374 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %374, ptr %11, align 4, !tbaa !9
  store i32 169052, ptr %18, align 4, !tbaa !9
  %375 = load i32, ptr %18, align 4, !tbaa !9
  %376 = load i32, ptr %17, align 4, !tbaa !9
  %377 = add i32 %376, %375
  store i32 %377, ptr %17, align 4, !tbaa !9
  %378 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %378, ptr %18, align 4, !tbaa !9
  store i32 60063, ptr %19, align 4, !tbaa !9
  %379 = load i32, ptr %19, align 4, !tbaa !9
  %380 = load i32, ptr %18, align 4, !tbaa !9
  %381 = add i32 %380, %379
  store i32 %381, ptr %18, align 4, !tbaa !9
  store i32 49, ptr %19, align 4, !tbaa !9
  %382 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %382, ptr %20, align 4, !tbaa !9
  store i32 63282, ptr %21, align 4, !tbaa !9
  %383 = load i32, ptr %21, align 4, !tbaa !9
  %384 = load i32, ptr %20, align 4, !tbaa !9
  %385 = add i32 %384, %383
  store i32 %385, ptr %20, align 4, !tbaa !9
  %386 = load ptr, ptr %6, align 8, !tbaa !5
  %387 = load i32, ptr %17, align 4, !tbaa !9
  %388 = load i32, ptr %18, align 4, !tbaa !9
  %389 = load i32, ptr %19, align 4, !tbaa !9
  %390 = load i32, ptr %20, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %386, i32 noundef %387, i32 noundef %388, i32 noundef %389, i32 noundef %390)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

391:                                              ; preds = %346
  %392 = load i32, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  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
  ret i32 %392
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { noreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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, !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_t6 = external local_unnamed_addr constant ptr, align 8

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

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

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

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

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 zeroext i1 @func_types_eq(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 256) i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3AinsertionSort0x28hermes0x3A0x3Avm0x3A0x3ASortModel0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20int0x3E0x3E0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #3 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -16
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = icmp eq i32 %3, %4
  %10 = add i32 %3, 1
  %11 = icmp eq i32 %10, %4
  %or.cond = or i1 %9, %11
  br i1 %or.cond, label %.loopexit, label %.preheader216

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

22:                                               ; preds = %.preheader216, %.loopexit215
  %.0196 = phi i32 [ %67, %.loopexit215 ], [ %10, %.preheader216 ]
  %23 = icmp eq i32 %.0196, %3
  br i1 %23, label %.loopexit215, label %.preheader

.preheader:                                       ; preds = %22, %58
  %.0 = phi i32 [ %24, %58 ], [ %.0196, %22 ]
  %24 = add i32 %.0, -1
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3A_less0x28hermes0x3A0x3Avm0x3A0x3ASortModel0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20int0x3E0x3E0x20const0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %12, i32 noundef %1, i32 noundef %2, i32 noundef %.0, i32 noundef %24)
  %25 = tail call i32 @i32_load16_u(ptr noundef nonnull %13, i64 noundef %15)
  %trunc = trunc i32 %25 to i8
  switch i8 %trunc, label %26 [
    i8 1, label %27
    i8 0, label %.loopexit
  ]

26:                                               ; preds = %.preheader
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef %0, i32 noundef 109676, i32 noundef 77564, i32 noundef 223, i32 noundef 90402) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

27:                                               ; preds = %.preheader
  %28 = and i32 %25, 256
  %.not206 = icmp eq i32 %28, 0
  br i1 %.not206, label %.loopexit215, label %29

29:                                               ; preds = %27
  %30 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %16)
  %31 = zext i32 %30 to i64
  %32 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %31)
  %33 = load i32, ptr %18, align 4, !tbaa !15
  %34 = icmp ult i32 %32, %33
  br i1 %34, label %35, label %.critedge, !prof !16

35:                                               ; preds = %29
  %36 = load ptr, ptr %17, align 8, !tbaa !17
  %37 = zext i32 %32 to i64
  %38 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %36, i64 %37
  %39 = getelementptr inbounds i8, ptr %38, i64 8
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %.not207 = icmp eq ptr %40, null
  br i1 %.not207, label %.critedge, label %41, !prof !20

41:                                               ; preds = %35
  %42 = load ptr, ptr %38, align 8, !tbaa !21
  %43 = tail call zeroext i1 @func_types_eq(ptr noundef %19, ptr noundef %42)
  br i1 %43, label %44, label %.critedge, !prof !16

.critedge:                                        ; preds = %35, %29, %41
  tail call void @wasm_rt_trap(i32 noundef 6) #5
  unreachable

44:                                               ; preds = %41
  %45 = load ptr, ptr %17, align 8, !tbaa !17
  %46 = getelementptr inbounds %struct.wasm_rt_funcref_t, ptr %45, i64 %37
  %47 = getelementptr inbounds i8, ptr %46, i64 8
  %48 = load ptr, ptr %47, align 8, !tbaa !18
  %49 = getelementptr inbounds i8, ptr %46, i64 16
  %50 = load ptr, ptr %49, align 8, !tbaa !22
  %51 = tail call i32 %48(ptr noundef %50, i32 noundef %1, i32 noundef %.0, i32 noundef %24) #4
  %.not208 = icmp eq i32 %51, 0
  br i1 %.not208, label %.loopexit, label %52

52:                                               ; preds = %44
  %53 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %21)
  %54 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %20)
  %55 = sub i32 %53, %54
  %56 = ashr i32 %55, 2
  %.not209 = icmp ugt i32 %56, %.0
  br i1 %.not209, label %57, label %68

57:                                               ; preds = %52
  %.not210 = icmp ugt i32 %56, %24
  br i1 %.not210, label %58, label %69

58:                                               ; preds = %57
  %59 = shl i32 %.0, 2
  %60 = add i32 %54, %59
  %61 = zext i32 %60 to i64
  %62 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %61)
  %63 = shl i32 %24, 2
  %64 = add i32 %54, %63
  %65 = zext i32 %64 to i64
  %66 = tail call i32 @i32_load(ptr noundef nonnull %13, i64 noundef %65)
  tail call void @i32_store(ptr noundef nonnull %13, i64 noundef %61, i32 noundef %66)
  tail call void @i32_store(ptr noundef nonnull %13, i64 noundef %65, i32 noundef %62)
  %.not211 = icmp eq i32 %24, %3
  br i1 %.not211, label %.loopexit215, label %.preheader

.loopexit215:                                     ; preds = %58, %27, %22
  %67 = add i32 %.0196, 1
  %.not213 = icmp eq i32 %67, %4
  br i1 %.not213, label %.loopexit, label %22

.loopexit:                                        ; preds = %.loopexit215, %44, %.preheader, %5
  %.0197 = phi i32 [ 1, %5 ], [ 0, %.preheader ], [ 0, %44 ], [ 1, %.loopexit215 ]
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret i32 %.0197

68:                                               ; preds = %52
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 169099, i32 noundef 60063, i32 noundef 48, i32 noundef 63282) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

69:                                               ; preds = %57
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 169052, i32 noundef 60063, i32 noundef 49, i32 noundef 63282) #4
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!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: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass