; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/NetworkPkg/IpSecDxe (IpSecDumpPacket)

; 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.IKE_PACKET = type { i64, i8, ptr, i8, ptr, i64, %struct._LIST_ENTRY, %union.EFI_IP_ADDRESS, i8, i32, i8, ptr }
%struct._LIST_ENTRY = type { ptr, ptr }
%union.EFI_IP_ADDRESS = type { [4 x i32] }
%struct.IKE_HEADER = type <{ i64, i64, i8, i8, i8, i8, i32, i32 }>

@mExchangeStr = external dso_local global [8 x ptr], align 16
@.str.57 = external hidden unnamed_addr constant [134 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @IpSecDumpAddress(i64 noundef, ptr noundef, i8 noundef zeroext) #0

declare zeroext i8 @DebugPrintEnabled() #1

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) #1

declare void @DebugPrint(i64 noundef, ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local void @IpSecDumpPacket(ptr noundef %0, i32 noundef %1, i8 noundef zeroext %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i8 %2, ptr %6, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  br label %11

11:                                               ; preds = %3
  %12 = call zeroext i8 @DebugAssertEnabled()
  %13 = icmp ne i8 %12, 0
  br i1 %13, label %14, label %19

14:                                               ; preds = %11
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %18, label %17

17:                                               ; preds = %14
  call void @DebugAssert(ptr noundef @.str.57, i64 noundef 208, ptr noundef @.str.58)
  br label %18

18:                                               ; preds = %17, %14
  br label %19

19:                                               ; preds = %18, %11
  br label %20

20:                                               ; preds = %19
  br label %21

21:                                               ; preds = %20
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.IKE_PACKET, ptr %22, i32 0, i32 5
  %24 = load i64, ptr %23, align 8, !tbaa !12
  %25 = add i64 %24, 28
  store i64 %25, ptr %8, align 8, !tbaa !16
  %26 = load i32, ptr %5, align 4, !tbaa !9
  %27 = icmp eq i32 %26, 1
  br i1 %27, label %28, label %35

28:                                               ; preds = %21
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.IKE_PACKET, ptr %29, i32 0, i32 2
  %31 = load ptr, ptr %30, align 8, !tbaa !17
  %32 = getelementptr inbounds %struct.IKE_HEADER, ptr %31, i32 0, i32 0
  %33 = load i64, ptr %32, align 1, !tbaa !18
  %34 = call i64 @SwapBytes64(i64 noundef %33)
  br label %41

35:                                               ; preds = %21
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.IKE_PACKET, ptr %36, i32 0, i32 2
  %38 = load ptr, ptr %37, align 8, !tbaa !17
  %39 = getelementptr inbounds %struct.IKE_HEADER, ptr %38, i32 0, i32 0
  %40 = load i64, ptr %39, align 1, !tbaa !18
  br label %41

41:                                               ; preds = %35, %28
  %42 = phi i64 [ %34, %28 ], [ %40, %35 ]
  store i64 %42, ptr %9, align 8, !tbaa !16
  %43 = load i32, ptr %5, align 4, !tbaa !9
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %45, label %52

45:                                               ; preds = %41
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.IKE_PACKET, ptr %46, i32 0, i32 2
  %48 = load ptr, ptr %47, align 8, !tbaa !17
  %49 = getelementptr inbounds %struct.IKE_HEADER, ptr %48, i32 0, i32 1
  %50 = load i64, ptr %49, align 1, !tbaa !20
  %51 = call i64 @SwapBytes64(i64 noundef %50)
  br label %58

52:                                               ; preds = %41
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.IKE_PACKET, ptr %53, i32 0, i32 2
  %55 = load ptr, ptr %54, align 8, !tbaa !17
  %56 = getelementptr inbounds %struct.IKE_HEADER, ptr %55, i32 0, i32 1
  %57 = load i64, ptr %56, align 1, !tbaa !20
  br label %58

58:                                               ; preds = %52, %45
  %59 = phi i64 [ %51, %45 ], [ %57, %52 ]
  store i64 %59, ptr %10, align 8, !tbaa !16
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.IKE_PACKET, ptr %60, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !17
  %63 = getelementptr inbounds %struct.IKE_HEADER, ptr %62, i32 0, i32 4
  %64 = load i8, ptr %63, align 1, !tbaa !21
  %65 = zext i8 %64 to i32
  switch i32 %65, label %80 [
    i32 2, label %66
    i32 5, label %68
    i32 32, label %70
    i32 34, label %72
    i32 35, label %74
    i32 36, label %76
    i32 37, label %78
  ]

66:                                               ; preds = %58
  %67 = load ptr, ptr @mExchangeStr, align 16, !tbaa !5
  store ptr %67, ptr %7, align 8, !tbaa !5
  br label %82

68:                                               ; preds = %58
  %69 = load ptr, ptr getelementptr inbounds ([8 x ptr], ptr @mExchangeStr, i64 0, i64 1), align 8, !tbaa !5
  store ptr %69, ptr %7, align 8, !tbaa !5
  br label %82

70:                                               ; preds = %58
  %71 = load ptr, ptr getelementptr inbounds ([8 x ptr], ptr @mExchangeStr, i64 0, i64 2), align 16, !tbaa !5
  store ptr %71, ptr %7, align 8, !tbaa !5
  br label %82

72:                                               ; preds = %58
  %73 = load ptr, ptr getelementptr inbounds ([8 x ptr], ptr @mExchangeStr, i64 0, i64 3), align 8, !tbaa !5
  store ptr %73, ptr %7, align 8, !tbaa !5
  br label %82

74:                                               ; preds = %58
  %75 = load ptr, ptr getelementptr inbounds ([8 x ptr], ptr @mExchangeStr, i64 0, i64 4), align 16, !tbaa !5
  store ptr %75, ptr %7, align 8, !tbaa !5
  br label %82

76:                                               ; preds = %58
  %77 = load ptr, ptr getelementptr inbounds ([8 x ptr], ptr @mExchangeStr, i64 0, i64 5), align 8, !tbaa !5
  store ptr %77, ptr %7, align 8, !tbaa !5
  br label %82

78:                                               ; preds = %58
  %79 = load ptr, ptr getelementptr inbounds ([8 x ptr], ptr @mExchangeStr, i64 0, i64 6), align 16, !tbaa !5
  store ptr %79, ptr %7, align 8, !tbaa !5
  br label %82

80:                                               ; preds = %58
  %81 = load ptr, ptr getelementptr inbounds ([8 x ptr], ptr @mExchangeStr, i64 0, i64 7), align 8, !tbaa !5
  store ptr %81, ptr %7, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %80, %78, %76, %74, %72, %70, %68, %66
  %83 = load i32, ptr %5, align 4, !tbaa !9
  %84 = icmp eq i32 %83, 1
  br i1 %84, label %85, label %102

85:                                               ; preds = %82
  br label %86

86:                                               ; preds = %85
  %87 = call zeroext i8 @DebugPrintEnabled()
  %88 = icmp ne i8 %87, 0
  br i1 %88, label %89, label %99

89:                                               ; preds = %86
  br label %90

90:                                               ; preds = %89
  %91 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64)
  %92 = icmp ne i8 %91, 0
  br i1 %92, label %93, label %96

93:                                               ; preds = %90
  %94 = load i64, ptr %8, align 8, !tbaa !16
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef @.str.59, i64 noundef %94, ptr noundef %95)
  br label %96

96:                                               ; preds = %93, %90
  br label %97

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98, %86
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100
  br label %119

102:                                              ; preds = %82
  br label %103

103:                                              ; preds = %102
  %104 = call zeroext i8 @DebugPrintEnabled()
  %105 = icmp ne i8 %104, 0
  br i1 %105, label %106, label %116

106:                                              ; preds = %103
  br label %107

107:                                              ; preds = %106
  %108 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64)
  %109 = icmp ne i8 %108, 0
  br i1 %109, label %110, label %113

110:                                              ; preds = %107
  %111 = load i64, ptr %8, align 8, !tbaa !16
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef @.str.60, i64 noundef %111, ptr noundef %112)
  br label %113

113:                                              ; preds = %110, %107
  br label %114

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114
  br label %116

116:                                              ; preds = %115, %103
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117
  br label %119

119:                                              ; preds = %118, %101
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.IKE_PACKET, ptr %120, i32 0, i32 7
  %122 = load i8, ptr %6, align 1, !tbaa !11
  call void @IpSecDumpAddress(i64 noundef 64, ptr noundef %121, i8 noundef zeroext %122)
  br label %123

123:                                              ; preds = %119
  %124 = call zeroext i8 @DebugPrintEnabled()
  %125 = icmp ne i8 %124, 0
  br i1 %125, label %126, label %136

126:                                              ; preds = %123
  br label %127

127:                                              ; preds = %126
  %128 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64)
  %129 = icmp ne i8 %128, 0
  br i1 %129, label %130, label %133

130:                                              ; preds = %127
  %131 = load i64, ptr %9, align 8, !tbaa !16
  %132 = load i64, ptr %10, align 8, !tbaa !16
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef @.str.61, i64 noundef %131, i64 noundef %132)
  br label %133

133:                                              ; preds = %130, %127
  br label %134

134:                                              ; preds = %133
  br label %135

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135, %123
  br label %137

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137
  br label %139

139:                                              ; preds = %138
  %140 = call zeroext i8 @DebugPrintEnabled()
  %141 = icmp ne i8 %140, 0
  br i1 %141, label %142, label %168

142:                                              ; preds = %139
  br label %143

143:                                              ; preds = %142
  %144 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64)
  %145 = icmp ne i8 %144, 0
  br i1 %145, label %146, label %165

146:                                              ; preds = %143
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.IKE_PACKET, ptr %147, i32 0, i32 2
  %149 = load ptr, ptr %148, align 8, !tbaa !17
  %150 = getelementptr inbounds %struct.IKE_HEADER, ptr %149, i32 0, i32 3
  %151 = load i8, ptr %150, align 1, !tbaa !22
  %152 = zext i8 %151 to i32
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.IKE_PACKET, ptr %153, i32 0, i32 2
  %155 = load ptr, ptr %154, align 8, !tbaa !17
  %156 = getelementptr inbounds %struct.IKE_HEADER, ptr %155, i32 0, i32 5
  %157 = load i8, ptr %156, align 1, !tbaa !23
  %158 = zext i8 %157 to i32
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.IKE_PACKET, ptr %159, i32 0, i32 2
  %161 = load ptr, ptr %160, align 8, !tbaa !17
  %162 = getelementptr inbounds %struct.IKE_HEADER, ptr %161, i32 0, i32 4
  %163 = load i8, ptr %162, align 1, !tbaa !21
  %164 = zext i8 %163 to i32
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef @.str.62, i32 noundef %152, i32 noundef %158, i32 noundef %164)
  br label %165

165:                                              ; preds = %146, %143
  br label %166

166:                                              ; preds = %165
  br label %167

167:                                              ; preds = %166
  br label %168

168:                                              ; preds = %167, %139
  br label %169

169:                                              ; preds = %168
  br label %170

170:                                              ; preds = %169
  br label %171

171:                                              ; preds = %170
  %172 = call zeroext i8 @DebugPrintEnabled()
  %173 = icmp ne i8 %172, 0
  br i1 %173, label %174, label %193

174:                                              ; preds = %171
  br label %175

175:                                              ; preds = %174
  %176 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64)
  %177 = icmp ne i8 %176, 0
  br i1 %177, label %178, label %190

178:                                              ; preds = %175
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.IKE_PACKET, ptr %179, i32 0, i32 2
  %181 = load ptr, ptr %180, align 8, !tbaa !17
  %182 = getelementptr inbounds %struct.IKE_HEADER, ptr %181, i32 0, i32 6
  %183 = load i32, ptr %182, align 1, !tbaa !24
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.IKE_PACKET, ptr %184, i32 0, i32 2
  %186 = load ptr, ptr %185, align 8, !tbaa !17
  %187 = getelementptr inbounds %struct.IKE_HEADER, ptr %186, i32 0, i32 2
  %188 = load i8, ptr %187, align 1, !tbaa !25
  %189 = zext i8 %188 to i32
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef @.str.63, i32 noundef %183, i32 noundef %189)
  br label %190

190:                                              ; preds = %178, %175
  br label %191

191:                                              ; preds = %190
  br label %192

192:                                              ; preds = %191
  br label %193

193:                                              ; preds = %192, %171
  br label %194

194:                                              ; preds = %193
  br label %195

195:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret void
}

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

declare zeroext i8 @DebugAssertEnabled() #1

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

declare i64 @SwapBytes64(i64 noundef) #1

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !14, i64 40}
!13 = !{!"", !14, i64 0, !7, i64 8, !6, i64 16, !7, i64 24, !6, i64 32, !14, i64 40, !15, i64 48, !7, i64 64, !7, i64 80, !10, i64 84, !7, i64 88, !6, i64 96}
!14 = !{!"long long", !7, i64 0}
!15 = !{!"_LIST_ENTRY", !6, i64 0, !6, i64 8}
!16 = !{!14, !14, i64 0}
!17 = !{!13, !6, i64 16}
!18 = !{!19, !14, i64 0}
!19 = !{!"", !14, i64 0, !14, i64 8, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19, !10, i64 20, !10, i64 24}
!20 = !{!19, !14, i64 8}
!21 = !{!19, !7, i64 18}
!22 = !{!19, !7, i64 17}
!23 = !{!19, !7, i64 19}
!24 = !{!19, !10, i64 20}
!25 = !{!19, !7, i64 16}


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

@mExchangeStr = external dso_local local_unnamed_addr global [8 x ptr], align 16
@.str.57 = external hidden unnamed_addr constant [134 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [36 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @IpSecDumpAddress(i64 noundef, ptr noundef, i8 noundef zeroext) local_unnamed_addr #0

declare zeroext i8 @DebugPrintEnabled() local_unnamed_addr #1

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @IpSecDumpPacket(ptr noundef %0, i32 noundef %1, i8 noundef zeroext %2) local_unnamed_addr #0 {
  %4 = tail call zeroext i8 @DebugAssertEnabled() #2
  %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 = %3
  tail call void @DebugAssert(ptr noundef nonnull @.str.57, i64 noundef 208, ptr noundef nonnull @.str.58) #2
  br label %8

8:                                                ; preds = %7, %3
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = load i64, ptr %9, align 8, !tbaa !5
  %11 = add i64 %10, 28
  %12 = icmp eq i32 %1, 1
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = load ptr, ptr %13, align 8, !tbaa !13
  %15 = load i64, ptr %14, align 1, !tbaa !14
  br i1 %12, label %16, label %22

16:                                               ; preds = %8
  %17 = tail call i64 @SwapBytes64(i64 noundef %15) #2
  %18 = load ptr, ptr %13, align 8, !tbaa !13
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = load i64, ptr %19, align 1, !tbaa !16
  %21 = tail call i64 @SwapBytes64(i64 noundef %20) #2
  %.pre = load ptr, ptr %13, align 8, !tbaa !13
  br label %25

22:                                               ; preds = %8
  %23 = getelementptr inbounds i8, ptr %14, i64 8
  %24 = load i64, ptr %23, align 1, !tbaa !16
  br label %25

25:                                               ; preds = %22, %16
  %26 = phi ptr [ %.pre, %16 ], [ %14, %22 ]
  %27 = phi i64 [ %17, %16 ], [ %15, %22 ]
  %28 = phi i64 [ %21, %16 ], [ %24, %22 ]
  %29 = getelementptr inbounds i8, ptr %0, i64 16
  %30 = getelementptr inbounds i8, ptr %26, i64 18
  %31 = load i8, ptr %30, align 1, !tbaa !17
  switch i8 %31, label %38 [
    i8 2, label %39
    i8 5, label %32
    i8 32, label %33
    i8 34, label %34
    i8 35, label %35
    i8 36, label %36
    i8 37, label %37
  ]

32:                                               ; preds = %25
  br label %39

33:                                               ; preds = %25
  br label %39

34:                                               ; preds = %25
  br label %39

35:                                               ; preds = %25
  br label %39

36:                                               ; preds = %25
  br label %39

37:                                               ; preds = %25
  br label %39

38:                                               ; preds = %25
  br label %39

39:                                               ; preds = %25, %38, %37, %36, %35, %34, %33, %32
  %.0.in = phi ptr [ getelementptr inbounds (i8, ptr @mExchangeStr, i64 56), %38 ], [ getelementptr inbounds (i8, ptr @mExchangeStr, i64 48), %37 ], [ getelementptr inbounds (i8, ptr @mExchangeStr, i64 40), %36 ], [ getelementptr inbounds (i8, ptr @mExchangeStr, i64 32), %35 ], [ getelementptr inbounds (i8, ptr @mExchangeStr, i64 24), %34 ], [ getelementptr inbounds (i8, ptr @mExchangeStr, i64 16), %33 ], [ getelementptr inbounds (i8, ptr @mExchangeStr, i64 8), %32 ], [ @mExchangeStr, %25 ]
  %.0 = load ptr, ptr %.0.in, align 8, !tbaa !18
  %40 = tail call zeroext i8 @DebugPrintEnabled() #2
  %.not24 = icmp eq i8 %40, 0
  br i1 %12, label %41, label %44

41:                                               ; preds = %39
  br i1 %.not24, label %47, label %42

42:                                               ; preds = %41
  %43 = tail call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64) #2
  %.not25 = icmp eq i8 %43, 0
  br i1 %.not25, label %47, label %.sink.split

44:                                               ; preds = %39
  br i1 %.not24, label %47, label %45

45:                                               ; preds = %44
  %46 = tail call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64) #2
  %.not23 = icmp eq i8 %46, 0
  br i1 %.not23, label %47, label %.sink.split

.sink.split:                                      ; preds = %45, %42
  %.str.60.sink = phi ptr [ @.str.59, %42 ], [ @.str.60, %45 ]
  tail call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef nonnull %.str.60.sink, i64 noundef %11, ptr noundef %.0) #2
  br label %47

47:                                               ; preds = %.sink.split, %44, %45, %41, %42
  %48 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @IpSecDumpAddress(i64 noundef 64, ptr noundef nonnull %48, i8 noundef zeroext %2)
  %49 = tail call zeroext i8 @DebugPrintEnabled() #2
  %.not26 = icmp eq i8 %49, 0
  br i1 %.not26, label %53, label %50

50:                                               ; preds = %47
  %51 = tail call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64) #2
  %.not27 = icmp eq i8 %51, 0
  br i1 %.not27, label %53, label %52

52:                                               ; preds = %50
  tail call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef nonnull @.str.61, i64 noundef %27, i64 noundef %28) #2
  br label %53

53:                                               ; preds = %47, %52, %50
  %54 = tail call zeroext i8 @DebugPrintEnabled() #2
  %.not28 = icmp eq i8 %54, 0
  br i1 %.not28, label %68, label %55

55:                                               ; preds = %53
  %56 = tail call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64) #2
  %.not29 = icmp eq i8 %56, 0
  br i1 %.not29, label %68, label %57

57:                                               ; preds = %55
  %58 = load ptr, ptr %29, align 8, !tbaa !13
  %59 = getelementptr inbounds i8, ptr %58, i64 17
  %60 = load i8, ptr %59, align 1, !tbaa !19
  %61 = zext i8 %60 to i32
  %62 = getelementptr inbounds i8, ptr %58, i64 19
  %63 = load i8, ptr %62, align 1, !tbaa !20
  %64 = zext i8 %63 to i32
  %65 = getelementptr inbounds i8, ptr %58, i64 18
  %66 = load i8, ptr %65, align 1, !tbaa !17
  %67 = zext i8 %66 to i32
  tail call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef nonnull @.str.62, i32 noundef %61, i32 noundef %64, i32 noundef %67) #2
  br label %68

68:                                               ; preds = %53, %57, %55
  %69 = tail call zeroext i8 @DebugPrintEnabled() #2
  %.not30 = icmp eq i8 %69, 0
  br i1 %.not30, label %79, label %70

70:                                               ; preds = %68
  %71 = tail call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64) #2
  %.not31 = icmp eq i8 %71, 0
  br i1 %.not31, label %79, label %72

72:                                               ; preds = %70
  %73 = load ptr, ptr %29, align 8, !tbaa !13
  %74 = getelementptr inbounds i8, ptr %73, i64 20
  %75 = load i32, ptr %74, align 1, !tbaa !21
  %76 = getelementptr inbounds i8, ptr %73, i64 16
  %77 = load i8, ptr %76, align 1, !tbaa !22
  %78 = zext i8 %77 to i32
  tail call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef nonnull @.str.63, i32 noundef %75, i32 noundef %78) #2
  br label %79

79:                                               ; preds = %70, %72, %68
  ret void
}

declare zeroext i8 @DebugAssertEnabled() local_unnamed_addr #1

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

declare i64 @SwapBytes64(i64 noundef) local_unnamed_addr #1

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

!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, !7, i64 40}
!6 = !{!"", !7, i64 0, !8, i64 8, !10, i64 16, !8, i64 24, !10, i64 32, !7, i64 40, !11, i64 48, !8, i64 64, !8, i64 80, !12, i64 84, !8, i64 88, !10, i64 96}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_LIST_ENTRY", !10, i64 0, !10, i64 8}
!12 = !{!"int", !8, i64 0}
!13 = !{!6, !10, i64 16}
!14 = !{!15, !7, i64 0}
!15 = !{!"", !7, i64 0, !7, i64 8, !8, i64 16, !8, i64 17, !8, i64 18, !8, i64 19, !12, i64 20, !12, i64 24}
!16 = !{!15, !7, i64 8}
!17 = !{!15, !8, i64 18}
!18 = !{!10, !10, i64 0}
!19 = !{!15, !8, i64 17}
!20 = !{!15, !8, i64 19}
!21 = !{!15, !12, i64 20}
!22 = !{!15, !8, i64 16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass