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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 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

declare i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) #3

declare i32 @w2c_hermes_0x5F_memset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctlz.i32(i32, i1 immarg) #4

declare void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef, i32 noundef) #3

declare void @w2c_hermes_abort(ptr noundef) #3

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

44:                                               ; preds = %4
  br label %426

45:                                               ; preds = %4
  %46 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %46, ptr %19, align 4, !tbaa !9
  %47 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %47, ptr %20, align 4, !tbaa !9
  %48 = load i32, ptr %20, align 4, !tbaa !9
  %49 = load i32, ptr %19, align 4, !tbaa !9
  %50 = sub i32 %49, %48
  store i32 %50, ptr %19, align 4, !tbaa !9
  %51 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %51, ptr %13, align 4, !tbaa !9
  store i32 1073741824, ptr %20, align 4, !tbaa !9
  %52 = load i32, ptr %19, align 4, !tbaa !9
  %53 = load i32, ptr %20, align 4, !tbaa !9
  %54 = icmp uge i32 %52, %53
  %55 = zext i1 %54 to i32
  store i32 %55, ptr %19, align 4, !tbaa !9
  %56 = load i32, ptr %19, align 4, !tbaa !9
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %59

58:                                               ; preds = %45
  br label %435

59:                                               ; preds = %45
  %60 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %60, ptr %19, align 4, !tbaa !9
  %61 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %61, ptr %20, align 4, !tbaa !9
  store i32 2, ptr %21, align 4, !tbaa !9
  %62 = load i32, ptr %21, align 4, !tbaa !9
  %63 = and i32 %62, 31
  %64 = load i32, ptr %20, align 4, !tbaa !9
  %65 = shl i32 %64, %63
  store i32 %65, ptr %20, align 4, !tbaa !9
  %66 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %66, ptr %9, align 4, !tbaa !9
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = load i32, ptr %20, align 4, !tbaa !9
  %69 = call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef %67, i32 noundef %68)
  store i32 %69, ptr %20, align 4, !tbaa !9
  %70 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %70, ptr %14, align 4, !tbaa !9
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %19, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 4
  %76 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %72, i64 noundef %75, i32 noundef %76)
  %77 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %77, ptr %19, align 4, !tbaa !9
  %78 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %78, ptr %20, align 4, !tbaa !9
  %79 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %79, ptr %21, align 4, !tbaa !9
  %80 = load i32, ptr %21, align 4, !tbaa !9
  %81 = load i32, ptr %20, align 4, !tbaa !9
  %82 = add i32 %81, %80
  store i32 %82, ptr %20, align 4, !tbaa !9
  %83 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %83, ptr %15, align 4, !tbaa !9
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.w2c_hermes, ptr %84, i32 0, i32 6
  %86 = load i32, ptr %19, align 4, !tbaa !9
  %87 = zext i32 %86 to i64
  %88 = add i64 %87, 12
  %89 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %85, i64 noundef %88, i32 noundef %89)
  %90 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %90, ptr %19, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  %91 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %91, ptr %21, align 4, !tbaa !9
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = load i32, ptr %19, align 4, !tbaa !9
  %94 = load i32, ptr %20, align 4, !tbaa !9
  %95 = load i32, ptr %21, align 4, !tbaa !9
  %96 = call i32 @w2c_hermes_0x5F_memset(ptr noundef %92, i32 noundef %93, i32 noundef %94, i32 noundef %95)
  store i32 %96, ptr %19, align 4, !tbaa !9
  %97 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %97, ptr %11, align 4, !tbaa !9
  %98 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %98, ptr %19, align 4, !tbaa !9
  %99 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %99, ptr %20, align 4, !tbaa !9
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.w2c_hermes, ptr %100, i32 0, i32 6
  %102 = load i32, ptr %19, align 4, !tbaa !9
  %103 = zext i32 %102 to i64
  %104 = add i64 %103, 8
  %105 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %101, i64 noundef %104, i32 noundef %105)
  store i32 0, ptr %19, align 4, !tbaa !9
  %106 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %106, ptr %9, align 4, !tbaa !9
  %107 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %107, ptr %19, align 4, !tbaa !9
  store i32 -1, ptr %20, align 4, !tbaa !9
  %108 = load i32, ptr %20, align 4, !tbaa !9
  %109 = load i32, ptr %19, align 4, !tbaa !9
  %110 = xor i32 %109, %108
  store i32 %110, ptr %19, align 4, !tbaa !9
  %111 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %111, ptr %20, align 4, !tbaa !9
  %112 = load i32, ptr %20, align 4, !tbaa !9
  %113 = load i32, ptr %19, align 4, !tbaa !9
  %114 = add i32 %113, %112
  store i32 %114, ptr %19, align 4, !tbaa !9
  store i32 7, ptr %20, align 4, !tbaa !9
  %115 = load i32, ptr %19, align 4, !tbaa !9
  %116 = load i32, ptr %20, align 4, !tbaa !9
  %117 = icmp uge i32 %115, %116
  %118 = zext i1 %117 to i32
  store i32 %118, ptr %19, align 4, !tbaa !9
  %119 = load i32, ptr %19, align 4, !tbaa !9
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %296

121:                                              ; preds = %59
  %122 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %122, ptr %19, align 4, !tbaa !9
  store i32 -8, ptr %20, align 4, !tbaa !9
  %123 = load i32, ptr %20, align 4, !tbaa !9
  %124 = load i32, ptr %19, align 4, !tbaa !9
  %125 = and i32 %124, %123
  store i32 %125, ptr %19, align 4, !tbaa !9
  %126 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %126, ptr %17, align 4, !tbaa !9
  store i32 0, ptr %19, align 4, !tbaa !9
  %127 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %127, ptr %15, align 4, !tbaa !9
  br label %128

128:                                              ; preds = %294, %121
  %129 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %129, ptr %19, align 4, !tbaa !9
  %130 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %130, ptr %20, align 4, !tbaa !9
  store i32 2, ptr %21, align 4, !tbaa !9
  %131 = load i32, ptr %21, align 4, !tbaa !9
  %132 = and i32 %131, 31
  %133 = load i32, ptr %20, align 4, !tbaa !9
  %134 = shl i32 %133, %132
  store i32 %134, ptr %20, align 4, !tbaa !9
  %135 = load i32, ptr %20, align 4, !tbaa !9
  %136 = load i32, ptr %19, align 4, !tbaa !9
  %137 = add i32 %136, %135
  store i32 %137, ptr %19, align 4, !tbaa !9
  %138 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %138, ptr %20, align 4, !tbaa !9
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.w2c_hermes, ptr %139, i32 0, i32 6
  %141 = load i32, ptr %19, align 4, !tbaa !9
  %142 = zext i32 %141 to i64
  %143 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %140, i64 noundef %142, i32 noundef %143)
  %144 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %144, ptr %19, align 4, !tbaa !9
  %145 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %145, ptr %20, align 4, !tbaa !9
  store i32 1, ptr %21, align 4, !tbaa !9
  %146 = load i32, ptr %21, align 4, !tbaa !9
  %147 = load i32, ptr %20, align 4, !tbaa !9
  %148 = or i32 %147, %146
  store i32 %148, ptr %20, align 4, !tbaa !9
  %149 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %149, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %21, align 4, !tbaa !9
  %150 = load i32, ptr %21, align 4, !tbaa !9
  %151 = and i32 %150, 31
  %152 = load i32, ptr %20, align 4, !tbaa !9
  %153 = shl i32 %152, %151
  store i32 %153, ptr %20, align 4, !tbaa !9
  %154 = load i32, ptr %20, align 4, !tbaa !9
  %155 = load i32, ptr %19, align 4, !tbaa !9
  %156 = add i32 %155, %154
  store i32 %156, ptr %19, align 4, !tbaa !9
  %157 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %157, ptr %20, align 4, !tbaa !9
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.w2c_hermes, ptr %158, i32 0, i32 6
  %160 = load i32, ptr %19, align 4, !tbaa !9
  %161 = zext i32 %160 to i64
  %162 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %159, i64 noundef %161, i32 noundef %162)
  %163 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %163, ptr %19, align 4, !tbaa !9
  %164 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %164, ptr %20, align 4, !tbaa !9
  store i32 2, ptr %21, align 4, !tbaa !9
  %165 = load i32, ptr %21, align 4, !tbaa !9
  %166 = load i32, ptr %20, align 4, !tbaa !9
  %167 = or i32 %166, %165
  store i32 %167, ptr %20, align 4, !tbaa !9
  %168 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %168, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %21, align 4, !tbaa !9
  %169 = load i32, ptr %21, align 4, !tbaa !9
  %170 = and i32 %169, 31
  %171 = load i32, ptr %20, align 4, !tbaa !9
  %172 = shl i32 %171, %170
  store i32 %172, ptr %20, align 4, !tbaa !9
  %173 = load i32, ptr %20, align 4, !tbaa !9
  %174 = load i32, ptr %19, align 4, !tbaa !9
  %175 = add i32 %174, %173
  store i32 %175, ptr %19, align 4, !tbaa !9
  %176 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %176, ptr %20, align 4, !tbaa !9
  %177 = load ptr, ptr %5, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.w2c_hermes, ptr %177, i32 0, i32 6
  %179 = load i32, ptr %19, align 4, !tbaa !9
  %180 = zext i32 %179 to i64
  %181 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %178, i64 noundef %180, i32 noundef %181)
  %182 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %182, ptr %19, align 4, !tbaa !9
  %183 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %183, ptr %20, align 4, !tbaa !9
  store i32 3, ptr %21, align 4, !tbaa !9
  %184 = load i32, ptr %21, align 4, !tbaa !9
  %185 = load i32, ptr %20, align 4, !tbaa !9
  %186 = or i32 %185, %184
  store i32 %186, ptr %20, align 4, !tbaa !9
  %187 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %187, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %21, align 4, !tbaa !9
  %188 = load i32, ptr %21, align 4, !tbaa !9
  %189 = and i32 %188, 31
  %190 = load i32, ptr %20, align 4, !tbaa !9
  %191 = shl i32 %190, %189
  store i32 %191, ptr %20, align 4, !tbaa !9
  %192 = load i32, ptr %20, align 4, !tbaa !9
  %193 = load i32, ptr %19, align 4, !tbaa !9
  %194 = add i32 %193, %192
  store i32 %194, ptr %19, align 4, !tbaa !9
  %195 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %195, ptr %20, align 4, !tbaa !9
  %196 = load ptr, ptr %5, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.w2c_hermes, ptr %196, i32 0, i32 6
  %198 = load i32, ptr %19, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %197, i64 noundef %199, i32 noundef %200)
  %201 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %201, ptr %19, align 4, !tbaa !9
  %202 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %202, ptr %20, align 4, !tbaa !9
  store i32 4, ptr %21, align 4, !tbaa !9
  %203 = load i32, ptr %21, align 4, !tbaa !9
  %204 = load i32, ptr %20, align 4, !tbaa !9
  %205 = or i32 %204, %203
  store i32 %205, ptr %20, align 4, !tbaa !9
  %206 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %206, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %21, align 4, !tbaa !9
  %207 = load i32, ptr %21, align 4, !tbaa !9
  %208 = and i32 %207, 31
  %209 = load i32, ptr %20, align 4, !tbaa !9
  %210 = shl i32 %209, %208
  store i32 %210, ptr %20, align 4, !tbaa !9
  %211 = load i32, ptr %20, align 4, !tbaa !9
  %212 = load i32, ptr %19, align 4, !tbaa !9
  %213 = add i32 %212, %211
  store i32 %213, ptr %19, align 4, !tbaa !9
  %214 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %214, ptr %20, align 4, !tbaa !9
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.w2c_hermes, ptr %215, i32 0, i32 6
  %217 = load i32, ptr %19, align 4, !tbaa !9
  %218 = zext i32 %217 to i64
  %219 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %216, i64 noundef %218, i32 noundef %219)
  %220 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %220, ptr %19, align 4, !tbaa !9
  %221 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %221, ptr %20, align 4, !tbaa !9
  store i32 5, ptr %21, align 4, !tbaa !9
  %222 = load i32, ptr %21, align 4, !tbaa !9
  %223 = load i32, ptr %20, align 4, !tbaa !9
  %224 = or i32 %223, %222
  store i32 %224, ptr %20, align 4, !tbaa !9
  %225 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %225, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %21, align 4, !tbaa !9
  %226 = load i32, ptr %21, align 4, !tbaa !9
  %227 = and i32 %226, 31
  %228 = load i32, ptr %20, align 4, !tbaa !9
  %229 = shl i32 %228, %227
  store i32 %229, ptr %20, align 4, !tbaa !9
  %230 = load i32, ptr %20, align 4, !tbaa !9
  %231 = load i32, ptr %19, align 4, !tbaa !9
  %232 = add i32 %231, %230
  store i32 %232, ptr %19, align 4, !tbaa !9
  %233 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %233, ptr %20, align 4, !tbaa !9
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.w2c_hermes, ptr %234, i32 0, i32 6
  %236 = load i32, ptr %19, align 4, !tbaa !9
  %237 = zext i32 %236 to i64
  %238 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %235, i64 noundef %237, i32 noundef %238)
  %239 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %239, ptr %19, align 4, !tbaa !9
  %240 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %240, ptr %20, align 4, !tbaa !9
  store i32 6, ptr %21, align 4, !tbaa !9
  %241 = load i32, ptr %21, align 4, !tbaa !9
  %242 = load i32, ptr %20, align 4, !tbaa !9
  %243 = or i32 %242, %241
  store i32 %243, ptr %20, align 4, !tbaa !9
  %244 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %244, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %21, align 4, !tbaa !9
  %245 = load i32, ptr %21, align 4, !tbaa !9
  %246 = and i32 %245, 31
  %247 = load i32, ptr %20, align 4, !tbaa !9
  %248 = shl i32 %247, %246
  store i32 %248, ptr %20, align 4, !tbaa !9
  %249 = load i32, ptr %20, align 4, !tbaa !9
  %250 = load i32, ptr %19, align 4, !tbaa !9
  %251 = add i32 %250, %249
  store i32 %251, ptr %19, align 4, !tbaa !9
  %252 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %252, ptr %20, align 4, !tbaa !9
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.w2c_hermes, ptr %253, i32 0, i32 6
  %255 = load i32, ptr %19, align 4, !tbaa !9
  %256 = zext i32 %255 to i64
  %257 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %254, i64 noundef %256, i32 noundef %257)
  %258 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %258, ptr %19, align 4, !tbaa !9
  %259 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %259, ptr %20, align 4, !tbaa !9
  store i32 7, ptr %21, align 4, !tbaa !9
  %260 = load i32, ptr %21, align 4, !tbaa !9
  %261 = load i32, ptr %20, align 4, !tbaa !9
  %262 = or i32 %261, %260
  store i32 %262, ptr %20, align 4, !tbaa !9
  %263 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %263, ptr %10, align 4, !tbaa !9
  store i32 2, ptr %21, align 4, !tbaa !9
  %264 = load i32, ptr %21, align 4, !tbaa !9
  %265 = and i32 %264, 31
  %266 = load i32, ptr %20, align 4, !tbaa !9
  %267 = shl i32 %266, %265
  store i32 %267, ptr %20, align 4, !tbaa !9
  %268 = load i32, ptr %20, align 4, !tbaa !9
  %269 = load i32, ptr %19, align 4, !tbaa !9
  %270 = add i32 %269, %268
  store i32 %270, ptr %19, align 4, !tbaa !9
  %271 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %271, ptr %20, align 4, !tbaa !9
  %272 = load ptr, ptr %5, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.w2c_hermes, ptr %272, i32 0, i32 6
  %274 = load i32, ptr %19, align 4, !tbaa !9
  %275 = zext i32 %274 to i64
  %276 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %273, i64 noundef %275, i32 noundef %276)
  %277 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %277, ptr %19, align 4, !tbaa !9
  store i32 8, ptr %20, align 4, !tbaa !9
  %278 = load i32, ptr %20, align 4, !tbaa !9
  %279 = load i32, ptr %19, align 4, !tbaa !9
  %280 = add i32 %279, %278
  store i32 %280, ptr %19, align 4, !tbaa !9
  %281 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %281, ptr %9, align 4, !tbaa !9
  %282 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %282, ptr %19, align 4, !tbaa !9
  store i32 8, ptr %20, align 4, !tbaa !9
  %283 = load i32, ptr %20, align 4, !tbaa !9
  %284 = load i32, ptr %19, align 4, !tbaa !9
  %285 = add i32 %284, %283
  store i32 %285, ptr %19, align 4, !tbaa !9
  %286 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %286, ptr %15, align 4, !tbaa !9
  %287 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %287, ptr %20, align 4, !tbaa !9
  %288 = load i32, ptr %19, align 4, !tbaa !9
  %289 = load i32, ptr %20, align 4, !tbaa !9
  %290 = icmp ne i32 %288, %289
  %291 = zext i1 %290 to i32
  store i32 %291, ptr %19, align 4, !tbaa !9
  %292 = load i32, ptr %19, align 4, !tbaa !9
  %293 = icmp ne i32 %292, 0
  br i1 %293, label %294, label %295

294:                                              ; preds = %128
  br label %128

295:                                              ; preds = %128
  br label %296

296:                                              ; preds = %295, %59
  %297 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %297, ptr %19, align 4, !tbaa !9
  store i32 7, ptr %20, align 4, !tbaa !9
  %298 = load i32, ptr %20, align 4, !tbaa !9
  %299 = load i32, ptr %19, align 4, !tbaa !9
  %300 = and i32 %299, %298
  store i32 %300, ptr %19, align 4, !tbaa !9
  %301 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %301, ptr %18, align 4, !tbaa !9
  %302 = load i32, ptr %19, align 4, !tbaa !9
  %303 = icmp ne i32 %302, 0
  br i1 %303, label %304, label %340

304:                                              ; preds = %296
  br label %305

305:                                              ; preds = %338, %304
  %306 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %306, ptr %19, align 4, !tbaa !9
  %307 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %307, ptr %20, align 4, !tbaa !9
  store i32 2, ptr %21, align 4, !tbaa !9
  %308 = load i32, ptr %21, align 4, !tbaa !9
  %309 = and i32 %308, 31
  %310 = load i32, ptr %20, align 4, !tbaa !9
  %311 = shl i32 %310, %309
  store i32 %311, ptr %20, align 4, !tbaa !9
  %312 = load i32, ptr %20, align 4, !tbaa !9
  %313 = load i32, ptr %19, align 4, !tbaa !9
  %314 = add i32 %313, %312
  store i32 %314, ptr %19, align 4, !tbaa !9
  %315 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %315, ptr %20, align 4, !tbaa !9
  %316 = load ptr, ptr %5, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.w2c_hermes, ptr %316, i32 0, i32 6
  %318 = load i32, ptr %19, align 4, !tbaa !9
  %319 = zext i32 %318 to i64
  %320 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %317, i64 noundef %319, i32 noundef %320)
  %321 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %321, ptr %19, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  %322 = load i32, ptr %20, align 4, !tbaa !9
  %323 = load i32, ptr %19, align 4, !tbaa !9
  %324 = add i32 %323, %322
  store i32 %324, ptr %19, align 4, !tbaa !9
  %325 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %325, ptr %9, align 4, !tbaa !9
  %326 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %326, ptr %19, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  %327 = load i32, ptr %20, align 4, !tbaa !9
  %328 = load i32, ptr %19, align 4, !tbaa !9
  %329 = add i32 %328, %327
  store i32 %329, ptr %19, align 4, !tbaa !9
  %330 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %330, ptr %16, align 4, !tbaa !9
  %331 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %331, ptr %20, align 4, !tbaa !9
  %332 = load i32, ptr %19, align 4, !tbaa !9
  %333 = load i32, ptr %20, align 4, !tbaa !9
  %334 = icmp ne i32 %332, %333
  %335 = zext i1 %334 to i32
  store i32 %335, ptr %19, align 4, !tbaa !9
  %336 = load i32, ptr %19, align 4, !tbaa !9
  %337 = icmp ne i32 %336, 0
  br i1 %337, label %338, label %339

338:                                              ; preds = %305
  br label %305

339:                                              ; preds = %305
  br label %340

340:                                              ; preds = %339, %296
  %341 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %341, ptr %19, align 4, !tbaa !9
  store i32 6, ptr %20, align 4, !tbaa !9
  %342 = load i32, ptr %19, align 4, !tbaa !9
  %343 = load i32, ptr %20, align 4, !tbaa !9
  %344 = icmp ule i32 %342, %343
  %345 = zext i1 %344 to i32
  store i32 %345, ptr %19, align 4, !tbaa !9
  %346 = load i32, ptr %19, align 4, !tbaa !9
  %347 = icmp ne i32 %346, 0
  br i1 %347, label %348, label %363

348:                                              ; preds = %340
  %349 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %349, ptr %19, align 4, !tbaa !9
  %350 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %350, ptr %20, align 4, !tbaa !9
  store i32 4, ptr %21, align 4, !tbaa !9
  %351 = load i32, ptr %21, align 4, !tbaa !9
  %352 = load i32, ptr %20, align 4, !tbaa !9
  %353 = add i32 %352, %351
  store i32 %353, ptr %20, align 4, !tbaa !9
  %354 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %354, ptr %21, align 4, !tbaa !9
  %355 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %355, ptr %22, align 4, !tbaa !9
  %356 = load ptr, ptr %5, align 8, !tbaa !5
  %357 = load i32, ptr %19, align 4, !tbaa !9
  %358 = load i32, ptr %20, align 4, !tbaa !9
  %359 = load i32, ptr %21, align 4, !tbaa !9
  %360 = load i32, ptr %22, align 4, !tbaa !9
  %361 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3AinsertionSort0x28hermes0x3A0x3Avm0x3A0x3ASortModel0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20int0x3E0x3E0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %356, i32 noundef %357, i32 noundef %358, i32 noundef %359, i32 noundef %360)
  store i32 %361, ptr %19, align 4, !tbaa !9
  %362 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %362, ptr %9, align 4, !tbaa !9
  br label %414

363:                                              ; preds = %340
  %364 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %364, ptr %19, align 4, !tbaa !9
  %365 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %365, ptr %20, align 4, !tbaa !9
  store i32 4, ptr %21, align 4, !tbaa !9
  %366 = load i32, ptr %21, align 4, !tbaa !9
  %367 = load i32, ptr %20, align 4, !tbaa !9
  %368 = add i32 %367, %366
  store i32 %368, ptr %20, align 4, !tbaa !9
  %369 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %369, ptr %21, align 4, !tbaa !9
  %370 = load i32, ptr %21, align 4, !tbaa !9
  %371 = icmp ne i32 %370, 0
  br i1 %371, label %372, label %375

372:                                              ; preds = %363
  %373 = load i32, ptr %21, align 4, !tbaa !9
  %374 = call i32 @llvm.ctlz.i32(i32 %373, i1 true)
  br label %376

375:                                              ; preds = %363
  br label %376

376:                                              ; preds = %375, %372
  %377 = phi i32 [ %374, %372 ], [ 32, %375 ]
  store i32 %377, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %22, align 4, !tbaa !9
  %378 = load i32, ptr %22, align 4, !tbaa !9
  %379 = and i32 %378, 31
  %380 = load i32, ptr %21, align 4, !tbaa !9
  %381 = shl i32 %380, %379
  store i32 %381, ptr %21, align 4, !tbaa !9
  store i32 62, ptr %22, align 4, !tbaa !9
  %382 = load i32, ptr %22, align 4, !tbaa !9
  %383 = load i32, ptr %21, align 4, !tbaa !9
  %384 = xor i32 %383, %382
  store i32 %384, ptr %21, align 4, !tbaa !9
  %385 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %385, ptr %22, align 4, !tbaa !9
  %386 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %386, ptr %23, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  %387 = load i32, ptr %24, align 4, !tbaa !9
  %388 = load i32, ptr %23, align 4, !tbaa !9
  %389 = sub i32 %388, %387
  store i32 %389, ptr %23, align 4, !tbaa !9
  %390 = load ptr, ptr %5, align 8, !tbaa !5
  %391 = load i32, ptr %19, align 4, !tbaa !9
  %392 = load i32, ptr %20, align 4, !tbaa !9
  %393 = load i32, ptr %21, align 4, !tbaa !9
  %394 = load i32, ptr %22, align 4, !tbaa !9
  %395 = load i32, ptr %23, align 4, !tbaa !9
  %396 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3AdoQuickSort0x28hermes0x3A0x3Avm0x3A0x3ASortModel0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20int0x3E0x3E0x260x2C0x20int0x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %390, i32 noundef %391, i32 noundef %392, i32 noundef %393, i32 noundef %394, i32 noundef %395)
  store i32 %396, ptr %19, align 4, !tbaa !9
  %397 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %397, ptr %9, align 4, !tbaa !9
  %398 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %398, ptr %19, align 4, !tbaa !9
  %399 = load ptr, ptr %5, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.w2c_hermes, ptr %399, i32 0, i32 6
  %401 = load i32, ptr %19, align 4, !tbaa !9
  %402 = zext i32 %401 to i64
  %403 = add i64 %402, 4
  %404 = call i32 @i32_load(ptr noundef %400, i64 noundef %403)
  store i32 %404, ptr %19, align 4, !tbaa !9
  %405 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %405, ptr %14, align 4, !tbaa !9
  %406 = load i32, ptr %19, align 4, !tbaa !9
  %407 = icmp ne i32 %406, 0
  %408 = xor i1 %407, true
  %409 = zext i1 %408 to i32
  store i32 %409, ptr %19, align 4, !tbaa !9
  %410 = load i32, ptr %19, align 4, !tbaa !9
  %411 = icmp ne i32 %410, 0
  br i1 %411, label %412, label %413

412:                                              ; preds = %376
  br label %426

413:                                              ; preds = %376
  br label %414

414:                                              ; preds = %413, %348
  %415 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %415, ptr %19, align 4, !tbaa !9
  %416 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %416, ptr %20, align 4, !tbaa !9
  %417 = load ptr, ptr %5, align 8, !tbaa !5
  %418 = getelementptr inbounds %struct.w2c_hermes, ptr %417, i32 0, i32 6
  %419 = load i32, ptr %19, align 4, !tbaa !9
  %420 = zext i32 %419 to i64
  %421 = add i64 %420, 8
  %422 = load i32, ptr %20, align 4, !tbaa !9
  call void @i32_store(ptr noundef %418, i64 noundef %421, i32 noundef %422)
  %423 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %423, ptr %19, align 4, !tbaa !9
  %424 = load ptr, ptr %5, align 8, !tbaa !5
  %425 = load i32, ptr %19, align 4, !tbaa !9
  call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %424, i32 noundef %425)
  br label %426

426:                                              ; preds = %414, %412, %44
  %427 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %427, ptr %19, align 4, !tbaa !9
  store i32 16, ptr %20, align 4, !tbaa !9
  %428 = load i32, ptr %20, align 4, !tbaa !9
  %429 = load i32, ptr %19, align 4, !tbaa !9
  %430 = add i32 %429, %428
  store i32 %430, ptr %19, align 4, !tbaa !9
  %431 = load i32, ptr %19, align 4, !tbaa !9
  %432 = load ptr, ptr %5, align 8, !tbaa !5
  %433 = getelementptr inbounds %struct.w2c_hermes, ptr %432, i32 0, i32 3
  store i32 %431, ptr %433, align 8, !tbaa !11
  %434 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %434, ptr %19, align 4, !tbaa !9
  br label %437

435:                                              ; preds = %58
  %436 = load ptr, ptr %5, align 8, !tbaa !5
  call void @w2c_hermes_abort(ptr noundef %436)
  call void @wasm_rt_trap(i32 noundef 5) #7
  unreachable

437:                                              ; preds = %426
  %438 = load i32, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret i32 %438
}

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3AinsertionSort0x28hermes0x3A0x3Avm0x3A0x3ASortModel0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20int0x3E0x3E0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3AdoQuickSort0x28hermes0x3A0x3Avm0x3A0x3ASortModel0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20int0x3E0x3E0x260x2C0x20int0x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

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 = { "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 speculatable 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}


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

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

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

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

declare i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @w2c_hermes_0x5F_memset(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.ctlz.i32(i32, i1 immarg) #3

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

declare void @w2c_hermes_abort(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AquickSort0x28hermes0x3A0x3Avm0x3A0x3ASortModel0x2A0x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #4 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add i32 %6, -16
  store i32 %7, ptr %5, align 8, !tbaa !5
  %.not = icmp ult i32 %2, %3
  br i1 %.not, label %8, label %85

8:                                                ; preds = %4
  %9 = sub i32 %3, %2
  %10 = icmp ugt i32 %9, 1073741823
  br i1 %10, label %86, label %11

11:                                               ; preds = %8
  %12 = shl nuw i32 %9, 2
  %13 = tail call i32 @w2c_hermes_operator0x20new0x28unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %12) #5
  %14 = getelementptr inbounds i8, ptr %0, i64 40
  %15 = zext i32 %7 to i64
  %16 = add nuw nsw i64 %15, 4
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %16, i32 noundef %13)
  %17 = add i32 %13, %12
  %18 = add nuw nsw i64 %15, 12
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %18, i32 noundef %17)
  %19 = tail call i32 @w2c_hermes_0x5F_memset(ptr noundef nonnull %0, i32 noundef %13, i32 noundef 0, i32 noundef %12) #5
  %20 = add nuw nsw i64 %15, 8
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %20, i32 noundef %17)
  %21 = sub i32 %2, %3
  %22 = icmp ult i32 %21, -7
  br i1 %22, label %23, label %.loopexit276

23:                                               ; preds = %11
  %24 = and i32 %9, 1073741816
  %25 = and i32 %9, 1073741816
  br label %26

26:                                               ; preds = %26, %23
  %indvars.iv = phi i64 [ %indvars.iv.next, %26 ], [ 0, %23 ]
  %27 = trunc nuw i64 %indvars.iv to i32
  %28 = shl i32 %27, 2
  %29 = add i32 %28, %19
  %30 = zext i32 %29 to i64
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %30, i32 noundef %27)
  %31 = trunc i64 %indvars.iv to i32
  %32 = or disjoint i32 %31, 1
  %33 = shl i32 %32, 2
  %34 = add i32 %33, %19
  %35 = zext i32 %34 to i64
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %35, i32 noundef %32)
  %36 = trunc i64 %indvars.iv to i32
  %37 = or disjoint i32 %36, 2
  %38 = shl i32 %37, 2
  %39 = add i32 %38, %19
  %40 = zext i32 %39 to i64
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %40, i32 noundef %37)
  %41 = trunc i64 %indvars.iv to i32
  %42 = or disjoint i32 %41, 3
  %43 = shl i32 %42, 2
  %44 = add i32 %43, %19
  %45 = zext i32 %44 to i64
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %45, i32 noundef %42)
  %46 = trunc i64 %indvars.iv to i32
  %47 = or disjoint i32 %46, 4
  %48 = shl i32 %47, 2
  %49 = add i32 %48, %19
  %50 = zext i32 %49 to i64
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %50, i32 noundef %47)
  %51 = trunc i64 %indvars.iv to i32
  %52 = or disjoint i32 %51, 5
  %53 = shl i32 %52, 2
  %54 = add i32 %53, %19
  %55 = zext i32 %54 to i64
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %55, i32 noundef %52)
  %56 = trunc i64 %indvars.iv to i32
  %57 = or disjoint i32 %56, 6
  %58 = shl i32 %57, 2
  %59 = add i32 %58, %19
  %60 = zext i32 %59 to i64
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %60, i32 noundef %57)
  %61 = trunc i64 %indvars.iv to i32
  %62 = or disjoint i32 %61, 7
  %63 = shl i32 %62, 2
  %64 = add i32 %63, %19
  %65 = zext i32 %64 to i64
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %65, i32 noundef %62)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 8
  %indvars = trunc i64 %indvars.iv.next to i32
  %.not272 = icmp eq i32 %24, %indvars
  br i1 %.not272, label %.loopexit276.loopexit, label %26

.loopexit276.loopexit:                            ; preds = %26
  %66 = zext nneg i32 %25 to i64
  br label %.loopexit276

.loopexit276:                                     ; preds = %.loopexit276.loopexit, %11
  %.1 = phi i64 [ 0, %11 ], [ %66, %.loopexit276.loopexit ]
  %67 = and i32 %9, 7
  %.not273 = icmp eq i32 %67, 0
  br i1 %.not273, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.loopexit276, %.preheader
  %indvars.iv280 = phi i64 [ %indvars.iv.next281, %.preheader ], [ %.1, %.loopexit276 ]
  %.0266 = phi i32 [ %72, %.preheader ], [ 0, %.loopexit276 ]
  %68 = trunc nuw i64 %indvars.iv280 to i32
  %69 = shl i32 %68, 2
  %70 = add i32 %69, %19
  %71 = zext i32 %70 to i64
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %71, i32 noundef %68)
  %indvars.iv.next281 = add nuw nsw i64 %indvars.iv280, 1
  %72 = add nuw nsw i32 %.0266, 1
  %.not274 = icmp eq i32 %72, %67
  br i1 %.not274, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.loopexit276
  %73 = icmp ult i32 %9, 7
  %74 = add i32 %6, -12
  br i1 %73, label %75, label %77

75:                                               ; preds = %.loopexit
  %76 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3AinsertionSort0x28hermes0x3A0x3Avm0x3A0x3ASortModel0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20int0x3E0x3E0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %74, i32 noundef %2, i32 noundef %3) #5
  br label %84

77:                                               ; preds = %.loopexit
  %78 = tail call range(i32 2, 33) i32 @llvm.ctlz.i32(i32 %9, i1 true)
  %79 = shl nuw nsw i32 %78, 1
  %80 = xor i32 %79, 62
  %81 = add i32 %3, -1
  %82 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3AdoQuickSort0x28hermes0x3A0x3Avm0x3A0x3ASortModel0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20int0x3E0x3E0x260x2C0x20int0x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %74, i32 noundef %80, i32 noundef %2, i32 noundef %81) #5
  %83 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %16)
  %.not275 = icmp eq i32 %83, 0
  br i1 %.not275, label %85, label %84

84:                                               ; preds = %77, %75
  %.0268 = phi i32 [ %13, %75 ], [ %83, %77 ]
  %.3 = phi i32 [ %76, %75 ], [ %82, %77 ]
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %20, i32 noundef %.0268)
  tail call void @w2c_hermes_operator0x20delete0x28void0x2A0x29(ptr noundef %0, i32 noundef %.0268) #5
  br label %85

85:                                               ; preds = %77, %4, %84
  %.4 = phi i32 [ 1, %4 ], [ %.3, %84 ], [ %82, %77 ]
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret i32 %.4

86:                                               ; preds = %8
  tail call void @w2c_hermes_abort(ptr noundef nonnull %0) #5
  tail call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable
}

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3AinsertionSort0x28hermes0x3A0x3Avm0x3A0x3ASortModel0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20int0x3E0x3E0x260x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3A0x28anonymous0x20namespace0x290x3A0x3AdoQuickSort0x28hermes0x3A0x3Avm0x3A0x3ASortModel0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3Avector0x3Cunsigned0x20int0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cunsigned0x20int0x3E0x3E0x260x2C0x20int0x2C0x20unsigned0x20int0x2C0x20unsigned0x20int0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { noreturn nounwind }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass