fileprivate struct Scanner {
    private var elements = [String]()
    private var index = 0
    
    mutating func peek() -> String {
        while elements.count == index {
            elements = readLine()!.split(separator: " ").map(String.init)
            index = 0
        }
        return elements[index]
    }
    
    mutating func next() -> String {
        let value = peek()
        index += 1
        return value
    }
    
    mutating func nextInt() -> Int {
        return Int(next())!
    }
    
    mutating func nextDouble() -> Double {
        return Double(next())!
    }
}

fileprivate struct Array2D<Element> {
    let n1: Int
    let n2: Int
    private var elements: [Element]
    
    init(repeating: Element, _ n1: Int, _ n2: Int) {
        self.n1 = n1
        self.n2 = n2
        self.elements = [Element](repeating: repeating, count: n1 * n2)
    }
    
    subscript(i: Int, j: Int) -> Element {
        get {
            elements[i * n2 + j]
        }
        set {
            elements[i * n2 + j] = newValue
        }
    }
}


func main() {
    var scanner = Scanner()
    let N = scanner.nextInt()
    var X = [Int]()
    var Y = [Int]()
    var P = [Int]()
    
    for _ in 0 ..< N {
        X.append(scanner.nextInt())
        Y.append(scanner.nextInt())
        P.append(scanner.nextInt() * 2)
    }
    
    func optimal(_ xs: [(Int, Int)]) -> Int {
        var now = 0
        var total = 0
        for i in xs.indices {
            total += xs[i].1
        }
        for i in xs.indices {
            now += xs[i].1
            if now >= total / 2 {
                var result = 0
                for j in xs.indices {
                    result += abs(xs[i].0 - xs[j].0) * xs[j].1
                }
                return result
            }
        }
        return 0
    }
    
    var answer = [Int](repeating: Int.max, count: N + 1)
    
    for k in 0 ..< (1 << N) {
        var xs = [(Int, Int)]()
        var ys = [(Int, Int)]()
        for i in 0 ..< N {
            if (k & 1 << i) != 0 {
                xs.append((X[i], P[i]))
            } else {
                ys.append((Y[i], P[i]))
            }
        }
        xs.sort { $0.0 < $1.0 }
        ys.sort { $0.0 < $1.0 }
        func solve(_ xs: [(Int, Int)]) -> Array2D<Int> {
            var dp = Array2D(repeating: Int.max, xs.count + 1, N + 1)
            dp[0, 0] = 0
            for i in 0 ..< xs.count {
                for j in 0 ... N where dp[i, j] != Int.max {
                    dp[i + 1, j] = min(dp[i + 1, j], dp[i, j] + abs(xs[i].0) * xs[i].1)
                }
                for k in i + 1 ... xs.count {
                    let cost = optimal(Array(xs[i ..< k]))
                    for j in 0 ..< N where dp[i, j] != Int.max {
                        dp[k, j + 1] = min(dp[k, j + 1], dp[i, j] + cost)
                    }
                }
            }
            return dp
        }
        let dpX = solve(xs)
        let dpY = solve(ys)
        for i in 0 ... N where dpX[xs.count, i] != Int.max {
            for j in 0 ... N where dpY[ys.count, j] != Int.max && i + j <= N {
                answer[i + j] = min(answer[i + j], dpX[xs.count, i] + dpY[ys.count, j])
            }
        }
    }
    
    for i in 0 ... N {
        print(answer[i] / 2)
    }
}

main()

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

%struct._SwiftEmptyArrayStorage = type { %struct.HeapObject, %struct._SwiftArrayBodyStorage }
%struct.HeapObject = type { %struct.HeapMetadata*, %struct.InlineRefCountsPlaceholder }
%struct.HeapMetadata = type opaque
%struct.InlineRefCountsPlaceholder = type { i64 }
%struct._SwiftArrayBodyStorage = type { i64, i64 }
%swift.type_descriptor = type opaque
%swift.type = type { i64 }
%swift.full_boxmetadata = type { void (%swift.refcounted*)*, i8**, %swift.type, i32, i8* }
%swift.refcounted = type { %swift.type*, i64 }
%swift.bridge = type opaque
%T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV = type <{ %TSa, %TSi }>
%TSa = type <{ %Ts22_ContiguousArrayBufferV }>
%Ts22_ContiguousArrayBufferV = type <{ %Ts28__ContiguousArrayStorageBaseC* }>
%Ts28__ContiguousArrayStorageBaseC = type <{ %swift.refcounted, %Ts10_ArrayBodyV }>
%Ts10_ArrayBodyV = type <{ %TSo22_SwiftArrayBodyStorageV }>
%TSo22_SwiftArrayBodyStorageV = type <{ %TSi, %TSu }>
%TSu = type <{ i64 }>
%TSi = type <{ i64 }>
%TSJ = type <{ %TSS }>
%TSS = type <{ %Ts11_StringGutsV }>
%Ts11_StringGutsV = type <{ %Ts13_StringObjectV }>
%Ts13_StringObjectV = type <{ %Ts6UInt64V, %swift.bridge* }>
%Ts6UInt64V = type <{ i64 }>
%swift.error = type opaque
%Ts15ContiguousArrayV = type <{ %Ts22_ContiguousArrayBufferV }>
%swift.opaque = type opaque
%Ts5UInt8V = type <{ i8 }>
%TSrySi_SitG = type <{ %TSpySi_SitGSg, %TSi }>
%TSpySi_SitGSg = type <{ [8 x i8] }>
%swift.metadata_response = type { %swift.type*, i64 }
%Ts16IndexingIteratorVySs8UTF8ViewVG = type <{ %TSs8UTF8ViewV, %TSS5IndexV }>
%TSs8UTF8ViewV = type <{ %Ts5SliceVySS8UTF8ViewVG }>
%Ts5SliceVySS8UTF8ViewVG = type <{ %TSS5IndexV, %TSS5IndexV, %TSS8UTF8ViewV }>
%TSS8UTF8ViewV = type <{ %Ts11_StringGutsV }>
%TSS5IndexV = type <{ %Ts6UInt64V }>
%TSnySiG = type <{ %TSi, %TSi }>

@_swiftEmptyArrayStorage = external global %struct._SwiftEmptyArrayStorage, 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
@"$sSiN" = external global %swift.type, align 8
@"\01l_entry_point" = private constant { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (i32 (i32, i8**)* @main to i64), i64 ptrtoint ({ i32, i32 }* @"\01l_entry_point" to i64)) to i32), i32 0 }, section "swift5_entry", align 4
@"symbolic _____ySi_SitG s23_ContiguousArrayStorageC" = linkonce_odr hidden constant <{ i8, i32, [8 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, [8 x i8], i8 }>, <{ i8, i32, [8 x i8], i8 }>* @"symbolic _____ySi_SitG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [8 x i8] c"ySi_SitG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCySi_SitGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [8 x i8], i8 }>* @"symbolic _____ySi_SitG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCySi_SitGMD" to i64)) to i32), i32 -13 }, align 8
@"symbolic Si_Sit" = linkonce_odr hidden constant <{ [6 x i8], i8 }> <{ [6 x i8] c"Si_Sit", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$sSi_SitMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ [6 x i8], i8 }>* @"symbolic Si_Sit" to i64), i64 ptrtoint ({ i32, i32 }* @"$sSi_SitMD" to i64)) to i32), i32 -6 }, align 8
@"symbolic _____ySnySiGG s23_ContiguousArrayStorageC" = linkonce_odr hidden constant <{ i8, i32, [8 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, [8 x i8], i8 }>, <{ i8, i32, [8 x i8], i8 }>* @"symbolic _____ySnySiGG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [8 x i8] c"ySnySiGG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCySnySiGGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [8 x i8], i8 }>* @"symbolic _____ySnySiGG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCySnySiGGMD" to i64)) to i32), i32 -13 }, align 8
@"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
@"$sSSN" = external global %swift.type, 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
@"symbolic SaySsG" = linkonce_odr hidden constant <{ [6 x i8], i8 }> <{ [6 x i8] c"SaySsG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"\01l__swift5_reflection_descriptor" = private constant { i32, i32, i32, i32 } { i32 1, i32 0, i32 0, i32 trunc (i64 sub (i64 ptrtoint (<{ [6 x i8], i8 }>* @"symbolic SaySsG" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32 }, { i32, i32, i32, i32 }* @"\01l__swift5_reflection_descriptor", i32 0, i32 3) to i64)) to i32) }, section "swift5_capture", no_sanitize_address, align 4
@metadata = private constant %swift.full_boxmetadata { void (%swift.refcounted*)* @objectdestroy, i8** null, %swift.type { i64 1024 }, i32 16, i8* bitcast ({ i32, i32, i32, i32 }* @"\01l__swift5_reflection_descriptor" to i8*) }, align 8
@"$sSS5IndexVMn" = external global %swift.type_descriptor, align 4
@"got.$sSS5IndexVMn" = private unnamed_addr constant %swift.type_descriptor* @"$sSS5IndexVMn"
@"symbolic _____ SS5IndexV" = linkonce_odr hidden constant <{ i8, i32, i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$sSS5IndexVMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, i8 }>, <{ i8, i32, i8 }>* @"symbolic _____ SS5IndexV", i32 0, i32 1) to i64)) to i32), i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"\01l__swift5_reflection_descriptor.1" = private constant { i32, i32, i32, i32 } { i32 1, i32 0, i32 0, i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, i8 }>* @"symbolic _____ SS5IndexV" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32 }, { i32, i32, i32, i32 }* @"\01l__swift5_reflection_descriptor.1", i32 0, i32 3) to i64)) to i32) }, section "swift5_capture", no_sanitize_address, align 4
@metadata.3 = private constant %swift.full_boxmetadata { void (%swift.refcounted*)* @objectdestroy.2, i8** null, %swift.type { i64 1024 }, i32 16, i8* bitcast ({ i32, i32, i32, i32 }* @"\01l__swift5_reflection_descriptor.1" to i8*) }, 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
@"$sSsN" = external global %swift.type, align 8
@__swift_reflection_version = linkonce_odr hidden constant i16 3
@_swift1_autolink_entries = private constant [77 x i8] c"-lswift_Concurrency\00-lswiftCore\00-lswift_StringProcessing\00-lswift_RegexParser\00", section ".swift1_autolink_entries", no_sanitize_address, align 8
@llvm.compiler.used = appending global [6 x i8*] [i8* bitcast ({ i32, i32, i32, i32 }* @"\01l__swift5_reflection_descriptor" to i8*), i8* bitcast ({ i32, i32, i32, i32 }* @"\01l__swift5_reflection_descriptor.1" to i8*), i8* bitcast ({ i32, i32 }* @"\01l_entry_point" to i8*), i8* bitcast (i16* @__swift_reflection_version to i8*), i8* getelementptr inbounds ([77 x i8], [77 x i8]* @_swift1_autolink_entries, i32 0, i32 0), i8* bitcast (i32 (i32, i8**)* @main to i8*)], section "llvm.metadata"

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

; Function Attrs: minsize optsize
define internal swiftcc { i64, %swift.bridge* } @"$s7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV4peekSSyF"(%T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV* nocapture swiftself dereferenceable(16) %0) unnamed_addr #0 {
entry:
  %1 = alloca %TSJ, align 8
  %swifterror = alloca swifterror %swift.error*, align 8
  store %swift.error* null, %swift.error** %swifterror, align 8
  %2 = alloca %Ts15ContiguousArrayV, align 8
  %.index._value = getelementptr inbounds %T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV* %0, i64 0, i32 1, i32 0
  %.elements._buffer._storage = getelementptr inbounds %T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV* %0, i64 0, i32 0, i32 0, i32 0
  %3 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.elements._buffer._storage, align 8
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 1, i32 0, i32 0, i32 0
  %4 = load i64, i64* %._storage.count._value, align 8, !range !6
  %5 = load i64, i64* %.index._value, align 8
  %6 = icmp eq i64 %4, %5
  br i1 %6, label %.preheader, label %61

.preheader:                                       ; preds = %entry
  %7 = bitcast %TSJ* %1 to i8*
  %._str._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %1, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0
  %._str._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %1, i64 0, i32 0, i32 0, i32 0, i32 1
  %8 = bitcast %Ts15ContiguousArrayV* %2 to i8*
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %2, i64 0, i32 0, i32 0
  br label %9

9:                                                ; preds = %.preheader, %29
  %10 = call swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1 true)
  %11 = extractvalue { i64, i64 } %10, 1
  %12 = icmp eq i64 %11, 0
  br i1 %12, label %75, label %13

13:                                               ; preds = %9
  %14 = extractvalue { i64, i64 } %10, 0
  %15 = inttoptr i64 %11 to %swift.bridge*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %7)
  store i64 32, i64* %._str._guts._object._countAndFlagsBits._value, align 8
  store %swift.bridge* inttoptr (i64 -2233785415175766016 to %swift.bridge*), %swift.bridge** %._str._guts._object._object, align 8
  %spsave = call i8* @llvm.stacksave()
  %16 = alloca [24 x i8], align 16
  %17 = bitcast [24 x i8]* %16 to %swift.opaque*
  %18 = getelementptr inbounds [24 x i8], [24 x i8]* %16, i64 0, i64 16
  %19 = bitcast i8* %18 to %TSJ**
  store %TSJ* %1, %TSJ** %19, align 16
  %20 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* nonnull returned %15) #6
  %21 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE5split9maxSplits25omittingEmptySubsequences14whereSeparatorSay11SubSequenceQzGSi_S2b7ElementQzKXEtKFSS_Tg5"(i64 9223372036854775807, i1 true, i8* nonnull bitcast (i1 (%TSJ*, %swift.refcounted*, %swift.error**)* @"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5TA" to i8*), %swift.opaque* nonnull %17, i64 %14, %swift.bridge* nonnull %15, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %15) #6
  call void @llvm.stackrestore(i8* %spsave)
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %7)
  %._storage2.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %21, i64 0, i32 1, i32 0, i32 0, i32 0
  %22 = load i64, i64* %._storage2.count._value, align 8, !range !6
  %23 = icmp eq i64 %22, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %13
  %25 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %21, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %25) #6
  br label %29

26:                                               ; preds = %13
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %8)
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSS_Tg5"(i1 false, i64 %22, i1 false, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %2)
  %27 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %28 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %21, i64 1
  br label %35

29:                                               ; preds = %24, %59
  %30 = phi %Ts28__ContiguousArrayStorageBaseC* [ %56, %59 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %24 ]
  %31 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.elements._buffer._storage, align 8
  %32 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %31, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %32) #6
  store %Ts28__ContiguousArrayStorageBaseC* %30, %Ts28__ContiguousArrayStorageBaseC** %.elements._buffer._storage, align 8
  store i64 0, i64* %.index._value, align 8
  %._storage12.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %30, i64 0, i32 1, i32 0, i32 0, i32 0
  %33 = load i64, i64* %._storage12.count._value, align 8, !range !6
  %34 = icmp eq i64 %33, 0
  br i1 %34, label %9, label %.thread

35:                                               ; preds = %26, %55
  %36 = phi i64 [ 0, %26 ], [ %38, %55 ]
  %37 = phi %Ts28__ContiguousArrayStorageBaseC* [ %27, %26 ], [ %56, %55 ]
  %38 = add nuw nsw i64 %36, 1
  %39 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %28, i64 %36
  %._slice._startIndex._rawBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %39 to i64*
  %40 = load i64, i64* %._slice._startIndex._rawBits._value, align 8
  %._slice._endIndex = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %39, i64 0, i32 0, i32 1
  %41 = load i64, i64* %._slice._endIndex, align 8
  %._slice._base = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %39, i64 0, i32 1
  %._slice._base._guts._object._countAndFlagsBits._value = getelementptr %Ts10_ArrayBodyV, %Ts10_ArrayBodyV* %._slice._base, i64 0, i32 0, i32 0, i32 0
  %42 = load i64, i64* %._slice._base._guts._object._countAndFlagsBits._value, align 8
  %._slice._base._guts._object._object = getelementptr inbounds %Ts10_ArrayBodyV, %Ts10_ArrayBodyV* %._slice._base, i64 0, i32 0, i32 1
  %43 = bitcast %TSu* %._slice._base._guts._object._object to %swift.bridge**
  %44 = load %swift.bridge*, %swift.bridge** %43, align 8
  %45 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %44) #6
  %46 = call swiftcc { i64, %swift.bridge* } @"$sSS14_fromSubstringySSSshFZ"(i64 %40, i64 %41, i64 %42, %swift.bridge* %44)
  call void @swift_bridgeObjectRelease(%swift.bridge* %44) #6
  %47 = extractvalue { i64, %swift.bridge* } %46, 0
  %48 = extractvalue { i64, %swift.bridge* } %46, 1
  store %Ts28__ContiguousArrayStorageBaseC* %37, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage6.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %37, i64 0, i32 1, i32 0, i32 0, i32 0
  %49 = load i64, i64* %._storage6.count._value, align 8, !range !6
  %._storage6._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %37, i64 0, i32 1, i32 0, i32 1, i32 0
  %50 = load i64, i64* %._storage6._capacityAndFlags._value, align 8
  %51 = lshr i64 %50, 1
  %52 = add nuw nsw i64 %49, 1
  %.not22 = icmp ugt i64 %51, %49
  br i1 %.not22, label %55, label %53, !prof !7

53:                                               ; preds = %35
  %54 = icmp ugt i64 %50, 1
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSS_Tg5"(i1 %54, i64 %52, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %2)
  %.pre = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %55

55:                                               ; preds = %35, %53
  %56 = phi %Ts28__ContiguousArrayStorageBaseC* [ %37, %35 ], [ %.pre, %53 ]
  %._storage7.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %56, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %52, i64* %._storage7.count._value, align 8
  %57 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %56, i64 1
  %tailaddr8 = bitcast %Ts28__ContiguousArrayStorageBaseC* %57 to %TSS*
  %._guts9._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %tailaddr8, i64 %49, i32 0, i32 0, i32 0, i32 0
  store i64 %47, i64* %._guts9._object._countAndFlagsBits._value, align 8
  %._guts9._object._object = getelementptr inbounds %TSS, %TSS* %tailaddr8, i64 %49, i32 0, i32 0, i32 1
  store %swift.bridge* %48, %swift.bridge** %._guts9._object._object, align 8
  %58 = icmp eq i64 %38, %22
  br i1 %58, label %59, label %35

59:                                               ; preds = %55
  %60 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %21, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %60) #6
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %8)
  br label %29

61:                                               ; preds = %entry
  %62 = icmp slt i64 %5, 0
  br i1 %62, label %73, label %.thread, !prof !8

.thread:                                          ; preds = %29, %61
  %63 = phi i64 [ %4, %61 ], [ %33, %29 ]
  %64 = phi %Ts28__ContiguousArrayStorageBaseC* [ %3, %61 ], [ %30, %29 ]
  %65 = phi i64 [ %5, %61 ], [ 0, %29 ]
  %.not = icmp ult i64 %65, %63
  br i1 %.not, label %66, label %74, !prof !7

66:                                               ; preds = %.thread
  %67 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %64, i64 1
  %tailaddr = bitcast %Ts28__ContiguousArrayStorageBaseC* %67 to %TSS*
  %._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %tailaddr, i64 %65, i32 0, i32 0, i32 0, i32 0
  %68 = load i64, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %TSS, %TSS* %tailaddr, i64 %65, i32 0, i32 0, i32 1
  %69 = load %swift.bridge*, %swift.bridge** %._guts._object._object, align 8
  %70 = insertvalue { i64, %swift.bridge* } undef, i64 %68, 0
  %71 = insertvalue { i64, %swift.bridge* } %70, %swift.bridge* %69, 1
  %72 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %69) #6
  ret { i64, %swift.bridge* } %71

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

74:                                               ; preds = %.thread
  call void asm sideeffect "", "n"(i32 1) #6
  call void @llvm.trap()
  unreachable

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

; Function Attrs: minsize optsize
define internal swiftcc i64 @"$s7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV7nextIntSiyF"(%T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV* nocapture swiftself dereferenceable(16) %0) unnamed_addr #0 {
entry:
  %.sroa.6 = alloca i8, align 8
  %1 = alloca <{ %Ts6UInt64V, %Ts6UInt64V }>, align 8
  %swifterror = alloca swifterror %swift.error*, align 8
  store %swift.error* null, %swift.error** %swifterror, align 8
  %2 = tail call swiftcc { i64, %swift.bridge* } @"$s7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV4peekSSyF"(%T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV* nocapture nonnull swiftself dereferenceable(16) %0)
  %3 = extractvalue { i64, %swift.bridge* } %2, 0
  %4 = extractvalue { i64, %swift.bridge* } %2, 1
  %.index._value = getelementptr inbounds %T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV* %0, i64 0, i32 1, i32 0
  %5 = load i64, i64* %.index._value, align 8
  %6 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %5, i64 1)
  %7 = extractvalue { i64, i1 } %6, 1
  br i1 %7, label %167, label %8, !prof !8

8:                                                ; preds = %entry
  %9 = extractvalue { i64, i1 } %6, 0
  store i64 %9, i64* %.index._value, align 8
  %10 = ptrtoint %swift.bridge* %4 to i64
  %11 = and i64 %10, 2305843009213693952
  %12 = icmp eq i64 %11, 0
  %13 = lshr i64 %10, 56
  %14 = and i64 %13, 15
  %15 = and i64 %3, 281474976710655
  %16 = select i1 %12, i64 %15, i64 %14
  %17 = icmp eq i64 %16, 0
  br i1 %17, label %18, label %19, !prof !8

18:                                               ; preds = %8
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %4) #6
  br label %168

19:                                               ; preds = %8
  call void @llvm.lifetime.start.p0i8(i64 1, i8* nonnull %.sroa.6)
  %20 = and i64 %10, 1152921504606846976
  %21 = icmp eq i64 %20, 0
  br i1 %21, label %22, label %.thread, !prof !7

22:                                               ; preds = %19
  br i1 %12, label %23, label %26

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

23:                                               ; preds = %22
  %24 = and i64 %3, 1152921504606846976
  %25 = icmp eq i64 %24, 0
  br i1 %25, label %35, label %39, !prof !8

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

35:                                               ; preds = %23
  %36 = tail call swiftcc { i64, i64 } @"$ss13_StringObjectV10sharedUTF8SRys5UInt8VGvg"(i64 %3, %swift.bridge* %4)
  %37 = extractvalue { i64, i64 } %36, 0
  %38 = extractvalue { i64, i64 } %36, 1
  br label %.thread130

39:                                               ; preds = %23
  %40 = and i64 %10, 1152921504606846975
  %41 = add nuw nsw i64 %40, 32
  br label %.thread130

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

.thread135:                                       ; preds = %61, %98, %96
  %.sroa.6.0.sroa_cast138 = bitcast i8* %.sroa.6 to i1*
  store i1 true, i1* %.sroa.6.0.sroa_cast138, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %27)
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre139 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %53

.loopexit99.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_cast142 = 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_cast142, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %27)
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre143 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %53

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

.loopexit99.loopexit146.split.loop.exit:          ; preds = %92
  %51 = extractvalue { i64, i1 } %90, 0
  br label %.loopexit99

.loopexit99.loopexit149.split.loop.exit:          ; preds = %128
  %52 = extractvalue { i64, i1 } %126, 0
  br label %.loopexit99

.loopexit99:                                      ; preds = %.preheader100, %120, %123, %.preheader97, %84, %87, %.preheader, %155, %158, %.loopexit99.loopexit149.split.loop.exit, %.loopexit99.loopexit146.split.loop.exit, %.loopexit99.loopexit.split.loop.exit
  %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8. = phi i1 [ false, %.loopexit99.loopexit.split.loop.exit ], [ false, %.loopexit99.loopexit146.split.loop.exit ], [ false, %.loopexit99.loopexit149.split.loop.exit ], [ true, %158 ], [ true, %155 ], [ true, %.preheader ], [ true, %87 ], [ true, %84 ], [ true, %.preheader97 ], [ true, %123 ], [ true, %120 ], [ true, %.preheader100 ]
  %.sroa.0.0 = phi i64 [ %50, %.loopexit99.loopexit.split.loop.exit ], [ %51, %.loopexit99.loopexit146.split.loop.exit ], [ %52, %.loopexit99.loopexit149.split.loop.exit ], [ 0, %158 ], [ 0, %155 ], [ 0, %.preheader ], [ 0, %87 ], [ 0, %84 ], [ 0, %.preheader97 ], [ 0, %123 ], [ 0, %120 ], [ 0, %.preheader100 ]
  %.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 %27)
  %.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 %21, label %53, label %54

53:                                               ; preds = %.loopexit99.thread, %.thread135, %.thread130, %.loopexit99
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre134 = phi i8 [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre132, %.thread130 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre, %.loopexit99 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre139, %.thread135 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre143, %.loopexit99.thread ]
  %.sroa.048.0133 = phi i64 [ %49, %.thread130 ], [ %.sroa.0.0, %.loopexit99 ], [ 0, %.thread135 ], [ %.sroa.0.0.ph, %.loopexit99.thread ]
  call void @swift_bridgeObjectRelease(%swift.bridge* %4) #6
  br label %58

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

58:                                               ; preds = %53, %54
  %59 = phi i64 [ %56, %54 ], [ %.sroa.048.0133, %53 ]
  %.in.in = phi i8 [ %57, %54 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre134, %53 ]
  %.in = and i8 %.in.in, 1
  %.not = icmp eq i8 %.in, 0
  br i1 %.not, label %60, label %168

60:                                               ; preds = %58
  ret i64 %59

61:                                               ; preds = %26
  switch i64 %14, label %62 [
    i64 0, label %170
    i64 1, label %.thread135
  ], !prof !9

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

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

70:                                               ; preds = %66
  %71 = add i8 %34, -48
  %72 = icmp ult i8 %71, 10
  br i1 %72, label %73, label %.loopexit99.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 %14, 3
  br i1 %77, label %.loopexit99.thread, label %.preheader97.preheader

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

.preheader97:                                     ; preds = %.preheader97.preheader, %92
  %79 = phi i8* [ %94, %92 ], [ %78, %.preheader97.preheader ]
  %80 = phi i64 [ %93, %92 ], [ %76, %.preheader97.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 %.loopexit99, !prof !10

84:                                               ; preds = %.preheader97
  %85 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %80, i64 10)
  %86 = extractvalue { i64, i1 } %85, 1
  br i1 %86, label %.loopexit99, 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 %.loopexit99, label %92, !prof !8

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 %.loopexit99.loopexit146.split.loop.exit, label %.preheader97

96:                                               ; preds = %26
  %97 = icmp eq i64 %14, 0
  br i1 %97, label %.thread135, label %132, !prof !8

98:                                               ; preds = %26
  switch i64 %14, label %99 [
    i64 0, label %169
    i64 1, label %.thread135
  ], !prof !9

99:                                               ; preds = %98
  %100 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %29, i64 %14, i32 0
  %101 = add i8 %32, -48
  %102 = icmp ult i8 %101, 10
  br i1 %102, label %103, label %.loopexit99.thread, !prof !10

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

106:                                              ; preds = %103
  %107 = add i8 %34, -48
  %108 = icmp ult i8 %107, 10
  br i1 %108, label %109, label %.loopexit99.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 %14, 3
  br i1 %113, label %.loopexit99.thread, label %.preheader100.preheader

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

.preheader100:                                    ; preds = %.preheader100.preheader, %128
  %115 = phi i8* [ %130, %128 ], [ %114, %.preheader100.preheader ]
  %116 = phi i64 [ %129, %128 ], [ %112, %.preheader100.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 %.loopexit99, !prof !10

120:                                              ; preds = %.preheader100
  %121 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %116, i64 10)
  %122 = extractvalue { i64, i1 } %121, 1
  br i1 %122, label %.loopexit99, 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 %.loopexit99, label %128, !prof !8

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 %.loopexit99.loopexit149.split.loop.exit, label %.preheader100

132:                                              ; preds = %96
  %133 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %29, i64 %14, i32 0
  %134 = icmp eq i8* %133, %27
  br i1 %134, label %.loopexit99.thread, label %135

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

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

141:                                              ; preds = %138
  %142 = add i8 %32, -48
  %143 = icmp ult i8 %142, 10
  br i1 %143, label %144, label %.loopexit99.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 %14, 2
  br i1 %148, label %.loopexit99.thread, label %.preheader.preheader

.preheader.preheader:                             ; preds = %144
  %149 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %29, 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 %.loopexit99, !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 %.loopexit99, 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 %.loopexit99, label %163, !prof !8

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 %.loopexit99.loopexit.split.loop.exit, label %.preheader

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

168:                                              ; preds = %18, %58
  call void asm sideeffect "", "n"(i32 1) #6
  call void @llvm.trap()
  unreachable

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

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

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa9repeating5countSayxGx_SitcfCSi_Tg5"(i64 %0, i64 %1) local_unnamed_addr #0 {
entry:
  %2 = icmp slt i64 %1, 0
  br i1 %2, label %15, label %3, !prof !8

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

4:                                                ; preds = %3
  %5 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa28_allocateBufferUninitialized15minimumCapacitys016_ContiguousArrayB0VyxGSi_tFZ"(i64 %1, %swift.type* nonnull @"$sSiN")
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %5, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %1, i64* %._storage.count._value, align 8
  %6 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %5, i64 1
  %7 = bitcast %Ts28__ContiguousArrayStorageBaseC* %6 to %TSi*
  br label %9

.thread:                                          ; preds = %9, %3
  %8 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %3 ], [ %5, %9 ]
  ret %Ts28__ContiguousArrayStorageBaseC* %8

9:                                                ; preds = %9, %4
  %10 = phi %TSi* [ %14, %9 ], [ %7, %4 ]
  %11 = phi i64 [ %12, %9 ], [ 0, %4 ]
  %12 = add nuw nsw i64 %11, 1
  %._value = getelementptr inbounds %TSi, %TSi* %10, i64 0, i32 0
  store i64 %0, i64* %._value, align 8
  %13 = icmp eq i64 %12, %1
  %14 = getelementptr inbounds %TSi, %TSi* %10, i64 1
  br i1 %13, label %.thread, label %9

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

; Function Attrs: minsize optsize
define hidden swiftcc void @"$s7llvm_OZ4mainyyF"() local_unnamed_addr #0 {
entry:
  %0 = alloca %T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV, align 8
  %1 = alloca %TSa, align 8
  %2 = alloca %TSa, align 8
  %swifterror = alloca swifterror %swift.error*, align 8
  store %swift.error* null, %swift.error** %swifterror, align 8
  %3 = bitcast %T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV* %0 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %3)
  %.elements._buffer._storage = getelementptr inbounds %T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV* %0, i64 0, i32 0, i32 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %.elements._buffer._storage, align 8
  %.index._value = getelementptr inbounds %T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV* %0, i64 0, i32 1, i32 0
  store i64 0, i64* %.index._value, align 8
  %4 = call swiftcc i64 @"$s7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV7nextIntSiyF"(%T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV* nocapture nonnull swiftself dereferenceable(16) %0)
  %5 = icmp slt i64 %4, 0
  br i1 %5, label %289, label %6, !prof !8

6:                                                ; preds = %entry
  %7 = icmp eq i64 %4, 0
  br i1 %7, label %.loopexit122, label %.preheader121

.preheader121:                                    ; preds = %6, %70
  %8 = phi i64 [ %72, %70 ], [ 0, %6 ]
  %9 = phi %Ts28__ContiguousArrayStorageBaseC* [ %71, %70 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %6 ]
  %10 = phi %Ts28__ContiguousArrayStorageBaseC* [ %48, %70 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %6 ]
  %11 = phi %Ts28__ContiguousArrayStorageBaseC* [ %29, %70 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %6 ]
  %12 = call swiftcc i64 @"$s7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV7nextIntSiyF"(%T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV* nocapture nonnull swiftself dereferenceable(16) %0)
  %13 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %11, i64 0, i32 0
  %14 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %13) #16
  br i1 %14, label %19, label %15

15:                                               ; preds = %.preheader121
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %11, i64 0, i32 1, i32 0, i32 0, i32 0
  %16 = load i64, i64* %._storage.count._value, align 8, !range !6
  %17 = add nuw nsw i64 %16, 1
  %18 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSi_Tg5"(i1 false, i64 %17, i1 true, %Ts28__ContiguousArrayStorageBaseC* %11)
  br label %19

19:                                               ; preds = %.preheader121, %15
  %20 = phi %Ts28__ContiguousArrayStorageBaseC* [ %18, %15 ], [ %11, %.preheader121 ]
  %._storage1.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %20, i64 0, i32 1, i32 0, i32 0, i32 0
  %21 = load i64, i64* %._storage1.count._value, align 8, !range !6
  %._storage1._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %20, i64 0, i32 1, i32 0, i32 1, i32 0
  %22 = load i64, i64* %._storage1._capacityAndFlags._value, align 8
  %23 = lshr i64 %22, 1
  %24 = add nuw nsw i64 %21, 1
  %.not = icmp ugt i64 %23, %21
  br i1 %.not, label %28, label %25, !prof !7

25:                                               ; preds = %19
  %26 = icmp ugt i64 %22, 1
  %27 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSi_Tg5"(i1 %26, i64 %24, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %20)
  br label %28

28:                                               ; preds = %19, %25
  %29 = phi %Ts28__ContiguousArrayStorageBaseC* [ %27, %25 ], [ %20, %19 ]
  %._storage2.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %29, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %24, i64* %._storage2.count._value, align 8
  %30 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %29, i64 1
  %tailaddr = bitcast %Ts28__ContiguousArrayStorageBaseC* %30 to %TSi*
  %._value = getelementptr inbounds %TSi, %TSi* %tailaddr, i64 %21, i32 0
  store i64 %12, i64* %._value, align 8
  %31 = call swiftcc i64 @"$s7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV7nextIntSiyF"(%T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV* nocapture nonnull swiftself dereferenceable(16) %0)
  %32 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %10, i64 0, i32 0
  %33 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %32) #16
  br i1 %33, label %38, label %34

34:                                               ; preds = %28
  %._storage3.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %10, i64 0, i32 1, i32 0, i32 0, i32 0
  %35 = load i64, i64* %._storage3.count._value, align 8, !range !6
  %36 = add nuw nsw i64 %35, 1
  %37 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSi_Tg5"(i1 false, i64 %36, i1 true, %Ts28__ContiguousArrayStorageBaseC* %10)
  br label %38

38:                                               ; preds = %28, %34
  %39 = phi %Ts28__ContiguousArrayStorageBaseC* [ %37, %34 ], [ %10, %28 ]
  %._storage4.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %39, i64 0, i32 1, i32 0, i32 0, i32 0
  %40 = load i64, i64* %._storage4.count._value, align 8, !range !6
  %._storage4._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %39, i64 0, i32 1, i32 0, i32 1, i32 0
  %41 = load i64, i64* %._storage4._capacityAndFlags._value, align 8
  %42 = lshr i64 %41, 1
  %43 = add nuw nsw i64 %40, 1
  %.not100 = icmp ugt i64 %42, %40
  br i1 %.not100, label %47, label %44, !prof !7

44:                                               ; preds = %38
  %45 = icmp ugt i64 %41, 1
  %46 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSi_Tg5"(i1 %45, i64 %43, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %39)
  br label %47

47:                                               ; preds = %38, %44
  %48 = phi %Ts28__ContiguousArrayStorageBaseC* [ %46, %44 ], [ %39, %38 ]
  %._storage5.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %48, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %43, i64* %._storage5.count._value, align 8
  %49 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %48, i64 1
  %tailaddr6 = bitcast %Ts28__ContiguousArrayStorageBaseC* %49 to %TSi*
  %._value7 = getelementptr inbounds %TSi, %TSi* %tailaddr6, i64 %40, i32 0
  store i64 %31, i64* %._value7, align 8
  %50 = call swiftcc i64 @"$s7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV7nextIntSiyF"(%T7llvm_OZ7Scanner33_180160AE16FDBCF0A925445958C15377LLV* nocapture nonnull swiftself dereferenceable(16) %0)
  %51 = shl i64 %50, 1
  %52 = add i64 %50, 4611686018427387904
  %53 = icmp slt i64 %52, 0
  br i1 %53, label %290, label %54, !prof !8

54:                                               ; preds = %47
  %55 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %9, i64 0, i32 0
  %56 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %55) #16
  br i1 %56, label %61, label %57

57:                                               ; preds = %54
  %._storage8.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %9, i64 0, i32 1, i32 0, i32 0, i32 0
  %58 = load i64, i64* %._storage8.count._value, align 8, !range !6
  %59 = add nuw nsw i64 %58, 1
  %60 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSi_Tg5"(i1 false, i64 %59, i1 true, %Ts28__ContiguousArrayStorageBaseC* %9)
  br label %61

61:                                               ; preds = %54, %57
  %62 = phi %Ts28__ContiguousArrayStorageBaseC* [ %60, %57 ], [ %9, %54 ]
  %._storage9.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %62, i64 0, i32 1, i32 0, i32 0, i32 0
  %63 = load i64, i64* %._storage9.count._value, align 8, !range !6
  %._storage9._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %62, i64 0, i32 1, i32 0, i32 1, i32 0
  %64 = load i64, i64* %._storage9._capacityAndFlags._value, align 8
  %65 = lshr i64 %64, 1
  %66 = add nuw nsw i64 %63, 1
  %.not101 = icmp ugt i64 %65, %63
  br i1 %.not101, label %70, label %67, !prof !7

67:                                               ; preds = %61
  %68 = icmp ugt i64 %64, 1
  %69 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSi_Tg5"(i1 %68, i64 %66, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %62)
  br label %70

70:                                               ; preds = %61, %67
  %71 = phi %Ts28__ContiguousArrayStorageBaseC* [ %69, %67 ], [ %62, %61 ]
  %72 = add nuw nsw i64 %8, 1
  %._storage10.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %71, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %66, i64* %._storage10.count._value, align 8
  %73 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %71, i64 1
  %tailaddr11 = bitcast %Ts28__ContiguousArrayStorageBaseC* %73 to %TSi*
  %._value12 = getelementptr inbounds %TSi, %TSi* %tailaddr11, i64 %63, i32 0
  store i64 %51, i64* %._value12, align 8
  %74 = icmp eq i64 %72, %4
  br i1 %74, label %.loopexit122, label %.preheader121

.loopexit122:                                     ; preds = %70, %6
  %75 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %6 ], [ %71, %70 ]
  %76 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %6 ], [ %48, %70 ]
  %77 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %6 ], [ %29, %70 ]
  %78 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %4, i64 1)
  %79 = extractvalue { i64, i1 } %78, 1
  br i1 %79, label %291, label %80, !prof !8

80:                                               ; preds = %.loopexit122
  %81 = extractvalue { i64, i1 } %78, 0
  %82 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa9repeating5countSayxGx_SitcfCSi_Tg5"(i64 9223372036854775807, i64 %81)
  %83 = icmp slt i64 %4, 64
  %84 = and i64 %4, 63
  %85 = shl nuw i64 1, %84
  %86 = select i1 %83, i64 %85, i64 0, !prof !10
  %87 = icmp slt i64 %86, 0
  br i1 %87, label %292, label %88, !prof !8

88:                                               ; preds = %80
  br i1 %83, label %89, label %.loopexit120

89:                                               ; preds = %88
  %90 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %82, i64 0, i32 0
  %91 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %90) #16
  br i1 %91, label %94, label %92

92:                                               ; preds = %89
  %93 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSi_Tg5"(%Ts28__ContiguousArrayStorageBaseC* %82)
  br label %94

94:                                               ; preds = %89, %92
  %95 = phi %Ts28__ContiguousArrayStorageBaseC* [ %93, %92 ], [ %82, %89 ]
  %96 = bitcast %TSa* %1 to i8*
  %._buffer._storage = getelementptr inbounds %TSa, %TSa* %1, i64 0, i32 0, i32 0
  %97 = bitcast %TSa* %2 to i8*
  %._buffer13._storage = getelementptr inbounds %TSa, %TSa* %2, i64 0, i32 0, i32 0
  %._storage60.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %77, i64 0, i32 1, i32 0, i32 0, i32 0
  %98 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %77, i64 1
  %tailaddr61 = bitcast %Ts28__ContiguousArrayStorageBaseC* %98 to %TSi*
  %._storage63.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %75, i64 0, i32 1, i32 0, i32 0, i32 0
  %99 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %75, i64 1
  %tailaddr64 = bitcast %Ts28__ContiguousArrayStorageBaseC* %99 to %TSi*
  %._storage14.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %76, i64 0, i32 1, i32 0, i32 0, i32 0
  %100 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %76, i64 1
  %tailaddr15 = bitcast %Ts28__ContiguousArrayStorageBaseC* %100 to %TSi*
  %._storage39.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %95, i64 0, i32 1, i32 0, i32 0, i32 0
  %101 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %95, i64 1
  %tailaddr40 = bitcast %Ts28__ContiguousArrayStorageBaseC* %101 to %TSi*
  br label %102

102:                                              ; preds = %253, %94
  %103 = phi i64 [ 0, %94 ], [ %105, %253 ]
  %exitcond.not = icmp eq i64 %103, %86
  br i1 %exitcond.not, label %293, label %104, !prof !8

104:                                              ; preds = %102
  %105 = add nuw i64 %103, 1
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %96)
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %97)
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %._buffer13._storage, align 8
  br i1 %7, label %.loopexit119, label %.preheader118

.preheader118:                                    ; preds = %104, %138
  %106 = phi i64 [ %139, %138 ], [ 0, %104 ]
  %107 = icmp ult i64 %106, 64
  br i1 %107, label %108, label %141, !prof !11

108:                                              ; preds = %.preheader118
  %109 = shl nuw i64 1, %106
  %110 = and i64 %109, %103
  %111 = icmp eq i64 %110, 0
  br i1 %111, label %141, label %112

112:                                              ; preds = %108
  %113 = load i64, i64* %._storage60.count._value, align 8, !range !6
  %.not112 = icmp ult i64 %106, %113
  br i1 %.not112, label %114, label %313, !prof !7

114:                                              ; preds = %112
  %._value62 = getelementptr inbounds %TSi, %TSi* %tailaddr61, i64 %106, i32 0
  %115 = load i64, i64* %._value62, align 8
  %116 = load i64, i64* %._storage63.count._value, align 8, !range !6
  %.not113 = icmp ult i64 %106, %116
  br i1 %.not113, label %117, label %314, !prof !7

117:                                              ; preds = %114
  %._value65 = getelementptr inbounds %TSi, %TSi* %tailaddr64, i64 %106, i32 0
  %118 = load i64, i64* %._value65, align 8
  %119 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %120 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %119, i64 0, i32 0
  %121 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %120) #16
  br i1 %121, label %126, label %122

122:                                              ; preds = %117
  %._storage67.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %119, i64 0, i32 1, i32 0, i32 0, i32 0
  %123 = load i64, i64* %._storage67.count._value, align 8, !range !6
  %124 = add nuw nsw i64 %123, 1
  %125 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSi_Sit_Tg5"(i1 false, i64 %124, i1 true, %Ts28__ContiguousArrayStorageBaseC* %119)
  br label %126

126:                                              ; preds = %117, %122
  %127 = phi %Ts28__ContiguousArrayStorageBaseC* [ %125, %122 ], [ %119, %117 ]
  %._storage68.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %127, i64 0, i32 1, i32 0, i32 0, i32 0
  %128 = load i64, i64* %._storage68.count._value, align 8, !range !6
  %._storage68._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %127, i64 0, i32 1, i32 0, i32 1, i32 0
  %129 = load i64, i64* %._storage68._capacityAndFlags._value, align 8
  %130 = lshr i64 %129, 1
  %131 = add nuw nsw i64 %128, 1
  %.not114 = icmp ugt i64 %130, %128
  br i1 %.not114, label %135, label %132, !prof !7

132:                                              ; preds = %126
  %133 = icmp ugt i64 %129, 1
  %134 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSi_Sit_Tg5"(i1 %133, i64 %131, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %127)
  br label %135

135:                                              ; preds = %126, %132
  %136 = phi %Ts28__ContiguousArrayStorageBaseC* [ %134, %132 ], [ %127, %126 ]
  %._storage69.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %136, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %131, i64* %._storage69.count._value, align 8
  %137 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %136, i64 1
  %tailaddr70 = bitcast %Ts28__ContiguousArrayStorageBaseC* %137 to <{ %TSi, %TSi }>*
  %.elt71._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr70, i64 %128, i32 0, i32 0
  store i64 %115, i64* %.elt71._value, align 8
  %.elt72._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr70, i64 %128, i32 1, i32 0
  store i64 %118, i64* %.elt72._value, align 8
  store %Ts28__ContiguousArrayStorageBaseC* %136, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %138

138:                                              ; preds = %135, %164
  %139 = add nuw nsw i64 %106, 1
  %140 = icmp eq i64 %139, %4
  br i1 %140, label %.loopexit119, label %.preheader118

141:                                              ; preds = %.preheader118, %108
  %142 = load i64, i64* %._storage14.count._value, align 8, !range !6
  %.not102 = icmp ult i64 %106, %142
  br i1 %.not102, label %143, label %294, !prof !7

143:                                              ; preds = %141
  %._value16 = getelementptr inbounds %TSi, %TSi* %tailaddr15, i64 %106, i32 0
  %144 = load i64, i64* %._value16, align 8
  %145 = load i64, i64* %._storage63.count._value, align 8, !range !6
  %.not103 = icmp ult i64 %106, %145
  br i1 %.not103, label %146, label %295, !prof !7

146:                                              ; preds = %143
  %._value19 = getelementptr inbounds %TSi, %TSi* %tailaddr64, i64 %106, i32 0
  %147 = load i64, i64* %._value19, align 8
  %148 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer13._storage, align 8
  %149 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %148, i64 0, i32 0
  %150 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %149) #16
  br i1 %150, label %155, label %151

151:                                              ; preds = %146
  %._storage21.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %148, i64 0, i32 1, i32 0, i32 0, i32 0
  %152 = load i64, i64* %._storage21.count._value, align 8, !range !6
  %153 = add nuw nsw i64 %152, 1
  %154 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSi_Sit_Tg5"(i1 false, i64 %153, i1 true, %Ts28__ContiguousArrayStorageBaseC* %148)
  br label %155

155:                                              ; preds = %146, %151
  %156 = phi %Ts28__ContiguousArrayStorageBaseC* [ %154, %151 ], [ %148, %146 ]
  %._storage22.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %156, i64 0, i32 1, i32 0, i32 0, i32 0
  %157 = load i64, i64* %._storage22.count._value, align 8, !range !6
  %._storage22._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %156, i64 0, i32 1, i32 0, i32 1, i32 0
  %158 = load i64, i64* %._storage22._capacityAndFlags._value, align 8
  %159 = lshr i64 %158, 1
  %160 = add nuw nsw i64 %157, 1
  %.not104 = icmp ugt i64 %159, %157
  br i1 %.not104, label %164, label %161, !prof !7

161:                                              ; preds = %155
  %162 = icmp ugt i64 %158, 1
  %163 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSi_Sit_Tg5"(i1 %162, i64 %160, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %156)
  br label %164

164:                                              ; preds = %155, %161
  %165 = phi %Ts28__ContiguousArrayStorageBaseC* [ %163, %161 ], [ %156, %155 ]
  %._storage23.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %165, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %160, i64* %._storage23.count._value, align 8
  %166 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %165, i64 1
  %tailaddr24 = bitcast %Ts28__ContiguousArrayStorageBaseC* %166 to <{ %TSi, %TSi }>*
  %.elt._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr24, i64 %157, i32 0, i32 0
  store i64 %144, i64* %.elt._value, align 8
  %.elt25._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr24, i64 %157, i32 1, i32 0
  store i64 %147, i64* %.elt25._value, align 8
  store %Ts28__ContiguousArrayStorageBaseC* %165, %Ts28__ContiguousArrayStorageBaseC** %._buffer13._storage, align 8
  br label %138

.loopexit119:                                     ; preds = %138, %104
  call swiftcc void @"$sSMsSkRzrlE4sort2byySb7ElementSTQz_ADtKXE_tKFSaySi_SitG_Tg5027$s7llvm_OZ4mainyyFSbSi_Sit_G10_SittXEfU_Tf1cn_nTm"(%TSa* nocapture dereferenceable(8) %1, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture swifterror dereferenceable(8) %swifterror)
  call swiftcc void @"$sSMsSkRzrlE4sort2byySb7ElementSTQz_ADtKXE_tKFSaySi_SitG_Tg5027$s7llvm_OZ4mainyyFSbSi_Sit_G10_SittXEfU_Tf1cn_nTm"(%TSa* nocapture dereferenceable(8) %2, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture swifterror dereferenceable(8) %swifterror)
  %167 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %168 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %167, i64 0, i32 0
  %169 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %168) #16
  %170 = tail call swiftcc { i64, %Ts28__ContiguousArrayStorageBaseC* } @"$s7llvm_OZ4mainyyF5solveL_yAA7Array2D33_180160AE16FDBCF0A925445958C15377LLVySiGSaySi_SitGF"(%Ts28__ContiguousArrayStorageBaseC* %167, i64 %4)
  %newret138 = extractvalue { i64, %Ts28__ContiguousArrayStorageBaseC* } %170, 0
  %newret140 = extractvalue { i64, %Ts28__ContiguousArrayStorageBaseC* } %170, 1
  tail call void @swift_release(%swift.refcounted* %168) #6
  %171 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer13._storage, align 8
  %172 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %171, i64 0, i32 0
  %173 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %172) #16
  %174 = tail call swiftcc { i64, %Ts28__ContiguousArrayStorageBaseC* } @"$s7llvm_OZ4mainyyF5solveL_yAA7Array2D33_180160AE16FDBCF0A925445958C15377LLVySiGSaySi_SitGF"(%Ts28__ContiguousArrayStorageBaseC* %171, i64 %4)
  %newret = extractvalue { i64, %Ts28__ContiguousArrayStorageBaseC* } %174, 0
  %newret136 = extractvalue { i64, %Ts28__ContiguousArrayStorageBaseC* } %174, 1
  tail call void @swift_release(%swift.refcounted* %172) #6
  %._storage30.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %167, i64 0, i32 1, i32 0, i32 0, i32 0
  %175 = load i64, i64* %._storage30.count._value, align 8, !range !6
  %176 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %175, i64 %newret138)
  %177 = extractvalue { i64, i1 } %176, 0
  %178 = extractvalue { i64, i1 } %176, 1
  br i1 %178, label %296, label %179, !prof !8

179:                                              ; preds = %.loopexit119
  %180 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %newret140, i64 1
  %tailaddr31 = bitcast %Ts28__ContiguousArrayStorageBaseC* %180 to %TSi*
  %._storage32.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %newret140, i64 0, i32 1, i32 0, i32 0, i32 0
  %._storage35.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %171, i64 0, i32 1, i32 0, i32 0, i32 0
  %181 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %newret136, i64 1
  %tailaddr36 = bitcast %Ts28__ContiguousArrayStorageBaseC* %181 to %TSi*
  %._storage37.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %newret136, i64 0, i32 1, i32 0, i32 0, i32 0
  %182 = icmp slt i64 %177, 0
  br i1 %182, label %._crit_edge, label %.lr.ph146, !prof !8

.loopexit117:                                     ; preds = %200, %191
  %183 = icmp eq i64 %189, %4
  br i1 %183, label %253, label %184

184:                                              ; preds = %.loopexit117
  %185 = add nuw nsw i64 %189, 1
  %186 = add nuw nsw i64 %177, %185
  %187 = icmp slt i64 %186, 0
  br i1 %187, label %._crit_edge, label %.lr.ph146, !prof !8

.lr.ph146:                                        ; preds = %179, %184
  %188 = phi i64 [ %186, %184 ], [ %177, %179 ]
  %189 = phi i64 [ %185, %184 ], [ 0, %179 ]
  %190 = load i64, i64* %._storage32.count._value, align 8, !range !6
  %.not105 = icmp ult i64 %188, %190
  br i1 %.not105, label %191, label %297, !prof !7

191:                                              ; preds = %.lr.ph146
  %._value33 = getelementptr inbounds %TSi, %TSi* %tailaddr31, i64 %188, i32 0
  %192 = load i64, i64* %._value33, align 8
  %193 = icmp eq i64 %192, 9223372036854775807
  br i1 %193, label %.loopexit117, label %194

194:                                              ; preds = %191
  %195 = load i64, i64* %._storage35.count._value, align 8, !range !6
  %196 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %195, i64 %newret)
  %197 = extractvalue { i64, i1 } %196, 0
  %198 = extractvalue { i64, i1 } %196, 1
  br i1 %198, label %298, label %.preheader127.preheader, !prof !8

.preheader127.preheader:                          ; preds = %194
  %199 = icmp slt i64 %197, 0
  br i1 %199, label %.preheader127.preheader._crit_edge, label %.lr.ph, !prof !8

200:                                              ; preds = %208, %215, %250
  %201 = icmp eq i64 %206, %4
  br i1 %201, label %.loopexit117, label %.preheader127

.preheader127:                                    ; preds = %200
  %202 = add nuw nsw i64 %206, 1
  %203 = add nuw nsw i64 %197, %202
  %204 = icmp slt i64 %203, 0
  br i1 %204, label %.preheader127.preheader._crit_edge, label %.lr.ph, !prof !8

.lr.ph:                                           ; preds = %.preheader127.preheader, %.preheader127
  %205 = phi i64 [ %203, %.preheader127 ], [ %197, %.preheader127.preheader ]
  %206 = phi i64 [ %202, %.preheader127 ], [ 0, %.preheader127.preheader ]
  %207 = load i64, i64* %._storage37.count._value, align 8, !range !6
  %.not106 = icmp ult i64 %205, %207
  br i1 %.not106, label %208, label %299, !prof !7

208:                                              ; preds = %.lr.ph
  %._value38 = getelementptr inbounds %TSi, %TSi* %tailaddr36, i64 %205, i32 0
  %209 = load i64, i64* %._value38, align 8
  %210 = icmp eq i64 %209, 9223372036854775807
  br i1 %210, label %200, label %211

211:                                              ; preds = %208
  %212 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %189, i64 %206)
  %213 = extractvalue { i64, i1 } %212, 0
  %214 = extractvalue { i64, i1 } %212, 1
  br i1 %214, label %300, label %215, !prof !8

215:                                              ; preds = %211
  %216 = icmp slt i64 %4, %213
  br i1 %216, label %200, label %217

217:                                              ; preds = %215
  %218 = icmp slt i64 %213, 0
  br i1 %218, label %301, label %219, !prof !8

219:                                              ; preds = %217
  %220 = load i64, i64* %._storage39.count._value, align 8, !range !6
  %.not107 = icmp ult i64 %213, %220
  br i1 %.not107, label %221, label %302, !prof !7

221:                                              ; preds = %219
  %._value41 = getelementptr inbounds %TSi, %TSi* %tailaddr40, i64 %213, i32 0
  %222 = load i64, i64* %._value41, align 8
  %223 = load i64, i64* %._storage30.count._value, align 8, !range !6
  %224 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %223, i64 %newret138)
  %225 = extractvalue { i64, i1 } %224, 1
  br i1 %225, label %303, label %226, !prof !8

226:                                              ; preds = %221
  %227 = extractvalue { i64, i1 } %224, 0
  %228 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %227, i64 %189)
  %229 = extractvalue { i64, i1 } %228, 0
  %230 = extractvalue { i64, i1 } %228, 1
  br i1 %230, label %304, label %231, !prof !8

231:                                              ; preds = %226
  %232 = icmp slt i64 %229, 0
  br i1 %232, label %305, label %233, !prof !8

233:                                              ; preds = %231
  %234 = load i64, i64* %._storage32.count._value, align 8, !range !6
  %.not108 = icmp ult i64 %229, %234
  br i1 %.not108, label %235, label %306, !prof !7

235:                                              ; preds = %233
  %._value43 = getelementptr inbounds %TSi, %TSi* %tailaddr31, i64 %229, i32 0
  %236 = load i64, i64* %._value43, align 8
  %237 = load i64, i64* %._storage35.count._value, align 8, !range !6
  %238 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %237, i64 %newret)
  %239 = extractvalue { i64, i1 } %238, 1
  br i1 %239, label %307, label %240, !prof !8

240:                                              ; preds = %235
  %241 = extractvalue { i64, i1 } %238, 0
  %242 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %241, i64 %206)
  %243 = extractvalue { i64, i1 } %242, 0
  %244 = extractvalue { i64, i1 } %242, 1
  br i1 %244, label %308, label %245, !prof !8

245:                                              ; preds = %240
  %.not109 = icmp ult i64 %243, %207
  br i1 %.not109, label %246, label %309, !prof !7

246:                                              ; preds = %245
  %._value45 = getelementptr inbounds %TSi, %TSi* %tailaddr36, i64 %243, i32 0
  %247 = load i64, i64* %._value45, align 8
  %248 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %236, i64 %247)
  %249 = extractvalue { i64, i1 } %248, 1
  br i1 %249, label %310, label %250, !prof !8

250:                                              ; preds = %246
  %251 = extractvalue { i64, i1 } %248, 0
  %252 = tail call i64 @llvm.smin.i64(i64 %251, i64 %222)
  store i64 %252, i64* %._value41, align 8
  br label %200

253:                                              ; preds = %.loopexit117
  tail call void @swift_release(%swift.refcounted* %168) #6
  tail call void @swift_release(%swift.refcounted* %172) #6
  %254 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %newret136, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %254) #6
  %255 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %newret140, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %255) #6
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %97)
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %96)
  %256 = icmp eq i64 %105, %86
  br i1 %256, label %.loopexit120, label %102

.loopexit120:                                     ; preds = %253, %88
  %257 = phi %Ts28__ContiguousArrayStorageBaseC* [ %82, %88 ], [ %95, %253 ]
  %258 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #17
  %259 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %258, i64 64, i64 7) #6
  %260 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %259, i64 1
  %._storage50.count._value = bitcast %swift.refcounted* %260 to i64*
  store i64 1, i64* %._storage50.count._value, align 8
  %._storage50._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %259, i64 1, i32 1
  store i64 2, i64* %._storage50._capacityAndFlags, align 8
  %._storage52.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %257, i64 0, i32 1, i32 0, i32 0, i32 0
  %261 = load i64, i64* %._storage52.count._value, align 8, !range !6
  %.not110 = icmp eq i64 %261, 0
  br i1 %.not110, label %311, label %262, !prof !8

262:                                              ; preds = %.loopexit120
  %263 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %259, i64 2
  %264 = bitcast %swift.refcounted* %259 to %Ts28__ContiguousArrayStorageBaseC*
  %265 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %257, i64 1
  %tailaddr53 = bitcast %Ts28__ContiguousArrayStorageBaseC* %265 to %TSi*
  %tailaddr53._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %265 to i64*
  %266 = load i64, i64* %tailaddr53._value, align 8
  %267 = sdiv i64 %266, 2
  %268 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %259, i64 3, i32 1
  %269 = bitcast i64* %268 to %swift.type**
  store %swift.type* @"$sSiN", %swift.type** %269, align 8
  %._value54 = bitcast %swift.refcounted* %263 to i64*
  store i64 %267, i64* %._value54, align 8
  tail call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %264, i64 32, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i64 10, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*))
  tail call void @swift_release(%swift.refcounted* nonnull %259) #6
  br i1 %7, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %262, %275
  %270 = phi i64 [ %271, %275 ], [ 0, %262 ]
  %271 = add nuw nsw i64 %270, 1
  %272 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %258, i64 64, i64 7) #6
  %273 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %272, i64 1
  %._storage55.count._value = bitcast %swift.refcounted* %273 to i64*
  store i64 1, i64* %._storage55.count._value, align 8
  %._storage55._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %272, i64 1, i32 1
  store i64 2, i64* %._storage55._capacityAndFlags, align 8
  %274 = load i64, i64* %._storage52.count._value, align 8, !range !6
  %.not111 = icmp ult i64 %271, %274
  br i1 %.not111, label %275, label %312, !prof !7

275:                                              ; preds = %.preheader.preheader
  %276 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %272, i64 2
  %277 = bitcast %swift.refcounted* %272 to %Ts28__ContiguousArrayStorageBaseC*
  %278 = icmp eq i64 %271, %4
  %._value57 = getelementptr inbounds %TSi, %TSi* %tailaddr53, i64 %271, i32 0
  %279 = load i64, i64* %._value57, align 8
  %280 = sdiv i64 %279, 2
  %281 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %272, i64 3, i32 1
  %282 = bitcast i64* %281 to %swift.type**
  store %swift.type* @"$sSiN", %swift.type** %282, align 8
  %._value58 = bitcast %swift.refcounted* %276 to i64*
  store i64 %280, i64* %._value58, align 8
  tail call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* nonnull %277, i64 32, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i64 10, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*))
  tail call void @swift_release(%swift.refcounted* nonnull %272) #6
  br i1 %278, label %.loopexit, label %.preheader.preheader

.loopexit:                                        ; preds = %275, %262
  %283 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.elements._buffer._storage, align 8
  %284 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %283, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %284) #6
  %285 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %257, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %285) #6
  %286 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %75, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %286) #6
  %287 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %76, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %287) #6
  %288 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %77, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %288) #6
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %3)
  ret void

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

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

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

292:                                              ; preds = %80
  tail call void asm sideeffect "", "n"(i32 4) #6
  tail call void @llvm.trap()
  unreachable

293:                                              ; preds = %102
  tail call void asm sideeffect "", "n"(i32 5) #6
  tail call void @llvm.trap()
  unreachable

294:                                              ; preds = %141
  tail call void asm sideeffect "", "n"(i32 9) #6
  tail call void @llvm.trap()
  unreachable

295:                                              ; preds = %143
  tail call void asm sideeffect "", "n"(i32 10) #6
  tail call void @llvm.trap()
  unreachable

296:                                              ; preds = %.loopexit119
  tail call void asm sideeffect "", "n"(i32 11) #6
  tail call void @llvm.trap()
  unreachable

._crit_edge:                                      ; preds = %179, %184
  tail call void asm sideeffect "", "n"(i32 13) #6
  tail call void @llvm.trap()
  unreachable

297:                                              ; preds = %.lr.ph146
  tail call void asm sideeffect "", "n"(i32 14) #6
  tail call void @llvm.trap()
  unreachable

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

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

299:                                              ; preds = %.lr.ph
  tail call void asm sideeffect "", "n"(i32 18) #6
  tail call void @llvm.trap()
  unreachable

300:                                              ; preds = %211
  tail call void asm sideeffect "", "n"(i32 19) #6
  tail call void @llvm.trap()
  unreachable

301:                                              ; preds = %217
  tail call void asm sideeffect "", "n"(i32 20) #6
  tail call void @llvm.trap()
  unreachable

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

303:                                              ; preds = %221
  tail call void asm sideeffect "", "n"(i32 22) #6
  tail call void @llvm.trap()
  unreachable

304:                                              ; preds = %226
  tail call void asm sideeffect "", "n"(i32 23) #6
  tail call void @llvm.trap()
  unreachable

305:                                              ; preds = %231
  tail call void asm sideeffect "", "n"(i32 24) #6
  tail call void @llvm.trap()
  unreachable

306:                                              ; preds = %233
  tail call void asm sideeffect "", "n"(i32 25) #6
  tail call void @llvm.trap()
  unreachable

307:                                              ; preds = %235
  tail call void asm sideeffect "", "n"(i32 26) #6
  tail call void @llvm.trap()
  unreachable

308:                                              ; preds = %240
  tail call void asm sideeffect "", "n"(i32 27) #6
  tail call void @llvm.trap()
  unreachable

309:                                              ; preds = %245
  tail call void asm sideeffect "", "n"(i32 28) #6
  tail call void @llvm.trap()
  unreachable

310:                                              ; preds = %246
  tail call void asm sideeffect "", "n"(i32 29) #6
  tail call void @llvm.trap()
  unreachable

311:                                              ; preds = %.loopexit120
  tail call void asm sideeffect "", "n"(i32 33) #6
  tail call void @llvm.trap()
  unreachable

312:                                              ; preds = %.preheader.preheader
  tail call void asm sideeffect "", "n"(i32 36) #6
  tail call void @llvm.trap()
  unreachable

313:                                              ; preds = %112
  tail call void asm sideeffect "", "n"(i32 38) #6
  tail call void @llvm.trap()
  unreachable

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

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

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

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

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

; Function Attrs: minsize optsize
define internal swiftcc void @"$sSMsSkRzrlE4sort2byySb7ElementSTQz_ADtKXE_tKFSaySi_SitG_Tg5027$s7llvm_OZ4mainyyFSbSi_Sit_G10_SittXEfU_Tf1cn_nTm"(%TSa* nocapture dereferenceable(8) %0, %swift.refcounted* swiftself %1, %swift.error** noalias nocapture swifterror dereferenceable(8) %2) local_unnamed_addr #0 {
entry:
  %3 = alloca %TSrySi_SitG, align 8
  %._buffer._storage = getelementptr inbounds %TSa, %TSa* %0, i64 0, i32 0, i32 0
  %4 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %5 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %4, i64 0, i32 0
  %6 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %5) #16
  br i1 %6, label %common.ret, label %7

7:                                                ; preds = %entry
  %8 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSi_Sit_Tg5"(%Ts28__ContiguousArrayStorageBaseC* %4)
  br label %common.ret

common.ret:                                       ; preds = %entry, %7
  %9 = phi %Ts28__ContiguousArrayStorageBaseC* [ %8, %7 ], [ %4, %entry ]
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %9, i64 0, i32 1, i32 0, i32 0, i32 0
  %10 = load i64, i64* %._storage.count._value, align 8, !range !6
  %11 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %9, i64 1
  %12 = getelementptr inbounds %TSrySi_SitG, %TSrySi_SitG* %3, i64 0, i32 0, i32 0, i64 0
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %12)
  %13 = ptrtoint %Ts28__ContiguousArrayStorageBaseC* %11 to i64
  %14 = bitcast %TSrySi_SitG* %3 to i64*
  store i64 %13, i64* %14, align 8
  %.count._value = getelementptr inbounds %TSrySi_SitG, %TSrySi_SitG* %3, i64 0, i32 1, i32 0
  store i64 %10, i64* %.count._value, align 8
  call swiftcc void @"$sSr15_stableSortImpl2byySbx_xtKXE_tKFSi_Sit_Tg5027$s7llvm_OZ4mainyyFSbSi_Sit_H11_SittXEfU0_Tf1cn_nTm"(%TSrySi_SitG* nocapture dereferenceable(16) %3, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture swifterror dereferenceable(8) %2)
  store %Ts28__ContiguousArrayStorageBaseC* %9, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %12)
  ret void
}

; Function Attrs: minsize optsize
define internal swiftcc { i64, %Ts28__ContiguousArrayStorageBaseC* } @"$s7llvm_OZ4mainyyF5solveL_yAA7Array2D33_180160AE16FDBCF0A925445958C15377LLVySiGSaySi_SitGF"(%Ts28__ContiguousArrayStorageBaseC* %0, i64 %1) unnamed_addr #0 {
entry:
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 0, i32 1, i32 0, i32 0, i32 0
  %2 = load i64, i64* %._storage.count._value, align 8, !range !6
  %3 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %1, i64 1)
  %4 = extractvalue { i64, i1 } %3, 0
  %5 = extractvalue { i64, i1 } %3, 1
  br i1 %5, label %224, label %6, !prof !8

6:                                                ; preds = %entry
  %7 = add nuw nsw i64 %2, 1
  %8 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %7, i64 %4)
  %9 = extractvalue { i64, i1 } %8, 1
  br i1 %9, label %225, label %10, !prof !8

10:                                               ; preds = %6
  %11 = extractvalue { i64, i1 } %8, 0
  %12 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa9repeating5countSayxGx_SitcfCSi_Tg5"(i64 9223372036854775807, i64 %11)
  %13 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %12, i64 0, i32 0
  %14 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %13) #16
  br i1 %14, label %17, label %15

15:                                               ; preds = %10
  %16 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSi_Tg5"(%Ts28__ContiguousArrayStorageBaseC* %12)
  br label %17

17:                                               ; preds = %10, %15
  %18 = phi %Ts28__ContiguousArrayStorageBaseC* [ %16, %15 ], [ %12, %10 ]
  %._storage1.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %18, i64 0, i32 1, i32 0, i32 0, i32 0
  %19 = load i64, i64* %._storage1.count._value, align 8, !range !6
  %.not = icmp eq i64 %19, 0
  br i1 %.not, label %226, label %20, !prof !8

20:                                               ; preds = %17
  %21 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %18, i64 1
  %tailaddr._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %21 to i64*
  store i64 0, i64* %tailaddr._value, align 8
  %22 = icmp eq i64 %2, 0
  br i1 %22, label %.loopexit72, label %23

23:                                               ; preds = %20
  %24 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 0, i32 0
  %25 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 1
  %tailaddr2 = bitcast %Ts28__ContiguousArrayStorageBaseC* %25 to <{ %TSi, %TSi }>*
  %26 = icmp eq i64 %1, 0
  %27 = load i64, i64* %._storage.count._value, align 8, !range !6
  %tailaddr4 = bitcast %Ts28__ContiguousArrayStorageBaseC* %21 to %TSi*
  %28 = bitcast %Ts28__ContiguousArrayStorageBaseC* %0 to i8*
  %29 = icmp slt i64 %1, 1
  %30 = add nuw nsw i64 %27, 1
  br label %31

31:                                               ; preds = %23, %85
  %32 = phi i64 [ 0, %23 ], [ %33, %85 ]
  %33 = add nuw nsw i64 %32, 1
  %34 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %32, i64 %4)
  %35 = extractvalue { i64, i1 } %34, 0
  %36 = extractvalue { i64, i1 } %34, 1
  br i1 %36, label %227, label %.preheader71, !prof !8

.preheader71:                                     ; preds = %31
  %37 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %33, i64 %4)
  %38 = extractvalue { i64, i1 } %37, 1
  %39 = extractvalue { i64, i1 } %37, 0
  %.elt._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr2, i64 %32, i32 0, i32 0
  %.elt6._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr2, i64 %32, i32 1, i32 0
  %40 = icmp slt i64 %35, 0
  br i1 %40, label %.preheader71._crit_edge, label %.lr.ph, !prof !8

41:                                               ; preds = %50, %74
  %42 = icmp eq i64 %48, %1
  br i1 %42, label %81, label %43

43:                                               ; preds = %41
  %44 = add nuw nsw i64 %48, 1
  %45 = add nuw nsw i64 %35, %44
  %46 = icmp slt i64 %45, 0
  br i1 %46, label %.preheader71._crit_edge, label %.lr.ph, !prof !8

.lr.ph:                                           ; preds = %.preheader71, %43
  %47 = phi i64 [ %45, %43 ], [ %35, %.preheader71 ]
  %48 = phi i64 [ %44, %43 ], [ 0, %.preheader71 ]
  %49 = load i64, i64* %._storage1.count._value, align 8, !range !6
  %.not55 = icmp ult i64 %47, %49
  br i1 %.not55, label %50, label %228, !prof !7

50:                                               ; preds = %.lr.ph
  %._value = getelementptr inbounds %TSi, %TSi* %tailaddr4, i64 %47, i32 0
  %51 = load i64, i64* %._value, align 8
  %52 = icmp eq i64 %51, 9223372036854775807
  br i1 %52, label %41, label %53

53:                                               ; preds = %50
  br i1 %38, label %229, label %54, !prof !8

54:                                               ; preds = %53
  %55 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %39, i64 %48)
  %56 = extractvalue { i64, i1 } %55, 0
  %57 = extractvalue { i64, i1 } %55, 1
  br i1 %57, label %230, label %58, !prof !8

58:                                               ; preds = %54
  %.not56 = icmp ult i64 %56, %49
  br i1 %.not56, label %59, label %231, !prof !7

59:                                               ; preds = %58
  %._value5 = getelementptr inbounds %TSi, %TSi* %tailaddr4, i64 %56, i32 0
  %60 = load i64, i64* %._value5, align 8
  %61 = load i64, i64* %._storage.count._value, align 8, !range !6
  %.not57 = icmp ult i64 %32, %61
  br i1 %.not57, label %62, label %232, !prof !7

62:                                               ; preds = %59
  %63 = load i64, i64* %.elt._value, align 8
  %64 = icmp slt i64 %63, 0
  br i1 %64, label %77, label %65

65:                                               ; preds = %62, %77
  %66 = phi i64 [ %79, %77 ], [ %63, %62 ]
  %67 = load i64, i64* %.elt6._value, align 8
  %68 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %66, i64 %67)
  %69 = extractvalue { i64, i1 } %68, 1
  br i1 %69, label %233, label %70, !prof !8

70:                                               ; preds = %65
  %71 = extractvalue { i64, i1 } %68, 0
  %72 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %51, i64 %71)
  %73 = extractvalue { i64, i1 } %72, 1
  br i1 %73, label %234, label %74, !prof !8

74:                                               ; preds = %70
  %75 = extractvalue { i64, i1 } %72, 0
  %76 = tail call i64 @llvm.smin.i64(i64 %75, i64 %60)
  store i64 %76, i64* %._value5, align 8
  br label %41

77:                                               ; preds = %62
  %78 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 0, i64 %63)
  %79 = extractvalue { i64, i1 } %78, 0
  %80 = extractvalue { i64, i1 } %78, 1
  br i1 %80, label %253, label %65, !prof !8

81:                                               ; preds = %41
  %exitcond92 = icmp eq i64 %32, %30
  br i1 %exitcond92, label %235, label %.preheader70, !prof !8

.preheader70:                                     ; preds = %81
  %82 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr2, i64 %32
  %83 = bitcast <{ %TSi, %TSi }>* %82 to i8*
  br label %91

.loopexit:                                        ; preds = %222, %129, %154, %133
  %84 = icmp eq i64 %92, %2
  br i1 %84, label %85, label %87

85:                                               ; preds = %.loopexit
  %86 = icmp eq i64 %33, %2
  br i1 %86, label %.loopexit72, label %31

87:                                               ; preds = %.loopexit
  %88 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %92, i64 1)
  %89 = extractvalue { i64, i1 } %88, 0
  %90 = extractvalue { i64, i1 } %88, 1
  br i1 %90, label %250, label %91, !prof !8

91:                                               ; preds = %87, %.preheader70
  %92 = phi i64 [ %89, %87 ], [ %33, %.preheader70 ]
  %93 = icmp ult i64 %27, %92
  br i1 %93, label %236, label %94, !prof !8

94:                                               ; preds = %91
  %95 = tail call swiftcc %swift.metadata_response @"$ss28__ContiguousArrayStorageBaseCMa"(i64 0) #18
  %96 = extractvalue %swift.metadata_response %95, 0
  %97 = bitcast %swift.type* %96 to i8*
  %98 = bitcast %Ts28__ContiguousArrayStorageBaseC* %0 to %swift.refcounted*
  %99 = call %swift.refcounted* @swift_retain_n(%swift.refcounted* %98, i32 2)
  %100 = tail call i8* @swift_dynamicCastClass(i8* %28, i8* %97) #17
  %101 = bitcast i8* %100 to %Ts28__ContiguousArrayStorageBaseC*
  %.not58 = icmp eq i8* %100, null
  br i1 %.not58, label %119, label %120

102:                                              ; preds = %120
  %103 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCySi_SitGMD") #17
  %104 = shl i64 %124, 4
  %105 = add i64 %104, 32
  %106 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %103, i64 %105, i64 7) #6
  %107 = bitcast %swift.refcounted* %106 to %Ts28__ContiguousArrayStorageBaseC*
  %108 = bitcast %swift.refcounted* %106 to i8*
  %call.i = tail call i64 @malloc_usable_size(i8* noundef %108) #19
  %gepdiff = add nsw i64 %call.i, -32
  %109 = sdiv i64 %gepdiff, 16
  %110 = shl nsw i64 %109, 1
  %111 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %106, i64 1
  %._storage26.count._value = bitcast %swift.refcounted* %111 to i64*
  store i64 %124, i64* %._storage26.count._value, align 8
  %._storage26._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %106, i64 1, i32 1
  store i64 %110, i64* %._storage26._capacityAndFlags, align 8
  %112 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %106, i64 2
  %113 = bitcast %swift.refcounted* %112 to i8*
  %114 = shl nuw i64 %124, 4
  tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* nonnull align 8 %113, i8* nonnull align 8 %83, i64 %114, i1 false)
  br label %.sink.split

.sink.split:                                      ; preds = %126, %102
  %.ph = phi %Ts28__ContiguousArrayStorageBaseC* [ %107, %102 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %126 ]
  tail call void @swift_release(%swift.refcounted* %24) #6
  br label %115

115:                                              ; preds = %.sink.split, %126
  %116 = phi %Ts28__ContiguousArrayStorageBaseC* [ %128, %126 ], [ %.ph, %.sink.split ]
  %._storage11.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %116, i64 0, i32 1, i32 0, i32 0, i32 0
  %117 = load i64, i64* %._storage11.count._value, align 8, !range !6
  %118 = icmp eq i64 %117, 0
  br i1 %118, label %129, label %131

119:                                              ; preds = %94
  tail call void @swift_release(%swift.refcounted* %24) #6
  br label %120

120:                                              ; preds = %94, %119
  %121 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %119 ], [ %101, %94 ]
  %._storage9.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %121, i64 0, i32 1, i32 0, i32 0, i32 0
  %122 = load i64, i64* %._storage9.count._value, align 8, !range !6
  %123 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %121, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %123) #6
  %124 = sub nuw nsw i64 %92, %32
  %125 = icmp eq i64 %122, %124
  br i1 %125, label %126, label %102, !prof !7

126:                                              ; preds = %120
  %127 = tail call i8* @swift_dynamicCastClass(i8* %28, i8* %97) #17
  %128 = bitcast i8* %127 to %Ts28__ContiguousArrayStorageBaseC*
  %.not65 = icmp eq i8* %127, null
  br i1 %.not65, label %.sink.split, label %115

129:                                              ; preds = %115
  %130 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %116, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %130) #6
  br i1 %26, label %.loopexit, label %194

131:                                              ; preds = %115
  %132 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %116, i64 1
  %tailaddr12 = bitcast %Ts28__ContiguousArrayStorageBaseC* %132 to <{ %TSi, %TSi }>*
  br label %136

133:                                              ; preds = %187
  %134 = extractvalue { i64, i1 } %185, 0
  %135 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %116, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %135) #6
  br i1 %26, label %.loopexit, label %194

136:                                              ; preds = %142, %131
  %137 = phi i64 [ 0, %131 ], [ %143, %142 ]
  %138 = phi i64 [ 0, %131 ], [ %144, %142 ]
  %.elt13._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr12, i64 %138, i32 1, i32 0
  %139 = load i64, i64* %.elt13._value, align 8
  %140 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %137, i64 %139)
  %141 = extractvalue { i64, i1 } %140, 1
  br i1 %141, label %237, label %142, !prof !8

142:                                              ; preds = %136
  %143 = extractvalue { i64, i1 } %140, 0
  %144 = add nuw nsw i64 %138, 1
  %145 = icmp eq i64 %144, %117
  br i1 %145, label %146, label %136

146:                                              ; preds = %142
  %147 = extractvalue { i64, i1 } %140, 0
  %148 = sdiv i64 %147, 2
  %tailaddr12.elt = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %116, i64 1, i32 0, i32 1
  %149 = load i64, i64* %tailaddr12.elt, align 8
  %150 = icmp slt i64 %149, %148
  br i1 %150, label %.preheader68, label %.loopexit69

.preheader68:                                     ; preds = %146, %160
  %151 = phi i64 [ %161, %160 ], [ 1, %146 ]
  %152 = phi i64 [ %162, %160 ], [ %149, %146 ]
  %153 = icmp eq i64 %151, %117
  br i1 %153, label %154, label %156

154:                                              ; preds = %.preheader68
  %155 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %116, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %155) #6
  br i1 %26, label %.loopexit, label %194

156:                                              ; preds = %.preheader68
  %.elt23._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr12, i64 %151, i32 1, i32 0
  %157 = load i64, i64* %.elt23._value, align 8
  %158 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %152, i64 %157)
  %159 = extractvalue { i64, i1 } %158, 1
  br i1 %159, label %252, label %160, !prof !8

160:                                              ; preds = %156
  %161 = add nuw nsw i64 %151, 1
  %162 = extractvalue { i64, i1 } %158, 0
  %163 = icmp slt i64 %162, %148
  br i1 %163, label %.preheader68, label %.loopexit69

.loopexit69:                                      ; preds = %160, %146
  %164 = phi i64 [ 0, %146 ], [ %151, %160 ]
  %.not60 = icmp ult i64 %164, %117
  br i1 %.not60, label %165, label %238, !prof !7

165:                                              ; preds = %.loopexit69
  %.elt14._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr12, i64 %164, i32 0, i32 0
  %166 = load i64, i64* %.elt14._value, align 8
  br label %167

167:                                              ; preds = %187, %165
  %168 = phi i64 [ 0, %165 ], [ %188, %187 ]
  %169 = phi i64 [ 0, %165 ], [ %179, %187 ]
  %exitcond.not = icmp eq i64 %169, %117
  br i1 %exitcond.not, label %239, label %170, !prof !8

170:                                              ; preds = %167
  %.elt15._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr12, i64 %169, i32 0, i32 0
  %171 = load i64, i64* %.elt15._value, align 8
  %172 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %166, i64 %171)
  %173 = extractvalue { i64, i1 } %172, 0
  %174 = extractvalue { i64, i1 } %172, 1
  br i1 %174, label %240, label %175, !prof !8

175:                                              ; preds = %170
  %176 = icmp slt i64 %173, 0
  br i1 %176, label %190, label %177

177:                                              ; preds = %175, %190
  %178 = phi i64 [ %192, %190 ], [ %173, %175 ]
  %179 = add nuw nsw i64 %169, 1
  %.elt16._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr12, i64 %169, i32 1, i32 0
  %180 = load i64, i64* %.elt16._value, align 8
  %181 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %178, i64 %180)
  %182 = extractvalue { i64, i1 } %181, 1
  br i1 %182, label %241, label %183, !prof !8

183:                                              ; preds = %177
  %184 = extractvalue { i64, i1 } %181, 0
  %185 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %168, i64 %184)
  %186 = extractvalue { i64, i1 } %185, 1
  br i1 %186, label %242, label %187, !prof !8

187:                                              ; preds = %183
  %188 = extractvalue { i64, i1 } %185, 0
  %189 = icmp eq i64 %179, %117
  br i1 %189, label %133, label %167

190:                                              ; preds = %175
  %191 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 0, i64 %173)
  %192 = extractvalue { i64, i1 } %191, 0
  %193 = extractvalue { i64, i1 } %191, 1
  br i1 %193, label %251, label %177, !prof !8

194:                                              ; preds = %154, %129, %133
  %195 = phi i64 [ %134, %133 ], [ 0, %129 ], [ 0, %154 ]
  br i1 %29, label %243, label %.preheader, !prof !8

.preheader:                                       ; preds = %194
  %196 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %92, i64 %4)
  %197 = extractvalue { i64, i1 } %196, 1
  %198 = extractvalue { i64, i1 } %196, 0
  br label %199

199:                                              ; preds = %222, %.preheader
  %200 = phi i64 [ %201, %222 ], [ 0, %.preheader ]
  %201 = add nuw nsw i64 %200, 1
  %202 = add nuw nsw i64 %35, %200
  %203 = icmp slt i64 %202, 0
  br i1 %203, label %244, label %204, !prof !8

204:                                              ; preds = %199
  %205 = load i64, i64* %._storage1.count._value, align 8, !range !6
  %.not62 = icmp ult i64 %202, %205
  br i1 %.not62, label %206, label %245, !prof !7

206:                                              ; preds = %204
  %._value19 = getelementptr inbounds %TSi, %TSi* %tailaddr4, i64 %202, i32 0
  %207 = load i64, i64* %._value19, align 8
  %208 = icmp eq i64 %207, 9223372036854775807
  br i1 %208, label %222, label %209

209:                                              ; preds = %206
  br i1 %197, label %246, label %210, !prof !8

210:                                              ; preds = %209
  %211 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %198, i64 %201)
  %212 = extractvalue { i64, i1 } %211, 0
  %213 = extractvalue { i64, i1 } %211, 1
  br i1 %213, label %247, label %214, !prof !8

214:                                              ; preds = %210
  %.not63 = icmp ult i64 %212, %205
  br i1 %.not63, label %215, label %248, !prof !7

215:                                              ; preds = %214
  %216 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %207, i64 %195)
  %217 = extractvalue { i64, i1 } %216, 1
  br i1 %217, label %249, label %218, !prof !8

218:                                              ; preds = %215
  %219 = extractvalue { i64, i1 } %216, 0
  %._value20 = getelementptr inbounds %TSi, %TSi* %tailaddr4, i64 %212, i32 0
  %220 = load i64, i64* %._value20, align 8
  %221 = tail call i64 @llvm.smin.i64(i64 %219, i64 %220)
  store i64 %221, i64* %._value20, align 8
  br label %222

222:                                              ; preds = %206, %218
  %223 = icmp eq i64 %201, %1
  br i1 %223, label %.loopexit, label %199

.loopexit72:                                      ; preds = %85, %20
  %newret = insertvalue { i64, %Ts28__ContiguousArrayStorageBaseC* } poison, i64 %4, 0
  %newret2 = insertvalue { i64, %Ts28__ContiguousArrayStorageBaseC* } %newret, %Ts28__ContiguousArrayStorageBaseC* %18, 1
  ret { i64, %Ts28__ContiguousArrayStorageBaseC* } %newret2

224:                                              ; preds = %entry
  tail call void asm sideeffect "", "n"(i32 1) #6
  tail call void @llvm.trap()
  unreachable

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

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

227:                                              ; preds = %31
  tail call void asm sideeffect "", "n"(i32 7) #6
  tail call void @llvm.trap()
  unreachable

.preheader71._crit_edge:                          ; preds = %.preheader71, %43
  tail call void asm sideeffect "", "n"(i32 9) #6
  tail call void @llvm.trap()
  unreachable

228:                                              ; preds = %.lr.ph
  tail call void asm sideeffect "", "n"(i32 10) #6
  tail call void @llvm.trap()
  unreachable

229:                                              ; preds = %53
  tail call void asm sideeffect "", "n"(i32 11) #6
  tail call void @llvm.trap()
  unreachable

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

231:                                              ; preds = %58
  tail call void asm sideeffect "", "n"(i32 13) #6
  tail call void @llvm.trap()
  unreachable

232:                                              ; preds = %59
  tail call void asm sideeffect "", "n"(i32 14) #6
  tail call void @llvm.trap()
  unreachable

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

234:                                              ; preds = %70
  tail call void asm sideeffect "", "n"(i32 16) #6
  tail call void @llvm.trap()
  unreachable

235:                                              ; preds = %81
  tail call void asm sideeffect "", "n"(i32 19) #6
  tail call void @llvm.trap()
  unreachable

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

237:                                              ; preds = %136
  tail call void asm sideeffect "", "n"(i32 28) #6
  tail call void @llvm.trap()
  unreachable

238:                                              ; preds = %.loopexit69
  tail call void asm sideeffect "", "n"(i32 30) #6
  tail call void @llvm.trap()
  unreachable

239:                                              ; preds = %167
  tail call void asm sideeffect "", "n"(i32 31) #6
  tail call void @llvm.trap()
  unreachable

240:                                              ; preds = %170
  tail call void asm sideeffect "", "n"(i32 32) #6
  tail call void @llvm.trap()
  unreachable

241:                                              ; preds = %177
  tail call void asm sideeffect "", "n"(i32 33) #6
  tail call void @llvm.trap()
  unreachable

242:                                              ; preds = %183
  tail call void asm sideeffect "", "n"(i32 34) #6
  tail call void @llvm.trap()
  unreachable

243:                                              ; preds = %194
  tail call void asm sideeffect "", "n"(i32 35) #6
  tail call void @llvm.trap()
  unreachable

244:                                              ; preds = %199
  tail call void asm sideeffect "", "n"(i32 37) #6
  tail call void @llvm.trap()
  unreachable

245:                                              ; preds = %204
  tail call void asm sideeffect "", "n"(i32 38) #6
  tail call void @llvm.trap()
  unreachable

246:                                              ; preds = %209
  tail call void asm sideeffect "", "n"(i32 39) #6
  tail call void @llvm.trap()
  unreachable

247:                                              ; preds = %210
  tail call void asm sideeffect "", "n"(i32 40) #6
  tail call void @llvm.trap()
  unreachable

248:                                              ; preds = %214
  tail call void asm sideeffect "", "n"(i32 41) #6
  tail call void @llvm.trap()
  unreachable

249:                                              ; preds = %215
  tail call void asm sideeffect "", "n"(i32 42) #6
  tail call void @llvm.trap()
  unreachable

250:                                              ; preds = %87
  tail call void asm sideeffect "", "n"(i32 43) #6
  tail call void @llvm.trap()
  unreachable

251:                                              ; preds = %190
  tail call void asm sideeffect "", "n"(i32 44) #6
  tail call void @llvm.trap()
  unreachable

252:                                              ; preds = %156
  tail call void asm sideeffect "", "n"(i32 47) #6
  tail call void @llvm.trap()
  unreachable

253:                                              ; preds = %77
  tail call void asm sideeffect "", "n"(i32 48) #6
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc i1 @"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_Tg5"(i64 %0, %swift.bridge* %1, i64 %2, %swift.bridge* %3, %swift.refcounted* swiftself %4, %swift.error** noalias nocapture swifterror dereferenceable(8) %5) local_unnamed_addr #0 {
entry:
  %6 = icmp eq i64 %0, %2
  %7 = icmp eq %swift.bridge* %1, %3
  %or.cond = select i1 %6, i1 %7, i1 false
  br i1 %or.cond, label %8, label %10

8:                                                ; preds = %entry, %10
  %9 = phi i1 [ %11, %10 ], [ true, %entry ]
  ret i1 %9

10:                                               ; preds = %entry
  %11 = tail call swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64 %0, %swift.bridge* %1, i64 %2, %swift.bridge* %3, i8 0)
  br label %8
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE5split9maxSplits25omittingEmptySubsequences14whereSeparatorSay11SubSequenceQzGSi_S2b7ElementQzKXEtKFSS_Tg5"(i64 %0, i1 %1, i8* %2, %swift.opaque* %3, i64 %4, %swift.bridge* %5, %swift.refcounted* swiftself %6, %swift.error** noalias nocapture swifterror dereferenceable(8) %7) local_unnamed_addr #0 {
entry:
  %8 = alloca %TSJ, align 8
  %9 = icmp slt i64 %0, 0
  br i1 %9, label %138, label %10, !prof !8

10:                                               ; preds = %entry
  %11 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* nonnull getelementptr inbounds (%swift.full_boxmetadata, %swift.full_boxmetadata* @metadata, i64 0, i32 2), i64 24, i64 7) #6
  %12 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %11, i64 1
  %13 = bitcast %swift.refcounted* %12 to %TSa*
  %._buffer._storage = bitcast %swift.refcounted* %12 to %Ts28__ContiguousArrayStorageBaseC**
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %14 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* nonnull getelementptr inbounds (%swift.full_boxmetadata, %swift.full_boxmetadata* @metadata.3, i64 0, i32 2), i64 24, i64 7) #6
  %15 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %14, i64 1
  %._rawBits._value = bitcast %swift.refcounted* %15 to i64*
  store i64 15, i64* %._rawBits._value, align 8
  %16 = icmp eq i64 %0, 0
  %.pre = ptrtoint %swift.bridge* %5 to i64
  %.pre44 = and i64 %.pre, 2305843009213693952
  br i1 %16, label %._crit_edge, label %17

._crit_edge:                                      ; preds = %10
  %.pre46 = lshr i64 %.pre, 56
  %.pre48 = and i64 %.pre46, 15
  br label %24

17:                                               ; preds = %10
  %18 = icmp eq i64 %.pre44, 0
  %19 = lshr i64 %.pre, 56
  %20 = and i64 %19, 15
  %21 = and i64 %4, 281474976710655
  %22 = select i1 %18, i64 %21, i64 %20
  %23 = icmp eq i64 %22, 0
  br i1 %23, label %24, label %37

24:                                               ; preds = %._crit_edge, %17
  %.pre-phi49 = phi i64 [ %.pre48, %._crit_edge ], [ %20, %17 ]
  %25 = icmp eq i64 %.pre44, 0
  %26 = select i1 %25, i64 %4, i64 %.pre-phi49
  %27 = shl i64 %26, 16
  %28 = and i64 %.pre, 1152921504606846976
  %29 = icmp ne i64 %28, 0
  %30 = and i64 %4, 576460752303423488
  %31 = icmp eq i64 %30, 0
  %or.cond = select i1 %29, i1 %31, i1 false
  %.v26 = select i1 %or.cond, i64 11, i64 7
  %32 = or i64 %27, %.v26
  %33 = tail call swiftcc i1 @"$sSlsE5split9maxSplits25omittingEmptySubsequences14whereSeparatorSay11SubSequenceQzGSi_S2b7ElementQzKXEtKF17appendSubsequenceL_3endSb5IndexQz_tSlRzlFSS_Tg5"(i64 %32, %swift.refcounted* nonnull %14, i1 %1, %swift.refcounted* nonnull %11, i64 %4, %swift.bridge* %5)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %5) #6
  %34 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %35 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %34, i64 0, i32 0
  %36 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %35) #16
  tail call void @swift_release(%swift.refcounted* nonnull %11) #6
  tail call void @swift_release(%swift.refcounted* nonnull %14) #6
  br label %common.ret

common.ret:                                       ; preds = %55, %24, %87
  %common.ret.op = phi %Ts28__ContiguousArrayStorageBaseC* [ undef, %87 ], [ %56, %55 ], [ %34, %24 ]
  ret %Ts28__ContiguousArrayStorageBaseC* %common.ret.op

37:                                               ; preds = %17
  %38 = shl nuw i64 %22, 16
  %39 = and i64 %.pre, 1152921504606846976
  %40 = icmp ne i64 %39, 0
  %41 = and i64 %4, 576460752303423488
  %42 = icmp eq i64 %41, 0
  %or.cond17 = select i1 %40, i1 %42, i1 false
  %.v = select i1 %or.cond17, i64 11, i64 7
  %43 = or i64 %38, %.v
  %44 = shl nuw nsw i64 %22, 2
  %45 = bitcast %TSJ* %8 to i8*
  %._str._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %8, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0
  %._str._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %8, i64 0, i32 0, i32 0, i32 0, i32 1
  %46 = bitcast i8* %2 to i1 (%TSJ*, %swift.refcounted*, %swift.error**)*
  %47 = bitcast %swift.opaque* %3 to %swift.refcounted*
  %.not18 = xor i1 %1, true
  br label %75

48:                                               ; preds = %130, %127
  %49 = phi i64 [ %96, %127 ], [ %132, %130 ]
  %50 = phi i64 [ %96, %127 ], [ %133, %130 ]
  %51 = phi %Ts28__ContiguousArrayStorageBaseC* [ %95, %127 ], [ %135, %130 ]
  %52 = lshr i64 %49, 14
  %53 = icmp ne i64 %52, %44
  %brmerge29 = select i1 %53, i1 true, i1 %.not18
  br i1 %brmerge29, label %59, label %54

54:                                               ; preds = %48
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %5) #6
  br label %55

55:                                               ; preds = %54, %62
  %56 = phi %Ts28__ContiguousArrayStorageBaseC* [ %70, %62 ], [ %51, %54 ]
  %57 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %56, i64 0, i32 0
  %58 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %57) #16
  tail call void @swift_release(%swift.refcounted* %11) #6
  tail call void @swift_release(%swift.refcounted* %14) #6
  br label %common.ret

59:                                               ; preds = %48
  %60 = lshr i64 %50, 14
  %61 = icmp ult i64 %44, %60
  br i1 %61, label %139, label %62, !prof !8

62:                                               ; preds = %59
  %63 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64 %50, i64 %43, i64 %4, %swift.bridge* %5)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %5) #6
  %64 = extractvalue { i64, i64, i64, %swift.bridge* } %63, 0
  %65 = extractvalue { i64, i64, i64, %swift.bridge* } %63, 1
  %66 = extractvalue { i64, i64, i64, %swift.bridge* } %63, 2
  %67 = extractvalue { i64, i64, i64, %swift.bridge* } %63, 3
  tail call swiftcc void @"$sSa034_makeUniqueAndReserveCapacityIfNotB0yyFSs_Tg5"(%TSa* nocapture nonnull swiftself dereferenceable(8) %13)
  %68 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %68, i64 0, i32 1, i32 0, i32 0, i32 0
  %69 = load i64, i64* %._storage.count._value, align 8, !range !6
  tail call swiftcc void @"$sSa36_reserveCapacityAssumingUniqueBuffer8oldCountySi_tFSs_Tg5"(i64 %69, %TSa* nocapture nonnull swiftself dereferenceable(8) %13)
  %70 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %71 = add nuw nsw i64 %69, 1
  %._storage2.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %70, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %71, i64* %._storage2.count._value, align 8
  %72 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %70, i64 1
  %73 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %72, i64 %69
  %._slice._startIndex._rawBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %73 to i64*
  store i64 %64, i64* %._slice._startIndex._rawBits._value, align 8
  %._slice._endIndex = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %73, i64 0, i32 0, i32 1
  store i64 %65, i64* %._slice._endIndex, align 8
  %._slice._base = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %73, i64 0, i32 1
  %._slice._base._guts._object._countAndFlagsBits._value = getelementptr %Ts10_ArrayBodyV, %Ts10_ArrayBodyV* %._slice._base, i64 0, i32 0, i32 0, i32 0
  store i64 %66, i64* %._slice._base._guts._object._countAndFlagsBits._value, align 8
  %._slice._base._guts._object._object = getelementptr inbounds %Ts10_ArrayBodyV, %Ts10_ArrayBodyV* %._slice._base, i64 0, i32 0, i32 1
  %74 = bitcast %TSu* %._slice._base._guts._object._object to %swift.bridge**
  store %swift.bridge* %67, %swift.bridge** %74, align 8
  store %Ts28__ContiguousArrayStorageBaseC* %70, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %55

75:                                               ; preds = %37, %130
  %76 = phi i64 [ 15, %37 ], [ %131, %130 ]
  %77 = phi i64 [ 15, %37 ], [ %132, %130 ]
  %78 = phi i64 [ 15, %37 ], [ %133, %130 ]
  %79 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %37 ], [ %134, %130 ]
  %80 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %37 ], [ %135, %130 ]
  %81 = tail call swiftcc { i64, %swift.bridge* } @"$sSSySJSS5IndexVcig"(i64 %76, i64 %4, %swift.bridge* %5)
  %82 = extractvalue { i64, %swift.bridge* } %81, 0
  %83 = extractvalue { i64, %swift.bridge* } %81, 1
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %45)
  store i64 %82, i64* %._str._guts._object._countAndFlagsBits._value, align 8
  store %swift.bridge* %83, %swift.bridge** %._str._guts._object._object, align 8
  %84 = call swiftcc i1 %46(%TSJ* noalias nocapture nonnull dereferenceable(16) %8, %swift.refcounted* swiftself %47, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %7)
  %85 = load %swift.error*, %swift.error** %7, align 8
  %.not25 = icmp eq %swift.error* %85, null
  br i1 %.not25, label %86, label %87

86:                                               ; preds = %75
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %83) #6
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %45)
  br i1 %84, label %89, label %125

87:                                               ; preds = %75
  tail call void @swift_release(%swift.refcounted* %11) #6
  tail call void @swift_release(%swift.refcounted* %14) #6
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %5) #6
  %88 = extractvalue { i64, %swift.bridge* } %81, 1
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %88) #6
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %45)
  br label %common.ret

89:                                               ; preds = %86
  %90 = lshr i64 %77, 14
  %91 = lshr i64 %76, 14
  %92 = icmp ne i64 %90, %91
  %brmerge = select i1 %92, i1 true, i1 %.not18
  br i1 %brmerge, label %97, label %93

93:                                               ; preds = %89, %120
  %94 = phi %Ts28__ContiguousArrayStorageBaseC* [ %121, %120 ], [ %79, %89 ]
  %95 = phi %Ts28__ContiguousArrayStorageBaseC* [ %121, %120 ], [ %80, %89 ]
  %96 = tail call swiftcc i64 @"$sSS5index5afterSS5IndexVAD_tF"(i64 %76, i64 %4, %swift.bridge* %5)
  store i64 %96, i64* %._rawBits._value, align 8
  br i1 %brmerge, label %127, label %130

97:                                               ; preds = %89
  %98 = icmp ult i64 %91, %90
  br i1 %98, label %140, label %99, !prof !8

99:                                               ; preds = %97
  %100 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64 %77, i64 %76, i64 %4, %swift.bridge* %5)
  %101 = extractvalue { i64, i64, i64, %swift.bridge* } %100, 0
  %102 = extractvalue { i64, i64, i64, %swift.bridge* } %100, 1
  %103 = extractvalue { i64, i64, i64, %swift.bridge* } %100, 2
  %104 = extractvalue { i64, i64, i64, %swift.bridge* } %100, 3
  %105 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %79, i64 0, i32 0
  %106 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %105) #16
  br i1 %106, label %111, label %107

107:                                              ; preds = %99
  %._storage4.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %79, i64 0, i32 1, i32 0, i32 0, i32 0
  %108 = load i64, i64* %._storage4.count._value, align 8, !range !6
  %109 = add nuw nsw i64 %108, 1
  %110 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSs_Tg5"(i1 false, i64 %109, i1 true, %Ts28__ContiguousArrayStorageBaseC* %79)
  br label %111

111:                                              ; preds = %99, %107
  %112 = phi %Ts28__ContiguousArrayStorageBaseC* [ %110, %107 ], [ %79, %99 ]
  %._storage5.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %112, i64 0, i32 1, i32 0, i32 0, i32 0
  %113 = load i64, i64* %._storage5.count._value, align 8, !range !6
  %._storage5._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %112, i64 0, i32 1, i32 0, i32 1, i32 0
  %114 = load i64, i64* %._storage5._capacityAndFlags._value, align 8
  %115 = lshr i64 %114, 1
  %116 = add nuw nsw i64 %113, 1
  %.not = icmp ugt i64 %115, %113
  br i1 %.not, label %120, label %117, !prof !7

117:                                              ; preds = %111
  %118 = icmp ugt i64 %114, 1
  %119 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSs_Tg5"(i1 %118, i64 %116, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %112)
  br label %120

120:                                              ; preds = %111, %117
  %121 = phi %Ts28__ContiguousArrayStorageBaseC* [ %119, %117 ], [ %112, %111 ]
  %._storage6.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %121, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %116, i64* %._storage6.count._value, align 8
  %122 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %121, i64 1
  %123 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %122, i64 %113
  %._slice8._startIndex._rawBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %123 to i64*
  store i64 %101, i64* %._slice8._startIndex._rawBits._value, align 8
  %._slice8._endIndex = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %123, i64 0, i32 0, i32 1
  store i64 %102, i64* %._slice8._endIndex, align 8
  %._slice8._base = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %123, i64 0, i32 1
  %._slice8._base._guts._object._countAndFlagsBits._value = getelementptr %Ts10_ArrayBodyV, %Ts10_ArrayBodyV* %._slice8._base, i64 0, i32 0, i32 0, i32 0
  store i64 %103, i64* %._slice8._base._guts._object._countAndFlagsBits._value, align 8
  %._slice8._base._guts._object._object = getelementptr inbounds %Ts10_ArrayBodyV, %Ts10_ArrayBodyV* %._slice8._base, i64 0, i32 0, i32 1
  %124 = bitcast %TSu* %._slice8._base._guts._object._object to %swift.bridge**
  store %swift.bridge* %104, %swift.bridge** %124, align 8
  store %Ts28__ContiguousArrayStorageBaseC* %121, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %93

125:                                              ; preds = %86
  %126 = tail call swiftcc i64 @"$sSS5index5afterSS5IndexVAD_tF"(i64 %76, i64 %4, %swift.bridge* %5)
  br label %130

127:                                              ; preds = %93
  %._storage11.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %94, i64 0, i32 1, i32 0, i32 0, i32 0
  %128 = load i64, i64* %._storage11.count._value, align 8, !range !6
  %129 = icmp eq i64 %128, %0
  br i1 %129, label %48, label %130

130:                                              ; preds = %127, %93, %125
  %131 = phi i64 [ %126, %125 ], [ %96, %93 ], [ %96, %127 ]
  %132 = phi i64 [ %77, %125 ], [ %96, %93 ], [ %96, %127 ]
  %133 = phi i64 [ %78, %125 ], [ %96, %93 ], [ %96, %127 ]
  %134 = phi %Ts28__ContiguousArrayStorageBaseC* [ %79, %125 ], [ %94, %93 ], [ %94, %127 ]
  %135 = phi %Ts28__ContiguousArrayStorageBaseC* [ %80, %125 ], [ %95, %93 ], [ %95, %127 ]
  %136 = lshr i64 %131, 14
  %137 = icmp eq i64 %136, %44
  br i1 %137, label %48, label %75

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

139:                                              ; preds = %59
  tail call void asm sideeffect "", "n"(i32 1) #6
  tail call void @llvm.trap()
  unreachable

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

; Function Attrs: minsize noinline optsize
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 #5 {
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
}

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

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") #17
  %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) #6
  %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) #19
  %gepdiff = add nsw i64 %call.i, -32
  %26 = sdiv i64 %gepdiff, 16
  %27 = shl nsw i64 %26, 1
  %28 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1
  %._storage7.count._value = bitcast %swift.refcounted* %28 to i64*
  store i64 %16, i64* %._storage7.count._value, align 8
  %._storage7._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1, i32 1
  store i64 %27, i64* %._storage7._capacityAndFlags, align 8
  br label %29

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

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

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

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

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

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

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

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

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") #17
  %21 = shl i64 %17, 5
  %22 = add i64 %21, 32
  %23 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %20, i64 %22, i64 7) #6
  %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) #19
  %gepdiff = add nsw i64 %call.i, -32
  %26 = sdiv i64 %gepdiff, 32
  %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 %40

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

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

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

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

43:                                               ; preds = %"$sSp14moveInitialize4from5countySpyxG_SitFSs_Tg5.exit", %40
  %44 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %44) #6
  ret %Ts28__ContiguousArrayStorageBaseC* %30

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

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

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") #17
  %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) #6
  %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) #19
  %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
  br i1 %0, label %32, label %42

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

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

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

42:                                               ; preds = %29
  %43 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to i8*
  %44 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 1
  %45 = bitcast %Ts28__ContiguousArrayStorageBaseC* %44 to i8*
  %46 = shl nuw i64 %16, 3
  tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* nonnull align 8 %43, i8* nonnull align 8 %45, i64 %46, i1 false)
  br label %47

47:                                               ; preds = %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit", %42
  %48 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %48) #6
  ret %Ts28__ContiguousArrayStorageBaseC* %30

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

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

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

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_ContiguousArrayStorageCySi_SitGMD") #17
  %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) #6
  %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) #19
  %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
  br i1 %0, label %32, label %42

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

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

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

42:                                               ; preds = %29
  %43 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to i8*
  %44 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 1
  %45 = bitcast %Ts28__ContiguousArrayStorageBaseC* %44 to i8*
  %46 = shl nuw i64 %16, 4
  tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* nonnull align 8 %43, i8* nonnull align 8 %45, i64 %46, i1 false)
  br label %47

47:                                               ; preds = %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit", %42
  %48 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %48) #6
  ret %Ts28__ContiguousArrayStorageBaseC* %30

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

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc i1 @"$sSlsE5split9maxSplits25omittingEmptySubsequences14whereSeparatorSay11SubSequenceQzGSi_S2b7ElementQzKXEtKF17appendSubsequenceL_3endSb5IndexQz_tSlRzlFSS_Tg5"(i64 %0, %swift.refcounted* %1, i1 %2, %swift.refcounted* %3, i64 %4, %swift.bridge* %5) local_unnamed_addr #0 {
entry:
  %6 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %1, i64 1
  %._rawBits._value = bitcast %swift.refcounted* %6 to i64*
  %7 = load i64, i64* %._rawBits._value, align 8
  %8 = lshr i64 %7, 14
  %9 = lshr i64 %0, 14
  %10 = icmp ne i64 %8, %9
  %.not3 = xor i1 %2, true
  %brmerge = select i1 %10, i1 true, i1 %.not3
  br i1 %brmerge, label %12, label %11

11:                                               ; preds = %entry, %14
  ret i1 %brmerge

12:                                               ; preds = %entry
  %13 = icmp ult i64 %9, %8
  br i1 %13, label %29, label %14, !prof !8

14:                                               ; preds = %12
  %15 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %3, i64 1
  %16 = bitcast %swift.refcounted* %15 to %TSa*
  %17 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64 %7, i64 %0, i64 %4, %swift.bridge* %5)
  %18 = extractvalue { i64, i64, i64, %swift.bridge* } %17, 0
  %19 = extractvalue { i64, i64, i64, %swift.bridge* } %17, 1
  %20 = extractvalue { i64, i64, i64, %swift.bridge* } %17, 2
  %21 = extractvalue { i64, i64, i64, %swift.bridge* } %17, 3
  tail call swiftcc void @"$sSa034_makeUniqueAndReserveCapacityIfNotB0yyFSs_Tg5"(%TSa* nocapture nonnull swiftself dereferenceable(8) %16)
  %._buffer._storage = bitcast %swift.refcounted* %15 to %Ts28__ContiguousArrayStorageBaseC**
  %22 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %22, i64 0, i32 1, i32 0, i32 0, i32 0
  %23 = load i64, i64* %._storage.count._value, align 8, !range !6
  tail call swiftcc void @"$sSa36_reserveCapacityAssumingUniqueBuffer8oldCountySi_tFSs_Tg5"(i64 %23, %TSa* nocapture nonnull swiftself dereferenceable(8) %16)
  %24 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %25 = add nuw nsw i64 %23, 1
  %._storage1.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %24, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %25, i64* %._storage1.count._value, align 8
  %26 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %24, i64 1
  %27 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %26, i64 %23
  %._slice._startIndex._rawBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %27 to i64*
  store i64 %18, i64* %._slice._startIndex._rawBits._value, align 8
  %._slice._endIndex = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 0, i32 0, i32 1
  store i64 %19, i64* %._slice._endIndex, align 8
  %._slice._base = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 0, i32 1
  %._slice._base._guts._object._countAndFlagsBits._value = getelementptr %Ts10_ArrayBodyV, %Ts10_ArrayBodyV* %._slice._base, i64 0, i32 0, i32 0, i32 0
  store i64 %20, i64* %._slice._base._guts._object._countAndFlagsBits._value, align 8
  %._slice._base._guts._object._object = getelementptr inbounds %Ts10_ArrayBodyV, %Ts10_ArrayBodyV* %._slice._base, i64 0, i32 0, i32 1
  %28 = bitcast %TSu* %._slice._base._guts._object._object to %swift.bridge**
  store %swift.bridge* %21, %swift.bridge** %28, align 8
  br label %11

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

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

4:                                                ; preds = %entry
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %1, i64 0, i32 1, i32 0, i32 0, i32 0
  %5 = load i64, i64* %._storage.count._value, align 8, !range !6
  %6 = add nuw nsw i64 %5, 1
  %7 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSs_Tg5"(i1 false, i64 %6, i1 true, %Ts28__ContiguousArrayStorageBaseC* %1)
  store %Ts28__ContiguousArrayStorageBaseC* %7, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %8

8:                                                ; preds = %entry, %4
  ret void
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc void @"$sSa36_reserveCapacityAssumingUniqueBuffer8oldCountySi_tFSs_Tg5"(i64 %0, %TSa* nocapture swiftself dereferenceable(8) %1) local_unnamed_addr #0 {
entry:
  %._buffer._storage = getelementptr inbounds %TSa, %TSa* %1, i64 0, i32 0, i32 0
  %2 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %2, i64 0, i32 1, i32 0, i32 1, i32 0
  %3 = load i64, i64* %._storage._capacityAndFlags._value, align 8
  %4 = lshr i64 %3, 1
  %5 = add i64 %0, 1
  %6 = icmp slt i64 %4, %5
  br i1 %6, label %7, label %10, !prof !8

7:                                                ; preds = %entry
  %8 = icmp ugt i64 %3, 1
  %9 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSs_Tg5"(i1 %8, i64 %5, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %2)
  store %Ts28__ContiguousArrayStorageBaseC* %9, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %10

10:                                               ; preds = %entry, %7
  ret void
}

; Function Attrs: minsize noinline optsize
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 #5 {
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) #6
  %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 !7

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

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) #6
  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) #6
  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: minsize optsize
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 !8

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 !8

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 !8

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 !8

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 !8

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

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 !8

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 !8

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) #6
  tail call void @llvm.trap()
  unreachable

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

; Function Attrs: minsize noinline optsize
define linkonce_odr hidden swiftcc { i64, %swift.bridge* } @"$sSS8_copyingyS2SFZ"(i64 %0, %swift.bridge* %1) local_unnamed_addr #5 {
entry:
  %2 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSlsEy11SubSequenceQzys15UnboundedRange_OXEcigSS_Tgq5"(i8* nonnull bitcast (void ()* @"$sSS8_copyingyS2SFZys15UnboundedRange_Ocfu_" to i8*), %swift.opaque* null, i64 %0, %swift.bridge* %1)
  %3 = extractvalue { i64, i64, i64, %swift.bridge* } %2, 0
  %4 = extractvalue { i64, i64, i64, %swift.bridge* } %2, 1
  %5 = extractvalue { i64, i64, i64, %swift.bridge* } %2, 2
  %6 = extractvalue { i64, i64, i64, %swift.bridge* } %2, 3
  %7 = tail call swiftcc { i64, %swift.bridge* } @"$sSS8_copyingySSSsFZ"(i64 %3, i64 %4, i64 %5, %swift.bridge* %6)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %6) #6
  ret { i64, %swift.bridge* } %7
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc void @"$sSS8_copyingyS2SFZys15UnboundedRange_Ocfu_"() #0 {
entry:
  unreachable
}

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

; Function Attrs: minsize noinline optsize
define linkonce_odr hidden swiftcc { i64, %swift.bridge* } @"$sSS8_copyingySSSsFZ"(i64 %0, i64 %1, i64 %2, %swift.bridge* %3) local_unnamed_addr #5 {
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 !7

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_Tgq5"(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 !7

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) #6
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %19) #6
  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 !12
  %26 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %21, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %26) #6
  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 !8

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) #6
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
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 !8

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 !8

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 !7

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 !8

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

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) #6
  tail call void @llvm.trap()
  unreachable

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

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

4:                                                ; preds = %entry
  %5 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCys5UInt8VGMD") #17
  %6 = add i64 %2, 32
  %7 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %5, i64 %6, i64 7) #6
  %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) #19
  %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
}

; Function Attrs: minsize optsize
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 !8

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 !8

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 !8

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 !8

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 !8

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 !7

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) #6
  tail call void @llvm.trap()
  unreachable

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

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

; Function Attrs: minsize noinline optsize
define linkonce_odr hidden swiftcc i64 @"$ss11_StringGutsV27_slowEnsureMatchingEncodingySS5IndexVAEF"(i64 %0, i64 %1, %swift.bridge* %2) local_unnamed_addr #5 {
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
}

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

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

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

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

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

; Function Attrs: minsize mustprogress nofree noinline nounwind optsize 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 !8

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) #20
  %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 #6

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

; 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) #9

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

; Function Attrs: minsize optsize
declare swiftcc %swift.metadata_response @"$ss28__ContiguousArrayStorageBaseCMa"(i64) local_unnamed_addr #0

; Function Attrs: nofree nounwind readonly
declare i8* @swift_dynamicCastClass(i8*, i8*) local_unnamed_addr #10

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

; Function Attrs: minsize optsize
define internal swiftcc void @"$sSr15_stableSortImpl2byySbx_xtKXE_tKFSi_Sit_Tg5027$s7llvm_OZ4mainyyFSbSi_Sit_H11_SittXEfU0_Tf1cn_nTm"(%TSrySi_SitG* nocapture dereferenceable(16) %0, %swift.refcounted* swiftself %1, %swift.error** noalias nocapture swifterror dereferenceable(8) %2) local_unnamed_addr #0 {
entry:
  %.count._value = getelementptr inbounds %TSrySi_SitG, %TSrySi_SitG* %0, i64 0, i32 1, i32 0
  %3 = load i64, i64* %.count._value, align 8
  %4 = tail call swiftcc i64 @"$ss22_minimumMergeRunLengthyS2iF"(i64 %3)
  %5 = icmp slt i64 %4, %3
  br i1 %5, label %6, label %11

6:                                                ; preds = %entry
  %7 = sdiv i64 %3, 2
  %8 = icmp slt i64 %3, -1
  br i1 %8, label %302, label %9, !prof !8

9:                                                ; preds = %6
  %10 = icmp sgt i64 %3, 1
  br i1 %10, label %.thread242, label %19

11:                                               ; preds = %entry
  %12 = icmp slt i64 %3, 0
  br i1 %12, label %301, label %13, !prof !8

13:                                               ; preds = %11
  %14 = icmp eq i64 %3, 0
  br i1 %14, label %common.ret, label %299

.thread242:                                       ; preds = %9
  %15 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$sSi_SitMD") #17
  %16 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa28_allocateBufferUninitialized15minimumCapacitys016_ContiguousArrayB0VyxGSi_tFZ"(i64 %7, %swift.type* %15)
  %._storage64.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %7, i64* %._storage64.count._value, align 8
  %17 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 1
  %18 = bitcast %Ts28__ContiguousArrayStorageBaseC* %17 to i8*
  br label %.preheader149

19:                                               ; preds = %9
  %20 = icmp eq i64 %3, 1
  br i1 %20, label %.preheader149, label %..loopexit150_crit_edge

..loopexit150_crit_edge:                          ; preds = %19
  %.pre232 = load i64, i64* getelementptr inbounds (%struct._SwiftEmptyArrayStorage, %struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage, i64 0, i32 1, i32 0), align 8, !range !6
  br label %.loopexit150

.preheader149:                                    ; preds = %.thread242, %19
  %21 = phi i8* [ %18, %.thread242 ], [ bitcast (%struct.HeapMetadata** getelementptr inbounds (%struct._SwiftEmptyArrayStorage, %struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage, i64 1, i32 0, i32 0) to i8*), %19 ]
  %22 = phi %Ts28__ContiguousArrayStorageBaseC* [ %16, %.thread242 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %19 ]
  %23 = bitcast %TSrySi_SitG* %0 to i64*
  br label %24

24:                                               ; preds = %.preheader149, %.loopexit
  %25 = phi i64 [ %88, %.loopexit ], [ 0, %.preheader149 ]
  %26 = phi i64 [ %71, %.loopexit ], [ %3, %.preheader149 ]
  %27 = phi %Ts28__ContiguousArrayStorageBaseC* [ %107, %.loopexit ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %.preheader149 ]
  %28 = add nsw i64 %25, 1
  %29 = icmp slt i64 %28, %26
  br i1 %29, label %30, label %.loopexit146

30:                                               ; preds = %24
  %31 = load i64, i64* %23, align 8
  %32 = inttoptr i64 %31 to <{ %TSi, %TSi }>*
  %.elt56._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %32, i64 %28, i32 0, i32 0
  %33 = load i64, i64* %.elt56._value, align 8
  %.elt57._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %32, i64 %25, i32 0, i32 0
  %34 = load i64, i64* %.elt57._value, align 8
  %35 = icmp slt i64 %33, %34
  %36 = add nsw i64 %25, 2
  %37 = icmp slt i64 %36, %26
  br i1 %37, label %.preheader147, label %.loopexit148

.preheader147:                                    ; preds = %30, %43
  %38 = phi i64 [ %40, %43 ], [ %33, %30 ]
  %39 = phi i64 [ %44, %43 ], [ %36, %30 ]
  %.elt62._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %32, i64 %39, i32 0, i32 0
  %40 = load i64, i64* %.elt62._value, align 8
  %41 = icmp sge i64 %40, %38
  %42 = xor i1 %35, %41
  br i1 %42, label %43, label %.loopexit148

43:                                               ; preds = %.preheader147
  %44 = add nsw i64 %39, 1
  %45 = icmp slt i64 %44, %26
  br i1 %45, label %.preheader147, label %.loopexit148

.loopexit148:                                     ; preds = %43, %.preheader147, %30
  %46 = phi i64 [ %36, %30 ], [ %26, %43 ], [ %39, %.preheader147 ]
  br i1 %35, label %47, label %.loopexit146

47:                                               ; preds = %.loopexit148
  %48 = icmp slt i64 %46, %25
  br i1 %48, label %329, label %49, !prof !8

49:                                               ; preds = %47
  %50 = icmp slt i64 %25, %46
  br i1 %50, label %.preheader145, label %.loopexit146

.preheader145:                                    ; preds = %49, %67
  %51 = phi i64 [ %53, %67 ], [ %46, %49 ]
  %52 = phi i64 [ %68, %67 ], [ %25, %49 ]
  %53 = add nsw i64 %51, -1
  %54 = load i64, i64* %23, align 8
  %55 = icmp eq i64 %52, %53
  br i1 %55, label %67, label %56

56:                                               ; preds = %.preheader145
  %57 = icmp eq i64 %54, 0
  br i1 %57, label %330, label %58

58:                                               ; preds = %56
  %59 = inttoptr i64 %54 to <{ %TSi, %TSi }>*
  %60 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %59, i64 %52
  %61 = bitcast <{ %TSi, %TSi }>* %60 to i8*
  %62 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %59, i64 %53
  %63 = bitcast <{ %TSi, %TSi }>* %62 to i8*
  %64 = bitcast <{ %TSi, %TSi }>* %60 to <2 x i64>*
  %65 = load <2 x i64>, <2 x i64>* %64, align 8
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %61, i8* noundef nonnull align 8 dereferenceable(16) %63, i64 16, i1 false)
  %66 = bitcast <{ %TSi, %TSi }>* %62 to <2 x i64>*
  store <2 x i64> %65, <2 x i64>* %66, align 8
  br label %67

67:                                               ; preds = %.preheader145, %58
  %68 = add nsw i64 %52, 1
  %69 = icmp slt i64 %68, %53
  br i1 %69, label %.preheader145, label %.loopexit146

.loopexit146:                                     ; preds = %67, %49, %.loopexit148, %24
  %70 = phi i64 [ %28, %24 ], [ %46, %.loopexit148 ], [ %46, %49 ], [ %46, %67 ]
  %71 = load i64, i64* %.count._value, align 8
  %72 = icmp slt i64 %70, %71
  br i1 %72, label %73, label %.loopexit144

73:                                               ; preds = %.loopexit146
  %74 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %70, i64 %25)
  %75 = extractvalue { i64, i1 } %74, 1
  br i1 %75, label %325, label %76, !prof !8

76:                                               ; preds = %73
  %77 = extractvalue { i64, i1 } %74, 0
  %78 = icmp slt i64 %77, %4
  br i1 %78, label %79, label %.loopexit144

79:                                               ; preds = %76
  %80 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %25, i64 %4)
  %81 = extractvalue { i64, i1 } %80, 1
  br i1 %81, label %326, label %82, !prof !8

82:                                               ; preds = %79
  %83 = extractvalue { i64, i1 } %80, 0
  %84 = tail call i64 @llvm.smin.i64(i64 %83, i64 %71)
  %85 = icmp slt i64 %84, %25
  br i1 %85, label %327, label %86, !prof !8

86:                                               ; preds = %82
  %87 = icmp eq i64 %70, %84
  br i1 %87, label %.loopexit144, label %.preheader

.loopexit144:                                     ; preds = %296, %86, %76, %.loopexit146
  %88 = phi i64 [ %70, %.loopexit146 ], [ %70, %76 ], [ %70, %86 ], [ %84, %296 ]
  %89 = icmp slt i64 %88, %25
  br i1 %89, label %308, label %90, !prof !8

90:                                               ; preds = %.loopexit144
  %91 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 0, i32 0
  %92 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %91) #16
  br i1 %92, label %97, label %93

93:                                               ; preds = %90
  %._storage13.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 0, i32 1, i32 0, i32 0, i32 0
  %94 = load i64, i64* %._storage13.count._value, align 8, !range !6
  %95 = add nuw nsw i64 %94, 1
  %96 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSnySiG_Tgq5"(i1 false, i64 %95, i1 true, %Ts28__ContiguousArrayStorageBaseC* %27)
  br label %97

97:                                               ; preds = %90, %93
  %98 = phi %Ts28__ContiguousArrayStorageBaseC* [ %96, %93 ], [ %27, %90 ]
  %._storage14.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %98, i64 0, i32 1, i32 0, i32 0, i32 0
  %99 = load i64, i64* %._storage14.count._value, align 8, !range !6
  %._storage14._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %98, i64 0, i32 1, i32 0, i32 1, i32 0
  %100 = load i64, i64* %._storage14._capacityAndFlags._value, align 8
  %101 = lshr i64 %100, 1
  %102 = add nuw nsw i64 %99, 1
  %.not134 = icmp ugt i64 %101, %99
  br i1 %.not134, label %106, label %103, !prof !7

103:                                              ; preds = %97
  %104 = icmp ugt i64 %100, 1
  %105 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSnySiG_Tgq5"(i1 %104, i64 %102, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %98)
  br label %106

106:                                              ; preds = %97, %103
  %107 = phi %Ts28__ContiguousArrayStorageBaseC* [ %105, %103 ], [ %98, %97 ]
  %._storage15.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %107, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %102, i64* %._storage15.count._value, align 8
  %108 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %107, i64 1
  %tailaddr16 = bitcast %Ts28__ContiguousArrayStorageBaseC* %108 to %TSnySiG*
  %.lowerBound17._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %99, i32 0, i32 0
  store i64 %25, i64* %.lowerBound17._value, align 8
  %.upperBound18._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %99, i32 1, i32 0
  store i64 %88, i64* %.upperBound18._value, align 8
  %.not142 = icmp eq i64 %99, 0
  br i1 %.not142, label %.loopexit, label %thread-pre-split

thread-pre-split:                                 ; preds = %106
  %.lowerBound47._value.phi.trans.insert = bitcast %Ts28__ContiguousArrayStorageBaseC* %108 to i64*
  %109 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %107, i64 1, i32 0, i32 1
  %110 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %107, i64 1, i32 0, i32 1
  %.lowerBound40._value.phi.trans.insert = bitcast %Ts28__ContiguousArrayStorageBaseC* %108 to i64*
  br label %111

111:                                              ; preds = %thread-pre-split, %260
  %112 = phi i64 [ %102, %thread-pre-split ], [ %261, %260 ]
  %113 = add nsw i64 %112, -1
  %114 = icmp ult i64 %112, 4
  br i1 %114, label %142, label %115

115:                                              ; preds = %111
  %116 = add nsw i64 %112, -4
  %.lowerBound22._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %116, i32 0, i32 0
  %117 = load i64, i64* %.lowerBound22._value, align 8
  %.upperBound23._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %116, i32 1, i32 0
  %118 = load i64, i64* %.upperBound23._value, align 8
  %119 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %118, i64 %117)
  %120 = extractvalue { i64, i1 } %119, 0
  %121 = extractvalue { i64, i1 } %119, 1
  br i1 %121, label %309, label %122, !prof !8

122:                                              ; preds = %115
  %123 = add nsw i64 %112, -3
  %.lowerBound24._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %123, i32 0, i32 0
  %124 = load i64, i64* %.lowerBound24._value, align 8
  %.upperBound25._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %123, i32 1, i32 0
  %125 = load i64, i64* %.upperBound25._value, align 8
  %126 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %125, i64 %124)
  %127 = extractvalue { i64, i1 } %126, 0
  %128 = extractvalue { i64, i1 } %126, 1
  br i1 %128, label %310, label %129, !prof !8

129:                                              ; preds = %122
  %130 = add nsw i64 %112, -2
  %.lowerBound26._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %130, i32 0, i32 0
  %131 = load i64, i64* %.lowerBound26._value, align 8
  %.upperBound27._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %130, i32 1, i32 0
  %132 = load i64, i64* %.upperBound27._value, align 8
  %133 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %132, i64 %131)
  %134 = extractvalue { i64, i1 } %133, 1
  br i1 %134, label %311, label %135, !prof !8

135:                                              ; preds = %129
  %136 = extractvalue { i64, i1 } %133, 0
  %137 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %127, i64 %136)
  %138 = extractvalue { i64, i1 } %137, 1
  br i1 %138, label %312, label %139, !prof !8

139:                                              ; preds = %135
  %140 = extractvalue { i64, i1 } %137, 0
  %141 = icmp slt i64 %140, %120
  br i1 %141, label %.thread, label %270

142:                                              ; preds = %111
  %.not143 = icmp eq i64 %112, 3
  br i1 %.not143, label %..thread_crit_edge, label %._crit_edge

..thread_crit_edge:                               ; preds = %142
  %.pre229 = load i64, i64* %110, align 8
  %.pre = load i64, i64* %.lowerBound40._value.phi.trans.insert, align 8
  %.pre233 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %.pre229, i64 %.pre)
  %.pre235 = extractvalue { i64, i1 } %.pre233, 0
  br label %.thread

.thread:                                          ; preds = %..thread_crit_edge, %139
  %.pre-phi236 = phi i64 [ %.pre235, %..thread_crit_edge ], [ %127, %139 ]
  %.pre-phi234 = phi { i64, i1 } [ %.pre233, %..thread_crit_edge ], [ %126, %139 ]
  %143 = extractvalue { i64, i1 } %.pre-phi234, 1
  br i1 %143, label %319, label %144, !prof !8

144:                                              ; preds = %.thread
  %145 = add nsw i64 %112, -2
  %.lowerBound42._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %145, i32 0, i32 0
  %146 = load i64, i64* %.lowerBound42._value, align 8
  %.upperBound43._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %145, i32 1, i32 0
  %147 = load i64, i64* %.upperBound43._value, align 8
  %148 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %147, i64 %146)
  %149 = extractvalue { i64, i1 } %148, 0
  %150 = extractvalue { i64, i1 } %148, 1
  br i1 %150, label %320, label %151, !prof !8

151:                                              ; preds = %144
  %.lowerBound44._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %113, i32 0, i32 0
  %152 = load i64, i64* %.lowerBound44._value, align 8
  %.upperBound45._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %113, i32 1, i32 0
  %153 = load i64, i64* %.upperBound45._value, align 8
  %154 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %153, i64 %152)
  %155 = extractvalue { i64, i1 } %154, 0
  %156 = extractvalue { i64, i1 } %154, 1
  br i1 %156, label %321, label %157, !prof !8

157:                                              ; preds = %151
  %158 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %149, i64 %155)
  %159 = extractvalue { i64, i1 } %158, 1
  br i1 %159, label %322, label %160, !prof !8

160:                                              ; preds = %157
  %161 = extractvalue { i64, i1 } %158, 0
  %162 = icmp slt i64 %161, %.pre-phi236
  br i1 %162, label %.thread141, label %268

._crit_edge:                                      ; preds = %142
  %.pre230 = load i64, i64* %.lowerBound47._value.phi.trans.insert, align 8
  %.pre231 = load i64, i64* %109, align 8
  %.pre237 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %.pre231, i64 %.pre230)
  %.pre239 = extractvalue { i64, i1 } %.pre237, 0
  br label %.thread141

.thread141:                                       ; preds = %160, %._crit_edge
  %.pre-phi240 = phi i64 [ %.pre239, %._crit_edge ], [ %149, %160 ]
  %.pre-phi238 = phi { i64, i1 } [ %.pre237, %._crit_edge ], [ %148, %160 ]
  %163 = extractvalue { i64, i1 } %.pre-phi238, 1
  br i1 %163, label %323, label %164, !prof !8

164:                                              ; preds = %.thread141
  %.lowerBound49._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %113, i32 0, i32 0
  %165 = load i64, i64* %.lowerBound49._value, align 8
  %.upperBound50._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %113, i32 1, i32 0
  %166 = load i64, i64* %.upperBound50._value, align 8
  %167 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %166, i64 %165)
  %168 = extractvalue { i64, i1 } %167, 1
  br i1 %168, label %324, label %169, !prof !8

169:                                              ; preds = %164
  %170 = extractvalue { i64, i1 } %167, 0
  %171 = icmp slt i64 %170, %.pre-phi240
  br i1 %171, label %.loopexit, label %234

.loopexit:                                        ; preds = %260, %169, %106
  %172 = phi i64 [ 1, %106 ], [ %261, %260 ], [ %112, %169 ]
  %173 = icmp slt i64 %88, %71
  br i1 %173, label %24, label %.loopexit150

.loopexit150:                                     ; preds = %.loopexit, %..loopexit150_crit_edge
  %174 = phi i8* [ bitcast (%struct.HeapMetadata** getelementptr inbounds (%struct._SwiftEmptyArrayStorage, %struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage, i64 1, i32 0, i32 0) to i8*), %..loopexit150_crit_edge ], [ %21, %.loopexit ]
  %175 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %..loopexit150_crit_edge ], [ %22, %.loopexit ]
  %176 = phi i64 [ %.pre232, %..loopexit150_crit_edge ], [ %172, %.loopexit ]
  %177 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %..loopexit150_crit_edge ], [ %107, %.loopexit ]
  %178 = icmp ugt i64 %176, 1
  br i1 %178, label %179, label %.loopexit284

179:                                              ; preds = %.loopexit150
  %180 = bitcast %TSrySi_SitG* %0 to i64*
  %181 = load i64, i64* %180, align 8
  %182 = icmp eq i64 %181, 0
  %183 = inttoptr i64 %181 to <{ %TSi, %TSi }>*
  br label %184

184:                                              ; preds = %217, %179
  %185 = phi i64 [ %176, %179 ], [ %218, %217 ]
  %186 = phi %Ts28__ContiguousArrayStorageBaseC* [ %177, %179 ], [ %212, %217 ]
  %187 = add nsw i64 %185, -1
  %188 = add nsw i64 %185, -2
  %189 = icmp ult i64 %185, 2
  br i1 %189, label %303, label %190, !prof !8

190:                                              ; preds = %184
  %191 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %186, i64 1
  %tailaddr3 = bitcast %Ts28__ContiguousArrayStorageBaseC* %191 to %TSnySiG*
  %.lowerBound._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr3, i64 %188, i32 0, i32 0
  %192 = load i64, i64* %.lowerBound._value, align 8
  %.upperBound._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr3, i64 %187, i32 1, i32 0
  %193 = load i64, i64* %.upperBound._value, align 8
  br i1 %182, label %304, label %194

194:                                              ; preds = %190
  %.lowerBound4._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr3, i64 %187, i32 0, i32 0
  %195 = load i64, i64* %.lowerBound4._value, align 8
  %196 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %183, i64 %192
  %197 = bitcast <{ %TSi, %TSi }>* %196 to i8*
  %198 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %183, i64 %195
  %199 = bitcast <{ %TSi, %TSi }>* %198 to i8*
  %200 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %183, i64 %193
  %201 = bitcast <{ %TSi, %TSi }>* %200 to i8*
  %202 = call swiftcc i1 @"$ss6_merge3low3mid4high6buffer2bySbSpyxG_A3GSbx_xtKXEtKlFSi_Sit_Tg5027$s7llvm_OZ4mainyyFSbSi_Sit_J11_SittXEfU0_Tf1nnnnc_nTm"(i8* %197, i8* %199, i8* %201, i8* %174, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture swifterror dereferenceable(8) %2)
  %203 = load %swift.error*, %swift.error** %2, align 8
  %.not131 = icmp eq %swift.error* %203, null
  br i1 %.not131, label %204, label %.loopexit283

204:                                              ; preds = %194
  %205 = icmp slt i64 %193, %192
  br i1 %205, label %305, label %206, !prof !8

206:                                              ; preds = %204
  %207 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %186, i64 0, i32 0
  %208 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %207) #16
  br i1 %208, label %211, label %209

209:                                              ; preds = %206
  %210 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSnySiG_Tgq5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %186)
  br label %211

211:                                              ; preds = %206, %209
  %212 = phi %Ts28__ContiguousArrayStorageBaseC* [ %210, %209 ], [ %186, %206 ]
  %._storage6.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %212, i64 0, i32 1, i32 0, i32 0, i32 0
  %213 = load i64, i64* %._storage6.count._value, align 8, !range !6
  %.not132 = icmp ult i64 %188, %213
  br i1 %.not132, label %214, label %306, !prof !7

214:                                              ; preds = %211
  %215 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %212, i64 1
  %tailaddr7 = bitcast %Ts28__ContiguousArrayStorageBaseC* %215 to %TSnySiG*
  %.lowerBound8._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr7, i64 %188, i32 0, i32 0
  store i64 %192, i64* %.lowerBound8._value, align 8
  %.upperBound9._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr7, i64 %188, i32 1, i32 0
  store i64 %193, i64* %.upperBound9._value, align 8
  %216 = load i64, i64* %._storage6.count._value, align 8, !range !6
  %.not133 = icmp ugt i64 %185, %216
  br i1 %.not133, label %307, label %217, !prof !8

217:                                              ; preds = %214
  %218 = add nsw i64 %216, -1
  %219 = sub nsw i64 %218, %187
  %220 = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr7, i64 %185
  %221 = bitcast %TSnySiG* %220 to i8*
  %222 = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr7, i64 %187
  %223 = bitcast %TSnySiG* %222 to i8*
  %224 = shl nuw i64 %219, 4
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* nonnull align 8 %223, i8* nonnull align 8 %221, i64 %224, i1 false)
  store i64 %218, i64* %._storage6.count._value, align 8
  %225 = icmp ugt i64 %216, 2
  br i1 %225, label %184, label %.loopexit284

.loopexit284:                                     ; preds = %217, %.loopexit150
  %.lcssa257.sink = phi %Ts28__ContiguousArrayStorageBaseC* [ %177, %.loopexit150 ], [ %212, %217 ]
  %226 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %.lcssa257.sink, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %226) #6
  %._storage1.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %175, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 0, i64* %._storage1.count._value, align 8
  %227 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %175, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %227) #6
  br label %common.ret

common.ret:                                       ; preds = %299, %13, %.loopexit284, %232
  ret void

.loopexit283:                                     ; preds = %243, %194
  %.lcssa276.sink = phi %Ts28__ContiguousArrayStorageBaseC* [ %186, %194 ], [ %107, %243 ]
  %228 = phi %Ts28__ContiguousArrayStorageBaseC* [ %175, %194 ], [ %22, %243 ]
  %229 = phi %swift.error* [ %203, %194 ], [ %253, %243 ]
  %230 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %.lcssa276.sink, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %230) #6
  %._storage5.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %228, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 0, i64* %._storage5.count._value, align 8
  %231 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %228, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %231) #6
  br label %232

232:                                              ; preds = %299, %.loopexit283
  %233 = phi %swift.error* [ %229, %.loopexit283 ], [ %300, %299 ]
  store %swift.error* %233, %swift.error** %2, align 8
  br label %common.ret

234:                                              ; preds = %275, %268, %169
  %235 = phi i64 [ %113, %169 ], [ %.65, %268 ], [ %.66, %275 ]
  %236 = add nsw i64 %235, -1
  %.not135 = icmp ult i64 %236, %112
  br i1 %.not135, label %237, label %314, !prof !7

237:                                              ; preds = %234
  %.lowerBound31._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %236, i32 0, i32 0
  %238 = load i64, i64* %.lowerBound31._value, align 8
  %239 = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %235
  %.upperBound33._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %235, i32 1, i32 0
  %240 = load i64, i64* %.upperBound33._value, align 8
  %241 = load i64, i64* %23, align 8
  %242 = icmp eq i64 %241, 0
  br i1 %242, label %315, label %243

243:                                              ; preds = %237
  %.lowerBound32._value = getelementptr inbounds %TSnySiG, %TSnySiG* %239, i64 0, i32 0, i32 0
  %244 = load i64, i64* %.lowerBound32._value, align 8
  %245 = inttoptr i64 %241 to <{ %TSi, %TSi }>*
  %246 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %245, i64 %238
  %247 = bitcast <{ %TSi, %TSi }>* %246 to i8*
  %248 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %245, i64 %244
  %249 = bitcast <{ %TSi, %TSi }>* %248 to i8*
  %250 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %245, i64 %240
  %251 = bitcast <{ %TSi, %TSi }>* %250 to i8*
  %252 = call swiftcc i1 @"$ss6_merge3low3mid4high6buffer2bySbSpyxG_A3GSbx_xtKXEtKlFSi_Sit_Tg5027$s7llvm_OZ4mainyyFSbSi_Sit_J11_SittXEfU0_Tf1nnnnc_nTm"(i8* %247, i8* %249, i8* %251, i8* %21, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture swifterror dereferenceable(8) %2)
  %253 = load %swift.error*, %swift.error** %2, align 8
  %.not137 = icmp eq %swift.error* %253, null
  br i1 %.not137, label %254, label %.loopexit283

254:                                              ; preds = %243
  %255 = icmp slt i64 %240, %238
  br i1 %255, label %316, label %256, !prof !8

256:                                              ; preds = %254
  %257 = load i64, i64* %._storage15.count._value, align 8, !range !6
  %.not138 = icmp ult i64 %236, %257
  br i1 %.not138, label %258, label %317, !prof !7

258:                                              ; preds = %256
  store i64 %238, i64* %.lowerBound31._value, align 8
  %.upperBound37._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %236, i32 1, i32 0
  store i64 %240, i64* %.upperBound37._value, align 8
  %259 = load i64, i64* %._storage15.count._value, align 8, !range !6
  %.not139 = icmp ult i64 %235, %259
  br i1 %.not139, label %260, label %318, !prof !7

260:                                              ; preds = %258
  %261 = add nsw i64 %259, -1
  %262 = sub nsw i64 %261, %235
  %263 = getelementptr inbounds %TSnySiG, %TSnySiG* %239, i64 1
  %264 = bitcast %TSnySiG* %263 to i8*
  %265 = bitcast %TSnySiG* %239 to i8*
  %266 = shl nuw i64 %262, 4
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* nonnull align 8 %265, i8* nonnull align 8 %264, i64 %266, i1 false)
  store i64 %261, i64* %._storage15.count._value, align 8
  %267 = icmp ugt i64 %259, 2
  br i1 %267, label %111, label %.loopexit

268:                                              ; preds = %160
  %269 = icmp slt i64 %.pre-phi236, %155
  %.65 = select i1 %269, i64 %145, i64 %113
  br label %234

270:                                              ; preds = %139
  %.lowerBound28._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %113, i32 0, i32 0
  %271 = load i64, i64* %.lowerBound28._value, align 8
  %.upperBound29._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %113, i32 1, i32 0
  %272 = load i64, i64* %.upperBound29._value, align 8
  %273 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %272, i64 %271)
  %274 = extractvalue { i64, i1 } %273, 1
  br i1 %274, label %313, label %275, !prof !8

275:                                              ; preds = %270
  %276 = extractvalue { i64, i1 } %273, 0
  %277 = icmp slt i64 %127, %276
  %.66 = select i1 %277, i64 %130, i64 %113
  br label %234

.preheader:                                       ; preds = %86, %296
  %278 = phi i64 [ %297, %296 ], [ %70, %86 ]
  br label %279

279:                                              ; preds = %291, %.preheader
  %280 = phi i64 [ %278, %.preheader ], [ %281, %291 ]
  %281 = add i64 %280, -1
  %282 = load i64, i64* %23, align 8
  %283 = inttoptr i64 %282 to <{ %TSi, %TSi }>*
  %284 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %283, i64 %280
  %.elt._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %284, i64 0, i32 0, i32 0
  %285 = load i64, i64* %.elt._value, align 8
  %286 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %283, i64 %281
  %.elt51._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %286, i64 0, i32 0, i32 0
  %287 = load i64, i64* %.elt51._value, align 8
  %288 = icmp slt i64 %285, %287
  br i1 %288, label %289, label %296

289:                                              ; preds = %279
  %290 = icmp eq i64 %282, 0
  br i1 %290, label %328, label %291

291:                                              ; preds = %289
  %.elt53._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %283, i64 %280, i32 1, i32 0
  %292 = load i64, i64* %.elt53._value, align 8
  %293 = bitcast <{ %TSi, %TSi }>* %286 to i8*
  %294 = bitcast <{ %TSi, %TSi }>* %284 to i8*
  tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %294, i8* noundef nonnull align 8 dereferenceable(16) %293, i64 16, i1 false)
  store i64 %285, i64* %.elt51._value, align 8
  %.elt55._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %283, i64 %281, i32 1, i32 0
  store i64 %292, i64* %.elt55._value, align 8
  %295 = icmp eq i64 %281, %25
  br i1 %295, label %296, label %279

296:                                              ; preds = %291, %279
  %297 = add i64 %278, 1
  %298 = icmp eq i64 %297, %84
  br i1 %298, label %.loopexit144, label %.preheader

299:                                              ; preds = %13
  call swiftcc void @"$sSMsSKRzrlE14_insertionSort6within9sortedEnd2byySny5IndexSlQzG_AFSb7ElementSTQz_AItKXEtKFSrySi_SitG_Tg5027$s7llvm_OZ4mainyyFSbSi_Sit_L11_SittXEfU0_Tf1nncn_nTm"(i64 0, i64 %3, i64 1, %TSrySi_SitG* nocapture dereferenceable(16) %0, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture swifterror dereferenceable(8) %2)
  %300 = load %swift.error*, %swift.error** %2, align 8
  %.not = icmp eq %swift.error* %300, null
  br i1 %.not, label %common.ret, label %232

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

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

303:                                              ; preds = %184
  tail call void asm sideeffect "", "n"(i32 4) #6
  tail call void @llvm.trap()
  unreachable

304:                                              ; preds = %190
  tail call void asm sideeffect "", "n"(i32 6) #6
  tail call void @llvm.trap()
  unreachable

305:                                              ; preds = %204
  tail call void asm sideeffect "", "n"(i32 7) #6
  tail call void @llvm.trap()
  unreachable

306:                                              ; preds = %211
  tail call void asm sideeffect "", "n"(i32 8) #6
  tail call void @llvm.trap()
  unreachable

307:                                              ; preds = %214
  tail call void asm sideeffect "", "n"(i32 9) #6
  tail call void @llvm.trap()
  unreachable

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

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

310:                                              ; preds = %122
  tail call void asm sideeffect "", "n"(i32 17) #6
  tail call void @llvm.trap()
  unreachable

311:                                              ; preds = %129
  tail call void asm sideeffect "", "n"(i32 19) #6
  tail call void @llvm.trap()
  unreachable

312:                                              ; preds = %135
  tail call void asm sideeffect "", "n"(i32 20) #6
  tail call void @llvm.trap()
  unreachable

313:                                              ; preds = %270
  tail call void asm sideeffect "", "n"(i32 23) #6
  tail call void @llvm.trap()
  unreachable

314:                                              ; preds = %234
  tail call void asm sideeffect "", "n"(i32 25) #6
  tail call void @llvm.trap()
  unreachable

315:                                              ; preds = %237
  tail call void asm sideeffect "", "n"(i32 27) #6
  tail call void @llvm.trap()
  unreachable

316:                                              ; preds = %254
  tail call void asm sideeffect "", "n"(i32 28) #6
  tail call void @llvm.trap()
  unreachable

317:                                              ; preds = %256
  tail call void asm sideeffect "", "n"(i32 29) #6
  tail call void @llvm.trap()
  unreachable

318:                                              ; preds = %258
  tail call void asm sideeffect "", "n"(i32 30) #6
  tail call void @llvm.trap()
  unreachable

319:                                              ; preds = %.thread
  tail call void asm sideeffect "", "n"(i32 34) #6
  tail call void @llvm.trap()
  unreachable

320:                                              ; preds = %144
  tail call void asm sideeffect "", "n"(i32 36) #6
  tail call void @llvm.trap()
  unreachable

321:                                              ; preds = %151
  tail call void asm sideeffect "", "n"(i32 38) #6
  tail call void @llvm.trap()
  unreachable

322:                                              ; preds = %157
  tail call void asm sideeffect "", "n"(i32 39) #6
  tail call void @llvm.trap()
  unreachable

323:                                              ; preds = %.thread141
  tail call void asm sideeffect "", "n"(i32 44) #6
  tail call void @llvm.trap()
  unreachable

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

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

326:                                              ; preds = %79
  tail call void asm sideeffect "", "n"(i32 48) #6
  tail call void @llvm.trap()
  unreachable

327:                                              ; preds = %82
  tail call void asm sideeffect "", "n"(i32 49) #6
  tail call void @llvm.trap()
  unreachable

328:                                              ; preds = %289
  tail call void asm sideeffect "", "n"(i32 50) #6
  tail call void @llvm.trap()
  unreachable

329:                                              ; preds = %47
  tail call void asm sideeffect "", "n"(i32 51) #6
  tail call void @llvm.trap()
  unreachable

330:                                              ; preds = %56
  tail call void asm sideeffect "", "n"(i32 52) #6
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
declare swiftcc i64 @"$ss22_minimumMergeRunLengthyS2iF"(i64) local_unnamed_addr #0

; Function Attrs: minsize optsize
define internal swiftcc void @"$sSMsSKRzrlE14_insertionSort6within9sortedEnd2byySny5IndexSlQzG_AFSb7ElementSTQz_AItKXEtKFSrySi_SitG_Tg5027$s7llvm_OZ4mainyyFSbSi_Sit_L11_SittXEfU0_Tf1nncn_nTm"(i64 %0, i64 %1, i64 %2, %TSrySi_SitG* nocapture dereferenceable(16) %3, %swift.refcounted* swiftself %4, %swift.error** noalias nocapture swifterror dereferenceable(8) %5) local_unnamed_addr #0 {
entry:
  %6 = icmp eq i64 %2, %1
  br i1 %6, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %entry
  %7 = bitcast %TSrySi_SitG* %3 to i64*
  br label %8

.loopexit:                                        ; preds = %27, %entry
  ret void

8:                                                ; preds = %.preheader, %27
  %9 = phi i64 [ %28, %27 ], [ %2, %.preheader ]
  br label %10

10:                                               ; preds = %22, %8
  %11 = phi i64 [ %9, %8 ], [ %12, %22 ]
  %12 = add i64 %11, -1
  %13 = load i64, i64* %7, align 8
  %14 = inttoptr i64 %13 to <{ %TSi, %TSi }>*
  %15 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %14, i64 %11
  %.elt._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %15, i64 0, i32 0, i32 0
  %16 = load i64, i64* %.elt._value, align 8
  %17 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %14, i64 %12
  %.elt1._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %17, i64 0, i32 0, i32 0
  %18 = load i64, i64* %.elt1._value, align 8
  %19 = icmp slt i64 %16, %18
  br i1 %19, label %20, label %27

20:                                               ; preds = %10
  %21 = icmp eq i64 %13, 0
  br i1 %21, label %30, label %22

22:                                               ; preds = %20
  %.elt3._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %14, i64 %11, i32 1, i32 0
  %23 = load i64, i64* %.elt3._value, align 8
  %24 = bitcast <{ %TSi, %TSi }>* %17 to i8*
  %25 = bitcast <{ %TSi, %TSi }>* %15 to i8*
  tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %25, i8* noundef nonnull align 8 dereferenceable(16) %24, i64 16, i1 false)
  store i64 %16, i64* %.elt1._value, align 8
  %.elt5._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %14, i64 %12, i32 1, i32 0
  store i64 %23, i64* %.elt5._value, align 8
  %26 = icmp eq i64 %12, %0
  br i1 %26, label %27, label %10

27:                                               ; preds = %22, %10
  %28 = add i64 %9, 1
  %29 = icmp eq i64 %28, %1
  br i1 %29, label %.loopexit, label %8

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

; Function Attrs: minsize optsize
define internal swiftcc i1 @"$ss6_merge3low3mid4high6buffer2bySbSpyxG_A3GSbx_xtKXEtKlFSi_Sit_Tg5027$s7llvm_OZ4mainyyFSbSi_Sit_J11_SittXEfU0_Tf1nnnnc_nTm"(i8* %0, i8* %1, i8* %2, i8* %3, %swift.refcounted* swiftself %4, %swift.error** noalias nocapture swifterror dereferenceable(8) %5) local_unnamed_addr #0 {
entry:
  %6 = ptrtoint i8* %1 to i64
  %7 = ptrtoint i8* %0 to i64
  %8 = sub i64 %6, %7
  %9 = sdiv i64 %8, 16
  %10 = ptrtoint i8* %2 to i64
  %11 = sub i64 %10, %6
  %12 = sdiv i64 %11, 16
  %13 = icmp slt i64 %9, %12
  br i1 %13, label %14, label %26

14:                                               ; preds = %entry
  %15 = bitcast i8* %0 to <{ %TSi, %TSi }>*
  %16 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %15, i64 %9
  %17 = bitcast <{ %TSi, %TSi }>* %16 to i8*
  %18 = icmp ugt i8* %17, %3
  %19 = icmp eq i8* %3, %0
  %or.cond5.i = select i1 %19, i1 %18, i1 false
  br i1 %or.cond5.i, label %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit", label %.sink.split.i

.sink.split.i:                                    ; preds = %14
  %20 = shl nuw nsw i64 %9, 4
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* align 8 %3, i8* align 8 %0, i64 %20, i1 false)
  br label %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit"

"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit": ; preds = %14, %.sink.split.i
  %21 = bitcast i8* %3 to <{ %TSi, %TSi }>*
  %22 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %21, i64 %9
  %23 = bitcast <{ %TSi, %TSi }>* %22 to i8*
  %24 = icmp ugt i8* %23, %3
  %25 = icmp ult i8* %1, %2
  %or.cond = select i1 %24, i1 %25, i1 false
  br i1 %or.cond, label %.preheader, label %.loopexit

26:                                               ; preds = %entry
  %27 = bitcast i8* %1 to <{ %TSi, %TSi }>*
  %28 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %27, i64 %12
  %29 = bitcast <{ %TSi, %TSi }>* %28 to i8*
  %30 = icmp ugt i8* %29, %3
  %31 = icmp eq i8* %3, %1
  %or.cond5.i34 = select i1 %31, i1 %30, i1 false
  br i1 %or.cond5.i34, label %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit36", label %.sink.split.i35

.sink.split.i35:                                  ; preds = %26
  %32 = shl nuw nsw i64 %12, 4
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* align 8 %3, i8* align 8 %1, i64 %32, i1 false)
  br label %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit36"

"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit36": ; preds = %26, %.sink.split.i35
  %33 = bitcast i8* %3 to <{ %TSi, %TSi }>*
  %34 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %33, i64 %12
  %35 = bitcast <{ %TSi, %TSi }>* %34 to i8*
  %36 = icmp ugt i8* %35, %3
  %37 = icmp ult i8* %0, %1
  %or.cond11 = select i1 %36, i1 %37, i1 false
  br i1 %or.cond11, label %.preheader40, label %.loopexit

.preheader:                                       ; preds = %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit", %52
  %38 = phi i8* [ %53, %52 ], [ %3, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit" ]
  %39 = phi i8* [ %55, %52 ], [ %0, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit" ]
  %40 = phi i8* [ %54, %52 ], [ %1, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit" ]
  %.elt2._value = bitcast i8* %40 to i64*
  %41 = load i64, i64* %.elt2._value, align 8
  %.elt3._value = bitcast i8* %38 to i64*
  %42 = load i64, i64* %.elt3._value, align 8
  %43 = icmp slt i64 %41, %42
  br i1 %43, label %44, label %48

44:                                               ; preds = %.preheader
  %45 = getelementptr inbounds i8, i8* %40, i64 16
  %46 = icmp ult i8* %39, %45
  %47 = icmp eq i8* %39, %40
  %or.cond58 = select i1 %47, i1 %46, i1 false
  br i1 %or.cond58, label %52, label %.sink.split

48:                                               ; preds = %.preheader
  %49 = getelementptr inbounds i8, i8* %38, i64 16
  %50 = icmp ult i8* %39, %49
  %51 = icmp eq i8* %39, %38
  %or.cond59 = select i1 %51, i1 %50, i1 false
  br i1 %or.cond59, label %52, label %.sink.split

.sink.split:                                      ; preds = %44, %48
  %.sink = phi i8* [ %38, %48 ], [ %40, %44 ]
  %.ph = phi i8* [ %49, %48 ], [ %38, %44 ]
  %.ph53 = phi i8* [ %40, %48 ], [ %45, %44 ]
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %39, i8* noundef nonnull align 8 dereferenceable(16) %.sink, i64 16, i1 false)
  br label %52

52:                                               ; preds = %48, %44, %.sink.split
  %53 = phi i8* [ %.ph, %.sink.split ], [ %38, %44 ], [ %49, %48 ]
  %54 = phi i8* [ %.ph53, %.sink.split ], [ %45, %44 ], [ %40, %48 ]
  %55 = getelementptr inbounds i8, i8* %39, i64 16
  %56 = icmp ult i8* %53, %23
  %57 = icmp ult i8* %54, %2
  %or.cond7 = select i1 %56, i1 %57, i1 false
  br i1 %or.cond7, label %.preheader, label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %52
  %.pre = bitcast i8* %53 to <{ %TSi, %TSi }>*
  br label %.loopexit

.loopexit:                                        ; preds = %85, %.loopexit.loopexit, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit36", %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit"
  %.pre-phi = phi <{ %TSi, %TSi }>* [ %.pre, %.loopexit.loopexit ], [ %33, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit36" ], [ %21, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit" ], [ %33, %85 ]
  %58 = phi i8* [ %23, %.loopexit.loopexit ], [ %35, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit36" ], [ %23, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit" ], [ %86, %85 ]
  %59 = phi i8* [ %53, %.loopexit.loopexit ], [ %3, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit36" ], [ %3, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit" ], [ %3, %85 ]
  %60 = phi i8* [ %55, %.loopexit.loopexit ], [ %1, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit36" ], [ %0, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit" ], [ %87, %85 ]
  %61 = ptrtoint i8* %58 to i64
  %62 = ptrtoint i8* %59 to i64
  %63 = sub i64 %61, %62
  %64 = sdiv i64 %63, 16
  %65 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %.pre-phi, i64 %64
  %66 = bitcast <{ %TSi, %TSi }>* %65 to i8*
  %67 = icmp ult i8* %60, %66
  %68 = icmp eq i8* %60, %59
  %or.cond5.i37 = select i1 %68, i1 %67, i1 false
  br i1 %or.cond5.i37, label %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit39", label %.sink.split.i38

.sink.split.i38:                                  ; preds = %.loopexit
  %69 = shl nuw nsw i64 %64, 4
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* align 8 %60, i8* align 8 %59, i64 %69, i1 false)
  br label %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit39"

"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit39": ; preds = %.loopexit, %.sink.split.i38
  ret i1 true

.preheader40:                                     ; preds = %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit36", %85
  %70 = phi i8* [ %73, %85 ], [ %2, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit36" ]
  %71 = phi i8* [ %86, %85 ], [ %35, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit36" ]
  %72 = phi i8* [ %87, %85 ], [ %1, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit36" ]
  %73 = getelementptr inbounds i8, i8* %70, i64 -16
  %74 = getelementptr inbounds i8, i8* %71, i64 -16
  %.elt._value = bitcast i8* %74 to i64*
  %75 = load i64, i64* %.elt._value, align 8
  %76 = getelementptr inbounds i8, i8* %72, i64 -16
  %.elt1._value = bitcast i8* %76 to i64*
  %77 = load i64, i64* %.elt1._value, align 8
  %78 = icmp slt i64 %75, %77
  br i1 %78, label %79, label %82

79:                                               ; preds = %.preheader40
  %80 = icmp ult i8* %73, %72
  %81 = icmp eq i8* %70, %72
  %or.cond60 = select i1 %81, i1 %80, i1 false
  br i1 %or.cond60, label %85, label %.sink.split54

82:                                               ; preds = %.preheader40
  %83 = icmp ult i8* %73, %71
  %84 = icmp eq i8* %70, %71
  %or.cond61 = select i1 %84, i1 %83, i1 false
  br i1 %or.cond61, label %85, label %.sink.split54

.sink.split54:                                    ; preds = %79, %82
  %.sink57 = phi i8* [ %74, %82 ], [ %76, %79 ]
  %.ph55 = phi i8* [ %74, %82 ], [ %71, %79 ]
  %.ph56 = phi i8* [ %72, %82 ], [ %76, %79 ]
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %73, i8* noundef nonnull align 8 dereferenceable(16) %.sink57, i64 16, i1 false)
  br label %85

85:                                               ; preds = %82, %79, %.sink.split54
  %86 = phi i8* [ %.ph55, %.sink.split54 ], [ %71, %79 ], [ %74, %82 ]
  %87 = phi i8* [ %.ph56, %.sink.split54 ], [ %76, %79 ], [ %72, %82 ]
  %88 = icmp ugt i8* %86, %3
  %89 = icmp ugt i8* %87, %0
  %or.cond15 = select i1 %88, i1 %89, i1 false
  br i1 %or.cond15, label %.preheader40, label %.loopexit
}

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

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

14:                                               ; preds = %11, %4, %entry
  %15 = phi i64 [ %1, %entry ], [ %6, %4 ], [ %13, %11 ]
  %._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_ContiguousArrayStorageCySnySiGGMD") #17
  %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) #6
  %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) #19
  %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
  br i1 %0, label %37, label %32

32:                                               ; preds = %29
  %33 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to i8*
  %34 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 1
  %35 = bitcast %Ts28__ContiguousArrayStorageBaseC* %34 to i8*
  %36 = shl nuw i64 %16, 4
  tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* nonnull align 8 %33, i8* nonnull align 8 %35, i64 %36, i1 false)
  br label %47

37:                                               ; preds = %29
  %38 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 1
  %39 = bitcast %Ts28__ContiguousArrayStorageBaseC* %38 to %TSnySiG*
  %40 = getelementptr inbounds %TSnySiG, %TSnySiG* %39, i64 %16
  %41 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to %TSnySiG*
  %42 = icmp ugt %TSnySiG* %40, %41
  %43 = icmp eq %Ts28__ContiguousArrayStorageBaseC* %30, %3
  %or.cond5.i = select i1 %43, i1 %42, i1 false
  br i1 %or.cond5.i, label %"$sSp14moveInitialize4from5countySpyxG_SitFSnySiG_Tgq5.exit", label %.sink.split.i

.sink.split.i:                                    ; preds = %37
  %44 = bitcast %Ts28__ContiguousArrayStorageBaseC* %38 to i8*
  %45 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to i8*
  %46 = shl nuw i64 %16, 4
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* nonnull align 8 %45, i8* nonnull align 8 %44, i64 %46, i1 false)
  br label %"$sSp14moveInitialize4from5countySpyxG_SitFSnySiG_Tgq5.exit"

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

47:                                               ; preds = %"$sSp14moveInitialize4from5countySpyxG_SitFSnySiG_Tgq5.exit", %32
  %48 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %48) #6
  ret %Ts28__ContiguousArrayStorageBaseC* %30

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

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

; Function Attrs: minsize noinline optsize
declare swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa28_allocateBufferUninitialized15minimumCapacitys016_ContiguousArrayB0VyxGSi_tFZ"(i64, %swift.type*) local_unnamed_addr #5

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc i1 @"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5"(%TSJ* noalias nocapture dereferenceable(16) %0, %TSJ* noalias nocapture dereferenceable(16) %1, %swift.refcounted* swiftself %2, %swift.error** noalias nocapture swifterror dereferenceable(8) %3) local_unnamed_addr #0 {
entry:
  %._str._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %0, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0
  %4 = load i64, i64* %._str._guts._object._countAndFlagsBits._value, align 8
  %._str._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %0, i64 0, i32 0, i32 0, i32 0, i32 1
  %5 = load %swift.bridge*, %swift.bridge** %._str._guts._object._object, align 8
  %._str1._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %1, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0
  %6 = load i64, i64* %._str1._guts._object._countAndFlagsBits._value, align 8
  %._str1._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %1, i64 0, i32 0, i32 0, i32 0, i32 1
  %7 = load %swift.bridge*, %swift.bridge** %._str1._guts._object._object, align 8
  %8 = tail call swiftcc i1 @"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_Tg5"(i64 %4, %swift.bridge* %5, i64 %6, %swift.bridge* %7, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %3) #21
  ret i1 %8
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare i8* @llvm.stacksave() #11

; Function Attrs: minsize optsize
define internal swiftcc i1 @"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5TA"(%TSJ* noalias nocapture dereferenceable(16) %0, %swift.refcounted* nocapture readonly swiftself %1, %swift.error** noalias nocapture swifterror dereferenceable(8) %2) #0 {
entry:
  %3 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %1, i64 1
  %4 = bitcast %swift.refcounted* %3 to %TSJ**
  %5 = load %TSJ*, %TSJ** %4, align 8
  %6 = tail call swiftcc i1 @"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5"(%TSJ* noalias nocapture nonnull dereferenceable(16) %0, %TSJ* noalias nocapture dereferenceable(16) %5, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %2)
  ret i1 %6
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore(i8*) #11

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

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

; Function Attrs: minsize nounwind optsize
define private swiftcc void @objectdestroy(%swift.refcounted* swiftself %0) #12 {
entry:
  %1 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %0, i64 1
  %2 = bitcast %swift.refcounted* %1 to %swift.refcounted**
  %toDestroy = load %swift.refcounted*, %swift.refcounted** %2, align 8
  tail call void @swift_release(%swift.refcounted* %toDestroy) #6
  tail call void @swift_deallocObject(%swift.refcounted* %0, i64 24, i64 7) #6
  ret void
}

; Function Attrs: nounwind
declare void @swift_deallocObject(%swift.refcounted*, i64, i64) local_unnamed_addr #6

; Function Attrs: minsize nounwind optsize
define private swiftcc void @objectdestroy.2(%swift.refcounted* swiftself %0) #12 {
entry:
  tail call void @swift_deallocObject(%swift.refcounted* %0, i64 24, i64 7) #6
  ret void
}

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare %swift.refcounted* @swift_retain_n(%swift.refcounted* returned, i32) #6

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

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