; LLVM IR from Aeternum-Veritas/Merry :: asm/src/codegen.ll (ZN4masm7CodeGen7mov_immEPNS_7NodeMovEb)

; 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.masm::GenBinary" = type { %union.anon.84 }
%union.anon.84 = type { i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"union.masm::F64" = type { i64 }
%"union.masm::F32" = type { i32 }
%"struct.masm::NodeMov" = type <{ i32, [4 x i8], %"class.std::variant", i8, i8, [6 x i8] }>
%"class.std::variant" = type { %"struct.std::__detail::__variant::_Variant_base.base", [7 x i8] }
%"struct.std::__detail::__variant::_Variant_base.base" = type { %"struct.std::__detail::__variant::_Move_assign_base.base" }
%"struct.std::__detail::__variant::_Move_assign_base.base" = type { %"struct.std::__detail::__variant::_Copy_assign_base.base" }
%"struct.std::__detail::__variant::_Copy_assign_base.base" = type { %"struct.std::__detail::__variant::_Move_ctor_base.base" }
%"struct.std::__detail::__variant::_Move_ctor_base.base" = type { %"struct.std::__detail::__variant::_Copy_ctor_base.base" }
%"struct.std::__detail::__variant::_Copy_ctor_base.base" = type { %"struct.std::__detail::__variant::_Variant_storage.base" }
%"struct.std::__detail::__variant::_Variant_storage.base" = type <{ %"union.std::__detail::__variant::_Variadic_union", i8 }>
%"union.std::__detail::__variant::_Variadic_union" = type { %"struct.std::__detail::__variant::_Uninitialized", [28 x i8] }
%"struct.std::__detail::__variant::_Uninitialized" = type { i32 }
%struct.anon = type { i8, i8, i8, i8, i8, i8, i8, i8 }
%"class.masm::CodeGen" = type { ptr, ptr, %"class.std::vector.79", ptr, ptr, %"class.std::vector.85", %"class.std::unordered_map.90", ptr, ptr }
%"class.std::vector.79" = type { %"struct.std::_Vector_base.80" }
%"struct.std::_Vector_base.80" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.85" = type { %"struct.std::_Vector_base.86" }
%"struct.std::_Vector_base.86" = type { %"struct.std::_Vector_base<masm::GenBinary, std::allocator<masm::GenBinary>>::_Vector_impl" }
%"struct.std::_Vector_base<masm::GenBinary, std::allocator<masm::GenBinary>>::_Vector_impl" = type { %"struct.std::_Vector_base<masm::GenBinary, std::allocator<masm::GenBinary>>::_Vector_impl_data" }
%"struct.std::_Vector_base<masm::GenBinary, std::allocator<masm::GenBinary>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map.90" = type { %"class.std::_Hashtable.91" }
%"class.std::_Hashtable.91" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNSt7__cxx116stoullERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNSt7__cxx114stodERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN4masm9GenBinaryESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJN4masm8RegisterES5_St6vectorINS6_5TokenESaIS9_EEEERT_RSt7variantIJDpT0_EE(ptr noundef nonnull align 8 dereferenceable(33)) #4

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4masm7CodeGen7mov_immEPNS_7NodeMovEb(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %1, i1 noundef zeroext %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca %"struct.masm::GenBinary", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca i64, align 8
  %10 = alloca %"union.masm::F64", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"union.masm::F32", align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = zext i1 %2 to i8
  store i8 %14, ptr %6, align 1, !tbaa !9
  %15 = load ptr, ptr %4, align 8
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %"struct.masm::NodeMov", ptr %16, i32 0, i32 4
  %18 = load i8, ptr %17, align 1, !tbaa !11, !range !21, !noundef !22
  %19 = trunc i8 %18 to i1
  br i1 %19, label %20, label %22

20:                                               ; preds = %3
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4masm7CodeGen7mov_varEPNS_7NodeMovE(ptr noundef nonnull align 8 dereferenceable(152) %15, ptr noundef %21)
  br label %94

22:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  call void @_ZN4masm9GenBinaryC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #5
  %23 = load i8, ptr %6, align 1, !tbaa !9, !range !21, !noundef !22
  %24 = trunc i8 %23 to i1
  %25 = zext i1 %24 to i64
  %26 = select i1 %24, i32 27, i32 26
  %27 = trunc i32 %26 to i8
  %28 = getelementptr inbounds %"struct.masm::GenBinary", ptr %7, i32 0, i32 0
  %29 = getelementptr inbounds %struct.anon, ptr %28, i32 0, i32 7
  store i8 %27, ptr %29, align 1, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.masm::NodeMov", ptr %30, i32 0, i32 2
  %32 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJN4masm8RegisterES5_St6vectorINS6_5TokenESaIS9_EEEERT_RSt7variantIJDpT0_EE(ptr noundef nonnull align 8 dereferenceable(33) %31)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %32)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !24
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.masm::NodeMov", ptr %33, i32 0, i32 3
  %35 = load i8, ptr %34, align 8, !tbaa !26, !range !21, !noundef !22
  %36 = trunc i8 %35 to i1
  br i1 %36, label %37, label %58

37:                                               ; preds = %22
  %38 = load i8, ptr %6, align 1, !tbaa !9, !range !21, !noundef !22
  %39 = trunc i8 %38 to i1
  br i1 %39, label %40, label %48

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %41 = invoke noundef double @_ZNSt7__cxx114stodERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef null)
          to label %42 unwind label %44

42:                                               ; preds = %40
  store double %41, ptr %10, align 8, !tbaa !23
  %43 = load i64, ptr %10, align 8, !tbaa !23
  store i64 %43, ptr %9, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %57

44:                                               ; preds = %40
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %11, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %95

48:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %49 = invoke noundef float @_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef null)
          to label %50 unwind label %53

50:                                               ; preds = %48
  store float %49, ptr %13, align 4, !tbaa !23
  %51 = load i32, ptr %13, align 4, !tbaa !23
  %52 = zext i32 %51 to i64
  store i64 %52, ptr %9, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %57

53:                                               ; preds = %48
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %11, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %95

57:                                               ; preds = %50, %42
  br label %65

58:                                               ; preds = %22
  %59 = invoke noundef i64 @_ZNSt7__cxx116stoullERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef null, i32 noundef 10)
          to label %60 unwind label %61

60:                                               ; preds = %58
  store i64 %59, ptr %9, align 8, !tbaa !24
  br label %65

61:                                               ; preds = %91, %68, %58
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %11, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %12, align 4
  br label %95

65:                                               ; preds = %60, %57
  %66 = load i8, ptr %6, align 1, !tbaa !9, !range !21, !noundef !22
  %67 = trunc i8 %66 to i1
  br i1 %67, label %68, label %79

68:                                               ; preds = %65
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.masm::NodeMov", ptr %69, i32 0, i32 0
  %71 = load i32, ptr %70, align 8, !tbaa !27
  %72 = trunc i32 %71 to i8
  %73 = getelementptr inbounds %"struct.masm::GenBinary", ptr %7, i32 0, i32 0
  %74 = getelementptr inbounds %struct.anon, ptr %73, i32 0, i32 0
  store i8 %72, ptr %74, align 8, !tbaa !23
  %75 = getelementptr inbounds %"class.masm::CodeGen", ptr %15, i32 0, i32 5
  invoke void @_ZNSt6vectorIN4masm9GenBinaryESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %75, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %76 unwind label %61

76:                                               ; preds = %68
  %77 = load i64, ptr %9, align 8, !tbaa !24
  %78 = getelementptr inbounds %"struct.masm::GenBinary", ptr %7, i32 0, i32 0
  store i64 %77, ptr %78, align 8, !tbaa !23
  br label %91

79:                                               ; preds = %65
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.masm::NodeMov", ptr %80, i32 0, i32 0
  %82 = load i32, ptr %81, align 8, !tbaa !27
  %83 = trunc i32 %82 to i8
  %84 = getelementptr inbounds %"struct.masm::GenBinary", ptr %7, i32 0, i32 0
  %85 = getelementptr inbounds %struct.anon, ptr %84, i32 0, i32 6
  store i8 %83, ptr %85, align 2, !tbaa !23
  %86 = load i64, ptr %9, align 8, !tbaa !24
  %87 = and i64 %86, 281474976710655
  %88 = getelementptr inbounds %"struct.masm::GenBinary", ptr %7, i32 0, i32 0
  %89 = load i64, ptr %88, align 8, !tbaa !23
  %90 = or i64 %89, %87
  store i64 %90, ptr %88, align 8, !tbaa !23
  br label %91

91:                                               ; preds = %79, %76
  %92 = getelementptr inbounds %"class.masm::CodeGen", ptr %15, i32 0, i32 5
  invoke void @_ZNSt6vectorIN4masm9GenBinaryESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %92, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %93 unwind label %61

93:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %94

94:                                               ; preds = %93, %20
  ret void

95:                                               ; preds = %61, %53, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  br label %96

96:                                               ; preds = %95
  %97 = load ptr, ptr %11, align 8
  %98 = load i32, ptr %12, align 4
  %99 = insertvalue { ptr, i32 } poison, ptr %97, 0
  %100 = insertvalue { ptr, i32 } %99, i32 %98, 1
  resume { ptr, i32 } %100
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4masm7CodeGen7mov_varEPNS_7NodeMovE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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 #5 = { 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 = !{!"bool", !7, i64 0}
!11 = !{!12, !10, i64 49}
!12 = !{!"_ZTSN4masm7NodeMovE", !13, i64 0, !14, i64 8, !10, i64 48, !10, i64 49}
!13 = !{!"_ZTSN4masm8RegisterE", !7, i64 0}
!14 = !{!"_ZTSSt7variantIJN4masm8RegisterENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorINS0_5TokenESaIS9_EEEE", !15, i64 0}
!15 = !{!"_ZTSNSt8__detail9__variant13_Variant_baseIJN4masm8RegisterENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorINS2_5TokenESaISB_EEEEE", !16, i64 0}
!16 = !{!"_ZTSNSt8__detail9__variant17_Move_assign_baseILb0EJN4masm8RegisterENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorINS2_5TokenESaISB_EEEEE", !17, i64 0}
!17 = !{!"_ZTSNSt8__detail9__variant17_Copy_assign_baseILb0EJN4masm8RegisterENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorINS2_5TokenESaISB_EEEEE", !18, i64 0}
!18 = !{!"_ZTSNSt8__detail9__variant15_Move_ctor_baseILb0EJN4masm8RegisterENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorINS2_5TokenESaISB_EEEEE", !19, i64 0}
!19 = !{!"_ZTSNSt8__detail9__variant15_Copy_ctor_baseILb0EJN4masm8RegisterENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorINS2_5TokenESaISB_EEEEE", !20, i64 0}
!20 = !{!"_ZTSNSt8__detail9__variant16_Variant_storageILb0EJN4masm8RegisterENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorINS2_5TokenESaISB_EEEEE", !7, i64 0, !7, i64 32}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!7, !7, i64 0}
!24 = !{!25, !25, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!12, !10, i64 48}
!27 = !{!12, !13, 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"

%"struct.masm::GenBinary" = type { %union.anon.84 }
%union.anon.84 = type { i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNSt7__cxx116stoullERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZNSt7__cxx114stodERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN4masm9GenBinaryESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJN4masm8RegisterES5_St6vectorINS6_5TokenESaIS9_EEEERT_RSt7variantIJDpT0_EE(ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4masm7CodeGen7mov_immEPNS_7NodeMovEb(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef %1, i1 noundef zeroext %2) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.masm::GenBinary", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = getelementptr inbounds i8, ptr %1, i64 49
  %7 = load i8, ptr %6, align 1, !tbaa !5, !range !18, !noundef !19
  %8 = trunc nuw i8 %7 to i1
  br i1 %8, label %9, label %10

9:                                                ; preds = %3
  tail call void @_ZN4masm7CodeGen7mov_varEPNS_7NodeMovE(ptr noundef nonnull align 8 dereferenceable(152) %0, ptr noundef nonnull %1)
  br label %49

10:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @_ZN4masm9GenBinaryC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  %11 = select i1 %2, i8 27, i8 26
  %12 = getelementptr inbounds i8, ptr %4, i64 7
  store i8 %11, ptr %12, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %14 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZSt3getINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJN4masm8RegisterES5_St6vectorINS6_5TokenESaIS9_EEEERT_RSt7variantIJDpT0_EE(ptr noundef nonnull align 8 dereferenceable(33) %13)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %14)
  %15 = getelementptr inbounds i8, ptr %1, i64 48
  %16 = load i8, ptr %15, align 8, !tbaa !21, !range !18, !noundef !19
  %17 = trunc nuw i8 %16 to i1
  br i1 %17, label %18, label %30

18:                                               ; preds = %10
  br i1 %2, label %19, label %24

19:                                               ; preds = %18
  %20 = invoke noundef double @_ZNSt7__cxx114stodERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef null)
          to label %.thread unwind label %22

.thread:                                          ; preds = %19
  %21 = bitcast double %20 to i64
  br label %35

22:                                               ; preds = %19
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %50

24:                                               ; preds = %18
  %25 = invoke noundef float @_ZNSt7__cxx114stofERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPm(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef null)
          to label %.thread19 unwind label %28

.thread19:                                        ; preds = %24
  %26 = bitcast float %25 to i32
  %27 = zext i32 %26 to i64
  br label %39

28:                                               ; preds = %24
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %50

30:                                               ; preds = %10
  %31 = invoke noundef i64 @_ZNSt7__cxx116stoullERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef null, i32 noundef 10)
          to label %34 unwind label %32

32:                                               ; preds = %46, %35, %30
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %50

34:                                               ; preds = %30
  br i1 %2, label %35, label %39

35:                                               ; preds = %.thread, %34
  %.018 = phi i64 [ %21, %.thread ], [ %31, %34 ]
  %36 = load i32, ptr %1, align 8, !tbaa !22
  %37 = trunc i32 %36 to i8
  store i8 %37, ptr %4, align 8, !tbaa !20
  %38 = getelementptr inbounds i8, ptr %0, i64 56
  invoke void @_ZNSt6vectorIN4masm9GenBinaryESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %46 unwind label %32

39:                                               ; preds = %.thread19, %34
  %.021 = phi i64 [ %27, %.thread19 ], [ %31, %34 ]
  %40 = load i32, ptr %1, align 8, !tbaa !22
  %41 = trunc i32 %40 to i8
  %42 = getelementptr inbounds i8, ptr %4, i64 6
  store i8 %41, ptr %42, align 2, !tbaa !20
  %43 = and i64 %.021, 281474976710655
  %44 = load i64, ptr %4, align 8, !tbaa !20
  %45 = or i64 %44, %43
  br label %46

46:                                               ; preds = %35, %39
  %storemerge = phi i64 [ %45, %39 ], [ %.018, %35 ]
  store i64 %storemerge, ptr %4, align 8, !tbaa !20
  %47 = getelementptr inbounds i8, ptr %0, i64 56
  invoke void @_ZNSt6vectorIN4masm9GenBinaryESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %47, ptr noundef nonnull align 8 dereferenceable(8) %4)
          to label %48 unwind label %32

48:                                               ; preds = %46
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %49

49:                                               ; preds = %48, %9
  ret void

50:                                               ; preds = %32, %28, %22
  %.pn = phi { ptr, i32 } [ %33, %32 ], [ %23, %22 ], [ %29, %28 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4masm7CodeGen7mov_varEPNS_7NodeMovE(ptr noundef nonnull align 8 dereferenceable(152), ptr noundef) local_unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { 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 #4 = { 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 #5 = { 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, !17, i64 49}
!6 = !{!"_ZTSN4masm7NodeMovE", !7, i64 0, !10, i64 8, !17, i64 48, !17, i64 49}
!7 = !{!"_ZTSN4masm8RegisterE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt7variantIJN4masm8RegisterENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorINS0_5TokenESaIS9_EEEE", !11, i64 0}
!11 = !{!"_ZTSNSt8__detail9__variant13_Variant_baseIJN4masm8RegisterENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorINS2_5TokenESaISB_EEEEE", !12, i64 0}
!12 = !{!"_ZTSNSt8__detail9__variant17_Move_assign_baseILb0EJN4masm8RegisterENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorINS2_5TokenESaISB_EEEEE", !13, i64 0}
!13 = !{!"_ZTSNSt8__detail9__variant17_Copy_assign_baseILb0EJN4masm8RegisterENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorINS2_5TokenESaISB_EEEEE", !14, i64 0}
!14 = !{!"_ZTSNSt8__detail9__variant15_Move_ctor_baseILb0EJN4masm8RegisterENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorINS2_5TokenESaISB_EEEEE", !15, i64 0}
!15 = !{!"_ZTSNSt8__detail9__variant15_Copy_ctor_baseILb0EJN4masm8RegisterENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorINS2_5TokenESaISB_EEEEE", !16, i64 0}
!16 = !{!"_ZTSNSt8__detail9__variant16_Variant_storageILb0EJN4masm8RegisterENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorINS2_5TokenESaISB_EEEEE", !8, i64 0, !8, i64 32}
!17 = !{!"bool", !8, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!8, !8, i64 0}
!21 = !{!6, !17, i64 48}
!22 = !{!6, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass