; 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.2 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@__FUNCTION__.neo_aa_header_create_with_encoded_data = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [68 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: nounwind uwtable
define dso_local ptr @neo_aa_header_create_with_encoded_data(i64 noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca i64, align 8
  store i64 %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %29 = load ptr, ptr %5, align 8, !tbaa !9
  store ptr %29, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %30 = load ptr, ptr %6, align 8, !tbaa !9
  %31 = getelementptr inbounds i32, ptr %30, i64 0
  %32 = load i32, ptr %31, align 4, !tbaa !11
  store i32 %32, ptr %7, align 4, !tbaa !11
  %33 = load i32, ptr %7, align 4, !tbaa !11
  %34 = icmp ne i32 %33, 825246017
  br i1 %34, label %35, label %41

35:                                               ; preds = %2
  %36 = load i32, ptr %7, align 4, !tbaa !11
  %37 = icmp ne i32 %36, 826360153
  br i1 %37, label %38, label %41

38:                                               ; preds = %35
  %39 = load ptr, ptr @stderr, align 8, !tbaa !9
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str.2) #7
  store ptr null, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %295

41:                                               ; preds = %35, %2
  %42 = load ptr, ptr %6, align 8, !tbaa !9
  %43 = getelementptr inbounds i32, ptr %42, i64 1
  %44 = load i32, ptr %43, align 4, !tbaa !11
  %45 = and i32 %44, 65535
  %46 = zext i32 %45 to i64
  %47 = load i64, ptr %4, align 8, !tbaa !5
  %48 = icmp ne i64 %46, %47
  br i1 %48, label %49, label %52

49:                                               ; preds = %41
  %50 = load ptr, ptr @stderr, align 8, !tbaa !9
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %50, ptr noundef @.str.3) #7
  store ptr null, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %295

52:                                               ; preds = %41
  %53 = load i64, ptr %4, align 8, !tbaa !5
  %54 = icmp ult i64 %53, 6
  br i1 %54, label %55, label %58

55:                                               ; preds = %52
  %56 = load ptr, ptr @stderr, align 8, !tbaa !9
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef @.str.4) #7
  store ptr null, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %295

58:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %59 = call noalias ptr @malloc(i64 noundef 64) #8
  store ptr %59, ptr %9, align 8, !tbaa !9
  %60 = load ptr, ptr %9, align 8, !tbaa !9
  %61 = icmp ne ptr %60, null
  br i1 %61, label %65, label %62

62:                                               ; preds = %58
  %63 = load ptr, ptr @stderr, align 8, !tbaa !9
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.5) #7
  store ptr null, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %294

65:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %66 = load i64, ptr %4, align 8, !tbaa !5
  %67 = call noalias ptr @malloc(i64 noundef %66) #8
  store ptr %67, ptr %10, align 8, !tbaa !9
  %68 = load ptr, ptr %10, align 8, !tbaa !9
  %69 = load ptr, ptr %5, align 8, !tbaa !9
  %70 = load i64, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %68, ptr align 1 %69, i64 %70, i1 false)
  %71 = load ptr, ptr %10, align 8, !tbaa !9
  %72 = load ptr, ptr %9, align 8, !tbaa !9
  %73 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %72, i32 0, i32 1
  store ptr %71, ptr %73, align 8, !tbaa !13
  %74 = load i64, ptr %4, align 8, !tbaa !5
  %75 = load ptr, ptr %9, align 8, !tbaa !9
  %76 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %75, i32 0, i32 6
  store i64 %74, ptr %76, align 8, !tbaa !15
  %77 = load i64, ptr %4, align 8, !tbaa !5
  %78 = icmp eq i64 %77, 6
  br i1 %78, label %79, label %84

79:                                               ; preds = %65
  %80 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %81 = load ptr, ptr %9, align 8, !tbaa !9
  %82 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %81, i32 0, i32 0
  store i32 0, ptr %82, align 8, !tbaa !16
  %83 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %83, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %293

84:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %85 = call noalias ptr @malloc(i64 noundef 4) #8
  store ptr %85, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %86 = call noalias ptr @malloc(i64 noundef 1) #8
  store ptr %86, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %87 = call noalias ptr @malloc(i64 noundef 8) #8
  store ptr %87, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %88 = call noalias ptr @malloc(i64 noundef 8) #8
  store ptr %88, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 6, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !11
  br label %89

89:                                               ; preds = %272, %84
  %90 = load i32, ptr %15, align 4, !tbaa !11
  %91 = zext i32 %90 to i64
  %92 = load i64, ptr %4, align 8, !tbaa !5
  %93 = icmp ult i64 %91, %92
  br i1 %93, label %94, label %273

94:                                               ; preds = %89
  %95 = load i32, ptr %16, align 4, !tbaa !11
  %96 = add i32 %95, 1
  store i32 %96, ptr %16, align 4, !tbaa !11
  %97 = load ptr, ptr %11, align 8, !tbaa !9
  %98 = load i32, ptr %16, align 4, !tbaa !11
  %99 = zext i32 %98 to i64
  %100 = mul i64 4, %99
  %101 = call ptr @realloc(ptr noundef %97, i64 noundef %100) #9
  store ptr %101, ptr %11, align 8, !tbaa !9
  %102 = load ptr, ptr %12, align 8, !tbaa !9
  %103 = load i32, ptr %16, align 4, !tbaa !11
  %104 = zext i32 %103 to i64
  %105 = call ptr @realloc(ptr noundef %102, i64 noundef %104) #9
  store ptr %105, ptr %12, align 8, !tbaa !9
  %106 = load ptr, ptr %13, align 8, !tbaa !9
  %107 = load i32, ptr %16, align 4, !tbaa !11
  %108 = zext i32 %107 to i64
  %109 = mul i64 8, %108
  %110 = call ptr @realloc(ptr noundef %106, i64 noundef %109) #9
  store ptr %110, ptr %13, align 8, !tbaa !9
  %111 = load ptr, ptr %14, align 8, !tbaa !9
  %112 = load i32, ptr %16, align 4, !tbaa !11
  %113 = zext i32 %112 to i64
  %114 = mul i64 8, %113
  %115 = call ptr @realloc(ptr noundef %111, i64 noundef %114) #9
  store ptr %115, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %116 = load ptr, ptr %10, align 8, !tbaa !9
  %117 = load i32, ptr %15, align 4, !tbaa !11
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds i8, ptr %116, i64 %118
  store ptr %119, ptr %17, align 8, !tbaa !9
  %120 = load ptr, ptr %17, align 8, !tbaa !9
  store ptr %120, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %121 = load ptr, ptr %6, align 8, !tbaa !9
  %122 = getelementptr inbounds i32, ptr %121, i64 0
  %123 = load i32, ptr %122, align 4, !tbaa !11
  store i32 %123, ptr %18, align 4, !tbaa !11
  %124 = load i32, ptr %18, align 4, !tbaa !11
  %125 = call i32 @internal_do_not_call_flip_edian_32(i32 noundef %124)
  store i32 %125, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %126 = load i32, ptr %18, align 4, !tbaa !11
  %127 = and i32 %126, -256
  store i32 %127, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  %128 = load i32, ptr %18, align 4, !tbaa !11
  %129 = and i32 %128, 255
  %130 = trunc i32 %129 to i8
  store i8 %130, ptr %20, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %131 = load i32, ptr %15, align 4, !tbaa !11
  %132 = add i32 %131, 4
  store i32 %132, ptr %15, align 4, !tbaa !11
  %133 = load i8, ptr %20, align 1, !tbaa !17
  %134 = sext i8 %133 to i32
  switch i32 %134, label %192 [
    i32 42, label %135
    i32 49, label %136
    i32 50, label %137
    i32 52, label %138
    i32 56, label %139
    i32 65, label %140
    i32 66, label %141
    i32 67, label %142
    i32 70, label %143
    i32 71, label %144
    i32 72, label %145
    i32 73, label %146
    i32 74, label %147
    i32 83, label %148
    i32 84, label %149
    i32 80, label %150
  ]

135:                                              ; preds = %94
  store i8 0, ptr %21, align 1, !tbaa !17
  store i64 0, ptr %22, align 8, !tbaa !5
  br label %218

136:                                              ; preds = %94
  store i8 1, ptr %21, align 1, !tbaa !17
  store i64 1, ptr %22, align 8, !tbaa !5
  br label %218

137:                                              ; preds = %94
  store i8 1, ptr %21, align 1, !tbaa !17
  store i64 2, ptr %22, align 8, !tbaa !5
  br label %218

138:                                              ; preds = %94
  store i8 1, ptr %21, align 1, !tbaa !17
  store i64 4, ptr %22, align 8, !tbaa !5
  br label %218

139:                                              ; preds = %94
  store i8 1, ptr %21, align 1, !tbaa !17
  store i64 8, ptr %22, align 8, !tbaa !5
  br label %218

140:                                              ; preds = %94
  store i8 5, ptr %21, align 1, !tbaa !17
  store i64 2, ptr %22, align 8, !tbaa !5
  br label %218

141:                                              ; preds = %94
  store i8 5, ptr %21, align 1, !tbaa !17
  store i64 4, ptr %22, align 8, !tbaa !5
  br label %218

142:                                              ; preds = %94
  store i8 5, ptr %21, align 1, !tbaa !17
  store i64 8, ptr %22, align 8, !tbaa !5
  br label %218

143:                                              ; preds = %94
  store i8 3, ptr %21, align 1, !tbaa !17
  store i64 4, ptr %22, align 8, !tbaa !5
  br label %218

144:                                              ; preds = %94
  store i8 3, ptr %21, align 1, !tbaa !17
  store i64 20, ptr %22, align 8, !tbaa !5
  br label %218

145:                                              ; preds = %94
  store i8 3, ptr %21, align 1, !tbaa !17
  store i64 32, ptr %22, align 8, !tbaa !5
  br label %218

146:                                              ; preds = %94
  store i8 3, ptr %21, align 1, !tbaa !17
  store i64 48, ptr %22, align 8, !tbaa !5
  br label %218

147:                                              ; preds = %94
  store i8 3, ptr %21, align 1, !tbaa !17
  store i64 64, ptr %22, align 8, !tbaa !5
  br label %218

148:                                              ; preds = %94
  store i8 4, ptr %21, align 1, !tbaa !17
  store i64 8, ptr %22, align 8, !tbaa !5
  br label %218

149:                                              ; preds = %94
  store i8 4, ptr %21, align 1, !tbaa !17
  store i64 12, ptr %22, align 8, !tbaa !5
  br label %218

150:                                              ; preds = %94
  store i8 2, ptr %21, align 1, !tbaa !17
  %151 = load ptr, ptr %17, align 8, !tbaa !9
  %152 = getelementptr inbounds i8, ptr %151, i64 4
  store ptr %152, ptr %23, align 8, !tbaa !9
  %153 = load ptr, ptr %23, align 8, !tbaa !9
  store ptr %153, ptr %24, align 8, !tbaa !9
  %154 = load ptr, ptr %24, align 8, !tbaa !9
  %155 = getelementptr inbounds i16, ptr %154, i64 0
  %156 = load i16, ptr %155, align 2, !tbaa !18
  %157 = zext i16 %156 to i64
  store i64 %157, ptr %22, align 8, !tbaa !5
  %158 = load i64, ptr %4, align 8, !tbaa !5
  %159 = load i32, ptr %15, align 4, !tbaa !11
  %160 = zext i32 %159 to i64
  %161 = sub i64 %158, %160
  %162 = load i64, ptr %22, align 8, !tbaa !5
  %163 = icmp ult i64 %161, %162
  br i1 %163, label %164, label %189

164:                                              ; preds = %150
  %165 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %165) #7
  %166 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free(ptr noundef %166) #7
  %167 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free(ptr noundef %167) #7
  %168 = load ptr, ptr %10, align 8, !tbaa !9
  call void @free(ptr noundef %168) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !11
  br label %169

169:                                              ; preds = %181, %164
  %170 = load i32, ptr %25, align 4, !tbaa !11
  %171 = load i32, ptr %16, align 4, !tbaa !11
  %172 = sub i32 %171, 1
  %173 = icmp ult i32 %170, %172
  br i1 %173, label %175, label %174

174:                                              ; preds = %169
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %184

175:                                              ; preds = %169
  %176 = load ptr, ptr %14, align 8, !tbaa !9
  %177 = load i32, ptr %25, align 4, !tbaa !11
  %178 = zext i32 %177 to i64
  %179 = getelementptr inbounds ptr, ptr %176, i64 %178
  %180 = load ptr, ptr %179, align 8, !tbaa !9
  call void @free(ptr noundef %180) #7
  br label %181

181:                                              ; preds = %175
  %182 = load i32, ptr %25, align 4, !tbaa !11
  %183 = add i32 %182, 1
  store i32 %183, ptr %25, align 4, !tbaa !11
  br label %169, !llvm.loop !20

184:                                              ; preds = %174
  %185 = load ptr, ptr %14, align 8, !tbaa !9
  call void @free(ptr noundef %185) #7
  %186 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %186) #7
  %187 = load ptr, ptr @stderr, align 8, !tbaa !9
  %188 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %187, ptr noundef @.str.7, ptr noundef @__FUNCTION__.neo_aa_header_create_with_encoded_data, ptr noundef @.str.8) #7
  store ptr null, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %270

189:                                              ; preds = %150
  %190 = load i32, ptr %15, align 4, !tbaa !11
  %191 = add i32 %190, 2
  store i32 %191, ptr %15, align 4, !tbaa !11
  br label %218

192:                                              ; preds = %94
  %193 = load ptr, ptr %11, align 8, !tbaa !9
  call void @free(ptr noundef %193) #7
  %194 = load ptr, ptr %13, align 8, !tbaa !9
  call void @free(ptr noundef %194) #7
  %195 = load ptr, ptr %12, align 8, !tbaa !9
  call void @free(ptr noundef %195) #7
  %196 = load ptr, ptr %10, align 8, !tbaa !9
  call void @free(ptr noundef %196) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !11
  br label %197

197:                                              ; preds = %209, %192
  %198 = load i32, ptr %26, align 4, !tbaa !11
  %199 = load i32, ptr %16, align 4, !tbaa !11
  %200 = sub i32 %199, 1
  %201 = icmp ult i32 %198, %200
  br i1 %201, label %203, label %202

202:                                              ; preds = %197
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %212

203:                                              ; preds = %197
  %204 = load ptr, ptr %14, align 8, !tbaa !9
  %205 = load i32, ptr %26, align 4, !tbaa !11
  %206 = zext i32 %205 to i64
  %207 = getelementptr inbounds ptr, ptr %204, i64 %206
  %208 = load ptr, ptr %207, align 8, !tbaa !9
  call void @free(ptr noundef %208) #7
  br label %209

209:                                              ; preds = %203
  %210 = load i32, ptr %26, align 4, !tbaa !11
  %211 = add i32 %210, 1
  store i32 %211, ptr %26, align 4, !tbaa !11
  br label %197, !llvm.loop !22

212:                                              ; preds = %202
  %213 = load ptr, ptr %14, align 8, !tbaa !9
  call void @free(ptr noundef %213) #7
  %214 = load ptr, ptr %9, align 8, !tbaa !9
  call void @free(ptr noundef %214) #7
  %215 = load ptr, ptr @stderr, align 8, !tbaa !9
  %216 = load i32, ptr %18, align 4, !tbaa !11
  %217 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef @.str.9, i32 noundef %216) #7
  store ptr null, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %270

218:                                              ; preds = %189, %149, %148, %147, %146, %145, %144, %143, %142, %141, %140, %139, %138, %137, %136, %135
  %219 = load i32, ptr %19, align 4, !tbaa !11
  %220 = load ptr, ptr %11, align 8, !tbaa !9
  %221 = load i32, ptr %16, align 4, !tbaa !11
  %222 = sub i32 %221, 1
  %223 = zext i32 %222 to i64
  %224 = getelementptr inbounds i32, ptr %220, i64 %223
  store i32 %219, ptr %224, align 4, !tbaa !11
  %225 = load i8, ptr %21, align 1, !tbaa !17
  %226 = load ptr, ptr %12, align 8, !tbaa !9
  %227 = load i32, ptr %16, align 4, !tbaa !11
  %228 = sub i32 %227, 1
  %229 = zext i32 %228 to i64
  %230 = getelementptr inbounds i8, ptr %226, i64 %229
  store i8 %225, ptr %230, align 1, !tbaa !17
  %231 = load i64, ptr %22, align 8, !tbaa !5
  %232 = load ptr, ptr %13, align 8, !tbaa !9
  %233 = load i32, ptr %16, align 4, !tbaa !11
  %234 = sub i32 %233, 1
  %235 = zext i32 %234 to i64
  %236 = getelementptr inbounds i64, ptr %232, i64 %235
  store i64 %231, ptr %236, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %237 = load i64, ptr %22, align 8, !tbaa !5
  %238 = call noalias ptr @malloc(i64 noundef %237) #8
  store ptr %238, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  store i64 0, ptr %28, align 8, !tbaa !5
  br label %239

239:                                              ; preds = %255, %218
  %240 = load i64, ptr %28, align 8, !tbaa !5
  %241 = load i64, ptr %22, align 8, !tbaa !5
  %242 = icmp ult i64 %240, %241
  br i1 %242, label %244, label %243

243:                                              ; preds = %239
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %258

244:                                              ; preds = %239
  %245 = load ptr, ptr %10, align 8, !tbaa !9
  %246 = load i32, ptr %15, align 4, !tbaa !11
  %247 = zext i32 %246 to i64
  %248 = load i64, ptr %28, align 8, !tbaa !5
  %249 = add i64 %247, %248
  %250 = getelementptr inbounds i8, ptr %245, i64 %249
  %251 = load i8, ptr %250, align 1, !tbaa !17
  %252 = load ptr, ptr %27, align 8, !tbaa !9
  %253 = load i64, ptr %28, align 8, !tbaa !5
  %254 = getelementptr inbounds i8, ptr %252, i64 %253
  store i8 %251, ptr %254, align 1, !tbaa !17
  br label %255

255:                                              ; preds = %244
  %256 = load i64, ptr %28, align 8, !tbaa !5
  %257 = add i64 %256, 1
  store i64 %257, ptr %28, align 8, !tbaa !5
  br label %239, !llvm.loop !23

258:                                              ; preds = %243
  %259 = load ptr, ptr %27, align 8, !tbaa !9
  %260 = load ptr, ptr %14, align 8, !tbaa !9
  %261 = load i32, ptr %16, align 4, !tbaa !11
  %262 = sub i32 %261, 1
  %263 = zext i32 %262 to i64
  %264 = getelementptr inbounds ptr, ptr %260, i64 %263
  store ptr %259, ptr %264, align 8, !tbaa !9
  %265 = load i64, ptr %22, align 8, !tbaa !5
  %266 = load i32, ptr %15, align 4, !tbaa !11
  %267 = zext i32 %266 to i64
  %268 = add i64 %267, %265
  %269 = trunc i64 %268 to i32
  store i32 %269, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  store i32 0, ptr %8, align 4
  br label %270

270:                                              ; preds = %258, %212, %184
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  %271 = load i32, ptr %8, align 4
  switch i32 %271, label %292 [
    i32 0, label %272
  ]

272:                                              ; preds = %270
  br label %89, !llvm.loop !24

273:                                              ; preds = %89
  %274 = load i32, ptr %16, align 4, !tbaa !11
  %275 = load ptr, ptr %9, align 8, !tbaa !9
  %276 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %275, i32 0, i32 0
  store i32 %274, ptr %276, align 8, !tbaa !16
  %277 = load ptr, ptr %11, align 8, !tbaa !9
  %278 = load ptr, ptr %9, align 8, !tbaa !9
  %279 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %278, i32 0, i32 2
  store ptr %277, ptr %279, align 8, !tbaa !25
  %280 = load ptr, ptr %12, align 8, !tbaa !9
  %281 = load ptr, ptr %9, align 8, !tbaa !9
  %282 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %281, i32 0, i32 3
  store ptr %280, ptr %282, align 8, !tbaa !26
  %283 = load ptr, ptr %14, align 8, !tbaa !9
  %284 = load ptr, ptr %9, align 8, !tbaa !9
  %285 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %284, i32 0, i32 4
  store ptr %283, ptr %285, align 8, !tbaa !27
  %286 = load ptr, ptr %13, align 8, !tbaa !9
  %287 = load ptr, ptr %9, align 8, !tbaa !9
  %288 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %287, i32 0, i32 5
  store ptr %286, ptr %288, align 8, !tbaa !28
  %289 = load ptr, ptr %9, align 8, !tbaa !9
  %290 = getelementptr inbounds %struct.neo_aa_header_impl, ptr %289, i32 0, i32 7
  store ptr null, ptr %290, align 8, !tbaa !29
  %291 = load ptr, ptr %9, align 8, !tbaa !9
  store ptr %291, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %292

292:                                              ; preds = %273, %270
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %293

293:                                              ; preds = %292, %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %294

294:                                              ; preds = %293, %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %295

295:                                              ; preds = %294, %55, %49, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %296 = load ptr, ptr %3, align 8
  ret ptr %296
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare i32 @printf(ptr noundef, ...) #5

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #6

declare i32 @internal_do_not_call_flip_edian_32(i32 noundef) #5

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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { "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 allocsize(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 #7 = { nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { nounwind allocsize(1) }

!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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"neo_aa_header_impl", !12, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !6, i64 48, !10, i64 56}
!15 = !{!14, !6, i64 48}
!16 = !{!14, !12, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}
!25 = !{!14, !10, i64 16}
!26 = !{!14, !10, i64 24}
!27 = !{!14, !10, i64 32}
!28 = !{!14, !10, i64 40}
!29 = !{!14, !10, 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.2 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [7 x i8], align 1
@__FUNCTION__.neo_aa_header_create_with_encoded_data = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [68 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: nounwind uwtable
define dso_local noalias noundef ptr @neo_aa_header_create_with_encoded_data(i64 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #3 {
  %3 = load i32, ptr %1, align 4, !tbaa !5
  switch i32 %3, label %4 [
    i32 826360153, label %7
    i32 825246017, label %7
  ]

4:                                                ; preds = %2
  %5 = load ptr, ptr @stderr, align 8, !tbaa !9
  %6 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str.2) #7
  br label %.thread

7:                                                ; preds = %2, %2
  %8 = getelementptr inbounds i8, ptr %1, i64 4
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = and i32 %9, 65535
  %11 = zext nneg i32 %10 to i64
  %.not = icmp eq i64 %11, %0
  br i1 %.not, label %15, label %12

12:                                               ; preds = %7
  %13 = load ptr, ptr @stderr, align 8, !tbaa !9
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.3) #7
  br label %.thread

15:                                               ; preds = %7
  %16 = icmp ult i64 %0, 6
  br i1 %16, label %17, label %20

17:                                               ; preds = %15
  %18 = load ptr, ptr @stderr, align 8, !tbaa !9
  %19 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.4) #7
  br label %.thread

20:                                               ; preds = %15
  %21 = tail call noalias dereferenceable_or_null(64) ptr @malloc(i64 noundef 64) #8
  %.not124 = icmp eq ptr %21, null
  br i1 %.not124, label %22, label %25

22:                                               ; preds = %20
  %23 = load ptr, ptr @stderr, align 8, !tbaa !9
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.5) #7
  br label %.thread

25:                                               ; preds = %20
  %26 = tail call noalias ptr @malloc(i64 noundef %0) #8
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %26, ptr nonnull align 1 %1, i64 %0, i1 false)
  %27 = getelementptr inbounds i8, ptr %21, i64 8
  store ptr %26, ptr %27, align 8, !tbaa !11
  %28 = getelementptr inbounds i8, ptr %21, i64 48
  store i64 %0, ptr %28, align 8, !tbaa !14
  %29 = icmp eq i64 %0, 6
  br i1 %29, label %30, label %.lr.ph154.preheader

30:                                               ; preds = %25
  %31 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  store i32 0, ptr %21, align 8, !tbaa !15
  br label %.thread

.lr.ph154.preheader:                              ; preds = %25
  %32 = tail call noalias dereferenceable_or_null(4) ptr @malloc(i64 noundef 4) #8
  %33 = tail call noalias dereferenceable_or_null(1) ptr @malloc(i64 noundef 1) #8
  %34 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #8
  %35 = tail call noalias dereferenceable_or_null(8) ptr @malloc(i64 noundef 8) #8
  br label %.lr.ph154

.lr.ph154:                                        ; preds = %.lr.ph154.preheader, %._crit_edge
  %36 = phi i64 [ %94, %._crit_edge ], [ 6, %.lr.ph154.preheader ]
  %.0112152 = phi ptr [ %40, %._crit_edge ], [ %32, %.lr.ph154.preheader ]
  %.0113151 = phi ptr [ %41, %._crit_edge ], [ %33, %.lr.ph154.preheader ]
  %.0114150 = phi ptr [ %43, %._crit_edge ], [ %34, %.lr.ph154.preheader ]
  %.0115149 = phi i32 [ %37, %._crit_edge ], [ 0, %.lr.ph154.preheader ]
  %.0116148 = phi i32 [ %93, %._crit_edge ], [ 6, %.lr.ph154.preheader ]
  %.0119147 = phi ptr [ %44, %._crit_edge ], [ %35, %.lr.ph154.preheader ]
  %37 = add i32 %.0115149, 1
  %38 = zext i32 %37 to i64
  %39 = shl nuw nsw i64 %38, 2
  %40 = tail call ptr @realloc(ptr noundef %.0112152, i64 noundef %39) #9
  %41 = tail call ptr @realloc(ptr noundef %.0113151, i64 noundef %38) #9
  %42 = shl nuw nsw i64 %38, 3
  %43 = tail call ptr @realloc(ptr noundef %.0114150, i64 noundef %42) #9
  %44 = tail call ptr @realloc(ptr noundef %.0119147, i64 noundef %42) #9
  %45 = getelementptr inbounds i8, ptr %26, i64 %36
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = tail call i32 @internal_do_not_call_flip_edian_32(i32 noundef %46) #10
  %48 = and i32 %47, -256
  %49 = add i32 %.0116148, 4
  %sext = shl i32 %47, 24
  %50 = ashr exact i32 %sext, 24
  switch i32 %50, label %79 [
    i32 42, label %84
    i32 49, label %51
    i32 50, label %52
    i32 52, label %53
    i32 56, label %54
    i32 65, label %55
    i32 66, label %56
    i32 67, label %57
    i32 70, label %58
    i32 71, label %59
    i32 72, label %60
    i32 73, label %61
    i32 74, label %62
    i32 83, label %63
    i32 84, label %64
    i32 80, label %65
  ]

51:                                               ; preds = %.lr.ph154
  br label %84

52:                                               ; preds = %.lr.ph154
  br label %84

53:                                               ; preds = %.lr.ph154
  br label %84

54:                                               ; preds = %.lr.ph154
  br label %84

55:                                               ; preds = %.lr.ph154
  br label %84

56:                                               ; preds = %.lr.ph154
  br label %84

57:                                               ; preds = %.lr.ph154
  br label %84

58:                                               ; preds = %.lr.ph154
  br label %84

59:                                               ; preds = %.lr.ph154
  br label %84

60:                                               ; preds = %.lr.ph154
  br label %84

61:                                               ; preds = %.lr.ph154
  br label %84

62:                                               ; preds = %.lr.ph154
  br label %84

63:                                               ; preds = %.lr.ph154
  br label %84

64:                                               ; preds = %.lr.ph154
  br label %84

65:                                               ; preds = %.lr.ph154
  %66 = getelementptr inbounds i8, ptr %45, i64 4
  %67 = load i16, ptr %66, align 2, !tbaa !16
  %68 = zext i16 %67 to i64
  %69 = zext i32 %49 to i64
  %70 = sub nsw i64 %0, %69
  %71 = icmp ult i64 %70, %68
  br i1 %71, label %72, label %77

72:                                               ; preds = %65
  tail call void @free(ptr noundef %40) #10
  tail call void @free(ptr noundef %43) #10
  tail call void @free(ptr noundef %41) #10
  tail call void @free(ptr noundef nonnull %26) #10
  %.not168 = icmp eq i32 %.0115149, 0
  br i1 %.not168, label %._crit_edge163, label %.lr.ph162.preheader

.lr.ph162.preheader:                              ; preds = %72
  %wide.trip.count = zext i32 %.0115149 to i64
  br label %.lr.ph162

._crit_edge163:                                   ; preds = %.lr.ph162, %72
  tail call void @free(ptr noundef %44) #10
  tail call void @free(ptr noundef %21) #10
  %73 = load ptr, ptr @stderr, align 8, !tbaa !9
  %74 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef nonnull @.str.7, ptr noundef nonnull @__FUNCTION__.neo_aa_header_create_with_encoded_data, ptr noundef nonnull @.str.8) #7
  br label %.thread

.lr.ph162:                                        ; preds = %.lr.ph162.preheader, %.lr.ph162
  %indvars.iv = phi i64 [ 0, %.lr.ph162.preheader ], [ %indvars.iv.next, %.lr.ph162 ]
  %75 = getelementptr inbounds ptr, ptr %44, i64 %indvars.iv
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  tail call void @free(ptr noundef %76) #10
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge163, label %.lr.ph162, !llvm.loop !18

77:                                               ; preds = %65
  %78 = add i32 %.0116148, 6
  br label %84

79:                                               ; preds = %.lr.ph154
  tail call void @free(ptr noundef %40) #10
  tail call void @free(ptr noundef %43) #10
  tail call void @free(ptr noundef %41) #10
  tail call void @free(ptr noundef nonnull %26) #10
  %.not170 = icmp eq i32 %.0115149, 0
  br i1 %.not170, label %._crit_edge167, label %.lr.ph166.preheader

.lr.ph166.preheader:                              ; preds = %79
  %wide.trip.count200 = zext i32 %.0115149 to i64
  br label %.lr.ph166

._crit_edge167:                                   ; preds = %.lr.ph166, %79
  tail call void @free(ptr noundef %44) #10
  tail call void @free(ptr noundef %21) #10
  %80 = load ptr, ptr @stderr, align 8, !tbaa !9
  %81 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef nonnull @.str.9, i32 noundef %47) #7
  br label %.thread

.lr.ph166:                                        ; preds = %.lr.ph166.preheader, %.lr.ph166
  %indvars.iv194 = phi i64 [ 0, %.lr.ph166.preheader ], [ %indvars.iv.next195, %.lr.ph166 ]
  %82 = getelementptr inbounds ptr, ptr %44, i64 %indvars.iv194
  %83 = load ptr, ptr %82, align 8, !tbaa !9
  tail call void @free(ptr noundef %83) #10
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  %exitcond201.not = icmp eq i64 %indvars.iv.next195, %wide.trip.count200
  br i1 %exitcond201.not, label %._crit_edge167, label %.lr.ph166, !llvm.loop !20

84:                                               ; preds = %.lr.ph154, %77, %64, %63, %62, %61, %60, %59, %58, %57, %56, %55, %54, %53, %52, %51
  %.1117 = phi i32 [ %78, %77 ], [ %49, %64 ], [ %49, %63 ], [ %49, %62 ], [ %49, %61 ], [ %49, %60 ], [ %49, %59 ], [ %49, %58 ], [ %49, %57 ], [ %49, %56 ], [ %49, %55 ], [ %49, %54 ], [ %49, %53 ], [ %49, %52 ], [ %49, %51 ], [ %49, %.lr.ph154 ]
  %.0111 = phi i8 [ 2, %77 ], [ 4, %64 ], [ 4, %63 ], [ 3, %62 ], [ 3, %61 ], [ 3, %60 ], [ 3, %59 ], [ 3, %58 ], [ 5, %57 ], [ 5, %56 ], [ 5, %55 ], [ 1, %54 ], [ 1, %53 ], [ 1, %52 ], [ 1, %51 ], [ 0, %.lr.ph154 ]
  %.0110 = phi i64 [ %68, %77 ], [ 12, %64 ], [ 8, %63 ], [ 64, %62 ], [ 48, %61 ], [ 32, %60 ], [ 20, %59 ], [ 4, %58 ], [ 8, %57 ], [ 4, %56 ], [ 2, %55 ], [ 8, %54 ], [ 4, %53 ], [ 2, %52 ], [ 1, %51 ], [ 0, %.lr.ph154 ]
  %85 = zext i32 %.0115149 to i64
  %86 = getelementptr inbounds i32, ptr %40, i64 %85
  store i32 %48, ptr %86, align 4, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %41, i64 %85
  store i8 %.0111, ptr %87, align 1, !tbaa !21
  %88 = getelementptr inbounds i64, ptr %43, i64 %85
  store i64 %.0110, ptr %88, align 8, !tbaa !22
  %89 = tail call noalias ptr @malloc(i64 noundef %.0110) #8
  %.not169 = icmp eq i64 %.0110, 0
  br i1 %.not169, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %84
  %90 = zext i32 %.1117 to i64
  %invariant.gep = getelementptr inbounds i8, ptr %26, i64 %90
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %89, ptr align 1 %invariant.gep, i64 %.0110, i1 false), !tbaa !21
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %84
  %91 = getelementptr inbounds ptr, ptr %44, i64 %85
  store ptr %89, ptr %91, align 8, !tbaa !9
  %92 = trunc nuw nsw i64 %.0110 to i32
  %93 = add i32 %.1117, %92
  %94 = zext i32 %93 to i64
  %95 = icmp ult i64 %94, %0
  br i1 %95, label %.lr.ph154, label %._crit_edge155, !llvm.loop !23

._crit_edge155:                                   ; preds = %._crit_edge
  store i32 %37, ptr %21, align 8, !tbaa !15
  %96 = getelementptr inbounds i8, ptr %21, i64 16
  store ptr %40, ptr %96, align 8, !tbaa !24
  %97 = getelementptr inbounds i8, ptr %21, i64 24
  store ptr %41, ptr %97, align 8, !tbaa !25
  %98 = getelementptr inbounds i8, ptr %21, i64 32
  store ptr %44, ptr %98, align 8, !tbaa !26
  %99 = getelementptr inbounds i8, ptr %21, i64 40
  store ptr %43, ptr %99, align 8, !tbaa !27
  %100 = getelementptr inbounds i8, ptr %21, i64 56
  store ptr null, ptr %100, align 8, !tbaa !28
  br label %.thread

.thread:                                          ; preds = %._crit_edge163, %._crit_edge167, %22, %._crit_edge155, %30, %17, %12, %4
  %.5 = phi ptr [ null, %4 ], [ null, %12 ], [ null, %17 ], [ null, %22 ], [ %21, %30 ], [ %21, %._crit_edge155 ], [ null, %._crit_edge167 ], [ null, %._crit_edge163 ]
  ret ptr %.5
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #5

declare i32 @internal_do_not_call_flip_edian_32(i32 noundef) local_unnamed_addr #6

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 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 #6 = { "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 #7 = { cold nounwind }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { nounwind allocsize(1) }
attributes #10 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"neo_aa_header_impl", !6, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !13, i64 48, !10, i64 56}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, i64 48}
!15 = !{!12, !6, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!7, !7, i64 0}
!22 = !{!13, !13, i64 0}
!23 = distinct !{!23, !19}
!24 = !{!12, !10, i64 16}
!25 = !{!12, !10, i64 24}
!26 = !{!12, !10, i64 32}
!27 = !{!12, !10, i64 40}
!28 = !{!12, !10, i64 56}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass