; LLVM IR from 0xilis/libNeoAppleArchive :: libNeoAppleArchive (neo_aa_header)

; 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.neo_aa_header_impl = type { i32, ptr, ptr, ptr, ptr, ptr, i64, ptr }

@stderr = external global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@__FUNCTION__.neo_aa_header_clone_header = external hidden unnamed_addr constant [27 x i8], align 1

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local ptr @neo_aa_header_clone_header(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %29, label %26

26:                                               ; preds = %1
  %27 = load ptr, ptr @stderr, align 8, !tbaa !5
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef @.str.11, ptr noundef @__FUNCTION__.neo_aa_header_clone_header) #5
  call void @exit(i32 noundef 1) #6
  unreachable

29:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %30, i32 0, i32 1
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  store ptr %32, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %33, i32 0, i32 6
  %35 = load i64, ptr %34, align 8, !tbaa !13
  store i64 %35, ptr %5, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 8, !tbaa !15
  store i32 %38, ptr %6, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %39, i32 0, i32 5
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  store ptr %41, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %42, i32 0, i32 2
  %44 = load ptr, ptr %43, align 8, !tbaa !18
  store ptr %44, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %45, i32 0, i32 3
  %47 = load ptr, ptr %46, align 8, !tbaa !19
  store ptr %47, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %48, i32 0, i32 4
  %50 = load ptr, ptr %49, align 8, !tbaa !20
  store ptr %50, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %51 = call noalias ptr @malloc(i64 noundef 64) #7
  store ptr %51, ptr %11, align 8, !tbaa !5
  %52 = load ptr, ptr %11, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %57, label %54

54:                                               ; preds = %29
  %55 = load ptr, ptr @stderr, align 8, !tbaa !5
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.7, ptr noundef @__FUNCTION__.neo_aa_header_clone_header, ptr noundef @.str.10) #5
  store ptr null, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %233

57:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %58 = load i32, ptr %6, align 4, !tbaa !16
  %59 = sext i32 %58 to i64
  %60 = mul i64 %59, 8
  %61 = call noalias ptr @malloc(i64 noundef %60) #7
  store ptr %61, ptr %13, align 8, !tbaa !5
  %62 = load ptr, ptr %13, align 8, !tbaa !5
  %63 = icmp ne ptr %62, null
  br i1 %63, label %68, label %64

64:                                               ; preds = %57
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %65) #5
  %66 = load ptr, ptr @stderr, align 8, !tbaa !5
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef @.str.7, ptr noundef @__FUNCTION__.neo_aa_header_clone_header, ptr noundef @.str.10) #5
  store ptr null, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %232

68:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %69 = load i64, ptr %5, align 8, !tbaa !14
  %70 = call noalias ptr @malloc(i64 noundef %69) #7
  store ptr %70, ptr %14, align 8, !tbaa !5
  %71 = load ptr, ptr %14, align 8, !tbaa !5
  %72 = icmp ne ptr %71, null
  br i1 %72, label %78, label %73

73:                                               ; preds = %68
  %74 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %74) #5
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %75) #5
  %76 = load ptr, ptr @stderr, align 8, !tbaa !5
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.7, ptr noundef @__FUNCTION__.neo_aa_header_clone_header, ptr noundef @.str.10) #5
  store ptr null, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %231

78:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %79 = load i32, ptr %6, align 4, !tbaa !16
  %80 = sext i32 %79 to i64
  %81 = mul i64 %80, 4
  %82 = call noalias ptr @malloc(i64 noundef %81) #7
  store ptr %82, ptr %15, align 8, !tbaa !5
  %83 = load ptr, ptr %15, align 8, !tbaa !5
  %84 = icmp ne ptr %83, null
  br i1 %84, label %91, label %85

85:                                               ; preds = %78
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  call void @free(ptr noundef %86) #5
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %87) #5
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %88) #5
  %89 = load ptr, ptr @stderr, align 8, !tbaa !5
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.7, ptr noundef @__FUNCTION__.neo_aa_header_clone_header, ptr noundef @.str.10) #5
  store ptr null, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %230

91:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %92 = load i32, ptr %6, align 4, !tbaa !16
  %93 = sext i32 %92 to i64
  %94 = call noalias ptr @malloc(i64 noundef %93) #7
  store ptr %94, ptr %16, align 8, !tbaa !5
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  %96 = icmp ne ptr %95, null
  br i1 %96, label %104, label %97

97:                                               ; preds = %91
  %98 = load ptr, ptr %15, align 8, !tbaa !5
  call void @free(ptr noundef %98) #5
  %99 = load ptr, ptr %14, align 8, !tbaa !5
  call void @free(ptr noundef %99) #5
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %100) #5
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %101) #5
  %102 = load ptr, ptr @stderr, align 8, !tbaa !5
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.7, ptr noundef @__FUNCTION__.neo_aa_header_clone_header, ptr noundef @.str.10) #5
  store ptr null, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %229

104:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %105 = load i32, ptr %6, align 4, !tbaa !16
  %106 = sext i32 %105 to i64
  %107 = mul i64 %106, 8
  %108 = call noalias ptr @malloc(i64 noundef %107) #7
  store ptr %108, ptr %17, align 8, !tbaa !5
  %109 = load ptr, ptr %17, align 8, !tbaa !5
  %110 = icmp ne ptr %109, null
  br i1 %110, label %119, label %111

111:                                              ; preds = %104
  %112 = load ptr, ptr %16, align 8, !tbaa !5
  call void @free(ptr noundef %112) #5
  %113 = load ptr, ptr %15, align 8, !tbaa !5
  call void @free(ptr noundef %113) #5
  %114 = load ptr, ptr %14, align 8, !tbaa !5
  call void @free(ptr noundef %114) #5
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  call void @free(ptr noundef %115) #5
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %116) #5
  %117 = load ptr, ptr @stderr, align 8, !tbaa !5
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str.7, ptr noundef @__FUNCTION__.neo_aa_header_clone_header, ptr noundef @.str.10) #5
  store ptr null, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %228

119:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store i64 0, ptr %18, align 8, !tbaa !14
  br label %120

120:                                              ; preds = %133, %119
  %121 = load i64, ptr %18, align 8, !tbaa !14
  %122 = load i64, ptr %5, align 8, !tbaa !14
  %123 = icmp ult i64 %121, %122
  br i1 %123, label %125, label %124

124:                                              ; preds = %120
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %136

125:                                              ; preds = %120
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = load i64, ptr %18, align 8, !tbaa !14
  %128 = getelementptr inbounds i8, ptr %126, i64 %127
  %129 = load i8, ptr %128, align 1, !tbaa !21
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = load i64, ptr %18, align 8, !tbaa !14
  %132 = getelementptr inbounds i8, ptr %130, i64 %131
  store i8 %129, ptr %132, align 1, !tbaa !21
  br label %133

133:                                              ; preds = %125
  %134 = load i64, ptr %18, align 8, !tbaa !14
  %135 = add i64 %134, 1
  store i64 %135, ptr %18, align 8, !tbaa !14
  br label %120, !llvm.loop !22

136:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !16
  br label %137

137:                                              ; preds = %200, %136
  %138 = load i32, ptr %19, align 4, !tbaa !16
  %139 = load i32, ptr %6, align 4, !tbaa !16
  %140 = icmp slt i32 %138, %139
  br i1 %140, label %142, label %141

141:                                              ; preds = %137
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %203

142:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = load i32, ptr %19, align 4, !tbaa !16
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds i64, ptr %143, i64 %145
  %147 = load i64, ptr %146, align 8, !tbaa !14
  store i64 %147, ptr %20, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = load i32, ptr %19, align 4, !tbaa !16
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds ptr, ptr %148, i64 %150
  %152 = load ptr, ptr %151, align 8, !tbaa !5
  store ptr %152, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %153 = load i64, ptr %20, align 8, !tbaa !14
  %154 = call noalias ptr @malloc(i64 noundef %153) #7
  store ptr %154, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  store i64 0, ptr %23, align 8, !tbaa !14
  br label %155

155:                                              ; preds = %168, %142
  %156 = load i64, ptr %23, align 8, !tbaa !14
  %157 = load i64, ptr %20, align 8, !tbaa !14
  %158 = icmp ult i64 %156, %157
  br i1 %158, label %160, label %159

159:                                              ; preds = %155
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %171

160:                                              ; preds = %155
  %161 = load ptr, ptr %21, align 8, !tbaa !5
  %162 = load i64, ptr %23, align 8, !tbaa !14
  %163 = getelementptr inbounds i8, ptr %161, i64 %162
  %164 = load i8, ptr %163, align 1, !tbaa !21
  %165 = load ptr, ptr %22, align 8, !tbaa !5
  %166 = load i64, ptr %23, align 8, !tbaa !14
  %167 = getelementptr inbounds i8, ptr %165, i64 %166
  store i8 %164, ptr %167, align 1, !tbaa !21
  br label %168

168:                                              ; preds = %160
  %169 = load i64, ptr %23, align 8, !tbaa !14
  %170 = add i64 %169, 1
  store i64 %170, ptr %23, align 8, !tbaa !14
  br label %155, !llvm.loop !24

171:                                              ; preds = %159
  %172 = load ptr, ptr %8, align 8, !tbaa !5
  %173 = load i32, ptr %19, align 4, !tbaa !16
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds i32, ptr %172, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !16
  %177 = load ptr, ptr %15, align 8, !tbaa !5
  %178 = load i32, ptr %19, align 4, !tbaa !16
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds i32, ptr %177, i64 %179
  store i32 %176, ptr %180, align 4, !tbaa !16
  %181 = load i64, ptr %20, align 8, !tbaa !14
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = load i32, ptr %19, align 4, !tbaa !16
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds i64, ptr %182, i64 %184
  store i64 %181, ptr %185, align 8, !tbaa !14
  %186 = load ptr, ptr %9, align 8, !tbaa !5
  %187 = load i32, ptr %19, align 4, !tbaa !16
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds i8, ptr %186, i64 %188
  %190 = load i8, ptr %189, align 1, !tbaa !21
  %191 = load ptr, ptr %16, align 8, !tbaa !5
  %192 = load i32, ptr %19, align 4, !tbaa !16
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds i8, ptr %191, i64 %193
  store i8 %190, ptr %194, align 1, !tbaa !21
  %195 = load ptr, ptr %22, align 8, !tbaa !5
  %196 = load ptr, ptr %17, align 8, !tbaa !5
  %197 = load i32, ptr %19, align 4, !tbaa !16
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds ptr, ptr %196, i64 %198
  store ptr %195, ptr %199, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %200

200:                                              ; preds = %171
  %201 = load i32, ptr %19, align 4, !tbaa !16
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %19, align 4, !tbaa !16
  br label %137, !llvm.loop !25

203:                                              ; preds = %141
  %204 = load i32, ptr %6, align 4, !tbaa !16
  %205 = load ptr, ptr %11, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %205, i32 0, i32 0
  store i32 %204, ptr %206, align 8, !tbaa !15
  %207 = load ptr, ptr %14, align 8, !tbaa !5
  %208 = load ptr, ptr %11, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %208, i32 0, i32 1
  store ptr %207, ptr %209, align 8, !tbaa !9
  %210 = load ptr, ptr %15, align 8, !tbaa !5
  %211 = load ptr, ptr %11, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %211, i32 0, i32 2
  store ptr %210, ptr %212, align 8, !tbaa !18
  %213 = load ptr, ptr %16, align 8, !tbaa !5
  %214 = load ptr, ptr %11, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %214, i32 0, i32 3
  store ptr %213, ptr %215, align 8, !tbaa !19
  %216 = load ptr, ptr %17, align 8, !tbaa !5
  %217 = load ptr, ptr %11, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %217, i32 0, i32 4
  store ptr %216, ptr %218, align 8, !tbaa !20
  %219 = load ptr, ptr %13, align 8, !tbaa !5
  %220 = load ptr, ptr %11, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %220, i32 0, i32 5
  store ptr %219, ptr %221, align 8, !tbaa !17
  %222 = load i64, ptr %5, align 8, !tbaa !14
  %223 = load ptr, ptr %11, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %223, i32 0, i32 6
  store i64 %222, ptr %224, align 8, !tbaa !13
  %225 = load ptr, ptr %11, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %225, i32 0, i32 7
  store ptr null, ptr %226, align 8, !tbaa !26
  %227 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %227, ptr %2, align 8
  store i32 1, ptr %12, align 4
  br label %228

228:                                              ; preds = %203, %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %229

229:                                              ; preds = %228, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %230

230:                                              ; preds = %229, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %231

231:                                              ; preds = %230, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %232

232:                                              ; preds = %231, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %233

233:                                              ; preds = %232, %54
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %234 = load ptr, ptr %2, align 8
  ret ptr %234
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(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 = { nounwind "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 = { noreturn nounwind "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 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 }
attributes #7 = { nounwind allocsize(0) }

!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, !6, i64 8}
!10 = !{!"neo_aa_header_impl", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !12, i64 48, !6, i64 56}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !12, i64 48}
!14 = !{!12, !12, i64 0}
!15 = !{!10, !11, i64 0}
!16 = !{!11, !11, i64 0}
!17 = !{!10, !6, i64 40}
!18 = !{!10, !6, i64 16}
!19 = !{!10, !6, i64 24}
!20 = !{!10, !6, i64 32}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}
!26 = !{!10, !6, i64 56}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [25 x i8], align 1
@__FUNCTION__.neo_aa_header_clone_header = external hidden unnamed_addr constant [27 x i8], align 1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @neo_aa_header_clone_header(ptr noundef readonly %0) local_unnamed_addr #4 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %2, label %5

2:                                                ; preds = %1
  %3 = load ptr, ptr @stderr, align 8, !tbaa !5
  %4 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %3, ptr noundef nonnull @.str.11, ptr noundef nonnull @__FUNCTION__.neo_aa_header_clone_header) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = load ptr, ptr %6, align 8, !tbaa !9
  %8 = ptrtoint ptr %7 to i64
  %9 = getelementptr inbounds i8, ptr %0, i64 48
  %10 = load i64, ptr %9, align 8, !tbaa !13
  %11 = load i32, ptr %0, align 8, !tbaa !14
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  %13 = load ptr, ptr %12, align 8, !tbaa !15
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = load ptr, ptr %14, align 8, !tbaa !16
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  %17 = load ptr, ptr %16, align 8, !tbaa !17
  %18 = getelementptr inbounds i8, ptr %0, i64 32
  %19 = load ptr, ptr %18, align 8, !tbaa !18
  %20 = tail call noalias dereferenceable_or_null(64) ptr @malloc(i64 noundef 64) #7
  %.not99 = icmp eq ptr %20, null
  br i1 %.not99, label %21, label %24

21:                                               ; preds = %5
  %22 = load ptr, ptr @stderr, align 8, !tbaa !5
  %23 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.7, ptr noundef nonnull @__FUNCTION__.neo_aa_header_clone_header, ptr noundef nonnull @.str.10) #5
  br label %138

24:                                               ; preds = %5
  %25 = sext i32 %11 to i64
  %26 = shl nsw i64 %25, 3
  %27 = tail call noalias ptr @malloc(i64 noundef %26) #7
  %.not100 = icmp eq ptr %27, null
  br i1 %.not100, label %28, label %31

28:                                               ; preds = %24
  tail call void @free(ptr noundef nonnull %20) #8
  %29 = load ptr, ptr @stderr, align 8, !tbaa !5
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str.7, ptr noundef nonnull @__FUNCTION__.neo_aa_header_clone_header, ptr noundef nonnull @.str.10) #5
  br label %138

31:                                               ; preds = %24
  %32 = tail call noalias ptr @malloc(i64 noundef %10) #7
  %33 = ptrtoint ptr %32 to i64
  %.not101 = icmp eq ptr %32, null
  br i1 %.not101, label %34, label %37

34:                                               ; preds = %31
  tail call void @free(ptr noundef nonnull %27) #8
  tail call void @free(ptr noundef nonnull %20) #8
  %35 = load ptr, ptr @stderr, align 8, !tbaa !5
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str.7, ptr noundef nonnull @__FUNCTION__.neo_aa_header_clone_header, ptr noundef nonnull @.str.10) #5
  br label %138

37:                                               ; preds = %31
  %38 = shl nsw i64 %25, 2
  %39 = tail call noalias ptr @malloc(i64 noundef %38) #7
  %.not102 = icmp eq ptr %39, null
  br i1 %.not102, label %40, label %43

40:                                               ; preds = %37
  tail call void @free(ptr noundef nonnull %32) #8
  tail call void @free(ptr noundef nonnull %27) #8
  tail call void @free(ptr noundef nonnull %20) #8
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.7, ptr noundef nonnull @__FUNCTION__.neo_aa_header_clone_header, ptr noundef nonnull @.str.10) #5
  br label %138

43:                                               ; preds = %37
  %44 = tail call noalias ptr @malloc(i64 noundef %25) #7
  %.not103 = icmp eq ptr %44, null
  br i1 %.not103, label %45, label %48

45:                                               ; preds = %43
  tail call void @free(ptr noundef nonnull %39) #8
  tail call void @free(ptr noundef nonnull %32) #8
  tail call void @free(ptr noundef nonnull %27) #8
  tail call void @free(ptr noundef nonnull %20) #8
  %46 = load ptr, ptr @stderr, align 8, !tbaa !5
  %47 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.7, ptr noundef nonnull @__FUNCTION__.neo_aa_header_clone_header, ptr noundef nonnull @.str.10) #5
  br label %138

48:                                               ; preds = %43
  %49 = tail call noalias ptr @malloc(i64 noundef %26) #7
  %.not104 = icmp eq ptr %49, null
  br i1 %.not104, label %65, label %.preheader105

.preheader105:                                    ; preds = %48
  %.not112 = icmp eq i64 %10, 0
  br i1 %.not112, label %.preheader, label %iter.check

iter.check:                                       ; preds = %.preheader105
  %min.iters.check = icmp ult i64 %10, 8
  %50 = sub i64 %33, %8
  %diff.check = icmp ult i64 %50, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %.lr.ph.preheader, label %vector.main.loop.iter.check

vector.main.loop.iter.check:                      ; preds = %iter.check
  %min.iters.check117 = icmp ult i64 %10, 32
  br i1 %min.iters.check117, label %vec.epilog.ph, label %vector.ph

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %10, -32
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %51 = getelementptr inbounds i8, ptr %7, i64 %index
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  %wide.load = load <16 x i8>, ptr %51, align 1, !tbaa !19
  %wide.load118 = load <16 x i8>, ptr %52, align 1, !tbaa !19
  %53 = getelementptr inbounds i8, ptr %32, i64 %index
  %54 = getelementptr inbounds i8, ptr %53, i64 16
  store <16 x i8> %wide.load, ptr %53, align 1, !tbaa !19
  store <16 x i8> %wide.load118, ptr %54, align 1, !tbaa !19
  %index.next = add nuw i64 %index, 32
  %55 = icmp eq i64 %index.next, %n.vec
  br i1 %55, label %middle.block, label %vector.body, !llvm.loop !20

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %10, %n.vec
  br i1 %cmp.n, label %.preheader, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  %n.vec.remaining = and i64 %10, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph.preheader, label %vec.epilog.ph

.lr.ph.preheader:                                 ; preds = %vec.epilog.middle.block, %iter.check, %vec.epilog.iter.check
  %.087106.ph = phi i64 [ 0, %iter.check ], [ %n.vec, %vec.epilog.iter.check ], [ %n.vec120, %vec.epilog.middle.block ]
  %xtraiter = and i64 %10, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader, %.lr.ph.prol
  %.087106.prol = phi i64 [ %59, %.lr.ph.prol ], [ %.087106.ph, %.lr.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %56 = getelementptr inbounds i8, ptr %7, i64 %.087106.prol
  %57 = load i8, ptr %56, align 1, !tbaa !19
  %58 = getelementptr inbounds i8, ptr %32, i64 %.087106.prol
  store i8 %57, ptr %58, align 1, !tbaa !19
  %59 = add nuw i64 %.087106.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !24

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.087106.unr = phi i64 [ %.087106.ph, %.lr.ph.preheader ], [ %59, %.lr.ph.prol ]
  %60 = sub i64 %.087106.ph, %10
  %61 = icmp ugt i64 %60, -4
  br i1 %61, label %.preheader, label %.lr.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  %n.vec120 = and i64 %10, -8
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index121 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next123, %vec.epilog.vector.body ]
  %62 = getelementptr inbounds i8, ptr %7, i64 %index121
  %wide.load122 = load <8 x i8>, ptr %62, align 1, !tbaa !19
  %63 = getelementptr inbounds i8, ptr %32, i64 %index121
  store <8 x i8> %wide.load122, ptr %63, align 1, !tbaa !19
  %index.next123 = add nuw i64 %index121, 8
  %64 = icmp eq i64 %index.next123, %n.vec120
  br i1 %64, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !26

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n124 = icmp eq i64 %10, %n.vec120
  br i1 %cmp.n124, label %.preheader, label %.lr.ph.preheader

65:                                               ; preds = %48
  tail call void @free(ptr noundef nonnull %44) #8
  tail call void @free(ptr noundef nonnull %39) #8
  tail call void @free(ptr noundef nonnull %32) #8
  tail call void @free(ptr noundef nonnull %27) #8
  tail call void @free(ptr noundef nonnull %20) #8
  %66 = load ptr, ptr @stderr, align 8, !tbaa !5
  %67 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef nonnull @.str.7, ptr noundef nonnull @__FUNCTION__.neo_aa_header_clone_header, ptr noundef nonnull @.str.10) #5
  br label %138

.preheader:                                       ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block, %vec.epilog.middle.block, %.preheader105
  %68 = icmp sgt i32 %11, 0
  br i1 %68, label %.lr.ph110.preheader, label %._crit_edge111

.lr.ph110.preheader:                              ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %11 to i64
  br label %.lr.ph110

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.087106 = phi i64 [ %84, %.lr.ph ], [ %.087106.unr, %.lr.ph.prol.loopexit ]
  %69 = getelementptr inbounds i8, ptr %7, i64 %.087106
  %70 = load i8, ptr %69, align 1, !tbaa !19
  %71 = getelementptr inbounds i8, ptr %32, i64 %.087106
  store i8 %70, ptr %71, align 1, !tbaa !19
  %72 = add nuw i64 %.087106, 1
  %73 = getelementptr inbounds i8, ptr %7, i64 %72
  %74 = load i8, ptr %73, align 1, !tbaa !19
  %75 = getelementptr inbounds i8, ptr %32, i64 %72
  store i8 %74, ptr %75, align 1, !tbaa !19
  %76 = add nuw i64 %.087106, 2
  %77 = getelementptr inbounds i8, ptr %7, i64 %76
  %78 = load i8, ptr %77, align 1, !tbaa !19
  %79 = getelementptr inbounds i8, ptr %32, i64 %76
  store i8 %78, ptr %79, align 1, !tbaa !19
  %80 = add nuw i64 %.087106, 3
  %81 = getelementptr inbounds i8, ptr %7, i64 %80
  %82 = load i8, ptr %81, align 1, !tbaa !19
  %83 = getelementptr inbounds i8, ptr %32, i64 %80
  store i8 %82, ptr %83, align 1, !tbaa !19
  %84 = add nuw i64 %.087106, 4
  %exitcond.not.3 = icmp eq i64 %84, %10
  br i1 %exitcond.not.3, label %.preheader, label %.lr.ph, !llvm.loop !27

._crit_edge111:                                   ; preds = %._crit_edge, %.preheader
  store i32 %11, ptr %20, align 8, !tbaa !14
  %85 = getelementptr inbounds i8, ptr %20, i64 8
  store ptr %32, ptr %85, align 8, !tbaa !9
  %86 = getelementptr inbounds i8, ptr %20, i64 16
  store ptr %39, ptr %86, align 8, !tbaa !16
  %87 = getelementptr inbounds i8, ptr %20, i64 24
  store ptr %44, ptr %87, align 8, !tbaa !17
  %88 = getelementptr inbounds i8, ptr %20, i64 32
  store ptr %49, ptr %88, align 8, !tbaa !18
  %89 = getelementptr inbounds i8, ptr %20, i64 40
  store ptr %27, ptr %89, align 8, !tbaa !15
  %90 = getelementptr inbounds i8, ptr %20, i64 48
  store i64 %10, ptr %90, align 8, !tbaa !13
  %91 = getelementptr inbounds i8, ptr %20, i64 56
  store ptr null, ptr %91, align 8, !tbaa !28
  br label %138

.lr.ph110:                                        ; preds = %.lr.ph110.preheader, %._crit_edge
  %indvars.iv = phi i64 [ 0, %.lr.ph110.preheader ], [ %indvars.iv.next, %._crit_edge ]
  %92 = getelementptr inbounds i64, ptr %13, i64 %indvars.iv
  %93 = load i64, ptr %92, align 8, !tbaa !29
  %94 = getelementptr inbounds ptr, ptr %19, i64 %indvars.iv
  %95 = load ptr, ptr %94, align 8, !tbaa !5
  %96 = tail call noalias ptr @malloc(i64 noundef %93) #7
  %.not113 = icmp eq i64 %93, 0
  br i1 %.not113, label %._crit_edge, label %iter.check130

iter.check130:                                    ; preds = %.lr.ph110
  %97 = ptrtoint ptr %96 to i64
  %98 = ptrtoint ptr %95 to i64
  %min.iters.check128 = icmp ult i64 %93, 8
  %99 = sub i64 %97, %98
  %diff.check126 = icmp ult i64 %99, 32
  %or.cond157 = select i1 %min.iters.check128, i1 true, i1 %diff.check126
  br i1 %or.cond157, label %.lr.ph108.preheader, label %vector.main.loop.iter.check132

vector.main.loop.iter.check132:                   ; preds = %iter.check130
  %min.iters.check131 = icmp ult i64 %93, 32
  br i1 %min.iters.check131, label %vec.epilog.ph144, label %vector.ph133

vector.ph133:                                     ; preds = %vector.main.loop.iter.check132
  %n.vec135 = and i64 %93, -32
  br label %vector.body136

vector.body136:                                   ; preds = %vector.body136, %vector.ph133
  %index137 = phi i64 [ 0, %vector.ph133 ], [ %index.next140, %vector.body136 ]
  %100 = getelementptr inbounds i8, ptr %95, i64 %index137
  %101 = getelementptr inbounds i8, ptr %100, i64 16
  %wide.load138 = load <16 x i8>, ptr %100, align 1, !tbaa !19
  %wide.load139 = load <16 x i8>, ptr %101, align 1, !tbaa !19
  %102 = getelementptr inbounds i8, ptr %96, i64 %index137
  %103 = getelementptr inbounds i8, ptr %102, i64 16
  store <16 x i8> %wide.load138, ptr %102, align 1, !tbaa !19
  store <16 x i8> %wide.load139, ptr %103, align 1, !tbaa !19
  %index.next140 = add nuw i64 %index137, 32
  %104 = icmp eq i64 %index.next140, %n.vec135
  br i1 %104, label %middle.block127, label %vector.body136, !llvm.loop !30

middle.block127:                                  ; preds = %vector.body136
  %cmp.n141 = icmp eq i64 %93, %n.vec135
  br i1 %cmp.n141, label %._crit_edge, label %vec.epilog.iter.check145

vec.epilog.iter.check145:                         ; preds = %middle.block127
  %n.vec.remaining146 = and i64 %93, 24
  %min.epilog.iters.check147 = icmp eq i64 %n.vec.remaining146, 0
  br i1 %min.epilog.iters.check147, label %.lr.ph108.preheader, label %vec.epilog.ph144

.lr.ph108.preheader:                              ; preds = %vec.epilog.middle.block142, %iter.check130, %vec.epilog.iter.check145
  %.0107.ph = phi i64 [ 0, %iter.check130 ], [ %n.vec135, %vec.epilog.iter.check145 ], [ %n.vec150, %vec.epilog.middle.block142 ]
  %xtraiter158 = and i64 %93, 3
  %lcmp.mod159.not = icmp eq i64 %xtraiter158, 0
  br i1 %lcmp.mod159.not, label %.lr.ph108.prol.loopexit, label %.lr.ph108.prol

.lr.ph108.prol:                                   ; preds = %.lr.ph108.preheader, %.lr.ph108.prol
  %.0107.prol = phi i64 [ %108, %.lr.ph108.prol ], [ %.0107.ph, %.lr.ph108.preheader ]
  %prol.iter160 = phi i64 [ %prol.iter160.next, %.lr.ph108.prol ], [ 0, %.lr.ph108.preheader ]
  %105 = getelementptr inbounds i8, ptr %95, i64 %.0107.prol
  %106 = load i8, ptr %105, align 1, !tbaa !19
  %107 = getelementptr inbounds i8, ptr %96, i64 %.0107.prol
  store i8 %106, ptr %107, align 1, !tbaa !19
  %108 = add nuw i64 %.0107.prol, 1
  %prol.iter160.next = add i64 %prol.iter160, 1
  %prol.iter160.cmp.not = icmp eq i64 %prol.iter160.next, %xtraiter158
  br i1 %prol.iter160.cmp.not, label %.lr.ph108.prol.loopexit, label %.lr.ph108.prol, !llvm.loop !31

.lr.ph108.prol.loopexit:                          ; preds = %.lr.ph108.prol, %.lr.ph108.preheader
  %.0107.unr = phi i64 [ %.0107.ph, %.lr.ph108.preheader ], [ %108, %.lr.ph108.prol ]
  %109 = sub i64 %.0107.ph, %93
  %110 = icmp ugt i64 %109, -4
  br i1 %110, label %._crit_edge, label %.lr.ph108

vec.epilog.ph144:                                 ; preds = %vector.main.loop.iter.check132, %vec.epilog.iter.check145
  %vec.epilog.resume.val148 = phi i64 [ %n.vec135, %vec.epilog.iter.check145 ], [ 0, %vector.main.loop.iter.check132 ]
  %n.vec150 = and i64 %93, -8
  br label %vec.epilog.vector.body152

vec.epilog.vector.body152:                        ; preds = %vec.epilog.vector.body152, %vec.epilog.ph144
  %index153 = phi i64 [ %vec.epilog.resume.val148, %vec.epilog.ph144 ], [ %index.next155, %vec.epilog.vector.body152 ]
  %111 = getelementptr inbounds i8, ptr %95, i64 %index153
  %wide.load154 = load <8 x i8>, ptr %111, align 1, !tbaa !19
  %112 = getelementptr inbounds i8, ptr %96, i64 %index153
  store <8 x i8> %wide.load154, ptr %112, align 1, !tbaa !19
  %index.next155 = add nuw i64 %index153, 8
  %113 = icmp eq i64 %index.next155, %n.vec150
  br i1 %113, label %vec.epilog.middle.block142, label %vec.epilog.vector.body152, !llvm.loop !32

vec.epilog.middle.block142:                       ; preds = %vec.epilog.vector.body152
  %cmp.n156 = icmp eq i64 %93, %n.vec150
  br i1 %cmp.n156, label %._crit_edge, label %.lr.ph108.preheader

._crit_edge:                                      ; preds = %.lr.ph108.prol.loopexit, %.lr.ph108, %middle.block127, %vec.epilog.middle.block142, %.lr.ph110
  %114 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv
  %115 = load i32, ptr %114, align 4, !tbaa !33
  %116 = getelementptr inbounds i32, ptr %39, i64 %indvars.iv
  store i32 %115, ptr %116, align 4, !tbaa !33
  %117 = getelementptr inbounds i64, ptr %27, i64 %indvars.iv
  store i64 %93, ptr %117, align 8, !tbaa !29
  %118 = getelementptr inbounds i8, ptr %17, i64 %indvars.iv
  %119 = load i8, ptr %118, align 1, !tbaa !19
  %120 = getelementptr inbounds i8, ptr %44, i64 %indvars.iv
  store i8 %119, ptr %120, align 1, !tbaa !19
  %121 = getelementptr inbounds ptr, ptr %49, i64 %indvars.iv
  store ptr %96, ptr %121, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond116.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond116.not, label %._crit_edge111, label %.lr.ph110, !llvm.loop !34

.lr.ph108:                                        ; preds = %.lr.ph108.prol.loopexit, %.lr.ph108
  %.0107 = phi i64 [ %137, %.lr.ph108 ], [ %.0107.unr, %.lr.ph108.prol.loopexit ]
  %122 = getelementptr inbounds i8, ptr %95, i64 %.0107
  %123 = load i8, ptr %122, align 1, !tbaa !19
  %124 = getelementptr inbounds i8, ptr %96, i64 %.0107
  store i8 %123, ptr %124, align 1, !tbaa !19
  %125 = add nuw i64 %.0107, 1
  %126 = getelementptr inbounds i8, ptr %95, i64 %125
  %127 = load i8, ptr %126, align 1, !tbaa !19
  %128 = getelementptr inbounds i8, ptr %96, i64 %125
  store i8 %127, ptr %128, align 1, !tbaa !19
  %129 = add nuw i64 %.0107, 2
  %130 = getelementptr inbounds i8, ptr %95, i64 %129
  %131 = load i8, ptr %130, align 1, !tbaa !19
  %132 = getelementptr inbounds i8, ptr %96, i64 %129
  store i8 %131, ptr %132, align 1, !tbaa !19
  %133 = add nuw i64 %.0107, 3
  %134 = getelementptr inbounds i8, ptr %95, i64 %133
  %135 = load i8, ptr %134, align 1, !tbaa !19
  %136 = getelementptr inbounds i8, ptr %96, i64 %133
  store i8 %135, ptr %136, align 1, !tbaa !19
  %137 = add nuw i64 %.0107, 4
  %exitcond114.not.3 = icmp eq i64 %137, %93
  br i1 %exitcond114.not.3, label %._crit_edge, label %.lr.ph108, !llvm.loop !35

138:                                              ; preds = %28, %40, %65, %._crit_edge111, %45, %34, %21
  %.5 = phi ptr [ null, %21 ], [ null, %28 ], [ null, %34 ], [ null, %40 ], [ null, %45 ], [ %20, %._crit_edge111 ], [ null, %65 ]
  ret ptr %.5
}

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nofree nounwind "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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { noreturn nounwind "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 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 = { cold nounwind }
attributes #6 = { noreturn nounwind }
attributes #7 = { nounwind allocsize(0) }
attributes #8 = { 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, !6, i64 8}
!10 = !{!"neo_aa_header_impl", !11, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !12, i64 48, !6, i64 56}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !12, i64 48}
!14 = !{!10, !11, i64 0}
!15 = !{!10, !6, i64 40}
!16 = !{!10, !6, i64 16}
!17 = !{!10, !6, i64 24}
!18 = !{!10, !6, i64 32}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !21, !22, !23}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!"llvm.loop.isvectorized", i32 1}
!23 = !{!"llvm.loop.unroll.runtime.disable"}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.unroll.disable"}
!26 = distinct !{!26, !21, !22, !23}
!27 = distinct !{!27, !21, !22}
!28 = !{!10, !6, i64 56}
!29 = !{!12, !12, i64 0}
!30 = distinct !{!30, !21, !22, !23}
!31 = distinct !{!31, !25}
!32 = distinct !{!32, !21, !22, !23}
!33 = !{!11, !11, i64 0}
!34 = distinct !{!34, !21}
!35 = distinct !{!35, !21, !22}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass