import Foundation

#if swift(>=4.0)
extension String {
    func split(by separator: String) -> [String] {
        return self.components(separatedBy: separator)
    }
    func toArray() -> [String] {
        return self.map{String($0)}
    }
}
func exponentiate(_ lhs: Int, _ rhs: Int) -> Int {
    return (0..<rhs).reduce(1){i,_ in i*lhs}
}
#else
extension String {
    func split(by separator: String) -> [String] {
        return self.componentsSeparatedByString(separator)
    }
    var count: Int {
        return self.characters.count
    }
    func toArray() -> [String] {
        return self.characters.map{String($0)}
    }
    func uppercased() -> String {
        return self.uppercaseString
    }
    func lowercased() -> String {
        return self.lowercaseString
    }
}
//extension Array where Element == String {
//    func joined(separator separator: String) -> String {
//        return self.joinWithSeparator(separator)
//    }
//}
extension Array where Element: Comparable {
    func max() -> Element {
        return self.maxElement()!
    }
    func min() -> Element {
        return self.minElement()!
    }
    func sorted() -> Array {
        return self.sort()
    }
    func reversed() -> Array {
        return self.reverse()
    }
    mutating func sort() {
        self.sortInPlace()
    }
}
extension Array {
    init(repeating: Element, count: Int) {
        self.init(count: count, repeatedValue: repeating)
    }
}
func stride<T: Strideable>(from start: T, to end: T, by stride: T.Stride) -> StrideTo<T> {
    return start.stride(to: end, by: stride)
}
func exponentiate(lhs: Int, _ rhs: Int) -> Int {
    return (0..<rhs).reduce(1){i,_ in i*lhs}
}
#endif
func readInt() -> Int? {
    return Int(readLine()!)
}
func readStringSplit(by separator: String) -> [String] {
    return readLine()!.split(by: separator)
}
func readIntSplit(by separator: String) -> [Int] {
    return readLine()!.split(by: separator).map{Int($0)!}
}

/*************** テストスペース ***************/

//var min, min2, count: Int!
//for i in 1...10 {
//    let x = Int(readLine()!)!
//    if i == 1 {
//        min = x
//        count = 1
//    } else if x < min {
//        min2 = min
//        min = x
//        count = 1
//    } else if x == min && count == 1 {
//        min2 = x
//        count = 2
//    }
//}
//print(min2)

/*************** メインプログラム ***************/

let input = readIntSplit(by: " ")
let (N, A, B) = (input[0], input[1], input[2])
var ans = 0
for i in 1...N {
    if A...B ~= (String(i).toArray().reduce(0){$0+Int($1)!}) {
        ans += i
    }
}
print(ans)

; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/Swift/Source_2632/llvm_O3.ll'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/Swift/Source_2632/llvm_O3.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"

%TSa = type <{ %Ts22_ContiguousArrayBufferV }>
%Ts22_ContiguousArrayBufferV = type <{ %Ts28__ContiguousArrayStorageBaseC* }>
%Ts28__ContiguousArrayStorageBaseC = type <{ %swift.refcounted, %Ts10_ArrayBodyV }>
%swift.refcounted = type { %swift.type*, i64 }
%swift.type = type { i64 }
%Ts10_ArrayBodyV = type <{ %TSo22_SwiftArrayBodyStorageV }>
%TSo22_SwiftArrayBodyStorageV = type <{ %TSi, %TSu }>
%TSi = type <{ i64 }>
%TSu = type <{ i64 }>
%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 }
%Ts15ContiguousArrayV = type <{ %Ts22_ContiguousArrayBufferV }>
%Ts6UInt64V = type <{ i64 }>
%swift.error = type opaque
%swift.bridge = type opaque
%swift.opaque = type opaque
%Ts5UInt8V = type <{ i8 }>
%TSS = type <{ %Ts11_StringGutsV }>
%Ts11_StringGutsV = type <{ %Ts13_StringObjectV }>
%Ts13_StringObjectV = type <{ %Ts6UInt64V, %swift.bridge* }>
%Ts16IndexingIteratorVySs8UTF8ViewVG = type <{ %TSs8UTF8ViewV, %TSS5IndexV }>
%TSs8UTF8ViewV = type <{ %Ts5SliceVySS8UTF8ViewVG }>
%Ts5SliceVySS8UTF8ViewVG = type <{ %TSS5IndexV, %TSS5IndexV, %TSS8UTF8ViewV }>
%TSS8UTF8ViewV = type <{ %Ts11_StringGutsV }>
%TSS5IndexV = type <{ %Ts6UInt64V }>

@"$s7llvm_O35inputSaySiGvp" = hidden local_unnamed_addr global %TSa zeroinitializer, align 8
@"$s7llvm_O31NSivp" = hidden local_unnamed_addr global %TSi zeroinitializer, align 8
@"$s7llvm_O31ASivp" = hidden local_unnamed_addr global %TSi zeroinitializer, align 8
@"$s7llvm_O31BSivp" = hidden local_unnamed_addr global %TSi zeroinitializer, align 8
@"$s7llvm_O33ansSivp" = hidden global %TSi zeroinitializer, align 8
@_swiftEmptyArrayStorage = external global %struct._SwiftEmptyArrayStorage, align 8
@"$sSiN" = external global %swift.type, align 8
@"$sSis23CustomStringConvertiblesWP" = external global i8*, 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
@"$sSSN" = external global %swift.type, align 8
@"$sS2SSysWL" = linkonce_odr hidden local_unnamed_addr global i8** null, align 8
@"$sSSSysMc" = external global %swift.protocol_conformance_descriptor, align 4
@"\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 _____ySiG 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 _____ySiG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [4 x i8] c"ySiG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCySiGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySiG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCySiGMD" to i64)) to i32), i32 -9 }, align 8
@"$sSSs25LosslessStringConvertiblesWP" = external global i8*, align 8
@"$sSSSTsWP" = external global i8*, align 8
@"$ss5UInt8VMn" = external global %swift.type_descriptor, align 4
@"got.$ss5UInt8VMn" = private unnamed_addr constant %swift.type_descriptor* @"$ss5UInt8VMn"
@"symbolic _____y_____G s23_ContiguousArrayStorageC s5UInt8V" = linkonce_odr hidden constant <{ i8, i32, [1 x i8], i8, i32, [1 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, [1 x i8], i8, i32, [1 x i8], i8 }>, <{ i8, i32, [1 x i8], i8, i32, [1 x i8], i8 }>* @"symbolic _____y_____G s23_ContiguousArrayStorageC s5UInt8V", i32 0, i32 1) to i64)) to i32), [1 x i8] c"y", i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss5UInt8VMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [1 x i8], i8, i32, [1 x i8], i8 }>, <{ i8, i32, [1 x i8], i8, i32, [1 x i8], i8 }>* @"symbolic _____y_____G s23_ContiguousArrayStorageC s5UInt8V", i32 0, i32 4) to i64)) to i32), [1 x i8] c"G", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCys5UInt8VGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [1 x i8], i8, i32, [1 x i8], i8 }>* @"symbolic _____y_____G s23_ContiguousArrayStorageC s5UInt8V" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCys5UInt8VGMD" to i64)) to i32), i32 -12 }, align 8
@"symbolic _____ySSG 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 _____ySSG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [4 x i8] c"ySSG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCySSGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySSG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCySSGMD" to i64)) to i32), i32 -9 }, 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"

define protected i32 @main(i32 %0, i8** nocapture readnone %1) #0 {
entry:
  %access-scratch = alloca [24 x i8], align 8
  %2 = alloca %TSi, align 8
  %3 = alloca %Ts15ContiguousArrayV, align 8
  %.sroa.6 = alloca i8, align 8
  %access-scratch18 = alloca [24 x i8], align 8
  %4 = alloca <{ %Ts6UInt64V, %Ts6UInt64V }>, align 8
  %swifterror = alloca swifterror %swift.error*, align 8
  store %swift.error* null, %swift.error** %swifterror, align 8
  %5 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$s7llvm_O312readIntSplit2bySaySiGSS_tF"(i64 32, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*))
  store %Ts28__ContiguousArrayStorageBaseC* %5, %Ts28__ContiguousArrayStorageBaseC** getelementptr inbounds (%TSa, %TSa* @"$s7llvm_O35inputSaySiGvp", i64 0, i32 0, i32 0), align 8
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %5, i64 0, i32 1, i32 0, i32 0, i32 0
  %6 = load i64, i64* %._storage.count._value, align 8, !range !6
  %.not = icmp eq i64 %6, 0
  br i1 %.not, label %269, label %7, !prof !7

7:                                                ; preds = %entry
  %8 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %5, i64 1
  %tailaddr._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %8 to i64*
  %9 = load i64, i64* %tailaddr._value, align 8
  store i64 %9, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_O31NSivp", i64 0, i32 0), align 8
  %10 = icmp eq i64 %6, 1
  br i1 %10, label %270, label %11, !prof !7

11:                                               ; preds = %7
  %12 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %5, i64 1, i32 0, i32 1
  %13 = load i64, i64* %12, align 8
  store i64 %13, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_O31ASivp", i64 0, i32 0), align 8
  %14 = icmp ult i64 %6, 3
  br i1 %14, label %271, label %15, !prof !7

15:                                               ; preds = %11
  %._value1 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %5, i64 1, i32 1, i32 0, i32 0, i32 0
  %16 = load i64, i64* %._value1, align 8
  store i64 %16, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_O31BSivp", i64 0, i32 0), align 8
  store i64 0, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_O33ansSivp", i64 0, i32 0), align 8
  %17 = icmp slt i64 %9, 1
  br i1 %17, label %272, label %18, !prof !7

18:                                               ; preds = %15
  %19 = getelementptr inbounds [24 x i8], [24 x i8]* %access-scratch, i64 0, i64 0
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %19)
  call void @swift_beginAccess(i8* nonnull bitcast (%TSi* @"$s7llvm_O33ansSivp" to i8*), [24 x i8]* nonnull %access-scratch, i64 1, i8* null) #3
  %20 = bitcast %TSi* %2 to i8*
  %._value2 = getelementptr inbounds %TSi, %TSi* %2, i64 0, i32 0
  %21 = bitcast %TSi* %2 to %swift.opaque*
  %22 = bitcast %Ts15ContiguousArrayV* %3 to i8*
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %3, i64 0, i32 0, i32 0
  %23 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %4 to i8*
  %.elt._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %4, i64 0, i32 0, i32 0
  %.elt20._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %4, i64 0, i32 1, i32 0
  %24 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %4 to %Ts5UInt8V*
  %25 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %24, i64 2, i32 0
  %26 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %24, i64 3, i32 0
  %.sroa.6.0.sroa_cast = bitcast i8* %.sroa.6 to i1*
  %.sroa.6.0.sroa_cast183 = bitcast i8* %.sroa.6 to i1*
  %.sroa.6.0.sroa_cast179 = bitcast i8* %.sroa.6 to i1*
  %.sroa.6.0.sroa_cast165 = bitcast i8* %.sroa.6 to i1*
  br label %43

27:                                               ; preds = %88, %96, %267
  %28 = icmp eq i64 %44, %9
  br i1 %28, label %33, label %29

29:                                               ; preds = %27
  %30 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %44, i64 1)
  %31 = extractvalue { i64, i1 } %30, 0
  %32 = extractvalue { i64, i1 } %30, 1
  br i1 %32, label %279, label %43, !prof !7

33:                                               ; preds = %27
  %34 = call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #15
  %35 = call noalias %swift.refcounted* @swift_allocObject(%swift.type* %34, i64 64, i64 7) #3
  %36 = bitcast %swift.refcounted* %35 to %Ts28__ContiguousArrayStorageBaseC*
  %37 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %35, i64 1
  %._storage16.count._value = bitcast %swift.refcounted* %37 to i64*
  store i64 1, i64* %._storage16.count._value, align 8
  %._storage16._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %35, i64 1, i32 1
  store i64 2, i64* %._storage16._capacityAndFlags, align 8
  %38 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %35, i64 2
  %39 = getelementptr inbounds [24 x i8], [24 x i8]* %access-scratch18, i64 0, i64 0
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %39)
  call void @swift_beginAccess(i8* nonnull bitcast (%TSi* @"$s7llvm_O33ansSivp" to i8*), [24 x i8]* nonnull %access-scratch18, i64 0, i8* null) #3
  %40 = load i64, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_O33ansSivp", i64 0, i32 0), align 8
  %41 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %35, i64 3, i32 1
  %42 = bitcast i64* %41 to %swift.type**
  store %swift.type* @"$sSiN", %swift.type** %42, align 8
  %._value19 = bitcast %swift.refcounted* %38 to i64*
  store i64 %40, i64* %._value19, align 8
  call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %36, i64 32, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i64 10, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*))
  call void @swift_release(%swift.refcounted* %35) #3
  ret i32 0

43:                                               ; preds = %29, %18
  %44 = phi i64 [ 1, %18 ], [ %31, %29 ]
  %45 = load i64, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_O31ASivp", i64 0, i32 0), align 8
  %46 = load i64, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_O31BSivp", i64 0, i32 0), align 8
  %47 = icmp slt i64 %46, %45
  br i1 %47, label %273, label %48, !prof !7

48:                                               ; preds = %43
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %20)
  store i64 %44, i64* %._value2, align 8
  %49 = call swiftcc { i64, %swift.bridge* } @"$ss23CustomStringConvertibleP11descriptionSSvgTj"(%swift.opaque* noalias nocapture nonnull swiftself %21, %swift.type* nonnull @"$sSiN", i8** nonnull @"$sSis23CustomStringConvertiblesWP")
  %50 = extractvalue { i64, %swift.bridge* } %49, 0
  %51 = extractvalue { i64, %swift.bridge* } %49, 1
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %20)
  %52 = call swiftcc i64 @"$sSS5countSivg"(i64 %50, %swift.bridge* %51)
  %53 = icmp eq i64 %52, 0
  br i1 %53, label %54, label %55

54:                                               ; preds = %48
  call void @swift_bridgeObjectRelease(%swift.bridge* %51) #3
  br label %58

55:                                               ; preds = %48
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %22)
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %56 = call i64 @llvm.smax.i64(i64 %52, i64 0)
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSS_Tg5"(i1 false, i64 %56, i1 false, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %3)
  %57 = icmp slt i64 %52, 0
  br i1 %57, label %274, label %.preheader136.preheader, !prof !7

.preheader136.preheader:                          ; preds = %55
  %.pre = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %.preheader136

58:                                               ; preds = %54, %87
  %59 = phi %Ts28__ContiguousArrayStorageBaseC* [ %82, %87 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %54 ]
  %._storage11.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %59, i64 0, i32 1, i32 0, i32 0, i32 0
  %60 = load i64, i64* %._storage11.count._value, align 8, !range !6
  %61 = icmp eq i64 %60, 0
  br i1 %61, label %88, label %92

.preheader136:                                    ; preds = %.preheader136.preheader, %81
  %62 = phi %Ts28__ContiguousArrayStorageBaseC* [ %82, %81 ], [ %.pre, %.preheader136.preheader ]
  %63 = phi i64 [ %83, %81 ], [ 0, %.preheader136.preheader ]
  %64 = phi i64 [ %85, %81 ], [ 15, %.preheader136.preheader ]
  %65 = call swiftcc { i64, %swift.bridge* } @"$sSSySJSS5IndexVcig"(i64 %64, i64 %50, %swift.bridge* %51)
  %66 = extractvalue { i64, %swift.bridge* } %65, 0
  %67 = extractvalue { i64, %swift.bridge* } %65, 1
  %68 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %62, i64 0, i32 0
  %69 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %68) #16
  br i1 %69, label %73, label %70

70:                                               ; preds = %.preheader136
  %._storage6.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %62, i64 0, i32 1, i32 0, i32 0, i32 0
  %71 = load i64, i64* %._storage6.count._value, align 8, !range !6
  %72 = add nuw nsw i64 %71, 1
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSS_Tg5"(i1 false, i64 %72, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %3)
  %.pre166 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %73

73:                                               ; preds = %.preheader136, %70
  %74 = phi %Ts28__ContiguousArrayStorageBaseC* [ %62, %.preheader136 ], [ %.pre166, %70 ]
  %._storage7.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %74, i64 0, i32 1, i32 0, i32 0, i32 0
  %75 = load i64, i64* %._storage7.count._value, align 8, !range !6
  %._storage7._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %74, i64 0, i32 1, i32 0, i32 1, i32 0
  %76 = load i64, i64* %._storage7._capacityAndFlags._value, align 8
  %77 = lshr i64 %76, 1
  %78 = add nuw nsw i64 %75, 1
  %.not108 = icmp ugt i64 %77, %75
  br i1 %.not108, label %81, label %79, !prof !8

79:                                               ; preds = %73
  %80 = icmp ugt i64 %76, 1
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSS_Tg5"(i1 %80, i64 %78, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %3)
  %.pre167 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %81

81:                                               ; preds = %73, %79
  %82 = phi %Ts28__ContiguousArrayStorageBaseC* [ %74, %73 ], [ %.pre167, %79 ]
  %83 = add nuw i64 %63, 1
  %._storage8.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %82, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %78, i64* %._storage8.count._value, align 8
  %84 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %82, i64 1
  %tailaddr9 = bitcast %Ts28__ContiguousArrayStorageBaseC* %84 to %TSS*
  %._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %tailaddr9, i64 %75, i32 0, i32 0, i32 0, i32 0
  store i64 %66, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %TSS, %TSS* %tailaddr9, i64 %75, i32 0, i32 0, i32 1
  store %swift.bridge* %67, %swift.bridge** %._guts._object._object, align 8
  %85 = call swiftcc i64 @"$sSS5index5afterSS5IndexVAD_tF"(i64 %64, i64 %50, %swift.bridge* %51)
  %86 = icmp eq i64 %83, %52
  br i1 %86, label %87, label %.preheader136

87:                                               ; preds = %81
  call void @swift_bridgeObjectRelease(%swift.bridge* %51) #3
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %22)
  br label %58

88:                                               ; preds = %58
  %89 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %59, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %89) #3
  %90 = icmp sgt i64 %45, 0
  %91 = icmp slt i64 %46, 0
  %or.cond = select i1 %90, i1 true, i1 %91
  br i1 %or.cond, label %27, label %263

92:                                               ; preds = %58
  %93 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %59, i64 1
  %tailaddr12 = bitcast %Ts28__ContiguousArrayStorageBaseC* %93 to %TSS*
  %94 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %59, i64 0, i32 0
  %95 = call %swift.refcounted* @swift_retain(%swift.refcounted* returned %94) #16
  br label %101

96:                                               ; preds = %260
  %97 = bitcast %Ts28__ContiguousArrayStorageBaseC* %59 to %swift.refcounted*
  call void @swift_release_n(%swift.refcounted* %97, i32 2)
  %98 = extractvalue { i64, i1 } %258, 0
  %99 = icmp slt i64 %98, %45
  %100 = icmp slt i64 %46, %98
  %or.cond42 = select i1 %99, i1 true, i1 %100
  br i1 %or.cond42, label %27, label %263

101:                                              ; preds = %92, %260
  %102 = phi i64 [ 0, %92 ], [ %106, %260 ]
  %103 = phi i64 [ 0, %92 ], [ %261, %260 ]
  %._guts13._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %tailaddr12, i64 %102, i32 0, i32 0, i32 0, i32 0
  %104 = load i64, i64* %._guts13._object._countAndFlagsBits._value, align 8
  %._guts13._object._object = getelementptr inbounds %TSS, %TSS* %tailaddr12, i64 %102, i32 0, i32 0, i32 1
  %105 = load %swift.bridge*, %swift.bridge** %._guts13._object._object, align 8
  %106 = add nuw nsw i64 %102, 1
  %107 = ptrtoint %swift.bridge* %105 to i64
  %108 = and i64 %107, 2305843009213693952
  %109 = icmp eq i64 %108, 0
  %110 = lshr i64 %107, 56
  %111 = and i64 %110, 15
  %112 = and i64 %104, 281474976710655
  %113 = select i1 %109, i64 %112, i64 %111
  %114 = icmp eq i64 %113, 0
  br i1 %114, label %275, label %115, !prof !7

115:                                              ; preds = %101
  call void @llvm.lifetime.start.p0i8(i64 1, i8* nonnull %.sroa.6)
  %116 = and i64 %107, 1152921504606846976
  %117 = icmp eq i64 %116, 0
  br i1 %117, label %118, label %.thread, !prof !8

118:                                              ; preds = %115
  br i1 %109, label %119, label %122

.thread:                                          ; preds = %115
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %147

119:                                              ; preds = %118
  %120 = and i64 %104, 1152921504606846976
  %121 = icmp eq i64 %120, 0
  br i1 %121, label %129, label %133, !prof !7

122:                                              ; preds = %118
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %23)
  %123 = and i64 %107, 72057594037927935
  store i64 %104, i64* %.elt._value, align 8
  store i64 %123, i64* %.elt20._value, align 8
  %124 = trunc i64 %104 to i8
  %125 = lshr i64 %104, 8
  %126 = trunc i64 %125 to i8
  %127 = lshr i64 %104, 16
  %128 = trunc i64 %127 to i8
  switch i8 %124, label %189 [
    i8 45, label %154
    i8 43, label %188
  ]

129:                                              ; preds = %119
  %130 = call swiftcc { i64, i64 } @"$ss13_StringObjectV10sharedUTF8SRys5UInt8VGvg"(i64 %104, %swift.bridge* %105)
  %131 = extractvalue { i64, i64 } %130, 0
  %132 = extractvalue { i64, i64 } %130, 1
  br label %.thread173

133:                                              ; preds = %119
  %134 = and i64 %107, 1152921504606846975
  %135 = add nuw nsw i64 %134, 32
  br label %.thread173

.thread173:                                       ; preds = %133, %129
  %136 = phi i64 [ %135, %133 ], [ %131, %129 ]
  %137 = phi i64 [ %112, %133 ], [ %132, %129 ]
  %138 = call swiftcc { i64, i8 } @"$ss17FixedWidthIntegerPsE_5radixxSgqd___SitcSyRd__lufcADSRys5UInt8VGXEfU_AGSiADs5Error_psAARzSSRsd__r__lIetyyrzo_Tpq5Si_Tg5Tm"(i64 %136, i64 %137, i64 10, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture swifterror dereferenceable(8) %swifterror)
  %139 = load %swift.error*, %swift.error** %swifterror, align 8
  %.not110 = icmp eq %swift.error* %139, null
  call void @llvm.assume(i1 %.not110)
  %140 = extractvalue { i64, i8 } %138, 1
  %141 = and i8 %140, 1
  %142 = icmp ne i8 %141, 0
  %143 = extractvalue { i64, i8 } %138, 0
  store i1 %142, i1* %.sroa.6.0.sroa_cast165, align 8
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre175 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %152

.thread176:                                       ; preds = %154, %188, %189
  store i1 true, i1* %.sroa.6.0.sroa_cast179, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %23)
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre180 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %152

.loopexit132.thread:                              ; preds = %226, %232, %223, %229, %235, %191, %198, %195, %201, %155, %163, %159, %166
  %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8..ph = phi i1 [ true, %226 ], [ true, %232 ], [ false, %223 ], [ false, %229 ], [ false, %235 ], [ true, %191 ], [ true, %198 ], [ false, %195 ], [ false, %201 ], [ true, %155 ], [ true, %163 ], [ false, %159 ], [ false, %166 ]
  %.sroa.0.0.ph = phi i64 [ 0, %226 ], [ 0, %232 ], [ 0, %223 ], [ %230, %229 ], [ %238, %235 ], [ 0, %191 ], [ 0, %198 ], [ %196, %195 ], [ %204, %201 ], [ 0, %155 ], [ 0, %163 ], [ %161, %159 ], [ %169, %166 ]
  store i1 %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8..ph, i1* %.sroa.6.0.sroa_cast183, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %23)
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre184 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %152

.loopexit132.loopexit.split.loop.exit:            ; preds = %253
  %144 = extractvalue { i64, i1 } %251, 0
  br label %.loopexit132

.loopexit132.loopexit187.split.loop.exit:         ; preds = %184
  %145 = extractvalue { i64, i1 } %182, 0
  br label %.loopexit132

.loopexit132.loopexit190.split.loop.exit:         ; preds = %219
  %146 = extractvalue { i64, i1 } %217, 0
  br label %.loopexit132

.loopexit132:                                     ; preds = %.preheader133, %211, %214, %.preheader130, %176, %179, %.preheader, %245, %248, %.loopexit132.loopexit190.split.loop.exit, %.loopexit132.loopexit187.split.loop.exit, %.loopexit132.loopexit.split.loop.exit
  %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8. = phi i1 [ false, %.loopexit132.loopexit.split.loop.exit ], [ false, %.loopexit132.loopexit187.split.loop.exit ], [ false, %.loopexit132.loopexit190.split.loop.exit ], [ true, %248 ], [ true, %245 ], [ true, %.preheader ], [ true, %179 ], [ true, %176 ], [ true, %.preheader130 ], [ true, %214 ], [ true, %211 ], [ true, %.preheader133 ]
  %.sroa.0.0 = phi i64 [ %144, %.loopexit132.loopexit.split.loop.exit ], [ %145, %.loopexit132.loopexit187.split.loop.exit ], [ %146, %.loopexit132.loopexit190.split.loop.exit ], [ 0, %248 ], [ 0, %245 ], [ 0, %.preheader ], [ 0, %179 ], [ 0, %176 ], [ 0, %.preheader130 ], [ 0, %214 ], [ 0, %211 ], [ 0, %.preheader133 ]
  store i1 %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8., i1* %.sroa.6.0.sroa_cast, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %23)
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br i1 %117, label %152, label %147

147:                                              ; preds = %.thread, %.loopexit132
  %148 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %105) #3
  %149 = call swiftcc { i64, i8 } @"$ss13_parseInteger5ascii5radixq_Sgx_SitSyRzs010FixedWidthB0R_r0_lFSSSiADSSRszsAER_r0_lIetgyr_Tpq5Si_Tg5"(i64 %104, %swift.bridge* %105, i64 10)
  call void @swift_bridgeObjectRelease(%swift.bridge* %105) #3
  %150 = extractvalue { i64, i8 } %149, 0
  %151 = extractvalue { i64, i8 } %149, 1
  br label %152

152:                                              ; preds = %.loopexit132.thread, %.thread176, %.thread173, %.loopexit132, %147
  %153 = phi i64 [ %150, %147 ], [ %.sroa.0.0, %.loopexit132 ], [ %143, %.thread173 ], [ 0, %.thread176 ], [ %.sroa.0.0.ph, %.loopexit132.thread ]
  %.in.in = phi i8 [ %151, %147 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre, %.loopexit132 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre175, %.thread173 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre180, %.thread176 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre184, %.loopexit132.thread ]
  %.in = and i8 %.in.in, 1
  %.not109 = icmp eq i8 %.in, 0
  br i1 %.not109, label %257, label %276

154:                                              ; preds = %122
  switch i64 %111, label %155 [
    i64 0, label %281
    i64 1, label %.thread176
  ], !prof !9

155:                                              ; preds = %154
  %156 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %24, i64 %111, i32 0
  %157 = add i8 %126, -48
  %158 = icmp ult i8 %157, 10
  br i1 %158, label %159, label %.loopexit132.thread, !prof !10

159:                                              ; preds = %155
  %160 = zext i8 %157 to i64
  %161 = sub nsw i64 0, %160
  %162 = icmp eq i64 %111, 2
  br i1 %162, label %.loopexit132.thread, label %163

163:                                              ; preds = %159
  %164 = add i8 %128, -48
  %165 = icmp ult i8 %164, 10
  br i1 %165, label %166, label %.loopexit132.thread, !prof !10

166:                                              ; preds = %163
  %167 = mul nsw i64 %160, -10
  %168 = zext i8 %164 to i64
  %169 = sub nsw i64 %167, %168
  %170 = icmp eq i64 %111, 3
  br i1 %170, label %.loopexit132.thread, label %.preheader130

.preheader130:                                    ; preds = %166, %184
  %171 = phi i8* [ %186, %184 ], [ %26, %166 ]
  %172 = phi i64 [ %185, %184 ], [ %169, %166 ]
  %173 = load i8, i8* %171, align 1
  %174 = add i8 %173, -48
  %175 = icmp ult i8 %174, 10
  br i1 %175, label %176, label %.loopexit132, !prof !10

176:                                              ; preds = %.preheader130
  %177 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %172, i64 10)
  %178 = extractvalue { i64, i1 } %177, 1
  br i1 %178, label %.loopexit132, label %179

179:                                              ; preds = %176
  %180 = extractvalue { i64, i1 } %177, 0
  %181 = zext i8 %174 to i64
  %182 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %180, i64 %181)
  %183 = extractvalue { i64, i1 } %182, 1
  br i1 %183, label %.loopexit132, label %184, !prof !7

184:                                              ; preds = %179
  %185 = extractvalue { i64, i1 } %182, 0
  %186 = getelementptr inbounds i8, i8* %171, i64 1
  %187 = icmp eq i8* %186, %156
  br i1 %187, label %.loopexit132.loopexit187.split.loop.exit, label %.preheader130

188:                                              ; preds = %122
  switch i64 %111, label %191 [
    i64 0, label %280
    i64 1, label %.thread176
  ], !prof !9

189:                                              ; preds = %122
  %190 = icmp eq i64 %111, 0
  br i1 %190, label %.thread176, label %223, !prof !7

191:                                              ; preds = %188
  %192 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %24, i64 %111, i32 0
  %193 = add i8 %126, -48
  %194 = icmp ult i8 %193, 10
  br i1 %194, label %195, label %.loopexit132.thread, !prof !10

195:                                              ; preds = %191
  %196 = zext i8 %193 to i64
  %197 = icmp eq i64 %111, 2
  br i1 %197, label %.loopexit132.thread, label %198

198:                                              ; preds = %195
  %199 = add i8 %128, -48
  %200 = icmp ult i8 %199, 10
  br i1 %200, label %201, label %.loopexit132.thread, !prof !10

201:                                              ; preds = %198
  %202 = mul nuw nsw i64 %196, 10
  %203 = zext i8 %199 to i64
  %204 = add nuw nsw i64 %202, %203
  %205 = icmp eq i64 %111, 3
  br i1 %205, label %.loopexit132.thread, label %.preheader133

.preheader133:                                    ; preds = %201, %219
  %206 = phi i8* [ %221, %219 ], [ %26, %201 ]
  %207 = phi i64 [ %220, %219 ], [ %204, %201 ]
  %208 = load i8, i8* %206, align 1
  %209 = add i8 %208, -48
  %210 = icmp ult i8 %209, 10
  br i1 %210, label %211, label %.loopexit132, !prof !10

211:                                              ; preds = %.preheader133
  %212 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %207, i64 10)
  %213 = extractvalue { i64, i1 } %212, 1
  br i1 %213, label %.loopexit132, label %214

214:                                              ; preds = %211
  %215 = extractvalue { i64, i1 } %212, 0
  %216 = zext i8 %209 to i64
  %217 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %215, i64 %216)
  %218 = extractvalue { i64, i1 } %217, 1
  br i1 %218, label %.loopexit132, label %219, !prof !7

219:                                              ; preds = %214
  %220 = extractvalue { i64, i1 } %217, 0
  %221 = getelementptr inbounds i8, i8* %206, i64 1
  %222 = icmp eq i8* %221, %192
  br i1 %222, label %.loopexit132.loopexit190.split.loop.exit, label %.preheader133

223:                                              ; preds = %189
  %224 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %24, i64 %111, i32 0
  %225 = icmp eq i8* %224, %23
  br i1 %225, label %.loopexit132.thread, label %226

226:                                              ; preds = %223
  %227 = add i8 %124, -48
  %228 = icmp ult i8 %227, 10
  br i1 %228, label %229, label %.loopexit132.thread, !prof !10

229:                                              ; preds = %226
  %230 = zext i8 %227 to i64
  %231 = icmp eq i64 %111, 1
  br i1 %231, label %.loopexit132.thread, label %232

232:                                              ; preds = %229
  %233 = add i8 %126, -48
  %234 = icmp ult i8 %233, 10
  br i1 %234, label %235, label %.loopexit132.thread, !prof !10

235:                                              ; preds = %232
  %236 = mul nuw nsw i64 %230, 10
  %237 = zext i8 %233 to i64
  %238 = add nuw nsw i64 %236, %237
  %239 = icmp eq i64 %111, 2
  br i1 %239, label %.loopexit132.thread, label %.preheader

.preheader:                                       ; preds = %235, %253
  %240 = phi i8* [ %255, %253 ], [ %25, %235 ]
  %241 = phi i64 [ %254, %253 ], [ %238, %235 ]
  %242 = load i8, i8* %240, align 1
  %243 = add i8 %242, -48
  %244 = icmp ult i8 %243, 10
  br i1 %244, label %245, label %.loopexit132, !prof !10

245:                                              ; preds = %.preheader
  %246 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %241, i64 10)
  %247 = extractvalue { i64, i1 } %246, 1
  br i1 %247, label %.loopexit132, label %248

248:                                              ; preds = %245
  %249 = extractvalue { i64, i1 } %246, 0
  %250 = zext i8 %243 to i64
  %251 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %249, i64 %250)
  %252 = extractvalue { i64, i1 } %251, 1
  br i1 %252, label %.loopexit132, label %253, !prof !7

253:                                              ; preds = %248
  %254 = extractvalue { i64, i1 } %251, 0
  %255 = getelementptr inbounds i8, i8* %240, i64 1
  %256 = icmp eq i8* %255, %224
  br i1 %256, label %.loopexit132.loopexit.split.loop.exit, label %.preheader

257:                                              ; preds = %152
  %258 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %103, i64 %153)
  %259 = extractvalue { i64, i1 } %258, 1
  br i1 %259, label %277, label %260, !prof !7

260:                                              ; preds = %257
  %261 = extractvalue { i64, i1 } %258, 0
  %262 = icmp eq i64 %106, %60
  br i1 %262, label %96, label %101

263:                                              ; preds = %96, %88
  %264 = load i64, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_O33ansSivp", i64 0, i32 0), align 8
  %265 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %264, i64 %44)
  %266 = extractvalue { i64, i1 } %265, 1
  br i1 %266, label %278, label %267, !prof !7

267:                                              ; preds = %263
  %268 = extractvalue { i64, i1 } %265, 0
  store i64 %268, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_O33ansSivp", i64 0, i32 0), align 8
  br label %27

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

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

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

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

273:                                              ; preds = %43
  call void asm sideeffect "", "n"(i32 4) #3
  call void @llvm.trap()
  unreachable

274:                                              ; preds = %55
  call void asm sideeffect "", "n"(i32 5) #3
  call void @llvm.trap()
  unreachable

275:                                              ; preds = %101
  call void asm sideeffect "", "n"(i32 8) #3
  call void @llvm.trap()
  unreachable

276:                                              ; preds = %152
  call void asm sideeffect "", "n"(i32 9) #3
  call void @llvm.trap()
  unreachable

277:                                              ; preds = %257
  call void asm sideeffect "", "n"(i32 10) #3
  call void @llvm.trap()
  unreachable

278:                                              ; preds = %263
  call void asm sideeffect "", "n"(i32 11) #3
  call void @llvm.trap()
  unreachable

279:                                              ; preds = %29
  call void asm sideeffect "", "n"(i32 12) #3
  call void @llvm.trap()
  unreachable

280:                                              ; preds = %188
  call void asm sideeffect "", "n"(i32 13) #3
  call void @llvm.trap()
  unreachable

281:                                              ; preds = %154
  call void asm sideeffect "", "n"(i32 14) #3
  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: argmemonly mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.lifetime.end.p0i8(i64 immarg, i8* nocapture) #1

define hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSS7llvm_O3E5split2bySaySSGSS_tF"(i64 %0, %swift.bridge* %1, i64 %2, %swift.bridge* %3) local_unnamed_addr #0 {
entry:
  %4 = alloca %TSS, align 8
  %5 = alloca %TSS, align 8
  %6 = bitcast %TSS* %4 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %6)
  %._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %4, i64 0, i32 0, i32 0, i32 0, i32 0
  store i64 %2, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %TSS, %TSS* %4, i64 0, i32 0, i32 0, i32 1
  store %swift.bridge* %3, %swift.bridge** %._guts._object._object, align 8
  %7 = bitcast %TSS* %5 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %7)
  %._guts1._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %5, i64 0, i32 0, i32 0, i32 0, i32 0
  store i64 %0, i64* %._guts1._object._countAndFlagsBits._value, align 8
  %._guts1._object._object = getelementptr inbounds %TSS, %TSS* %5, i64 0, i32 0, i32 0, i32 1
  store %swift.bridge* %1, %swift.bridge** %._guts1._object._object, align 8
  %8 = bitcast %TSS* %5 to %swift.opaque*
  %9 = tail call i8** @"$sS2SSysWl"() #17
  %10 = bitcast %TSS* %4 to %swift.opaque*
  %11 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSy10FoundationE10components11separatedBySaySSGqd___tSyRd__lF"(%swift.opaque* noalias nocapture nonnull %8, %swift.type* nonnull @"$sSSN", %swift.type* nonnull @"$sSSN", i8** %9, i8** %9, %swift.opaque* noalias nocapture nonnull swiftself %10)
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %7)
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %6)
  ret %Ts28__ContiguousArrayStorageBaseC* %11
}

define hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSS7llvm_O3E7toArraySaySSGyF"(i64 %0, %swift.bridge* %1) local_unnamed_addr #0 {
entry:
  %2 = alloca %Ts15ContiguousArrayV, align 8
  %3 = tail call swiftcc i64 @"$sSS5countSivg"(i64 %0, %swift.bridge* %1)
  %4 = icmp eq i64 %3, 0
  br i1 %4, label %11, label %5

5:                                                ; preds = %entry
  %6 = bitcast %Ts15ContiguousArrayV* %2 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %6)
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %2, i64 0, i32 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %7 = tail call i64 @llvm.smax.i64(i64 %3, i64 0)
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSS_Tg5"(i1 false, i64 %7, i1 false, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %2)
  %8 = icmp slt i64 %3, 0
  br i1 %8, label %33, label %9, !prof !7

9:                                                ; preds = %5
  %10 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %13

11:                                               ; preds = %entry, %32
  %12 = phi %Ts28__ContiguousArrayStorageBaseC* [ %27, %32 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %entry ]
  ret %Ts28__ContiguousArrayStorageBaseC* %12

13:                                               ; preds = %9, %26
  %14 = phi i64 [ 0, %9 ], [ %28, %26 ]
  %15 = phi i64 [ 15, %9 ], [ %30, %26 ]
  %16 = phi %Ts28__ContiguousArrayStorageBaseC* [ %10, %9 ], [ %27, %26 ]
  %17 = tail call swiftcc { i64, %swift.bridge* } @"$sSSySJSS5IndexVcig"(i64 %15, i64 %0, %swift.bridge* %1)
  %18 = extractvalue { i64, %swift.bridge* } %17, 0
  %19 = extractvalue { i64, %swift.bridge* } %17, 1
  store %Ts28__ContiguousArrayStorageBaseC* %16, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 0, i32 1, i32 0, i32 0, i32 0
  %20 = load i64, i64* %._storage.count._value, align 8, !range !6
  %._storage._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 0, i32 1, i32 0, i32 1, i32 0
  %21 = load i64, i64* %._storage._capacityAndFlags._value, align 8
  %22 = lshr i64 %21, 1
  %23 = add nuw nsw i64 %20, 1
  %.not = icmp ugt i64 %22, %20
  br i1 %.not, label %26, label %24, !prof !8

24:                                               ; preds = %13
  %25 = icmp ugt i64 %21, 1
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSS_Tg5"(i1 %25, i64 %23, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %2)
  %.pre = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %26

26:                                               ; preds = %13, %24
  %27 = phi %Ts28__ContiguousArrayStorageBaseC* [ %16, %13 ], [ %.pre, %24 ]
  %28 = add nuw i64 %14, 1
  %._storage3.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %23, i64* %._storage3.count._value, align 8
  %29 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 1
  %tailaddr = bitcast %Ts28__ContiguousArrayStorageBaseC* %29 to %TSS*
  %._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %tailaddr, i64 %20, i32 0, i32 0, i32 0, i32 0
  store i64 %18, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %TSS, %TSS* %tailaddr, i64 %20, i32 0, i32 0, i32 1
  store %swift.bridge* %19, %swift.bridge** %._guts._object._object, align 8
  %30 = tail call swiftcc i64 @"$sSS5index5afterSS5IndexVAD_tF"(i64 %15, i64 %0, %swift.bridge* %1)
  %31 = icmp eq i64 %28, %3
  br i1 %31, label %32, label %13

32:                                               ; preds = %26
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %6)
  br label %11

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

define hidden swiftcc i64 @"$s7llvm_O312exponentiateyS2i_SitF"(i64 %0, i64 %1) local_unnamed_addr #0 {
entry:
  %2 = icmp slt i64 %1, 0
  br i1 %2, label %15, label %3, !prof !7

3:                                                ; preds = %entry
  %4 = icmp eq i64 %1, 0
  br i1 %4, label %.loopexit, label %.preheader

.loopexit.loopexit:                               ; preds = %11
  %5 = extractvalue { i64, i1 } %9, 0
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %3
  %6 = phi i64 [ 1, %3 ], [ %5, %.loopexit.loopexit ]
  ret i64 %6

.preheader:                                       ; preds = %3, %11
  %7 = phi i64 [ %13, %11 ], [ 0, %3 ]
  %8 = phi i64 [ %12, %11 ], [ 1, %3 ]
  %9 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %8, i64 %0)
  %10 = extractvalue { i64, i1 } %9, 1
  br i1 %10, label %16, label %11, !prof !7

11:                                               ; preds = %.preheader
  %12 = extractvalue { i64, i1 } %9, 0
  %13 = add nuw nsw i64 %7, 1
  %14 = icmp eq i64 %13, %1
  br i1 %14, label %.loopexit.loopexit, label %.preheader

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

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

define hidden swiftcc { i64, i8 } @"$s7llvm_O37readIntSiSgyF"() local_unnamed_addr #0 {
entry:
  %.sroa.6 = alloca i8, align 8
  %0 = alloca <{ %Ts6UInt64V, %Ts6UInt64V }>, align 8
  %swifterror = alloca swifterror %swift.error*, align 8
  store %swift.error* null, %swift.error** %swifterror, 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 %167, label %5

5:                                                ; preds = %entry
  %6 = inttoptr i64 %3 to %swift.bridge*
  %7 = and i64 %3, 2305843009213693952
  %8 = icmp eq i64 %7, 0
  %9 = lshr i64 %3, 56
  %10 = and i64 %9, 15
  %11 = and i64 %2, 281474976710655
  %12 = select i1 %8, i64 %11, i64 %10
  %13 = icmp eq i64 %12, 0
  br i1 %13, label %14, label %15, !prof !7

14:                                               ; preds = %5
  tail call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %6) #3
  br label %18

15:                                               ; preds = %5
  call void @llvm.lifetime.start.p0i8(i64 1, i8* nonnull %.sroa.6)
  %16 = and i64 %3, 1152921504606846976
  %17 = icmp eq i64 %16, 0
  br i1 %17, label %23, label %.thread, !prof !8

18:                                               ; preds = %59, %14
  %19 = phi i64 [ 0, %14 ], [ %., %59 ]
  %20 = phi i8 [ 1, %14 ], [ %.in, %59 ]
  %21 = insertvalue { i64, i8 } undef, i64 %19, 0
  %22 = insertvalue { i64, i8 } %21, i8 %20, 1
  ret { i64, i8 } %22

23:                                               ; preds = %15
  br i1 %8, label %24, label %27

.thread:                                          ; preds = %15
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %55

24:                                               ; preds = %23
  %25 = and i64 %2, 1152921504606846976
  %26 = icmp eq i64 %25, 0
  br i1 %26, label %36, label %40, !prof !7

27:                                               ; preds = %23
  %28 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %0 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %28)
  %29 = and i64 %3, 72057594037927935
  %.elt._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %0, i64 0, i32 0, i32 0
  store i64 %2, i64* %.elt._value, align 8
  %.elt1._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %0, i64 0, i32 1, i32 0
  store i64 %29, i64* %.elt1._value, align 8
  %30 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %0 to %Ts5UInt8V*
  %31 = trunc i64 %2 to i8
  %32 = lshr i64 %2, 8
  %33 = trunc i64 %32 to i8
  %34 = lshr i64 %2, 16
  %35 = trunc i64 %34 to i8
  switch i8 %31, label %97 [
    i8 45, label %61
    i8 43, label %96
  ]

36:                                               ; preds = %24
  %37 = tail call swiftcc { i64, i64 } @"$ss13_StringObjectV10sharedUTF8SRys5UInt8VGvg"(i64 %2, %swift.bridge* nonnull %6)
  %38 = extractvalue { i64, i64 } %37, 0
  %39 = extractvalue { i64, i64 } %37, 1
  br label %.thread131

40:                                               ; preds = %24
  %41 = and i64 %3, 1152921504606846975
  %42 = add nuw nsw i64 %41, 32
  br label %.thread131

.thread131:                                       ; preds = %40, %36
  %43 = phi i64 [ %42, %40 ], [ %38, %36 ]
  %44 = phi i64 [ %11, %40 ], [ %39, %36 ]
  %45 = call swiftcc { i64, i8 } @"$ss17FixedWidthIntegerPsE_5radixxSgqd___SitcSyRd__lufcADSRys5UInt8VGXEfU_AGSiADs5Error_psAARzSSRsd__r__lIetyyrzo_Tpq5Si_Tg5Tm"(i64 %43, i64 %44, i64 10, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture swifterror dereferenceable(8) %swifterror)
  %46 = load %swift.error*, %swift.error** %swifterror, align 8
  %.not = icmp eq %swift.error* %46, null
  tail call void @llvm.assume(i1 %.not)
  %47 = extractvalue { i64, i8 } %45, 1
  %48 = and i8 %47, 1
  %49 = icmp ne i8 %48, 0
  %50 = extractvalue { i64, i8 } %45, 0
  %.sroa.6.0.sroa_cast125 = bitcast i8* %.sroa.6 to i1*
  store i1 %49, i1* %.sroa.6.0.sroa_cast125, align 8
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre133 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %54

.thread136:                                       ; preds = %61, %96, %97
  %.sroa.6.0.sroa_cast139 = bitcast i8* %.sroa.6 to i1*
  store i1 true, i1* %.sroa.6.0.sroa_cast139, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %28)
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre140 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %54

.loopexit100.thread:                              ; preds = %135, %141, %132, %138, %144, %99, %106, %103, %109, %62, %70, %66, %73
  %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8..ph = phi i1 [ true, %135 ], [ true, %141 ], [ false, %132 ], [ false, %138 ], [ false, %144 ], [ true, %99 ], [ true, %106 ], [ false, %103 ], [ false, %109 ], [ true, %62 ], [ true, %70 ], [ false, %66 ], [ false, %73 ]
  %.sroa.0.0.ph = phi i64 [ 0, %135 ], [ 0, %141 ], [ 0, %132 ], [ %139, %138 ], [ %147, %144 ], [ 0, %99 ], [ 0, %106 ], [ %104, %103 ], [ %112, %109 ], [ 0, %62 ], [ 0, %70 ], [ %68, %66 ], [ %76, %73 ]
  %.sroa.6.0.sroa_cast143 = bitcast i8* %.sroa.6 to i1*
  store i1 %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8..ph, i1* %.sroa.6.0.sroa_cast143, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %28)
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre144 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %54

.loopexit100.loopexit.split.loop.exit:            ; preds = %163
  %51 = extractvalue { i64, i1 } %161, 0
  br label %.loopexit100

.loopexit100.loopexit147.split.loop.exit:         ; preds = %92
  %52 = extractvalue { i64, i1 } %90, 0
  br label %.loopexit100

.loopexit100.loopexit150.split.loop.exit:         ; preds = %128
  %53 = extractvalue { i64, i1 } %126, 0
  br label %.loopexit100

.loopexit100:                                     ; preds = %.preheader101, %120, %123, %.preheader98, %84, %87, %.preheader, %155, %158, %.loopexit100.loopexit150.split.loop.exit, %.loopexit100.loopexit147.split.loop.exit, %.loopexit100.loopexit.split.loop.exit
  %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8. = phi i1 [ false, %.loopexit100.loopexit.split.loop.exit ], [ false, %.loopexit100.loopexit147.split.loop.exit ], [ false, %.loopexit100.loopexit150.split.loop.exit ], [ true, %158 ], [ true, %155 ], [ true, %.preheader ], [ true, %87 ], [ true, %84 ], [ true, %.preheader98 ], [ true, %123 ], [ true, %120 ], [ true, %.preheader101 ]
  %.sroa.0.0 = phi i64 [ %51, %.loopexit100.loopexit.split.loop.exit ], [ %52, %.loopexit100.loopexit147.split.loop.exit ], [ %53, %.loopexit100.loopexit150.split.loop.exit ], [ 0, %158 ], [ 0, %155 ], [ 0, %.preheader ], [ 0, %87 ], [ 0, %84 ], [ 0, %.preheader98 ], [ 0, %123 ], [ 0, %120 ], [ 0, %.preheader101 ]
  %.sroa.6.0.sroa_cast = bitcast i8* %.sroa.6 to i1*
  store i1 %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8., i1* %.sroa.6.0.sroa_cast, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %28)
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br i1 %17, label %54, label %55

54:                                               ; preds = %.loopexit100.thread, %.thread136, %.thread131, %.loopexit100
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre135 = phi i8 [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre133, %.thread131 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre, %.loopexit100 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre140, %.thread136 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre144, %.loopexit100.thread ]
  %.sroa.048.0134 = phi i64 [ %50, %.thread131 ], [ %.sroa.0.0, %.loopexit100 ], [ 0, %.thread136 ], [ %.sroa.0.0.ph, %.loopexit100.thread ]
  call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %6) #3
  br label %59

55:                                               ; preds = %.thread, %.loopexit100
  %56 = call swiftcc { i64, i8 } @"$ss13_parseInteger5ascii5radixq_Sgx_SitSyRzs010FixedWidthB0R_r0_lFSSSiADSSRszsAER_r0_lIetgyr_Tpq5Si_Tg5"(i64 %2, %swift.bridge* nonnull %6, i64 10)
  call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %6) #3
  %57 = extractvalue { i64, i8 } %56, 0
  %58 = extractvalue { i64, i8 } %56, 1
  br label %59

59:                                               ; preds = %54, %55
  %60 = phi i64 [ %57, %55 ], [ %.sroa.048.0134, %54 ]
  %.in.in = phi i8 [ %58, %55 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre135, %54 ]
  %.in = and i8 %.in.in, 1
  %.not78 = icmp eq i8 %.in, 0
  %. = select i1 %.not78, i64 %60, i64 0
  br label %18

61:                                               ; preds = %27
  switch i64 %10, label %62 [
    i64 0, label %169
    i64 1, label %.thread136
  ], !prof !9

62:                                               ; preds = %61
  %63 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %30, i64 %10, i32 0
  %64 = add i8 %33, -48
  %65 = icmp ult i8 %64, 10
  br i1 %65, label %66, label %.loopexit100.thread, !prof !10

66:                                               ; preds = %62
  %67 = zext i8 %64 to i64
  %68 = sub nsw i64 0, %67
  %69 = icmp eq i64 %10, 2
  br i1 %69, label %.loopexit100.thread, label %70

70:                                               ; preds = %66
  %71 = add i8 %35, -48
  %72 = icmp ult i8 %71, 10
  br i1 %72, label %73, label %.loopexit100.thread, !prof !10

73:                                               ; preds = %70
  %74 = mul nsw i64 %67, -10
  %75 = zext i8 %71 to i64
  %76 = sub nsw i64 %74, %75
  %77 = icmp eq i64 %10, 3
  br i1 %77, label %.loopexit100.thread, label %.preheader98.preheader

.preheader98.preheader:                           ; preds = %73
  %78 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %30, i64 3, i32 0
  br label %.preheader98

.preheader98:                                     ; preds = %.preheader98.preheader, %92
  %79 = phi i8* [ %94, %92 ], [ %78, %.preheader98.preheader ]
  %80 = phi i64 [ %93, %92 ], [ %76, %.preheader98.preheader ]
  %81 = load i8, i8* %79, align 1
  %82 = add i8 %81, -48
  %83 = icmp ult i8 %82, 10
  br i1 %83, label %84, label %.loopexit100, !prof !10

84:                                               ; preds = %.preheader98
  %85 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %80, i64 10)
  %86 = extractvalue { i64, i1 } %85, 1
  br i1 %86, label %.loopexit100, label %87

87:                                               ; preds = %84
  %88 = extractvalue { i64, i1 } %85, 0
  %89 = zext i8 %82 to i64
  %90 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %88, i64 %89)
  %91 = extractvalue { i64, i1 } %90, 1
  br i1 %91, label %.loopexit100, label %92, !prof !7

92:                                               ; preds = %87
  %93 = extractvalue { i64, i1 } %90, 0
  %94 = getelementptr inbounds i8, i8* %79, i64 1
  %95 = icmp eq i8* %94, %63
  br i1 %95, label %.loopexit100.loopexit147.split.loop.exit, label %.preheader98

96:                                               ; preds = %27
  switch i64 %10, label %99 [
    i64 0, label %168
    i64 1, label %.thread136
  ], !prof !9

97:                                               ; preds = %27
  %98 = icmp eq i64 %10, 0
  br i1 %98, label %.thread136, label %132, !prof !7

99:                                               ; preds = %96
  %100 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %30, i64 %10, i32 0
  %101 = add i8 %33, -48
  %102 = icmp ult i8 %101, 10
  br i1 %102, label %103, label %.loopexit100.thread, !prof !10

103:                                              ; preds = %99
  %104 = zext i8 %101 to i64
  %105 = icmp eq i64 %10, 2
  br i1 %105, label %.loopexit100.thread, label %106

106:                                              ; preds = %103
  %107 = add i8 %35, -48
  %108 = icmp ult i8 %107, 10
  br i1 %108, label %109, label %.loopexit100.thread, !prof !10

109:                                              ; preds = %106
  %110 = mul nuw nsw i64 %104, 10
  %111 = zext i8 %107 to i64
  %112 = add nuw nsw i64 %110, %111
  %113 = icmp eq i64 %10, 3
  br i1 %113, label %.loopexit100.thread, label %.preheader101.preheader

.preheader101.preheader:                          ; preds = %109
  %114 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %30, i64 3, i32 0
  br label %.preheader101

.preheader101:                                    ; preds = %.preheader101.preheader, %128
  %115 = phi i8* [ %130, %128 ], [ %114, %.preheader101.preheader ]
  %116 = phi i64 [ %129, %128 ], [ %112, %.preheader101.preheader ]
  %117 = load i8, i8* %115, align 1
  %118 = add i8 %117, -48
  %119 = icmp ult i8 %118, 10
  br i1 %119, label %120, label %.loopexit100, !prof !10

120:                                              ; preds = %.preheader101
  %121 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %116, i64 10)
  %122 = extractvalue { i64, i1 } %121, 1
  br i1 %122, label %.loopexit100, label %123

123:                                              ; preds = %120
  %124 = extractvalue { i64, i1 } %121, 0
  %125 = zext i8 %118 to i64
  %126 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %124, i64 %125)
  %127 = extractvalue { i64, i1 } %126, 1
  br i1 %127, label %.loopexit100, label %128, !prof !7

128:                                              ; preds = %123
  %129 = extractvalue { i64, i1 } %126, 0
  %130 = getelementptr inbounds i8, i8* %115, i64 1
  %131 = icmp eq i8* %130, %100
  br i1 %131, label %.loopexit100.loopexit150.split.loop.exit, label %.preheader101

132:                                              ; preds = %97
  %133 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %30, i64 %10, i32 0
  %134 = icmp eq i8* %133, %28
  br i1 %134, label %.loopexit100.thread, label %135

135:                                              ; preds = %132
  %136 = add i8 %31, -48
  %137 = icmp ult i8 %136, 10
  br i1 %137, label %138, label %.loopexit100.thread, !prof !10

138:                                              ; preds = %135
  %139 = zext i8 %136 to i64
  %140 = icmp eq i64 %10, 1
  br i1 %140, label %.loopexit100.thread, label %141

141:                                              ; preds = %138
  %142 = add i8 %33, -48
  %143 = icmp ult i8 %142, 10
  br i1 %143, label %144, label %.loopexit100.thread, !prof !10

144:                                              ; preds = %141
  %145 = mul nuw nsw i64 %139, 10
  %146 = zext i8 %142 to i64
  %147 = add nuw nsw i64 %145, %146
  %148 = icmp eq i64 %10, 2
  br i1 %148, label %.loopexit100.thread, label %.preheader.preheader

.preheader.preheader:                             ; preds = %144
  %149 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %30, i64 2, i32 0
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %163
  %150 = phi i8* [ %165, %163 ], [ %149, %.preheader.preheader ]
  %151 = phi i64 [ %164, %163 ], [ %147, %.preheader.preheader ]
  %152 = load i8, i8* %150, align 1
  %153 = add i8 %152, -48
  %154 = icmp ult i8 %153, 10
  br i1 %154, label %155, label %.loopexit100, !prof !10

155:                                              ; preds = %.preheader
  %156 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %151, i64 10)
  %157 = extractvalue { i64, i1 } %156, 1
  br i1 %157, label %.loopexit100, label %158

158:                                              ; preds = %155
  %159 = extractvalue { i64, i1 } %156, 0
  %160 = zext i8 %153 to i64
  %161 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %159, i64 %160)
  %162 = extractvalue { i64, i1 } %161, 1
  br i1 %162, label %.loopexit100, label %163, !prof !7

163:                                              ; preds = %158
  %164 = extractvalue { i64, i1 } %161, 0
  %165 = getelementptr inbounds i8, i8* %150, i64 1
  %166 = icmp eq i8* %165, %133
  br i1 %166, label %.loopexit100.loopexit.split.loop.exit, label %.preheader

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

168:                                              ; preds = %96
  tail call void asm sideeffect "", "n"(i32 1) #3
  tail call void @llvm.trap()
  unreachable

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

define hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$s7llvm_O315readStringSplit2bySaySSGSS_tF"(i64 %0, %swift.bridge* %1) local_unnamed_addr #0 {
entry:
  %2 = alloca %TSS, align 8
  %3 = alloca %TSS, align 8
  %4 = tail call swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1 true)
  %5 = extractvalue { i64, i64 } %4, 1
  %6 = icmp eq i64 %5, 0
  br i1 %6, label %16, label %7

7:                                                ; preds = %entry
  %8 = extractvalue { i64, i64 } %4, 0
  %9 = inttoptr i64 %5 to %swift.bridge*
  %10 = bitcast %TSS* %2 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %10)
  %._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %2, i64 0, i32 0, i32 0, i32 0, i32 0
  store i64 %8, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %TSS, %TSS* %2, i64 0, i32 0, i32 0, i32 1
  store %swift.bridge* %9, %swift.bridge** %._guts._object._object, align 8
  %11 = bitcast %TSS* %3 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %11)
  %._guts1._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %3, i64 0, i32 0, i32 0, i32 0, i32 0
  store i64 %0, i64* %._guts1._object._countAndFlagsBits._value, align 8
  %._guts1._object._object = getelementptr inbounds %TSS, %TSS* %3, i64 0, i32 0, i32 0, i32 1
  store %swift.bridge* %1, %swift.bridge** %._guts1._object._object, align 8
  %12 = bitcast %TSS* %3 to %swift.opaque*
  %13 = tail call i8** @"$sS2SSysWl"() #17
  %14 = bitcast %TSS* %2 to %swift.opaque*
  %15 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSy10FoundationE10components11separatedBySaySSGqd___tSyRd__lF"(%swift.opaque* noalias nocapture nonnull %12, %swift.type* nonnull @"$sSSN", %swift.type* nonnull @"$sSSN", i8** %13, i8** %13, %swift.opaque* noalias nocapture nonnull swiftself %14)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %9) #3
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %11)
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %10)
  ret %Ts28__ContiguousArrayStorageBaseC* %15

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

define hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$s7llvm_O312readIntSplit2bySaySiGSS_tF"(i64 %0, %swift.bridge* %1) local_unnamed_addr #0 {
entry:
  %2 = alloca %TSS, align 8
  %3 = alloca %TSS, align 8
  %4 = alloca %Ts15ContiguousArrayV, align 8
  %.sroa.6 = alloca i8, align 8
  %5 = alloca <{ %Ts6UInt64V, %Ts6UInt64V }>, align 8
  %swifterror = alloca swifterror %swift.error*, align 8
  store %swift.error* null, %swift.error** %swifterror, align 8
  %6 = tail call swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1 true)
  %7 = extractvalue { i64, i64 } %6, 1
  %8 = icmp eq i64 %7, 0
  br i1 %8, label %207, label %9

9:                                                ; preds = %entry
  %10 = extractvalue { i64, i64 } %6, 0
  %11 = inttoptr i64 %7 to %swift.bridge*
  %12 = bitcast %TSS* %2 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %12)
  %._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %2, i64 0, i32 0, i32 0, i32 0, i32 0
  store i64 %10, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %TSS, %TSS* %2, i64 0, i32 0, i32 0, i32 1
  store %swift.bridge* %11, %swift.bridge** %._guts._object._object, align 8
  %13 = bitcast %TSS* %3 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %13)
  %._guts1._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %3, i64 0, i32 0, i32 0, i32 0, i32 0
  store i64 %0, i64* %._guts1._object._countAndFlagsBits._value, align 8
  %._guts1._object._object = getelementptr inbounds %TSS, %TSS* %3, i64 0, i32 0, i32 0, i32 1
  store %swift.bridge* %1, %swift.bridge** %._guts1._object._object, align 8
  %14 = bitcast %TSS* %3 to %swift.opaque*
  %15 = tail call i8** @"$sS2SSysWl"() #17
  %16 = bitcast %TSS* %2 to %swift.opaque*
  %17 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSy10FoundationE10components11separatedBySaySSGqd___tSyRd__lF"(%swift.opaque* noalias nocapture nonnull %14, %swift.type* nonnull @"$sSSN", %swift.type* nonnull @"$sSSN", i8** %15, i8** %15, %swift.opaque* noalias nocapture nonnull swiftself %16)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %11) #3
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %13)
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %12)
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %17, i64 0, i32 1, i32 0, i32 0, i32 0
  %18 = load i64, i64* %._storage.count._value, align 8, !range !6
  %19 = icmp eq i64 %18, 0
  br i1 %19, label %20, label %22

20:                                               ; preds = %9
  %21 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %17, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %21) #3
  br label %29

22:                                               ; preds = %9
  %23 = bitcast %Ts15ContiguousArrayV* %4 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %23)
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %4, i64 0, i32 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSi_Tg5"(i1 false, i64 %18, i1 false, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %4)
  %24 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %17, i64 1
  %tailaddr = bitcast %Ts28__ContiguousArrayStorageBaseC* %24 to %TSS*
  %25 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %5 to i8*
  %.elt._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %5, i64 0, i32 0, i32 0
  %.elt12._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %5, i64 0, i32 1, i32 0
  %26 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %5 to %Ts5UInt8V*
  %27 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %26, i64 2, i32 0
  %28 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %26, i64 3, i32 0
  %.sroa.6.0.sroa_cast = bitcast i8* %.sroa.6 to i1*
  %.sroa.6.0.sroa_cast160 = bitcast i8* %.sroa.6 to i1*
  %.sroa.6.0.sroa_cast156 = bitcast i8* %.sroa.6 to i1*
  %.sroa.6.0.sroa_cast143 = bitcast i8* %.sroa.6 to i1*
  br label %31

29:                                               ; preds = %20, %205
  %30 = phi %Ts28__ContiguousArrayStorageBaseC* [ %202, %205 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %20 ]
  ret %Ts28__ContiguousArrayStorageBaseC* %30

31:                                               ; preds = %22, %201
  %32 = phi i64 [ 0, %22 ], [ %33, %201 ]
  %33 = add nuw nsw i64 %32, 1
  %._guts4._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %tailaddr, i64 %32, i32 0, i32 0, i32 0, i32 0
  %34 = load i64, i64* %._guts4._object._countAndFlagsBits._value, align 8
  %._guts4._object._object = getelementptr inbounds %TSS, %TSS* %tailaddr, i64 %32, i32 0, i32 0, i32 1
  %35 = load %swift.bridge*, %swift.bridge** %._guts4._object._object, align 8
  %36 = ptrtoint %swift.bridge* %35 to i64
  %37 = and i64 %36, 2305843009213693952
  %38 = icmp eq i64 %37, 0
  %39 = lshr i64 %36, 56
  %40 = and i64 %39, 15
  %41 = and i64 %34, 281474976710655
  %42 = select i1 %38, i64 %41, i64 %40
  %43 = icmp eq i64 %42, 0
  br i1 %43, label %208, label %44, !prof !7

44:                                               ; preds = %31
  call void @llvm.lifetime.start.p0i8(i64 1, i8* nonnull %.sroa.6)
  %45 = and i64 %36, 1152921504606846976
  %46 = icmp eq i64 %45, 0
  br i1 %46, label %47, label %.thread, !prof !8

47:                                               ; preds = %44
  br i1 %38, label %48, label %51

.thread:                                          ; preds = %44
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %76

48:                                               ; preds = %47
  %49 = and i64 %34, 1152921504606846976
  %50 = icmp eq i64 %49, 0
  br i1 %50, label %58, label %62, !prof !7

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %25)
  %52 = and i64 %36, 72057594037927935
  store i64 %34, i64* %.elt._value, align 8
  store i64 %52, i64* %.elt12._value, align 8
  %53 = trunc i64 %34 to i8
  %54 = lshr i64 %34, 8
  %55 = trunc i64 %54 to i8
  %56 = lshr i64 %34, 16
  %57 = trunc i64 %56 to i8
  switch i8 %53, label %118 [
    i8 45, label %83
    i8 43, label %117
  ]

58:                                               ; preds = %48
  %59 = call swiftcc { i64, i64 } @"$ss13_StringObjectV10sharedUTF8SRys5UInt8VGvg"(i64 %34, %swift.bridge* %35)
  %60 = extractvalue { i64, i64 } %59, 0
  %61 = extractvalue { i64, i64 } %59, 1
  br label %.thread150

62:                                               ; preds = %48
  %63 = and i64 %36, 1152921504606846975
  %64 = add nuw nsw i64 %63, 32
  br label %.thread150

.thread150:                                       ; preds = %62, %58
  %65 = phi i64 [ %64, %62 ], [ %60, %58 ]
  %66 = phi i64 [ %41, %62 ], [ %61, %58 ]
  %67 = call swiftcc { i64, i8 } @"$ss17FixedWidthIntegerPsE_5radixxSgqd___SitcSyRd__lufcADSRys5UInt8VGXEfU_AGSiADs5Error_psAARzSSRsd__r__lIetyyrzo_Tpq5Si_Tg5Tm"(i64 %65, i64 %66, i64 10, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture swifterror dereferenceable(8) %swifterror)
  %68 = load %swift.error*, %swift.error** %swifterror, align 8
  %.not95 = icmp eq %swift.error* %68, null
  call void @llvm.assume(i1 %.not95)
  %69 = extractvalue { i64, i8 } %67, 1
  %70 = and i8 %69, 1
  %71 = icmp ne i8 %70, 0
  %72 = extractvalue { i64, i8 } %67, 0
  store i1 %71, i1* %.sroa.6.0.sroa_cast143, align 8
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre152 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %81

.thread153:                                       ; preds = %83, %117, %118
  store i1 true, i1* %.sroa.6.0.sroa_cast156, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %25)
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre157 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %81

.loopexit117.thread:                              ; preds = %155, %161, %152, %158, %164, %120, %127, %124, %130, %84, %92, %88, %95
  %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8..ph = phi i1 [ true, %155 ], [ true, %161 ], [ false, %152 ], [ false, %158 ], [ false, %164 ], [ true, %120 ], [ true, %127 ], [ false, %124 ], [ false, %130 ], [ true, %84 ], [ true, %92 ], [ false, %88 ], [ false, %95 ]
  %.sroa.0.0.ph = phi i64 [ 0, %155 ], [ 0, %161 ], [ 0, %152 ], [ %159, %158 ], [ %167, %164 ], [ 0, %120 ], [ 0, %127 ], [ %125, %124 ], [ %133, %130 ], [ 0, %84 ], [ 0, %92 ], [ %90, %88 ], [ %98, %95 ]
  store i1 %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8..ph, i1* %.sroa.6.0.sroa_cast160, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %25)
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre161 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %81

.loopexit117.loopexit.split.loop.exit:            ; preds = %182
  %73 = extractvalue { i64, i1 } %180, 0
  br label %.loopexit117

.loopexit117.loopexit164.split.loop.exit:         ; preds = %113
  %74 = extractvalue { i64, i1 } %111, 0
  br label %.loopexit117

.loopexit117.loopexit167.split.loop.exit:         ; preds = %148
  %75 = extractvalue { i64, i1 } %146, 0
  br label %.loopexit117

.loopexit117:                                     ; preds = %.preheader118, %140, %143, %.preheader115, %105, %108, %.preheader, %174, %177, %.loopexit117.loopexit167.split.loop.exit, %.loopexit117.loopexit164.split.loop.exit, %.loopexit117.loopexit.split.loop.exit
  %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8. = phi i1 [ false, %.loopexit117.loopexit.split.loop.exit ], [ false, %.loopexit117.loopexit164.split.loop.exit ], [ false, %.loopexit117.loopexit167.split.loop.exit ], [ true, %177 ], [ true, %174 ], [ true, %.preheader ], [ true, %108 ], [ true, %105 ], [ true, %.preheader115 ], [ true, %143 ], [ true, %140 ], [ true, %.preheader118 ]
  %.sroa.0.0 = phi i64 [ %73, %.loopexit117.loopexit.split.loop.exit ], [ %74, %.loopexit117.loopexit164.split.loop.exit ], [ %75, %.loopexit117.loopexit167.split.loop.exit ], [ 0, %177 ], [ 0, %174 ], [ 0, %.preheader ], [ 0, %108 ], [ 0, %105 ], [ 0, %.preheader115 ], [ 0, %143 ], [ 0, %140 ], [ 0, %.preheader118 ]
  store i1 %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8., i1* %.sroa.6.0.sroa_cast, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %25)
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br i1 %46, label %81, label %76

76:                                               ; preds = %.thread, %.loopexit117
  %77 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %35) #3
  %78 = call swiftcc { i64, i8 } @"$ss13_parseInteger5ascii5radixq_Sgx_SitSyRzs010FixedWidthB0R_r0_lFSSSiADSSRszsAER_r0_lIetgyr_Tpq5Si_Tg5"(i64 %34, %swift.bridge* %35, i64 10)
  call void @swift_bridgeObjectRelease(%swift.bridge* %35) #3
  %79 = extractvalue { i64, i8 } %78, 0
  %80 = extractvalue { i64, i8 } %78, 1
  br label %81

81:                                               ; preds = %.loopexit117.thread, %.thread153, %.thread150, %.loopexit117, %76
  %82 = phi i64 [ %79, %76 ], [ %.sroa.0.0, %.loopexit117 ], [ %72, %.thread150 ], [ 0, %.thread153 ], [ %.sroa.0.0.ph, %.loopexit117.thread ]
  %.in.in = phi i8 [ %80, %76 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre, %.loopexit117 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre152, %.thread150 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre157, %.thread153 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre161, %.loopexit117.thread ]
  %.in = and i8 %.in.in, 1
  %.not94 = icmp eq i8 %.in, 0
  br i1 %.not94, label %186, label %209

83:                                               ; preds = %51
  switch i64 %40, label %84 [
    i64 0, label %211
    i64 1, label %.thread153
  ], !prof !9

84:                                               ; preds = %83
  %85 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %26, i64 %40, i32 0
  %86 = add i8 %55, -48
  %87 = icmp ult i8 %86, 10
  br i1 %87, label %88, label %.loopexit117.thread, !prof !10

88:                                               ; preds = %84
  %89 = zext i8 %86 to i64
  %90 = sub nsw i64 0, %89
  %91 = icmp eq i64 %40, 2
  br i1 %91, label %.loopexit117.thread, label %92

92:                                               ; preds = %88
  %93 = add i8 %57, -48
  %94 = icmp ult i8 %93, 10
  br i1 %94, label %95, label %.loopexit117.thread, !prof !10

95:                                               ; preds = %92
  %96 = mul nsw i64 %89, -10
  %97 = zext i8 %93 to i64
  %98 = sub nsw i64 %96, %97
  %99 = icmp eq i64 %40, 3
  br i1 %99, label %.loopexit117.thread, label %.preheader115

.preheader115:                                    ; preds = %95, %113
  %100 = phi i8* [ %115, %113 ], [ %28, %95 ]
  %101 = phi i64 [ %114, %113 ], [ %98, %95 ]
  %102 = load i8, i8* %100, align 1
  %103 = add i8 %102, -48
  %104 = icmp ult i8 %103, 10
  br i1 %104, label %105, label %.loopexit117, !prof !10

105:                                              ; preds = %.preheader115
  %106 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %101, i64 10)
  %107 = extractvalue { i64, i1 } %106, 1
  br i1 %107, label %.loopexit117, label %108

108:                                              ; preds = %105
  %109 = extractvalue { i64, i1 } %106, 0
  %110 = zext i8 %103 to i64
  %111 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %109, i64 %110)
  %112 = extractvalue { i64, i1 } %111, 1
  br i1 %112, label %.loopexit117, label %113, !prof !7

113:                                              ; preds = %108
  %114 = extractvalue { i64, i1 } %111, 0
  %115 = getelementptr inbounds i8, i8* %100, i64 1
  %116 = icmp eq i8* %115, %85
  br i1 %116, label %.loopexit117.loopexit164.split.loop.exit, label %.preheader115

117:                                              ; preds = %51
  switch i64 %40, label %120 [
    i64 0, label %210
    i64 1, label %.thread153
  ], !prof !9

118:                                              ; preds = %51
  %119 = icmp eq i64 %40, 0
  br i1 %119, label %.thread153, label %152, !prof !7

120:                                              ; preds = %117
  %121 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %26, i64 %40, i32 0
  %122 = add i8 %55, -48
  %123 = icmp ult i8 %122, 10
  br i1 %123, label %124, label %.loopexit117.thread, !prof !10

124:                                              ; preds = %120
  %125 = zext i8 %122 to i64
  %126 = icmp eq i64 %40, 2
  br i1 %126, label %.loopexit117.thread, label %127

127:                                              ; preds = %124
  %128 = add i8 %57, -48
  %129 = icmp ult i8 %128, 10
  br i1 %129, label %130, label %.loopexit117.thread, !prof !10

130:                                              ; preds = %127
  %131 = mul nuw nsw i64 %125, 10
  %132 = zext i8 %128 to i64
  %133 = add nuw nsw i64 %131, %132
  %134 = icmp eq i64 %40, 3
  br i1 %134, label %.loopexit117.thread, label %.preheader118

.preheader118:                                    ; preds = %130, %148
  %135 = phi i8* [ %150, %148 ], [ %28, %130 ]
  %136 = phi i64 [ %149, %148 ], [ %133, %130 ]
  %137 = load i8, i8* %135, align 1
  %138 = add i8 %137, -48
  %139 = icmp ult i8 %138, 10
  br i1 %139, label %140, label %.loopexit117, !prof !10

140:                                              ; preds = %.preheader118
  %141 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %136, i64 10)
  %142 = extractvalue { i64, i1 } %141, 1
  br i1 %142, label %.loopexit117, label %143

143:                                              ; preds = %140
  %144 = extractvalue { i64, i1 } %141, 0
  %145 = zext i8 %138 to i64
  %146 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %144, i64 %145)
  %147 = extractvalue { i64, i1 } %146, 1
  br i1 %147, label %.loopexit117, label %148, !prof !7

148:                                              ; preds = %143
  %149 = extractvalue { i64, i1 } %146, 0
  %150 = getelementptr inbounds i8, i8* %135, i64 1
  %151 = icmp eq i8* %150, %121
  br i1 %151, label %.loopexit117.loopexit167.split.loop.exit, label %.preheader118

152:                                              ; preds = %118
  %153 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %26, i64 %40, i32 0
  %154 = icmp eq i8* %153, %25
  br i1 %154, label %.loopexit117.thread, label %155

155:                                              ; preds = %152
  %156 = add i8 %53, -48
  %157 = icmp ult i8 %156, 10
  br i1 %157, label %158, label %.loopexit117.thread, !prof !10

158:                                              ; preds = %155
  %159 = zext i8 %156 to i64
  %160 = icmp eq i64 %40, 1
  br i1 %160, label %.loopexit117.thread, label %161

161:                                              ; preds = %158
  %162 = add i8 %55, -48
  %163 = icmp ult i8 %162, 10
  br i1 %163, label %164, label %.loopexit117.thread, !prof !10

164:                                              ; preds = %161
  %165 = mul nuw nsw i64 %159, 10
  %166 = zext i8 %162 to i64
  %167 = add nuw nsw i64 %165, %166
  %168 = icmp eq i64 %40, 2
  br i1 %168, label %.loopexit117.thread, label %.preheader

.preheader:                                       ; preds = %164, %182
  %169 = phi i8* [ %184, %182 ], [ %27, %164 ]
  %170 = phi i64 [ %183, %182 ], [ %167, %164 ]
  %171 = load i8, i8* %169, align 1
  %172 = add i8 %171, -48
  %173 = icmp ult i8 %172, 10
  br i1 %173, label %174, label %.loopexit117, !prof !10

174:                                              ; preds = %.preheader
  %175 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %170, i64 10)
  %176 = extractvalue { i64, i1 } %175, 1
  br i1 %176, label %.loopexit117, label %177

177:                                              ; preds = %174
  %178 = extractvalue { i64, i1 } %175, 0
  %179 = zext i8 %172 to i64
  %180 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %178, i64 %179)
  %181 = extractvalue { i64, i1 } %180, 1
  br i1 %181, label %.loopexit117, label %182, !prof !7

182:                                              ; preds = %177
  %183 = extractvalue { i64, i1 } %180, 0
  %184 = getelementptr inbounds i8, i8* %169, i64 1
  %185 = icmp eq i8* %184, %153
  br i1 %185, label %.loopexit117.loopexit.split.loop.exit, label %.preheader

186:                                              ; preds = %81
  %187 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %188 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %187, i64 0, i32 0
  %189 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %188) #16
  br i1 %189, label %193, label %190

190:                                              ; preds = %186
  %._storage6.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %187, i64 0, i32 1, i32 0, i32 0, i32 0
  %191 = load i64, i64* %._storage6.count._value, align 8, !range !6
  %192 = add nuw nsw i64 %191, 1
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSi_Tg5"(i1 false, i64 %192, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %4)
  %.pre = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %193

193:                                              ; preds = %186, %190
  %194 = phi %Ts28__ContiguousArrayStorageBaseC* [ %187, %186 ], [ %.pre, %190 ]
  %._storage7.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %194, i64 0, i32 1, i32 0, i32 0, i32 0
  %195 = load i64, i64* %._storage7.count._value, align 8, !range !6
  %._storage7._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %194, i64 0, i32 1, i32 0, i32 1, i32 0
  %196 = load i64, i64* %._storage7._capacityAndFlags._value, align 8
  %197 = lshr i64 %196, 1
  %198 = add nuw nsw i64 %195, 1
  %.not93 = icmp ugt i64 %197, %195
  br i1 %.not93, label %201, label %199, !prof !8

199:                                              ; preds = %193
  %200 = icmp ugt i64 %196, 1
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSi_Tg5"(i1 %200, i64 %198, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %4)
  %.pre147 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %201

201:                                              ; preds = %193, %199
  %202 = phi %Ts28__ContiguousArrayStorageBaseC* [ %194, %193 ], [ %.pre147, %199 ]
  %._storage8.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %202, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %198, i64* %._storage8.count._value, align 8
  %203 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %202, i64 1
  %tailaddr9 = bitcast %Ts28__ContiguousArrayStorageBaseC* %203 to %TSi*
  %._value10 = getelementptr inbounds %TSi, %TSi* %tailaddr9, i64 %195, i32 0
  store i64 %82, i64* %._value10, align 8
  %204 = icmp eq i64 %33, %18
  br i1 %204, label %205, label %31

205:                                              ; preds = %201
  %206 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %17, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %206) #3
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %23)
  br label %29

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

208:                                              ; preds = %31
  call void asm sideeffect "", "n"(i32 3) #3
  call void @llvm.trap()
  unreachable

209:                                              ; preds = %81
  call void asm sideeffect "", "n"(i32 4) #3
  call void @llvm.trap()
  unreachable

210:                                              ; preds = %117
  call void asm sideeffect "", "n"(i32 5) #3
  call void @llvm.trap()
  unreachable

211:                                              ; preds = %83
  call void asm sideeffect "", "n"(i32 6) #3
  call void @llvm.trap()
  unreachable
}

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

declare swiftcc { i64, %swift.bridge* } @"$ss23CustomStringConvertibleP11descriptionSSvgTj"(%swift.opaque* noalias nocapture swiftself, %swift.type*, i8**) local_unnamed_addr #0

declare swiftcc i64 @"$sSS5countSivg"(i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: nounwind
declare void @swift_beginAccess(i8*, [24 x i8]*, i64, i8*) local_unnamed_addr #3

; Function Attrs: noinline
define linkonce_odr hidden swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSi_Tg5"(i1 %0, i64 %1, i1 %2, %Ts15ContiguousArrayV* nocapture swiftself dereferenceable(8) %3) local_unnamed_addr #4 {
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_SiSbtFSi_Tg5"(i1 %0, i64 %1, i1 %2, %Ts28__ContiguousArrayStorageBaseC* %4)
  store %Ts28__ContiguousArrayStorageBaseC* %5, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  ret void
}

; Function Attrs: noinline
define linkonce_odr hidden swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSS_Tg5"(i1 %0, i64 %1, i1 %2, %Ts15ContiguousArrayV* nocapture swiftself dereferenceable(8) %3) local_unnamed_addr #4 {
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_SiSbtFSS_Tg5"(i1 %0, i64 %1, i1 %2, %Ts28__ContiguousArrayStorageBaseC* %4)
  store %Ts28__ContiguousArrayStorageBaseC* %5, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  ret void
}

declare swiftcc { i64, %swift.bridge* } @"$sSSySJSS5IndexVcig"(i64, i64, %swift.bridge*) local_unnamed_addr #0

declare swiftcc i64 @"$sSS5index5afterSS5IndexVAD_tF"(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 #5

; 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_bridgeObjectRelease(%swift.bridge*) local_unnamed_addr #3

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

; Function Attrs: noinline
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSi_Tg5"(i1 %0, i64 %1, i1 %2, %Ts28__ContiguousArrayStorageBaseC* %3) local_unnamed_addr #4 {
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 %46, label %11, !prof !7

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 !6
  %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_ContiguousArrayStorageCySiGMD") #15
  %21 = shl i64 %17, 3
  %22 = add i64 %21, 32
  %23 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %20, i64 %22, i64 7) #3
  %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) #18
  %gepdiff = add nsw i64 %call.i, -32
  %26 = sdiv i64 %gepdiff, 8
  %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 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to i8*
  %33 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 1
  %34 = bitcast %Ts28__ContiguousArrayStorageBaseC* %33 to i8*
  br i1 %0, label %35, label %42

35:                                               ; preds = %29
  %tailaddr4 = bitcast %Ts28__ContiguousArrayStorageBaseC* %33 to %TSi*
  %36 = getelementptr inbounds %TSi, %TSi* %tailaddr4, i64 %16
  %37 = bitcast %TSi* %36 to %Ts28__ContiguousArrayStorageBaseC*
  %38 = icmp ult %Ts28__ContiguousArrayStorageBaseC* %31, %37
  %39 = icmp eq %Ts28__ContiguousArrayStorageBaseC* %30, %3
  %or.cond14 = select i1 %39, i1 %38, i1 false
  br i1 %or.cond14, label %41, label %.sink.split

.sink.split:                                      ; preds = %35
  %40 = shl nuw i64 %16, 3
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* nonnull align 8 %32, i8* nonnull align 8 %34, i64 %40, i1 false)
  br label %41

41:                                               ; preds = %35, %.sink.split
  store i64 0, i64* %._storage.count._value, align 8
  br label %44

42:                                               ; preds = %29
  %43 = shl nuw i64 %16, 3
  tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* nonnull align 8 %32, i8* nonnull align 8 %34, i64 %43, i1 false)
  br label %44

44:                                               ; preds = %41, %42
  %45 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %45) #3
  ret %Ts28__ContiguousArrayStorageBaseC* %30

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

; Function Attrs: noinline
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSS_Tg5"(i1 %0, i64 %1, i1 %2, %Ts28__ContiguousArrayStorageBaseC* %3) local_unnamed_addr #4 {
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 !7

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 !6
  %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_ContiguousArrayStorageCySSGMD") #15
  %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) #3
  %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) #18
  %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
  %tailaddr4 = bitcast %Ts28__ContiguousArrayStorageBaseC* %32 to %TSS*
  %34 = getelementptr inbounds %TSS, %TSS* %tailaddr4, i64 %16
  %35 = bitcast %TSS* %34 to %Ts28__ContiguousArrayStorageBaseC*
  %36 = icmp ult %Ts28__ContiguousArrayStorageBaseC* %31, %35
  %37 = icmp eq %Ts28__ContiguousArrayStorageBaseC* %30, %3
  %or.cond14 = select i1 %37, i1 %36, i1 false
  br i1 %or.cond14, label %41, label %.sink.split

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

41:                                               ; preds = %33, %.sink.split
  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 @"$sSSN") #16
  br label %45

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

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

; Function Attrs: noinline
define linkonce_odr hidden swiftcc { i64, i8 } @"$ss13_parseInteger5ascii5radixq_Sgx_SitSyRzs010FixedWidthB0R_r0_lFSSSiADSSRszsAER_r0_lIetgyr_Tpq5Si_Tg5"(i64 %0, %swift.bridge* %1, i64 %2) local_unnamed_addr #4 {
entry:
  %3 = alloca %TSS, align 8
  %4 = alloca <{ %Ts6UInt64V, %Ts6UInt64V }>, align 8
  %swifterror = alloca swifterror %swift.error*, align 8
  store %swift.error* null, %swift.error** %swifterror, align 8
  %5 = bitcast %TSS* %3 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %5)
  %._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %3, i64 0, i32 0, i32 0, i32 0, i32 0
  store i64 %0, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %TSS, %TSS* %3, i64 0, i32 0, i32 0, i32 1
  store %swift.bridge* %1, %swift.bridge** %._guts._object._object, align 8
  %6 = bitcast %TSS* %3 to %swift.opaque*
  %7 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %1) #3
  %8 = call swiftcc { i64, %swift.bridge* } @"$sSSySSxcs25LosslessStringConvertibleRzSTRzSJ7ElementSTRtzlufC"(%swift.opaque* noalias nocapture nonnull %6, %swift.type* nonnull @"$sSSN", i8** nonnull @"$sSSs25LosslessStringConvertiblesWP", i8** nonnull @"$sSSSTsWP")
  %9 = extractvalue { i64, %swift.bridge* } %8, 0
  %10 = extractvalue { i64, %swift.bridge* } %8, 1
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %5)
  %11 = ptrtoint %swift.bridge* %10 to i64
  %12 = and i64 %11, 1152921504606846976
  %13 = icmp eq i64 %12, 0
  br i1 %13, label %18, label %14, !prof !8

14:                                               ; preds = %entry
  %15 = tail call swiftcc { i64, %swift.bridge* } @"$sSS8_copyingyS2SFZ"(i64 %9, %swift.bridge* %10)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %10) #3
  %16 = extractvalue { i64, %swift.bridge* } %15, 0
  %17 = extractvalue { i64, %swift.bridge* } %15, 1
  %.pre = ptrtoint %swift.bridge* %17 to i64
  br label %18

18:                                               ; preds = %entry, %14
  %.pre-phi = phi i64 [ %11, %entry ], [ %.pre, %14 ]
  %19 = phi i64 [ %9, %entry ], [ %16, %14 ]
  %20 = phi %swift.bridge* [ %10, %entry ], [ %17, %14 ]
  %21 = and i64 %.pre-phi, 2305843009213693952
  %22 = icmp eq i64 %21, 0
  br i1 %22, label %23, label %26

23:                                               ; preds = %18
  %24 = and i64 %19, 1152921504606846976
  %25 = icmp eq i64 %24, 0
  br i1 %25, label %34, label %38, !prof !7

26:                                               ; preds = %18
  %27 = lshr i64 %.pre-phi, 56
  %28 = and i64 %27, 15
  %29 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %4 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %29)
  %30 = and i64 %.pre-phi, 72057594037927935
  %.elt._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %4, i64 0, i32 0, i32 0
  store i64 %19, i64* %.elt._value, align 8
  %.elt3._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %4, i64 0, i32 1, i32 0
  store i64 %30, i64* %.elt3._value, align 8
  %31 = ptrtoint <{ %Ts6UInt64V, %Ts6UInt64V }>* %4 to i64
  %32 = call swiftcc { i64, i8 } @"$ss17FixedWidthIntegerPsE_5radixxSgqd___SitcSyRd__lufcADSRys5UInt8VGXEfU_AGSiADs5Error_psAARzSSRsd__r__lIetyyrzo_Tpq5Si_Tg5Tm"(i64 %31, i64 %28, i64 %2, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture swifterror dereferenceable(8) %swifterror)
  %33 = load %swift.error*, %swift.error** %swifterror, align 8
  %.not = icmp eq %swift.error* %33, null
  call void @llvm.assume(i1 %.not)
  call void @swift_bridgeObjectRelease(%swift.bridge* %20) #3
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %29)
  br label %47

34:                                               ; preds = %23
  %35 = tail call swiftcc { i64, i64 } @"$ss13_StringObjectV10sharedUTF8SRys5UInt8VGvg"(i64 %19, %swift.bridge* %20)
  %36 = extractvalue { i64, i64 } %35, 0
  %37 = extractvalue { i64, i64 } %35, 1
  br label %42

38:                                               ; preds = %23
  %39 = and i64 %.pre-phi, 1152921504606846975
  %40 = add nuw nsw i64 %39, 32
  %41 = and i64 %19, 281474976710655
  br label %42

42:                                               ; preds = %34, %38
  %43 = phi i64 [ %40, %38 ], [ %36, %34 ]
  %44 = phi i64 [ %41, %38 ], [ %37, %34 ]
  %45 = call swiftcc { i64, i8 } @"$ss17FixedWidthIntegerPsE_5radixxSgqd___SitcSyRd__lufcADSRys5UInt8VGXEfU_AGSiADs5Error_psAARzSSRsd__r__lIetyyrzo_Tpq5Si_Tg5Tm"(i64 %43, i64 %44, i64 %2, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture swifterror dereferenceable(8) %swifterror)
  %46 = load %swift.error*, %swift.error** %swifterror, align 8
  %.not7 = icmp eq %swift.error* %46, null
  tail call void @llvm.assume(i1 %.not7)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %20) #3
  br label %47

47:                                               ; preds = %42, %26
  %.pn = phi { i64, i8 } [ %32, %26 ], [ %45, %42 ]
  %.in.in = extractvalue { i64, i8 } %.pn, 1
  %.in = and i8 %.in.in, 1
  %48 = insertvalue { i64, i8 } %.pn, i8 %.in, 1
  ret { i64, i8 } %48
}

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

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

; Function Attrs: mustprogress nofree noinline nounwind readonly willreturn
define linkonce_odr hidden %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* %0) local_unnamed_addr #7 {
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 !7

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) #19
  %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 #8

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

declare swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC*, i64, %swift.bridge*, i64, %swift.bridge*) local_unnamed_addr #0

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

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

; Function Attrs: noinline
declare swiftcc { i64, i64 } @"$ss13_StringObjectV10sharedUTF8SRys5UInt8VGvg"(i64, %swift.bridge*) local_unnamed_addr #4

declare swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSy10FoundationE10components11separatedBySaySSGqd___tSyRd__lF"(%swift.opaque* noalias nocapture, %swift.type*, %swift.type*, i8**, i8**, %swift.opaque* noalias nocapture swiftself) local_unnamed_addr #0

; Function Attrs: nofree noinline nosync nounwind readnone
define linkonce_odr hidden i8** @"$sS2SSysWl"() local_unnamed_addr #9 {
entry:
  %0 = load i8**, i8*** @"$sS2SSysWL", align 8
  %1 = icmp eq i8** %0, null
  br i1 %1, label %cacheIsNull, label %cont

cacheIsNull:                                      ; preds = %entry
  %2 = tail call i8** @swift_getWitnessTable(%swift.protocol_conformance_descriptor* nonnull @"$sSSSysMc", %swift.type* nonnull @"$sSSN", i8*** undef) #15
  store atomic i8** %2, i8*** @"$sS2SSysWL" release, align 8
  br label %cont

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

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

declare swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1) local_unnamed_addr #0

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

; 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

declare swiftcc { i64, %swift.bridge* } @"$sSSySSxcs25LosslessStringConvertibleRzSTRzSJ7ElementSTRtzlufC"(%swift.opaque* noalias nocapture, %swift.type*, i8**, i8**) local_unnamed_addr #0

define internal swiftcc { i64, i8 } @"$ss17FixedWidthIntegerPsE_5radixxSgqd___SitcSyRd__lufcADSRys5UInt8VGXEfU_AGSiADs5Error_psAARzSSRsd__r__lIetyyrzo_Tpq5Si_Tg5Tm"(i64 %0, i64 %1, i64 %2, %swift.refcounted* swiftself %3, %swift.error** noalias nocapture swifterror dereferenceable(8) %4) local_unnamed_addr #0 {
entry:
  %5 = inttoptr i64 %0 to i8*
  %6 = inttoptr i64 %0 to %Ts5UInt8V*
  %._value = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %6, i64 0, i32 0
  %7 = load i8, i8* %._value, align 1
  switch i8 %7, label %69 [
    i8 45, label %8
    i8 43, label %60
  ]

8:                                                ; preds = %entry
  %9 = icmp slt i64 %1, 1
  br i1 %9, label %147, label %10, !prof !7

10:                                               ; preds = %8
  %11 = icmp eq i64 %0, 0
  %12 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %6, i64 1, i32 0
  %13 = ptrtoint i8* %12 to i64
  %14 = select i1 %11, i64 0, i64 %13
  %15 = add nsw i64 %1, -1
  %16 = icmp eq i64 %15, 0
  br i1 %16, label %.loopexit76, label %17, !prof !7

17:                                               ; preds = %10
  %18 = icmp sgt i64 %2, 10
  %19 = trunc i64 %2 to i8
  %20 = add i8 %19, 48
  %21 = add i8 %19, 55
  %22 = add i8 %19, 87
  %23 = select i1 %18, i8 %22, i8 97
  %24 = select i1 %18, i8 %21, i8 65
  %25 = select i1 %18, i8 58, i8 %20
  br i1 %11, label %.loopexit76, label %31

.loopexit76.loopexit.split.loop.exit:             ; preds = %139
  %26 = extractvalue { i64, i1 } %137, 0
  br label %.loopexit76

.loopexit76.loopexit99.split.loop.exit:           ; preds = %53
  %27 = extractvalue { i64, i1 } %51, 0
  br label %.loopexit76

.loopexit76.loopexit102.split.loop.exit:          ; preds = %102
  %28 = extractvalue { i64, i1 } %100, 0
  br label %.loopexit76

.loopexit76:                                      ; preds = %96, %93, %106, %47, %44, %57, %133, %130, %143, %.loopexit76.loopexit102.split.loop.exit, %.loopexit76.loopexit99.split.loop.exit, %.loopexit76.loopexit.split.loop.exit, %119, %109, %69, %80, %71, %62, %31, %17, %10
  %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8. = phi i8 [ 1, %10 ], [ 0, %17 ], [ 0, %31 ], [ 1, %62 ], [ 0, %71 ], [ 0, %80 ], [ 1, %69 ], [ 0, %109 ], [ 0, %119 ], [ 0, %.loopexit76.loopexit.split.loop.exit ], [ 0, %.loopexit76.loopexit99.split.loop.exit ], [ 0, %.loopexit76.loopexit102.split.loop.exit ], [ 1, %143 ], [ 1, %130 ], [ 1, %133 ], [ 1, %57 ], [ 1, %44 ], [ 1, %47 ], [ 1, %106 ], [ 1, %93 ], [ 1, %96 ]
  %.sroa.0.0 = phi i64 [ 0, %10 ], [ 0, %17 ], [ 0, %31 ], [ 0, %62 ], [ 0, %71 ], [ 0, %80 ], [ 0, %69 ], [ 0, %109 ], [ 0, %119 ], [ %26, %.loopexit76.loopexit.split.loop.exit ], [ %27, %.loopexit76.loopexit99.split.loop.exit ], [ %28, %.loopexit76.loopexit102.split.loop.exit ], [ 0, %143 ], [ 0, %130 ], [ 0, %133 ], [ 0, %57 ], [ 0, %44 ], [ 0, %47 ], [ 0, %106 ], [ 0, %93 ], [ 0, %96 ]
  %29 = insertvalue { i64, i8 } undef, i64 %.sroa.0.0, 0
  %30 = insertvalue { i64, i8 } %29, i8 %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8., 1
  ret { i64, i8 } %30

31:                                               ; preds = %17
  %32 = inttoptr i64 %14 to %Ts5UInt8V*
  %33 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %32, i64 %15, i32 0
  %34 = inttoptr i64 %14 to i8*
  %35 = icmp eq i8* %33, %34
  br i1 %35, label %.loopexit76, label %.preheader75

.preheader75:                                     ; preds = %31, %53
  %36 = phi i8* [ %55, %53 ], [ %34, %31 ]
  %37 = phi i64 [ %54, %53 ], [ 0, %31 ]
  %38 = load i8, i8* %36, align 1
  %39 = icmp ugt i8 %38, 47
  %40 = icmp ult i8 %38, %25
  %or.cond = select i1 %39, i1 %40, i1 false
  br i1 %or.cond, label %44, label %41, !prof !10

41:                                               ; preds = %.preheader75
  %42 = icmp ugt i8 %38, 64
  %43 = icmp ult i8 %38, %24
  %or.cond7 = select i1 %42, i1 %43, i1 false
  br i1 %or.cond7, label %44, label %57, !prof !10

44:                                               ; preds = %.preheader75, %57, %41
  %.sink = phi i8 [ -55, %41 ], [ -87, %57 ], [ -48, %.preheader75 ]
  %45 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %37, i64 %2)
  %46 = extractvalue { i64, i1 } %45, 1
  br i1 %46, label %.loopexit76, label %47

47:                                               ; preds = %44
  %48 = add i8 %38, %.sink
  %49 = extractvalue { i64, i1 } %45, 0
  %50 = zext i8 %48 to i64
  %51 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %49, i64 %50)
  %52 = extractvalue { i64, i1 } %51, 1
  br i1 %52, label %.loopexit76, label %53, !prof !7

53:                                               ; preds = %47
  %54 = extractvalue { i64, i1 } %51, 0
  %55 = getelementptr inbounds i8, i8* %36, i64 1
  %56 = icmp eq i8* %55, %33
  br i1 %56, label %.loopexit76.loopexit99.split.loop.exit, label %.preheader75

57:                                               ; preds = %41
  %58 = icmp ugt i8 %38, 96
  %59 = icmp ult i8 %38, %23
  %or.cond8 = select i1 %58, i1 %59, i1 false
  br i1 %or.cond8, label %44, label %.loopexit76, !prof !10

60:                                               ; preds = %entry
  %61 = icmp slt i64 %1, 1
  br i1 %61, label %146, label %62, !prof !7

62:                                               ; preds = %60
  %63 = icmp eq i64 %0, 0
  %64 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %6, i64 1, i32 0
  %65 = ptrtoint i8* %64 to i64
  %66 = select i1 %63, i64 0, i64 %65
  %67 = add nsw i64 %1, -1
  %68 = icmp eq i64 %67, 0
  br i1 %68, label %.loopexit76, label %71, !prof !7

69:                                               ; preds = %entry
  %70 = icmp eq i64 %1, 0
  br i1 %70, label %.loopexit76, label %109, !prof !7

71:                                               ; preds = %62
  %72 = icmp sgt i64 %2, 10
  %73 = trunc i64 %2 to i8
  %74 = add i8 %73, 48
  %75 = add i8 %73, 55
  %76 = add i8 %73, 87
  %77 = select i1 %72, i8 %76, i8 97
  %78 = select i1 %72, i8 %75, i8 65
  %79 = select i1 %72, i8 58, i8 %74
  br i1 %63, label %.loopexit76, label %80

80:                                               ; preds = %71
  %81 = inttoptr i64 %66 to %Ts5UInt8V*
  %82 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %81, i64 %67, i32 0
  %83 = inttoptr i64 %66 to i8*
  %84 = icmp eq i8* %82, %83
  br i1 %84, label %.loopexit76, label %.preheader77

.preheader77:                                     ; preds = %80, %102
  %85 = phi i8* [ %104, %102 ], [ %83, %80 ]
  %86 = phi i64 [ %103, %102 ], [ 0, %80 ]
  %87 = load i8, i8* %85, align 1
  %88 = icmp ugt i8 %87, 47
  %89 = icmp ult i8 %87, %79
  %or.cond9 = select i1 %88, i1 %89, i1 false
  br i1 %or.cond9, label %93, label %90, !prof !10

90:                                               ; preds = %.preheader77
  %91 = icmp ugt i8 %87, 64
  %92 = icmp ult i8 %87, %78
  %or.cond10 = select i1 %91, i1 %92, i1 false
  br i1 %or.cond10, label %93, label %106, !prof !10

93:                                               ; preds = %.preheader77, %106, %90
  %.sink134 = phi i8 [ -55, %90 ], [ -87, %106 ], [ -48, %.preheader77 ]
  %94 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %86, i64 %2)
  %95 = extractvalue { i64, i1 } %94, 1
  br i1 %95, label %.loopexit76, label %96

96:                                               ; preds = %93
  %97 = add i8 %87, %.sink134
  %98 = extractvalue { i64, i1 } %94, 0
  %99 = zext i8 %97 to i64
  %100 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %98, i64 %99)
  %101 = extractvalue { i64, i1 } %100, 1
  br i1 %101, label %.loopexit76, label %102, !prof !7

102:                                              ; preds = %96
  %103 = extractvalue { i64, i1 } %100, 0
  %104 = getelementptr inbounds i8, i8* %85, i64 1
  %105 = icmp eq i8* %104, %82
  br i1 %105, label %.loopexit76.loopexit102.split.loop.exit, label %.preheader77

106:                                              ; preds = %90
  %107 = icmp ugt i8 %87, 96
  %108 = icmp ult i8 %87, %77
  %or.cond11 = select i1 %107, i1 %108, i1 false
  br i1 %or.cond11, label %93, label %.loopexit76, !prof !10

109:                                              ; preds = %69
  %110 = icmp sgt i64 %2, 10
  %111 = trunc i64 %2 to i8
  %112 = add i8 %111, 48
  %113 = add i8 %111, 55
  %114 = add i8 %111, 87
  %115 = select i1 %110, i8 %114, i8 97
  %116 = select i1 %110, i8 %113, i8 65
  %117 = select i1 %110, i8 58, i8 %112
  %118 = icmp eq i64 %0, 0
  br i1 %118, label %.loopexit76, label %119

119:                                              ; preds = %109
  %120 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %6, i64 %1, i32 0
  %121 = icmp eq i8* %120, %5
  br i1 %121, label %.loopexit76, label %.preheader

.preheader:                                       ; preds = %119, %139
  %122 = phi i8* [ %141, %139 ], [ %5, %119 ]
  %123 = phi i64 [ %140, %139 ], [ 0, %119 ]
  %124 = load i8, i8* %122, align 1
  %125 = icmp ugt i8 %124, 47
  %126 = icmp ult i8 %124, %117
  %or.cond12 = select i1 %125, i1 %126, i1 false
  br i1 %or.cond12, label %130, label %127, !prof !10

127:                                              ; preds = %.preheader
  %128 = icmp ugt i8 %124, 64
  %129 = icmp ult i8 %124, %116
  %or.cond13 = select i1 %128, i1 %129, i1 false
  br i1 %or.cond13, label %130, label %143, !prof !10

130:                                              ; preds = %.preheader, %143, %127
  %.sink135 = phi i8 [ -55, %127 ], [ -87, %143 ], [ -48, %.preheader ]
  %131 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %123, i64 %2)
  %132 = extractvalue { i64, i1 } %131, 1
  br i1 %132, label %.loopexit76, label %133

133:                                              ; preds = %130
  %134 = add i8 %124, %.sink135
  %135 = extractvalue { i64, i1 } %131, 0
  %136 = zext i8 %134 to i64
  %137 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %135, i64 %136)
  %138 = extractvalue { i64, i1 } %137, 1
  br i1 %138, label %.loopexit76, label %139, !prof !7

139:                                              ; preds = %133
  %140 = extractvalue { i64, i1 } %137, 0
  %141 = getelementptr inbounds i8, i8* %122, i64 1
  %142 = icmp eq i8* %141, %120
  br i1 %142, label %.loopexit76.loopexit.split.loop.exit, label %.preheader

143:                                              ; preds = %127
  %144 = icmp ugt i8 %124, 96
  %145 = icmp ult i8 %124, %115
  %or.cond14 = select i1 %144, i1 %145, i1 false
  br i1 %or.cond14, label %130, label %.loopexit76, !prof !10

146:                                              ; preds = %60
  tail call void asm sideeffect "", "n"(i32 0) #3
  tail call void @llvm.trap()
  unreachable

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

; Function Attrs: noinline
define linkonce_odr hidden swiftcc { i64, %swift.bridge* } @"$sSS8_copyingyS2SFZ"(i64 %0, %swift.bridge* %1) local_unnamed_addr #4 {
entry:
  %2 = ptrtoint %swift.bridge* %1 to i64
  %3 = and i64 %2, 2305843009213693952
  %4 = icmp eq i64 %3, 0
  %5 = lshr i64 %2, 56
  %6 = and i64 %5, 15
  %7 = select i1 %4, i64 %0, i64 %6
  %8 = shl i64 %7, 16
  %9 = and i64 %2, 1152921504606846976
  %10 = icmp ne i64 %9, 0
  %11 = and i64 %0, 576460752303423488
  %12 = icmp eq i64 %11, 0
  %or.cond = select i1 %10, i1 %12, i1 false
  %.v = select i1 %or.cond, i64 11, i64 7
  %13 = or i64 %8, %.v
  %14 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64 15, i64 %13, i64 %0, %swift.bridge* %1)
  %15 = extractvalue { i64, i64, i64, %swift.bridge* } %14, 0
  %16 = extractvalue { i64, i64, i64, %swift.bridge* } %14, 1
  %17 = extractvalue { i64, i64, i64, %swift.bridge* } %14, 2
  %18 = extractvalue { i64, i64, i64, %swift.bridge* } %14, 3
  %19 = tail call swiftcc { i64, %swift.bridge* } @"$sSS8_copyingySSSsFZ"(i64 %15, i64 %16, i64 %17, %swift.bridge* %18)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %18) #3
  ret { i64, %swift.bridge* } %19
}

declare swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64, i64, i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: noinline
define linkonce_odr hidden swiftcc { i64, %swift.bridge* } @"$sSS8_copyingySSSsFZ"(i64 %0, i64 %1, i64 %2, %swift.bridge* %3) local_unnamed_addr #4 {
entry:
  %4 = alloca %Ts16IndexingIteratorVySs8UTF8ViewVG, align 8
  %5 = alloca <{ %Ts6UInt64V, %Ts6UInt64V }>, align 8
  %6 = ptrtoint %swift.bridge* %3 to i64
  %7 = and i64 %6, 1152921504606846976
  %8 = icmp eq i64 %7, 0
  br i1 %8, label %27, label %9, !prof !8

9:                                                ; preds = %entry
  %10 = tail call swiftcc i64 @"$sSlsE5countSivgSs8UTF8ViewV_Tgq5"(i64 %0, i64 %1, i64 %2, %swift.bridge* %3)
  %11 = icmp eq i64 %10, 0
  br i1 %11, label %._crit_edge, label %12

12:                                               ; preds = %9
  %13 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV19_uninitializedCount15minimumCapacityAByxGSi_SitcfCs5UInt8V_Tgq5Tf4nnd_n"(i64 %10, i64 0)
  %14 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %13, i64 1
  %15 = ptrtoint %Ts28__ContiguousArrayStorageBaseC* %14 to i64
  %16 = bitcast %Ts16IndexingIteratorVySs8UTF8ViewVG* %4 to i8*
  call void @llvm.lifetime.start.p0i8(i64 40, i8* nonnull %16)
  %17 = call swiftcc i64 @"$sSTsE21_copySequenceContents12initializing8IteratorQz_SitSry7ElementQzG_tFSs8UTF8ViewV_Tgq5"(%Ts16IndexingIteratorVySs8UTF8ViewVG* noalias nocapture nonnull %4, i64 %15, i64 %10, i64 %0, i64 %1, i64 %2, %swift.bridge* %3)
  %.not = icmp eq i64 %17, %10
  br i1 %.not, label %18, label %59, !prof !8

18:                                               ; preds = %12
  %._elements._slice._base._guts._object._object = getelementptr inbounds %Ts16IndexingIteratorVySs8UTF8ViewVG, %Ts16IndexingIteratorVySs8UTF8ViewVG* %4, i64 0, i32 0, i32 0, i32 2, i32 0, i32 0, i32 1
  %19 = load %swift.bridge*, %swift.bridge** %._elements._slice._base._guts._object._object, align 8
  %20 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %3) #3
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %19) #3
  call void @llvm.lifetime.end.p0i8(i64 40, i8* nonnull %16)
  br label %._crit_edge

._crit_edge:                                      ; preds = %9, %18
  %21 = phi %Ts28__ContiguousArrayStorageBaseC* [ %13, %18 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %9 ]
  %22 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %21, i64 1
  %23 = ptrtoint %Ts28__ContiguousArrayStorageBaseC* %22 to i64
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %21, i64 0, i32 1, i32 0, i32 0, i32 0
  %24 = load i64, i64* %._storage.count._value, align 8, !range !6
  %25 = tail call swiftcc { i64, %swift.bridge* } @"$sSS18_uncheckedFromUTF8ySSSRys5UInt8VGFZ"(i64 %23, i64 %24), !noalias !11
  %26 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %21, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %26) #3
  br label %58

27:                                               ; preds = %entry
  %28 = lshr i64 %0, 16
  %29 = lshr i64 %1, 16
  %30 = and i64 %6, 2305843009213693952
  %31 = icmp eq i64 %30, 0
  br i1 %31, label %40, label %32

32:                                               ; preds = %27
  %33 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %5 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %33)
  %34 = and i64 %6, 72057594037927935
  %.elt._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %5, i64 0, i32 0, i32 0
  store i64 %2, i64* %.elt._value, align 8
  %.elt2._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %5, i64 0, i32 1, i32 0
  store i64 %34, i64* %.elt2._value, align 8
  %35 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %5 to %Ts5UInt8V*
  %36 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %35, i64 %28, i32 0
  %37 = ptrtoint i8* %36 to i64
  %38 = sub nsw i64 %29, %28
  %39 = call swiftcc { i64, %swift.bridge* } @"$sSS18_uncheckedFromUTF8ySSSRys5UInt8VGFZ"(i64 %37, i64 %38)
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %33)
  br label %58

40:                                               ; preds = %27
  %41 = and i64 %2, 1152921504606846976
  %42 = icmp eq i64 %41, 0
  br i1 %42, label %46, label %43, !prof !7

43:                                               ; preds = %40
  %44 = and i64 %6, 1152921504606846975
  %45 = add nuw nsw i64 %44, 32
  br label %50

46:                                               ; preds = %40
  %47 = tail call swiftcc { i64, i64 } @"$ss13_StringObjectV10sharedUTF8SRys5UInt8VGvg"(i64 %2, %swift.bridge* %3)
  %48 = extractvalue { i64, i64 } %47, 0
  %49 = icmp eq i64 %48, 0
  br i1 %49, label %54, label %50

50:                                               ; preds = %46, %43
  %.in = phi i64 [ %45, %43 ], [ %48, %46 ]
  %51 = inttoptr i64 %.in to %Ts5UInt8V*
  %52 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %51, i64 %28, i32 0
  %53 = ptrtoint i8* %52 to i64
  br label %54

54:                                               ; preds = %46, %50
  %55 = phi i64 [ %53, %50 ], [ 0, %46 ]
  %56 = sub nsw i64 %29, %28
  %57 = tail call swiftcc { i64, %swift.bridge* } @"$sSS18_uncheckedFromUTF8ySSSRys5UInt8VGFZ"(i64 %55, i64 %56)
  br label %58

58:                                               ; preds = %54, %32, %._crit_edge
  %.pn = phi { i64, %swift.bridge* } [ %25, %._crit_edge ], [ %39, %32 ], [ %57, %54 ]
  ret { i64, %swift.bridge* } %.pn

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

define linkonce_odr hidden swiftcc i64 @"$sSlsE5countSivgSs8UTF8ViewV_Tgq5"(i64 %0, i64 %1, i64 %2, %swift.bridge* %3) local_unnamed_addr #0 {
entry:
  %4 = ptrtoint %swift.bridge* %3 to i64
  %5 = and i64 %4, 1152921504606846976
  %6 = icmp eq i64 %5, 0
  %7 = and i64 %2, 576460752303423488
  %8 = icmp ne i64 %7, 0
  %9 = select i1 %6, i1 true, i1 %8
  %10 = and i64 %0, 12
  %11 = zext i1 %9 to i64
  %12 = shl nuw nsw i64 4, %11
  %13 = icmp eq i64 %10, %12
  br i1 %13, label %14, label %16, !prof !7

14:                                               ; preds = %entry
  %15 = tail call swiftcc i64 @"$ss11_StringGutsV27_slowEnsureMatchingEncodingySS5IndexVAEF"(i64 %0, i64 %2, %swift.bridge* %3)
  br label %16

16:                                               ; preds = %entry, %14
  %17 = phi i64 [ %15, %14 ], [ %0, %entry ]
  %18 = and i64 %1, 12
  %19 = icmp eq i64 %18, %12
  br i1 %19, label %20, label %22, !prof !7

20:                                               ; preds = %16
  %21 = tail call swiftcc i64 @"$ss11_StringGutsV27_slowEnsureMatchingEncodingySS5IndexVAEF"(i64 %1, i64 %2, %swift.bridge* %3)
  br label %22

22:                                               ; preds = %16, %20
  %23 = phi i64 [ %21, %20 ], [ %1, %16 ]
  br i1 %6, label %38, label %24, !prof !8

24:                                               ; preds = %22
  %25 = and i64 %4, 2305843009213693952
  %26 = icmp eq i64 %25, 0
  %27 = lshr i64 %4, 56
  %28 = and i64 %27, 15
  %29 = and i64 %2, 281474976710655
  %30 = select i1 %26, i64 %29, i64 %28
  %31 = lshr i64 %17, 16
  %32 = icmp ult i64 %30, %31
  br i1 %32, label %44, label %33, !prof !7

33:                                               ; preds = %24
  %34 = lshr i64 %23, 16
  %35 = icmp ult i64 %30, %34
  br i1 %35, label %45, label %36, !prof !7

36:                                               ; preds = %33
  %37 = tail call swiftcc i64 @"$sSS8UTF8ViewV16_foreignDistance4from2toSiSS5IndexV_AGtF"(i64 %17, i64 %23, i64 %2, %swift.bridge* %3)
  br label %42

38:                                               ; preds = %22
  %39 = lshr i64 %23, 16
  %40 = lshr i64 %17, 16
  %41 = sub nsw i64 %39, %40
  br label %42

42:                                               ; preds = %38, %36
  %43 = phi i64 [ %37, %36 ], [ %41, %38 ]
  ret i64 %43

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

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

define linkonce_odr hidden swiftcc i64 @"$sSTsE21_copySequenceContents12initializing8IteratorQz_SitSry7ElementQzG_tFSs8UTF8ViewV_Tgq5"(%Ts16IndexingIteratorVySs8UTF8ViewVG* noalias nocapture %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5, %swift.bridge* %6) local_unnamed_addr #0 {
entry:
  %7 = alloca <{ %Ts6UInt64V, %Ts6UInt64V }>, align 8
  %8 = icmp eq i64 %1, 0
  br i1 %8, label %.loopexit, label %9

9:                                                ; preds = %entry
  %10 = icmp eq i64 %2, 0
  br i1 %10, label %.loopexit, label %11

11:                                               ; preds = %9
  %12 = icmp slt i64 %2, 0
  %13 = lshr i64 %4, 14
  br i1 %12, label %92, label %14, !prof !7

14:                                               ; preds = %11
  %15 = lshr i64 %3, 14
  %16 = icmp eq i64 %15, %13
  br i1 %16, label %.loopexit, label %17

17:                                               ; preds = %14
  %18 = ptrtoint %swift.bridge* %6 to i64
  %19 = and i64 %18, 1152921504606846976
  %20 = icmp eq i64 %19, 0
  %21 = inttoptr i64 %1 to %Ts5UInt8V*
  %22 = and i64 %5, 576460752303423488
  %23 = icmp ne i64 %22, 0
  %24 = select i1 %20, i1 true, i1 %23
  %25 = zext i1 %24 to i64
  %26 = shl nuw nsw i64 4, %25
  %27 = and i64 %18, 2305843009213693952
  %28 = icmp eq i64 %27, 0
  %29 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %7 to i8*
  %30 = and i64 %18, 72057594037927935
  %.elt._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %7, i64 0, i32 0, i32 0
  %.elt6._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %7, i64 0, i32 1, i32 0
  %31 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %7 to %Ts5UInt8V*
  %32 = and i64 %5, 1152921504606846976
  %33 = icmp eq i64 %32, 0
  %34 = and i64 %18, 1152921504606846975
  %35 = add nuw nsw i64 %34, 32
  %36 = lshr i64 %18, 56
  %37 = and i64 %36, 15
  %38 = and i64 %5, 281474976710655
  %39 = select i1 %28, i64 %38, i64 %37
  br label %40

40:                                               ; preds = %87, %17
  %41 = phi %Ts5UInt8V* [ %21, %17 ], [ %91, %87 ]
  %42 = phi i64 [ %3, %17 ], [ %85, %87 ]
  %43 = phi i64 [ 1, %17 ], [ %88, %87 ]
  %44 = and i64 %42, 12
  %45 = icmp eq i64 %44, %26
  br i1 %45, label %46, label %48, !prof !7

46:                                               ; preds = %40
  %47 = tail call swiftcc i64 @"$ss11_StringGutsV27_slowEnsureMatchingEncodingySS5IndexVAEF"(i64 %42, i64 %5, %swift.bridge* %6)
  br label %48

48:                                               ; preds = %40, %46
  %49 = phi i64 [ %47, %46 ], [ %42, %40 ]
  %50 = lshr i64 %49, 14
  %51 = icmp ult i64 %50, %15
  %52 = icmp uge i64 %50, %13
  %53 = or i1 %51, %52
  br i1 %53, label %93, label %54, !prof !7

54:                                               ; preds = %48
  br i1 %20, label %57, label %55

55:                                               ; preds = %54
  %56 = tail call swiftcc i8 @"$sSS8UTF8ViewV17_foreignSubscript8positions5UInt8VSS5IndexV_tF"(i64 %49, i64 %5, %swift.bridge* %6)
  br label %70

57:                                               ; preds = %54
  br i1 %28, label %61, label %58

58:                                               ; preds = %57
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %29)
  store i64 %5, i64* %.elt._value, align 8
  store i64 %30, i64* %.elt6._value, align 8
  %59 = lshr i64 %49, 16
  %._value7 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %31, i64 %59, i32 0
  %60 = load i8, i8* %._value7, align 1
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %29)
  br label %70

61:                                               ; preds = %57
  br i1 %33, label %62, label %65, !prof !7

62:                                               ; preds = %61
  %63 = tail call swiftcc { i64, i64 } @"$ss13_StringObjectV10sharedUTF8SRys5UInt8VGvg"(i64 %5, %swift.bridge* %6)
  %64 = extractvalue { i64, i64 } %63, 0
  br label %65

65:                                               ; preds = %61, %62
  %66 = phi i64 [ %64, %62 ], [ %35, %61 ]
  %67 = lshr i64 %49, 16
  %68 = inttoptr i64 %66 to %Ts5UInt8V*
  %._value8 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %68, i64 %67, i32 0
  %69 = load i8, i8* %._value8, align 1
  br label %70

70:                                               ; preds = %65, %58, %55
  %71 = phi i8 [ %56, %55 ], [ %60, %58 ], [ %69, %65 ]
  br i1 %45, label %72, label %74, !prof !7

72:                                               ; preds = %70
  %73 = tail call swiftcc i64 @"$ss11_StringGutsV27_slowEnsureMatchingEncodingySS5IndexVAEF"(i64 %42, i64 %5, %swift.bridge* %6)
  br label %74

74:                                               ; preds = %70, %72
  %75 = phi i64 [ %73, %72 ], [ %42, %70 ]
  br i1 %20, label %80, label %76

76:                                               ; preds = %74
  %77 = lshr i64 %75, 16
  %.not = icmp ult i64 %77, %39
  br i1 %.not, label %78, label %94, !prof !8

78:                                               ; preds = %76
  %79 = tail call swiftcc i64 @"$sSS8UTF8ViewV13_foreignIndex5afterSS0D0VAF_tF"(i64 %75, i64 %5, %swift.bridge* %6)
  br label %84

80:                                               ; preds = %74
  %81 = and i64 %75, -65536
  %82 = add i64 %81, 65540
  br label %84

.loopexit:                                        ; preds = %87, %84, %14, %9, %entry
  %.sink = phi i64 [ %3, %entry ], [ %3, %9 ], [ %3, %14 ], [ %85, %84 ], [ %85, %87 ]
  %83 = phi i64 [ 0, %entry ], [ %2, %9 ], [ 0, %14 ], [ %43, %87 ], [ %2, %84 ]
  %._elements4._slice._startIndex._rawBits._value = getelementptr inbounds %Ts16IndexingIteratorVySs8UTF8ViewVG, %Ts16IndexingIteratorVySs8UTF8ViewVG* %0, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0
  store i64 %3, i64* %._elements4._slice._startIndex._rawBits._value, align 8
  %._elements4._slice._endIndex._rawBits._value = getelementptr inbounds %Ts16IndexingIteratorVySs8UTF8ViewVG, %Ts16IndexingIteratorVySs8UTF8ViewVG* %0, i64 0, i32 0, i32 0, i32 1, i32 0, i32 0
  store i64 %4, i64* %._elements4._slice._endIndex._rawBits._value, align 8
  %._elements4._slice._base._guts._object._countAndFlagsBits._value = getelementptr inbounds %Ts16IndexingIteratorVySs8UTF8ViewVG, %Ts16IndexingIteratorVySs8UTF8ViewVG* %0, i64 0, i32 0, i32 0, i32 2, i32 0, i32 0, i32 0, i32 0
  store i64 %5, i64* %._elements4._slice._base._guts._object._countAndFlagsBits._value, align 8
  %._elements4._slice._base._guts._object._object = getelementptr inbounds %Ts16IndexingIteratorVySs8UTF8ViewVG, %Ts16IndexingIteratorVySs8UTF8ViewVG* %0, i64 0, i32 0, i32 0, i32 2, i32 0, i32 0, i32 1
  store %swift.bridge* %6, %swift.bridge** %._elements4._slice._base._guts._object._object, align 8
  %._position5._rawBits._value = getelementptr inbounds %Ts16IndexingIteratorVySs8UTF8ViewVG, %Ts16IndexingIteratorVySs8UTF8ViewVG* %0, i64 0, i32 1, i32 0, i32 0
  store i64 %.sink, i64* %._position5._rawBits._value, align 8
  ret i64 %83

84:                                               ; preds = %80, %78
  %85 = phi i64 [ %79, %78 ], [ %82, %80 ]
  %._value1 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %41, i64 0, i32 0
  store i8 %71, i8* %._value1, align 1
  %86 = icmp eq i64 %43, %2
  br i1 %86, label %.loopexit, label %87

87:                                               ; preds = %84
  %88 = add nuw nsw i64 %43, 1
  %89 = lshr i64 %85, 14
  %90 = icmp eq i64 %89, %13
  %91 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %41, i64 1
  br i1 %90, label %.loopexit, label %40

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

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

94:                                               ; preds = %76
  tail call void asm sideeffect "", "n"(i32 3) #3
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: noinline
define linkonce_odr hidden swiftcc i64 @"$ss11_StringGutsV27_slowEnsureMatchingEncodingySS5IndexVAEF"(i64 %0, i64 %1, %swift.bridge* %2) local_unnamed_addr #4 {
entry:
  %3 = ptrtoint %swift.bridge* %2 to i64
  %4 = and i64 %3, 1152921504606846976
  %5 = icmp ne i64 %4, 0
  %6 = and i64 %1, 576460752303423488
  %7 = icmp eq i64 %6, 0
  %or.cond = select i1 %5, i1 %7, i1 false
  %8 = lshr i64 %0, 16
  %9 = lshr i64 %0, 14
  %10 = and i64 %9, 3
  %11 = icmp eq i64 %10, 0
  br i1 %or.cond, label %12, label %25

12:                                               ; preds = %entry
  %13 = tail call swiftcc i64 @"$sSS8UTF8ViewV13_foreignIndex_8offsetBySS0D0VAF_SitF"(i64 15, i64 %8, i64 %1, %swift.bridge* %2)
  br i1 %11, label %18, label %14

14:                                               ; preds = %12
  %15 = shl nuw nsw i64 %10, 16
  %16 = add i64 %13, %15
  %17 = and i64 %16, -65536
  br label %22

18:                                               ; preds = %12
  %19 = and i64 %13, -4
  %20 = and i64 %0, 3
  %21 = or i64 %19, %20
  br label %22

22:                                               ; preds = %18, %14
  %23 = phi i64 [ %17, %14 ], [ %21, %18 ]
  %24 = or i64 %23, 8
  br label %38

25:                                               ; preds = %entry
  %26 = tail call swiftcc i64 @"$sSS9UTF16ViewV5index_8offsetBySS5IndexVAF_SitF"(i64 15, i64 %8, i64 %1, %swift.bridge* %2)
  br i1 %11, label %31, label %27

27:                                               ; preds = %25
  %28 = shl nuw nsw i64 %10, 16
  %29 = add i64 %26, %28
  %30 = and i64 %29, -65536
  br label %35

31:                                               ; preds = %25
  %32 = and i64 %26, -4
  %33 = and i64 %0, 3
  %34 = or i64 %32, %33
  br label %35

35:                                               ; preds = %31, %27
  %36 = phi i64 [ %30, %27 ], [ %34, %31 ]
  %37 = or i64 %36, 4
  br label %38

38:                                               ; preds = %22, %35
  %39 = phi i64 [ %37, %35 ], [ %24, %22 ]
  ret i64 %39
}

define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV19_uninitializedCount15minimumCapacityAByxGSi_SitcfCs5UInt8V_Tgq5Tf4nnd_n"(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 %12, label %4

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

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

declare swiftcc { i64, %swift.bridge* } @"$sSS18_uncheckedFromUTF8ySSSRys5UInt8VGFZ"(i64, i64) local_unnamed_addr #0

; Function Attrs: noinline
declare swiftcc i8 @"$sSS8UTF8ViewV17_foreignSubscript8positions5UInt8VSS5IndexV_tF"(i64, i64, %swift.bridge*) local_unnamed_addr #4

; Function Attrs: noinline
declare swiftcc i64 @"$sSS8UTF8ViewV13_foreignIndex5afterSS0D0VAF_tF"(i64, i64, %swift.bridge*) local_unnamed_addr #4

declare swiftcc i64 @"$sSS9UTF16ViewV5index_8offsetBySS5IndexVAF_SitF"(i64, i64, i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: noinline
declare swiftcc i64 @"$sSS8UTF8ViewV13_foreignIndex_8offsetBySS0D0VAF_SitF"(i64, i64, i64, %swift.bridge*) local_unnamed_addr #4

; Function Attrs: noinline
declare swiftcc i64 @"$sSS8UTF8ViewV16_foreignDistance4from2toSiSS5IndexV_AGtF"(i64, i64, i64, %swift.bridge*) local_unnamed_addr #4

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

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

; Function Attrs: inaccessiblememonly nocallback nofree nosync nounwind willreturn
declare void @llvm.assume(i1 noundef) #13

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

; Function Attrs: nounwind
declare void @swift_release_n(%swift.refcounted*, i32) #3

attributes #0 = { "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 = { cold noreturn nounwind }
attributes #3 = { nounwind }
attributes #4 = { noinline "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 #5 = { mustprogress nounwind willreturn }
attributes #6 = { mustprogress nocallback nofree nosync nounwind readnone speculatable willreturn }
attributes #7 = { mustprogress nofree noinline nounwind 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 #8 = { argmemonly nounwind }
attributes #9 = { nofree noinline nosync nounwind 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 #10 = { nofree nounwind readonly }
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 = { inaccessiblememonly nocallback nofree nosync nounwind willreturn }
attributes #14 = { nocallback nofree nosync nounwind readnone speculatable willreturn }
attributes #15 = { nounwind readonly }
attributes #16 = { nounwind willreturn }
attributes #17 = { nounwind readnone }
attributes #18 = { nounwind optsize }
attributes #19 = { argmemonly nounwind readonly }

!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 = !{i64 0, i64 9223372036854775807}
!7 = !{!"branch_weights", i32 1, i32 2000}
!8 = !{!"branch_weights", i32 2000, i32 1}
!9 = !{!"branch_weights", i32 4000000, i32 2001, i32 2000}
!10 = !{!"branch_weights", i32 2000, i32 2002}
!11 = !{!12}
!12 = distinct !{!12, !13, !"$sSS8_copyingySSSsFZSSSRys5UInt8VGXEfU0_: argument 0"}
!13 = distinct !{!13, !"$sSS8_copyingySSSsFZSSSRys5UInt8VGXEfU0_"}
