; LLVM IR from Try/Tempest :: Engine/thirdparty/openal-soft/al/eax/call.ll (ZN7EaxCallC2E11EaxCallTypeRK5_GUIDjjPvj)

; 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._GUID = type { i32, i16, i16, %"struct.std::array" }
%"struct.std::array" = type { [8 x i8] }
%class.EaxCall = type <{ i32, i32, %class.EaxFxSlotIndex, i32, i8, [3 x i8], i32, i32, ptr, i32, [4 x i8] }>
%class.EaxFxSlotIndex = type { %"class.std::optional" }
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload_base.base", [7 x i8] }
%"struct.std::_Optional_payload_base.base" = type <{ %"union.std::_Optional_payload_base<unsigned long>::_Storage", i8 }>
%"union.std::_Optional_payload_base<unsigned long>::_Storage" = type { i64 }

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@EAXPROPERTYID_EAX40_Context = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX50_Context = external global %struct._GUID, align 4
@DSPROPSETID_EAX20_ListenerProperties = external global %struct._GUID, align 4
@DSPROPSETID_EAX30_ListenerProperties = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX40_FXSlot0 = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX50_FXSlot0 = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX40_FXSlot1 = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX50_FXSlot1 = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX40_FXSlot2 = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX50_FXSlot2 = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX40_FXSlot3 = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX50_FXSlot3 = external global %struct._GUID, align 4
@DSPROPSETID_EAX20_BufferProperties = external global %struct._GUID, align 4
@DSPROPSETID_EAX30_BufferProperties = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX40_Source = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX50_Source = external global %struct._GUID, align 4
@DSPROPSETID_EAX_ReverbProperties = external global %struct._GUID, align 4
@DSPROPSETID_EAXBUFFER_ReverbProperties = external global %struct._GUID, align 4
@.str.1 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7EaxCallC2E11EaxCallTypeRK5_GUIDjjPvj(ptr noundef nonnull align 8 dereferenceable(52) %0, i32 noundef %1, ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) unnamed_addr #0 align 2 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !11
  store i32 %4, ptr %12, align 4, !tbaa !11
  store ptr %5, ptr %13, align 8, !tbaa !5
  store i32 %6, ptr %14, align 4, !tbaa !11
  %26 = load ptr, ptr %8, align 8
  %27 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %28, ptr %27, align 8, !tbaa !13
  %29 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 0, ptr %29, align 4, !tbaa !22
  %30 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 2
  call void @llvm.memset.p0.i64(ptr align 8 %30, i8 0, i64 16, i1 false)
  call void @_ZN14EaxFxSlotIndexC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %30) #5
  %31 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 0, ptr %31, align 8, !tbaa !23
  %32 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 4
  %33 = load i32, ptr %11, align 4, !tbaa !11
  %34 = and i32 %33, -2147483648
  %35 = icmp ne i32 %34, 0
  %36 = zext i1 %35 to i8
  store i8 %36, ptr %32, align 4, !tbaa !24
  %37 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 6
  %38 = load i32, ptr %11, align 4, !tbaa !11
  %39 = and i32 %38, 2147483647
  store i32 %39, ptr %37, align 8, !tbaa !25
  %40 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 7
  %41 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %41, ptr %40, align 4, !tbaa !26
  %42 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 8
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %43, ptr %42, align 8, !tbaa !27
  %44 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 9
  %45 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %45, ptr %44, align 8, !tbaa !28
  %46 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 0
  %47 = load i32, ptr %46, align 8, !tbaa !13
  switch i32 %47, label %49 [
    i32 1, label %48
    i32 2, label %48
  ]

48:                                               ; preds = %7, %7
  br label %50

49:                                               ; preds = %7
  call void @_ZN7EaxCall4failEPKc(ptr noundef @.str) #6
  unreachable

50:                                               ; preds = %48
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %51, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX40_Context) #5
  br i1 %52, label %53, label %56

53:                                               ; preds = %50
  %54 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 4, ptr %54, align 4, !tbaa !22
  %55 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 1, ptr %55, align 8, !tbaa !23
  br label %198

56:                                               ; preds = %50
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %57, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX50_Context) #5
  br i1 %58, label %59, label %62

59:                                               ; preds = %56
  %60 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 5, ptr %60, align 4, !tbaa !22
  %61 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 1, ptr %61, align 8, !tbaa !23
  br label %197

62:                                               ; preds = %56
  %63 = load ptr, ptr %10, align 8, !tbaa !5
  %64 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %63, ptr noundef nonnull align 4 dereferenceable(16) @DSPROPSETID_EAX20_ListenerProperties) #5
  br i1 %64, label %65, label %70

65:                                               ; preds = %62
  %66 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 2, ptr %66, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 0, ptr %15, align 8, !tbaa !29
  %67 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 2
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %67, ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  %69 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 4, ptr %69, align 8, !tbaa !23
  br label %196

70:                                               ; preds = %62
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %71, ptr noundef nonnull align 4 dereferenceable(16) @DSPROPSETID_EAX30_ListenerProperties) #5
  br i1 %72, label %73, label %78

73:                                               ; preds = %70
  %74 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 3, ptr %74, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store i64 0, ptr %16, align 8, !tbaa !29
  %75 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 2
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef nonnull align 8 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  %77 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 4, ptr %77, align 8, !tbaa !23
  br label %195

78:                                               ; preds = %70
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %79, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX40_FXSlot0) #5
  br i1 %80, label %81, label %86

81:                                               ; preds = %78
  %82 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 4, ptr %82, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store i64 0, ptr %17, align 8, !tbaa !29
  %83 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 2
  %84 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %83, ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  %85 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 2, ptr %85, align 8, !tbaa !23
  br label %194

86:                                               ; preds = %78
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %87, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX50_FXSlot0) #5
  br i1 %88, label %89, label %94

89:                                               ; preds = %86
  %90 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 5, ptr %90, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store i64 0, ptr %18, align 8, !tbaa !29
  %91 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 2
  %92 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %91, ptr noundef nonnull align 8 dereferenceable(8) %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  %93 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 2, ptr %93, align 8, !tbaa !23
  br label %193

94:                                               ; preds = %86
  %95 = load ptr, ptr %10, align 8, !tbaa !5
  %96 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %95, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX40_FXSlot1) #5
  br i1 %96, label %97, label %102

97:                                               ; preds = %94
  %98 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 4, ptr %98, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store i64 1, ptr %19, align 8, !tbaa !29
  %99 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 2
  %100 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %99, ptr noundef nonnull align 8 dereferenceable(8) %19)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %101 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 2, ptr %101, align 8, !tbaa !23
  br label %192

102:                                              ; preds = %94
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %103, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX50_FXSlot1) #5
  br i1 %104, label %105, label %110

105:                                              ; preds = %102
  %106 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 5, ptr %106, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store i64 1, ptr %20, align 8, !tbaa !29
  %107 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 2
  %108 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %107, ptr noundef nonnull align 8 dereferenceable(8) %20)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  %109 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 2, ptr %109, align 8, !tbaa !23
  br label %191

110:                                              ; preds = %102
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %111, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX40_FXSlot2) #5
  br i1 %112, label %113, label %118

113:                                              ; preds = %110
  %114 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 4, ptr %114, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  store i64 2, ptr %21, align 8, !tbaa !29
  %115 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 2
  %116 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %115, ptr noundef nonnull align 8 dereferenceable(8) %21)
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  %117 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 2, ptr %117, align 8, !tbaa !23
  br label %190

118:                                              ; preds = %110
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %119, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX50_FXSlot2) #5
  br i1 %120, label %121, label %126

121:                                              ; preds = %118
  %122 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 5, ptr %122, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  store i64 2, ptr %22, align 8, !tbaa !29
  %123 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 2
  %124 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %123, ptr noundef nonnull align 8 dereferenceable(8) %22)
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  %125 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 2, ptr %125, align 8, !tbaa !23
  br label %189

126:                                              ; preds = %118
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %127, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX40_FXSlot3) #5
  br i1 %128, label %129, label %134

129:                                              ; preds = %126
  %130 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 4, ptr %130, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  store i64 3, ptr %23, align 8, !tbaa !29
  %131 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 2
  %132 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %131, ptr noundef nonnull align 8 dereferenceable(8) %23)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  %133 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 2, ptr %133, align 8, !tbaa !23
  br label %188

134:                                              ; preds = %126
  %135 = load ptr, ptr %10, align 8, !tbaa !5
  %136 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %135, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX50_FXSlot3) #5
  br i1 %136, label %137, label %142

137:                                              ; preds = %134
  %138 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 5, ptr %138, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  store i64 3, ptr %24, align 8, !tbaa !29
  %139 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 2
  %140 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %139, ptr noundef nonnull align 8 dereferenceable(8) %24)
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  %141 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 2, ptr %141, align 8, !tbaa !23
  br label %187

142:                                              ; preds = %134
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  %144 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %143, ptr noundef nonnull align 4 dereferenceable(16) @DSPROPSETID_EAX20_BufferProperties) #5
  br i1 %144, label %145, label %148

145:                                              ; preds = %142
  %146 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 2, ptr %146, align 4, !tbaa !22
  %147 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 3, ptr %147, align 8, !tbaa !23
  br label %186

148:                                              ; preds = %142
  %149 = load ptr, ptr %10, align 8, !tbaa !5
  %150 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %149, ptr noundef nonnull align 4 dereferenceable(16) @DSPROPSETID_EAX30_BufferProperties) #5
  br i1 %150, label %151, label %154

151:                                              ; preds = %148
  %152 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 3, ptr %152, align 4, !tbaa !22
  %153 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 3, ptr %153, align 8, !tbaa !23
  br label %185

154:                                              ; preds = %148
  %155 = load ptr, ptr %10, align 8, !tbaa !5
  %156 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %155, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX40_Source) #5
  br i1 %156, label %157, label %160

157:                                              ; preds = %154
  %158 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 4, ptr %158, align 4, !tbaa !22
  %159 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 3, ptr %159, align 8, !tbaa !23
  br label %184

160:                                              ; preds = %154
  %161 = load ptr, ptr %10, align 8, !tbaa !5
  %162 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %161, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX50_Source) #5
  br i1 %162, label %163, label %166

163:                                              ; preds = %160
  %164 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 5, ptr %164, align 4, !tbaa !22
  %165 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 3, ptr %165, align 8, !tbaa !23
  br label %183

166:                                              ; preds = %160
  %167 = load ptr, ptr %10, align 8, !tbaa !5
  %168 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %167, ptr noundef nonnull align 4 dereferenceable(16) @DSPROPSETID_EAX_ReverbProperties) #5
  br i1 %168, label %169, label %174

169:                                              ; preds = %166
  %170 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 1, ptr %170, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  store i64 0, ptr %25, align 8, !tbaa !29
  %171 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 2
  %172 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %171, ptr noundef nonnull align 8 dereferenceable(8) %25)
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  %173 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 4, ptr %173, align 8, !tbaa !23
  br label %182

174:                                              ; preds = %166
  %175 = load ptr, ptr %10, align 8, !tbaa !5
  %176 = call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %175, ptr noundef nonnull align 4 dereferenceable(16) @DSPROPSETID_EAXBUFFER_ReverbProperties) #5
  br i1 %176, label %177, label %180

177:                                              ; preds = %174
  %178 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 1
  store i32 1, ptr %178, align 4, !tbaa !22
  %179 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 3, ptr %179, align 8, !tbaa !23
  br label %181

180:                                              ; preds = %174
  call void @_ZN7EaxCall4failEPKc(ptr noundef @.str.1) #6
  unreachable

181:                                              ; preds = %177
  br label %182

182:                                              ; preds = %181, %169
  br label %183

183:                                              ; preds = %182, %163
  br label %184

184:                                              ; preds = %183, %157
  br label %185

185:                                              ; preds = %184, %151
  br label %186

186:                                              ; preds = %185, %145
  br label %187

187:                                              ; preds = %186, %137
  br label %188

188:                                              ; preds = %187, %129
  br label %189

189:                                              ; preds = %188, %121
  br label %190

190:                                              ; preds = %189, %113
  br label %191

191:                                              ; preds = %190, %105
  br label %192

192:                                              ; preds = %191, %97
  br label %193

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

194:                                              ; preds = %193, %81
  br label %195

195:                                              ; preds = %194, %73
  br label %196

196:                                              ; preds = %195, %65
  br label %197

197:                                              ; preds = %196, %59
  br label %198

198:                                              ; preds = %197, %53
  %199 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 6
  %200 = load i32, ptr %199, align 8, !tbaa !25
  switch i32 %200, label %203 [
    i32 6, label %201
    i32 7, label %201
    i32 8, label %201
    i32 65536, label %201
    i32 65537, label %201
    i32 65538, label %201
    i32 65539, label %201
    i32 65540, label %201
    i32 65541, label %201
    i32 65542, label %201
    i32 65543, label %201
  ]

201:                                              ; preds = %198, %198, %198, %198, %198, %198, %198, %198, %198, %198, %198
  %202 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 4
  store i8 0, ptr %202, align 4, !tbaa !24
  br label %203

203:                                              ; preds = %201, %198
  %204 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 4
  %205 = load i8, ptr %204, align 4, !tbaa !24, !range !31, !noundef !32
  %206 = trunc i8 %205 to i1
  br i1 %206, label %227, label %207

207:                                              ; preds = %203
  %208 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  %209 = load i32, ptr %208, align 8, !tbaa !23
  %210 = icmp ne i32 %209, 2
  br i1 %210, label %211, label %226

211:                                              ; preds = %207
  %212 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 6
  %213 = load i32, ptr %212, align 8, !tbaa !25
  %214 = icmp ne i32 %213, 0
  br i1 %214, label %215, label %226

215:                                              ; preds = %211
  %216 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 8
  %217 = load ptr, ptr %216, align 8, !tbaa !27
  %218 = icmp eq ptr %217, null
  br i1 %218, label %219, label %220

219:                                              ; preds = %215
  call void @_ZN7EaxCall4failEPKc(ptr noundef @.str.2) #6
  unreachable

220:                                              ; preds = %215
  %221 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 9
  %222 = load i32, ptr %221, align 8, !tbaa !28
  %223 = icmp eq i32 %222, 0
  br i1 %223, label %224, label %225

224:                                              ; preds = %220
  call void @_ZN7EaxCall4failEPKc(ptr noundef @.str.3) #6
  unreachable

225:                                              ; preds = %220
  br label %226

226:                                              ; preds = %225, %211, %207
  br label %227

227:                                              ; preds = %226, %203
  %228 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  %229 = load i32, ptr %228, align 8, !tbaa !23
  %230 = icmp eq i32 %229, 3
  br i1 %230, label %231, label %236

231:                                              ; preds = %227
  %232 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 7
  %233 = load i32, ptr %232, align 4, !tbaa !26
  %234 = icmp eq i32 %233, 0
  br i1 %234, label %235, label %236

235:                                              ; preds = %231
  call void @_ZN7EaxCall4failEPKc(ptr noundef @.str.4) #6
  unreachable

236:                                              ; preds = %231, %227
  %237 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  %238 = load i32, ptr %237, align 8, !tbaa !23
  %239 = icmp eq i32 %238, 2
  br i1 %239, label %240, label %247

240:                                              ; preds = %236
  %241 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 6
  %242 = load i32, ptr %241, align 8, !tbaa !25
  %243 = icmp ult i32 %242, 65536
  br i1 %243, label %244, label %246

244:                                              ; preds = %240
  %245 = getelementptr inbounds %class.EaxCall, ptr %26, i32 0, i32 3
  store i32 4, ptr %245, align 8, !tbaa !23
  br label %246

246:                                              ; preds = %244, %240
  br label %247

247:                                              ; preds = %246, %236
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN14EaxFxSlotIndexC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress noreturn uwtable
declare dso_local void @_ZN7EaxCall4failEPKc(ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) #2

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

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

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

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

!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 = !{!"_ZTS11EaxCallType", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTS7EaxCall", !10, i64 0, !12, i64 4, !15, i64 8, !21, i64 24, !20, i64 28, !12, i64 32, !12, i64 36, !6, i64 40, !12, i64 48}
!15 = !{!"_ZTS14EaxFxSlotIndex", !16, i64 0}
!16 = !{!"_ZTSSt8optionalImE", !17, i64 0}
!17 = !{!"_ZTSSt14_Optional_baseImLb1ELb1EE", !18, i64 0}
!18 = !{!"_ZTSSt17_Optional_payloadImLb1ELb1ELb1EE", !19, i64 0}
!19 = !{!"_ZTSSt22_Optional_payload_baseImE", !7, i64 0, !20, i64 8}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTS20EaxCallPropertySetId", !7, i64 0}
!22 = !{!14, !12, i64 4}
!23 = !{!14, !21, i64 24}
!24 = !{!14, !20, i64 28}
!25 = !{!14, !12, i64 32}
!26 = !{!14, !12, i64 36}
!27 = !{!14, !6, i64 40}
!28 = !{!14, !12, i64 48}
!29 = !{!30, !30, i64 0}
!30 = !{!"long", !7, i64 0}
!31 = !{i8 0, i8 2}
!32 = !{}


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

%struct._GUID = type { i32, i16, i16, %"struct.std::array" }
%"struct.std::array" = type { [8 x i8] }

@.str = external hidden unnamed_addr constant [14 x i8], align 1
@EAXPROPERTYID_EAX40_Context = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX50_Context = external global %struct._GUID, align 4
@DSPROPSETID_EAX20_ListenerProperties = external global %struct._GUID, align 4
@DSPROPSETID_EAX30_ListenerProperties = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX40_FXSlot0 = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX50_FXSlot0 = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX40_FXSlot1 = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX50_FXSlot1 = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX40_FXSlot2 = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX50_FXSlot2 = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX40_FXSlot3 = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX50_FXSlot3 = external global %struct._GUID, align 4
@DSPROPSETID_EAX20_BufferProperties = external global %struct._GUID, align 4
@DSPROPSETID_EAX30_BufferProperties = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX40_Source = external global %struct._GUID, align 4
@EAXPROPERTYID_EAX50_Source = external global %struct._GUID, align 4
@DSPROPSETID_EAX_ReverbProperties = external global %struct._GUID, align 4
@DSPROPSETID_EAXBUFFER_ReverbProperties = external global %struct._GUID, align 4
@.str.1 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7EaxCallC2E11EaxCallTypeRK5_GUIDjjPvj(ptr noundef nonnull align 8 dereferenceable(52) %0, i32 noundef %1, ptr noundef nonnull align 4 dereferenceable(16) %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, i32 noundef %6) unnamed_addr #0 align 2 {
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  store i32 %1, ptr %0, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %0, i64 4
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(20) %19, i8 0, i64 20, i1 false)
  tail call void @_ZN14EaxFxSlotIndexC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #5
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  store i32 0, ptr %21, align 8, !tbaa !19
  %22 = getelementptr inbounds i8, ptr %0, i64 28
  %.lobit = lshr i32 %3, 31
  %23 = trunc nuw nsw i32 %.lobit to i8
  store i8 %23, ptr %22, align 4, !tbaa !20
  %24 = getelementptr inbounds i8, ptr %0, i64 32
  %25 = and i32 %3, 2147483647
  store i32 %25, ptr %24, align 8, !tbaa !21
  %26 = getelementptr inbounds i8, ptr %0, i64 36
  store i32 %4, ptr %26, align 4, !tbaa !22
  %27 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %5, ptr %27, align 8, !tbaa !23
  %28 = getelementptr inbounds i8, ptr %0, i64 48
  store i32 %6, ptr %28, align 8, !tbaa !24
  %29 = load i32, ptr %0, align 8, !tbaa !5
  %.off = add i32 %29, -1
  %switch = icmp ult i32 %.off, 2
  br i1 %switch, label %31, label %30

30:                                               ; preds = %7
  tail call void @_ZN7EaxCall4failEPKc(ptr noundef nonnull @.str) #6
  unreachable

31:                                               ; preds = %7
  %32 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX40_Context) #5
  br i1 %32, label %33, label %34

33:                                               ; preds = %31
  store i32 4, ptr %19, align 4, !tbaa !25
  br label %97

34:                                               ; preds = %31
  %35 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX50_Context) #5
  br i1 %35, label %36, label %37

36:                                               ; preds = %34
  store i32 5, ptr %19, align 4, !tbaa !25
  br label %97

37:                                               ; preds = %34
  %38 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @DSPROPSETID_EAX20_ListenerProperties) #5
  br i1 %38, label %39, label %41

39:                                               ; preds = %37
  store i32 2, ptr %19, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  store i64 0, ptr %8, align 8, !tbaa !26
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %97

41:                                               ; preds = %37
  %42 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @DSPROPSETID_EAX30_ListenerProperties) #5
  br i1 %42, label %43, label %45

43:                                               ; preds = %41
  store i32 3, ptr %19, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  store i64 0, ptr %9, align 8, !tbaa !26
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %9)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %97

45:                                               ; preds = %41
  %46 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX40_FXSlot0) #5
  br i1 %46, label %47, label %49

47:                                               ; preds = %45
  store i32 4, ptr %19, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  store i64 0, ptr %10, align 8, !tbaa !26
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br label %97

49:                                               ; preds = %45
  %50 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX50_FXSlot0) #5
  br i1 %50, label %51, label %53

51:                                               ; preds = %49
  store i32 5, ptr %19, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  store i64 0, ptr %11, align 8, !tbaa !26
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %11)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %97

53:                                               ; preds = %49
  %54 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX40_FXSlot1) #5
  br i1 %54, label %55, label %57

55:                                               ; preds = %53
  store i32 4, ptr %19, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  store i64 1, ptr %12, align 8, !tbaa !26
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %97

57:                                               ; preds = %53
  %58 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX50_FXSlot1) #5
  br i1 %58, label %59, label %61

59:                                               ; preds = %57
  store i32 5, ptr %19, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  store i64 1, ptr %13, align 8, !tbaa !26
  %60 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  br label %97

61:                                               ; preds = %57
  %62 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX40_FXSlot2) #5
  br i1 %62, label %63, label %65

63:                                               ; preds = %61
  store i32 4, ptr %19, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  store i64 2, ptr %14, align 8, !tbaa !26
  %64 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  br label %97

65:                                               ; preds = %61
  %66 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX50_FXSlot2) #5
  br i1 %66, label %67, label %69

67:                                               ; preds = %65
  store i32 5, ptr %19, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  store i64 2, ptr %15, align 8, !tbaa !26
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  br label %97

69:                                               ; preds = %65
  %70 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX40_FXSlot3) #5
  br i1 %70, label %71, label %73

71:                                               ; preds = %69
  store i32 4, ptr %19, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  store i64 3, ptr %16, align 8, !tbaa !26
  %72 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %16)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  br label %97

73:                                               ; preds = %69
  %74 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX50_FXSlot3) #5
  br i1 %74, label %75, label %77

75:                                               ; preds = %73
  store i32 5, ptr %19, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #5
  store i64 3, ptr %17, align 8, !tbaa !26
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #5
  br label %97

77:                                               ; preds = %73
  %78 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @DSPROPSETID_EAX20_BufferProperties) #5
  br i1 %78, label %79, label %80

79:                                               ; preds = %77
  store i32 2, ptr %19, align 4, !tbaa !25
  br label %97

80:                                               ; preds = %77
  %81 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @DSPROPSETID_EAX30_BufferProperties) #5
  br i1 %81, label %82, label %83

82:                                               ; preds = %80
  store i32 3, ptr %19, align 4, !tbaa !25
  br label %97

83:                                               ; preds = %80
  %84 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX40_Source) #5
  br i1 %84, label %85, label %86

85:                                               ; preds = %83
  store i32 4, ptr %19, align 4, !tbaa !25
  br label %97

86:                                               ; preds = %83
  %87 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @EAXPROPERTYID_EAX50_Source) #5
  br i1 %87, label %88, label %89

88:                                               ; preds = %86
  store i32 5, ptr %19, align 4, !tbaa !25
  br label %97

89:                                               ; preds = %86
  %90 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @DSPROPSETID_EAX_ReverbProperties) #5
  br i1 %90, label %91, label %93

91:                                               ; preds = %89
  store i32 1, ptr %19, align 4, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #5
  store i64 0, ptr %18, align 8, !tbaa !26
  %92 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN14EaxFxSlotIndexaSERKm(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %18)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #5
  br label %97

93:                                               ; preds = %89
  %94 = tail call noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(16) @DSPROPSETID_EAXBUFFER_ReverbProperties) #5
  br i1 %94, label %95, label %96

95:                                               ; preds = %93
  store i32 1, ptr %19, align 4, !tbaa !25
  br label %97

96:                                               ; preds = %93
  tail call void @_ZN7EaxCall4failEPKc(ptr noundef nonnull @.str.1) #6
  unreachable

97:                                               ; preds = %36, %43, %51, %59, %67, %75, %82, %88, %95, %91, %85, %79, %71, %63, %55, %47, %39, %33
  %.sink = phi i32 [ 1, %36 ], [ 4, %43 ], [ 2, %51 ], [ 2, %59 ], [ 2, %67 ], [ 2, %75 ], [ 3, %82 ], [ 3, %88 ], [ 3, %95 ], [ 4, %91 ], [ 3, %85 ], [ 3, %79 ], [ 2, %71 ], [ 2, %63 ], [ 2, %55 ], [ 2, %47 ], [ 4, %39 ], [ 1, %33 ]
  %.not = phi i1 [ false, %36 ], [ false, %43 ], [ true, %51 ], [ true, %59 ], [ true, %67 ], [ true, %75 ], [ false, %82 ], [ false, %88 ], [ false, %95 ], [ false, %91 ], [ false, %85 ], [ false, %79 ], [ true, %71 ], [ true, %63 ], [ true, %55 ], [ true, %47 ], [ false, %39 ], [ false, %33 ]
  %98 = phi i1 [ false, %36 ], [ false, %43 ], [ false, %51 ], [ false, %59 ], [ false, %67 ], [ false, %75 ], [ true, %82 ], [ true, %88 ], [ true, %95 ], [ false, %91 ], [ true, %85 ], [ true, %79 ], [ false, %71 ], [ false, %63 ], [ false, %55 ], [ false, %47 ], [ false, %39 ], [ false, %33 ]
  store i32 %.sink, ptr %21, align 8, !tbaa !19
  %99 = load i32, ptr %24, align 8
  switch i32 %99, label %._crit_edge [
    i32 6, label %101
    i32 7, label %101
    i32 8, label %101
    i32 65536, label %101
    i32 65537, label %101
    i32 65538, label %101
    i32 65539, label %101
    i32 65540, label %101
    i32 65541, label %101
    i32 65542, label %101
    i32 65543, label %101
  ]

._crit_edge:                                      ; preds = %97
  %.pre = load i8, ptr %22, align 4, !tbaa !20, !range !28
  %100 = trunc nuw i8 %.pre to i1
  br label %102

101:                                              ; preds = %97, %97, %97, %97, %97, %97, %97, %97, %97, %97, %97
  store i8 0, ptr %22, align 4, !tbaa !20
  br label %102

102:                                              ; preds = %._crit_edge, %101
  %103 = phi i1 [ %100, %._crit_edge ], [ false, %101 ]
  %.not24 = icmp eq i32 %99, 0
  %104 = or i1 %103, %.not24
  %or.cond25 = or i1 %104, %.not
  br i1 %or.cond25, label %113, label %105

105:                                              ; preds = %102
  %106 = load ptr, ptr %27, align 8, !tbaa !23
  %107 = icmp eq ptr %106, null
  br i1 %107, label %108, label %109

108:                                              ; preds = %105
  call void @_ZN7EaxCall4failEPKc(ptr noundef nonnull @.str.2) #6
  unreachable

109:                                              ; preds = %105
  %110 = load i32, ptr %28, align 8, !tbaa !24
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %112, label %113

112:                                              ; preds = %109
  call void @_ZN7EaxCall4failEPKc(ptr noundef nonnull @.str.3) #6
  unreachable

113:                                              ; preds = %109, %102
  %114 = load i32, ptr %26, align 4
  %115 = icmp eq i32 %114, 0
  %or.cond27 = select i1 %98, i1 %115, i1 false
  br i1 %or.cond27, label %116, label %117

116:                                              ; preds = %113
  call void @_ZN7EaxCall4failEPKc(ptr noundef nonnull @.str.4) #6
  unreachable

117:                                              ; preds = %113
  %118 = icmp ult i32 %99, 65536
  %or.cond29 = and i1 %118, %.not
  br i1 %or.cond29, label %119, label %120

119:                                              ; preds = %117
  store i32 4, ptr %21, align 8, !tbaa !19
  br label %120

120:                                              ; preds = %119, %117
  ret void
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN14EaxFxSlotIndexC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: mustprogress noreturn uwtable
declare dso_local void @_ZN7EaxCall4failEPKc(ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZeqRK5_GUIDS1_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2

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

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

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

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

!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 0}
!6 = !{!"_ZTS7EaxCall", !7, i64 0, !10, i64 4, !11, i64 8, !17, i64 24, !16, i64 28, !10, i64 32, !10, i64 36, !18, i64 40, !10, i64 48}
!7 = !{!"_ZTS11EaxCallType", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS14EaxFxSlotIndex", !12, i64 0}
!12 = !{!"_ZTSSt8optionalImE", !13, i64 0}
!13 = !{!"_ZTSSt14_Optional_baseImLb1ELb1EE", !14, i64 0}
!14 = !{!"_ZTSSt17_Optional_payloadImLb1ELb1ELb1EE", !15, i64 0}
!15 = !{!"_ZTSSt22_Optional_payload_baseImE", !8, i64 0, !16, i64 8}
!16 = !{!"bool", !8, i64 0}
!17 = !{!"_ZTS20EaxCallPropertySetId", !8, i64 0}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!6, !17, i64 24}
!20 = !{!6, !16, i64 28}
!21 = !{!6, !10, i64 32}
!22 = !{!6, !10, i64 36}
!23 = !{!6, !18, i64 40}
!24 = !{!6, !10, i64 48}
!25 = !{!6, !10, i64 4}
!26 = !{!27, !27, i64 0}
!27 = !{!"long", !8, i64 0}
!28 = !{i8 0, i8 2}


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