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

; 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

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

declare i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x3A0x3Aoperator0x280x290x5Babi0x3Av150070x5D0x28unsigned0x20int0x20const0x260x2C0x20unsigned0x20int0x20const0x260x290x20const(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_unsigned0x20int0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fsort40x3Cstd0x3A0x3A_0x5F20x3A0x3A_ClassicAlgPolicy0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x260x2C0x20unsigned0x20int0x2A0x3E0x28unsigned0x20int0x2A0x2C0x20unsigned0x20int0x2A0x2C0x20unsigned0x20int0x2A0x2C0x20unsigned0x20int0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #3 {
  %7 = alloca ptr, align 8
  %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
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.w2c_hermes, ptr %19, i32 0, i32 3
  %21 = load i32, ptr %20, align 8, !tbaa !11
  store i32 %21, ptr %15, align 4, !tbaa !9
  store i32 16, ptr %16, align 4, !tbaa !9
  %22 = load i32, ptr %16, align 4, !tbaa !9
  %23 = load i32, ptr %15, align 4, !tbaa !9
  %24 = sub i32 %23, %22
  store i32 %24, ptr %15, align 4, !tbaa !9
  %25 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %25, ptr %13, align 4, !tbaa !9
  %26 = load i32, ptr %15, align 4, !tbaa !9
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.w2c_hermes, ptr %27, i32 0, i32 3
  store i32 %26, ptr %28, align 8, !tbaa !11
  %29 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %29, ptr %15, align 4, !tbaa !9
  %30 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %30, ptr %16, align 4, !tbaa !9
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.w2c_hermes, ptr %31, i32 0, i32 6
  %33 = load i32, ptr %15, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = add i64 %34, 8
  %36 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %32, i64 noundef %35, i32 noundef %36)
  %37 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %37, ptr %15, align 4, !tbaa !9
  %38 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %38, ptr %16, align 4, !tbaa !9
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.w2c_hermes, ptr %39, i32 0, i32 6
  %41 = load i32, ptr %15, align 4, !tbaa !9
  %42 = zext i32 %41 to i64
  %43 = add i64 %42, 12
  %44 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %40, i64 noundef %43, i32 noundef %44)
  %45 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %45, ptr %15, align 4, !tbaa !9
  %46 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %46, ptr %16, align 4, !tbaa !9
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.w2c_hermes, ptr %47, i32 0, i32 6
  %49 = load i32, ptr %15, align 4, !tbaa !9
  %50 = zext i32 %49 to i64
  %51 = add i64 %50, 4
  %52 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %48, i64 noundef %51, i32 noundef %52)
  %53 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %53, ptr %15, align 4, !tbaa !9
  %54 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %54, ptr %16, align 4, !tbaa !9
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.w2c_hermes, ptr %55, i32 0, i32 6
  %57 = load i32, ptr %15, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %56, i64 noundef %58, i32 noundef %59)
  %60 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %60, ptr %15, align 4, !tbaa !9
  %61 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %61, ptr %16, align 4, !tbaa !9
  %62 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %62, ptr %17, align 4, !tbaa !9
  %63 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %63, ptr %18, align 4, !tbaa !9
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = load i32, ptr %15, align 4, !tbaa !9
  %66 = load i32, ptr %16, align 4, !tbaa !9
  %67 = load i32, ptr %17, align 4, !tbaa !9
  %68 = load i32, ptr %18, align 4, !tbaa !9
  %69 = call i32 @w2c_hermes_unsigned0x20int0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fsort30x3Cstd0x3A0x3A_0x5F20x3A0x3A_ClassicAlgPolicy0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x260x2C0x20unsigned0x20int0x2A0x3E0x28unsigned0x20int0x2A0x2C0x20unsigned0x20int0x2A0x2C0x20unsigned0x20int0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x260x29(ptr noundef %64, i32 noundef %65, i32 noundef %66, i32 noundef %67, i32 noundef %68)
  store i32 %69, ptr %15, align 4, !tbaa !9
  %70 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %70, ptr %14, align 4, !tbaa !9
  %71 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %71, ptr %15, align 4, !tbaa !9
  %72 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %72, ptr %16, align 4, !tbaa !9
  %73 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %73, ptr %17, align 4, !tbaa !9
  %74 = load ptr, ptr %7, align 8, !tbaa !5
  %75 = load i32, ptr %15, align 4, !tbaa !9
  %76 = load i32, ptr %16, align 4, !tbaa !9
  %77 = load i32, ptr %17, align 4, !tbaa !9
  %78 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x3A0x3Aoperator0x280x290x5Babi0x3Av150070x5D0x28unsigned0x20int0x20const0x260x2C0x20unsigned0x20int0x20const0x260x290x20const(ptr noundef %74, i32 noundef %75, i32 noundef %76, i32 noundef %77)
  store i32 %78, ptr %15, align 4, !tbaa !9
  %79 = load i32, ptr %15, align 4, !tbaa !9
  %80 = icmp ne i32 %79, 0
  %81 = xor i1 %80, true
  %82 = zext i1 %81 to i32
  store i32 %82, ptr %15, align 4, !tbaa !9
  %83 = load i32, ptr %15, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %6
  br label %176

86:                                               ; preds = %6
  %87 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %87, ptr %15, align 4, !tbaa !9
  store i32 4, ptr %16, align 4, !tbaa !9
  %88 = load i32, ptr %16, align 4, !tbaa !9
  %89 = load i32, ptr %15, align 4, !tbaa !9
  %90 = add i32 %89, %88
  store i32 %90, ptr %15, align 4, !tbaa !9
  %91 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %91, ptr %16, align 4, !tbaa !9
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = load i32, ptr %15, align 4, !tbaa !9
  %94 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3A_IterOps0x3Cstd0x3A0x3A_0x5F20x3A0x3A_ClassicAlgPolicy0x3E0x3A0x3Aiter_swap0x5Babi0x3Av150070x5D0x3Cunsigned0x20int0x2A0x260x2C0x20unsigned0x20int0x2A0x260x3E0x28unsigned0x20int0x2A0x260x2C0x20unsigned0x20int0x2A0x260x29(ptr noundef %92, i32 noundef %93, i32 noundef %94)
  %95 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %95, ptr %15, align 4, !tbaa !9
  %96 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %96, ptr %16, align 4, !tbaa !9
  %97 = load ptr, ptr %7, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.w2c_hermes, ptr %97, i32 0, i32 6
  %99 = load i32, ptr %16, align 4, !tbaa !9
  %100 = zext i32 %99 to i64
  %101 = add i64 %100, 4
  %102 = call i32 @i32_load(ptr noundef %98, i64 noundef %101)
  store i32 %102, ptr %16, align 4, !tbaa !9
  %103 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %103, ptr %17, align 4, !tbaa !9
  %104 = load ptr, ptr %7, align 8, !tbaa !5
  %105 = load i32, ptr %15, align 4, !tbaa !9
  %106 = load i32, ptr %16, align 4, !tbaa !9
  %107 = load i32, ptr %17, align 4, !tbaa !9
  %108 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x3A0x3Aoperator0x280x290x5Babi0x3Av150070x5D0x28unsigned0x20int0x20const0x260x2C0x20unsigned0x20int0x20const0x260x290x20const(ptr noundef %104, i32 noundef %105, i32 noundef %106, i32 noundef %107)
  store i32 %108, ptr %15, align 4, !tbaa !9
  %109 = load i32, ptr %15, 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 %15, align 4, !tbaa !9
  %113 = load i32, ptr %15, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %121

115:                                              ; preds = %86
  %116 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %116, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %117 = load i32, ptr %16, align 4, !tbaa !9
  %118 = load i32, ptr %15, align 4, !tbaa !9
  %119 = add i32 %118, %117
  store i32 %119, ptr %15, align 4, !tbaa !9
  %120 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %120, ptr %14, align 4, !tbaa !9
  br label %176

121:                                              ; preds = %86
  %122 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %122, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %123 = load i32, ptr %16, align 4, !tbaa !9
  %124 = load i32, ptr %15, align 4, !tbaa !9
  %125 = add i32 %124, %123
  store i32 %125, ptr %15, align 4, !tbaa !9
  %126 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %126, ptr %16, align 4, !tbaa !9
  store i32 4, ptr %17, align 4, !tbaa !9
  %127 = load i32, ptr %17, align 4, !tbaa !9
  %128 = load i32, ptr %16, align 4, !tbaa !9
  %129 = add i32 %128, %127
  store i32 %129, ptr %16, align 4, !tbaa !9
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = load i32, ptr %15, align 4, !tbaa !9
  %132 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3A_IterOps0x3Cstd0x3A0x3A_0x5F20x3A0x3A_ClassicAlgPolicy0x3E0x3A0x3Aiter_swap0x5Babi0x3Av150070x5D0x3Cunsigned0x20int0x2A0x260x2C0x20unsigned0x20int0x2A0x260x3E0x28unsigned0x20int0x2A0x260x2C0x20unsigned0x20int0x2A0x260x29(ptr noundef %130, i32 noundef %131, i32 noundef %132)
  %133 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %133, ptr %15, align 4, !tbaa !9
  %134 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %134, ptr %16, align 4, !tbaa !9
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.w2c_hermes, ptr %135, i32 0, i32 6
  %137 = load i32, ptr %16, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = add i64 %138, 8
  %140 = call i32 @i32_load(ptr noundef %136, i64 noundef %139)
  store i32 %140, ptr %16, align 4, !tbaa !9
  %141 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %141, ptr %17, align 4, !tbaa !9
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = load i32, ptr %15, align 4, !tbaa !9
  %144 = load i32, ptr %16, align 4, !tbaa !9
  %145 = load i32, ptr %17, align 4, !tbaa !9
  %146 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x3A0x3Aoperator0x280x290x5Babi0x3Av150070x5D0x28unsigned0x20int0x20const0x260x2C0x20unsigned0x20int0x20const0x260x290x20const(ptr noundef %142, i32 noundef %143, i32 noundef %144, i32 noundef %145)
  store i32 %146, ptr %15, align 4, !tbaa !9
  %147 = load i32, ptr %15, align 4, !tbaa !9
  %148 = icmp ne i32 %147, 0
  %149 = xor i1 %148, true
  %150 = zext i1 %149 to i32
  store i32 %150, ptr %15, align 4, !tbaa !9
  %151 = load i32, ptr %15, align 4, !tbaa !9
  %152 = icmp ne i32 %151, 0
  br i1 %152, label %153, label %159

153:                                              ; preds = %121
  %154 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %154, ptr %15, align 4, !tbaa !9
  store i32 2, ptr %16, align 4, !tbaa !9
  %155 = load i32, ptr %16, align 4, !tbaa !9
  %156 = load i32, ptr %15, align 4, !tbaa !9
  %157 = add i32 %156, %155
  store i32 %157, ptr %15, align 4, !tbaa !9
  %158 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %158, ptr %14, align 4, !tbaa !9
  br label %176

159:                                              ; preds = %121
  %160 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %160, ptr %15, align 4, !tbaa !9
  store i32 3, ptr %16, align 4, !tbaa !9
  %161 = load i32, ptr %16, align 4, !tbaa !9
  %162 = load i32, ptr %15, align 4, !tbaa !9
  %163 = add i32 %162, %161
  store i32 %163, ptr %15, align 4, !tbaa !9
  %164 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %164, ptr %14, align 4, !tbaa !9
  %165 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %165, ptr %15, align 4, !tbaa !9
  store i32 12, ptr %16, align 4, !tbaa !9
  %166 = load i32, ptr %16, align 4, !tbaa !9
  %167 = load i32, ptr %15, align 4, !tbaa !9
  %168 = add i32 %167, %166
  store i32 %168, ptr %15, align 4, !tbaa !9
  %169 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %169, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %170 = load i32, ptr %17, align 4, !tbaa !9
  %171 = load i32, ptr %16, align 4, !tbaa !9
  %172 = add i32 %171, %170
  store i32 %172, ptr %16, align 4, !tbaa !9
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  %174 = load i32, ptr %15, align 4, !tbaa !9
  %175 = load i32, ptr %16, align 4, !tbaa !9
  call void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3A_IterOps0x3Cstd0x3A0x3A_0x5F20x3A0x3A_ClassicAlgPolicy0x3E0x3A0x3Aiter_swap0x5Babi0x3Av150070x5D0x3Cunsigned0x20int0x2A0x260x2C0x20unsigned0x20int0x2A0x260x3E0x28unsigned0x20int0x2A0x260x2C0x20unsigned0x20int0x2A0x260x29(ptr noundef %173, i32 noundef %174, i32 noundef %175)
  br label %176

176:                                              ; preds = %159, %153, %115, %85
  %177 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %177, ptr %15, align 4, !tbaa !9
  store i32 16, ptr %16, align 4, !tbaa !9
  %178 = load i32, ptr %16, align 4, !tbaa !9
  %179 = load i32, ptr %15, align 4, !tbaa !9
  %180 = add i32 %179, %178
  store i32 %180, ptr %15, align 4, !tbaa !9
  %181 = load i32, ptr %15, align 4, !tbaa !9
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.w2c_hermes, ptr %182, i32 0, i32 3
  store i32 %181, ptr %183, align 8, !tbaa !11
  %184 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %184, ptr %15, align 4, !tbaa !9
  %185 = load i32, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  ret i32 %185
}

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

!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 i32 @i32_load(ptr noundef, i64 noundef) local_unnamed_addr #0

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

declare i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x3A0x3Aoperator0x280x290x5Babi0x3Av150070x5D0x28unsigned0x20int0x20const0x260x2C0x20unsigned0x20int0x20const0x260x290x20const(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @w2c_hermes_unsigned0x20int0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fsort30x3Cstd0x3A0x3A_0x5F20x3A0x3A_ClassicAlgPolicy0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x260x2C0x20unsigned0x20int0x2A0x3E0x28unsigned0x20int0x2A0x2C0x20unsigned0x20int0x2A0x2C0x20unsigned0x20int0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x260x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_unsigned0x20int0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fsort40x3Cstd0x3A0x3A_0x5F20x3A0x3A_ClassicAlgPolicy0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x260x2C0x20unsigned0x20int0x2A0x3E0x28unsigned0x20int0x2A0x2C0x20unsigned0x20int0x2A0x2C0x20unsigned0x20int0x2A0x2C0x20unsigned0x20int0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #2 {
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = add i32 %8, -16
  store i32 %9, ptr %7, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 40
  %11 = zext i32 %9 to i64
  %12 = add nuw nsw i64 %11, 8
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %12, i32 noundef %2)
  %13 = add nuw nsw i64 %11, 12
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %13, i32 noundef %1)
  %14 = add nuw nsw i64 %11, 4
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %14, i32 noundef %3)
  tail call void @i32_store(ptr noundef nonnull %10, i64 noundef %11, i32 noundef %4)
  %15 = tail call i32 @w2c_hermes_unsigned0x20int0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fsort30x3Cstd0x3A0x3A_0x5F20x3A0x3A_ClassicAlgPolicy0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x260x2C0x20unsigned0x20int0x2A0x3E0x28unsigned0x20int0x2A0x2C0x20unsigned0x20int0x2A0x2C0x20unsigned0x20int0x2A0x2C0x20std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x260x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %5)
  %16 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x3A0x3Aoperator0x280x290x5Babi0x3Av150070x5D0x28unsigned0x20int0x20const0x260x2C0x20unsigned0x20int0x20const0x260x290x20const(ptr noundef %0, i32 noundef %5, i32 noundef %4, i32 noundef %3) #3
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %32, label %17

17:                                               ; preds = %6
  %18 = add i32 %8, -12
  tail call void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3A_IterOps0x3Cstd0x3A0x3A_0x5F20x3A0x3A_ClassicAlgPolicy0x3E0x3A0x3Aiter_swap0x5Babi0x3Av150070x5D0x3Cunsigned0x20int0x2A0x260x2C0x20unsigned0x20int0x2A0x260x3E0x28unsigned0x20int0x2A0x260x2C0x20unsigned0x20int0x2A0x260x29(ptr noundef nonnull %0, i32 noundef %18, i32 noundef %9)
  %19 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %14)
  %20 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x3A0x3Aoperator0x280x290x5Babi0x3Av150070x5D0x28unsigned0x20int0x20const0x260x2C0x20unsigned0x20int0x20const0x260x290x20const(ptr noundef nonnull %0, i32 noundef %5, i32 noundef %19, i32 noundef %2) #3
  %.not110 = icmp eq i32 %20, 0
  br i1 %.not110, label %21, label %23

21:                                               ; preds = %17
  %22 = add i32 %15, 1
  br label %32

23:                                               ; preds = %17
  %24 = add i32 %8, -8
  tail call void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3A_IterOps0x3Cstd0x3A0x3A_0x5F20x3A0x3A_ClassicAlgPolicy0x3E0x3A0x3Aiter_swap0x5Babi0x3Av150070x5D0x3Cunsigned0x20int0x2A0x260x2C0x20unsigned0x20int0x2A0x260x3E0x28unsigned0x20int0x2A0x260x2C0x20unsigned0x20int0x2A0x260x29(ptr noundef nonnull %0, i32 noundef %24, i32 noundef %18)
  %25 = tail call i32 @i32_load(ptr noundef nonnull %10, i64 noundef %12)
  %26 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3A_0x5Fless0x3Cunsigned0x20int0x2C0x20unsigned0x20int0x3E0x3A0x3Aoperator0x280x290x5Babi0x3Av150070x5D0x28unsigned0x20int0x20const0x260x2C0x20unsigned0x20int0x20const0x260x290x20const(ptr noundef nonnull %0, i32 noundef %5, i32 noundef %25, i32 noundef %1) #3
  %.not111 = icmp eq i32 %26, 0
  br i1 %.not111, label %27, label %29

27:                                               ; preds = %23
  %28 = add i32 %15, 2
  br label %32

29:                                               ; preds = %23
  %30 = add i32 %15, 3
  %31 = add i32 %8, -4
  tail call void @w2c_hermes_void0x20std0x3A0x3A_0x5F20x3A0x3A_IterOps0x3Cstd0x3A0x3A_0x5F20x3A0x3A_ClassicAlgPolicy0x3E0x3A0x3Aiter_swap0x5Babi0x3Av150070x5D0x3Cunsigned0x20int0x2A0x260x2C0x20unsigned0x20int0x2A0x260x3E0x28unsigned0x20int0x2A0x260x2C0x20unsigned0x20int0x2A0x260x29(ptr noundef nonnull %0, i32 noundef %31, i32 noundef %24)
  br label %32

32:                                               ; preds = %6, %29, %27, %21
  %.0 = phi i32 [ %15, %6 ], [ %22, %21 ], [ %28, %27 ], [ %30, %29 ]
  store i32 %8, ptr %7, align 8, !tbaa !5
  ret i32 %.0
}

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

!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,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass