; LLVM IR from AF-GRILL/DISPluginForUnreal :: Source/ThirdParty/include/utils/PduFactory.ll (ZN3DIS10PduFactory9createPduEPKc)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.DIS::DataStream" = type { %"class.std::vector", i64, i64, i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN3DIS10PduFactory9createPduEPKc(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.DIS::DataStream", align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 1500, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 2
  %14 = load i8, ptr %13, align 1, !tbaa !11
  %15 = sext i8 %14 to i32
  store i32 %15, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #7
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = load i32, ptr %5, align 4, !tbaa !9
  %18 = sext i32 %17 to i64
  call void @_ZN3DIS10DataStreamC1EPKcmNS_6EndianE(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef %16, i64 noundef %18, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store ptr null, ptr %8, align 8, !tbaa !5
  %19 = load i32, ptr %6, align 4, !tbaa !9
  switch i32 %19, label %193 [
    i32 1, label %20
    i32 2, label %37
    i32 3, label %50
    i32 19, label %63
    i32 11, label %76
    i32 12, label %89
    i32 13, label %102
    i32 14, label %115
    i32 23, label %128
    i32 25, label %141
    i32 26, label %154
    i32 27, label %167
    i32 35, label %180
  ]

20:                                               ; preds = %2
  %21 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 296) #8
          to label %22 unwind label %29

22:                                               ; preds = %20
  invoke void @_ZN3DIS14EntityStatePduC1Ev(ptr noundef nonnull align 8 dereferenceable(296) %21)
          to label %23 unwind label %33

23:                                               ; preds = %22
  store ptr %21, ptr %8, align 8, !tbaa !5
  %24 = load ptr, ptr %8, align 8, !tbaa !5
  %25 = load ptr, ptr %24, align 8, !tbaa !12
  %26 = getelementptr inbounds ptr, ptr %25, i64 3
  %27 = load ptr, ptr %26, align 8
  invoke void %27(ptr noundef nonnull align 8 dereferenceable(20) %24, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %28 unwind label %29

28:                                               ; preds = %23
  br label %203

29:                                               ; preds = %200, %198, %195, %193, %183, %180, %170, %167, %157, %154, %144, %141, %131, %128, %118, %115, %105, %102, %92, %89, %79, %76, %66, %63, %53, %50, %40, %37, %23, %20
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %9, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %10, align 4
  br label %205

33:                                               ; preds = %22
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %9, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %21, i64 noundef 296) #9
  br label %205

37:                                               ; preds = %2
  %38 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 192) #8
          to label %39 unwind label %29

39:                                               ; preds = %37
  invoke void @_ZN3DIS7FirePduC1Ev(ptr noundef nonnull align 8 dereferenceable(188) %38)
          to label %40 unwind label %46

40:                                               ; preds = %39
  store ptr %38, ptr %8, align 8, !tbaa !5
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = load ptr, ptr %41, align 8, !tbaa !12
  %43 = getelementptr inbounds ptr, ptr %42, i64 3
  %44 = load ptr, ptr %43, align 8
  invoke void %44(ptr noundef nonnull align 8 dereferenceable(20) %41, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %45 unwind label %29

45:                                               ; preds = %40
  br label %203

46:                                               ; preds = %39
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %9, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %38, i64 noundef 192) #9
  br label %205

50:                                               ; preds = %2
  %51 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 232) #8
          to label %52 unwind label %29

52:                                               ; preds = %50
  invoke void @_ZN3DIS13DetonationPduC1Ev(ptr noundef nonnull align 8 dereferenceable(232) %51)
          to label %53 unwind label %59

53:                                               ; preds = %52
  store ptr %51, ptr %8, align 8, !tbaa !5
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = load ptr, ptr %54, align 8, !tbaa !12
  %56 = getelementptr inbounds ptr, ptr %55, i64 3
  %57 = load ptr, ptr %56, align 8
  invoke void %57(ptr noundef nonnull align 8 dereferenceable(20) %54, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %58 unwind label %29

58:                                               ; preds = %53
  br label %203

59:                                               ; preds = %52
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %9, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %51, i64 noundef 232) #9
  br label %205

63:                                               ; preds = %2
  %64 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 120) #8
          to label %65 unwind label %29

65:                                               ; preds = %63
  invoke void @_ZN3DIS10SetDataPduC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %64)
          to label %66 unwind label %72

66:                                               ; preds = %65
  store ptr %64, ptr %8, align 8, !tbaa !5
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = load ptr, ptr %67, align 8, !tbaa !12
  %69 = getelementptr inbounds ptr, ptr %68, i64 3
  %70 = load ptr, ptr %69, align 8
  invoke void %70(ptr noundef nonnull align 8 dereferenceable(20) %67, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %71 unwind label %29

71:                                               ; preds = %66
  br label %203

72:                                               ; preds = %65
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %9, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %64, i64 noundef 120) #9
  br label %205

76:                                               ; preds = %2
  %77 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #8
          to label %78 unwind label %29

78:                                               ; preds = %76
  invoke void @_ZN3DIS15CreateEntityPduC1Ev(ptr noundef nonnull align 8 dereferenceable(60) %77)
          to label %79 unwind label %85

79:                                               ; preds = %78
  store ptr %77, ptr %8, align 8, !tbaa !5
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  %81 = load ptr, ptr %80, align 8, !tbaa !12
  %82 = getelementptr inbounds ptr, ptr %81, i64 3
  %83 = load ptr, ptr %82, align 8
  invoke void %83(ptr noundef nonnull align 8 dereferenceable(20) %80, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %84 unwind label %29

84:                                               ; preds = %79
  br label %203

85:                                               ; preds = %78
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %9, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %77, i64 noundef 64) #9
  br label %205

89:                                               ; preds = %2
  %90 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 64) #8
          to label %91 unwind label %29

91:                                               ; preds = %89
  invoke void @_ZN3DIS15RemoveEntityPduC1Ev(ptr noundef nonnull align 8 dereferenceable(60) %90)
          to label %92 unwind label %98

92:                                               ; preds = %91
  store ptr %90, ptr %8, align 8, !tbaa !5
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = load ptr, ptr %93, align 8, !tbaa !12
  %95 = getelementptr inbounds ptr, ptr %94, i64 3
  %96 = load ptr, ptr %95, align 8
  invoke void %96(ptr noundef nonnull align 8 dereferenceable(20) %93, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %97 unwind label %29

97:                                               ; preds = %92
  br label %203

98:                                               ; preds = %91
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %9, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %90, i64 noundef 64) #9
  br label %205

102:                                              ; preds = %2
  %103 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 96) #8
          to label %104 unwind label %29

104:                                              ; preds = %102
  invoke void @_ZN3DIS14StartResumePduC1Ev(ptr noundef nonnull align 8 dereferenceable(92) %103)
          to label %105 unwind label %111

105:                                              ; preds = %104
  store ptr %103, ptr %8, align 8, !tbaa !5
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = load ptr, ptr %106, align 8, !tbaa !12
  %108 = getelementptr inbounds ptr, ptr %107, i64 3
  %109 = load ptr, ptr %108, align 8
  invoke void %109(ptr noundef nonnull align 8 dereferenceable(20) %106, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %110 unwind label %29

110:                                              ; preds = %105
  br label %203

111:                                              ; preds = %104
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %9, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %103, i64 noundef 96) #9
  br label %205

115:                                              ; preds = %2
  %116 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #8
          to label %117 unwind label %29

117:                                              ; preds = %115
  invoke void @_ZN3DIS13StopFreezePduC1Ev(ptr noundef nonnull align 8 dereferenceable(80) %116)
          to label %118 unwind label %124

118:                                              ; preds = %117
  store ptr %116, ptr %8, align 8, !tbaa !5
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = load ptr, ptr %119, align 8, !tbaa !12
  %121 = getelementptr inbounds ptr, ptr %120, i64 3
  %122 = load ptr, ptr %121, align 8
  invoke void %122(ptr noundef nonnull align 8 dereferenceable(20) %119, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %123 unwind label %29

123:                                              ; preds = %118
  br label %203

124:                                              ; preds = %117
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %9, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %116, i64 noundef 80) #9
  br label %205

128:                                              ; preds = %2
  %129 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 88) #8
          to label %130 unwind label %29

130:                                              ; preds = %128
  invoke void @_ZN3DIS27ElectromagneticEmissionsPduC1Ev(ptr noundef nonnull align 8 dereferenceable(88) %129)
          to label %131 unwind label %137

131:                                              ; preds = %130
  store ptr %129, ptr %8, align 8, !tbaa !5
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = load ptr, ptr %132, align 8, !tbaa !12
  %134 = getelementptr inbounds ptr, ptr %133, i64 3
  %135 = load ptr, ptr %134, align 8
  invoke void %135(ptr noundef nonnull align 8 dereferenceable(20) %132, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %136 unwind label %29

136:                                              ; preds = %131
  br label %203

137:                                              ; preds = %130
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %9, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %129, i64 noundef 88) #9
  br label %205

141:                                              ; preds = %2
  %142 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 232) #8
          to label %143 unwind label %29

143:                                              ; preds = %141
  invoke void @_ZN3DIS14TransmitterPduC1Ev(ptr noundef nonnull align 8 dereferenceable(232) %142)
          to label %144 unwind label %150

144:                                              ; preds = %143
  store ptr %142, ptr %8, align 8, !tbaa !5
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = load ptr, ptr %145, align 8, !tbaa !12
  %147 = getelementptr inbounds ptr, ptr %146, i64 3
  %148 = load ptr, ptr %147, align 8
  invoke void %148(ptr noundef nonnull align 8 dereferenceable(20) %145, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %149 unwind label %29

149:                                              ; preds = %144
  br label %203

150:                                              ; preds = %143
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %9, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %142, i64 noundef 232) #9
  br label %205

154:                                              ; preds = %2
  %155 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #8
          to label %156 unwind label %29

156:                                              ; preds = %154
  invoke void @_ZN3DIS9SignalPduC1Ev(ptr noundef nonnull align 8 dereferenceable(80) %155)
          to label %157 unwind label %163

157:                                              ; preds = %156
  store ptr %155, ptr %8, align 8, !tbaa !5
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  %159 = load ptr, ptr %158, align 8, !tbaa !12
  %160 = getelementptr inbounds ptr, ptr %159, i64 3
  %161 = load ptr, ptr %160, align 8
  invoke void %161(ptr noundef nonnull align 8 dereferenceable(20) %158, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %162 unwind label %29

162:                                              ; preds = %157
  br label %203

163:                                              ; preds = %156
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %9, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %155, i64 noundef 80) #9
  br label %205

167:                                              ; preds = %2
  %168 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 80) #8
          to label %169 unwind label %29

169:                                              ; preds = %167
  invoke void @_ZN3DIS11ReceiverPduC1Ev(ptr noundef nonnull align 8 dereferenceable(74) %168)
          to label %170 unwind label %176

170:                                              ; preds = %169
  store ptr %168, ptr %8, align 8, !tbaa !5
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = load ptr, ptr %171, align 8, !tbaa !12
  %173 = getelementptr inbounds ptr, ptr %172, i64 3
  %174 = load ptr, ptr %173, align 8
  invoke void %174(ptr noundef nonnull align 8 dereferenceable(20) %171, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %175 unwind label %29

175:                                              ; preds = %170
  br label %203

176:                                              ; preds = %169
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %9, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %168, i64 noundef 80) #9
  br label %205

180:                                              ; preds = %2
  %181 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 112) #8
          to label %182 unwind label %29

182:                                              ; preds = %180
  invoke void @_ZN3DIS25TransferControlRequestPduC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %181)
          to label %183 unwind label %189

183:                                              ; preds = %182
  store ptr %181, ptr %8, align 8, !tbaa !5
  %184 = load ptr, ptr %8, align 8, !tbaa !5
  %185 = load ptr, ptr %184, align 8, !tbaa !12
  %186 = getelementptr inbounds ptr, ptr %185, i64 3
  %187 = load ptr, ptr %186, align 8
  invoke void %187(ptr noundef nonnull align 8 dereferenceable(20) %184, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %188 unwind label %29

188:                                              ; preds = %183
  br label %203

189:                                              ; preds = %182
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %9, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %10, align 4
  call void @_ZdlPvm(ptr noundef %181, i64 noundef 112) #9
  br label %205

193:                                              ; preds = %2
  %194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %195 unwind label %29

195:                                              ; preds = %193
  %196 = load i32, ptr %6, align 4, !tbaa !9
  %197 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %194, i32 noundef %196)
          to label %198 unwind label %29

198:                                              ; preds = %195
  %199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %197, ptr noundef @.str.1)
          to label %200 unwind label %29

200:                                              ; preds = %198
  %201 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %199, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %202 unwind label %29

202:                                              ; preds = %200
  br label %203

203:                                              ; preds = %202, %188, %175, %162, %149, %136, %123, %110, %97, %84, %71, %58, %45, %28
  %204 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @_ZN3DIS10DataStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret ptr %204

205:                                              ; preds = %189, %176, %163, %150, %137, %124, %111, %98, %85, %72, %59, %46, %33, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @_ZN3DIS10DataStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %206

206:                                              ; preds = %205
  %207 = load ptr, ptr %9, align 8
  %208 = load i32, ptr %10, align 4
  %209 = insertvalue { ptr, i32 } poison, ptr %207, 0
  %210 = insertvalue { ptr, i32 } %209, i32 %208, 1
  resume { ptr, i32 } %210
}

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

declare void @_ZN3DIS10DataStreamC1EPKcmNS_6EndianE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i64 noundef, i32 noundef) unnamed_addr #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

declare i32 @__gxx_personality_v0(...)

declare void @_ZN3DIS14EntityStatePduC1Ev(ptr noundef nonnull align 8 dereferenceable(296)) unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #4

declare void @_ZN3DIS7FirePduC1Ev(ptr noundef nonnull align 8 dereferenceable(188)) unnamed_addr #2

declare void @_ZN3DIS13DetonationPduC1Ev(ptr noundef nonnull align 8 dereferenceable(232)) unnamed_addr #2

declare void @_ZN3DIS10SetDataPduC1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #2

declare void @_ZN3DIS15CreateEntityPduC1Ev(ptr noundef nonnull align 8 dereferenceable(60)) unnamed_addr #2

declare void @_ZN3DIS15RemoveEntityPduC1Ev(ptr noundef nonnull align 8 dereferenceable(60)) unnamed_addr #2

declare void @_ZN3DIS14StartResumePduC1Ev(ptr noundef nonnull align 8 dereferenceable(92)) unnamed_addr #2

declare void @_ZN3DIS13StopFreezePduC1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #2

declare void @_ZN3DIS27ElectromagneticEmissionsPduC1Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #2

declare void @_ZN3DIS14TransmitterPduC1Ev(ptr noundef nonnull align 8 dereferenceable(232)) unnamed_addr #2

declare void @_ZN3DIS9SignalPduC1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #2

declare void @_ZN3DIS11ReceiverPduC1Ev(ptr noundef nonnull align 8 dereferenceable(74)) unnamed_addr #2

declare void @_ZN3DIS25TransferControlRequestPduC1Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

; Function Attrs: nounwind
declare void @_ZN3DIS10DataStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6

attributes #0 = { mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nobuiltin 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 #4 = { nobuiltin 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 #5 = { inlinehint mustprogress 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"vtable pointer", !8, i64 0}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.DIS::DataStream" = type { %"class.std::vector", i64, i64, i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN3DIS10PduFactory9createPduEPKc(ptr nocapture noundef nonnull readnone align 1 dereferenceable(1) %0, ptr noundef %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.DIS::DataStream", align 8
  %4 = getelementptr inbounds i8, ptr %1, i64 2
  %5 = load i8, ptr %4, align 1, !tbaa !5
  %6 = sext i8 %5 to i32
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %3) #7
  call void @_ZN3DIS10DataStreamC1EPKcmNS_6EndianE(ptr noundef nonnull align 8 dereferenceable(48) %3, ptr noundef %1, i64 noundef 1500, i32 noundef 0)
  switch i8 %5, label %126 [
    i8 1, label %7
    i8 2, label %18
    i8 3, label %27
    i8 19, label %36
    i8 11, label %45
    i8 12, label %54
    i8 13, label %63
    i8 14, label %72
    i8 23, label %81
    i8 25, label %90
    i8 26, label %99
    i8 27, label %108
    i8 35, label %117
  ]

7:                                                ; preds = %2
  %8 = invoke noalias noundef nonnull dereferenceable(296) ptr @_Znwm(i64 noundef 296) #8
          to label %9 unwind label %14

9:                                                ; preds = %7
  invoke void @_ZN3DIS14EntityStatePduC1Ev(ptr noundef nonnull align 8 dereferenceable(296) %8)
          to label %10 unwind label %16

10:                                               ; preds = %9
  %11 = load ptr, ptr %8, align 8, !tbaa !8
  %12 = getelementptr inbounds i8, ptr %11, i64 24
  %13 = load ptr, ptr %12, align 8
  invoke void %13(ptr noundef nonnull align 8 dereferenceable(20) %8, ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %134 unwind label %14

14:                                               ; preds = %132, %130, %128, %126, %120, %117, %111, %108, %102, %99, %93, %90, %84, %81, %75, %72, %66, %63, %57, %54, %48, %45, %39, %36, %30, %27, %21, %18, %10, %7
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %135

16:                                               ; preds = %9
  %17 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %8, i64 noundef 296) #9
  br label %135

18:                                               ; preds = %2
  %19 = invoke noalias noundef nonnull dereferenceable(192) ptr @_Znwm(i64 noundef 192) #8
          to label %20 unwind label %14

20:                                               ; preds = %18
  invoke void @_ZN3DIS7FirePduC1Ev(ptr noundef nonnull align 8 dereferenceable(188) %19)
          to label %21 unwind label %25

21:                                               ; preds = %20
  %22 = load ptr, ptr %19, align 8, !tbaa !8
  %23 = getelementptr inbounds i8, ptr %22, i64 24
  %24 = load ptr, ptr %23, align 8
  invoke void %24(ptr noundef nonnull align 8 dereferenceable(20) %19, ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %134 unwind label %14

25:                                               ; preds = %20
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %19, i64 noundef 192) #9
  br label %135

27:                                               ; preds = %2
  %28 = invoke noalias noundef nonnull dereferenceable(232) ptr @_Znwm(i64 noundef 232) #8
          to label %29 unwind label %14

29:                                               ; preds = %27
  invoke void @_ZN3DIS13DetonationPduC1Ev(ptr noundef nonnull align 8 dereferenceable(232) %28)
          to label %30 unwind label %34

30:                                               ; preds = %29
  %31 = load ptr, ptr %28, align 8, !tbaa !8
  %32 = getelementptr inbounds i8, ptr %31, i64 24
  %33 = load ptr, ptr %32, align 8
  invoke void %33(ptr noundef nonnull align 8 dereferenceable(20) %28, ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %134 unwind label %14

34:                                               ; preds = %29
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %28, i64 noundef 232) #9
  br label %135

36:                                               ; preds = %2
  %37 = invoke noalias noundef nonnull dereferenceable(120) ptr @_Znwm(i64 noundef 120) #8
          to label %38 unwind label %14

38:                                               ; preds = %36
  invoke void @_ZN3DIS10SetDataPduC1Ev(ptr noundef nonnull align 8 dereferenceable(120) %37)
          to label %39 unwind label %43

39:                                               ; preds = %38
  %40 = load ptr, ptr %37, align 8, !tbaa !8
  %41 = getelementptr inbounds i8, ptr %40, i64 24
  %42 = load ptr, ptr %41, align 8
  invoke void %42(ptr noundef nonnull align 8 dereferenceable(20) %37, ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %134 unwind label %14

43:                                               ; preds = %38
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %37, i64 noundef 120) #9
  br label %135

45:                                               ; preds = %2
  %46 = invoke noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #8
          to label %47 unwind label %14

47:                                               ; preds = %45
  invoke void @_ZN3DIS15CreateEntityPduC1Ev(ptr noundef nonnull align 8 dereferenceable(60) %46)
          to label %48 unwind label %52

48:                                               ; preds = %47
  %49 = load ptr, ptr %46, align 8, !tbaa !8
  %50 = getelementptr inbounds i8, ptr %49, i64 24
  %51 = load ptr, ptr %50, align 8
  invoke void %51(ptr noundef nonnull align 8 dereferenceable(20) %46, ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %134 unwind label %14

52:                                               ; preds = %47
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %46, i64 noundef 64) #9
  br label %135

54:                                               ; preds = %2
  %55 = invoke noalias noundef nonnull dereferenceable(64) ptr @_Znwm(i64 noundef 64) #8
          to label %56 unwind label %14

56:                                               ; preds = %54
  invoke void @_ZN3DIS15RemoveEntityPduC1Ev(ptr noundef nonnull align 8 dereferenceable(60) %55)
          to label %57 unwind label %61

57:                                               ; preds = %56
  %58 = load ptr, ptr %55, align 8, !tbaa !8
  %59 = getelementptr inbounds i8, ptr %58, i64 24
  %60 = load ptr, ptr %59, align 8
  invoke void %60(ptr noundef nonnull align 8 dereferenceable(20) %55, ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %134 unwind label %14

61:                                               ; preds = %56
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %55, i64 noundef 64) #9
  br label %135

63:                                               ; preds = %2
  %64 = invoke noalias noundef nonnull dereferenceable(96) ptr @_Znwm(i64 noundef 96) #8
          to label %65 unwind label %14

65:                                               ; preds = %63
  invoke void @_ZN3DIS14StartResumePduC1Ev(ptr noundef nonnull align 8 dereferenceable(92) %64)
          to label %66 unwind label %70

66:                                               ; preds = %65
  %67 = load ptr, ptr %64, align 8, !tbaa !8
  %68 = getelementptr inbounds i8, ptr %67, i64 24
  %69 = load ptr, ptr %68, align 8
  invoke void %69(ptr noundef nonnull align 8 dereferenceable(20) %64, ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %134 unwind label %14

70:                                               ; preds = %65
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %64, i64 noundef 96) #9
  br label %135

72:                                               ; preds = %2
  %73 = invoke noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #8
          to label %74 unwind label %14

74:                                               ; preds = %72
  invoke void @_ZN3DIS13StopFreezePduC1Ev(ptr noundef nonnull align 8 dereferenceable(80) %73)
          to label %75 unwind label %79

75:                                               ; preds = %74
  %76 = load ptr, ptr %73, align 8, !tbaa !8
  %77 = getelementptr inbounds i8, ptr %76, i64 24
  %78 = load ptr, ptr %77, align 8
  invoke void %78(ptr noundef nonnull align 8 dereferenceable(20) %73, ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %134 unwind label %14

79:                                               ; preds = %74
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %73, i64 noundef 80) #9
  br label %135

81:                                               ; preds = %2
  %82 = invoke noalias noundef nonnull dereferenceable(88) ptr @_Znwm(i64 noundef 88) #8
          to label %83 unwind label %14

83:                                               ; preds = %81
  invoke void @_ZN3DIS27ElectromagneticEmissionsPduC1Ev(ptr noundef nonnull align 8 dereferenceable(88) %82)
          to label %84 unwind label %88

84:                                               ; preds = %83
  %85 = load ptr, ptr %82, align 8, !tbaa !8
  %86 = getelementptr inbounds i8, ptr %85, i64 24
  %87 = load ptr, ptr %86, align 8
  invoke void %87(ptr noundef nonnull align 8 dereferenceable(20) %82, ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %134 unwind label %14

88:                                               ; preds = %83
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %82, i64 noundef 88) #9
  br label %135

90:                                               ; preds = %2
  %91 = invoke noalias noundef nonnull dereferenceable(232) ptr @_Znwm(i64 noundef 232) #8
          to label %92 unwind label %14

92:                                               ; preds = %90
  invoke void @_ZN3DIS14TransmitterPduC1Ev(ptr noundef nonnull align 8 dereferenceable(232) %91)
          to label %93 unwind label %97

93:                                               ; preds = %92
  %94 = load ptr, ptr %91, align 8, !tbaa !8
  %95 = getelementptr inbounds i8, ptr %94, i64 24
  %96 = load ptr, ptr %95, align 8
  invoke void %96(ptr noundef nonnull align 8 dereferenceable(20) %91, ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %134 unwind label %14

97:                                               ; preds = %92
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %91, i64 noundef 232) #9
  br label %135

99:                                               ; preds = %2
  %100 = invoke noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #8
          to label %101 unwind label %14

101:                                              ; preds = %99
  invoke void @_ZN3DIS9SignalPduC1Ev(ptr noundef nonnull align 8 dereferenceable(80) %100)
          to label %102 unwind label %106

102:                                              ; preds = %101
  %103 = load ptr, ptr %100, align 8, !tbaa !8
  %104 = getelementptr inbounds i8, ptr %103, i64 24
  %105 = load ptr, ptr %104, align 8
  invoke void %105(ptr noundef nonnull align 8 dereferenceable(20) %100, ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %134 unwind label %14

106:                                              ; preds = %101
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %100, i64 noundef 80) #9
  br label %135

108:                                              ; preds = %2
  %109 = invoke noalias noundef nonnull dereferenceable(80) ptr @_Znwm(i64 noundef 80) #8
          to label %110 unwind label %14

110:                                              ; preds = %108
  invoke void @_ZN3DIS11ReceiverPduC1Ev(ptr noundef nonnull align 8 dereferenceable(74) %109)
          to label %111 unwind label %115

111:                                              ; preds = %110
  %112 = load ptr, ptr %109, align 8, !tbaa !8
  %113 = getelementptr inbounds i8, ptr %112, i64 24
  %114 = load ptr, ptr %113, align 8
  invoke void %114(ptr noundef nonnull align 8 dereferenceable(20) %109, ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %134 unwind label %14

115:                                              ; preds = %110
  %116 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %109, i64 noundef 80) #9
  br label %135

117:                                              ; preds = %2
  %118 = invoke noalias noundef nonnull dereferenceable(112) ptr @_Znwm(i64 noundef 112) #8
          to label %119 unwind label %14

119:                                              ; preds = %117
  invoke void @_ZN3DIS25TransferControlRequestPduC1Ev(ptr noundef nonnull align 8 dereferenceable(112) %118)
          to label %120 unwind label %124

120:                                              ; preds = %119
  %121 = load ptr, ptr %118, align 8, !tbaa !8
  %122 = getelementptr inbounds i8, ptr %121, i64 24
  %123 = load ptr, ptr %122, align 8
  invoke void %123(ptr noundef nonnull align 8 dereferenceable(20) %118, ptr noundef nonnull align 8 dereferenceable(48) %3)
          to label %134 unwind label %14

124:                                              ; preds = %119
  %125 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %118, i64 noundef 112) #9
  br label %135

126:                                              ; preds = %2
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %128 unwind label %14

128:                                              ; preds = %126
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %127, i32 noundef %6)
          to label %130 unwind label %14

130:                                              ; preds = %128
  %131 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef nonnull @.str.1)
          to label %132 unwind label %14

132:                                              ; preds = %130
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %131, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %134 unwind label %14

134:                                              ; preds = %132, %120, %111, %102, %93, %84, %75, %66, %57, %48, %39, %30, %21, %10
  %.022 = phi ptr [ null, %132 ], [ %118, %120 ], [ %109, %111 ], [ %100, %102 ], [ %91, %93 ], [ %82, %84 ], [ %73, %75 ], [ %64, %66 ], [ %55, %57 ], [ %46, %48 ], [ %37, %39 ], [ %28, %30 ], [ %19, %21 ], [ %8, %10 ]
  call void @_ZN3DIS10DataStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #7
  ret ptr %.022

135:                                              ; preds = %124, %115, %106, %97, %88, %79, %70, %61, %52, %43, %34, %25, %16, %14
  %.pn = phi { ptr, i32 } [ %15, %14 ], [ %125, %124 ], [ %116, %115 ], [ %107, %106 ], [ %98, %97 ], [ %89, %88 ], [ %80, %79 ], [ %71, %70 ], [ %62, %61 ], [ %53, %52 ], [ %44, %43 ], [ %35, %34 ], [ %26, %25 ], [ %17, %16 ]
  call void @_ZN3DIS10DataStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(48) %3) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn
}

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

declare void @_ZN3DIS10DataStreamC1EPKcmNS_6EndianE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef, i64 noundef, i32 noundef) unnamed_addr #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

declare void @_ZN3DIS14EntityStatePduC1Ev(ptr noundef nonnull align 8 dereferenceable(296)) unnamed_addr #2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

declare void @_ZN3DIS7FirePduC1Ev(ptr noundef nonnull align 8 dereferenceable(188)) unnamed_addr #2

declare void @_ZN3DIS13DetonationPduC1Ev(ptr noundef nonnull align 8 dereferenceable(232)) unnamed_addr #2

declare void @_ZN3DIS10SetDataPduC1Ev(ptr noundef nonnull align 8 dereferenceable(120)) unnamed_addr #2

declare void @_ZN3DIS15CreateEntityPduC1Ev(ptr noundef nonnull align 8 dereferenceable(60)) unnamed_addr #2

declare void @_ZN3DIS15RemoveEntityPduC1Ev(ptr noundef nonnull align 8 dereferenceable(60)) unnamed_addr #2

declare void @_ZN3DIS14StartResumePduC1Ev(ptr noundef nonnull align 8 dereferenceable(92)) unnamed_addr #2

declare void @_ZN3DIS13StopFreezePduC1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #2

declare void @_ZN3DIS27ElectromagneticEmissionsPduC1Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #2

declare void @_ZN3DIS14TransmitterPduC1Ev(ptr noundef nonnull align 8 dereferenceable(232)) unnamed_addr #2

declare void @_ZN3DIS9SignalPduC1Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #2

declare void @_ZN3DIS11ReceiverPduC1Ev(ptr noundef nonnull align 8 dereferenceable(74)) unnamed_addr #2

declare void @_ZN3DIS25TransferControlRequestPduC1Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

; Function Attrs: nounwind
declare void @_ZN3DIS10DataStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6

attributes #0 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nobuiltin 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 #4 = { nobuiltin 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 #5 = { inlinehint mustprogress 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"vtable pointer", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass