; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/ShellPkg/Library (DevPathSerialIPv6)

; 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.IPv6_DEVICE_PATH = type { %struct.EFI_DEVICE_PATH_PROTOCOL, %struct.EFI_IPv6_ADDRESS, %struct.EFI_IPv6_ADDRESS, i16, i16, i16, i8, i8, %struct.EFI_IPv6_ADDRESS }
%struct.EFI_DEVICE_PATH_PROTOCOL = type { i8, i8, [2 x i8] }
%struct.EFI_IPv6_ADDRESS = type { [16 x i8] }

@.str = external hidden unnamed_addr constant [155 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i32], align 4

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

declare zeroext i8 @DebugAssertEnabled() #1

declare void @DebugAssert(ptr noundef, i64 noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local i64 @AppendCSDNum(ptr noundef, i64 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i64 @AppendCSDStr(ptr noundef, ptr noundef) #2

declare i64 @UnicodeSPrint(ptr noundef, i64 noundef, ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local void @DevPathSerialIPv6(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca [64 x i16], align 16
  %8 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 128, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  br label %9

9:                                                ; preds = %2
  %10 = call zeroext i8 @DebugAssertEnabled()
  %11 = icmp ne i8 %10, 0
  br i1 %11, label %12, label %17

12:                                               ; preds = %9
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = icmp ne ptr %13, null
  br i1 %14, label %16, label %15

15:                                               ; preds = %12
  call void @DebugAssert(ptr noundef @.str, i64 noundef 842, ptr noundef @.str.14)
  br label %16

16:                                               ; preds = %15, %12
  br label %17

17:                                               ; preds = %16, %9
  br label %18

18:                                               ; preds = %17
  br label %19

19:                                               ; preds = %18
  br label %20

20:                                               ; preds = %19
  %21 = call zeroext i8 @DebugAssertEnabled()
  %22 = icmp ne i8 %21, 0
  br i1 %22, label %23, label %28

23:                                               ; preds = %20
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %27, label %26

26:                                               ; preds = %23
  call void @DebugAssert(ptr noundef @.str, i64 noundef 843, ptr noundef @.str.15)
  br label %27

27:                                               ; preds = %26, %23
  br label %28

28:                                               ; preds = %27, %20
  br label %29

29:                                               ; preds = %28
  br label %30

30:                                               ; preds = %29
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %31, ptr %5, align 8, !tbaa !5
  store i64 0, ptr %6, align 8, !tbaa !9
  %32 = getelementptr inbounds [64 x i16], ptr %7, i64 0, i64 0
  store ptr %32, ptr %8, align 8, !tbaa !5
  br label %33

33:                                               ; preds = %46, %30
  %34 = load i64, ptr %6, align 8, !tbaa !9
  %35 = icmp ult i64 %34, 16
  br i1 %35, label %36, label %51

36:                                               ; preds = %33
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.IPv6_DEVICE_PATH, ptr %38, i32 0, i32 1
  %40 = getelementptr inbounds %struct.EFI_IPv6_ADDRESS, ptr %39, i32 0, i32 0
  %41 = load i64, ptr %6, align 8, !tbaa !9
  %42 = getelementptr inbounds [16 x i8], ptr %40, i64 0, i64 %41
  %43 = load i8, ptr %42, align 1, !tbaa !11
  %44 = zext i8 %43 to i64
  %45 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef %37, i64 noundef 0, ptr noundef @.str.16, i64 noundef %44)
  br label %46

46:                                               ; preds = %36
  %47 = load i64, ptr %6, align 8, !tbaa !9
  %48 = add i64 %47, 1
  store i64 %48, ptr %6, align 8, !tbaa !9
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = getelementptr inbounds i16, ptr %49, i64 2
  store ptr %50, ptr %8, align 8, !tbaa !5
  br label %33, !llvm.loop !12

51:                                               ; preds = %33
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds [64 x i16], ptr %7, i64 0, i64 0
  %54 = call i64 @AppendCSDStr(ptr noundef %52, ptr noundef %53)
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.IPv6_DEVICE_PATH, ptr %56, i32 0, i32 3
  %58 = load i16, ptr %57, align 1, !tbaa !14
  %59 = zext i16 %58 to i64
  %60 = call i64 @AppendCSDNum(ptr noundef %55, i64 noundef %59)
  store i64 0, ptr %6, align 8, !tbaa !9
  %61 = getelementptr inbounds [64 x i16], ptr %7, i64 0, i64 0
  store ptr %61, ptr %8, align 8, !tbaa !5
  br label %62

62:                                               ; preds = %75, %51
  %63 = load i64, ptr %6, align 8, !tbaa !9
  %64 = icmp ult i64 %63, 16
  br i1 %64, label %65, label %80

65:                                               ; preds = %62
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.IPv6_DEVICE_PATH, ptr %67, i32 0, i32 2
  %69 = getelementptr inbounds %struct.EFI_IPv6_ADDRESS, ptr %68, i32 0, i32 0
  %70 = load i64, ptr %6, align 8, !tbaa !9
  %71 = getelementptr inbounds [16 x i8], ptr %69, i64 0, i64 %70
  %72 = load i8, ptr %71, align 1, !tbaa !11
  %73 = zext i8 %72 to i64
  %74 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef %66, i64 noundef 0, ptr noundef @.str.16, i64 noundef %73)
  br label %75

75:                                               ; preds = %65
  %76 = load i64, ptr %6, align 8, !tbaa !9
  %77 = add i64 %76, 1
  store i64 %77, ptr %6, align 8, !tbaa !9
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = getelementptr inbounds i16, ptr %78, i64 2
  store ptr %79, ptr %8, align 8, !tbaa !5
  br label %62, !llvm.loop !19

80:                                               ; preds = %62
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds [64 x i16], ptr %7, i64 0, i64 0
  %83 = call i64 @AppendCSDStr(ptr noundef %81, ptr noundef %82)
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.IPv6_DEVICE_PATH, ptr %85, i32 0, i32 4
  %87 = load i16, ptr %86, align 1, !tbaa !20
  %88 = zext i16 %87 to i64
  %89 = call i64 @AppendCSDNum(ptr noundef %84, i64 noundef %88)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 128, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !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 = !{!"long long", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !18, i64 36}
!15 = !{!"", !16, i64 0, !17, i64 4, !17, i64 20, !18, i64 36, !18, i64 38, !18, i64 40, !7, i64 42, !7, i64 43, !17, i64 44}
!16 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2}
!17 = !{!"", !7, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = distinct !{!19, !13}
!20 = !{!15, !18, i64 38}


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

@.str = external hidden unnamed_addr constant [155 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [5 x i32], align 4

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

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

declare void @DebugAssert(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

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

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

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

declare i64 @UnicodeSPrint(ptr noundef, i64 noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @DevPathSerialIPv6(ptr noundef readonly %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca [64 x i16], align 16
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %3) #3
  %4 = tail call zeroext i8 @DebugAssertEnabled() #3
  %5 = icmp eq i8 %4, 0
  %6 = icmp ne ptr %0, null
  %or.cond = or i1 %6, %5
  br i1 %or.cond, label %8, label %7

7:                                                ; preds = %2
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 842, ptr noundef nonnull @.str.14) #3
  br label %8

8:                                                ; preds = %2, %7
  %9 = tail call zeroext i8 @DebugAssertEnabled() #3
  %10 = icmp eq i8 %9, 0
  %11 = icmp ne ptr %1, null
  %or.cond3 = or i1 %11, %10
  br i1 %or.cond3, label %13, label %12

12:                                               ; preds = %8
  tail call void @DebugAssert(ptr noundef nonnull @.str, i64 noundef 843, ptr noundef nonnull @.str.15) #3
  br label %13

13:                                               ; preds = %12, %8
  %14 = getelementptr inbounds i8, ptr %0, i64 4
  %15 = load i8, ptr %14, align 1, !tbaa !5
  %16 = zext i8 %15 to i64
  %17 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %3, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %16) #3
  %18 = getelementptr inbounds i8, ptr %3, i64 4
  %19 = getelementptr inbounds i8, ptr %0, i64 5
  %20 = load i8, ptr %19, align 1, !tbaa !5
  %21 = zext i8 %20 to i64
  %22 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %18, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %21) #3
  %23 = getelementptr inbounds i8, ptr %3, i64 8
  %24 = getelementptr inbounds i8, ptr %0, i64 6
  %25 = load i8, ptr %24, align 1, !tbaa !5
  %26 = zext i8 %25 to i64
  %27 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %23, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %26) #3
  %28 = getelementptr inbounds i8, ptr %3, i64 12
  %29 = getelementptr inbounds i8, ptr %0, i64 7
  %30 = load i8, ptr %29, align 1, !tbaa !5
  %31 = zext i8 %30 to i64
  %32 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %28, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %31) #3
  %33 = getelementptr inbounds i8, ptr %3, i64 16
  %34 = getelementptr inbounds i8, ptr %0, i64 8
  %35 = load i8, ptr %34, align 1, !tbaa !5
  %36 = zext i8 %35 to i64
  %37 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %33, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %36) #3
  %38 = getelementptr inbounds i8, ptr %3, i64 20
  %39 = getelementptr inbounds i8, ptr %0, i64 9
  %40 = load i8, ptr %39, align 1, !tbaa !5
  %41 = zext i8 %40 to i64
  %42 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %38, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %41) #3
  %43 = getelementptr inbounds i8, ptr %3, i64 24
  %44 = getelementptr inbounds i8, ptr %0, i64 10
  %45 = load i8, ptr %44, align 1, !tbaa !5
  %46 = zext i8 %45 to i64
  %47 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %43, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %46) #3
  %48 = getelementptr inbounds i8, ptr %3, i64 28
  %49 = getelementptr inbounds i8, ptr %0, i64 11
  %50 = load i8, ptr %49, align 1, !tbaa !5
  %51 = zext i8 %50 to i64
  %52 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %48, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %51) #3
  %53 = getelementptr inbounds i8, ptr %3, i64 32
  %54 = getelementptr inbounds i8, ptr %0, i64 12
  %55 = load i8, ptr %54, align 1, !tbaa !5
  %56 = zext i8 %55 to i64
  %57 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %53, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %56) #3
  %58 = getelementptr inbounds i8, ptr %3, i64 36
  %59 = getelementptr inbounds i8, ptr %0, i64 13
  %60 = load i8, ptr %59, align 1, !tbaa !5
  %61 = zext i8 %60 to i64
  %62 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %58, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %61) #3
  %63 = getelementptr inbounds i8, ptr %3, i64 40
  %64 = getelementptr inbounds i8, ptr %0, i64 14
  %65 = load i8, ptr %64, align 1, !tbaa !5
  %66 = zext i8 %65 to i64
  %67 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %63, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %66) #3
  %68 = getelementptr inbounds i8, ptr %3, i64 44
  %69 = getelementptr inbounds i8, ptr %0, i64 15
  %70 = load i8, ptr %69, align 1, !tbaa !5
  %71 = zext i8 %70 to i64
  %72 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %68, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %71) #3
  %73 = getelementptr inbounds i8, ptr %3, i64 48
  %74 = getelementptr inbounds i8, ptr %0, i64 16
  %75 = load i8, ptr %74, align 1, !tbaa !5
  %76 = zext i8 %75 to i64
  %77 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %73, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %76) #3
  %78 = getelementptr inbounds i8, ptr %3, i64 52
  %79 = getelementptr inbounds i8, ptr %0, i64 17
  %80 = load i8, ptr %79, align 1, !tbaa !5
  %81 = zext i8 %80 to i64
  %82 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %78, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %81) #3
  %83 = getelementptr inbounds i8, ptr %3, i64 56
  %84 = getelementptr inbounds i8, ptr %0, i64 18
  %85 = load i8, ptr %84, align 1, !tbaa !5
  %86 = zext i8 %85 to i64
  %87 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %83, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %86) #3
  %88 = getelementptr inbounds i8, ptr %3, i64 60
  %89 = getelementptr inbounds i8, ptr %0, i64 19
  %90 = load i8, ptr %89, align 1, !tbaa !5
  %91 = zext i8 %90 to i64
  %92 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %88, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %91) #3
  %93 = call i64 @AppendCSDStr(ptr noundef %1, ptr noundef nonnull %3)
  %94 = getelementptr inbounds i8, ptr %0, i64 36
  %95 = load i16, ptr %94, align 1, !tbaa !8
  %96 = zext i16 %95 to i64
  %97 = call i64 @AppendCSDNum(ptr noundef %1, i64 noundef %96)
  %98 = getelementptr inbounds i8, ptr %0, i64 20
  %99 = load i8, ptr %98, align 1, !tbaa !5
  %100 = zext i8 %99 to i64
  %101 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %3, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %100) #3
  %102 = getelementptr inbounds i8, ptr %0, i64 21
  %103 = load i8, ptr %102, align 1, !tbaa !5
  %104 = zext i8 %103 to i64
  %105 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %18, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %104) #3
  %106 = getelementptr inbounds i8, ptr %0, i64 22
  %107 = load i8, ptr %106, align 1, !tbaa !5
  %108 = zext i8 %107 to i64
  %109 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %23, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %108) #3
  %110 = getelementptr inbounds i8, ptr %0, i64 23
  %111 = load i8, ptr %110, align 1, !tbaa !5
  %112 = zext i8 %111 to i64
  %113 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %28, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %112) #3
  %114 = getelementptr inbounds i8, ptr %0, i64 24
  %115 = load i8, ptr %114, align 1, !tbaa !5
  %116 = zext i8 %115 to i64
  %117 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %33, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %116) #3
  %118 = getelementptr inbounds i8, ptr %0, i64 25
  %119 = load i8, ptr %118, align 1, !tbaa !5
  %120 = zext i8 %119 to i64
  %121 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %38, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %120) #3
  %122 = getelementptr inbounds i8, ptr %0, i64 26
  %123 = load i8, ptr %122, align 1, !tbaa !5
  %124 = zext i8 %123 to i64
  %125 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %43, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %124) #3
  %126 = getelementptr inbounds i8, ptr %0, i64 27
  %127 = load i8, ptr %126, align 1, !tbaa !5
  %128 = zext i8 %127 to i64
  %129 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %48, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %128) #3
  %130 = getelementptr inbounds i8, ptr %0, i64 28
  %131 = load i8, ptr %130, align 1, !tbaa !5
  %132 = zext i8 %131 to i64
  %133 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %53, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %132) #3
  %134 = getelementptr inbounds i8, ptr %0, i64 29
  %135 = load i8, ptr %134, align 1, !tbaa !5
  %136 = zext i8 %135 to i64
  %137 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %58, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %136) #3
  %138 = getelementptr inbounds i8, ptr %0, i64 30
  %139 = load i8, ptr %138, align 1, !tbaa !5
  %140 = zext i8 %139 to i64
  %141 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %63, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %140) #3
  %142 = getelementptr inbounds i8, ptr %0, i64 31
  %143 = load i8, ptr %142, align 1, !tbaa !5
  %144 = zext i8 %143 to i64
  %145 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %68, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %144) #3
  %146 = getelementptr inbounds i8, ptr %0, i64 32
  %147 = load i8, ptr %146, align 1, !tbaa !5
  %148 = zext i8 %147 to i64
  %149 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %73, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %148) #3
  %150 = getelementptr inbounds i8, ptr %0, i64 33
  %151 = load i8, ptr %150, align 1, !tbaa !5
  %152 = zext i8 %151 to i64
  %153 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %78, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %152) #3
  %154 = getelementptr inbounds i8, ptr %0, i64 34
  %155 = load i8, ptr %154, align 1, !tbaa !5
  %156 = zext i8 %155 to i64
  %157 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %83, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %156) #3
  %158 = getelementptr inbounds i8, ptr %0, i64 35
  %159 = load i8, ptr %158, align 1, !tbaa !5
  %160 = zext i8 %159 to i64
  %161 = call i64 (ptr, i64, ptr, ...) @UnicodeSPrint(ptr noundef nonnull %88, i64 noundef 0, ptr noundef nonnull @.str.16, i64 noundef %160) #3
  %162 = call i64 @AppendCSDStr(ptr noundef %1, ptr noundef nonnull %3)
  %163 = getelementptr inbounds i8, ptr %0, i64 38
  %164 = load i16, ptr %163, align 1, !tbaa !13
  %165 = zext i16 %164 to i64
  %166 = call i64 @AppendCSDNum(ptr noundef %1, i64 noundef %165)
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %3) #3
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !12, i64 36}
!9 = !{!"", !10, i64 0, !11, i64 4, !11, i64 20, !12, i64 36, !12, i64 38, !12, i64 40, !6, i64 42, !6, i64 43, !11, i64 44}
!10 = !{!"", !6, i64 0, !6, i64 1, !6, i64 2}
!11 = !{!"", !6, i64 0}
!12 = !{!"short", !6, i64 0}
!13 = !{!9, !12, i64 38}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass