; LLVM IR from tyoma/agge :: src/agge/figures.ll (ZN4agge17rounded_rectangle12setup_bezierEj)

; 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.agge::rounded_rectangle" = type { float, float, float, float, float, float, float, float, float, float, float, float, [2 x %"struct.agge::point"], i32 }
%"struct.agge::point" = type { float, float }

@_ZN4agge15c_qarc_bezier_kE = external constant float, align 4

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

; 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
define dso_local void @_ZN4agge17rounded_rectangle12setup_bezierEj(ptr noundef nonnull align 4 dereferenceable(68) %0, i32 noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca float, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %6 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  %7 = load float, ptr @_ZN4agge15c_qarc_bezier_kE, align 4, !tbaa !11
  %8 = fsub float 1.000000e+00, %7
  store float %8, ptr %5, align 4, !tbaa !11
  %9 = load i32, ptr %4, align 4, !tbaa !9
  switch i32 %9, label %234 [
    i32 0, label %10
    i32 2, label %65
    i32 6, label %121
    i32 4, label %178
  ]

10:                                               ; preds = %2
  %11 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %12 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %11, i64 0, i64 0
  %13 = getelementptr inbounds %"struct.agge::point", ptr %12, i32 0, i32 0
  %14 = load float, ptr %13, align 4, !tbaa !13
  %15 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 2
  store float %14, ptr %15, align 4, !tbaa !15
  %16 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %17 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %16, i64 0, i64 0
  %18 = getelementptr inbounds %"struct.agge::point", ptr %17, i32 0, i32 1
  %19 = load float, ptr %18, align 4, !tbaa !17
  %20 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 11
  %21 = load float, ptr %20, align 4, !tbaa !18
  %22 = fadd float %19, %21
  %23 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 3
  store float %22, ptr %23, align 4, !tbaa !19
  %24 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %25 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %24, i64 0, i64 0
  %26 = getelementptr inbounds %"struct.agge::point", ptr %25, i32 0, i32 0
  %27 = load float, ptr %26, align 4, !tbaa !13
  %28 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 4
  store float %27, ptr %28, align 4, !tbaa !20
  %29 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %30 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %29, i64 0, i64 0
  %31 = getelementptr inbounds %"struct.agge::point", ptr %30, i32 0, i32 1
  %32 = load float, ptr %31, align 4, !tbaa !17
  %33 = load float, ptr %5, align 4, !tbaa !11
  %34 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 11
  %35 = load float, ptr %34, align 4, !tbaa !18
  %36 = call float @llvm.fmuladd.f32(float %33, float %35, float %32)
  %37 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 5
  store float %36, ptr %37, align 4, !tbaa !21
  %38 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %39 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %38, i64 0, i64 0
  %40 = getelementptr inbounds %"struct.agge::point", ptr %39, i32 0, i32 0
  %41 = load float, ptr %40, align 4, !tbaa !13
  %42 = load float, ptr %5, align 4, !tbaa !11
  %43 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 10
  %44 = load float, ptr %43, align 4, !tbaa !22
  %45 = call float @llvm.fmuladd.f32(float %42, float %44, float %41)
  %46 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 6
  store float %45, ptr %46, align 4, !tbaa !23
  %47 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %48 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %47, i64 0, i64 0
  %49 = getelementptr inbounds %"struct.agge::point", ptr %48, i32 0, i32 1
  %50 = load float, ptr %49, align 4, !tbaa !17
  %51 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 7
  store float %50, ptr %51, align 4, !tbaa !24
  %52 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %53 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %52, i64 0, i64 0
  %54 = getelementptr inbounds %"struct.agge::point", ptr %53, i32 0, i32 0
  %55 = load float, ptr %54, align 4, !tbaa !13
  %56 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 10
  %57 = load float, ptr %56, align 4, !tbaa !22
  %58 = fadd float %55, %57
  %59 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 8
  store float %58, ptr %59, align 4, !tbaa !25
  %60 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %61 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %60, i64 0, i64 0
  %62 = getelementptr inbounds %"struct.agge::point", ptr %61, i32 0, i32 1
  %63 = load float, ptr %62, align 4, !tbaa !17
  %64 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 9
  store float %63, ptr %64, align 4, !tbaa !26
  br label %234

65:                                               ; preds = %2
  %66 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %67 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %66, i64 0, i64 1
  %68 = getelementptr inbounds %"struct.agge::point", ptr %67, i32 0, i32 0
  %69 = load float, ptr %68, align 4, !tbaa !13
  %70 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 10
  %71 = load float, ptr %70, align 4, !tbaa !22
  %72 = fsub float %69, %71
  %73 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 2
  store float %72, ptr %73, align 4, !tbaa !15
  %74 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %75 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %74, i64 0, i64 0
  %76 = getelementptr inbounds %"struct.agge::point", ptr %75, i32 0, i32 1
  %77 = load float, ptr %76, align 4, !tbaa !17
  %78 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 3
  store float %77, ptr %78, align 4, !tbaa !19
  %79 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %80 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %79, i64 0, i64 1
  %81 = getelementptr inbounds %"struct.agge::point", ptr %80, i32 0, i32 0
  %82 = load float, ptr %81, align 4, !tbaa !13
  %83 = load float, ptr %5, align 4, !tbaa !11
  %84 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 10
  %85 = load float, ptr %84, align 4, !tbaa !22
  %86 = fneg float %83
  %87 = call float @llvm.fmuladd.f32(float %86, float %85, float %82)
  %88 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 4
  store float %87, ptr %88, align 4, !tbaa !20
  %89 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %90 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %89, i64 0, i64 0
  %91 = getelementptr inbounds %"struct.agge::point", ptr %90, i32 0, i32 1
  %92 = load float, ptr %91, align 4, !tbaa !17
  %93 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 5
  store float %92, ptr %93, align 4, !tbaa !21
  %94 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %95 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %94, i64 0, i64 1
  %96 = getelementptr inbounds %"struct.agge::point", ptr %95, i32 0, i32 0
  %97 = load float, ptr %96, align 4, !tbaa !13
  %98 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 6
  store float %97, ptr %98, align 4, !tbaa !23
  %99 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %100 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %99, i64 0, i64 0
  %101 = getelementptr inbounds %"struct.agge::point", ptr %100, i32 0, i32 1
  %102 = load float, ptr %101, align 4, !tbaa !17
  %103 = load float, ptr %5, align 4, !tbaa !11
  %104 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 11
  %105 = load float, ptr %104, align 4, !tbaa !18
  %106 = call float @llvm.fmuladd.f32(float %103, float %105, float %102)
  %107 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 7
  store float %106, ptr %107, align 4, !tbaa !24
  %108 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %109 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %108, i64 0, i64 1
  %110 = getelementptr inbounds %"struct.agge::point", ptr %109, i32 0, i32 0
  %111 = load float, ptr %110, align 4, !tbaa !13
  %112 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 8
  store float %111, ptr %112, align 4, !tbaa !25
  %113 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %114 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %113, i64 0, i64 0
  %115 = getelementptr inbounds %"struct.agge::point", ptr %114, i32 0, i32 1
  %116 = load float, ptr %115, align 4, !tbaa !17
  %117 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 10
  %118 = load float, ptr %117, align 4, !tbaa !22
  %119 = fadd float %116, %118
  %120 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 9
  store float %119, ptr %120, align 4, !tbaa !26
  br label %234

121:                                              ; preds = %2
  %122 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %123 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %122, i64 0, i64 1
  %124 = getelementptr inbounds %"struct.agge::point", ptr %123, i32 0, i32 0
  %125 = load float, ptr %124, align 4, !tbaa !13
  %126 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 2
  store float %125, ptr %126, align 4, !tbaa !15
  %127 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %128 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %127, i64 0, i64 1
  %129 = getelementptr inbounds %"struct.agge::point", ptr %128, i32 0, i32 1
  %130 = load float, ptr %129, align 4, !tbaa !17
  %131 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 11
  %132 = load float, ptr %131, align 4, !tbaa !18
  %133 = fsub float %130, %132
  %134 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 3
  store float %133, ptr %134, align 4, !tbaa !19
  %135 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %136 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %135, i64 0, i64 1
  %137 = getelementptr inbounds %"struct.agge::point", ptr %136, i32 0, i32 0
  %138 = load float, ptr %137, align 4, !tbaa !13
  %139 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 4
  store float %138, ptr %139, align 4, !tbaa !20
  %140 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %141 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %140, i64 0, i64 1
  %142 = getelementptr inbounds %"struct.agge::point", ptr %141, i32 0, i32 1
  %143 = load float, ptr %142, align 4, !tbaa !17
  %144 = load float, ptr %5, align 4, !tbaa !11
  %145 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 11
  %146 = load float, ptr %145, align 4, !tbaa !18
  %147 = fneg float %144
  %148 = call float @llvm.fmuladd.f32(float %147, float %146, float %143)
  %149 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 5
  store float %148, ptr %149, align 4, !tbaa !21
  %150 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %151 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %150, i64 0, i64 1
  %152 = getelementptr inbounds %"struct.agge::point", ptr %151, i32 0, i32 0
  %153 = load float, ptr %152, align 4, !tbaa !13
  %154 = load float, ptr %5, align 4, !tbaa !11
  %155 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 10
  %156 = load float, ptr %155, align 4, !tbaa !22
  %157 = fneg float %154
  %158 = call float @llvm.fmuladd.f32(float %157, float %156, float %153)
  %159 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 6
  store float %158, ptr %159, align 4, !tbaa !23
  %160 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %161 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %160, i64 0, i64 1
  %162 = getelementptr inbounds %"struct.agge::point", ptr %161, i32 0, i32 1
  %163 = load float, ptr %162, align 4, !tbaa !17
  %164 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 7
  store float %163, ptr %164, align 4, !tbaa !24
  %165 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %166 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %165, i64 0, i64 1
  %167 = getelementptr inbounds %"struct.agge::point", ptr %166, i32 0, i32 0
  %168 = load float, ptr %167, align 4, !tbaa !13
  %169 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 10
  %170 = load float, ptr %169, align 4, !tbaa !22
  %171 = fsub float %168, %170
  %172 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 8
  store float %171, ptr %172, align 4, !tbaa !25
  %173 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %174 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %173, i64 0, i64 1
  %175 = getelementptr inbounds %"struct.agge::point", ptr %174, i32 0, i32 1
  %176 = load float, ptr %175, align 4, !tbaa !17
  %177 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 9
  store float %176, ptr %177, align 4, !tbaa !26
  br label %234

178:                                              ; preds = %2
  %179 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %180 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %179, i64 0, i64 0
  %181 = getelementptr inbounds %"struct.agge::point", ptr %180, i32 0, i32 0
  %182 = load float, ptr %181, align 4, !tbaa !13
  %183 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 10
  %184 = load float, ptr %183, align 4, !tbaa !22
  %185 = fadd float %182, %184
  %186 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 2
  store float %185, ptr %186, align 4, !tbaa !15
  %187 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %188 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %187, i64 0, i64 1
  %189 = getelementptr inbounds %"struct.agge::point", ptr %188, i32 0, i32 1
  %190 = load float, ptr %189, align 4, !tbaa !17
  %191 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 3
  store float %190, ptr %191, align 4, !tbaa !19
  %192 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %193 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %192, i64 0, i64 0
  %194 = getelementptr inbounds %"struct.agge::point", ptr %193, i32 0, i32 0
  %195 = load float, ptr %194, align 4, !tbaa !13
  %196 = load float, ptr %5, align 4, !tbaa !11
  %197 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 10
  %198 = load float, ptr %197, align 4, !tbaa !22
  %199 = call float @llvm.fmuladd.f32(float %196, float %198, float %195)
  %200 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 4
  store float %199, ptr %200, align 4, !tbaa !20
  %201 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %202 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %201, i64 0, i64 1
  %203 = getelementptr inbounds %"struct.agge::point", ptr %202, i32 0, i32 1
  %204 = load float, ptr %203, align 4, !tbaa !17
  %205 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 5
  store float %204, ptr %205, align 4, !tbaa !21
  %206 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %207 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %206, i64 0, i64 0
  %208 = getelementptr inbounds %"struct.agge::point", ptr %207, i32 0, i32 0
  %209 = load float, ptr %208, align 4, !tbaa !13
  %210 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 6
  store float %209, ptr %210, align 4, !tbaa !23
  %211 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %212 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %211, i64 0, i64 1
  %213 = getelementptr inbounds %"struct.agge::point", ptr %212, i32 0, i32 1
  %214 = load float, ptr %213, align 4, !tbaa !17
  %215 = load float, ptr %5, align 4, !tbaa !11
  %216 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 11
  %217 = load float, ptr %216, align 4, !tbaa !18
  %218 = fneg float %215
  %219 = call float @llvm.fmuladd.f32(float %218, float %217, float %214)
  %220 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 7
  store float %219, ptr %220, align 4, !tbaa !24
  %221 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %222 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %221, i64 0, i64 0
  %223 = getelementptr inbounds %"struct.agge::point", ptr %222, i32 0, i32 0
  %224 = load float, ptr %223, align 4, !tbaa !13
  %225 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 8
  store float %224, ptr %225, align 4, !tbaa !25
  %226 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 12
  %227 = getelementptr inbounds [2 x %"struct.agge::point"], ptr %226, i64 0, i64 1
  %228 = getelementptr inbounds %"struct.agge::point", ptr %227, i32 0, i32 1
  %229 = load float, ptr %228, align 4, !tbaa !17
  %230 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 11
  %231 = load float, ptr %230, align 4, !tbaa !18
  %232 = fsub float %229, %231
  %233 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 9
  store float %232, ptr %233, align 4, !tbaa !26
  br label %234

234:                                              ; preds = %178, %121, %65, %10, %2
  %235 = getelementptr inbounds %"class.agge::rounded_rectangle", ptr %6, i32 0, i32 0
  store float 0.000000e+00, ptr %235, align 4, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTSN4agge5pointIfEE", !12, i64 0, !12, i64 4}
!15 = !{!16, !12, i64 8}
!16 = !{!"_ZTSN4agge17rounded_rectangleE", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !7, i64 48, !10, i64 64}
!17 = !{!14, !12, i64 4}
!18 = !{!16, !12, i64 44}
!19 = !{!16, !12, i64 12}
!20 = !{!16, !12, i64 16}
!21 = !{!16, !12, i64 20}
!22 = !{!16, !12, i64 40}
!23 = !{!16, !12, i64 24}
!24 = !{!16, !12, i64 28}
!25 = !{!16, !12, i64 32}
!26 = !{!16, !12, i64 36}
!27 = !{!16, !12, 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"

@_ZN4agge15c_qarc_bezier_kE = external local_unnamed_addr constant float, align 4

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable
define dso_local void @_ZN4agge17rounded_rectangle12setup_bezierEj(ptr nocapture noundef nonnull align 4 dereferenceable(68) %0, i32 noundef %1) local_unnamed_addr #0 align 2 {
  %3 = load float, ptr @_ZN4agge15c_qarc_bezier_kE, align 4, !tbaa !5
  %4 = fsub float 1.000000e+00, %3
  switch i32 %1, label %90 [
    i32 0, label %5
    i32 2, label %26
    i32 6, label %46
    i32 4, label %68
  ]

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 48
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = getelementptr inbounds i8, ptr %0, i64 12
  %9 = getelementptr inbounds i8, ptr %0, i64 16
  %10 = getelementptr inbounds i8, ptr %0, i64 20
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  %12 = load <2 x float>, ptr %6, align 4, !tbaa !5
  %13 = extractelement <2 x float> %12, i64 0
  store float %13, ptr %7, align 4, !tbaa !9
  %14 = load <2 x float>, ptr %11, align 4, !tbaa !5
  %15 = extractelement <2 x float> %12, i64 1
  %16 = fadd <2 x float> %12, %14
  %17 = extractelement <2 x float> %16, i64 1
  store float %17, ptr %8, align 4, !tbaa !12
  store float %13, ptr %9, align 4, !tbaa !13
  %18 = insertelement <2 x float> poison, float %4, i64 0
  %19 = shufflevector <2 x float> %18, <2 x float> poison, <2 x i32> zeroinitializer
  %20 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %19, <2 x float> %14, <2 x float> %12)
  %21 = shufflevector <2 x float> %20, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  store <2 x float> %21, ptr %10, align 4, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %0, i64 28
  store float %15, ptr %22, align 4, !tbaa !14
  %23 = fadd <2 x float> %12, %14
  %24 = extractelement <2 x float> %23, i64 0
  %25 = getelementptr inbounds i8, ptr %0, i64 32
  store float %24, ptr %25, align 4, !tbaa !15
  br label %.sink.split

26:                                               ; preds = %2
  %27 = getelementptr inbounds i8, ptr %0, i64 40
  %28 = load float, ptr %27, align 4, !tbaa !16
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  %30 = getelementptr inbounds i8, ptr %0, i64 52
  %31 = getelementptr inbounds i8, ptr %0, i64 12
  %32 = fneg float %4
  %33 = getelementptr inbounds i8, ptr %0, i64 16
  %34 = getelementptr inbounds i8, ptr %0, i64 20
  %35 = load <2 x float>, ptr %30, align 4, !tbaa !5
  %36 = extractelement <2 x float> %35, i64 1
  %37 = fsub float %36, %28
  store float %37, ptr %29, align 4, !tbaa !9
  %38 = extractelement <2 x float> %35, i64 0
  store float %38, ptr %31, align 4, !tbaa !12
  %39 = tail call float @llvm.fmuladd.f32(float %32, float %28, float %36)
  store float %39, ptr %33, align 4, !tbaa !13
  store <2 x float> %35, ptr %34, align 4, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %0, i64 44
  %41 = load float, ptr %40, align 4, !tbaa !17
  %42 = tail call float @llvm.fmuladd.f32(float %4, float %41, float %38)
  %43 = getelementptr inbounds i8, ptr %0, i64 28
  store float %42, ptr %43, align 4, !tbaa !14
  %44 = getelementptr inbounds i8, ptr %0, i64 32
  store float %36, ptr %44, align 4, !tbaa !15
  %45 = fadd float %28, %38
  br label %.sink.split

46:                                               ; preds = %2
  %47 = getelementptr inbounds i8, ptr %0, i64 56
  %48 = getelementptr inbounds i8, ptr %0, i64 8
  %49 = getelementptr inbounds i8, ptr %0, i64 12
  %50 = getelementptr inbounds i8, ptr %0, i64 16
  %51 = fneg float %4
  %52 = getelementptr inbounds i8, ptr %0, i64 20
  %53 = getelementptr inbounds i8, ptr %0, i64 40
  %54 = load <2 x float>, ptr %47, align 4, !tbaa !5
  %55 = extractelement <2 x float> %54, i64 0
  store float %55, ptr %48, align 4, !tbaa !9
  %56 = load <2 x float>, ptr %53, align 4, !tbaa !5
  %57 = extractelement <2 x float> %54, i64 1
  %58 = fsub <2 x float> %54, %56
  %59 = extractelement <2 x float> %58, i64 1
  store float %59, ptr %49, align 4, !tbaa !12
  store float %55, ptr %50, align 4, !tbaa !13
  %60 = insertelement <2 x float> poison, float %51, i64 0
  %61 = shufflevector <2 x float> %60, <2 x float> poison, <2 x i32> zeroinitializer
  %62 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %61, <2 x float> %56, <2 x float> %54)
  %63 = shufflevector <2 x float> %62, <2 x float> poison, <2 x i32> <i32 1, i32 0>
  store <2 x float> %63, ptr %52, align 4, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %0, i64 28
  store float %57, ptr %64, align 4, !tbaa !14
  %65 = fsub <2 x float> %54, %56
  %66 = extractelement <2 x float> %65, i64 0
  %67 = getelementptr inbounds i8, ptr %0, i64 32
  store float %66, ptr %67, align 4, !tbaa !15
  br label %.sink.split

68:                                               ; preds = %2
  %69 = getelementptr inbounds i8, ptr %0, i64 48
  %70 = load float, ptr %69, align 4, !tbaa !18
  %71 = getelementptr inbounds i8, ptr %0, i64 40
  %72 = load float, ptr %71, align 4, !tbaa !16
  %73 = fadd float %70, %72
  %74 = getelementptr inbounds i8, ptr %0, i64 8
  store float %73, ptr %74, align 4, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %0, i64 60
  %76 = load float, ptr %75, align 4, !tbaa !20
  %77 = getelementptr inbounds i8, ptr %0, i64 12
  store float %76, ptr %77, align 4, !tbaa !12
  %78 = tail call float @llvm.fmuladd.f32(float %4, float %72, float %70)
  %79 = getelementptr inbounds i8, ptr %0, i64 16
  store float %78, ptr %79, align 4, !tbaa !13
  %80 = getelementptr inbounds i8, ptr %0, i64 20
  store float %76, ptr %80, align 4, !tbaa !21
  %81 = getelementptr inbounds i8, ptr %0, i64 24
  store float %70, ptr %81, align 4, !tbaa !22
  %82 = getelementptr inbounds i8, ptr %0, i64 44
  %83 = load float, ptr %82, align 4, !tbaa !17
  %84 = fneg float %4
  %85 = tail call float @llvm.fmuladd.f32(float %84, float %83, float %76)
  %86 = getelementptr inbounds i8, ptr %0, i64 28
  store float %85, ptr %86, align 4, !tbaa !14
  %87 = getelementptr inbounds i8, ptr %0, i64 32
  store float %70, ptr %87, align 4, !tbaa !15
  %88 = fsub float %76, %83
  br label %.sink.split

.sink.split:                                      ; preds = %5, %26, %46, %68
  %.sink = phi float [ %88, %68 ], [ %57, %46 ], [ %45, %26 ], [ %15, %5 ]
  %89 = getelementptr inbounds i8, ptr %0, i64 36
  store float %.sink, ptr %89, align 4, !tbaa !23
  br label %90

90:                                               ; preds = %.sink.split, %2
  store float 0.000000e+00, ptr %0, align 4, !tbaa !24
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #2

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) 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 speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTSN4agge17rounded_rectangleE", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !7, i64 48, !11, i64 64}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 12}
!13 = !{!10, !6, i64 16}
!14 = !{!10, !6, i64 28}
!15 = !{!10, !6, i64 32}
!16 = !{!10, !6, i64 40}
!17 = !{!10, !6, i64 44}
!18 = !{!19, !6, i64 0}
!19 = !{!"_ZTSN4agge5pointIfEE", !6, i64 0, !6, i64 4}
!20 = !{!19, !6, i64 4}
!21 = !{!10, !6, i64 20}
!22 = !{!10, !6, i64 24}
!23 = !{!10, !6, i64 36}
!24 = !{!10, !6, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass