import Foundation

func terms1(s:String) -> Bool {
    return s == String(s.reversed())
}

func terms2(s:String) -> Bool {
    return s.prefix((s.count - 1) / 2) == String(s.prefix((s.count - 1) / 2).reversed())
}

func terms3(s:String) -> Bool {
    return s.suffix(s.count - (s.count + 3) / 2 + 1) == s.suffix(s.count - (s.count + 3) / 2 + 1).reversed()
}



func main() {
    let s = readLine()!
    
    print(terms1(s: s) && terms2(s: s) && terms3(s: s) ? "Yes": "No")
}
main()

; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/Swift/Source_1185/llvm_OZ.ll'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/Swift/Source_1185/llvm_OZ.ll"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct._SwiftEmptyArrayStorage = type { %struct.HeapObject, %struct._SwiftArrayBodyStorage }
%struct.HeapObject = type { %struct.HeapMetadata*, %struct.InlineRefCountsPlaceholder }
%struct.HeapMetadata = type opaque
%struct.InlineRefCountsPlaceholder = type { i64 }
%struct._SwiftArrayBodyStorage = type { i64, i64 }
%swift.type_descriptor = type opaque
%swift.protocol_conformance_descriptor = type { i32, i32, i32, i32 }
%swift.type = type { i64 }
%swift.bridge = type opaque
%Ts18ReversedCollectionVySSG = type <{ %TSS }>
%TSS = type <{ %Ts11_StringGutsV }>
%Ts11_StringGutsV = type <{ %Ts13_StringObjectV }>
%Ts13_StringObjectV = type <{ %Ts6UInt64V, %swift.bridge* }>
%Ts6UInt64V = type <{ i64 }>
%swift.opaque = type opaque
%Ts18ReversedCollectionVySsG = type <{ %TSs }>
%TSs = type <{ %Ts5SliceVySSG }>
%Ts5SliceVySSG = type <{ %TSS5IndexV, %TSS5IndexV, %TSS }>
%TSS5IndexV = type <{ %Ts6UInt64V }>
%Ts28__ContiguousArrayStorageBaseC = type <{ %swift.refcounted, %Ts10_ArrayBodyV }>
%swift.refcounted = type { %swift.type*, i64 }
%Ts10_ArrayBodyV = type <{ %TSo22_SwiftArrayBodyStorageV }>
%TSo22_SwiftArrayBodyStorageV = type <{ %TSi, %TSu }>
%TSi = type <{ i64 }>
%TSu = type <{ i64 }>
%Ts15ContiguousArrayV = type <{ %Ts22_ContiguousArrayBufferV }>
%Ts22_ContiguousArrayBufferV = type <{ %Ts28__ContiguousArrayStorageBaseC* }>
%TSS8IteratorV = type <{ %Ts11_StringGutsV, %TSi, %TSi }>
%TSJ = type <{ %TSS }>

@_swiftEmptyArrayStorage = external global %struct._SwiftEmptyArrayStorage, align 8
@"$ss18ReversedCollectionVMn" = external global %swift.type_descriptor, align 4
@"got.$ss18ReversedCollectionVMn" = private unnamed_addr constant %swift.type_descriptor* @"$ss18ReversedCollectionVMn"
@"symbolic _____ySSG s18ReversedCollectionV" = linkonce_odr hidden constant <{ i8, i32, [4 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss18ReversedCollectionVMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [4 x i8], i8 }>, <{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySSG s18ReversedCollectionV", i32 0, i32 1) to i64)) to i32), [4 x i8] c"ySSG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss18ReversedCollectionVySSGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySSG s18ReversedCollectionV" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss18ReversedCollectionVySSGMD" to i64)) to i32), i32 -9 }, align 8
@"$ss18ReversedCollectionVySSGAByxGSTsWL" = linkonce_odr hidden local_unnamed_addr global i8** null, align 8
@"$ss18ReversedCollectionVyxGSTsMc" = external global %swift.protocol_conformance_descriptor, align 4
@"$sSsN" = external global %swift.type, align 8
@"symbolic _____ySsG s18ReversedCollectionV" = linkonce_odr hidden constant <{ i8, i32, [4 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss18ReversedCollectionVMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [4 x i8], i8 }>, <{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySsG s18ReversedCollectionV", i32 0, i32 1) to i64)) to i32), [4 x i8] c"ySsG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss18ReversedCollectionVySsGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySsG s18ReversedCollectionV" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss18ReversedCollectionVySsGMD" to i64)) to i32), i32 -9 }, align 8
@"$ss18ReversedCollectionVySsGAByxGSTsWL" = linkonce_odr hidden local_unnamed_addr global i8** null, align 8
@"$sSSN" = external global %swift.type, align 8
@"$ss23_ContiguousArrayStorageCMn" = external global %swift.type_descriptor, align 4
@"got.$ss23_ContiguousArrayStorageCMn" = private unnamed_addr constant %swift.type_descriptor* @"$ss23_ContiguousArrayStorageCMn"
@"symbolic _____yypG s23_ContiguousArrayStorageC" = linkonce_odr hidden constant <{ i8, i32, [4 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss23_ContiguousArrayStorageCMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [4 x i8], i8 }>, <{ i8, i32, [4 x i8], i8 }>* @"symbolic _____yypG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [4 x i8] c"yypG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCyypGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [4 x i8], i8 }>* @"symbolic _____yypG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCyypGMD" to i64)) to i32), i32 -9 }, align 8
@"\01l_entry_point" = private constant { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (i32 (i32, i8**)* @main to i64), i64 ptrtoint ({ i32, i32 }* @"\01l_entry_point" to i64)) to i32), i32 0 }, section "swift5_entry", align 4
@"symbolic _____ySJG s23_ContiguousArrayStorageC" = linkonce_odr hidden constant <{ i8, i32, [4 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss23_ContiguousArrayStorageCMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [4 x i8], i8 }>, <{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySJG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [4 x i8] c"ySJG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCySJGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySJG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCySJGMD" to i64)) to i32), i32 -9 }, align 8
@"$sSJN" = external global %swift.type, align 8
@__swift_reflection_version = linkonce_odr hidden constant i16 3
@_swift1_autolink_entries = private constant [172 x i8] c"-lFoundation\00-lswiftCore\00-lswift_StringProcessing\00-lswift_RegexParser\00-lswift_Concurrency\00-lswiftGlibc\00-lm\00-lpthread\00-lutil\00-ldl\00-lswiftDispatch\00-ldispatch\00-lBlocksRuntime\00", section ".swift1_autolink_entries", no_sanitize_address, align 8
@llvm.compiler.used = appending global [4 x i8*] [i8* bitcast ({ i32, i32 }* @"\01l_entry_point" to i8*), i8* bitcast (i16* @__swift_reflection_version to i8*), i8* getelementptr inbounds ([172 x i8], [172 x i8]* @_swift1_autolink_entries, i32 0, i32 0), i8* bitcast (i32 (i32, i8**)* @main to i8*)], section "llvm.metadata"

; Function Attrs: minsize optsize
define protected i32 @main(i32 %0, i8** nocapture readnone %1) #0 {
entry:
  tail call swiftcc void @"$s7llvm_OZ4mainyyF"()
  ret i32 0
}

; Function Attrs: minsize optsize
define hidden swiftcc i1 @"$s7llvm_OZ6terms11sSbSS_tF"(i64 %0, %swift.bridge* %1) local_unnamed_addr #0 {
entry:
  %2 = alloca %Ts18ReversedCollectionVySSG, align 8
  %3 = bitcast %Ts18ReversedCollectionVySSG* %2 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %3)
  %._base._guts._object._countAndFlagsBits._value = getelementptr inbounds %Ts18ReversedCollectionVySSG, %Ts18ReversedCollectionVySSG* %2, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0
  store i64 %0, i64* %._base._guts._object._countAndFlagsBits._value, align 8
  %._base._guts._object._object = getelementptr inbounds %Ts18ReversedCollectionVySSG, %Ts18ReversedCollectionVySSG* %2, i64 0, i32 0, i32 0, i32 0, i32 1
  store %swift.bridge* %1, %swift.bridge** %._base._guts._object._object, align 8
  %4 = bitcast %Ts18ReversedCollectionVySSG* %2 to %swift.opaque*
  %5 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %1) #2
  %6 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss18ReversedCollectionVySSGMD") #14
  %7 = call i8** @"$ss18ReversedCollectionVySSGAByxGSTsWlTm"(i8*** @"$ss18ReversedCollectionVySSGAByxGSTsWL", { i32, i32 }* @"$ss18ReversedCollectionVySSGMD")
  %8 = call swiftcc { i64, %swift.bridge* } @"$sSSySSxcSTRzSJ7ElementRtzlufC"(%swift.opaque* noalias nocapture nonnull %4, %swift.type* %6, i8** %7)
  %9 = extractvalue { i64, %swift.bridge* } %8, 0
  %10 = extractvalue { i64, %swift.bridge* } %8, 1
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %3)
  %11 = icmp eq i64 %9, %0
  %12 = icmp eq %swift.bridge* %10, %1
  %or.cond = select i1 %11, i1 %12, i1 false
  br i1 %or.cond, label %13, label %15

13:                                               ; preds = %entry, %15
  %.sink = phi %swift.bridge* [ %10, %15 ], [ %1, %entry ]
  %14 = phi i1 [ %16, %15 ], [ true, %entry ]
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %.sink) #2
  ret i1 %14

15:                                               ; preds = %entry
  %16 = tail call swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64 %0, %swift.bridge* %1, i64 %9, %swift.bridge* %10, i8 0)
  br label %13
}

; Function Attrs: minsize optsize
define hidden swiftcc i1 @"$s7llvm_OZ6terms21sSbSS_tF"(i64 %0, %swift.bridge* %1) local_unnamed_addr #0 {
entry:
  %2 = alloca %Ts18ReversedCollectionVySsG, align 8
  %3 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %1) #2
  %4 = tail call swiftcc i64 @"$sSS5countSivg"(i64 %0, %swift.bridge* %1)
  %5 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %4, i64 -1)
  %6 = extractvalue { i64, i1 } %5, 1
  br i1 %6, label %35, label %7, !prof !6

7:                                                ; preds = %entry
  %8 = extractvalue { i64, i1 } %5, 0
  %9 = sdiv i64 %8, 2
  %10 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSlsE6prefixy11SubSequenceQzSiFSS_Tg5"(i64 %9, i64 %0, %swift.bridge* %1)
  %11 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %1) #2
  %12 = tail call swiftcc i64 @"$sSS5countSivg"(i64 %0, %swift.bridge* %1)
  %13 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %12, i64 -1)
  %14 = extractvalue { i64, i1 } %13, 1
  br i1 %14, label %36, label %15, !prof !6

15:                                               ; preds = %7
  %16 = extractvalue { i64, i64, i64, %swift.bridge* } %10, 3
  %17 = extractvalue { i64, i64, i64, %swift.bridge* } %10, 2
  %18 = extractvalue { i64, i64, i64, %swift.bridge* } %10, 1
  %19 = extractvalue { i64, i64, i64, %swift.bridge* } %10, 0
  %20 = extractvalue { i64, i1 } %13, 0
  %21 = sdiv i64 %20, 2
  %22 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSlsE6prefixy11SubSequenceQzSiFSS_Tg5"(i64 %21, i64 %0, %swift.bridge* %1)
  %23 = extractvalue { i64, i64, i64, %swift.bridge* } %22, 0
  %24 = extractvalue { i64, i64, i64, %swift.bridge* } %22, 1
  %25 = extractvalue { i64, i64, i64, %swift.bridge* } %22, 2
  %26 = extractvalue { i64, i64, i64, %swift.bridge* } %22, 3
  %27 = bitcast %Ts18ReversedCollectionVySsG* %2 to i8*
  call void @llvm.lifetime.start.p0i8(i64 32, i8* nonnull %27)
  %._base._slice._startIndex._rawBits._value = getelementptr inbounds %Ts18ReversedCollectionVySsG, %Ts18ReversedCollectionVySsG* %2, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0
  store i64 %23, i64* %._base._slice._startIndex._rawBits._value, align 8
  %._base._slice._endIndex._rawBits._value = getelementptr inbounds %Ts18ReversedCollectionVySsG, %Ts18ReversedCollectionVySsG* %2, i64 0, i32 0, i32 0, i32 1, i32 0, i32 0
  store i64 %24, i64* %._base._slice._endIndex._rawBits._value, align 8
  %._base._slice._base._guts._object._countAndFlagsBits._value = getelementptr inbounds %Ts18ReversedCollectionVySsG, %Ts18ReversedCollectionVySsG* %2, i64 0, i32 0, i32 0, i32 2, i32 0, i32 0, i32 0, i32 0
  store i64 %25, i64* %._base._slice._base._guts._object._countAndFlagsBits._value, align 8
  %._base._slice._base._guts._object._object = getelementptr inbounds %Ts18ReversedCollectionVySsG, %Ts18ReversedCollectionVySsG* %2, i64 0, i32 0, i32 0, i32 2, i32 0, i32 0, i32 1
  store %swift.bridge* %26, %swift.bridge** %._base._slice._base._guts._object._object, align 8
  %28 = bitcast %Ts18ReversedCollectionVySsG* %2 to %swift.opaque*
  %29 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss18ReversedCollectionVySsGMD") #14
  %30 = call i8** @"$ss18ReversedCollectionVySSGAByxGSTsWlTm"(i8*** @"$ss18ReversedCollectionVySsGAByxGSTsWL", { i32, i32 }* @"$ss18ReversedCollectionVySsGMD")
  %31 = call swiftcc { i64, %swift.bridge* } @"$sSSySSxcSTRzSJ7ElementRtzlufC"(%swift.opaque* noalias nocapture nonnull %28, %swift.type* %29, i8** %30)
  call void @llvm.lifetime.end.p0i8(i64 32, i8* nonnull %27)
  %32 = extractvalue { i64, %swift.bridge* } %31, 1
  %33 = extractvalue { i64, %swift.bridge* } %31, 0
  %34 = tail call swiftcc i1 @"$sSysE2eeoiySbx_qd__tSyRd__lFZSs_SSTgq5"(i64 %19, i64 %18, i64 %17, %swift.bridge* %16, i64 %33, %swift.bridge* %32, %swift.type* nonnull swiftself @"$sSsN")
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %16) #2
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %32) #2
  ret i1 %34

35:                                               ; preds = %entry
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable

36:                                               ; preds = %7
  tail call void asm sideeffect "", "n"(i32 1) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc { i64, i64, i64, %swift.bridge* } @"$sSlsE6prefixy11SubSequenceQzSiFSS_Tg5"(i64 %0, i64 %1, %swift.bridge* %2) local_unnamed_addr #0 {
entry:
  %3 = icmp slt i64 %0, 0
  br i1 %3, label %23, label %4, !prof !6

4:                                                ; preds = %entry
  %5 = ptrtoint %swift.bridge* %2 to i64
  %6 = and i64 %5, 2305843009213693952
  %7 = icmp eq i64 %6, 0
  %8 = lshr i64 %5, 56
  %9 = and i64 %8, 15
  %10 = select i1 %7, i64 %1, i64 %9
  %11 = shl i64 %10, 16
  %12 = and i64 %5, 1152921504606846976
  %13 = icmp ne i64 %12, 0
  %14 = and i64 %1, 576460752303423488
  %15 = icmp eq i64 %14, 0
  %or.cond = select i1 %13, i1 %15, i1 false
  %.v = select i1 %or.cond, i64 11, i64 7
  %16 = or i64 %11, %.v
  %17 = tail call swiftcc { i64, i8 } @"$sSS5index_8offsetBy07limitedC0SS5IndexVSgAE_SiAEtF"(i64 15, i64 %0, i64 %16, i64 %1, %swift.bridge* %2)
  %18 = extractvalue { i64, i8 } %17, 0
  %19 = extractvalue { i64, i8 } %17, 1
  %20 = and i8 %19, 1
  %.not = icmp eq i8 %20, 0
  %21 = select i1 %.not, i64 %18, i64 %16
  %22 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64 15, i64 %21, i64 %1, %swift.bridge* %2)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %2) #2
  ret { i64, i64, i64, %swift.bridge* } %22

23:                                               ; preds = %entry
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
define hidden swiftcc i1 @"$s7llvm_OZ6terms31sSbSS_tF"(i64 %0, %swift.bridge* %1) local_unnamed_addr #0 {
entry:
  %2 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %1) #2
  %3 = tail call swiftcc i64 @"$sSS5countSivg"(i64 %0, %swift.bridge* %1)
  %4 = tail call swiftcc i64 @"$sSS5countSivg"(i64 %0, %swift.bridge* %1)
  %5 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %4, i64 3)
  %6 = extractvalue { i64, i1 } %5, 1
  br i1 %6, label %44, label %7, !prof !6

7:                                                ; preds = %entry
  %8 = extractvalue { i64, i1 } %5, 0
  %9 = sdiv i64 %8, 2
  %10 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %3, i64 %9)
  %11 = extractvalue { i64, i1 } %10, 1
  br i1 %11, label %45, label %12, !prof !6

12:                                               ; preds = %7
  %13 = extractvalue { i64, i1 } %10, 0
  %14 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %13, i64 1)
  %15 = extractvalue { i64, i1 } %14, 1
  br i1 %15, label %46, label %16, !prof !6

16:                                               ; preds = %12
  %17 = extractvalue { i64, i1 } %14, 0
  %18 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSTsE6suffixySay7ElementQzGSiFSS_Tg5"(i64 %17, i64 %0, %swift.bridge* %1)
  %19 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %1) #2
  %20 = tail call swiftcc i64 @"$sSS5countSivg"(i64 %0, %swift.bridge* %1)
  %21 = tail call swiftcc i64 @"$sSS5countSivg"(i64 %0, %swift.bridge* %1)
  %22 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %21, i64 3)
  %23 = extractvalue { i64, i1 } %22, 1
  br i1 %23, label %47, label %24, !prof !6

24:                                               ; preds = %16
  %25 = extractvalue { i64, i1 } %22, 0
  %26 = sdiv i64 %25, 2
  %27 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %20, i64 %26)
  %28 = extractvalue { i64, i1 } %27, 1
  br i1 %28, label %48, label %29, !prof !6

29:                                               ; preds = %24
  %30 = extractvalue { i64, i1 } %27, 0
  %31 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %30, i64 1)
  %32 = extractvalue { i64, i1 } %31, 1
  br i1 %32, label %49, label %33, !prof !6

33:                                               ; preds = %29
  %34 = extractvalue { i64, i1 } %31, 0
  %35 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSKsE6suffixy11SubSequenceQzSiFSS_Tg5"(i64 %34, i64 %0, %swift.bridge* %1)
  %36 = extractvalue { i64, i64, i64, %swift.bridge* } %35, 0
  %37 = extractvalue { i64, i64, i64, %swift.bridge* } %35, 1
  %38 = extractvalue { i64, i64, i64, %swift.bridge* } %35, 2
  %39 = extractvalue { i64, i64, i64, %swift.bridge* } %35, 3
  %40 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSTsE8reversedSay7ElementQzGyFSs_Tg5"(i64 %36, i64 %37, i64 %38, %swift.bridge* %39)
  %41 = tail call swiftcc i1 @"$sSasSQRzlE2eeoiySbSayxG_ABtFZSJ_Tg5"(%Ts28__ContiguousArrayStorageBaseC* %18, %Ts28__ContiguousArrayStorageBaseC* %40)
  %42 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %40, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %42) #2
  %43 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %18, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %43) #2
  ret i1 %41

44:                                               ; preds = %entry
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable

45:                                               ; preds = %7
  tail call void asm sideeffect "", "n"(i32 1) #2
  tail call void @llvm.trap()
  unreachable

46:                                               ; preds = %12
  tail call void asm sideeffect "", "n"(i32 2) #2
  tail call void @llvm.trap()
  unreachable

47:                                               ; preds = %16
  tail call void asm sideeffect "", "n"(i32 3) #2
  tail call void @llvm.trap()
  unreachable

48:                                               ; preds = %24
  tail call void asm sideeffect "", "n"(i32 4) #2
  tail call void @llvm.trap()
  unreachable

49:                                               ; preds = %29
  tail call void asm sideeffect "", "n"(i32 5) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSTsE6suffixySay7ElementQzGSiFSS_Tg5"(i64 %0, i64 %1, %swift.bridge* %2) local_unnamed_addr #0 {
entry:
  %3 = alloca %Ts15ContiguousArrayV, align 8
  %4 = alloca %TSS8IteratorV, align 8
  %5 = alloca %Ts15ContiguousArrayV, align 8
  %6 = icmp slt i64 %0, 0
  br i1 %6, label %90, label %7, !prof !6

7:                                                ; preds = %entry
  %8 = icmp eq i64 %0, 0
  br i1 %8, label %9, label %10

9:                                                ; preds = %7
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %2) #2
  br label %30

10:                                               ; preds = %7
  %11 = bitcast %Ts15ContiguousArrayV* %3 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %11)
  %12 = tail call swiftcc i64 @"$sSS5countSivg"(i64 %1, %swift.bridge* %2)
  %13 = tail call i64 @llvm.smin.i64(i64 %12, i64 %0)
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %3, i64 0, i32 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %14 = tail call i64 @llvm.smax.i64(i64 %13, i64 0)
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSJ_Tg5"(i1 false, i64 %14, i1 false, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %3)
  %15 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %16 = bitcast %TSS8IteratorV* %4 to i8*
  call void @llvm.lifetime.start.p0i8(i64 32, i8* nonnull %16)
  %17 = ptrtoint %swift.bridge* %2 to i64
  %18 = and i64 %17, 2305843009213693952
  %19 = icmp eq i64 %18, 0
  %20 = lshr i64 %17, 56
  %21 = and i64 %20, 15
  %22 = and i64 %1, 281474976710655
  %23 = select i1 %19, i64 %22, i64 %21
  %._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSS8IteratorV, %TSS8IteratorV* %4, i64 0, i32 0, i32 0, i32 0, i32 0
  store i64 %1, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %TSS8IteratorV, %TSS8IteratorV* %4, i64 0, i32 0, i32 0, i32 1
  store %swift.bridge* %2, %swift.bridge** %._guts._object._object, align 8
  %._position._value = getelementptr inbounds %TSS8IteratorV, %TSS8IteratorV* %4, i64 0, i32 1, i32 0
  store i64 0, i64* %._position._value, align 8
  %._end._value = getelementptr inbounds %TSS8IteratorV, %TSS8IteratorV* %4, i64 0, i32 2, i32 0
  store i64 %23, i64* %._end._value, align 8
  %24 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %2) #2
  %25 = call swiftcc { i64, i64 } @"$sSS8IteratorV4nextSJSgyF"(%TSS8IteratorV* nocapture nonnull swiftself dereferenceable(32) %4)
  %26 = extractvalue { i64, i64 } %25, 1
  %27 = icmp eq i64 %26, 0
  br i1 %27, label %.outer._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %10, %.outer
  %28 = phi i64 [ %66, %.outer ], [ %26, %10 ]
  %29 = phi { i64, i64 } [ %65, %.outer ], [ %25, %10 ]
  %.ph2639 = phi %Ts28__ContiguousArrayStorageBaseC* [ %35, %.outer ], [ %15, %10 ]
  %.ph38 = phi i64 [ %64, %.outer ], [ 0, %10 ]
  br label %32

30:                                               ; preds = %9, %68, %80
  %31 = phi %Ts28__ContiguousArrayStorageBaseC* [ %89, %80 ], [ %.lcssa28, %68 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %9 ]
  ret %Ts28__ContiguousArrayStorageBaseC* %31

32:                                               ; preds = %.lr.ph, %48
  %33 = phi i64 [ %28, %.lr.ph ], [ %52, %48 ]
  %34 = phi { i64, i64 } [ %29, %.lr.ph ], [ %51, %48 ]
  %35 = phi %Ts28__ContiguousArrayStorageBaseC* [ %.ph2639, %.lr.ph ], [ %49, %48 ]
  %36 = extractvalue { i64, i64 } %34, 0
  %37 = inttoptr i64 %33 to %swift.bridge*
  %._storage7.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %35, i64 0, i32 1, i32 0, i32 0, i32 0
  %38 = load i64, i64* %._storage7.count._value, align 8, !range !7
  %39 = icmp slt i64 %38, %0
  br i1 %39, label %42, label %54

.outer._crit_edge:                                ; preds = %.outer, %48, %10
  %.ph.lcssa33 = phi i64 [ 0, %10 ], [ %.ph38, %48 ], [ %64, %.outer ]
  %.lcssa28 = phi %Ts28__ContiguousArrayStorageBaseC* [ %15, %10 ], [ %49, %48 ], [ %35, %.outer ]
  %40 = load %swift.bridge*, %swift.bridge** %._guts._object._object, align 8
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %40) #2
  call void @llvm.lifetime.end.p0i8(i64 32, i8* nonnull %16)
  %41 = icmp eq i64 %.ph.lcssa33, 0
  br i1 %41, label %68, label %69

42:                                               ; preds = %32
  store %Ts28__ContiguousArrayStorageBaseC* %35, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage12._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %35, i64 0, i32 1, i32 0, i32 1, i32 0
  %43 = load i64, i64* %._storage12._capacityAndFlags._value, align 8
  %44 = lshr i64 %43, 1
  %45 = add nuw nsw i64 %38, 1
  %.not24 = icmp ugt i64 %44, %38
  br i1 %.not24, label %48, label %46, !prof !8

46:                                               ; preds = %42
  %47 = icmp ugt i64 %43, 1
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSJ_Tg5"(i1 %47, i64 %45, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %3)
  %.pre = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %48

48:                                               ; preds = %42, %46
  %49 = phi %Ts28__ContiguousArrayStorageBaseC* [ %35, %42 ], [ %.pre, %46 ]
  %._storage13.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %49, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %45, i64* %._storage13.count._value, align 8
  %50 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %49, i64 1
  %tailaddr14 = bitcast %Ts28__ContiguousArrayStorageBaseC* %50 to %TSJ*
  %._str15._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %tailaddr14, i64 %38, i32 0, i32 0, i32 0, i32 0, i32 0
  store i64 %36, i64* %._str15._guts._object._countAndFlagsBits._value, align 8
  %._str15._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %tailaddr14, i64 %38, i32 0, i32 0, i32 0, i32 1
  store %swift.bridge* %37, %swift.bridge** %._str15._guts._object._object, align 8
  %51 = call swiftcc { i64, i64 } @"$sSS8IteratorV4nextSJSgyF"(%TSS8IteratorV* nocapture nonnull swiftself dereferenceable(32) %4)
  %52 = extractvalue { i64, i64 } %51, 1
  %53 = icmp eq i64 %52, 0
  br i1 %53, label %.outer._crit_edge, label %32

54:                                               ; preds = %32
  %55 = extractvalue { i64, i64 } %34, 0
  %56 = extractvalue { i64, i64 } %34, 1
  %57 = inttoptr i64 %56 to %swift.bridge*
  %58 = icmp slt i64 %.ph38, 0
  br i1 %58, label %94, label %59, !prof !6

59:                                               ; preds = %54
  %.not = icmp ult i64 %.ph38, %38
  br i1 %.not, label %.outer, label %95, !prof !8

.outer:                                           ; preds = %59
  %60 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %35, i64 1
  %tailaddr9 = bitcast %Ts28__ContiguousArrayStorageBaseC* %60 to %TSJ*
  %._str._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %tailaddr9, i64 %.ph38, i32 0, i32 0, i32 0, i32 1
  %61 = load %swift.bridge*, %swift.bridge** %._str._guts._object._object, align 8
  %62 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* nonnull returned %57) #2
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %61) #2
  %._str10._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %tailaddr9, i64 %.ph38, i32 0, i32 0, i32 0, i32 0, i32 0
  store i64 %55, i64* %._str10._guts._object._countAndFlagsBits._value, align 8
  store %swift.bridge* %57, %swift.bridge** %._str._guts._object._object, align 8
  tail call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %57) #2
  %63 = add nuw nsw i64 %.ph38, 1
  %64 = srem i64 %63, %0
  %65 = call swiftcc { i64, i64 } @"$sSS8IteratorV4nextSJSgyF"(%TSS8IteratorV* nocapture nonnull swiftself dereferenceable(32) %4)
  %66 = extractvalue { i64, i64 } %65, 1
  %67 = icmp eq i64 %66, 0
  br i1 %67, label %.outer._crit_edge, label %.lr.ph

68:                                               ; preds = %.outer._crit_edge
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %2) #2
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %11)
  br label %30

69:                                               ; preds = %.outer._crit_edge
  %70 = bitcast %Ts15ContiguousArrayV* %5 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %70)
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %.lcssa28, i64 0, i32 1, i32 0, i32 0, i32 0
  %71 = load i64, i64* %._storage.count._value, align 8, !range !7
  %._buffer3._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %5, i64 0, i32 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %._buffer3._storage, align 8
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSJ_Tg5"(i1 false, i64 %71, i1 false, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %5)
  %72 = icmp slt i64 %71, %.ph.lcssa33
  br i1 %72, label %91, label %73, !prof !6

73:                                               ; preds = %69
  %74 = icmp slt i64 %.ph.lcssa33, 0
  br i1 %74, label %92, label %75, !prof !6

75:                                               ; preds = %73
  %76 = load i64, i64* %._storage.count._value, align 8, !range !7
  %77 = icmp ult i64 %76, %.ph.lcssa33
  %78 = icmp ult i64 %76, %71
  %79 = or i1 %77, %78
  br i1 %79, label %93, label %80, !prof !6

80:                                               ; preds = %75
  %81 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %.lcssa28, i64 0, i32 0
  %82 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %.lcssa28, i64 1
  %83 = bitcast %Ts28__ContiguousArrayStorageBaseC* %82 to i8*
  %84 = shl nuw i64 %71, 1
  %85 = or i64 %84, 1
  %86 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %81) #15
  call swiftcc void @"$ss15ContiguousArrayV6append10contentsOfyqd__n_t7ElementQyd__RszSTRd__lFSJ_s0B5SliceVySJGTg5"(%swift.refcounted* %81, i8* nonnull %83, i64 %.ph.lcssa33, i64 %85, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %5)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %2) #2
  %87 = shl nuw i64 %.ph.lcssa33, 1
  %88 = or i64 %87, 1
  call swiftcc void @"$ss15ContiguousArrayV6append10contentsOfyqd__n_t7ElementQyd__RszSTRd__lFSJ_s0B5SliceVySJGTg5"(%swift.refcounted* %81, i8* nonnull %83, i64 0, i64 %88, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %5)
  %89 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer3._storage, align 8
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %70)
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %11)
  br label %30

90:                                               ; preds = %entry
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable

91:                                               ; preds = %69
  tail call void asm sideeffect "", "n"(i32 1) #2
  tail call void @llvm.trap()
  unreachable

92:                                               ; preds = %73
  tail call void asm sideeffect "", "n"(i32 2) #2
  tail call void @llvm.trap()
  unreachable

93:                                               ; preds = %75
  tail call void asm sideeffect "", "n"(i32 3) #2
  tail call void @llvm.trap()
  unreachable

94:                                               ; preds = %54
  tail call void asm sideeffect "", "n"(i32 4) #2
  tail call void @llvm.trap()
  unreachable

95:                                               ; preds = %59
  tail call void asm sideeffect "", "n"(i32 5) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc { i64, i64, i64, %swift.bridge* } @"$sSKsE6suffixy11SubSequenceQzSiFSS_Tg5"(i64 %0, i64 %1, %swift.bridge* %2) local_unnamed_addr #0 {
entry:
  %3 = icmp slt i64 %0, 0
  br i1 %3, label %27, label %4, !prof !6

4:                                                ; preds = %entry
  %5 = ptrtoint %swift.bridge* %2 to i64
  %6 = and i64 %5, 2305843009213693952
  %7 = icmp eq i64 %6, 0
  %8 = lshr i64 %5, 56
  %9 = and i64 %8, 15
  %10 = select i1 %7, i64 %1, i64 %9
  %11 = shl i64 %10, 16
  %12 = and i64 %5, 1152921504606846976
  %13 = icmp ne i64 %12, 0
  %14 = and i64 %1, 576460752303423488
  %15 = icmp eq i64 %14, 0
  %or.cond = select i1 %13, i1 %15, i1 false
  %.v = select i1 %or.cond, i64 11, i64 7
  %16 = or i64 %11, %.v
  %17 = sub nsw i64 0, %0
  %18 = tail call swiftcc { i64, i8 } @"$sSS5index_8offsetBy07limitedC0SS5IndexVSgAE_SiAEtF"(i64 %16, i64 %17, i64 15, i64 %1, %swift.bridge* %2)
  %19 = extractvalue { i64, i8 } %18, 0
  %20 = extractvalue { i64, i8 } %18, 1
  %21 = and i8 %20, 1
  %.not = icmp eq i8 %21, 0
  %. = select i1 %.not, i64 %19, i64 15
  %22 = lshr exact i64 %11, 14
  %23 = lshr i64 %., 14
  %24 = icmp ult i64 %22, %23
  br i1 %24, label %28, label %25, !prof !6

25:                                               ; preds = %4
  %26 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64 %., i64 %16, i64 %1, %swift.bridge* %2)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %2) #2
  ret { i64, i64, i64, %swift.bridge* } %26

27:                                               ; preds = %entry
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable

28:                                               ; preds = %4
  tail call void asm sideeffect "", "n"(i32 2) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSTsE8reversedSay7ElementQzGyFSs_Tg5"(i64 %0, i64 %1, i64 %2, %swift.bridge* %3) local_unnamed_addr #0 {
entry:
  %4 = tail call swiftcc i64 @"$sSs8distance4from2toSiSS5IndexV_AEtF"(i64 %0, i64 %1, i64 %0, i64 %1, i64 %2, %swift.bridge* %3)
  %5 = icmp eq i64 %4, 0
  br i1 %5, label %10, label %.lr.ph

.lr.ph:                                           ; preds = %entry
  %6 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV19_uninitializedCount15minimumCapacityAByxGSi_SitcfCSJ_Tgq5"(i64 %4, i64 0)
  %7 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %6, i64 1
  %8 = bitcast %Ts28__ContiguousArrayStorageBaseC* %7 to %TSJ*
  %smax = tail call i64 @llvm.smax.i64(i64 %4, i64 0)
  %9 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %3) #2
  br label %15

10:                                               ; preds = %entry, %.thread
  %11 = phi %Ts28__ContiguousArrayStorageBaseC* [ %6, %.thread ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %entry ]
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %11, i64 0, i32 1, i32 0, i32 0, i32 0
  %12 = load i64, i64* %._storage.count._value, align 8, !range !7
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %3) #2
  %13 = lshr i64 %12, 1
  %14 = icmp ult i64 %12, 2
  br i1 %14, label %.loopexit, label %.preheader.preheader

15:                                               ; preds = %.lr.ph, %22
  %16 = phi i64 [ 0, %.lr.ph ], [ %23, %22 ]
  %17 = phi i64 [ %0, %.lr.ph ], [ %27, %22 ]
  %18 = phi %TSJ* [ %8, %.lr.ph ], [ %28, %22 ]
  %exitcond.not = icmp eq i64 %16, %smax
  br i1 %exitcond.not, label %61, label %19, !prof !6

19:                                               ; preds = %15
  %.unshifted = xor i64 %17, %1
  %20 = icmp ult i64 %.unshifted, 16384
  br i1 %20, label %21, label %22

21:                                               ; preds = %19
  %.not = icmp eq i64 %16, %4
  br i1 %.not, label %.thread, label %62, !prof !8

.thread:                                          ; preds = %22, %21
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %3) #2
  br label %10

22:                                               ; preds = %19
  %23 = add nuw i64 %16, 1
  %24 = tail call swiftcc { i64, %swift.bridge* } @"$sSsySJSS5IndexVcig"(i64 %17, i64 %0, i64 %1, i64 %2, %swift.bridge* %3)
  %25 = extractvalue { i64, %swift.bridge* } %24, 0
  %26 = extractvalue { i64, %swift.bridge* } %24, 1
  %27 = tail call swiftcc i64 @"$sSs5index5afterSS5IndexVAD_tF"(i64 %17, i64 %0, i64 %1, i64 %2, %swift.bridge* %3)
  %._str._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %18, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0
  store i64 %25, i64* %._str._guts._object._countAndFlagsBits._value, align 8
  %._str._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %18, i64 0, i32 0, i32 0, i32 0, i32 1
  store %swift.bridge* %26, %swift.bridge** %._str._guts._object._object, align 8
  %28 = getelementptr inbounds %TSJ, %TSJ* %18, i64 1
  %29 = icmp eq i64 %23, %4
  br i1 %29, label %.thread, label %15

.loopexit:                                        ; preds = %58, %10
  %30 = phi %Ts28__ContiguousArrayStorageBaseC* [ %11, %10 ], [ %59, %58 ]
  ret %Ts28__ContiguousArrayStorageBaseC* %30

.preheader.preheader:                             ; preds = %10, %58
  %31 = phi i64 [ %33, %58 ], [ 0, %10 ]
  %32 = phi %Ts28__ContiguousArrayStorageBaseC* [ %59, %58 ], [ %11, %10 ]
  %33 = add nuw nsw i64 %31, 1
  %34 = sub nsw i64 %12, %33
  %35 = icmp eq i64 %31, %34
  br i1 %35, label %58, label %36

36:                                               ; preds = %.preheader.preheader
  %._storage1.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %32, i64 0, i32 1, i32 0, i32 0, i32 0
  %37 = load i64, i64* %._storage1.count._value, align 8, !range !7
  %.not16 = icmp ult i64 %31, %37
  br i1 %.not16, label %38, label %63, !prof !8

38:                                               ; preds = %36
  %39 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %32, i64 1
  %tailaddr2 = bitcast %Ts28__ContiguousArrayStorageBaseC* %39 to %TSJ*
  %._str3._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %tailaddr2, i64 %31, i32 0, i32 0, i32 0, i32 0, i32 0
  %40 = load i64, i64* %._str3._guts._object._countAndFlagsBits._value, align 8
  %._str3._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %tailaddr2, i64 %31, i32 0, i32 0, i32 0, i32 1
  %41 = load %swift.bridge*, %swift.bridge** %._str3._guts._object._object, align 8
  %.not17 = icmp ult i64 %34, %37
  br i1 %.not17, label %42, label %64, !prof !8

42:                                               ; preds = %38
  %._str4._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %tailaddr2, i64 %34, i32 0, i32 0, i32 0, i32 0, i32 0
  %43 = load i64, i64* %._str4._guts._object._countAndFlagsBits._value, align 8
  %._str4._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %tailaddr2, i64 %34, i32 0, i32 0, i32 0, i32 1
  %44 = load %swift.bridge*, %swift.bridge** %._str4._guts._object._object, align 8
  %45 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %32, i64 0, i32 0
  %46 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %41) #2
  %47 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %44) #2
  %48 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %45) #15
  br i1 %48, label %51, label %49

49:                                               ; preds = %42
  %50 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSJ_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %32)
  br label %51

51:                                               ; preds = %42, %49
  %52 = phi %Ts28__ContiguousArrayStorageBaseC* [ %50, %49 ], [ %32, %42 ]
  %53 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %52, i64 1
  %tailaddr5 = bitcast %Ts28__ContiguousArrayStorageBaseC* %53 to %TSJ*
  %._str6._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %tailaddr5, i64 %31, i32 0, i32 0, i32 0, i32 1
  %54 = load %swift.bridge*, %swift.bridge** %._str6._guts._object._object, align 8
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %54) #2
  %._str7._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %tailaddr5, i64 %31, i32 0, i32 0, i32 0, i32 0, i32 0
  store i64 %43, i64* %._str7._guts._object._countAndFlagsBits._value, align 8
  store %swift.bridge* %44, %swift.bridge** %._str6._guts._object._object, align 8
  %._storage8.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %52, i64 0, i32 1, i32 0, i32 0, i32 0
  %55 = load i64, i64* %._storage8.count._value, align 8, !range !7
  %.not18 = icmp ult i64 %34, %55
  br i1 %.not18, label %56, label %65, !prof !8

56:                                               ; preds = %51
  %._str9._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %tailaddr5, i64 %34, i32 0, i32 0, i32 0, i32 1
  %57 = load %swift.bridge*, %swift.bridge** %._str9._guts._object._object, align 8
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %57) #2
  %._str10._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %tailaddr5, i64 %34, i32 0, i32 0, i32 0, i32 0, i32 0
  store i64 %40, i64* %._str10._guts._object._countAndFlagsBits._value, align 8
  store %swift.bridge* %41, %swift.bridge** %._str9._guts._object._object, align 8
  br label %58

58:                                               ; preds = %.preheader.preheader, %56
  %59 = phi %Ts28__ContiguousArrayStorageBaseC* [ %52, %56 ], [ %32, %.preheader.preheader ]
  %60 = icmp eq i64 %33, %13
  br i1 %60, label %.loopexit, label %.preheader.preheader

61:                                               ; preds = %15
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable

62:                                               ; preds = %21
  tail call void asm sideeffect "", "n"(i32 2) #2
  tail call void @llvm.trap()
  unreachable

63:                                               ; preds = %36
  tail call void asm sideeffect "", "n"(i32 7) #2
  tail call void @llvm.trap()
  unreachable

64:                                               ; preds = %38
  tail call void asm sideeffect "", "n"(i32 8) #2
  tail call void @llvm.trap()
  unreachable

65:                                               ; preds = %51
  tail call void asm sideeffect "", "n"(i32 9) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc i1 @"$sSasSQRzlE2eeoiySbSayxG_ABtFZSJ_Tg5"(%Ts28__ContiguousArrayStorageBaseC* %0, %Ts28__ContiguousArrayStorageBaseC* %1) local_unnamed_addr #0 {
entry:
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 0, i32 1, i32 0, i32 0, i32 0
  %2 = load i64, i64* %._storage.count._value, align 8, !range !7
  %._storage1.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %1, i64 0, i32 1, i32 0, i32 0, i32 0
  %3 = load i64, i64* %._storage1.count._value, align 8, !range !7
  %4 = icmp eq i64 %2, %3
  br i1 %4, label %5, label %.loopexit

5:                                                ; preds = %entry
  %6 = icmp eq i64 %2, 0
  br i1 %6, label %.loopexit, label %7

7:                                                ; preds = %5
  %8 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 1
  %tailaddr = bitcast %Ts28__ContiguousArrayStorageBaseC* %8 to %TSJ*
  %9 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %1, i64 1
  %tailaddr2 = bitcast %Ts28__ContiguousArrayStorageBaseC* %9 to %TSJ*
  %10 = icmp eq %Ts28__ContiguousArrayStorageBaseC* %0, %1
  br i1 %10, label %.loopexit, label %12

.loopexit:                                        ; preds = %36, %34, %21, %23, %7, %5, %entry
  %11 = phi i1 [ false, %entry ], [ true, %5 ], [ true, %7 ], [ true, %23 ], [ false, %21 ], [ true, %36 ], [ false, %34 ]
  ret i1 %11

12:                                               ; preds = %7
  %tailaddr._str._guts._object._countAndFlagsBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %8 to i64*
  %13 = load i64, i64* %tailaddr._str._guts._object._countAndFlagsBits._value, align 8
  %tailaddr._str._guts._object._object = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 1, i32 0, i32 1
  %14 = bitcast i64* %tailaddr._str._guts._object._object to %swift.bridge**
  %15 = load %swift.bridge*, %swift.bridge** %14, align 8
  %tailaddr2._str._guts._object._countAndFlagsBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %9 to i64*
  %16 = load i64, i64* %tailaddr2._str._guts._object._countAndFlagsBits._value, align 8
  %tailaddr2._str._guts._object._object = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %1, i64 1, i32 0, i32 1
  %17 = bitcast i64* %tailaddr2._str._guts._object._object to %swift.bridge**
  %18 = load %swift.bridge*, %swift.bridge** %17, align 8
  %19 = icmp eq i64 %13, %16
  %20 = icmp eq %swift.bridge* %15, %18
  %or.cond = select i1 %19, i1 %20, i1 false
  br i1 %or.cond, label %23, label %21

21:                                               ; preds = %12
  %22 = tail call swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64 %13, %swift.bridge* %15, i64 %16, %swift.bridge* %18, i8 0)
  br i1 %22, label %23, label %.loopexit

23:                                               ; preds = %12, %21
  %24 = icmp eq i64 %2, 1
  br i1 %24, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %23, %36
  %25 = phi i64 [ %27, %36 ], [ 1, %23 ]
  %.not17 = icmp ult i64 %25, %2
  br i1 %.not17, label %26, label %38, !prof !8

26:                                               ; preds = %.preheader
  %27 = add nuw nsw i64 %25, 1
  %._str._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %tailaddr, i64 %25, i32 0, i32 0, i32 0, i32 0, i32 0
  %28 = load i64, i64* %._str._guts._object._countAndFlagsBits._value, align 8
  %._str._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %tailaddr, i64 %25, i32 0, i32 0, i32 0, i32 1
  %29 = load %swift.bridge*, %swift.bridge** %._str._guts._object._object, align 8
  %._str3._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %tailaddr2, i64 %25, i32 0, i32 0, i32 0, i32 0, i32 0
  %30 = load i64, i64* %._str3._guts._object._countAndFlagsBits._value, align 8
  %._str3._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %tailaddr2, i64 %25, i32 0, i32 0, i32 0, i32 1
  %31 = load %swift.bridge*, %swift.bridge** %._str3._guts._object._object, align 8
  %32 = icmp eq i64 %28, %30
  %33 = icmp eq %swift.bridge* %29, %31
  %or.cond19 = select i1 %32, i1 %33, i1 false
  br i1 %or.cond19, label %36, label %34

34:                                               ; preds = %26
  %35 = tail call swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64 %28, %swift.bridge* %29, i64 %30, %swift.bridge* %31, i8 0)
  br i1 %35, label %36, label %.loopexit

36:                                               ; preds = %26, %34
  %37 = icmp eq i64 %27, %2
  br i1 %37, label %.loopexit, label %.preheader

38:                                               ; preds = %.preheader
  tail call void asm sideeffect "", "n"(i32 2) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
define hidden swiftcc void @"$s7llvm_OZ4mainyyF"() local_unnamed_addr #0 {
entry:
  %0 = alloca %Ts18ReversedCollectionVySSG, align 8
  %1 = tail call swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1 true)
  %2 = extractvalue { i64, i64 } %1, 0
  %3 = extractvalue { i64, i64 } %1, 1
  %4 = icmp eq i64 %3, 0
  br i1 %4, label %37, label %5

5:                                                ; preds = %entry
  %6 = inttoptr i64 %3 to %swift.bridge*
  %7 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #14
  %8 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %7, i64 64, i64 7) #2
  %9 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %8, i64 1
  %._storage.count._value = bitcast %swift.refcounted* %9 to i64*
  store i64 1, i64* %._storage.count._value, align 8
  %._storage._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %8, i64 1, i32 1
  store i64 2, i64* %._storage._capacityAndFlags, align 8
  %10 = bitcast %Ts18ReversedCollectionVySSG* %0 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %10)
  %._base._guts._object._countAndFlagsBits._value = getelementptr inbounds %Ts18ReversedCollectionVySSG, %Ts18ReversedCollectionVySSG* %0, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0
  store i64 %2, i64* %._base._guts._object._countAndFlagsBits._value, align 8
  %._base._guts._object._object = getelementptr inbounds %Ts18ReversedCollectionVySSG, %Ts18ReversedCollectionVySSG* %0, i64 0, i32 0, i32 0, i32 0, i32 1
  store %swift.bridge* %6, %swift.bridge** %._base._guts._object._object, align 8
  %11 = bitcast %Ts18ReversedCollectionVySSG* %0 to %swift.opaque*
  %12 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* nonnull returned %6) #2
  %13 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss18ReversedCollectionVySSGMD") #14
  %14 = call i8** @"$ss18ReversedCollectionVySSGAByxGSTsWlTm"(i8*** @"$ss18ReversedCollectionVySSGAByxGSTsWL", { i32, i32 }* @"$ss18ReversedCollectionVySSGMD")
  %15 = call swiftcc { i64, %swift.bridge* } @"$sSSySSxcSTRzSJ7ElementRtzlufC"(%swift.opaque* noalias nocapture nonnull %11, %swift.type* %13, i8** %14)
  %16 = extractvalue { i64, %swift.bridge* } %15, 0
  %17 = extractvalue { i64, %swift.bridge* } %15, 1
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %10)
  %18 = icmp eq i64 %2, %16
  %19 = ptrtoint %swift.bridge* %17 to i64
  %20 = icmp eq i64 %3, %19
  %or.cond = select i1 %18, i1 %20, i1 false
  br i1 %or.cond, label %21, label %22

21:                                               ; preds = %5
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %17) #2
  br label %24

22:                                               ; preds = %5
  %23 = tail call swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64 %2, %swift.bridge* nonnull %6, i64 %16, %swift.bridge* %17, i8 0)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %17) #2
  br i1 %23, label %24, label %28

24:                                               ; preds = %22, %21
  %25 = tail call swiftcc i1 @"$s7llvm_OZ6terms21sSbSS_tF"(i64 %2, %swift.bridge* nonnull %6)
  br i1 %25, label %26, label %28

26:                                               ; preds = %24
  %27 = tail call swiftcc i1 @"$s7llvm_OZ6terms31sSbSS_tF"(i64 %2, %swift.bridge* nonnull %6)
  br i1 %27, label %29, label %28

28:                                               ; preds = %26, %24, %22
  br label %29

29:                                               ; preds = %26, %28
  %30 = phi i64 [ 28494, %28 ], [ 7562585, %26 ]
  %31 = phi %swift.bridge* [ inttoptr (i64 -2161727821137838080 to %swift.bridge*), %28 ], [ inttoptr (i64 -2089670227099910144 to %swift.bridge*), %26 ]
  %32 = bitcast %swift.refcounted* %8 to %Ts28__ContiguousArrayStorageBaseC*
  %33 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %8, i64 2
  %34 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %8, i64 3, i32 1
  %35 = bitcast i64* %34 to %swift.type**
  store %swift.type* @"$sSSN", %swift.type** %35, align 8
  %._guts._object._countAndFlagsBits._value = bitcast %swift.refcounted* %33 to i64*
  store i64 %30, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %swift.refcounted, %swift.refcounted* %8, i64 2, i32 1
  %36 = bitcast i64* %._guts._object._object to %swift.bridge**
  store %swift.bridge* %31, %swift.bridge** %36, align 8
  tail call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %32, i64 32, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i64 10, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*))
  tail call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %6) #2
  tail call void @swift_release(%swift.refcounted* nonnull %8) #2
  ret void

37:                                               ; preds = %entry
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: argmemonly mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.lifetime.start.p0i8(i64 immarg, i8* nocapture) #1

; Function Attrs: minsize optsize
declare swiftcc { i64, %swift.bridge* } @"$sSSySSxcSTRzSJ7ElementRtzlufC"(%swift.opaque* noalias nocapture, %swift.type*, i8**) local_unnamed_addr #0

; Function Attrs: nounwind
declare %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned) local_unnamed_addr #2

; Function Attrs: minsize mustprogress nofree noinline nounwind optsize readonly willreturn
define linkonce_odr hidden %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* %0) local_unnamed_addr #3 {
entry:
  %1 = bitcast { i32, i32 }* %0 to i64*
  %2 = load atomic i64, i64* %1 monotonic, align 8
  %3 = icmp slt i64 %2, 0
  br i1 %3, label %7, label %4, !prof !6

4:                                                ; preds = %7, %entry
  %5 = phi i64 [ %2, %entry ], [ %15, %7 ]
  %6 = inttoptr i64 %5 to %swift.type*
  ret %swift.type* %6

7:                                                ; preds = %entry
  %8 = ashr i64 %2, 32
  %9 = sub nsw i64 0, %8
  %sext = shl i64 %2, 32
  %10 = ashr exact i64 %sext, 32
  %11 = ptrtoint { i32, i32 }* %0 to i64
  %12 = add i64 %10, %11
  %13 = inttoptr i64 %12 to i8*
  %14 = tail call swiftcc %swift.type* @swift_getTypeByMangledNameInContext2(i8* %13, i64 %9, %swift.type_descriptor* null, i8** null) #16
  %15 = ptrtoint %swift.type* %14 to i64
  store atomic i64 %15, i64* %1 monotonic, align 8
  br label %4
}

; Function Attrs: argmemonly nounwind
declare swiftcc %swift.type* @swift_getTypeByMangledNameInContext2(i8*, i64, %swift.type_descriptor*, i8**) local_unnamed_addr #4

; Function Attrs: minsize mustprogress nofree noinline nounwind optsize readonly willreturn
define linkonce_odr hidden %swift.type* @__swift_instantiateConcreteTypeFromMangledNameAbstract({ i32, i32 }* %0) local_unnamed_addr #3 {
entry:
  %1 = bitcast { i32, i32 }* %0 to i64*
  %2 = load atomic i64, i64* %1 monotonic, align 8
  %3 = icmp slt i64 %2, 0
  br i1 %3, label %7, label %4, !prof !6

4:                                                ; preds = %7, %entry
  %5 = phi i64 [ %2, %entry ], [ %15, %7 ]
  %6 = inttoptr i64 %5 to %swift.type*
  ret %swift.type* %6

7:                                                ; preds = %entry
  %8 = ashr i64 %2, 32
  %9 = sub nsw i64 0, %8
  %sext = shl i64 %2, 32
  %10 = ashr exact i64 %sext, 32
  %11 = ptrtoint { i32, i32 }* %0 to i64
  %12 = add i64 %10, %11
  %13 = inttoptr i64 %12 to i8*
  %14 = tail call swiftcc %swift.type* @swift_getTypeByMangledNameInContextInMetadataState2(i64 255, i8* %13, i64 %9, %swift.type_descriptor* null, i8** null) #16
  %15 = ptrtoint %swift.type* %14 to i64
  store atomic i64 %15, i64* %1 monotonic, align 8
  br label %4
}

; Function Attrs: argmemonly nounwind
declare swiftcc %swift.type* @swift_getTypeByMangledNameInContextInMetadataState2(i64, i8*, i64, %swift.type_descriptor*, i8**) local_unnamed_addr #4

; Function Attrs: nofree nounwind readonly
declare i8** @swift_getWitnessTable(%swift.protocol_conformance_descriptor*, %swift.type*, i8***) local_unnamed_addr #5

; Function Attrs: argmemonly mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.lifetime.end.p0i8(i64 immarg, i8* nocapture) #1

; Function Attrs: minsize optsize
declare swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64, %swift.bridge*, i64, %swift.bridge*, i8) local_unnamed_addr #0

; Function Attrs: nounwind
declare void @swift_bridgeObjectRelease(%swift.bridge*) local_unnamed_addr #2

; Function Attrs: minsize optsize
declare swiftcc i64 @"$sSS5countSivg"(i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind readnone speculatable willreturn
declare { i64, i1 } @llvm.ssub.with.overflow.i64(i64, i64) #6

; Function Attrs: cold noreturn nounwind
declare void @llvm.trap() #7

; Function Attrs: minsize nofree noinline nosync nounwind optsize readnone
define internal i8** @"$ss18ReversedCollectionVySSGAByxGSTsWlTm"(i8*** %0, { i32, i32 }* %1) local_unnamed_addr #8 {
entry:
  %2 = load i8**, i8*** %0, align 8
  %3 = icmp eq i8** %2, null
  br i1 %3, label %cacheIsNull, label %cont

cacheIsNull:                                      ; preds = %entry
  %4 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledNameAbstract({ i32, i32 }* nonnull %1) #14
  %5 = tail call i8** @swift_getWitnessTable(%swift.protocol_conformance_descriptor* nonnull @"$ss18ReversedCollectionVyxGSTsMc", %swift.type* %4, i8*** undef) #14
  store atomic i8** %5, i8*** %0 release, align 8
  br label %cont

cont:                                             ; preds = %cacheIsNull, %entry
  %6 = phi i8** [ %2, %entry ], [ %5, %cacheIsNull ]
  ret i8** %6
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc i1 @"$sSysE2eeoiySbx_qd__tSyRd__lFZSs_SSTgq5"(i64 %0, i64 %1, i64 %2, %swift.bridge* %3, i64 %4, %swift.bridge* %5, %swift.type* swiftself %6) local_unnamed_addr #0 {
entry:
  %7 = ptrtoint %swift.bridge* %5 to i64
  %8 = and i64 %7, 2305843009213693952
  %9 = icmp eq i64 %8, 0
  %10 = lshr i64 %7, 56
  %11 = and i64 %10, 15
  %12 = select i1 %9, i64 %4, i64 %11
  %13 = and i64 %12, 281474976710655
  %14 = lshr i64 %0, 16
  %15 = lshr i64 %1, 16
  %16 = icmp eq i64 %2, %4
  br i1 %16, label %17, label %23

17:                                               ; preds = %entry
  %18 = icmp eq %swift.bridge* %3, %5
  %19 = icmp ult i64 %0, 65536
  %or.cond4 = select i1 %18, i1 %19, i1 false
  %20 = icmp eq i64 %15, %13
  %or.cond5 = select i1 %or.cond4, i1 %20, i1 false
  br i1 %or.cond5, label %21, label %23

21:                                               ; preds = %17, %23
  %22 = phi i1 [ %24, %23 ], [ true, %17 ]
  ret i1 %22

23:                                               ; preds = %17, %entry
  %24 = tail call swiftcc i1 @"$ss22_stringCompareInternal____9expectingSbs11_StringGutsV_SnySiGAdEs01_E16ComparisonResultOtF"(i64 %2, %swift.bridge* %3, i64 %14, i64 %15, i64 %4, %swift.bridge* %5, i64 0, i64 %13, i8 0)
  br label %21
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind readnone speculatable willreturn
declare { i64, i1 } @llvm.sadd.with.overflow.i64(i64, i64) #6

; Function Attrs: nounwind
declare void @swift_release(%swift.refcounted*) local_unnamed_addr #2

; Function Attrs: minsize optsize
declare swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1) local_unnamed_addr #0

; Function Attrs: nounwind
declare %swift.refcounted* @swift_allocObject(%swift.type*, i64, i64) local_unnamed_addr #2

; Function Attrs: minsize optsize
declare swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC*, i64, %swift.bridge*, i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: minsize optsize
declare swiftcc i64 @"$sSs8distance4from2toSiSS5IndexV_AEtF"(i64, i64, i64, i64, i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc void @"$ss15ContiguousArrayV6append10contentsOfyqd__n_t7ElementQyd__RszSTRd__lFSJ_s0B5SliceVySJGTg5"(%swift.refcounted* %0, i8* %1, i64 %2, i64 %3, %Ts15ContiguousArrayV* nocapture swiftself dereferenceable(8) %4) local_unnamed_addr #0 {
entry:
  %5 = lshr i64 %3, 1
  %6 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %5, i64 %2)
  %7 = extractvalue { i64, i1 } %6, 0
  %8 = extractvalue { i64, i1 } %6, 1
  br i1 %8, label %109, label %9, !prof !6

9:                                                ; preds = %entry
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %4, i64 0, i32 0, i32 0
  %10 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %10, i64 0, i32 1, i32 0, i32 0, i32 0
  %11 = load i64, i64* %._storage.count._value, align 8, !range !7
  %12 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %11, i64 %7)
  %13 = extractvalue { i64, i1 } %12, 1
  br i1 %13, label %110, label %14, !prof !6

14:                                               ; preds = %9
  %15 = extractvalue { i64, i1 } %12, 0
  tail call swiftcc void @"$ss15ContiguousArrayV20_reserveCapacityImpl07minimumD013growForAppendySi_SbtFSJ_Tg5"(i64 %15, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %4)
  %16 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage1.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 0, i32 1, i32 0, i32 0, i32 0
  %17 = load i64, i64* %._storage1.count._value, align 8, !range !7
  %._storage1._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 0, i32 1, i32 0, i32 1, i32 0
  %18 = load i64, i64* %._storage1._capacityAndFlags._value, align 8
  %19 = lshr i64 %18, 1
  %20 = sub nsw i64 %19, %17
  %21 = icmp eq i64 %5, %2
  br i1 %21, label %22, label %32

22:                                               ; preds = %14
  %23 = icmp sgt i64 %7, 0
  br i1 %23, label %112, label %.thread28, !prof !6

24:                                               ; preds = %32
  %25 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 1
  %tailaddr = bitcast %Ts28__ContiguousArrayStorageBaseC* %25 to %TSJ*
  %26 = getelementptr inbounds %TSJ, %TSJ* %tailaddr, i64 %17
  %27 = bitcast i8* %1 to %TSJ*
  %28 = getelementptr inbounds %TSJ, %TSJ* %27, i64 %2
  %29 = bitcast %TSJ* %26 to %swift.opaque*
  %30 = bitcast %TSJ* %28 to %swift.opaque*
  tail call void @swift_arrayInitWithCopy(%swift.opaque* nonnull %29, %swift.opaque* %30, i64 %7, %swift.type* nonnull @"$sSJN") #15
  %31 = icmp sgt i64 %7, 0
  br i1 %31, label %34, label %.thread28

32:                                               ; preds = %14
  %33 = icmp slt i64 %20, %7
  br i1 %33, label %111, label %24, !prof !6

34:                                               ; preds = %24
  %35 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage11.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %35, i64 0, i32 1, i32 0, i32 0, i32 0
  %36 = load i64, i64* %._storage11.count._value, align 8, !range !7
  %37 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %36, i64 %7)
  %38 = extractvalue { i64, i1 } %37, 1
  br i1 %38, label %114, label %39, !prof !6

39:                                               ; preds = %34
  %40 = extractvalue { i64, i1 } %37, 0
  store i64 %40, i64* %._storage11.count._value, align 8
  br label %.thread28

.thread28:                                        ; preds = %22, %24, %39
  %41 = phi i64 [ %5, %24 ], [ %5, %39 ], [ %2, %22 ]
  %42 = phi i64 [ %7, %24 ], [ %7, %39 ], [ 0, %22 ]
  %43 = icmp eq i64 %42, %20
  br i1 %43, label %44, label %108

44:                                               ; preds = %.thread28
  %45 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage3.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %45, i64 0, i32 1, i32 0, i32 0, i32 0
  %46 = load i64, i64* %._storage3.count._value, align 8
  %47 = icmp eq i64 %41, %5
  br i1 %47, label %108, label %48

48:                                               ; preds = %44
  %49 = icmp slt i64 %41, %2
  %50 = icmp sge i64 %41, %5
  %51 = or i1 %49, %50
  br i1 %51, label %113, label %52, !prof !6

52:                                               ; preds = %48
  %53 = bitcast i8* %1 to %TSJ*
  %54 = add nsw i64 %41, 1
  %._str._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %53, i64 %41, i32 0, i32 0, i32 0, i32 1
  %55 = load %swift.bridge*, %swift.bridge** %._str._guts._object._object, align 8
  %._str._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %53, i64 %41, i32 0, i32 0, i32 0, i32 0, i32 0
  %56 = load i64, i64* %._str._guts._object._countAndFlagsBits._value, align 8
  %57 = ptrtoint %swift.bridge* %55 to i64
  %58 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %55) #2
  br label %59

59:                                               ; preds = %102, %52
  %60 = phi i64 [ %46, %52 ], [ %103, %102 ]
  %61 = phi i64 [ %56, %52 ], [ %104, %102 ]
  %62 = phi i64 [ %57, %52 ], [ %105, %102 ]
  %63 = phi i64 [ %54, %52 ], [ %106, %102 ]
  %64 = phi %Ts28__ContiguousArrayStorageBaseC* [ %45, %52 ], [ %72, %102 ]
  %._storage4._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %64, i64 0, i32 1, i32 0, i32 1, i32 0
  %65 = load i64, i64* %._storage4._capacityAndFlags._value, align 8
  %66 = lshr i64 %65, 1
  %67 = add i64 %60, 1
  %68 = icmp slt i64 %66, %67
  br i1 %68, label %69, label %71, !prof !6

69:                                               ; preds = %59
  %70 = icmp ugt i64 %65, 1
  tail call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSJ_Tg5"(i1 %70, i64 %67, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %4)
  br label %71

71:                                               ; preds = %59, %69
  %72 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage5 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %72, i64 0, i32 1, i32 0
  %._storage5._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %72, i64 0, i32 1, i32 0, i32 1, i32 0
  %73 = load i64, i64* %._storage5._capacityAndFlags._value, align 8
  %74 = lshr i64 %73, 1
  %75 = icmp slt i64 %60, %74
  br i1 %75, label %76, label %102

76:                                               ; preds = %71
  %77 = inttoptr i64 %62 to %swift.bridge*
  %78 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %72, i64 1
  %tailaddr6 = bitcast %Ts28__ContiguousArrayStorageBaseC* %78 to %TSJ*
  %._str7._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %tailaddr6, i64 %60, i32 0, i32 0, i32 0, i32 0, i32 0
  store i64 %61, i64* %._str7._guts._object._countAndFlagsBits._value, align 8
  %._str7._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %tailaddr6, i64 %60, i32 0, i32 0, i32 0, i32 1
  store %swift.bridge* %77, %swift.bridge** %._str7._guts._object._object, align 8
  %79 = icmp eq i64 %63, %5
  br i1 %79, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %76
  %80 = icmp slt i64 %63, %2
  %81 = icmp sge i64 %63, %5
  %82 = or i1 %80, %81
  br i1 %82, label %.preheader._crit_edge, label %.lr.ph, !prof !6

.lr.ph:                                           ; preds = %.preheader, %95
  %83 = phi i64 [ %93, %95 ], [ %67, %.preheader ]
  %84 = phi i64 [ %87, %95 ], [ %63, %.preheader ]
  %._str8._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %53, i64 %84, i32 0, i32 0, i32 0, i32 0, i32 0
  %85 = load i64, i64* %._str8._guts._object._countAndFlagsBits._value, align 8
  %._str8._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %53, i64 %84, i32 0, i32 0, i32 0, i32 1
  %86 = load %swift.bridge*, %swift.bridge** %._str8._guts._object._object, align 8
  %87 = add nsw i64 %84, 1
  %88 = icmp slt i64 %83, %74
  br i1 %88, label %92, label %89

89:                                               ; preds = %.lr.ph
  %90 = ptrtoint %swift.bridge* %86 to i64
  %91 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %86) #2
  br label %102

92:                                               ; preds = %.lr.ph
  %._str9._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %tailaddr6, i64 %83, i32 0, i32 0, i32 0, i32 0, i32 0
  store i64 %85, i64* %._str9._guts._object._countAndFlagsBits._value, align 8
  %._str9._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %tailaddr6, i64 %83, i32 0, i32 0, i32 0, i32 1
  store %swift.bridge* %86, %swift.bridge** %._str9._guts._object._object, align 8
  %93 = add nsw i64 %83, 1
  %94 = icmp eq i64 %87, %5
  br i1 %94, label %100, label %95

95:                                               ; preds = %92
  %96 = icmp slt i64 %87, %2
  %97 = icmp sge i64 %87, %5
  %98 = or i1 %96, %97
  %99 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %86) #2
  br i1 %98, label %.preheader._crit_edge, label %.lr.ph, !prof !6

100:                                              ; preds = %92
  %101 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %86) #2
  br label %.loopexit

102:                                              ; preds = %71, %89
  %103 = phi i64 [ %83, %89 ], [ %60, %71 ]
  %104 = phi i64 [ %85, %89 ], [ %61, %71 ]
  %105 = phi i64 [ %90, %89 ], [ %62, %71 ]
  %106 = phi i64 [ %87, %89 ], [ %63, %71 ]
  %._storage5.count._value = getelementptr inbounds %TSo22_SwiftArrayBodyStorageV, %TSo22_SwiftArrayBodyStorageV* %._storage5, i64 0, i32 0, i32 0
  store i64 %103, i64* %._storage5.count._value, align 8
  br label %59

.loopexit:                                        ; preds = %76, %100
  %107 = phi i64 [ %93, %100 ], [ %67, %76 ]
  %._storage5.count10._value = getelementptr inbounds %TSo22_SwiftArrayBodyStorageV, %TSo22_SwiftArrayBodyStorageV* %._storage5, i64 0, i32 0, i32 0
  store i64 %107, i64* %._storage5.count10._value, align 8
  br label %108

108:                                              ; preds = %.thread28, %44, %.loopexit
  tail call void @swift_release(%swift.refcounted* %0) #2
  ret void

109:                                              ; preds = %entry
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable

110:                                              ; preds = %9
  tail call void asm sideeffect "", "n"(i32 1) #2
  tail call void @llvm.trap()
  unreachable

111:                                              ; preds = %32
  tail call void asm sideeffect "", "n"(i32 3) #2
  tail call void @llvm.trap()
  unreachable

112:                                              ; preds = %22
  tail call void asm sideeffect "", "n"(i32 4) #2
  tail call void @llvm.trap()
  unreachable

113:                                              ; preds = %48
  tail call void asm sideeffect "", "n"(i32 5) #2
  tail call void @llvm.trap()
  unreachable

.preheader._crit_edge:                            ; preds = %.preheader, %95
  tail call void asm sideeffect "", "n"(i32 7) #2
  tail call void @llvm.trap()
  unreachable

114:                                              ; preds = %34
  tail call void asm sideeffect "", "n"(i32 9) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize noinline optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSJ_Tg5"(%Ts28__ContiguousArrayStorageBaseC* %0) local_unnamed_addr #9 {
entry:
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 0, i32 1, i32 0, i32 0, i32 0
  %1 = load i64, i64* %._storage.count._value, align 8, !range !7
  %2 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSJ_Tg5"(i1 false, i64 %1, i1 false, %Ts28__ContiguousArrayStorageBaseC* %0)
  ret %Ts28__ContiguousArrayStorageBaseC* %2
}

; Function Attrs: minsize noinline optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSJ_Tg5"(i1 %0, i64 %1, i1 %2, %Ts28__ContiguousArrayStorageBaseC* %3) local_unnamed_addr #9 {
entry:
  br i1 %2, label %4, label %14

4:                                                ; preds = %entry
  %._storage._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 1, i32 0, i32 1, i32 0
  %5 = load i64, i64* %._storage._capacityAndFlags._value, align 8
  %6 = lshr i64 %5, 1
  %7 = icmp slt i64 %6, %1
  br i1 %7, label %8, label %14

8:                                                ; preds = %4
  %9 = add nuw i64 %6, 4611686018427387904
  %10 = icmp slt i64 %9, 0
  br i1 %10, label %47, label %11, !prof !6

11:                                               ; preds = %8
  %12 = and i64 %5, -2
  %13 = tail call i64 @llvm.smax.i64(i64 %12, i64 %1)
  br label %14

14:                                               ; preds = %4, %11, %entry
  %15 = phi i64 [ %1, %entry ], [ %13, %11 ], [ %6, %4 ]
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 1, i32 0, i32 0, i32 0
  %16 = load i64, i64* %._storage.count._value, align 8, !range !7
  %17 = tail call i64 @llvm.smax.i64(i64 %15, i64 %16)
  %18 = icmp eq i64 %17, 0
  br i1 %18, label %29, label %19

19:                                               ; preds = %14
  %20 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCySJGMD") #14
  %21 = shl i64 %17, 4
  %22 = add i64 %21, 32
  %23 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %20, i64 %22, i64 7) #2
  %24 = bitcast %swift.refcounted* %23 to %Ts28__ContiguousArrayStorageBaseC*
  %25 = bitcast %swift.refcounted* %23 to i8*
  %call.i = tail call i64 @malloc_usable_size(i8* noundef %25) #17
  %gepdiff = add nsw i64 %call.i, -32
  %26 = sdiv i64 %gepdiff, 16
  %27 = shl nsw i64 %26, 1
  %28 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1
  %._storage7.count._value = bitcast %swift.refcounted* %28 to i64*
  store i64 %16, i64* %._storage7.count._value, align 8
  %._storage7._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1, i32 1
  store i64 %27, i64* %._storage7._capacityAndFlags, align 8
  br label %29

29:                                               ; preds = %14, %19
  %30 = phi %Ts28__ContiguousArrayStorageBaseC* [ %24, %19 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %14 ]
  %31 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %30, i64 1
  %32 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 1
  br i1 %0, label %33, label %42

33:                                               ; preds = %29
  %34 = bitcast %Ts28__ContiguousArrayStorageBaseC* %32 to %TSJ*
  %35 = getelementptr inbounds %TSJ, %TSJ* %34, i64 %16
  %36 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to %TSJ*
  %37 = icmp ugt %TSJ* %35, %36
  %38 = icmp eq %Ts28__ContiguousArrayStorageBaseC* %30, %3
  %or.cond5.i = select i1 %38, i1 %37, i1 false
  br i1 %or.cond5.i, label %"$sSp14moveInitialize4from5countySpyxG_SitFSJ_Tg5.exit", label %.sink.split.i

.sink.split.i:                                    ; preds = %33
  %39 = bitcast %Ts28__ContiguousArrayStorageBaseC* %32 to i8*
  %40 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to i8*
  %41 = shl nuw i64 %16, 4
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* nonnull align 8 %40, i8* nonnull align 8 %39, i64 %41, i1 false)
  br label %"$sSp14moveInitialize4from5countySpyxG_SitFSJ_Tg5.exit"

"$sSp14moveInitialize4from5countySpyxG_SitFSJ_Tg5.exit": ; preds = %33, %.sink.split.i
  store i64 0, i64* %._storage.count._value, align 8
  br label %45

42:                                               ; preds = %29
  %43 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to %swift.opaque*
  %44 = bitcast %Ts28__ContiguousArrayStorageBaseC* %32 to %swift.opaque*
  tail call void @swift_arrayInitWithCopy(%swift.opaque* nonnull %43, %swift.opaque* nonnull %44, i64 %16, %swift.type* nonnull @"$sSJN") #15
  br label %45

45:                                               ; preds = %"$sSp14moveInitialize4from5countySpyxG_SitFSJ_Tg5.exit", %42
  %46 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %46) #2
  ret %Ts28__ContiguousArrayStorageBaseC* %30

47:                                               ; preds = %8
  tail call void asm sideeffect "", "n"(i32 0) #2
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize noinline optsize
define linkonce_odr hidden swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSJ_Tg5"(i1 %0, i64 %1, i1 %2, %Ts15ContiguousArrayV* nocapture swiftself dereferenceable(8) %3) local_unnamed_addr #9 {
entry:
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %3, i64 0, i32 0, i32 0
  %4 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %5 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSJ_Tg5"(i1 %0, i64 %1, i1 %2, %Ts28__ContiguousArrayStorageBaseC* %4)
  store %Ts28__ContiguousArrayStorageBaseC* %5, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  ret void
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc void @"$ss15ContiguousArrayV20_reserveCapacityImpl07minimumD013growForAppendySi_SbtFSJ_Tg5"(i64 %0, i1 %1, %Ts15ContiguousArrayV* nocapture swiftself dereferenceable(8) %2) local_unnamed_addr #0 {
entry:
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %2, i64 0, i32 0, i32 0
  %3 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %4 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 0
  %5 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %4) #15
  store %Ts28__ContiguousArrayStorageBaseC* %3, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br i1 %5, label %6, label %10

6:                                                ; preds = %entry
  %._storage2._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 1, i32 0, i32 1, i32 0
  %7 = load i64, i64* %._storage2._capacityAndFlags._value, align 8
  %8 = lshr i64 %7, 1
  %9 = icmp slt i64 %8, %0
  br i1 %9, label %10, label %13, !prof !6

10:                                               ; preds = %6, %entry
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 1, i32 0, i32 0, i32 0
  %11 = load i64, i64* %._storage.count._value, align 8, !range !7
  %12 = tail call i64 @llvm.smax.i64(i64 %11, i64 %0)
  tail call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSJ_Tg5"(i1 %5, i64 %12, i1 %1, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %2)
  br label %13

13:                                               ; preds = %6, %10
  ret void
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV19_uninitializedCount15minimumCapacityAByxGSi_SitcfCSJ_Tgq5"(i64 %0, i64 %1) local_unnamed_addr #0 {
entry:
  %2 = tail call i64 @llvm.smax.i64(i64 %1, i64 %0)
  %3 = icmp eq i64 %2, 0
  br i1 %3, label %14, label %4

4:                                                ; preds = %entry
  %5 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCySJGMD") #14
  %6 = shl i64 %2, 4
  %7 = add i64 %6, 32
  %8 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %5, i64 %7, i64 7) #2
  %9 = bitcast %swift.refcounted* %8 to %Ts28__ContiguousArrayStorageBaseC*
  %10 = bitcast %swift.refcounted* %8 to i8*
  %call.i = tail call i64 @malloc_usable_size(i8* noundef %10) #17
  %gepdiff = add nsw i64 %call.i, -32
  %11 = sdiv i64 %gepdiff, 16
  %12 = shl nsw i64 %11, 1
  %13 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %8, i64 1
  %._storage1.count._value = bitcast %swift.refcounted* %13 to i64*
  store i64 %0, i64* %._storage1.count._value, align 8
  %._storage1._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %8, i64 1, i32 1
  store i64 %12, i64* %._storage1._capacityAndFlags, align 8
  br label %14

14:                                               ; preds = %entry, %4
  %15 = phi %Ts28__ContiguousArrayStorageBaseC* [ %9, %4 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %entry ]
  ret %Ts28__ContiguousArrayStorageBaseC* %15
}

; Function Attrs: minsize optsize
declare swiftcc { i64, %swift.bridge* } @"$sSsySJSS5IndexVcig"(i64, i64, i64, i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: minsize optsize
declare swiftcc i64 @"$sSs5index5afterSS5IndexVAD_tF"(i64, i64, i64, i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn
declare zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted*) local_unnamed_addr #10

; Function Attrs: mustprogress nounwind willreturn
declare void @swift_arrayInitWithCopy(%swift.opaque*, %swift.opaque*, i64, %swift.type*) local_unnamed_addr #10

; Function Attrs: argmemonly mustprogress nocallback nofree nounwind willreturn
declare void @llvm.memmove.p0i8.p0i8.i64(i8* nocapture writeonly, i8* nocapture readonly, i64, i1 immarg) #11

; Function Attrs: minsize optsize
declare swiftcc { i64, i8 } @"$sSS5index_8offsetBy07limitedC0SS5IndexVSgAE_SiAEtF"(i64, i64, i64, i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: minsize optsize
declare swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64, i64, i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: minsize optsize
declare swiftcc { i64, i64 } @"$sSS8IteratorV4nextSJSgyF"(%TSS8IteratorV* nocapture swiftself dereferenceable(32)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn
declare %swift.refcounted* @swift_retain(%swift.refcounted* returned) local_unnamed_addr #10

; Function Attrs: minsize optsize
declare swiftcc i1 @"$ss22_stringCompareInternal____9expectingSbs11_StringGutsV_SnySiGAdEs01_E16ComparisonResultOtF"(i64, %swift.bridge*, i64, i64, i64, %swift.bridge*, i64, i64, i8) local_unnamed_addr #0

; Function Attrs: optsize
declare i64 @malloc_usable_size(i8* noundef) local_unnamed_addr #12

; Function Attrs: nocallback nofree nosync nounwind readnone speculatable willreturn
declare i64 @llvm.smin.i64(i64, i64) #13

; Function Attrs: nocallback nofree nosync nounwind readnone speculatable willreturn
declare i64 @llvm.smax.i64(i64, i64) #13

attributes #0 = { minsize optsize "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { argmemonly mustprogress nocallback nofree nosync nounwind willreturn }
attributes #2 = { nounwind }
attributes #3 = { minsize mustprogress nofree noinline nounwind optsize readonly willreturn "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { argmemonly nounwind }
attributes #5 = { nofree nounwind readonly }
attributes #6 = { mustprogress nocallback nofree nosync nounwind readnone speculatable willreturn }
attributes #7 = { cold noreturn nounwind }
attributes #8 = { minsize nofree noinline nosync nounwind optsize readnone "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { minsize noinline optsize "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #10 = { mustprogress nounwind willreturn }
attributes #11 = { argmemonly mustprogress nocallback nofree nounwind willreturn }
attributes #12 = { optsize "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #13 = { nocallback nofree nosync nounwind readnone speculatable willreturn }
attributes #14 = { nounwind readonly }
attributes #15 = { nounwind willreturn }
attributes #16 = { argmemonly nounwind readonly }
attributes #17 = { nounwind optsize }

!swift.module.flags = !{!0}
!llvm.linker.options = !{}
!llvm.module.flags = !{!1, !2, !3, !4, !5}

!0 = !{!"standard-library", i1 false}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 4, !"Objective-C Garbage Collection", i32 84477696}
!5 = !{i32 1, !"Swift Version", i32 7}
!6 = !{!"branch_weights", i32 1, i32 2000}
!7 = !{i64 0, i64 9223372036854775807}
!8 = !{!"branch_weights", i32 2000, i32 1}
