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_O3.ll'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/Swift/Source_1206/llvm_O3.ll"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%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 }
%T7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV = 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 }>
%Ts6UInt64V = type <{ i64 }>
%swift.error = type opaque
%swift.bridge = type opaque
%Ts5UInt8V = type <{ i8 }>
%TSrySi_SitG = type <{ %TSpySi_SitGSg, %TSi }>
%TSpySi_SitGSg = type <{ [8 x i8] }>
%swift.metadata_response = type { %swift.type*, i64 }
%swift.opaque = type opaque
%TSJ = type <{ %TSS }>
%TSS = type <{ %Ts11_StringGutsV }>
%Ts11_StringGutsV = type <{ %Ts13_StringObjectV }>
%Ts13_StringObjectV = type <{ %Ts6UInt64V, %swift.bridge* }>
%Ts15ContiguousArrayV = type <{ %Ts22_ContiguousArrayBufferV }>
%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"

define protected i32 @main(i32 %0, i8** nocapture readnone %1) #0 {
entry:
  tail call swiftcc void @"$s7llvm_O34mainyyF"()
  ret i32 0
}

define internal swiftcc i64 @"$s7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV7nextIntSiyF"(%T7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV* 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_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV4peekSSyFTf4n_g"(%T7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV* 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_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV, %T7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV* %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 %166, label %8, !prof !6

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 %167, label %18, !prof !6

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

21:                                               ; preds = %18
  br i1 %12, label %22, label %25

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

22:                                               ; preds = %21
  %23 = and i64 %3, 1152921504606846976
  %24 = icmp eq i64 %23, 0
  br i1 %24, label %34, label %38, !prof !6

25:                                               ; preds = %21
  %26 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %1 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %26)
  %27 = 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 %27, i64* %.elt2._value, align 8
  %28 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %1 to %Ts5UInt8V*
  %29 = trunc i64 %3 to i8
  %30 = lshr i64 %3, 8
  %31 = trunc i64 %30 to i8
  %32 = lshr i64 %3, 16
  %33 = trunc i64 %32 to i8
  switch i8 %29, label %95 [
    i8 45, label %60
    i8 43, label %97
  ]

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

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

.thread130:                                       ; preds = %38, %34
  %41 = phi i64 [ %40, %38 ], [ %36, %34 ]
  %42 = phi i64 [ %15, %38 ], [ %37, %34 ]
  %43 = call swiftcc { i64, i8 } @"$ss17FixedWidthIntegerPsE_5radixxSgqd___SitcSyRd__lufcADSRys5UInt8VGXEfU_AGSiADs5Error_psAARzSSRsd__r__lIetyyrzo_Tpq5Si_Tg5Tm"(i64 %41, i64 %42, i64 10, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture swifterror dereferenceable(8) %swifterror)
  %44 = load %swift.error*, %swift.error** %swifterror, align 8
  %.not77 = icmp eq %swift.error* %44, null
  tail call void @llvm.assume(i1 %.not77)
  %45 = extractvalue { i64, i8 } %43, 1
  %46 = and i8 %45, 1
  %47 = icmp ne i8 %46, 0
  %48 = extractvalue { i64, i8 } %43, 0
  %.sroa.6.0.sroa_cast124 = bitcast i8* %.sroa.6 to i1*
  store i1 %47, 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 %57

.thread133:                                       ; preds = %60, %97, %95
  %.sroa.6.0.sroa_cast136 = bitcast i8* %.sroa.6 to i1*
  store i1 true, i1* %.sroa.6.0.sroa_cast136, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %26)
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre137 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %57

.loopexit99.thread:                               ; preds = %134, %140, %131, %137, %143, %98, %105, %102, %108, %61, %69, %65, %72
  %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8..ph = phi i1 [ true, %134 ], [ true, %140 ], [ false, %131 ], [ false, %137 ], [ false, %143 ], [ true, %98 ], [ true, %105 ], [ false, %102 ], [ false, %108 ], [ true, %61 ], [ true, %69 ], [ false, %65 ], [ false, %72 ]
  %.sroa.0.0.ph = phi i64 [ 0, %134 ], [ 0, %140 ], [ 0, %131 ], [ %138, %137 ], [ %146, %143 ], [ 0, %98 ], [ 0, %105 ], [ %103, %102 ], [ %111, %108 ], [ 0, %61 ], [ 0, %69 ], [ %67, %65 ], [ %75, %72 ]
  %.sroa.6.0.sroa_cast140 = 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_cast140, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %26)
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre141 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %57

.loopexit99.loopexit.split.loop.exit:             ; preds = %162
  %49 = extractvalue { i64, i1 } %160, 0
  br label %.loopexit99

.loopexit99.loopexit144.split.loop.exit:          ; preds = %91
  %50 = extractvalue { i64, i1 } %89, 0
  br label %.loopexit99

.loopexit99.loopexit147.split.loop.exit:          ; preds = %127
  %51 = extractvalue { i64, i1 } %125, 0
  br label %.loopexit99

.loopexit99:                                      ; preds = %.preheader100, %119, %122, %.preheader97, %83, %86, %.preheader, %154, %157, %.loopexit99.loopexit147.split.loop.exit, %.loopexit99.loopexit144.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.loopexit144.split.loop.exit ], [ false, %.loopexit99.loopexit147.split.loop.exit ], [ true, %157 ], [ true, %154 ], [ true, %.preheader ], [ true, %86 ], [ true, %83 ], [ true, %.preheader97 ], [ true, %122 ], [ true, %119 ], [ true, %.preheader100 ]
  %.sroa.0.0 = phi i64 [ %49, %.loopexit99.loopexit.split.loop.exit ], [ %50, %.loopexit99.loopexit144.split.loop.exit ], [ %51, %.loopexit99.loopexit147.split.loop.exit ], [ 0, %157 ], [ 0, %154 ], [ 0, %.preheader ], [ 0, %86 ], [ 0, %83 ], [ 0, %.preheader97 ], [ 0, %122 ], [ 0, %119 ], [ 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 %26)
  %.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 %20, label %57, label %52

52:                                               ; preds = %.thread, %.loopexit99
  %53 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %4) #6
  %54 = 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
  %55 = extractvalue { i64, i8 } %54, 0
  %56 = extractvalue { i64, i8 } %54, 1
  br label %57

57:                                               ; preds = %.loopexit99.thread, %.thread133, %.thread130, %.loopexit99, %52
  %58 = phi i64 [ %55, %52 ], [ %.sroa.0.0, %.loopexit99 ], [ %48, %.thread130 ], [ 0, %.thread133 ], [ %.sroa.0.0.ph, %.loopexit99.thread ]
  %.in.in = phi i8 [ %56, %52 ], [ %.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..pre132, %.thread130 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre137, %.thread133 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre141, %.loopexit99.thread ]
  %.in = and i8 %.in.in, 1
  %.not = icmp eq i8 %.in, 0
  br i1 %.not, label %59, label %168

59:                                               ; preds = %57
  ret i64 %58

60:                                               ; preds = %25
  switch i64 %14, label %61 [
    i64 0, label %170
    i64 1, label %.thread133
  ], !prof !8

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

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

69:                                               ; preds = %65
  %70 = add i8 %33, -48
  %71 = icmp ult i8 %70, 10
  br i1 %71, label %72, label %.loopexit99.thread, !prof !9

72:                                               ; preds = %69
  %73 = mul nsw i64 %66, -10
  %74 = zext i8 %70 to i64
  %75 = sub nsw i64 %73, %74
  %76 = icmp eq i64 %14, 3
  br i1 %76, label %.loopexit99.thread, label %.preheader97.preheader

.preheader97.preheader:                           ; preds = %72
  %77 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %28, i64 3, i32 0
  br label %.preheader97

.preheader97:                                     ; preds = %.preheader97.preheader, %91
  %78 = phi i8* [ %93, %91 ], [ %77, %.preheader97.preheader ]
  %79 = phi i64 [ %92, %91 ], [ %75, %.preheader97.preheader ]
  %80 = load i8, i8* %78, align 1
  %81 = add i8 %80, -48
  %82 = icmp ult i8 %81, 10
  br i1 %82, label %83, label %.loopexit99, !prof !9

83:                                               ; preds = %.preheader97
  %84 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %79, i64 10)
  %85 = extractvalue { i64, i1 } %84, 1
  br i1 %85, label %.loopexit99, label %86

86:                                               ; preds = %83
  %87 = extractvalue { i64, i1 } %84, 0
  %88 = zext i8 %81 to i64
  %89 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %87, i64 %88)
  %90 = extractvalue { i64, i1 } %89, 1
  br i1 %90, label %.loopexit99, label %91, !prof !6

91:                                               ; preds = %86
  %92 = extractvalue { i64, i1 } %89, 0
  %93 = getelementptr inbounds i8, i8* %78, i64 1
  %94 = icmp eq i8* %93, %62
  br i1 %94, label %.loopexit99.loopexit144.split.loop.exit, label %.preheader97

95:                                               ; preds = %25
  %96 = icmp eq i64 %14, 0
  br i1 %96, label %.thread133, label %131, !prof !6

97:                                               ; preds = %25
  switch i64 %14, label %98 [
    i64 0, label %169
    i64 1, label %.thread133
  ], !prof !8

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

102:                                              ; preds = %98
  %103 = zext i8 %100 to i64
  %104 = icmp eq i64 %14, 2
  br i1 %104, label %.loopexit99.thread, label %105

105:                                              ; preds = %102
  %106 = add i8 %33, -48
  %107 = icmp ult i8 %106, 10
  br i1 %107, label %108, label %.loopexit99.thread, !prof !9

108:                                              ; preds = %105
  %109 = mul nuw nsw i64 %103, 10
  %110 = zext i8 %106 to i64
  %111 = add nuw nsw i64 %109, %110
  %112 = icmp eq i64 %14, 3
  br i1 %112, label %.loopexit99.thread, label %.preheader100.preheader

.preheader100.preheader:                          ; preds = %108
  %113 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %28, i64 3, i32 0
  br label %.preheader100

.preheader100:                                    ; preds = %.preheader100.preheader, %127
  %114 = phi i8* [ %129, %127 ], [ %113, %.preheader100.preheader ]
  %115 = phi i64 [ %128, %127 ], [ %111, %.preheader100.preheader ]
  %116 = load i8, i8* %114, align 1
  %117 = add i8 %116, -48
  %118 = icmp ult i8 %117, 10
  br i1 %118, label %119, label %.loopexit99, !prof !9

119:                                              ; preds = %.preheader100
  %120 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %115, i64 10)
  %121 = extractvalue { i64, i1 } %120, 1
  br i1 %121, label %.loopexit99, label %122

122:                                              ; preds = %119
  %123 = extractvalue { i64, i1 } %120, 0
  %124 = zext i8 %117 to i64
  %125 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %123, i64 %124)
  %126 = extractvalue { i64, i1 } %125, 1
  br i1 %126, label %.loopexit99, label %127, !prof !6

127:                                              ; preds = %122
  %128 = extractvalue { i64, i1 } %125, 0
  %129 = getelementptr inbounds i8, i8* %114, i64 1
  %130 = icmp eq i8* %129, %99
  br i1 %130, label %.loopexit99.loopexit147.split.loop.exit, label %.preheader100

131:                                              ; preds = %95
  %132 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %28, i64 %14, i32 0
  %133 = icmp eq i8* %132, %26
  br i1 %133, label %.loopexit99.thread, label %134

134:                                              ; preds = %131
  %135 = add i8 %29, -48
  %136 = icmp ult i8 %135, 10
  br i1 %136, label %137, label %.loopexit99.thread, !prof !9

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

140:                                              ; preds = %137
  %141 = add i8 %31, -48
  %142 = icmp ult i8 %141, 10
  br i1 %142, label %143, label %.loopexit99.thread, !prof !9

143:                                              ; preds = %140
  %144 = mul nuw nsw i64 %138, 10
  %145 = zext i8 %141 to i64
  %146 = add nuw nsw i64 %144, %145
  %147 = icmp eq i64 %14, 2
  br i1 %147, label %.loopexit99.thread, label %.preheader.preheader

.preheader.preheader:                             ; preds = %143
  %148 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %28, i64 2, i32 0
  br label %.preheader

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

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

157:                                              ; preds = %154
  %158 = extractvalue { i64, i1 } %155, 0
  %159 = zext i8 %152 to i64
  %160 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %158, i64 %159)
  %161 = extractvalue { i64, i1 } %160, 1
  br i1 %161, label %.loopexit99, label %162, !prof !6

162:                                              ; preds = %157
  %163 = extractvalue { i64, i1 } %160, 0
  %164 = getelementptr inbounds i8, i8* %149, i64 1
  %165 = icmp eq i8* %164, %132
  br i1 %165, label %.loopexit99.loopexit.split.loop.exit, label %.preheader

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

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

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

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

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

define hidden swiftcc void @"$s7llvm_O34mainyyF"() local_unnamed_addr #0 {
entry:
  %0 = alloca %T7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV, 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_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV* %0 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %3)
  %.elements._buffer._storage = getelementptr inbounds %T7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV, %T7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV* %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_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV, %T7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV* %0, i64 0, i32 1, i32 0
  store i64 0, i64* %.index._value, align 8
  %4 = call swiftcc i64 @"$s7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV7nextIntSiyF"(%T7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV* nocapture nonnull swiftself dereferenceable(16) %0)
  %5 = icmp slt i64 %4, 0
  br i1 %5, label %318, label %6, !prof !6

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

.preheader127:                                    ; 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_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV7nextIntSiyF"(%T7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV* 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 = %.preheader127
  %._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 !10
  %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 = %.preheader127, %15
  %20 = phi %Ts28__ContiguousArrayStorageBaseC* [ %18, %15 ], [ %11, %.preheader127 ]
  %._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 !10
  %._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_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV7nextIntSiyF"(%T7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV* 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 !10
  %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 !10
  %._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
  %.not105 = icmp ugt i64 %42, %40
  br i1 %.not105, 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_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV7nextIntSiyF"(%T7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV* 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 %319, label %54, !prof !6

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 !10
  %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 !10
  %._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
  %.not106 = icmp ugt i64 %65, %63
  br i1 %.not106, 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 %.loopexit128, label %.preheader127

.loopexit128:                                     ; 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, 0
  %80 = extractvalue { i64, i1 } %78, 1
  br i1 %80, label %320, label %81, !prof !6

81:                                               ; preds = %.loopexit128
  %82 = icmp slt i64 %79, 0
  br i1 %82, label %321, label %83, !prof !6

83:                                               ; preds = %81
  %.not107 = icmp eq i64 %79, 0
  br i1 %.not107, label %.thread, label %84

84:                                               ; preds = %83
  %85 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa28_allocateBufferUninitialized15minimumCapacitys016_ContiguousArrayB0VyxGSi_tFZ"(i64 %79, %swift.type* nonnull @"$sSiN")
  %._storage76.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %85, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %79, i64* %._storage76.count._value, align 8
  %86 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %85, i64 1
  %87 = bitcast %Ts28__ContiguousArrayStorageBaseC* %86 to i8*
  %min.iters.check = icmp ult i64 %79, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %84
  %n.vec = and i64 %79, -4
  %88 = shl i64 %n.vec, 3
  %ind.end = getelementptr i8, i8* %87, i64 %88
  %89 = add i64 %79, -4
  %90 = lshr i64 %89, 2
  %91 = add nuw nsw i64 %90, 1
  %xtraiter = and i64 %91, 3
  %92 = icmp ult i64 %89, 12
  br i1 %92, label %middle.block.unr-lcssa, label %vector.ph.new

vector.ph.new:                                    ; preds = %vector.ph
  %unroll_iter = and i64 %91, -4
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph.new
  %index = phi i64 [ 0, %vector.ph.new ], [ %index.next.3, %vector.body ]
  %niter = phi i64 [ 0, %vector.ph.new ], [ %niter.next.3, %vector.body ]
  %93 = shl i64 %index, 3
  %next.gep = getelementptr i8, i8* %87, i64 %93
  %94 = bitcast i8* %next.gep to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %94, align 8
  %95 = getelementptr i8, i8* %next.gep, i64 16
  %96 = bitcast i8* %95 to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %96, align 8
  %index.next = shl i64 %index, 3
  %97 = or i64 %index.next, 32
  %next.gep.1 = getelementptr i8, i8* %87, i64 %97
  %98 = bitcast i8* %next.gep.1 to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %98, align 8
  %99 = getelementptr i8, i8* %next.gep.1, i64 16
  %100 = bitcast i8* %99 to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %100, align 8
  %index.next.1 = shl i64 %index, 3
  %101 = or i64 %index.next.1, 64
  %next.gep.2 = getelementptr i8, i8* %87, i64 %101
  %102 = bitcast i8* %next.gep.2 to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %102, align 8
  %103 = getelementptr i8, i8* %next.gep.2, i64 16
  %104 = bitcast i8* %103 to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %104, align 8
  %index.next.2 = shl i64 %index, 3
  %105 = or i64 %index.next.2, 96
  %next.gep.3 = getelementptr i8, i8* %87, i64 %105
  %106 = bitcast i8* %next.gep.3 to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %106, align 8
  %107 = getelementptr i8, i8* %next.gep.3, i64 16
  %108 = bitcast i8* %107 to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %108, align 8
  %index.next.3 = add nuw i64 %index, 16
  %niter.next.3 = add nuw i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %middle.block.unr-lcssa, label %vector.body, !llvm.loop !11

middle.block.unr-lcssa:                           ; preds = %vector.body, %vector.ph
  %index.unr = phi i64 [ 0, %vector.ph ], [ %index.next.3, %vector.body ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %middle.block, label %vector.body.epil

vector.body.epil:                                 ; preds = %middle.block.unr-lcssa, %vector.body.epil
  %index.epil = phi i64 [ %index.next.epil, %vector.body.epil ], [ %index.unr, %middle.block.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %vector.body.epil ], [ 0, %middle.block.unr-lcssa ]
  %109 = shl i64 %index.epil, 3
  %next.gep.epil = getelementptr i8, i8* %87, i64 %109
  %110 = bitcast i8* %next.gep.epil to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %110, align 8
  %111 = getelementptr i8, i8* %next.gep.epil, i64 16
  %112 = bitcast i8* %111 to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %112, align 8
  %index.next.epil = add nuw i64 %index.epil, 4
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %middle.block, label %vector.body.epil, !llvm.loop !13

middle.block:                                     ; preds = %vector.body.epil, %middle.block.unr-lcssa
  %cmp.n = icmp eq i64 %79, %n.vec
  br i1 %cmp.n, label %.thread, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %84, %middle.block
  %.ph = phi i8* [ %87, %84 ], [ %ind.end, %middle.block ]
  %.ph158 = phi i64 [ 0, %84 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

.thread:                                          ; preds = %scalar.ph, %middle.block, %83
  %113 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %83 ], [ %85, %middle.block ], [ %85, %scalar.ph ]
  %114 = icmp slt i64 %4, 64
  %115 = and i64 %4, 63
  %116 = shl nuw i64 1, %115
  %117 = select i1 %114, i64 %116, i64 0, !prof !9
  %118 = icmp slt i64 %117, 0
  br i1 %118, label %322, label %124, !prof !6

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %119 = phi i8* [ %123, %scalar.ph ], [ %.ph, %scalar.ph.preheader ]
  %120 = phi i64 [ %121, %scalar.ph ], [ %.ph158, %scalar.ph.preheader ]
  %121 = add nuw i64 %120, 1
  %._value14 = bitcast i8* %119 to i64*
  store i64 9223372036854775807, i64* %._value14, align 8
  %122 = icmp eq i64 %121, %79
  %123 = getelementptr inbounds i8, i8* %119, i64 8
  br i1 %122, label %.thread, label %scalar.ph, !llvm.loop !15

124:                                              ; preds = %.thread
  br i1 %114, label %125, label %.loopexit126

125:                                              ; preds = %124
  %126 = bitcast %TSa* %1 to i8*
  %._buffer._storage = getelementptr inbounds %TSa, %TSa* %1, i64 0, i32 0, i32 0
  %127 = bitcast %TSa* %2 to i8*
  %._buffer15._storage = getelementptr inbounds %TSa, %TSa* %2, i64 0, i32 0, i32 0
  %._storage62.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %77, i64 0, i32 1, i32 0, i32 0, i32 0
  %128 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %77, i64 1
  %tailaddr63 = bitcast %Ts28__ContiguousArrayStorageBaseC* %128 to %TSi*
  %._storage65.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %75, i64 0, i32 1, i32 0, i32 0, i32 0
  %129 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %75, i64 1
  %tailaddr66 = bitcast %Ts28__ContiguousArrayStorageBaseC* %129 to %TSi*
  %._storage16.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %76, i64 0, i32 1, i32 0, i32 0, i32 0
  %130 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %76, i64 1
  %tailaddr17 = bitcast %Ts28__ContiguousArrayStorageBaseC* %130 to %TSi*
  %._storage41.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %113, i64 0, i32 1, i32 0, i32 0, i32 0
  %131 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %113, i64 1
  %tailaddr42 = bitcast %Ts28__ContiguousArrayStorageBaseC* %131 to %TSi*
  br label %132

132:                                              ; preds = %283, %125
  %133 = phi i64 [ 0, %125 ], [ %135, %283 ]
  %exitcond.not = icmp eq i64 %133, %117
  br i1 %exitcond.not, label %323, label %134, !prof !6

134:                                              ; preds = %132
  %135 = add nuw i64 %133, 1
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %126)
  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 %127)
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %._buffer15._storage, align 8
  br i1 %7, label %.loopexit125, label %.preheader124

.preheader124:                                    ; preds = %134, %168
  %136 = phi i64 [ %169, %168 ], [ 0, %134 ]
  %137 = icmp ult i64 %136, 64
  br i1 %137, label %138, label %171, !prof !17

138:                                              ; preds = %.preheader124
  %139 = shl nuw i64 1, %136
  %140 = and i64 %139, %133
  %141 = icmp eq i64 %140, 0
  br i1 %141, label %171, label %142

142:                                              ; preds = %138
  %143 = load i64, i64* %._storage62.count._value, align 8, !range !10
  %.not118 = icmp ult i64 %136, %143
  br i1 %.not118, label %144, label %343, !prof !7

144:                                              ; preds = %142
  %._value64 = getelementptr inbounds %TSi, %TSi* %tailaddr63, i64 %136, i32 0
  %145 = load i64, i64* %._value64, align 8
  %146 = load i64, i64* %._storage65.count._value, align 8, !range !10
  %.not119 = icmp ult i64 %136, %146
  br i1 %.not119, label %147, label %344, !prof !7

147:                                              ; preds = %144
  %._value67 = getelementptr inbounds %TSi, %TSi* %tailaddr66, i64 %136, i32 0
  %148 = load i64, i64* %._value67, align 8
  %149 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %150 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %149, i64 0, i32 0
  %151 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %150) #16
  br i1 %151, label %156, label %152

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

156:                                              ; preds = %147, %152
  %157 = phi %Ts28__ContiguousArrayStorageBaseC* [ %155, %152 ], [ %149, %147 ]
  %._storage70.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %157, i64 0, i32 1, i32 0, i32 0, i32 0
  %158 = load i64, i64* %._storage70.count._value, align 8, !range !10
  %._storage70._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %157, i64 0, i32 1, i32 0, i32 1, i32 0
  %159 = load i64, i64* %._storage70._capacityAndFlags._value, align 8
  %160 = lshr i64 %159, 1
  %161 = add nuw nsw i64 %158, 1
  %.not120 = icmp ugt i64 %160, %158
  br i1 %.not120, label %165, label %162, !prof !7

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

165:                                              ; preds = %156, %162
  %166 = phi %Ts28__ContiguousArrayStorageBaseC* [ %164, %162 ], [ %157, %156 ]
  %._storage71.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %166, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %161, i64* %._storage71.count._value, align 8
  %167 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %166, i64 1
  %tailaddr72 = bitcast %Ts28__ContiguousArrayStorageBaseC* %167 to <{ %TSi, %TSi }>*
  %.elt73._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr72, i64 %158, i32 0, i32 0
  store i64 %145, i64* %.elt73._value, align 8
  %.elt74._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr72, i64 %158, i32 1, i32 0
  store i64 %148, i64* %.elt74._value, align 8
  store %Ts28__ContiguousArrayStorageBaseC* %166, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %168

168:                                              ; preds = %165, %194
  %169 = add nuw nsw i64 %136, 1
  %170 = icmp eq i64 %169, %4
  br i1 %170, label %.loopexit125, label %.preheader124

171:                                              ; preds = %.preheader124, %138
  %172 = load i64, i64* %._storage16.count._value, align 8, !range !10
  %.not108 = icmp ult i64 %136, %172
  br i1 %.not108, label %173, label %324, !prof !7

173:                                              ; preds = %171
  %._value18 = getelementptr inbounds %TSi, %TSi* %tailaddr17, i64 %136, i32 0
  %174 = load i64, i64* %._value18, align 8
  %175 = load i64, i64* %._storage65.count._value, align 8, !range !10
  %.not109 = icmp ult i64 %136, %175
  br i1 %.not109, label %176, label %325, !prof !7

176:                                              ; preds = %173
  %._value21 = getelementptr inbounds %TSi, %TSi* %tailaddr66, i64 %136, i32 0
  %177 = load i64, i64* %._value21, align 8
  %178 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer15._storage, align 8
  %179 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %178, i64 0, i32 0
  %180 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %179) #16
  br i1 %180, label %185, label %181

181:                                              ; preds = %176
  %._storage23.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %178, i64 0, i32 1, i32 0, i32 0, i32 0
  %182 = load i64, i64* %._storage23.count._value, align 8, !range !10
  %183 = add nuw nsw i64 %182, 1
  %184 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSi_Sit_Tg5"(i1 false, i64 %183, i1 true, %Ts28__ContiguousArrayStorageBaseC* %178)
  br label %185

185:                                              ; preds = %176, %181
  %186 = phi %Ts28__ContiguousArrayStorageBaseC* [ %184, %181 ], [ %178, %176 ]
  %._storage24.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %186, i64 0, i32 1, i32 0, i32 0, i32 0
  %187 = load i64, i64* %._storage24.count._value, align 8, !range !10
  %._storage24._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %186, i64 0, i32 1, i32 0, i32 1, i32 0
  %188 = load i64, i64* %._storage24._capacityAndFlags._value, align 8
  %189 = lshr i64 %188, 1
  %190 = add nuw nsw i64 %187, 1
  %.not110 = icmp ugt i64 %189, %187
  br i1 %.not110, label %194, label %191, !prof !7

191:                                              ; preds = %185
  %192 = icmp ugt i64 %188, 1
  %193 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSi_Sit_Tg5"(i1 %192, i64 %190, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %186)
  br label %194

194:                                              ; preds = %185, %191
  %195 = phi %Ts28__ContiguousArrayStorageBaseC* [ %193, %191 ], [ %186, %185 ]
  %._storage25.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %195, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %190, i64* %._storage25.count._value, align 8
  %196 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %195, i64 1
  %tailaddr26 = bitcast %Ts28__ContiguousArrayStorageBaseC* %196 to <{ %TSi, %TSi }>*
  %.elt._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr26, i64 %187, i32 0, i32 0
  store i64 %174, i64* %.elt._value, align 8
  %.elt27._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr26, i64 %187, i32 1, i32 0
  store i64 %177, i64* %.elt27._value, align 8
  store %Ts28__ContiguousArrayStorageBaseC* %195, %Ts28__ContiguousArrayStorageBaseC** %._buffer15._storage, align 8
  br label %168

.loopexit125:                                     ; preds = %168, %134
  call swiftcc void @"$sSMsSkRzrlE4sort2byySb7ElementSTQz_ADtKXE_tKFSaySi_SitG_Tg5027$s7llvm_O34mainyyFSbSi_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_O34mainyyFSbSi_Sit_G10_SittXEfU_Tf1cn_nTm"(%TSa* nocapture dereferenceable(8) %2, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture swifterror dereferenceable(8) %swifterror)
  %197 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %198 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %197, i64 0, i32 0
  %199 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %198) #16
  %200 = tail call swiftcc { i64, %Ts28__ContiguousArrayStorageBaseC* } @"$s7llvm_O34mainyyF5solveL_yAA7Array2D33_73E641EE209B6240D9CA5E4E565FCA33LLVySiGSaySi_SitGF"(%Ts28__ContiguousArrayStorageBaseC* %197, i64 %4)
  %newret144 = extractvalue { i64, %Ts28__ContiguousArrayStorageBaseC* } %200, 0
  %newret146 = extractvalue { i64, %Ts28__ContiguousArrayStorageBaseC* } %200, 1
  tail call void @swift_release(%swift.refcounted* %198) #6
  %201 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer15._storage, align 8
  %202 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %201, i64 0, i32 0
  %203 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %202) #16
  %204 = tail call swiftcc { i64, %Ts28__ContiguousArrayStorageBaseC* } @"$s7llvm_O34mainyyF5solveL_yAA7Array2D33_73E641EE209B6240D9CA5E4E565FCA33LLVySiGSaySi_SitGF"(%Ts28__ContiguousArrayStorageBaseC* %201, i64 %4)
  %newret = extractvalue { i64, %Ts28__ContiguousArrayStorageBaseC* } %204, 0
  %newret142 = extractvalue { i64, %Ts28__ContiguousArrayStorageBaseC* } %204, 1
  tail call void @swift_release(%swift.refcounted* %202) #6
  %._storage32.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %197, i64 0, i32 1, i32 0, i32 0, i32 0
  %205 = load i64, i64* %._storage32.count._value, align 8, !range !10
  %206 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %205, i64 %newret144)
  %207 = extractvalue { i64, i1 } %206, 0
  %208 = extractvalue { i64, i1 } %206, 1
  br i1 %208, label %326, label %209, !prof !6

209:                                              ; preds = %.loopexit125
  %210 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %newret146, i64 1
  %tailaddr33 = bitcast %Ts28__ContiguousArrayStorageBaseC* %210 to %TSi*
  %._storage34.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %newret146, i64 0, i32 1, i32 0, i32 0, i32 0
  %._storage37.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %201, i64 0, i32 1, i32 0, i32 0, i32 0
  %211 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %newret142, i64 1
  %tailaddr38 = bitcast %Ts28__ContiguousArrayStorageBaseC* %211 to %TSi*
  %._storage39.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %newret142, i64 0, i32 1, i32 0, i32 0, i32 0
  %212 = icmp slt i64 %207, 0
  br i1 %212, label %._crit_edge, label %.lr.ph152, !prof !6

.loopexit123:                                     ; preds = %230, %221
  %213 = icmp eq i64 %219, %4
  br i1 %213, label %283, label %214

214:                                              ; preds = %.loopexit123
  %215 = add nuw nsw i64 %219, 1
  %216 = add nuw nsw i64 %207, %215
  %217 = icmp slt i64 %216, 0
  br i1 %217, label %._crit_edge, label %.lr.ph152, !prof !6

.lr.ph152:                                        ; preds = %209, %214
  %218 = phi i64 [ %216, %214 ], [ %207, %209 ]
  %219 = phi i64 [ %215, %214 ], [ 0, %209 ]
  %220 = load i64, i64* %._storage34.count._value, align 8, !range !10
  %.not111 = icmp ult i64 %218, %220
  br i1 %.not111, label %221, label %327, !prof !7

221:                                              ; preds = %.lr.ph152
  %._value35 = getelementptr inbounds %TSi, %TSi* %tailaddr33, i64 %218, i32 0
  %222 = load i64, i64* %._value35, align 8
  %223 = icmp eq i64 %222, 9223372036854775807
  br i1 %223, label %.loopexit123, label %224

224:                                              ; preds = %221
  %225 = load i64, i64* %._storage37.count._value, align 8, !range !10
  %226 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %225, i64 %newret)
  %227 = extractvalue { i64, i1 } %226, 0
  %228 = extractvalue { i64, i1 } %226, 1
  br i1 %228, label %328, label %.preheader133.preheader, !prof !6

.preheader133.preheader:                          ; preds = %224
  %229 = icmp slt i64 %227, 0
  br i1 %229, label %.preheader133.preheader._crit_edge, label %.lr.ph, !prof !6

230:                                              ; preds = %238, %245, %280
  %231 = icmp eq i64 %236, %4
  br i1 %231, label %.loopexit123, label %.preheader133

.preheader133:                                    ; preds = %230
  %232 = add nuw nsw i64 %236, 1
  %233 = add nuw nsw i64 %227, %232
  %234 = icmp slt i64 %233, 0
  br i1 %234, label %.preheader133.preheader._crit_edge, label %.lr.ph, !prof !6

.lr.ph:                                           ; preds = %.preheader133.preheader, %.preheader133
  %235 = phi i64 [ %233, %.preheader133 ], [ %227, %.preheader133.preheader ]
  %236 = phi i64 [ %232, %.preheader133 ], [ 0, %.preheader133.preheader ]
  %237 = load i64, i64* %._storage39.count._value, align 8, !range !10
  %.not112 = icmp ult i64 %235, %237
  br i1 %.not112, label %238, label %329, !prof !7

238:                                              ; preds = %.lr.ph
  %._value40 = getelementptr inbounds %TSi, %TSi* %tailaddr38, i64 %235, i32 0
  %239 = load i64, i64* %._value40, align 8
  %240 = icmp eq i64 %239, 9223372036854775807
  br i1 %240, label %230, label %241

241:                                              ; preds = %238
  %242 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %219, i64 %236)
  %243 = extractvalue { i64, i1 } %242, 0
  %244 = extractvalue { i64, i1 } %242, 1
  br i1 %244, label %330, label %245, !prof !6

245:                                              ; preds = %241
  %246 = icmp slt i64 %4, %243
  br i1 %246, label %230, label %247

247:                                              ; preds = %245
  %248 = icmp slt i64 %243, 0
  br i1 %248, label %331, label %249, !prof !6

249:                                              ; preds = %247
  %250 = load i64, i64* %._storage41.count._value, align 8, !range !10
  %.not113 = icmp ult i64 %243, %250
  br i1 %.not113, label %251, label %332, !prof !7

251:                                              ; preds = %249
  %._value43 = getelementptr inbounds %TSi, %TSi* %tailaddr42, i64 %243, i32 0
  %252 = load i64, i64* %._value43, align 8
  %253 = load i64, i64* %._storage32.count._value, align 8, !range !10
  %254 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %253, i64 %newret144)
  %255 = extractvalue { i64, i1 } %254, 1
  br i1 %255, label %333, label %256, !prof !6

256:                                              ; preds = %251
  %257 = extractvalue { i64, i1 } %254, 0
  %258 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %257, i64 %219)
  %259 = extractvalue { i64, i1 } %258, 0
  %260 = extractvalue { i64, i1 } %258, 1
  br i1 %260, label %334, label %261, !prof !6

261:                                              ; preds = %256
  %262 = icmp slt i64 %259, 0
  br i1 %262, label %335, label %263, !prof !6

263:                                              ; preds = %261
  %264 = load i64, i64* %._storage34.count._value, align 8, !range !10
  %.not114 = icmp ult i64 %259, %264
  br i1 %.not114, label %265, label %336, !prof !7

265:                                              ; preds = %263
  %._value45 = getelementptr inbounds %TSi, %TSi* %tailaddr33, i64 %259, i32 0
  %266 = load i64, i64* %._value45, align 8
  %267 = load i64, i64* %._storage37.count._value, align 8, !range !10
  %268 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %267, i64 %newret)
  %269 = extractvalue { i64, i1 } %268, 1
  br i1 %269, label %337, label %270, !prof !6

270:                                              ; preds = %265
  %271 = extractvalue { i64, i1 } %268, 0
  %272 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %271, i64 %236)
  %273 = extractvalue { i64, i1 } %272, 0
  %274 = extractvalue { i64, i1 } %272, 1
  br i1 %274, label %338, label %275, !prof !6

275:                                              ; preds = %270
  %.not115 = icmp ult i64 %273, %237
  br i1 %.not115, label %276, label %339, !prof !7

276:                                              ; preds = %275
  %._value47 = getelementptr inbounds %TSi, %TSi* %tailaddr38, i64 %273, i32 0
  %277 = load i64, i64* %._value47, align 8
  %278 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %266, i64 %277)
  %279 = extractvalue { i64, i1 } %278, 1
  br i1 %279, label %340, label %280, !prof !6

280:                                              ; preds = %276
  %281 = extractvalue { i64, i1 } %278, 0
  %282 = tail call i64 @llvm.smin.i64(i64 %281, i64 %252)
  store i64 %282, i64* %._value43, align 8
  br label %230

283:                                              ; preds = %.loopexit123
  tail call void @swift_release(%swift.refcounted* %198) #6
  tail call void @swift_release(%swift.refcounted* %202) #6
  %284 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %newret142, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %284) #6
  %285 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %newret146, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %285) #6
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %127)
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %126)
  %286 = icmp eq i64 %135, %117
  br i1 %286, label %.loopexit126, label %132

.loopexit126:                                     ; preds = %283, %124
  %287 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #17
  %288 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %287, i64 64, i64 7) #6
  %289 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %288, i64 1
  %._storage52.count._value = bitcast %swift.refcounted* %289 to i64*
  store i64 1, i64* %._storage52.count._value, align 8
  %._storage52._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %288, i64 1, i32 1
  store i64 2, i64* %._storage52._capacityAndFlags, align 8
  %._storage54.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %113, i64 0, i32 1, i32 0, i32 0, i32 0
  %290 = load i64, i64* %._storage54.count._value, align 8, !range !10
  %.not116 = icmp eq i64 %290, 0
  br i1 %.not116, label %341, label %291, !prof !6

291:                                              ; preds = %.loopexit126
  %292 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %288, i64 2
  %293 = bitcast %swift.refcounted* %288 to %Ts28__ContiguousArrayStorageBaseC*
  %294 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %113, i64 1
  %tailaddr55 = bitcast %Ts28__ContiguousArrayStorageBaseC* %294 to %TSi*
  %tailaddr55._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %294 to i64*
  %295 = load i64, i64* %tailaddr55._value, align 8
  %296 = sdiv i64 %295, 2
  %297 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %288, i64 3, i32 1
  %298 = bitcast i64* %297 to %swift.type**
  store %swift.type* @"$sSiN", %swift.type** %298, align 8
  %._value56 = bitcast %swift.refcounted* %292 to i64*
  store i64 %296, i64* %._value56, align 8
  tail call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %293, 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 %288) #6
  br i1 %7, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %291, %304
  %299 = phi i64 [ %300, %304 ], [ 0, %291 ]
  %300 = add nuw nsw i64 %299, 1
  %301 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %287, i64 64, i64 7) #6
  %302 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %301, i64 1
  %._storage57.count._value = bitcast %swift.refcounted* %302 to i64*
  store i64 1, i64* %._storage57.count._value, align 8
  %._storage57._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %301, i64 1, i32 1
  store i64 2, i64* %._storage57._capacityAndFlags, align 8
  %303 = load i64, i64* %._storage54.count._value, align 8, !range !10
  %.not117 = icmp ult i64 %300, %303
  br i1 %.not117, label %304, label %342, !prof !7

304:                                              ; preds = %.preheader.preheader
  %305 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %301, i64 2
  %306 = bitcast %swift.refcounted* %301 to %Ts28__ContiguousArrayStorageBaseC*
  %307 = icmp eq i64 %300, %4
  %._value59 = getelementptr inbounds %TSi, %TSi* %tailaddr55, i64 %300, i32 0
  %308 = load i64, i64* %._value59, align 8
  %309 = sdiv i64 %308, 2
  %310 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %301, i64 3, i32 1
  %311 = bitcast i64* %310 to %swift.type**
  store %swift.type* @"$sSiN", %swift.type** %311, align 8
  %._value60 = bitcast %swift.refcounted* %305 to i64*
  store i64 %309, i64* %._value60, align 8
  tail call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* nonnull %306, 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 %301) #6
  br i1 %307, label %.loopexit, label %.preheader.preheader

.loopexit:                                        ; preds = %304, %291
  %312 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.elements._buffer._storage, align 8
  %313 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %312, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %313) #6
  %314 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %113, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %314) #6
  %315 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %75, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %315) #6
  %316 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %76, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %316) #6
  %317 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %77, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %317) #6
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %3)
  ret void

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

344:                                              ; preds = %144
  tail call void asm sideeffect "", "n"(i32 41) #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

define internal swiftcc void @"$sSMsSkRzrlE4sort2byySb7ElementSTQz_ADtKXE_tKFSaySi_SitG_Tg5027$s7llvm_O34mainyyFSbSi_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 !10
  %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_O34mainyyFSbSi_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
}

define internal swiftcc { i64, %Ts28__ContiguousArrayStorageBaseC* } @"$s7llvm_O34mainyyF5solveL_yAA7Array2D33_73E641EE209B6240D9CA5E4E565FCA33LLVySiGSaySi_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 !10
  %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 %254, label %6, !prof !6

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, 0
  %10 = extractvalue { i64, i1 } %8, 1
  br i1 %10, label %255, label %11, !prof !6

11:                                               ; preds = %6
  %12 = icmp slt i64 %9, 0
  br i1 %12, label %256, label %13, !prof !6

13:                                               ; preds = %11
  %.not = icmp eq i64 %9, 0
  br i1 %.not, label %.thread, label %14

14:                                               ; preds = %13
  %15 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa28_allocateBufferUninitialized15minimumCapacitys016_ContiguousArrayB0VyxGSi_tFZ"(i64 %9, %swift.type* nonnull @"$sSiN")
  %._storage28.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %15, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %9, i64* %._storage28.count._value, align 8
  %16 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %15, i64 1
  %17 = bitcast %Ts28__ContiguousArrayStorageBaseC* %16 to i8*
  %min.iters.check = icmp ult i64 %9, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %14
  %n.vec = and i64 %9, -4
  %18 = shl i64 %n.vec, 3
  %ind.end = getelementptr i8, i8* %17, i64 %18
  %19 = add i64 %9, -4
  %20 = lshr i64 %19, 2
  %21 = add nuw nsw i64 %20, 1
  %xtraiter = and i64 %21, 3
  %22 = icmp ult i64 %19, 12
  br i1 %22, label %middle.block.unr-lcssa, label %vector.ph.new

vector.ph.new:                                    ; preds = %vector.ph
  %unroll_iter = and i64 %21, -4
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph.new
  %index = phi i64 [ 0, %vector.ph.new ], [ %index.next.3, %vector.body ]
  %niter = phi i64 [ 0, %vector.ph.new ], [ %niter.next.3, %vector.body ]
  %23 = shl i64 %index, 3
  %next.gep = getelementptr i8, i8* %17, i64 %23
  %24 = bitcast i8* %next.gep to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %24, align 8
  %25 = getelementptr i8, i8* %next.gep, i64 16
  %26 = bitcast i8* %25 to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %26, align 8
  %index.next = shl i64 %index, 3
  %27 = or i64 %index.next, 32
  %next.gep.1 = getelementptr i8, i8* %17, i64 %27
  %28 = bitcast i8* %next.gep.1 to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %28, align 8
  %29 = getelementptr i8, i8* %next.gep.1, i64 16
  %30 = bitcast i8* %29 to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %30, align 8
  %index.next.1 = shl i64 %index, 3
  %31 = or i64 %index.next.1, 64
  %next.gep.2 = getelementptr i8, i8* %17, i64 %31
  %32 = bitcast i8* %next.gep.2 to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %32, align 8
  %33 = getelementptr i8, i8* %next.gep.2, i64 16
  %34 = bitcast i8* %33 to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %34, align 8
  %index.next.2 = shl i64 %index, 3
  %35 = or i64 %index.next.2, 96
  %next.gep.3 = getelementptr i8, i8* %17, i64 %35
  %36 = bitcast i8* %next.gep.3 to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %36, align 8
  %37 = getelementptr i8, i8* %next.gep.3, i64 16
  %38 = bitcast i8* %37 to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %38, align 8
  %index.next.3 = add nuw i64 %index, 16
  %niter.next.3 = add nuw i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %middle.block.unr-lcssa, label %vector.body, !llvm.loop !18

middle.block.unr-lcssa:                           ; preds = %vector.body, %vector.ph
  %index.unr = phi i64 [ 0, %vector.ph ], [ %index.next.3, %vector.body ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %middle.block, label %vector.body.epil

vector.body.epil:                                 ; preds = %middle.block.unr-lcssa, %vector.body.epil
  %index.epil = phi i64 [ %index.next.epil, %vector.body.epil ], [ %index.unr, %middle.block.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %vector.body.epil ], [ 0, %middle.block.unr-lcssa ]
  %39 = shl i64 %index.epil, 3
  %next.gep.epil = getelementptr i8, i8* %17, i64 %39
  %40 = bitcast i8* %next.gep.epil to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %40, align 8
  %41 = getelementptr i8, i8* %next.gep.epil, i64 16
  %42 = bitcast i8* %41 to <2 x i64>*
  store <2 x i64> <i64 9223372036854775807, i64 9223372036854775807>, <2 x i64>* %42, align 8
  %index.next.epil = add nuw i64 %index.epil, 4
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %middle.block, label %vector.body.epil, !llvm.loop !19

middle.block:                                     ; preds = %vector.body.epil, %middle.block.unr-lcssa
  %cmp.n = icmp eq i64 %9, %n.vec
  br i1 %cmp.n, label %.thread, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %14, %middle.block
  %.ph14 = phi i8* [ %17, %14 ], [ %ind.end, %middle.block ]
  %.ph15 = phi i64 [ 0, %14 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %43 = phi i8* [ %47, %scalar.ph ], [ %.ph14, %scalar.ph.preheader ]
  %44 = phi i64 [ %45, %scalar.ph ], [ %.ph15, %scalar.ph.preheader ]
  %45 = add nuw i64 %44, 1
  %._value = bitcast i8* %43 to i64*
  store i64 9223372036854775807, i64* %._value, align 8
  %46 = icmp eq i64 %45, %9
  %47 = getelementptr inbounds i8, i8* %43, i64 8
  br i1 %46, label %.thread, label %scalar.ph, !llvm.loop !20

.thread:                                          ; preds = %scalar.ph, %middle.block, %13
  %48 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct.HeapMetadata** getelementptr inbounds (%struct._SwiftEmptyArrayStorage, %struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage, i64 1, i32 0, i32 0) to %Ts28__ContiguousArrayStorageBaseC*), %13 ], [ %16, %middle.block ], [ %16, %scalar.ph ]
  %49 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %13 ], [ %15, %middle.block ], [ %15, %scalar.ph ]
  %._storage1.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %49, i64 0, i32 1, i32 0, i32 0, i32 0
  %50 = load i64, i64* %._storage1.count._value, align 8, !range !10
  %.not58 = icmp eq i64 %50, 0
  br i1 %.not58, label %257, label %51, !prof !6

51:                                               ; preds = %.thread
  %tailaddr._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %48 to i64*
  store i64 0, i64* %tailaddr._value, align 8
  %52 = icmp eq i64 %2, 0
  br i1 %52, label %.loopexit78, label %53

53:                                               ; preds = %51
  %54 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 0, i32 0
  %55 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 1
  %tailaddr2 = bitcast %Ts28__ContiguousArrayStorageBaseC* %55 to <{ %TSi, %TSi }>*
  %56 = icmp eq i64 %1, 0
  %57 = load i64, i64* %._storage.count._value, align 8, !range !10
  %tailaddr4 = bitcast %Ts28__ContiguousArrayStorageBaseC* %48 to %TSi*
  %58 = bitcast %Ts28__ContiguousArrayStorageBaseC* %0 to i8*
  %59 = icmp slt i64 %1, 1
  %60 = add nuw nsw i64 %57, 1
  br label %61

61:                                               ; preds = %53, %115
  %62 = phi i64 [ 0, %53 ], [ %63, %115 ]
  %63 = add nuw nsw i64 %62, 1
  %64 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %62, i64 %4)
  %65 = extractvalue { i64, i1 } %64, 0
  %66 = extractvalue { i64, i1 } %64, 1
  br i1 %66, label %258, label %.preheader77, !prof !6

.preheader77:                                     ; preds = %61
  %67 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %63, i64 %4)
  %68 = extractvalue { i64, i1 } %67, 1
  %69 = extractvalue { i64, i1 } %67, 0
  %.elt._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr2, i64 %62, i32 0, i32 0
  %.elt7._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr2, i64 %62, i32 1, i32 0
  %70 = icmp slt i64 %65, 0
  br i1 %70, label %.preheader77._crit_edge, label %.lr.ph, !prof !6

71:                                               ; preds = %80, %104
  %72 = icmp eq i64 %78, %1
  br i1 %72, label %111, label %73

73:                                               ; preds = %71
  %74 = add nuw nsw i64 %78, 1
  %75 = add nuw nsw i64 %65, %74
  %76 = icmp slt i64 %75, 0
  br i1 %76, label %.preheader77._crit_edge, label %.lr.ph, !prof !6

.lr.ph:                                           ; preds = %.preheader77, %73
  %77 = phi i64 [ %75, %73 ], [ %65, %.preheader77 ]
  %78 = phi i64 [ %74, %73 ], [ 0, %.preheader77 ]
  %79 = load i64, i64* %._storage1.count._value, align 8, !range !10
  %.not60 = icmp ult i64 %77, %79
  br i1 %.not60, label %80, label %259, !prof !7

80:                                               ; preds = %.lr.ph
  %._value5 = getelementptr inbounds %TSi, %TSi* %tailaddr4, i64 %77, i32 0
  %81 = load i64, i64* %._value5, align 8
  %82 = icmp eq i64 %81, 9223372036854775807
  br i1 %82, label %71, label %83

83:                                               ; preds = %80
  br i1 %68, label %260, label %84, !prof !6

84:                                               ; preds = %83
  %85 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %69, i64 %78)
  %86 = extractvalue { i64, i1 } %85, 0
  %87 = extractvalue { i64, i1 } %85, 1
  br i1 %87, label %261, label %88, !prof !6

88:                                               ; preds = %84
  %.not61 = icmp ult i64 %86, %79
  br i1 %.not61, label %89, label %262, !prof !7

89:                                               ; preds = %88
  %._value6 = getelementptr inbounds %TSi, %TSi* %tailaddr4, i64 %86, i32 0
  %90 = load i64, i64* %._value6, align 8
  %91 = load i64, i64* %._storage.count._value, align 8, !range !10
  %.not62 = icmp ult i64 %62, %91
  br i1 %.not62, label %92, label %263, !prof !7

92:                                               ; preds = %89
  %93 = load i64, i64* %.elt._value, align 8
  %94 = icmp slt i64 %93, 0
  br i1 %94, label %107, label %95

95:                                               ; preds = %92, %107
  %96 = phi i64 [ %109, %107 ], [ %93, %92 ]
  %97 = load i64, i64* %.elt7._value, align 8
  %98 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %96, i64 %97)
  %99 = extractvalue { i64, i1 } %98, 1
  br i1 %99, label %264, label %100, !prof !6

100:                                              ; preds = %95
  %101 = extractvalue { i64, i1 } %98, 0
  %102 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %81, i64 %101)
  %103 = extractvalue { i64, i1 } %102, 1
  br i1 %103, label %265, label %104, !prof !6

104:                                              ; preds = %100
  %105 = extractvalue { i64, i1 } %102, 0
  %106 = tail call i64 @llvm.smin.i64(i64 %105, i64 %90)
  store i64 %106, i64* %._value6, align 8
  br label %71

107:                                              ; preds = %92
  %108 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 0, i64 %93)
  %109 = extractvalue { i64, i1 } %108, 0
  %110 = extractvalue { i64, i1 } %108, 1
  br i1 %110, label %284, label %95, !prof !6

111:                                              ; preds = %71
  %exitcond98 = icmp eq i64 %62, %60
  br i1 %exitcond98, label %266, label %.preheader76, !prof !6

.preheader76:                                     ; preds = %111
  %112 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr2, i64 %62
  %113 = bitcast <{ %TSi, %TSi }>* %112 to i8*
  br label %121

.loopexit:                                        ; preds = %252, %159, %184, %163
  %114 = icmp eq i64 %122, %2
  br i1 %114, label %115, label %117

115:                                              ; preds = %.loopexit
  %116 = icmp eq i64 %63, %2
  br i1 %116, label %.loopexit78, label %61

117:                                              ; preds = %.loopexit
  %118 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %122, i64 1)
  %119 = extractvalue { i64, i1 } %118, 0
  %120 = extractvalue { i64, i1 } %118, 1
  br i1 %120, label %281, label %121, !prof !6

121:                                              ; preds = %117, %.preheader76
  %122 = phi i64 [ %119, %117 ], [ %63, %.preheader76 ]
  %123 = icmp ult i64 %57, %122
  br i1 %123, label %267, label %124, !prof !6

124:                                              ; preds = %121
  %125 = tail call swiftcc %swift.metadata_response @"$ss28__ContiguousArrayStorageBaseCMa"(i64 0) #18
  %126 = extractvalue %swift.metadata_response %125, 0
  %127 = bitcast %swift.type* %126 to i8*
  %128 = bitcast %Ts28__ContiguousArrayStorageBaseC* %0 to %swift.refcounted*
  %129 = call %swift.refcounted* @swift_retain_n(%swift.refcounted* %128, i32 2)
  %130 = tail call i8* @swift_dynamicCastClass(i8* %58, i8* %127) #17
  %131 = bitcast i8* %130 to %Ts28__ContiguousArrayStorageBaseC*
  %.not63 = icmp eq i8* %130, null
  br i1 %.not63, label %149, label %150

132:                                              ; preds = %150
  %133 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCySi_SitGMD") #17
  %134 = shl i64 %154, 4
  %135 = add i64 %134, 32
  %136 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %133, i64 %135, i64 7) #6
  %137 = bitcast %swift.refcounted* %136 to %Ts28__ContiguousArrayStorageBaseC*
  %138 = bitcast %swift.refcounted* %136 to i8*
  %call.i = tail call i64 @malloc_usable_size(i8* noundef %138) #19
  %gepdiff = add nsw i64 %call.i, -32
  %139 = sdiv i64 %gepdiff, 16
  %140 = shl nsw i64 %139, 1
  %141 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %136, i64 1
  %._storage27.count._value = bitcast %swift.refcounted* %141 to i64*
  store i64 %154, i64* %._storage27.count._value, align 8
  %._storage27._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %136, i64 1, i32 1
  store i64 %140, i64* %._storage27._capacityAndFlags, align 8
  %142 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %136, i64 2
  %143 = bitcast %swift.refcounted* %142 to i8*
  %144 = shl nuw i64 %154, 4
  tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* nonnull align 8 %143, i8* nonnull align 8 %113, i64 %144, i1 false)
  br label %.sink.split

.sink.split:                                      ; preds = %156, %132
  %.ph = phi %Ts28__ContiguousArrayStorageBaseC* [ %137, %132 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %156 ]
  tail call void @swift_release(%swift.refcounted* %54) #6
  br label %145

145:                                              ; preds = %.sink.split, %156
  %146 = phi %Ts28__ContiguousArrayStorageBaseC* [ %158, %156 ], [ %.ph, %.sink.split ]
  %._storage12.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %146, i64 0, i32 1, i32 0, i32 0, i32 0
  %147 = load i64, i64* %._storage12.count._value, align 8, !range !10
  %148 = icmp eq i64 %147, 0
  br i1 %148, label %159, label %161

149:                                              ; preds = %124
  tail call void @swift_release(%swift.refcounted* %54) #6
  br label %150

150:                                              ; preds = %124, %149
  %151 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %149 ], [ %131, %124 ]
  %._storage10.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %151, i64 0, i32 1, i32 0, i32 0, i32 0
  %152 = load i64, i64* %._storage10.count._value, align 8, !range !10
  %153 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %151, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %153) #6
  %154 = sub nuw nsw i64 %122, %62
  %155 = icmp eq i64 %152, %154
  br i1 %155, label %156, label %132, !prof !7

156:                                              ; preds = %150
  %157 = tail call i8* @swift_dynamicCastClass(i8* %58, i8* %127) #17
  %158 = bitcast i8* %157 to %Ts28__ContiguousArrayStorageBaseC*
  %.not70 = icmp eq i8* %157, null
  br i1 %.not70, label %.sink.split, label %145

159:                                              ; preds = %145
  %160 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %146, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %160) #6
  br i1 %56, label %.loopexit, label %224

161:                                              ; preds = %145
  %162 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %146, i64 1
  %tailaddr13 = bitcast %Ts28__ContiguousArrayStorageBaseC* %162 to <{ %TSi, %TSi }>*
  br label %166

163:                                              ; preds = %217
  %164 = extractvalue { i64, i1 } %215, 0
  %165 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %146, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %165) #6
  br i1 %56, label %.loopexit, label %224

166:                                              ; preds = %172, %161
  %167 = phi i64 [ 0, %161 ], [ %173, %172 ]
  %168 = phi i64 [ 0, %161 ], [ %174, %172 ]
  %.elt14._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr13, i64 %168, i32 1, i32 0
  %169 = load i64, i64* %.elt14._value, align 8
  %170 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %167, i64 %169)
  %171 = extractvalue { i64, i1 } %170, 1
  br i1 %171, label %268, label %172, !prof !6

172:                                              ; preds = %166
  %173 = extractvalue { i64, i1 } %170, 0
  %174 = add nuw nsw i64 %168, 1
  %175 = icmp eq i64 %174, %147
  br i1 %175, label %176, label %166

176:                                              ; preds = %172
  %177 = extractvalue { i64, i1 } %170, 0
  %178 = sdiv i64 %177, 2
  %tailaddr13.elt = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %146, i64 1, i32 0, i32 1
  %179 = load i64, i64* %tailaddr13.elt, align 8
  %180 = icmp slt i64 %179, %178
  br i1 %180, label %.preheader74, label %.loopexit75

.preheader74:                                     ; preds = %176, %190
  %181 = phi i64 [ %191, %190 ], [ 1, %176 ]
  %182 = phi i64 [ %192, %190 ], [ %179, %176 ]
  %183 = icmp eq i64 %181, %147
  br i1 %183, label %184, label %186

184:                                              ; preds = %.preheader74
  %185 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %146, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %185) #6
  br i1 %56, label %.loopexit, label %224

186:                                              ; preds = %.preheader74
  %.elt24._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr13, i64 %181, i32 1, i32 0
  %187 = load i64, i64* %.elt24._value, align 8
  %188 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %182, i64 %187)
  %189 = extractvalue { i64, i1 } %188, 1
  br i1 %189, label %283, label %190, !prof !6

190:                                              ; preds = %186
  %191 = add nuw nsw i64 %181, 1
  %192 = extractvalue { i64, i1 } %188, 0
  %193 = icmp slt i64 %192, %178
  br i1 %193, label %.preheader74, label %.loopexit75

.loopexit75:                                      ; preds = %190, %176
  %194 = phi i64 [ 0, %176 ], [ %181, %190 ]
  %.not65 = icmp ult i64 %194, %147
  br i1 %.not65, label %195, label %269, !prof !7

195:                                              ; preds = %.loopexit75
  %.elt15._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr13, i64 %194, i32 0, i32 0
  %196 = load i64, i64* %.elt15._value, align 8
  br label %197

197:                                              ; preds = %217, %195
  %198 = phi i64 [ 0, %195 ], [ %218, %217 ]
  %199 = phi i64 [ 0, %195 ], [ %209, %217 ]
  %exitcond.not = icmp eq i64 %199, %147
  br i1 %exitcond.not, label %270, label %200, !prof !6

200:                                              ; preds = %197
  %.elt16._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr13, i64 %199, i32 0, i32 0
  %201 = load i64, i64* %.elt16._value, align 8
  %202 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %196, i64 %201)
  %203 = extractvalue { i64, i1 } %202, 0
  %204 = extractvalue { i64, i1 } %202, 1
  br i1 %204, label %271, label %205, !prof !6

205:                                              ; preds = %200
  %206 = icmp slt i64 %203, 0
  br i1 %206, label %220, label %207

207:                                              ; preds = %205, %220
  %208 = phi i64 [ %222, %220 ], [ %203, %205 ]
  %209 = add nuw nsw i64 %199, 1
  %.elt17._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr13, i64 %199, i32 1, i32 0
  %210 = load i64, i64* %.elt17._value, align 8
  %211 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %208, i64 %210)
  %212 = extractvalue { i64, i1 } %211, 1
  br i1 %212, label %272, label %213, !prof !6

213:                                              ; preds = %207
  %214 = extractvalue { i64, i1 } %211, 0
  %215 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %198, i64 %214)
  %216 = extractvalue { i64, i1 } %215, 1
  br i1 %216, label %273, label %217, !prof !6

217:                                              ; preds = %213
  %218 = extractvalue { i64, i1 } %215, 0
  %219 = icmp eq i64 %209, %147
  br i1 %219, label %163, label %197

220:                                              ; preds = %205
  %221 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 0, i64 %203)
  %222 = extractvalue { i64, i1 } %221, 0
  %223 = extractvalue { i64, i1 } %221, 1
  br i1 %223, label %282, label %207, !prof !6

224:                                              ; preds = %184, %159, %163
  %225 = phi i64 [ %164, %163 ], [ 0, %159 ], [ 0, %184 ]
  br i1 %59, label %274, label %.preheader, !prof !6

.preheader:                                       ; preds = %224
  %226 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %122, i64 %4)
  %227 = extractvalue { i64, i1 } %226, 1
  %228 = extractvalue { i64, i1 } %226, 0
  br label %229

229:                                              ; preds = %252, %.preheader
  %230 = phi i64 [ %231, %252 ], [ 0, %.preheader ]
  %231 = add nuw nsw i64 %230, 1
  %232 = add nuw nsw i64 %65, %230
  %233 = icmp slt i64 %232, 0
  br i1 %233, label %275, label %234, !prof !6

234:                                              ; preds = %229
  %235 = load i64, i64* %._storage1.count._value, align 8, !range !10
  %.not67 = icmp ult i64 %232, %235
  br i1 %.not67, label %236, label %276, !prof !7

236:                                              ; preds = %234
  %._value20 = getelementptr inbounds %TSi, %TSi* %tailaddr4, i64 %232, i32 0
  %237 = load i64, i64* %._value20, align 8
  %238 = icmp eq i64 %237, 9223372036854775807
  br i1 %238, label %252, label %239

239:                                              ; preds = %236
  br i1 %227, label %277, label %240, !prof !6

240:                                              ; preds = %239
  %241 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %228, i64 %231)
  %242 = extractvalue { i64, i1 } %241, 0
  %243 = extractvalue { i64, i1 } %241, 1
  br i1 %243, label %278, label %244, !prof !6

244:                                              ; preds = %240
  %.not68 = icmp ult i64 %242, %235
  br i1 %.not68, label %245, label %279, !prof !7

245:                                              ; preds = %244
  %246 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %237, i64 %225)
  %247 = extractvalue { i64, i1 } %246, 1
  br i1 %247, label %280, label %248, !prof !6

248:                                              ; preds = %245
  %249 = extractvalue { i64, i1 } %246, 0
  %._value21 = getelementptr inbounds %TSi, %TSi* %tailaddr4, i64 %242, i32 0
  %250 = load i64, i64* %._value21, align 8
  %251 = tail call i64 @llvm.smin.i64(i64 %249, i64 %250)
  store i64 %251, i64* %._value21, align 8
  br label %252

252:                                              ; preds = %236, %248
  %253 = icmp eq i64 %231, %1
  br i1 %253, label %.loopexit, label %229

.loopexit78:                                      ; preds = %115, %51
  %newret = insertvalue { i64, %Ts28__ContiguousArrayStorageBaseC* } poison, i64 %4, 0
  %newret2 = insertvalue { i64, %Ts28__ContiguousArrayStorageBaseC* } %newret, %Ts28__ContiguousArrayStorageBaseC* %49, 1
  ret { i64, %Ts28__ContiguousArrayStorageBaseC* } %newret2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 %149, label %10, !prof !6

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
  %._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
  %13 = 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
  %14 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %13, i64 1
  %._rawBits._value = bitcast %swift.refcounted* %14 to i64*
  store i64 15, i64* %._rawBits._value, align 8
  %15 = icmp eq i64 %0, 0
  %.pre = ptrtoint %swift.bridge* %5 to i64
  %.pre47 = and i64 %.pre, 2305843009213693952
  br i1 %15, label %._crit_edge, label %16

._crit_edge:                                      ; preds = %10
  %.pre49 = lshr i64 %.pre, 56
  %.pre51 = and i64 %.pre49, 15
  br label %23

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

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

common.ret:                                       ; preds = %55, %23, %100
  %common.ret.op = phi %Ts28__ContiguousArrayStorageBaseC* [ undef, %100 ], [ %56, %55 ], [ %33, %23 ]
  ret %Ts28__ContiguousArrayStorageBaseC* %common.ret.op

36:                                               ; preds = %16
  %37 = shl nuw i64 %21, 16
  %38 = and i64 %.pre, 1152921504606846976
  %39 = icmp ne i64 %38, 0
  %40 = and i64 %4, 576460752303423488
  %41 = icmp eq i64 %40, 0
  %or.cond17 = select i1 %39, i1 %41, i1 false
  %.v = select i1 %or.cond17, i64 11, i64 7
  %42 = or i64 %37, %.v
  %43 = shl nuw nsw i64 %21, 2
  %44 = 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
  %45 = bitcast i8* %2 to i1 (%TSJ*, %swift.refcounted*, %swift.error**)*
  %46 = bitcast %swift.opaque* %3 to %swift.refcounted*
  %.not18 = xor i1 %1, true
  br label %88

47:                                               ; preds = %141, %133
  %48 = phi i64 [ %138, %133 ], [ %143, %141 ]
  %49 = phi i64 [ %138, %133 ], [ %144, %141 ]
  %50 = phi %Ts28__ContiguousArrayStorageBaseC* [ %134, %133 ], [ %145, %141 ]
  %51 = phi %Ts28__ContiguousArrayStorageBaseC* [ %134, %133 ], [ %146, %141 ]
  %52 = lshr i64 %48, 14
  %53 = icmp ne i64 %52, %43
  %brmerge32 = select i1 %53, i1 true, i1 %.not18
  br i1 %brmerge32, label %59, label %54

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

55:                                               ; preds = %54, %83
  %56 = phi %Ts28__ContiguousArrayStorageBaseC* [ %84, %83 ], [ %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* %13) #6
  br label %common.ret

59:                                               ; preds = %47
  %60 = lshr i64 %49, 14
  %61 = icmp ult i64 %43, %60
  br i1 %61, label %150, label %62, !prof !6

62:                                               ; preds = %59
  %63 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64 %49, i64 %42, 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
  %68 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %50, i64 0, i32 0
  %69 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %68) #16
  br i1 %69, label %74, label %70

70:                                               ; preds = %62
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %50, i64 0, i32 1, i32 0, i32 0, i32 0
  %71 = load i64, i64* %._storage.count._value, align 8, !range !10
  %72 = add nuw nsw i64 %71, 1
  %73 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSs_Tg5"(i1 false, i64 %72, i1 true, %Ts28__ContiguousArrayStorageBaseC* %50)
  br label %74

74:                                               ; preds = %62, %70
  %75 = phi %Ts28__ContiguousArrayStorageBaseC* [ %73, %70 ], [ %50, %62 ]
  %._storage1.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %75, i64 0, i32 1, i32 0, i32 0, i32 0
  %76 = load i64, i64* %._storage1.count._value, align 8, !range !10
  %._storage1._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %75, i64 0, i32 1, i32 0, i32 1, i32 0
  %77 = load i64, i64* %._storage1._capacityAndFlags._value, align 8
  %78 = lshr i64 %77, 1
  %79 = add nuw nsw i64 %76, 1
  %.not28 = icmp ugt i64 %78, %76
  br i1 %.not28, label %83, label %80, !prof !7

80:                                               ; preds = %74
  %81 = icmp ugt i64 %77, 1
  %82 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSs_Tg5"(i1 %81, i64 %79, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %75)
  br label %83

83:                                               ; preds = %74, %80
  %84 = phi %Ts28__ContiguousArrayStorageBaseC* [ %82, %80 ], [ %75, %74 ]
  %._storage2.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %84, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %79, i64* %._storage2.count._value, align 8
  %85 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %84, i64 1
  %86 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %85, i64 %76
  %._slice._startIndex._rawBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %86 to i64*
  store i64 %64, i64* %._slice._startIndex._rawBits._value, align 8
  %._slice._endIndex = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %86, i64 0, i32 0, i32 1
  store i64 %65, i64* %._slice._endIndex, align 8
  %._slice._base = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %86, 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
  %87 = bitcast %TSu* %._slice._base._guts._object._object to %swift.bridge**
  store %swift.bridge* %67, %swift.bridge** %87, align 8
  store %Ts28__ContiguousArrayStorageBaseC* %84, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %55

88:                                               ; preds = %36, %141
  %89 = phi i64 [ 15, %36 ], [ %142, %141 ]
  %90 = phi i64 [ 15, %36 ], [ %143, %141 ]
  %91 = phi i64 [ 15, %36 ], [ %144, %141 ]
  %92 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %36 ], [ %145, %141 ]
  %93 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %36 ], [ %146, %141 ]
  %94 = tail call swiftcc { i64, %swift.bridge* } @"$sSSySJSS5IndexVcig"(i64 %89, i64 %4, %swift.bridge* %5)
  %95 = extractvalue { i64, %swift.bridge* } %94, 0
  %96 = extractvalue { i64, %swift.bridge* } %94, 1
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %44)
  store i64 %95, i64* %._str._guts._object._countAndFlagsBits._value, align 8
  store %swift.bridge* %96, %swift.bridge** %._str._guts._object._object, align 8
  %97 = call swiftcc i1 %45(%TSJ* noalias nocapture nonnull dereferenceable(16) %8, %swift.refcounted* swiftself %46, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %7)
  %98 = load %swift.error*, %swift.error** %7, align 8
  %.not27 = icmp eq %swift.error* %98, null
  br i1 %.not27, label %99, label %100

99:                                               ; preds = %88
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %96) #6
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %44)
  br i1 %97, label %102, label %131

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

102:                                              ; preds = %99
  %103 = lshr i64 %90, 14
  %104 = lshr i64 %89, 14
  %105 = icmp ne i64 %103, %104
  %brmerge = select i1 %105, i1 true, i1 %.not18
  br i1 %brmerge, label %108, label %106

106:                                              ; preds = %102
  %107 = tail call swiftcc i64 @"$sSS5index5afterSS5IndexVAD_tF"(i64 %89, i64 %4, %swift.bridge* %5)
  store i64 %107, i64* %._rawBits._value, align 8
  br label %141

108:                                              ; preds = %102
  %109 = icmp ult i64 %104, %103
  br i1 %109, label %151, label %110, !prof !6

110:                                              ; preds = %108
  %111 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64 %90, i64 %89, i64 %4, %swift.bridge* %5)
  %112 = extractvalue { i64, i64, i64, %swift.bridge* } %111, 0
  %113 = extractvalue { i64, i64, i64, %swift.bridge* } %111, 1
  %114 = extractvalue { i64, i64, i64, %swift.bridge* } %111, 2
  %115 = extractvalue { i64, i64, i64, %swift.bridge* } %111, 3
  %116 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %92, i64 0, i32 0
  %117 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %116) #16
  br i1 %117, label %122, label %118

118:                                              ; preds = %110
  %._storage4.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %92, i64 0, i32 1, i32 0, i32 0, i32 0
  %119 = load i64, i64* %._storage4.count._value, align 8, !range !10
  %120 = add nuw nsw i64 %119, 1
  %121 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSs_Tg5"(i1 false, i64 %120, i1 true, %Ts28__ContiguousArrayStorageBaseC* %92)
  br label %122

122:                                              ; preds = %110, %118
  %123 = phi %Ts28__ContiguousArrayStorageBaseC* [ %121, %118 ], [ %92, %110 ]
  %._storage5.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %123, i64 0, i32 1, i32 0, i32 0, i32 0
  %124 = load i64, i64* %._storage5.count._value, align 8, !range !10
  %._storage5._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %123, i64 0, i32 1, i32 0, i32 1, i32 0
  %125 = load i64, i64* %._storage5._capacityAndFlags._value, align 8
  %126 = lshr i64 %125, 1
  %127 = add nuw nsw i64 %124, 1
  %.not = icmp ugt i64 %126, %124
  br i1 %.not, label %133, label %128, !prof !7

128:                                              ; preds = %122
  %129 = icmp ugt i64 %125, 1
  %130 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSs_Tg5"(i1 %129, i64 %127, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %123)
  br label %133

131:                                              ; preds = %99
  %132 = tail call swiftcc i64 @"$sSS5index5afterSS5IndexVAD_tF"(i64 %89, i64 %4, %swift.bridge* %5)
  br label %141

133:                                              ; preds = %122, %128
  %134 = phi %Ts28__ContiguousArrayStorageBaseC* [ %130, %128 ], [ %123, %122 ]
  %._storage6.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %134, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %127, i64* %._storage6.count._value, align 8
  %135 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %134, i64 1
  %136 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %135, i64 %124
  %._slice8._startIndex._rawBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %136 to i64*
  store i64 %112, i64* %._slice8._startIndex._rawBits._value, align 8
  %._slice8._endIndex = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %136, i64 0, i32 0, i32 1
  store i64 %113, i64* %._slice8._endIndex, align 8
  %._slice8._base = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %136, 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 %114, 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
  %137 = bitcast %TSu* %._slice8._base._guts._object._object to %swift.bridge**
  store %swift.bridge* %115, %swift.bridge** %137, align 8
  store %Ts28__ContiguousArrayStorageBaseC* %134, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %138 = tail call swiftcc i64 @"$sSS5index5afterSS5IndexVAD_tF"(i64 %89, i64 %4, %swift.bridge* %5)
  store i64 %138, i64* %._rawBits._value, align 8
  %139 = load i64, i64* %._storage6.count._value, align 8, !range !10
  %140 = icmp eq i64 %139, %0
  br i1 %140, label %47, label %141

141:                                              ; preds = %106, %133, %131
  %142 = phi i64 [ %132, %131 ], [ %107, %106 ], [ %138, %133 ]
  %143 = phi i64 [ %90, %131 ], [ %107, %106 ], [ %138, %133 ]
  %144 = phi i64 [ %91, %131 ], [ %107, %106 ], [ %138, %133 ]
  %145 = phi %Ts28__ContiguousArrayStorageBaseC* [ %92, %131 ], [ %92, %106 ], [ %134, %133 ]
  %146 = phi %Ts28__ContiguousArrayStorageBaseC* [ %93, %131 ], [ %93, %106 ], [ %134, %133 ]
  %147 = lshr i64 %142, 14
  %148 = icmp eq i64 %147, %43
  br i1 %148, label %47, label %88

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

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

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

; Function Attrs: noinline
define linkonce_odr hidden swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSS_Tg5"(i1 %0, i64 %1, i1 %2, %Ts15ContiguousArrayV* nocapture swiftself dereferenceable(8) %3) local_unnamed_addr #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: noinline
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSS_Tg5"(i1 %0, i64 %1, i1 %2, %Ts28__ContiguousArrayStorageBaseC* %3) local_unnamed_addr #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 !6

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

14:                                               ; preds = %4, %11, %entry
  %15 = phi i64 [ %1, %entry ], [ %13, %11 ], [ %6, %4 ]
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 1, i32 0, i32 0, i32 0
  %16 = load i64, i64* %._storage.count._value, align 8, !range !10
  %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
  %tailaddr4 = bitcast %Ts28__ContiguousArrayStorageBaseC* %32 to %TSS*
  %34 = getelementptr inbounds %TSS, %TSS* %tailaddr4, i64 %16
  %35 = bitcast %TSS* %34 to %Ts28__ContiguousArrayStorageBaseC*
  %36 = icmp ult %Ts28__ContiguousArrayStorageBaseC* %31, %35
  %37 = icmp eq %Ts28__ContiguousArrayStorageBaseC* %30, %3
  %or.cond14 = select i1 %37, i1 %36, i1 false
  br i1 %or.cond14, label %41, label %.sink.split

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

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

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

45:                                               ; preds = %41, %42
  %46 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %46) #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: noinline
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSs_Tg5"(i1 %0, i64 %1, i1 %2, %Ts28__ContiguousArrayStorageBaseC* %3) local_unnamed_addr #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 %46, label %11, !prof !6

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

14:                                               ; preds = %4, %11, %entry
  %15 = phi i64 [ %1, %entry ], [ %13, %11 ], [ %6, %4 ]
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 1, i32 0, i32 0, i32 0
  %16 = load i64, i64* %._storage.count._value, align 8, !range !10
  %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 %41

33:                                               ; preds = %29
  %34 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %32, i64 %16
  %35 = icmp ult %Ts28__ContiguousArrayStorageBaseC* %31, %34
  %36 = icmp eq %Ts28__ContiguousArrayStorageBaseC* %30, %3
  %or.cond14 = select i1 %36, i1 %35, i1 false
  br i1 %or.cond14, label %40, label %.sink.split

.sink.split:                                      ; 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 %40

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

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

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

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

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

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

14:                                               ; preds = %4, %11, %entry
  %15 = phi i64 [ %1, %entry ], [ %13, %11 ], [ %6, %4 ]
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 1, i32 0, i32 0, i32 0
  %16 = load i64, i64* %._storage.count._value, align 8, !range !10
  %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
  %32 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to i8*
  %33 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 1
  %34 = bitcast %Ts28__ContiguousArrayStorageBaseC* %33 to i8*
  br i1 %0, label %35, label %42

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

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

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

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

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

46:                                               ; 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: noinline
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 %46, label %11, !prof !6

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

14:                                               ; preds = %4, %11, %entry
  %15 = phi i64 [ %1, %entry ], [ %13, %11 ], [ %6, %4 ]
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 1, i32 0, i32 0, i32 0
  %16 = load i64, i64* %._storage.count._value, align 8, !range !10
  %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
  %32 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to i8*
  %33 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 1
  %34 = bitcast %Ts28__ContiguousArrayStorageBaseC* %33 to i8*
  br i1 %0, label %35, label %42

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

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

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

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

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

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

; 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

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

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

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

7:                                                ; preds = %entry
  %8 = ashr i64 %2, 32
  %9 = sub nsw i64 0, %8
  %sext = shl i64 %2, 32
  %10 = ashr exact i64 %sext, 32
  %11 = ptrtoint { i32, i32 }* %0 to i64
  %12 = add i64 %10, %11
  %13 = inttoptr i64 %12 to i8*
  %14 = tail call swiftcc %swift.type* @swift_getTypeByMangledNameInContext2(i8* %13, i64 %9, %swift.type_descriptor* null, i8** null) #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: noinline
declare swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa28_allocateBufferUninitialized15minimumCapacitys016_ContiguousArrayB0VyxGSi_tFZ"(i64, %swift.type*) local_unnamed_addr #5

; 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

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

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
  %.not7 = xor i1 %2, true
  %brmerge = select i1 %10, i1 true, i1 %.not7
  br i1 %brmerge, label %12, label %11

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

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

14:                                               ; preds = %12
  %15 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %3, i64 1
  %16 = tail call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64 %7, i64 %0, i64 %4, %swift.bridge* %5)
  %17 = extractvalue { i64, i64, i64, %swift.bridge* } %16, 0
  %18 = extractvalue { i64, i64, i64, %swift.bridge* } %16, 1
  %19 = extractvalue { i64, i64, i64, %swift.bridge* } %16, 2
  %20 = extractvalue { i64, i64, i64, %swift.bridge* } %16, 3
  %._buffer._storage = bitcast %swift.refcounted* %15 to %Ts28__ContiguousArrayStorageBaseC**
  %21 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %22 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %21, i64 0, i32 0
  %23 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %22) #16
  store %Ts28__ContiguousArrayStorageBaseC* %21, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br i1 %23, label %28, label %24

24:                                               ; preds = %14
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %21, i64 0, i32 1, i32 0, i32 0, i32 0
  %25 = load i64, i64* %._storage.count._value, align 8, !range !10
  %26 = add nuw nsw i64 %25, 1
  %27 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSs_Tg5"(i1 false, i64 %26, i1 true, %Ts28__ContiguousArrayStorageBaseC* %21)
  store %Ts28__ContiguousArrayStorageBaseC* %27, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %28

28:                                               ; preds = %14, %24
  %29 = phi %Ts28__ContiguousArrayStorageBaseC* [ %27, %24 ], [ %21, %14 ]
  %._storage3.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %29, i64 0, i32 1, i32 0, i32 0, i32 0
  %30 = load i64, i64* %._storage3.count._value, align 8, !range !10
  %._storage3._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %29, i64 0, i32 1, i32 0, i32 1, i32 0
  %31 = load i64, i64* %._storage3._capacityAndFlags._value, align 8
  %32 = lshr i64 %31, 1
  %33 = add nuw nsw i64 %30, 1
  %.not = icmp ugt i64 %32, %30
  br i1 %.not, label %37, label %34, !prof !7

34:                                               ; preds = %28
  %35 = icmp ugt i64 %31, 1
  %36 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSs_Tg5"(i1 %35, i64 %33, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %29)
  store %Ts28__ContiguousArrayStorageBaseC* %36, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %37

37:                                               ; preds = %28, %34
  %38 = phi %Ts28__ContiguousArrayStorageBaseC* [ %36, %34 ], [ %29, %28 ]
  %._storage4.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %38, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %33, i64* %._storage4.count._value, align 8
  %39 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %38, i64 1
  %40 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %39, i64 %30
  %._slice._startIndex._rawBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %40 to i64*
  store i64 %17, i64* %._slice._startIndex._rawBits._value, align 8
  %._slice._endIndex = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %40, i64 0, i32 0, i32 1
  store i64 %18, i64* %._slice._endIndex, align 8
  %._slice._base = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %40, 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 %19, 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
  %41 = bitcast %TSu* %._slice._base._guts._object._object to %swift.bridge**
  store %swift.bridge* %20, %swift.bridge** %41, align 8
  br label %11

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

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

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
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: noinline
define linkonce_odr hidden swiftcc { i64, %swift.bridge* } @"$sSS8_copyingySSSsFZ"(i64 %0, i64 %1, i64 %2, %swift.bridge* %3) local_unnamed_addr #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_Tgq5Tf4nnd_n"(i64 %10, i64 0)
  %14 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %13, i64 1
  %15 = ptrtoint %Ts28__ContiguousArrayStorageBaseC* %14 to i64
  %16 = bitcast %Ts16IndexingIteratorVySs8UTF8ViewVG* %4 to i8*
  call void @llvm.lifetime.start.p0i8(i64 40, i8* nonnull %16)
  %17 = call swiftcc i64 @"$sSTsE21_copySequenceContents12initializing8IteratorQz_SitSry7ElementQzG_tFSs8UTF8ViewV_Tgq5"(%Ts16IndexingIteratorVySs8UTF8ViewVG* noalias nocapture nonnull %4, i64 %15, i64 %10, i64 %0, i64 %1, i64 %2, %swift.bridge* %3)
  %.not = icmp eq i64 %17, %10
  br i1 %.not, label %18, label %59, !prof !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 !10
  %25 = tail call swiftcc { i64, %swift.bridge* } @"$sSS18_uncheckedFromUTF8ySSSRys5UInt8VGFZ"(i64 %23, i64 %24), !noalias !21
  %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 !6

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
}

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

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

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

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

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
}

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

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

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

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

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

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: noinline
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: noinline
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 !10
  %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
}

define internal swiftcc void @"$sSr15_stableSortImpl2byySbx_xtKXE_tKFSi_Sit_Tg5027$s7llvm_O34mainyyFSbSi_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 %321, label %9, !prof !6

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

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

13:                                               ; preds = %11
  %switch = icmp ult i64 %3, 2
  br i1 %switch, label %common.ret, label %.preheader164

.preheader164:                                    ; preds = %13
  %14 = bitcast %TSrySi_SitG* %0 to i64*
  br label %297

.thread256:                                       ; 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)
  %._storage71.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %7, i64* %._storage71.count._value, align 8
  %17 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 1
  %18 = bitcast %Ts28__ContiguousArrayStorageBaseC* %17 to i8*
  br label %.preheader162

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

..loopexit163_crit_edge:                          ; preds = %19
  %.pre246 = load i64, i64* getelementptr inbounds (%struct._SwiftEmptyArrayStorage, %struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage, i64 0, i32 1, i32 0), align 8, !range !10
  br label %.loopexit163

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

24:                                               ; preds = %.preheader162, %.loopexit
  %25 = phi i64 [ %87, %.loopexit ], [ 0, %.preheader162 ]
  %26 = phi i64 [ %172, %.loopexit ], [ %3, %.preheader162 ]
  %27 = phi %Ts28__ContiguousArrayStorageBaseC* [ %106, %.loopexit ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %.preheader162 ]
  %28 = add nsw i64 %25, 1
  %29 = icmp slt i64 %28, %26
  br i1 %29, label %30, label %.loopexit159

30:                                               ; preds = %24
  %31 = load i64, i64* %23, align 8
  %32 = inttoptr i64 %31 to <{ %TSi, %TSi }>*
  %.elt63._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %32, i64 %28, i32 0, i32 0
  %33 = load i64, i64* %.elt63._value, align 8
  %.elt64._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %32, i64 %25, i32 0, i32 0
  %34 = load i64, i64* %.elt64._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 %.preheader160, label %.loopexit161

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

43:                                               ; preds = %.preheader160
  %44 = add i64 %39, 1
  %exitcond.not = icmp eq i64 %44, %26
  br i1 %exitcond.not, label %.loopexit161, label %.preheader160

.loopexit161:                                     ; preds = %43, %.preheader160, %30
  %45 = phi i64 [ %36, %30 ], [ %26, %43 ], [ %39, %.preheader160 ]
  br i1 %35, label %46, label %.loopexit159

46:                                               ; preds = %.loopexit161
  %47 = icmp slt i64 %45, %25
  br i1 %47, label %348, label %48, !prof !6

48:                                               ; preds = %46
  %49 = icmp slt i64 %25, %45
  br i1 %49, label %.preheader158, label %.loopexit159

.preheader158:                                    ; preds = %48, %66
  %50 = phi i64 [ %52, %66 ], [ %45, %48 ]
  %51 = phi i64 [ %67, %66 ], [ %25, %48 ]
  %52 = add nsw i64 %50, -1
  %53 = load i64, i64* %23, align 8
  %54 = icmp eq i64 %51, %52
  br i1 %54, label %66, label %55

55:                                               ; preds = %.preheader158
  %56 = icmp eq i64 %53, 0
  br i1 %56, label %349, label %57

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

66:                                               ; preds = %.preheader158, %57
  %67 = add nsw i64 %51, 1
  %68 = icmp slt i64 %67, %52
  br i1 %68, label %.preheader158, label %.loopexit159

.loopexit159:                                     ; preds = %66, %48, %.loopexit161, %24
  %69 = phi i64 [ %28, %24 ], [ %45, %.loopexit161 ], [ %45, %48 ], [ %45, %66 ]
  %70 = load i64, i64* %.count._value, align 8
  %71 = icmp slt i64 %69, %70
  br i1 %71, label %72, label %.loopexit157

72:                                               ; preds = %.loopexit159
  %73 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %69, i64 %25)
  %74 = extractvalue { i64, i1 } %73, 1
  br i1 %74, label %344, label %75, !prof !6

75:                                               ; preds = %72
  %76 = extractvalue { i64, i1 } %73, 0
  %77 = icmp slt i64 %76, %4
  br i1 %77, label %78, label %.loopexit157

78:                                               ; preds = %75
  %79 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %25, i64 %4)
  %80 = extractvalue { i64, i1 } %79, 1
  br i1 %80, label %345, label %81, !prof !6

81:                                               ; preds = %78
  %82 = extractvalue { i64, i1 } %79, 0
  %83 = tail call i64 @llvm.smin.i64(i64 %82, i64 %70)
  %84 = icmp slt i64 %83, %25
  br i1 %84, label %346, label %85, !prof !6

85:                                               ; preds = %81
  %86 = icmp eq i64 %69, %83
  br i1 %86, label %.loopexit157, label %.preheader

.loopexit157:                                     ; preds = %294, %85, %75, %.loopexit159
  %87 = phi i64 [ %69, %.loopexit159 ], [ %69, %75 ], [ %69, %85 ], [ %83, %294 ]
  %88 = icmp slt i64 %87, %25
  br i1 %88, label %327, label %89, !prof !6

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

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

96:                                               ; preds = %89, %92
  %97 = phi %Ts28__ContiguousArrayStorageBaseC* [ %95, %92 ], [ %27, %89 ]
  %._storage20.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %97, i64 0, i32 1, i32 0, i32 0, i32 0
  %98 = load i64, i64* %._storage20.count._value, align 8, !range !10
  %._storage20._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %97, i64 0, i32 1, i32 0, i32 1, i32 0
  %99 = load i64, i64* %._storage20._capacityAndFlags._value, align 8
  %100 = lshr i64 %99, 1
  %101 = add nuw nsw i64 %98, 1
  %.not147 = icmp ugt i64 %100, %98
  br i1 %.not147, label %105, label %102, !prof !7

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

105:                                              ; preds = %96, %102
  %106 = phi %Ts28__ContiguousArrayStorageBaseC* [ %104, %102 ], [ %97, %96 ]
  %._storage21.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %106, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %101, i64* %._storage21.count._value, align 8
  %107 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %106, i64 1
  %tailaddr22 = bitcast %Ts28__ContiguousArrayStorageBaseC* %107 to %TSnySiG*
  %.lowerBound23._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %98, i32 0, i32 0
  store i64 %25, i64* %.lowerBound23._value, align 8
  %.upperBound24._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %98, i32 1, i32 0
  store i64 %87, i64* %.upperBound24._value, align 8
  %.not155 = icmp eq i64 %98, 0
  br i1 %.not155, label %.loopexit, label %thread-pre-split

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

110:                                              ; preds = %thread-pre-split, %258
  %111 = phi i64 [ %101, %thread-pre-split ], [ %259, %258 ]
  %112 = add nsw i64 %111, -1
  %113 = icmp ult i64 %111, 4
  br i1 %113, label %141, label %114

114:                                              ; preds = %110
  %115 = add nsw i64 %111, -4
  %.lowerBound28._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %115, i32 0, i32 0
  %116 = load i64, i64* %.lowerBound28._value, align 8
  %.upperBound29._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %115, i32 1, i32 0
  %117 = load i64, i64* %.upperBound29._value, align 8
  %118 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %117, i64 %116)
  %119 = extractvalue { i64, i1 } %118, 0
  %120 = extractvalue { i64, i1 } %118, 1
  br i1 %120, label %328, label %121, !prof !6

121:                                              ; preds = %114
  %122 = add nsw i64 %111, -3
  %.lowerBound30._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %122, i32 0, i32 0
  %123 = load i64, i64* %.lowerBound30._value, align 8
  %.upperBound31._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %122, i32 1, i32 0
  %124 = load i64, i64* %.upperBound31._value, align 8
  %125 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %124, i64 %123)
  %126 = extractvalue { i64, i1 } %125, 0
  %127 = extractvalue { i64, i1 } %125, 1
  br i1 %127, label %329, label %128, !prof !6

128:                                              ; preds = %121
  %129 = add nsw i64 %111, -2
  %.lowerBound32._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %129, i32 0, i32 0
  %130 = load i64, i64* %.lowerBound32._value, align 8
  %.upperBound33._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %129, i32 1, i32 0
  %131 = load i64, i64* %.upperBound33._value, align 8
  %132 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %131, i64 %130)
  %133 = extractvalue { i64, i1 } %132, 1
  br i1 %133, label %330, label %134, !prof !6

134:                                              ; preds = %128
  %135 = extractvalue { i64, i1 } %132, 0
  %136 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %126, i64 %135)
  %137 = extractvalue { i64, i1 } %136, 1
  br i1 %137, label %331, label %138, !prof !6

138:                                              ; preds = %134
  %139 = extractvalue { i64, i1 } %136, 0
  %140 = icmp slt i64 %139, %119
  br i1 %140, label %.thread, label %268

141:                                              ; preds = %110
  %.not156 = icmp eq i64 %111, 3
  br i1 %.not156, label %..thread_crit_edge, label %._crit_edge

..thread_crit_edge:                               ; preds = %141
  %.pre243 = load i64, i64* %109, align 8
  %.pre = load i64, i64* %.lowerBound46._value.phi.trans.insert, align 8
  %.pre247 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %.pre243, i64 %.pre)
  %.pre249 = extractvalue { i64, i1 } %.pre247, 0
  br label %.thread

.thread:                                          ; preds = %..thread_crit_edge, %138
  %.pre-phi250 = phi i64 [ %.pre249, %..thread_crit_edge ], [ %126, %138 ]
  %.pre-phi248 = phi { i64, i1 } [ %.pre247, %..thread_crit_edge ], [ %125, %138 ]
  %142 = extractvalue { i64, i1 } %.pre-phi248, 1
  br i1 %142, label %338, label %143, !prof !6

143:                                              ; preds = %.thread
  %144 = add nsw i64 %111, -2
  %.lowerBound48._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %144, i32 0, i32 0
  %145 = load i64, i64* %.lowerBound48._value, align 8
  %.upperBound49._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %144, i32 1, i32 0
  %146 = load i64, i64* %.upperBound49._value, align 8
  %147 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %146, i64 %145)
  %148 = extractvalue { i64, i1 } %147, 0
  %149 = extractvalue { i64, i1 } %147, 1
  br i1 %149, label %339, label %150, !prof !6

150:                                              ; preds = %143
  %.lowerBound50._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %112, i32 0, i32 0
  %151 = load i64, i64* %.lowerBound50._value, align 8
  %.upperBound51._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %112, i32 1, i32 0
  %152 = load i64, i64* %.upperBound51._value, align 8
  %153 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %152, i64 %151)
  %154 = extractvalue { i64, i1 } %153, 0
  %155 = extractvalue { i64, i1 } %153, 1
  br i1 %155, label %340, label %156, !prof !6

156:                                              ; preds = %150
  %157 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %148, i64 %154)
  %158 = extractvalue { i64, i1 } %157, 1
  br i1 %158, label %341, label %159, !prof !6

159:                                              ; preds = %156
  %160 = extractvalue { i64, i1 } %157, 0
  %161 = icmp slt i64 %160, %.pre-phi250
  br i1 %161, label %.thread154, label %266

._crit_edge:                                      ; preds = %141
  %.pre244 = load i64, i64* %.lowerBound53._value.phi.trans.insert, align 8
  %.pre245 = load i64, i64* %108, align 8
  %.pre251 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %.pre245, i64 %.pre244)
  %.pre253 = extractvalue { i64, i1 } %.pre251, 0
  br label %.thread154

.thread154:                                       ; preds = %159, %._crit_edge
  %.pre-phi254 = phi i64 [ %.pre253, %._crit_edge ], [ %148, %159 ]
  %.pre-phi252 = phi { i64, i1 } [ %.pre251, %._crit_edge ], [ %147, %159 ]
  %162 = extractvalue { i64, i1 } %.pre-phi252, 1
  br i1 %162, label %342, label %163, !prof !6

163:                                              ; preds = %.thread154
  %.lowerBound55._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %112, i32 0, i32 0
  %164 = load i64, i64* %.lowerBound55._value, align 8
  %.upperBound56._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %112, i32 1, i32 0
  %165 = load i64, i64* %.upperBound56._value, align 8
  %166 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %165, i64 %164)
  %167 = extractvalue { i64, i1 } %166, 1
  br i1 %167, label %343, label %168, !prof !6

168:                                              ; preds = %163
  %169 = extractvalue { i64, i1 } %166, 0
  %170 = icmp slt i64 %169, %.pre-phi254
  br i1 %170, label %.loopexit, label %232

.loopexit:                                        ; preds = %258, %168, %105
  %171 = phi i64 [ 1, %105 ], [ %259, %258 ], [ %111, %168 ]
  %172 = load i64, i64* %.count._value, align 8
  %173 = icmp slt i64 %87, %172
  br i1 %173, label %24, label %.loopexit163

.loopexit163:                                     ; preds = %.loopexit, %..loopexit163_crit_edge
  %174 = phi i8* [ bitcast (%struct.HeapMetadata** getelementptr inbounds (%struct._SwiftEmptyArrayStorage, %struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage, i64 1, i32 0, i32 0) to i8*), %..loopexit163_crit_edge ], [ %21, %.loopexit ]
  %175 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %..loopexit163_crit_edge ], [ %22, %.loopexit ]
  %176 = phi i64 [ %.pre246, %..loopexit163_crit_edge ], [ %171, %.loopexit ]
  %177 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %..loopexit163_crit_edge ], [ %106, %.loopexit ]
  %178 = icmp ugt i64 %176, 1
  br i1 %178, label %179, label %.loopexit298

179:                                              ; preds = %.loopexit163
  %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 %322, label %190, !prof !6

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

194:                                              ; preds = %190
  %.lowerBound10._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr9, i64 %187, i32 0, i32 0
  %195 = load i64, i64* %.lowerBound10._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_O34mainyyFSbSi_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
  %.not = icmp eq %swift.error* %203, null
  br i1 %.not, label %204, label %.loopexit297

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

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 ]
  %._storage12.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %212, i64 0, i32 1, i32 0, i32 0, i32 0
  %213 = load i64, i64* %._storage12.count._value, align 8, !range !10
  %.not145 = icmp ult i64 %188, %213
  br i1 %.not145, label %214, label %325, !prof !7

214:                                              ; preds = %211
  %215 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %212, i64 1
  %tailaddr13 = bitcast %Ts28__ContiguousArrayStorageBaseC* %215 to %TSnySiG*
  %.lowerBound14._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr13, i64 %188, i32 0, i32 0
  store i64 %192, i64* %.lowerBound14._value, align 8
  %.upperBound15._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr13, i64 %188, i32 1, i32 0
  store i64 %193, i64* %.upperBound15._value, align 8
  %216 = load i64, i64* %._storage12.count._value, align 8, !range !10
  %.not146 = icmp ugt i64 %185, %216
  br i1 %.not146, label %326, label %217, !prof !6

217:                                              ; preds = %214
  %218 = add nsw i64 %216, -1
  %219 = sub nsw i64 %218, %187
  %220 = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr13, i64 %185
  %221 = bitcast %TSnySiG* %220 to i8*
  %222 = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr13, 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* %._storage12.count._value, align 8
  %225 = icmp ugt i64 %216, 2
  br i1 %225, label %184, label %.loopexit298

.loopexit298:                                     ; preds = %217, %.loopexit163
  %.lcssa271.sink = phi %Ts28__ContiguousArrayStorageBaseC* [ %177, %.loopexit163 ], [ %212, %217 ]
  %226 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %.lcssa271.sink, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %226) #6
  %._storage6.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %175, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 0, i64* %._storage6.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 = %316, %13, %.loopexit298, %.loopexit297
  ret void

.loopexit297:                                     ; preds = %241, %194
  %.lcssa290.sink = phi %Ts28__ContiguousArrayStorageBaseC* [ %186, %194 ], [ %106, %241 ]
  %228 = phi %Ts28__ContiguousArrayStorageBaseC* [ %175, %194 ], [ %22, %241 ]
  %229 = phi %swift.error* [ %203, %194 ], [ %251, %241 ]
  %230 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %.lcssa290.sink, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %230) #6
  %._storage11.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %228, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 0, i64* %._storage11.count._value, align 8
  %231 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %228, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %231) #6
  store %swift.error* %229, %swift.error** %2, align 8
  br label %common.ret

232:                                              ; preds = %273, %266, %168
  %233 = phi i64 [ %112, %168 ], [ %.72, %266 ], [ %.73, %273 ]
  %234 = add nsw i64 %233, -1
  %.not148 = icmp ult i64 %234, %111
  br i1 %.not148, label %235, label %333, !prof !7

235:                                              ; preds = %232
  %.lowerBound37._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %234, i32 0, i32 0
  %236 = load i64, i64* %.lowerBound37._value, align 8
  %237 = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %233
  %.upperBound39._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %233, i32 1, i32 0
  %238 = load i64, i64* %.upperBound39._value, align 8
  %239 = load i64, i64* %23, align 8
  %240 = icmp eq i64 %239, 0
  br i1 %240, label %334, label %241

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

252:                                              ; preds = %241
  %253 = icmp slt i64 %238, %236
  br i1 %253, label %335, label %254, !prof !6

254:                                              ; preds = %252
  %255 = load i64, i64* %._storage21.count._value, align 8, !range !10
  %.not151 = icmp ult i64 %234, %255
  br i1 %.not151, label %256, label %336, !prof !7

256:                                              ; preds = %254
  store i64 %236, i64* %.lowerBound37._value, align 8
  %.upperBound43._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %234, i32 1, i32 0
  store i64 %238, i64* %.upperBound43._value, align 8
  %257 = load i64, i64* %._storage21.count._value, align 8, !range !10
  %.not152 = icmp ult i64 %233, %257
  br i1 %.not152, label %258, label %337, !prof !7

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

266:                                              ; preds = %159
  %267 = icmp slt i64 %.pre-phi250, %154
  %.72 = select i1 %267, i64 %144, i64 %112
  br label %232

268:                                              ; preds = %138
  %.lowerBound34._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %112, i32 0, i32 0
  %269 = load i64, i64* %.lowerBound34._value, align 8
  %.upperBound35._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr22, i64 %112, i32 1, i32 0
  %270 = load i64, i64* %.upperBound35._value, align 8
  %271 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %270, i64 %269)
  %272 = extractvalue { i64, i1 } %271, 1
  br i1 %272, label %332, label %273, !prof !6

273:                                              ; preds = %268
  %274 = extractvalue { i64, i1 } %271, 0
  %275 = icmp slt i64 %126, %274
  %.73 = select i1 %275, i64 %129, i64 %112
  br label %232

.preheader:                                       ; preds = %85, %294
  %276 = phi i64 [ %295, %294 ], [ %69, %85 ]
  br label %277

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

287:                                              ; preds = %277
  %288 = icmp eq i64 %280, 0
  br i1 %288, label %347, label %289

289:                                              ; preds = %287
  %.elt60._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %281, i64 %278, i32 1, i32 0
  %290 = load i64, i64* %.elt60._value, align 8
  %291 = bitcast <{ %TSi, %TSi }>* %284 to i8*
  %292 = bitcast <{ %TSi, %TSi }>* %282 to i8*
  tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %292, i8* noundef nonnull align 8 dereferenceable(16) %291, i64 16, i1 false)
  store i64 %283, i64* %.elt58._value, align 8
  %.elt62._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %281, i64 %279, i32 1, i32 0
  store i64 %290, i64* %.elt62._value, align 8
  %293 = icmp eq i64 %279, %25
  br i1 %293, label %294, label %277

294:                                              ; preds = %289, %277
  %295 = add i64 %276, 1
  %296 = icmp eq i64 %295, %83
  br i1 %296, label %.loopexit157, label %.preheader

297:                                              ; preds = %.preheader164, %316
  %298 = phi i64 [ %317, %316 ], [ 1, %.preheader164 ]
  br label %299

299:                                              ; preds = %311, %297
  %300 = phi i64 [ %298, %297 ], [ %301, %311 ]
  %301 = add nsw i64 %300, -1
  %302 = load i64, i64* %14, align 8
  %303 = inttoptr i64 %302 to <{ %TSi, %TSi }>*
  %304 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %303, i64 %300
  %.elt._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %304, i64 0, i32 0, i32 0
  %305 = load i64, i64* %.elt._value, align 8
  %306 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %303, i64 %301
  %.elt1._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %306, i64 0, i32 0, i32 0
  %307 = load i64, i64* %.elt1._value, align 8
  %308 = icmp slt i64 %305, %307
  br i1 %308, label %309, label %316

309:                                              ; preds = %299
  %310 = icmp eq i64 %302, 0
  br i1 %310, label %320, label %311

311:                                              ; preds = %309
  %.elt3._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %303, i64 %300, i32 1, i32 0
  %312 = load i64, i64* %.elt3._value, align 8
  %313 = bitcast <{ %TSi, %TSi }>* %306 to i8*
  %314 = bitcast <{ %TSi, %TSi }>* %304 to i8*
  tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %314, i8* noundef nonnull align 8 dereferenceable(16) %313, i64 16, i1 false)
  store i64 %305, i64* %.elt1._value, align 8
  %.elt5._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %303, i64 %301, i32 1, i32 0
  store i64 %312, i64* %.elt5._value, align 8
  %315 = icmp eq i64 %301, 0
  br i1 %315, label %316, label %299

316:                                              ; preds = %311, %299
  %317 = add nuw nsw i64 %298, 1
  %318 = icmp eq i64 %317, %3
  br i1 %318, label %common.ret, label %297

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

declare swiftcc i64 @"$ss22_minimumMergeRunLengthyS2iF"(i64) local_unnamed_addr #0

define internal swiftcc i1 @"$ss6_merge3low3mid4high6buffer2bySbSpyxG_A3GSbx_xtKXEtKlFSi_Sit_Tg5027$s7llvm_O34mainyyFSbSi_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 %20

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.cond77 = select i1 %19, i1 %18, i1 false
  br i1 %or.cond77, label %27, label %.sink.split

20:                                               ; preds = %entry
  %21 = bitcast i8* %1 to <{ %TSi, %TSi }>*
  %22 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %21, i64 %12
  %23 = bitcast <{ %TSi, %TSi }>* %22 to i8*
  %24 = icmp ugt i8* %23, %3
  %25 = icmp eq i8* %3, %1
  %or.cond80 = select i1 %25, i1 %24, i1 false
  br i1 %or.cond80, label %67, label %.sink.split68

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

27:                                               ; preds = %14, %.sink.split
  %28 = bitcast i8* %3 to <{ %TSi, %TSi }>*
  %29 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %28, i64 %9
  %30 = bitcast <{ %TSi, %TSi }>* %29 to i8*
  %31 = icmp ugt i8* %30, %3
  %32 = icmp ult i8* %1, %2
  %or.cond7 = select i1 %31, i1 %32, i1 false
  br i1 %or.cond7, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %27, %47
  %33 = phi i8* [ %48, %47 ], [ %1, %27 ]
  %34 = phi i8* [ %49, %47 ], [ %3, %27 ]
  %35 = phi i8* [ %50, %47 ], [ %0, %27 ]
  %.elt2._value = bitcast i8* %33 to i64*
  %36 = load i64, i64* %.elt2._value, align 8
  %.elt3._value = bitcast i8* %34 to i64*
  %37 = load i64, i64* %.elt3._value, align 8
  %38 = icmp slt i64 %36, %37
  br i1 %38, label %39, label %43

39:                                               ; preds = %.preheader
  %40 = getelementptr inbounds i8, i8* %33, i64 16
  %41 = icmp ult i8* %35, %40
  %42 = icmp eq i8* %35, %33
  %or.cond75 = select i1 %42, i1 %41, i1 false
  br i1 %or.cond75, label %47, label %.sink.split64

43:                                               ; preds = %.preheader
  %44 = getelementptr inbounds i8, i8* %34, i64 16
  %45 = icmp ult i8* %35, %44
  %46 = icmp eq i8* %35, %34
  %or.cond76 = select i1 %46, i1 %45, i1 false
  br i1 %or.cond76, label %47, label %.sink.split64

.sink.split64:                                    ; preds = %39, %43
  %.sink = phi i8* [ %34, %43 ], [ %33, %39 ]
  %.ph = phi i8* [ %33, %43 ], [ %40, %39 ]
  %.ph65 = phi i8* [ %44, %43 ], [ %34, %39 ]
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %35, i8* noundef nonnull align 8 dereferenceable(16) %.sink, i64 16, i1 false)
  br label %47

47:                                               ; preds = %43, %39, %.sink.split64
  %48 = phi i8* [ %.ph, %.sink.split64 ], [ %40, %39 ], [ %33, %43 ]
  %49 = phi i8* [ %.ph65, %.sink.split64 ], [ %34, %39 ], [ %44, %43 ]
  %50 = getelementptr inbounds i8, i8* %35, i64 16
  %51 = icmp ult i8* %49, %30
  %52 = icmp ult i8* %48, %2
  %or.cond11 = select i1 %51, i1 %52, i1 false
  br i1 %or.cond11, label %.preheader, label %.loopexit.loopexit

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

.loopexit:                                        ; preds = %88, %.loopexit.loopexit, %67, %27
  %.pre-phi = phi <{ %TSi, %TSi }>* [ %.pre, %.loopexit.loopexit ], [ %68, %67 ], [ %28, %27 ], [ %68, %88 ]
  %53 = phi i8* [ %30, %.loopexit.loopexit ], [ %70, %67 ], [ %30, %27 ], [ %90, %88 ]
  %54 = phi i8* [ %49, %.loopexit.loopexit ], [ %3, %67 ], [ %3, %27 ], [ %3, %88 ]
  %55 = phi i8* [ %50, %.loopexit.loopexit ], [ %1, %67 ], [ %0, %27 ], [ %89, %88 ]
  %56 = ptrtoint i8* %53 to i64
  %57 = ptrtoint i8* %54 to i64
  %58 = sub i64 %56, %57
  %59 = sdiv i64 %58, 16
  %60 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %.pre-phi, i64 %59
  %61 = bitcast <{ %TSi, %TSi }>* %60 to i8*
  %62 = icmp ult i8* %55, %61
  %63 = icmp eq i8* %55, %54
  %or.cond74 = select i1 %63, i1 %62, i1 false
  br i1 %or.cond74, label %65, label %.sink.split66

.sink.split66:                                    ; preds = %.loopexit
  %64 = shl nuw nsw i64 %59, 4
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* align 8 %55, i8* align 8 %54, i64 %64, i1 false)
  br label %65

65:                                               ; preds = %.loopexit, %.sink.split66
  ret i1 true

.sink.split68:                                    ; preds = %20
  %66 = shl nuw nsw i64 %12, 4
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* align 8 %3, i8* align 8 %1, i64 %66, i1 false)
  br label %67

67:                                               ; preds = %20, %.sink.split68
  %68 = bitcast i8* %3 to <{ %TSi, %TSi }>*
  %69 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %68, i64 %12
  %70 = bitcast <{ %TSi, %TSi }>* %69 to i8*
  %71 = icmp ugt i8* %70, %3
  %72 = icmp ult i8* %0, %1
  %or.cond23 = select i1 %71, i1 %72, i1 false
  br i1 %or.cond23, label %.preheader51, label %.loopexit

.preheader51:                                     ; preds = %67, %88
  %73 = phi i8* [ %76, %88 ], [ %2, %67 ]
  %74 = phi i8* [ %89, %88 ], [ %1, %67 ]
  %75 = phi i8* [ %90, %88 ], [ %70, %67 ]
  %76 = getelementptr inbounds i8, i8* %73, i64 -16
  %77 = getelementptr inbounds i8, i8* %75, i64 -16
  %.elt._value = bitcast i8* %77 to i64*
  %78 = load i64, i64* %.elt._value, align 8
  %79 = getelementptr inbounds i8, i8* %74, i64 -16
  %.elt1._value = bitcast i8* %79 to i64*
  %80 = load i64, i64* %.elt1._value, align 8
  %81 = icmp slt i64 %78, %80
  br i1 %81, label %82, label %85

82:                                               ; preds = %.preheader51
  %83 = icmp ult i8* %76, %74
  %84 = icmp eq i8* %73, %74
  %or.cond78 = select i1 %84, i1 %83, i1 false
  br i1 %or.cond78, label %88, label %.sink.split70

85:                                               ; preds = %.preheader51
  %86 = icmp ult i8* %76, %75
  %87 = icmp eq i8* %73, %75
  %or.cond79 = select i1 %87, i1 %86, i1 false
  br i1 %or.cond79, label %88, label %.sink.split70

.sink.split70:                                    ; preds = %82, %85
  %.sink73 = phi i8* [ %77, %85 ], [ %79, %82 ]
  %.ph71 = phi i8* [ %74, %85 ], [ %79, %82 ]
  %.ph72 = phi i8* [ %77, %85 ], [ %75, %82 ]
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %76, i8* noundef nonnull align 8 dereferenceable(16) %.sink73, i64 16, i1 false)
  br label %88

88:                                               ; preds = %85, %82, %.sink.split70
  %89 = phi i8* [ %.ph71, %.sink.split70 ], [ %79, %82 ], [ %74, %85 ]
  %90 = phi i8* [ %.ph72, %.sink.split70 ], [ %75, %82 ], [ %77, %85 ]
  %91 = icmp ugt i8* %90, %3
  %92 = icmp ugt i8* %89, %0
  %or.cond27 = select i1 %91, i1 %92, i1 false
  br i1 %or.cond27, label %.preheader51, label %.loopexit
}

; Function Attrs: noinline
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 %46, label %11, !prof !6

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

14:                                               ; preds = %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 !10
  %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
  %32 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to i8*
  %33 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 1
  %34 = bitcast %Ts28__ContiguousArrayStorageBaseC* %33 to i8*
  br i1 %0, label %37, label %35

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

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

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

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

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

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

; Function Attrs: noinline
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 !10
  %2 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSnySiG_Tgq5"(i1 false, i64 %1, i1 false, %Ts28__ContiguousArrayStorageBaseC* %0)
  ret %Ts28__ContiguousArrayStorageBaseC* %2
}

define internal swiftcc { i64, %swift.bridge* } @"$s7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV4peekSSyFTf4n_g"(%T7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV* 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_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV, %T7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV* %0, i64 0, i32 1, i32 0
  %.elements._buffer._storage = getelementptr inbounds %T7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV, %T7llvm_O37Scanner33_73E641EE209B6240D9CA5E4E565FCA33LLV* %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 !10
  %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 %74, 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 !10
  %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* [ %55, %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 !10
  %34 = icmp eq i64 %33, 0
  br i1 %34, label %9, label %.thread

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

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

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

59:                                               ; preds = %54
  %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 %72, label %.thread, !prof !6

.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 %73, !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
  ret { i64, %swift.bridge* } %71

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

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

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

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

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

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

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

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

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

4:                                                ; preds = %entry
  %5 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCys5UInt8VGMD") #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
}

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

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

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

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

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

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

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

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

define internal swiftcc i1 @"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5TA"(%TSJ* noalias nocapture readonly dereferenceable(16) %0, %swift.refcounted* nocapture readonly swiftself %1, %swift.error** noalias nocapture readnone 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
  tail call void @llvm.experimental.noalias.scope.decl(metadata !24)
  tail call void @llvm.experimental.noalias.scope.decl(metadata !27)
  %._str._guts._object._countAndFlagsBits._value.i = getelementptr inbounds %TSJ, %TSJ* %0, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0
  %6 = load i64, i64* %._str._guts._object._countAndFlagsBits._value.i, align 8, !alias.scope !24, !noalias !27
  %._str._guts._object._object.i = getelementptr inbounds %TSJ, %TSJ* %0, i64 0, i32 0, i32 0, i32 0, i32 1
  %7 = load %swift.bridge*, %swift.bridge** %._str._guts._object._object.i, align 8, !alias.scope !24, !noalias !27
  %._str1._guts._object._countAndFlagsBits._value.i = getelementptr inbounds %TSJ, %TSJ* %5, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0
  %8 = load i64, i64* %._str1._guts._object._countAndFlagsBits._value.i, align 8, !alias.scope !27, !noalias !24
  %._str1._guts._object._object.i = getelementptr inbounds %TSJ, %TSJ* %5, i64 0, i32 0, i32 0, i32 0, i32 1
  %9 = load %swift.bridge*, %swift.bridge** %._str1._guts._object._object.i, align 8, !alias.scope !27, !noalias !24
  %10 = icmp eq i64 %6, %8
  %11 = icmp eq %swift.bridge* %7, %9
  %or.cond.i = select i1 %10, i1 %11, i1 false
  br i1 %or.cond.i, label %"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5.exit", label %12

12:                                               ; preds = %entry
  %13 = tail call swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64 %6, %swift.bridge* %7, i64 %8, %swift.bridge* %9, i8 0) #21, !noalias !29
  br label %"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5.exit"

"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5.exit": ; preds = %entry, %12
  %14 = phi i1 [ %13, %12 ], [ true, %entry ]
  ret i1 %14
}

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

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: nounwind
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: nounwind
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
}

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

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

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: inaccessiblememonly nocallback nofree nosync nounwind willreturn
declare void @llvm.experimental.noalias.scope.decl(metadata) #14

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

attributes #0 = { "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { argmemonly mustprogress nocallback nofree nosync nounwind willreturn }
attributes #2 = { cold noreturn nounwind }
attributes #3 = { mustprogress nounwind willreturn }
attributes #4 = { mustprogress nocallback nofree nosync nounwind readnone speculatable willreturn }
attributes #5 = { noinline "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { mustprogress nofree noinline nounwind readonly willreturn "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { argmemonly nounwind }
attributes #9 = { argmemonly mustprogress nocallback nofree nounwind willreturn }
attributes #10 = { nofree nounwind readonly }
attributes #11 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #12 = { nounwind "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 = !{!"branch_weights", i32 1, i32 2000}
!7 = !{!"branch_weights", i32 2000, i32 1}
!8 = !{!"branch_weights", i32 4000000, i32 2001, i32 2000}
!9 = !{!"branch_weights", i32 2000, i32 2002}
!10 = !{i64 0, i64 9223372036854775807}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !16, !12}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = !{!"branch_weights", i32 2000, i32 6004}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !16, !12}
!21 = !{!22}
!22 = distinct !{!22, !23, !"$sSS8_copyingySSSsFZSSSRys5UInt8VGXEfU0_: argument 0"}
!23 = distinct !{!23, !"$sSS8_copyingySSSsFZSSSRys5UInt8VGXEfU0_"}
!24 = !{!25}
!25 = distinct !{!25, !26, !"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5: argument 0"}
!26 = distinct !{!26, !"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5"}
!27 = !{!28}
!28 = distinct !{!28, !26, !"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5: argument 1"}
!29 = !{!25, !28}
