import Foundation

func readWords<T>(_ f: (Substring) -> T) -> [T] {
    return readLine()!.split(separator: " ").map(f)
}

func main() {
    let s = readLine()!.map { String($0) }
    let q = Int(readLine()!)!

    var deque = Deque<String>()
    for c in s {
        deque.pushBack(c)
    }

    var origin = true
    for _ in 1...q {
        let query = readWords { String($0) }
        if query[0] == "1" {
            origin = !origin
        } else {
            if query[1] == "1" {
                if origin {
                    deque.pushFront(query[2])
                } else {
                    deque.pushBack(query[2])
                }
            } else {
                if origin {
                    deque.pushBack(query[2])
                } else {
                    deque.pushFront(query[2])
                }
            }
        }
    }

    var ans = [String]()
    while let c = origin ? deque.popFront() : deque.popBack() {
        ans.append(c)
    }

    print(ans.joined(separator: ""))
}

private struct Deque<T> {
    public var buffer: [T?]
    private var head: Int
    private var tail: Int

    init() {
        buffer = [T?](repeating: nil, count: 8)
        head = 0
        tail = 0
    }

    public var isEmpty: Bool {
        return tail == head
    }

    public var capacity: Int {
        return buffer.count
    }
    
    public var count: Int {
        return (head &- tail) & (capacity - 1)
    }
    
    public var isFull: Bool {
        return capacity - count == 1
    }
    
    
    private func wrapIndex(index: Int, size: Int) -> Int {
        return index & (size - 1)
    }
    
    private func wrapAdd(index: Int, append: Int) -> Int {
        return wrapIndex(index: index &+ append, size: capacity)
    }
    
    private func wrapSub(index: Int, subtrahend: Int) -> Int {
        return wrapIndex(index: index &- subtrahend, size: capacity)
    }

    mutating func growIfNecessary() {
        if isFull {
            let oldCap = capacity
            buffer.append(contentsOf: Array(repeating: nil, count: oldCap))
            handleCapacityIncrease(oldCap: oldCap)
        }
    }
    
    private mutating func handleCapacityIncrease(oldCap: Int) {
        let newCap = capacity
        
        //  T      H
        // [ooooooo.]
        //  T      H
        // [ooooooo.........]
        if tail <= head {
            // nop
        }
        //    HT
        // [oo.ooooo]
        //     T      H
        // [...ooooooo......]
        else if head < oldCap - tail {
            buffer.withUnsafeMutableBufferPointer { buf in
                let base = buf.baseAddress!
                for i in 0...head {
                    swap(&base[i], &base[i+oldCap])
                }
            }
            head += oldCap
        }
        //       HT
        // [ooooo.oo]
        //       H        T
        // [ooooo.........oo]
        else {
            let newTail = newCap - (oldCap - tail)
            buffer.withUnsafeMutableBufferPointer { buf in
                let base = buf.baseAddress!
                for i in tail..<oldCap {
                    swap(&base[i], &base[i-tail+newTail])
                }
            }
            tail = newTail
        }
    }

    public mutating func pushBack(_ element: T) {
        growIfNecessary()

        let head = self.head
        self.head = wrapAdd(index: self.head, append: 1)
        buffer[head] = element
    }

    public mutating func pushFront(_ element: T) {
        growIfNecessary()

        self.tail = wrapSub(index: self.tail, subtrahend: 1)
        let tail = self.tail
        buffer[tail] = element
    }

    mutating func popBack() -> T? {
        if isEmpty {
            return nil
        } else {
            self.head = wrapSub(index: self.head, subtrahend: 1)
            let head = self.head
            return buffer[head]
        }
    }
    
    mutating func popFront() -> T? {
        if isEmpty {
            return nil
        } else {
            let tail = self.tail
            self.tail = wrapAdd(index: self.tail, append: 1)
            return buffer[tail]
        }
    }

    func peekFront() -> T? {
        if isEmpty {
            return nil
        } else {
            return buffer[head]
        }
    }

    func peekBack() -> T? {
        if isEmpty {
            return nil
        } else {
            return buffer[tail]
        }
    }
}

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

%struct._SwiftEmptyArrayStorage = type { %struct.HeapObject, %struct._SwiftArrayBodyStorage }
%struct.HeapObject = type { %struct.HeapMetadata*, %struct.InlineRefCountsPlaceholder }
%struct.HeapMetadata = type opaque
%struct.InlineRefCountsPlaceholder = type { i64 }
%struct._SwiftArrayBodyStorage = type { i64, i64 }
%swift.protocol_conformance_descriptor = type { i32, i32, i32, i32 }
%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 }
%Ts28__ContiguousArrayStorageBaseC = type <{ %swift.refcounted, %Ts10_ArrayBodyV }>
%Ts10_ArrayBodyV = type <{ %TSo22_SwiftArrayBodyStorageV }>
%TSo22_SwiftArrayBodyStorageV = type <{ %TSi, %TSu }>
%TSi = type <{ i64 }>
%TSu = type <{ i64 }>
%swift.opaque = type opaque
%TSJ = type <{ %TSS }>
%TSS = type <{ %Ts11_StringGutsV }>
%Ts11_StringGutsV = type <{ %Ts13_StringObjectV }>
%Ts13_StringObjectV = type <{ %Ts6UInt64V, %swift.bridge* }>
%Ts6UInt64V = type <{ i64 }>
%swift.bridge = type opaque
%swift.error = type opaque
%TSa = type <{ %Ts22_ContiguousArrayBufferV }>
%Ts22_ContiguousArrayBufferV = type <{ %Ts28__ContiguousArrayStorageBaseC* }>
%Ts15ContiguousArrayV = type <{ %Ts22_ContiguousArrayBufferV }>
%Ts5UInt8V = type <{ i8 }>
%TSSSg = type <{ [16 x i8] }>
%Ts16IndexingIteratorVySs8UTF8ViewVG = type <{ %TSs8UTF8ViewV, %TSS5IndexV }>
%TSs8UTF8ViewV = type <{ %Ts5SliceVySS8UTF8ViewVG }>
%Ts5SliceVySS8UTF8ViewVG = type <{ %TSS5IndexV, %TSS5IndexV, %TSS8UTF8ViewV }>
%TSS8UTF8ViewV = type <{ %Ts11_StringGutsV }>
%TSS5IndexV = type <{ %Ts6UInt64V }>
%TSs = type <{ %Ts5SliceVySSG }>
%Ts5SliceVySSG = type <{ %TSS5IndexV, %TSS5IndexV, %TSS }>

@_swiftEmptyArrayStorage = external global %struct._SwiftEmptyArrayStorage, 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
@"$sSaySsGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ [6 x i8], i8 }>* @"symbolic SaySsG" to i64), i64 ptrtoint ({ i32, i32 }* @"$sSaySsGMD" to i64)) to i32), i32 -6 }, align 8
@"$sSaySsGSayxGSlsWL" = linkonce_odr hidden local_unnamed_addr global i8** null, align 8
@"$sSayxGSlsMc" = external global %swift.protocol_conformance_descriptor, align 4
@"symbolic SSSg" = linkonce_odr hidden constant <{ [4 x i8], i8 }> <{ [4 x i8] c"SSSg", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$sSSSgMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ [4 x i8], i8 }>* @"symbolic SSSg" to i64), i64 ptrtoint ({ i32, i32 }* @"$sSSSgMD" to i64)) to i32), i32 -4 }, 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
@"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
@"$sSaySSGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ [6 x i8], i8 }>* @"symbolic SaySSG" to i64), i64 ptrtoint ({ i32, i32 }* @"$sSaySSGMD" to i64)) to i32), i32 -6 }, align 8
@"$sSaySSGSayxGSKsWL" = linkonce_odr hidden local_unnamed_addr global i8** null, align 8
@"$sSayxGSKsMc" = external global %swift.protocol_conformance_descriptor, align 4
@"$sSSN" = 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 _____ySSSgG s23_ContiguousArrayStorageC" = linkonce_odr hidden constant <{ i8, i32, [6 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, [6 x i8], i8 }>, <{ i8, i32, [6 x i8], i8 }>* @"symbolic _____ySSSgG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [6 x i8] c"ySSSgG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCySSSgGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [6 x i8], i8 }>* @"symbolic _____ySSSgG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCySSSgGMD" to i64)) to i32), i32 -11 }, 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
@"$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
@"\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.2" = 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.2", i32 0, i32 3) to i64)) to i32) }, section "swift5_capture", no_sanitize_address, align 4
@metadata.4 = private constant %swift.full_boxmetadata { void (%swift.refcounted*)* @objectdestroy.3, i8** null, %swift.type { i64 1024 }, i32 16, i8* bitcast ({ i32, i32, i32, i32 }* @"\01l__swift5_reflection_descriptor.2" 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 [172 x i8] c"-lFoundation\00-lswiftCore\00-lswift_StringProcessing\00-lswift_RegexParser\00-lswift_Concurrency\00-lswiftGlibc\00-lm\00-lpthread\00-lutil\00-ldl\00-lswiftDispatch\00-ldispatch\00-lBlocksRuntime\00", section ".swift1_autolink_entries", no_sanitize_address, align 8
@llvm.compiler.used = appending global [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.2" to i8*), i8* bitcast ({ i32, i32 }* @"\01l_entry_point" to i8*), i8* bitcast (i16* @__swift_reflection_version to i8*), i8* getelementptr inbounds ([172 x i8], [172 x i8]* @_swift1_autolink_entries, i32 0, i32 0), i8* bitcast (i32 (i32, i8**)* @main to i8*)], section "llvm.metadata"

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

; Function Attrs: minsize optsize
define hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$s7llvm_OZ9readWordsySayxGxSsXElF"(i8* %0, %swift.opaque* %1, %swift.type* %T) local_unnamed_addr #0 {
entry:
  %2 = alloca %TSJ, align 8
  %swifterror = alloca swifterror %swift.error*, align 8
  store %swift.error* null, %swift.error** %swifterror, align 8
  %3 = alloca %TSa, align 8
  %4 = tail call swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1 true)
  %5 = extractvalue { i64, i64 } %4, 1
  %6 = icmp eq i64 %5, 0
  br i1 %6, label %30, label %7

7:                                                ; preds = %entry
  %8 = extractvalue { i64, i64 } %4, 0
  %9 = inttoptr i64 %5 to %swift.bridge*
  %10 = bitcast %TSJ* %2 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %10)
  %._str._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %2, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0
  store i64 32, i64* %._str._guts._object._countAndFlagsBits._value, align 8
  %._str._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %2, i64 0, i32 0, i32 0, i32 0, i32 1
  store %swift.bridge* inttoptr (i64 -2233785415175766016 to %swift.bridge*), %swift.bridge** %._str._guts._object._object, align 8
  %spsave = tail call i8* @llvm.stacksave()
  %11 = alloca [24 x i8], align 16
  %12 = bitcast [24 x i8]* %11 to %swift.opaque*
  %13 = getelementptr inbounds [24 x i8], [24 x i8]* %11, i64 0, i64 16
  %14 = bitcast i8* %13 to %TSJ**
  store %TSJ* %2, %TSJ** %14, align 16
  %15 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* nonnull returned %9) #5
  %16 = 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 %12, i64 %8, %swift.bridge* nonnull %9, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %9) #5
  call void @llvm.stackrestore(i8* %spsave)
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %10)
  %17 = bitcast %TSa* %3 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %17)
  %._buffer._storage = getelementptr inbounds %TSa, %TSa* %3, i64 0, i32 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* %16, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %spsave1 = call i8* @llvm.stacksave()
  %18 = alloca [40 x i8], align 16
  %19 = bitcast [40 x i8]* %18 to %swift.opaque*
  %20 = getelementptr inbounds [40 x i8], [40 x i8]* %18, i64 0, i64 16
  %21 = bitcast i8* %20 to %swift.type**
  store %swift.type* %T, %swift.type** %21, align 16
  %22 = getelementptr inbounds [40 x i8], [40 x i8]* %18, i64 0, i64 24
  %.fn = bitcast i8* %22 to i8**
  store i8* %0, i8** %.fn, align 8
  %.data = getelementptr inbounds [40 x i8], [40 x i8]* %18, i64 0, i64 32
  %23 = bitcast i8* %.data to %swift.opaque**
  store %swift.opaque* %1, %swift.opaque** %23, align 16
  %24 = call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$sSaySsGMD") #18
  %25 = call i8** @"$sSaySsGSayxGSlsWlTm"(i8*** @"$sSaySsGSayxGSlsWL", { i32, i32 }* @"$sSaySsGMD", %swift.protocol_conformance_descriptor* @"$sSayxGSlsMc")
  %26 = bitcast %TSa* %3 to %swift.opaque*
  %27 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE3mapySayqd__Gqd__7ElementQzKXEKlF"(i8* nonnull bitcast (void (%swift.opaque*, %TSs*, %swift.refcounted*, %swift.error**)* @"$sSsxs5Error_pIggrzo_SsxsAA_pIegnrzo_lTRTA" to i8*), %swift.opaque* nonnull %19, %swift.type* %24, %swift.type* %T, i8** %25, %swift.opaque* noalias nocapture nonnull swiftself %26, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  %28 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %29 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %28, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %29) #5
  call void @llvm.stackrestore(i8* %spsave1)
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %17)
  ret %Ts28__ContiguousArrayStorageBaseC* %27

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

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE3mapySayqd__Gqd__7ElementQzKXEKlFSaySsG_SSTg585$sSsxs5Error_pIggrzo_SsxsAA_pIegnrzo_lTRSS_TG528$s7llvm_OZ4mainyyFSSSsXEfU0_Tf3nnpf_nTf1cn_n"(%Ts28__ContiguousArrayStorageBaseC* %0, %swift.refcounted* swiftself %1, %swift.error** noalias nocapture swifterror dereferenceable(8) %2) local_unnamed_addr #0 {
entry:
  %3 = alloca %Ts15ContiguousArrayV, align 8
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 0, i32 1, i32 0, i32 0, i32 0
  %4 = load i64, i64* %._storage.count._value, align 8, !range !6
  %5 = icmp eq i64 %4, 0
  br i1 %5, label %10, label %6

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

10:                                               ; preds = %entry, %36
  %11 = phi %Ts28__ContiguousArrayStorageBaseC* [ %33, %36 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %entry ]
  ret %Ts28__ContiguousArrayStorageBaseC* %11

12:                                               ; preds = %6, %32
  %13 = phi i64 [ 0, %6 ], [ %15, %32 ]
  %14 = phi %Ts28__ContiguousArrayStorageBaseC* [ %8, %6 ], [ %33, %32 ]
  %15 = add nuw nsw i64 %13, 1
  %16 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %9, i64 %13
  %._slice._startIndex._rawBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %16 to i64*
  %17 = load i64, i64* %._slice._startIndex._rawBits._value, align 8
  %._slice._endIndex = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 0, i32 0, i32 1
  %18 = load i64, i64* %._slice._endIndex, align 8
  %._slice._base = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, 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
  %19 = 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
  %20 = bitcast %TSu* %._slice._base._guts._object._object to %swift.bridge**
  %21 = load %swift.bridge*, %swift.bridge** %20, align 8
  %22 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %21) #5
  %23 = tail call swiftcc { i64, %swift.bridge* } @"$sSS14_fromSubstringySSSshFZ"(i64 %17, i64 %18, i64 %19, %swift.bridge* %21)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %21) #5
  %24 = extractvalue { i64, %swift.bridge* } %23, 0
  %25 = extractvalue { i64, %swift.bridge* } %23, 1
  store %Ts28__ContiguousArrayStorageBaseC* %14, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage3.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %14, i64 0, i32 1, i32 0, i32 0, i32 0
  %26 = load i64, i64* %._storage3.count._value, align 8, !range !6
  %._storage3._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %14, i64 0, i32 1, i32 0, i32 1, i32 0
  %27 = load i64, i64* %._storage3._capacityAndFlags._value, align 8
  %28 = lshr i64 %27, 1
  %29 = add nuw nsw i64 %26, 1
  %.not10 = icmp ugt i64 %28, %26
  br i1 %.not10, label %32, label %30, !prof !7

30:                                               ; preds = %12
  %31 = icmp ugt i64 %27, 1
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSS_Tg5"(i1 %31, i64 %29, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %3)
  %.pre = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %32

32:                                               ; preds = %12, %30
  %33 = phi %Ts28__ContiguousArrayStorageBaseC* [ %14, %12 ], [ %.pre, %30 ]
  %._storage4.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %33, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %29, i64* %._storage4.count._value, align 8
  %34 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %33, i64 1
  %tailaddr5 = bitcast %Ts28__ContiguousArrayStorageBaseC* %34 to %TSS*
  %._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %tailaddr5, i64 %26, i32 0, i32 0, i32 0, i32 0
  store i64 %24, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %TSS, %TSS* %tailaddr5, i64 %26, i32 0, i32 0, i32 1
  store %swift.bridge* %25, %swift.bridge** %._guts._object._object, align 8
  %35 = icmp eq i64 %15, %4
  br i1 %35, label %36, label %12

36:                                               ; preds = %32
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %7)
  br label %10
}

; Function Attrs: minsize optsize
declare swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE3mapySayqd__Gqd__7ElementQzKXEKlF"(i8*, %swift.opaque*, %swift.type*, %swift.type*, i8**, %swift.opaque* noalias nocapture swiftself, %swift.error** noalias nocapture swifterror dereferenceable(8)) local_unnamed_addr #0

; Function Attrs: minsize optsize
define hidden swiftcc void @"$s7llvm_OZ4mainyyF"() local_unnamed_addr #0 {
entry:
  %0 = alloca %Ts15ContiguousArrayV, align 8
  %.sroa.6 = alloca i8, align 8
  %1 = alloca %TSa, align 8
  %2 = alloca %TSJ, align 8
  %swifterror = alloca swifterror %swift.error*, align 8
  store %swift.error* null, %swift.error** %swifterror, align 8
  %3 = alloca %TSa, align 8
  %4 = alloca <{ %Ts6UInt64V, %Ts6UInt64V }>, align 8
  %5 = tail call swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1 true)
  %6 = extractvalue { i64, i64 } %5, 0
  %7 = extractvalue { i64, i64 } %5, 1
  %8 = icmp eq i64 %7, 0
  br i1 %8, label %1034, label %9

9:                                                ; preds = %entry
  %10 = inttoptr i64 %7 to %swift.bridge*
  %11 = tail call swiftcc i64 @"$sSS5countSivg"(i64 %6, %swift.bridge* nonnull %10)
  %12 = icmp eq i64 %11, 0
  br i1 %12, label %13, label %14

13:                                               ; preds = %9
  tail call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %10) #5
  br label %26

14:                                               ; preds = %9
  %15 = bitcast %Ts15ContiguousArrayV* %0 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %15)
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %0, i64 0, i32 0, i32 0
  %16 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* nonnull bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %swift.refcounted*)) #19
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br i1 %16, label %17, label %21

17:                                               ; preds = %14
  %18 = load i64, i64* getelementptr inbounds (%struct._SwiftEmptyArrayStorage, %struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage, i64 0, i32 1, i32 1), align 8
  %19 = lshr i64 %18, 1
  %20 = icmp slt i64 %19, %11
  br i1 %20, label %21, label %24, !prof !8

21:                                               ; preds = %17, %14
  %22 = load i64, i64* getelementptr inbounds (%struct._SwiftEmptyArrayStorage, %struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage, i64 0, i32 1, i32 0), align 8, !range !6
  %23 = tail call i64 @llvm.smax.i64(i64 %22, i64 %11)
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSS_Tg5"(i1 %16, i64 %23, i1 false, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %0)
  br label %24

24:                                               ; preds = %17, %21
  %25 = icmp slt i64 %11, 0
  br i1 %25, label %1035, label %.preheader353.preheader, !prof !8

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

26:                                               ; preds = %13, %66
  %27 = phi %Ts28__ContiguousArrayStorageBaseC* [ %61, %66 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %13 ]
  %28 = tail call swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1 true)
  %29 = extractvalue { i64, i64 } %28, 0
  %30 = extractvalue { i64, i64 } %28, 1
  %31 = icmp eq i64 %30, 0
  br i1 %31, label %1036, label %32

32:                                               ; preds = %26
  %33 = inttoptr i64 %30 to %swift.bridge*
  %34 = and i64 %30, 2305843009213693952
  %35 = icmp eq i64 %34, 0
  %36 = lshr i64 %30, 56
  %37 = and i64 %36, 15
  %38 = and i64 %29, 281474976710655
  %39 = select i1 %35, i64 %38, i64 %37
  %40 = icmp eq i64 %39, 0
  br i1 %40, label %67, label %68, !prof !8

.preheader353:                                    ; preds = %.preheader353.preheader, %60
  %41 = phi %Ts28__ContiguousArrayStorageBaseC* [ %61, %60 ], [ %.pre, %.preheader353.preheader ]
  %42 = phi i64 [ %62, %60 ], [ 0, %.preheader353.preheader ]
  %43 = phi i64 [ %64, %60 ], [ 15, %.preheader353.preheader ]
  %44 = tail call swiftcc { i64, %swift.bridge* } @"$sSSySJSS5IndexVcig"(i64 %43, i64 %6, %swift.bridge* nonnull %10)
  %45 = extractvalue { i64, %swift.bridge* } %44, 0
  %46 = extractvalue { i64, %swift.bridge* } %44, 1
  %47 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %41, i64 0, i32 0
  %48 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %47) #19
  br i1 %48, label %52, label %49

49:                                               ; preds = %.preheader353
  %._storage5.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %41, i64 0, i32 1, i32 0, i32 0, i32 0
  %50 = load i64, i64* %._storage5.count._value, align 8, !range !6
  %51 = add nuw nsw i64 %50, 1
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSS_Tg5"(i1 false, i64 %51, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %0)
  %.pre401 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %52

52:                                               ; preds = %.preheader353, %49
  %53 = phi %Ts28__ContiguousArrayStorageBaseC* [ %41, %.preheader353 ], [ %.pre401, %49 ]
  %._storage6.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %53, i64 0, i32 1, i32 0, i32 0, i32 0
  %54 = load i64, i64* %._storage6.count._value, align 8, !range !6
  %._storage7._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %53, i64 0, i32 1, i32 0, i32 1, i32 0
  %55 = load i64, i64* %._storage7._capacityAndFlags._value, align 8
  %56 = lshr i64 %55, 1
  %57 = add nuw nsw i64 %54, 1
  %.not = icmp ugt i64 %56, %54
  br i1 %.not, label %60, label %58, !prof !7

58:                                               ; preds = %52
  %59 = icmp ugt i64 %55, 1
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSS_Tg5"(i1 %59, i64 %57, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %0)
  %.pre402 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %60

60:                                               ; preds = %52, %58
  %61 = phi %Ts28__ContiguousArrayStorageBaseC* [ %53, %52 ], [ %.pre402, %58 ]
  %62 = add i64 %42, 1
  %._storage8.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %61, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %57, i64* %._storage8.count._value, align 8
  %63 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %61, i64 1
  %tailaddr = bitcast %Ts28__ContiguousArrayStorageBaseC* %63 to %TSS*
  %._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %tailaddr, i64 %54, i32 0, i32 0, i32 0, i32 0
  store i64 %45, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %TSS, %TSS* %tailaddr, i64 %54, i32 0, i32 0, i32 1
  store %swift.bridge* %46, %swift.bridge** %._guts._object._object, align 8
  %64 = tail call swiftcc i64 @"$sSS5index5afterSS5IndexVAD_tF"(i64 %43, i64 %6, %swift.bridge* nonnull %10)
  %65 = icmp eq i64 %62, %11
  br i1 %65, label %66, label %.preheader353

66:                                               ; preds = %60
  tail call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %10) #5
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %15)
  br label %26

67:                                               ; preds = %32
  tail call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %33) #5
  br label %1037

68:                                               ; preds = %32
  call void @llvm.lifetime.start.p0i8(i64 1, i8* nonnull %.sroa.6)
  %69 = and i64 %30, 1152921504606846976
  %70 = icmp eq i64 %69, 0
  br i1 %70, label %71, label %.thread406, !prof !7

71:                                               ; preds = %68
  br i1 %35, label %72, label %75

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

72:                                               ; preds = %71
  %73 = and i64 %29, 1152921504606846976
  %74 = icmp eq i64 %73, 0
  br i1 %74, label %84, label %88, !prof !8

75:                                               ; preds = %71
  %76 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %4 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %76)
  %77 = and i64 %30, 72057594037927935
  %.elt._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %4, i64 0, i32 0, i32 0
  store i64 %29, i64* %.elt._value, align 8
  %.elt149._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %4, i64 0, i32 1, i32 0
  store i64 %77, i64* %.elt149._value, align 8
  %78 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %4 to %Ts5UInt8V*
  %79 = trunc i64 %29 to i8
  %80 = lshr i64 %29, 8
  %81 = trunc i64 %80 to i8
  %82 = lshr i64 %29, 16
  %83 = trunc i64 %82 to i8
  switch i8 %79, label %144 [
    i8 45, label %109
    i8 43, label %146
  ]

84:                                               ; preds = %72
  %85 = tail call swiftcc { i64, i64 } @"$ss13_StringObjectV10sharedUTF8SRys5UInt8VGvg"(i64 %29, %swift.bridge* nonnull %33)
  %86 = extractvalue { i64, i64 } %85, 0
  %87 = extractvalue { i64, i64 } %85, 1
  br label %.thread409

88:                                               ; preds = %72
  %89 = and i64 %30, 1152921504606846975
  %90 = add nuw nsw i64 %89, 32
  br label %.thread409

.thread409:                                       ; preds = %88, %84
  %91 = phi i64 [ %90, %88 ], [ %86, %84 ]
  %92 = phi i64 [ %38, %88 ], [ %87, %84 ]
  %93 = call swiftcc { i64, i8 } @"$ss17FixedWidthIntegerPsE_5radixxSgqd___SitcSyRd__lufcADSRys5UInt8VGXEfU_AGSiADs5Error_psAARzSSRsd__r__lIetyyrzo_Tpq5Si_Tg5Tm"(i64 %91, i64 %92, i64 10, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture swifterror dereferenceable(8) %swifterror)
  %94 = load %swift.error*, %swift.error** %swifterror, align 8
  %.not304 = icmp eq %swift.error* %94, null
  tail call void @llvm.assume(i1 %.not304)
  %95 = extractvalue { i64, i8 } %93, 1
  %96 = and i8 %95, 1
  %97 = icmp ne i8 %96, 0
  %98 = extractvalue { i64, i8 } %93, 0
  %.sroa.6.0.sroa_cast400 = bitcast i8* %.sroa.6 to i1*
  store i1 %97, i1* %.sroa.6.0.sroa_cast400, align 8
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre411 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %102

.thread414:                                       ; preds = %109, %146, %144
  %.sroa.6.0.sroa_cast417 = bitcast i8* %.sroa.6 to i1*
  store i1 true, i1* %.sroa.6.0.sroa_cast417, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %76)
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre418 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %102

.loopexit349.thread:                              ; preds = %183, %189, %180, %186, %192, %147, %154, %151, %157, %110, %118, %114, %121
  %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8..ph = phi i1 [ true, %183 ], [ true, %189 ], [ false, %180 ], [ false, %186 ], [ false, %192 ], [ true, %147 ], [ true, %154 ], [ false, %151 ], [ false, %157 ], [ true, %110 ], [ true, %118 ], [ false, %114 ], [ false, %121 ]
  %.sroa.0.0.ph = phi i64 [ 0, %183 ], [ 0, %189 ], [ 0, %180 ], [ %187, %186 ], [ %195, %192 ], [ 0, %147 ], [ 0, %154 ], [ %152, %151 ], [ %160, %157 ], [ 0, %110 ], [ 0, %118 ], [ %116, %114 ], [ %124, %121 ]
  %.sroa.6.0.sroa_cast421 = 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_cast421, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %76)
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre422 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %102

.loopexit349.loopexit.split.loop.exit:            ; preds = %211
  %99 = extractvalue { i64, i1 } %209, 0
  br label %.loopexit349

.loopexit349.loopexit425.split.loop.exit:         ; preds = %140
  %100 = extractvalue { i64, i1 } %138, 0
  br label %.loopexit349

.loopexit349.loopexit428.split.loop.exit:         ; preds = %176
  %101 = extractvalue { i64, i1 } %174, 0
  br label %.loopexit349

.loopexit349:                                     ; preds = %.preheader350, %168, %171, %.preheader347, %132, %135, %.preheader344, %203, %206, %.loopexit349.loopexit428.split.loop.exit, %.loopexit349.loopexit425.split.loop.exit, %.loopexit349.loopexit.split.loop.exit
  %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8. = phi i1 [ false, %.loopexit349.loopexit.split.loop.exit ], [ false, %.loopexit349.loopexit425.split.loop.exit ], [ false, %.loopexit349.loopexit428.split.loop.exit ], [ true, %206 ], [ true, %203 ], [ true, %.preheader344 ], [ true, %135 ], [ true, %132 ], [ true, %.preheader347 ], [ true, %171 ], [ true, %168 ], [ true, %.preheader350 ]
  %.sroa.0.0 = phi i64 [ %99, %.loopexit349.loopexit.split.loop.exit ], [ %100, %.loopexit349.loopexit425.split.loop.exit ], [ %101, %.loopexit349.loopexit428.split.loop.exit ], [ 0, %206 ], [ 0, %203 ], [ 0, %.preheader344 ], [ 0, %135 ], [ 0, %132 ], [ 0, %.preheader347 ], [ 0, %171 ], [ 0, %168 ], [ 0, %.preheader350 ]
  %.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 %76)
  %.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 %70, label %102, label %103

102:                                              ; preds = %.loopexit349.thread, %.thread414, %.thread409, %.loopexit349
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre413 = phi i8 [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre411, %.thread409 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre, %.loopexit349 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre418, %.thread414 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre422, %.loopexit349.thread ]
  %.sroa.0204.0412 = phi i64 [ %98, %.thread409 ], [ %.sroa.0.0, %.loopexit349 ], [ 0, %.thread414 ], [ %.sroa.0.0.ph, %.loopexit349.thread ]
  call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %33) #5
  br label %107

103:                                              ; preds = %.thread406, %.loopexit349
  %104 = call swiftcc { i64, i8 } @"$ss13_parseInteger5ascii5radixq_Sgx_SitSyRzs010FixedWidthB0R_r0_lFSSSiADSSRszsAER_r0_lIetgyr_Tpq5Si_Tg5"(i64 %29, %swift.bridge* nonnull %33, i64 10)
  call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %33) #5
  %105 = extractvalue { i64, i8 } %104, 0
  %106 = extractvalue { i64, i8 } %104, 1
  br label %107

107:                                              ; preds = %102, %103
  %108 = phi i64 [ %105, %103 ], [ %.sroa.0204.0412, %102 ]
  %.in302.in = phi i8 [ %106, %103 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre413, %102 ]
  %.in302 = and i8 %.in302.in, 1
  %.not303 = icmp eq i8 %.in302, 0
  br i1 %.not303, label %215, label %1037

109:                                              ; preds = %75
  switch i64 %37, label %110 [
    i64 0, label %1107
    i64 1, label %.thread414
  ], !prof !9

110:                                              ; preds = %109
  %111 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %78, i64 %37, i32 0
  %112 = add i8 %81, -48
  %113 = icmp ult i8 %112, 10
  br i1 %113, label %114, label %.loopexit349.thread, !prof !10

114:                                              ; preds = %110
  %115 = zext i8 %112 to i64
  %116 = sub nsw i64 0, %115
  %117 = icmp eq i64 %37, 2
  br i1 %117, label %.loopexit349.thread, label %118

118:                                              ; preds = %114
  %119 = add i8 %83, -48
  %120 = icmp ult i8 %119, 10
  br i1 %120, label %121, label %.loopexit349.thread, !prof !10

121:                                              ; preds = %118
  %122 = mul nsw i64 %115, -10
  %123 = zext i8 %119 to i64
  %124 = sub nsw i64 %122, %123
  %125 = icmp eq i64 %37, 3
  br i1 %125, label %.loopexit349.thread, label %.preheader347.preheader

.preheader347.preheader:                          ; preds = %121
  %126 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %78, i64 3, i32 0
  br label %.preheader347

.preheader347:                                    ; preds = %.preheader347.preheader, %140
  %127 = phi i8* [ %142, %140 ], [ %126, %.preheader347.preheader ]
  %128 = phi i64 [ %141, %140 ], [ %124, %.preheader347.preheader ]
  %129 = load i8, i8* %127, align 1
  %130 = add i8 %129, -48
  %131 = icmp ult i8 %130, 10
  br i1 %131, label %132, label %.loopexit349, !prof !10

132:                                              ; preds = %.preheader347
  %133 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %128, i64 10)
  %134 = extractvalue { i64, i1 } %133, 1
  br i1 %134, label %.loopexit349, label %135

135:                                              ; preds = %132
  %136 = extractvalue { i64, i1 } %133, 0
  %137 = zext i8 %130 to i64
  %138 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %136, i64 %137)
  %139 = extractvalue { i64, i1 } %138, 1
  br i1 %139, label %.loopexit349, label %140, !prof !8

140:                                              ; preds = %135
  %141 = extractvalue { i64, i1 } %138, 0
  %142 = getelementptr inbounds i8, i8* %127, i64 1
  %143 = icmp eq i8* %142, %111
  br i1 %143, label %.loopexit349.loopexit425.split.loop.exit, label %.preheader347

144:                                              ; preds = %75
  %145 = icmp eq i64 %37, 0
  br i1 %145, label %.thread414, label %180, !prof !8

146:                                              ; preds = %75
  switch i64 %37, label %147 [
    i64 0, label %1106
    i64 1, label %.thread414
  ], !prof !9

147:                                              ; preds = %146
  %148 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %78, i64 %37, i32 0
  %149 = add i8 %81, -48
  %150 = icmp ult i8 %149, 10
  br i1 %150, label %151, label %.loopexit349.thread, !prof !10

151:                                              ; preds = %147
  %152 = zext i8 %149 to i64
  %153 = icmp eq i64 %37, 2
  br i1 %153, label %.loopexit349.thread, label %154

154:                                              ; preds = %151
  %155 = add i8 %83, -48
  %156 = icmp ult i8 %155, 10
  br i1 %156, label %157, label %.loopexit349.thread, !prof !10

157:                                              ; preds = %154
  %158 = mul nuw nsw i64 %152, 10
  %159 = zext i8 %155 to i64
  %160 = add nuw nsw i64 %158, %159
  %161 = icmp eq i64 %37, 3
  br i1 %161, label %.loopexit349.thread, label %.preheader350.preheader

.preheader350.preheader:                          ; preds = %157
  %162 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %78, i64 3, i32 0
  br label %.preheader350

.preheader350:                                    ; preds = %.preheader350.preheader, %176
  %163 = phi i8* [ %178, %176 ], [ %162, %.preheader350.preheader ]
  %164 = phi i64 [ %177, %176 ], [ %160, %.preheader350.preheader ]
  %165 = load i8, i8* %163, align 1
  %166 = add i8 %165, -48
  %167 = icmp ult i8 %166, 10
  br i1 %167, label %168, label %.loopexit349, !prof !10

168:                                              ; preds = %.preheader350
  %169 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %164, i64 10)
  %170 = extractvalue { i64, i1 } %169, 1
  br i1 %170, label %.loopexit349, label %171

171:                                              ; preds = %168
  %172 = extractvalue { i64, i1 } %169, 0
  %173 = zext i8 %166 to i64
  %174 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %172, i64 %173)
  %175 = extractvalue { i64, i1 } %174, 1
  br i1 %175, label %.loopexit349, label %176, !prof !8

176:                                              ; preds = %171
  %177 = extractvalue { i64, i1 } %174, 0
  %178 = getelementptr inbounds i8, i8* %163, i64 1
  %179 = icmp eq i8* %178, %148
  br i1 %179, label %.loopexit349.loopexit428.split.loop.exit, label %.preheader350

180:                                              ; preds = %144
  %181 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %78, i64 %37, i32 0
  %182 = icmp eq i8* %181, %76
  br i1 %182, label %.loopexit349.thread, label %183

183:                                              ; preds = %180
  %184 = add i8 %79, -48
  %185 = icmp ult i8 %184, 10
  br i1 %185, label %186, label %.loopexit349.thread, !prof !10

186:                                              ; preds = %183
  %187 = zext i8 %184 to i64
  %188 = icmp eq i64 %37, 1
  br i1 %188, label %.loopexit349.thread, label %189

189:                                              ; preds = %186
  %190 = add i8 %81, -48
  %191 = icmp ult i8 %190, 10
  br i1 %191, label %192, label %.loopexit349.thread, !prof !10

192:                                              ; preds = %189
  %193 = mul nuw nsw i64 %187, 10
  %194 = zext i8 %190 to i64
  %195 = add nuw nsw i64 %193, %194
  %196 = icmp eq i64 %37, 2
  br i1 %196, label %.loopexit349.thread, label %.preheader344.preheader

.preheader344.preheader:                          ; preds = %192
  %197 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %78, i64 2, i32 0
  br label %.preheader344

.preheader344:                                    ; preds = %.preheader344.preheader, %211
  %198 = phi i8* [ %213, %211 ], [ %197, %.preheader344.preheader ]
  %199 = phi i64 [ %212, %211 ], [ %195, %.preheader344.preheader ]
  %200 = load i8, i8* %198, align 1
  %201 = add i8 %200, -48
  %202 = icmp ult i8 %201, 10
  br i1 %202, label %203, label %.loopexit349, !prof !10

203:                                              ; preds = %.preheader344
  %204 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %199, i64 10)
  %205 = extractvalue { i64, i1 } %204, 1
  br i1 %205, label %.loopexit349, label %206

206:                                              ; preds = %203
  %207 = extractvalue { i64, i1 } %204, 0
  %208 = zext i8 %201 to i64
  %209 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %207, i64 %208)
  %210 = extractvalue { i64, i1 } %209, 1
  br i1 %210, label %.loopexit349, label %211, !prof !8

211:                                              ; preds = %206
  %212 = extractvalue { i64, i1 } %209, 0
  %213 = getelementptr inbounds i8, i8* %198, i64 1
  %214 = icmp eq i8* %213, %181
  br i1 %214, label %.loopexit349.loopexit.split.loop.exit, label %.preheader344

215:                                              ; preds = %107
  %216 = bitcast %TSa* %1 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %216)
  %217 = call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$sSSSgMD") #18
  %218 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa28_allocateBufferUninitialized15minimumCapacitys016_ContiguousArrayB0VyxGSi_tFZ"(i64 8, %swift.type* %217)
  %._storage10.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %218, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 8, i64* %._storage10.count._value, align 8
  %219 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %218, i64 1
  %._buffer12._storage = getelementptr inbounds %TSa, %TSa* %1, i64 0, i32 0, i32 0
  %220 = bitcast %Ts28__ContiguousArrayStorageBaseC* %219 to i8*
  call void @llvm.memset.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(128) %220, i8 0, i64 128, i1 false)
  store %Ts28__ContiguousArrayStorageBaseC* %218, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  %._storage13.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 0, i32 1, i32 0, i32 0, i32 0
  %221 = load i64, i64* %._storage13.count._value, align 8, !range !6
  %222 = icmp eq i64 %221, 0
  br i1 %222, label %364, label %223

223:                                              ; preds = %215
  %224 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 1
  %tailaddr15 = bitcast %Ts28__ContiguousArrayStorageBaseC* %224 to %TSS*
  %225 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 0, i32 0
  %226 = call %swift.refcounted* @swift_retain(%swift.refcounted* returned %225) #19
  br label %227

227:                                              ; preds = %354, %223
  %228 = phi %Ts28__ContiguousArrayStorageBaseC* [ %218, %223 ], [ %347, %354 ]
  %229 = phi i64 [ 0, %223 ], [ %348, %354 ]
  %230 = phi i64 [ 0, %223 ], [ %349, %354 ]
  %231 = phi i64 [ 0, %223 ], [ %337, %354 ]
  %._guts16._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %tailaddr15, i64 %229, i32 0, i32 0, i32 0, i32 0
  %232 = load i64, i64* %._guts16._object._countAndFlagsBits._value, align 8
  %._guts16._object._object = getelementptr inbounds %TSS, %TSS* %tailaddr15, i64 %229, i32 0, i32 0, i32 1
  %233 = load %swift.bridge*, %swift.bridge** %._guts16._object._object, align 8
  %._storage17.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %228, i64 0, i32 1, i32 0, i32 0, i32 0
  %234 = load i64, i64* %._storage17.count._value, align 8, !range !6
  %235 = add nsw i64 %234, -1
  %236 = sub i64 %230, %231
  %237 = and i64 %235, %236
  %238 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %234, i64 %237)
  %239 = extractvalue { i64, i1 } %238, 1
  br i1 %239, label %1038, label %240, !prof !8

240:                                              ; preds = %227
  %241 = extractvalue { i64, i1 } %238, 0
  %242 = icmp eq i64 %241, 1
  br i1 %242, label %243, label %332

243:                                              ; preds = %240
  %.not300 = icmp eq i64 %234, 0
  %244 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %233) #5
  br i1 %.not300, label %.loopexit343, label %245

245:                                              ; preds = %243
  %246 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa28_allocateBufferUninitialized15minimumCapacitys016_ContiguousArrayB0VyxGSi_tFZ"(i64 %234, %swift.type* %217)
  %._storage148.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %246, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %234, i64* %._storage148.count._value, align 8
  %247 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %246, i64 1
  %248 = icmp eq i64 %234, 1
  %249 = bitcast %Ts28__ContiguousArrayStorageBaseC* %247 to i8*
  call void @llvm.memset.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %249, i8 0, i64 16, i1 false)
  br i1 %248, label %.loopexit343, label %.loopexit343.loopexit

.loopexit343:                                     ; preds = %243, %.loopexit343.loopexit, %245
  %250 = phi %Ts28__ContiguousArrayStorageBaseC* [ %246, %245 ], [ %246, %.loopexit343.loopexit ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %243 ]
  call swiftcc void @"$sSa6append10contentsOfyqd__n_t7ElementQyd__RszSTRd__lFSSSg_SayAEGTg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %250, %TSa* nocapture nonnull swiftself dereferenceable(8) %1)
  %251 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  %._storage137.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %251, i64 0, i32 1, i32 0, i32 0, i32 0
  %252 = load i64, i64* %._storage137.count._value, align 8, !range !6
  %253 = icmp slt i64 %230, %231
  br i1 %253, label %256, label %334

.loopexit343.loopexit:                            ; preds = %245
  %scevgep = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %246, i64 1, i32 1, i32 0, i32 0, i32 0
  %scevgep385 = bitcast i64* %scevgep to i8*
  %254 = shl i64 %234, 4
  %255 = add i64 %254, -16
  call void @llvm.memset.p0i8.i64(i8* align 8 %scevgep385, i8 0, i64 %255, i1 false)
  br label %.loopexit343

256:                                              ; preds = %.loopexit343
  %257 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %234, i64 %231)
  %258 = extractvalue { i64, i1 } %257, 0
  %259 = extractvalue { i64, i1 } %257, 1
  br i1 %259, label %1098, label %260, !prof !8

260:                                              ; preds = %256
  %261 = icmp slt i64 %230, %258
  br i1 %261, label %262, label %298

262:                                              ; preds = %260
  %263 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %251, i64 0, i32 0
  %264 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %263) #19
  br i1 %264, label %267, label %265

265:                                              ; preds = %262
  %266 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %251)
  br label %267

267:                                              ; preds = %262, %265
  %268 = phi %Ts28__ContiguousArrayStorageBaseC* [ %266, %265 ], [ %251, %262 ]
  %269 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %268, i64 1
  %tailaddr146 = bitcast %Ts28__ContiguousArrayStorageBaseC* %269 to %TSSSg*
  %270 = icmp slt i64 %230, 0
  br i1 %270, label %1103, label %271, !prof !8

271:                                              ; preds = %267
  %272 = icmp eq i64 %230, 0
  %273 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr146, i64 %234
  %274 = bitcast %Ts28__ContiguousArrayStorageBaseC* %269 to <2 x i64>*
  %275 = load <2 x i64>, <2 x i64>* %274, align 8
  %276 = bitcast %TSSSg* %273 to <2 x i64>*
  %277 = load <2 x i64>, <2 x i64>* %276, align 8
  %278 = bitcast %Ts28__ContiguousArrayStorageBaseC* %269 to <2 x i64>*
  store <2 x i64> %277, <2 x i64>* %278, align 8
  %279 = bitcast %TSSSg* %273 to <2 x i64>*
  store <2 x i64> %275, <2 x i64>* %279, align 8
  br i1 %272, label %.loopexit340, label %.preheader339

.preheader339:                                    ; preds = %271, %284
  %280 = phi i64 [ %281, %284 ], [ 0, %271 ]
  %281 = add nuw nsw i64 %280, 1
  %282 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %281, i64 %234)
  %283 = extractvalue { i64, i1 } %282, 1
  br i1 %283, label %1104, label %284, !prof !8

284:                                              ; preds = %.preheader339
  %285 = extractvalue { i64, i1 } %282, 0
  %286 = icmp eq i64 %281, %230
  %287 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr146, i64 %281
  %288 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr146, i64 %285
  %289 = bitcast %TSSSg* %287 to <2 x i64>*
  %290 = load <2 x i64>, <2 x i64>* %289, align 8
  %291 = bitcast %TSSSg* %288 to <2 x i64>*
  %292 = load <2 x i64>, <2 x i64>* %291, align 8
  %293 = bitcast %TSSSg* %287 to <2 x i64>*
  store <2 x i64> %292, <2 x i64>* %293, align 8
  %294 = bitcast %TSSSg* %288 to <2 x i64>*
  store <2 x i64> %290, <2 x i64>* %294, align 8
  br i1 %286, label %.loopexit340, label %.preheader339

.loopexit340:                                     ; preds = %284, %271
  store %Ts28__ContiguousArrayStorageBaseC* %268, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  %295 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %230, i64 %234)
  %296 = extractvalue { i64, i1 } %295, 0
  %297 = extractvalue { i64, i1 } %295, 1
  br i1 %297, label %1105, label %334, !prof !8

298:                                              ; preds = %260
  %299 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %252, i64 %258)
  %300 = extractvalue { i64, i1 } %299, 0
  %301 = extractvalue { i64, i1 } %299, 1
  br i1 %301, label %1099, label %302, !prof !8

302:                                              ; preds = %298
  %303 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %251, i64 0, i32 0
  %304 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %303) #19
  br i1 %304, label %307, label %305

305:                                              ; preds = %302
  %306 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %251)
  br label %307

307:                                              ; preds = %302, %305
  %308 = phi %Ts28__ContiguousArrayStorageBaseC* [ %306, %305 ], [ %251, %302 ]
  %309 = icmp slt i64 %234, %231
  br i1 %309, label %1100, label %310, !prof !8

310:                                              ; preds = %307
  %311 = icmp eq i64 %231, %234
  br i1 %311, label %.loopexit342, label %.preheader341.preheader

.preheader341.preheader:                          ; preds = %310
  %312 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %308, i64 1
  %tailaddr141 = bitcast %Ts28__ContiguousArrayStorageBaseC* %312 to %TSSSg*
  br label %.preheader341

.preheader341:                                    ; preds = %.preheader341.preheader, %321
  %313 = phi i64 [ %314, %321 ], [ %231, %.preheader341.preheader ]
  %314 = add i64 %313, 1
  %315 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %313, i64 %231)
  %316 = extractvalue { i64, i1 } %315, 1
  br i1 %316, label %1101, label %317, !prof !8

317:                                              ; preds = %.preheader341
  %318 = extractvalue { i64, i1 } %315, 0
  %319 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %318, i64 %300)
  %320 = extractvalue { i64, i1 } %319, 1
  br i1 %320, label %1102, label %321, !prof !8

321:                                              ; preds = %317
  %322 = extractvalue { i64, i1 } %319, 0
  %323 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr141, i64 %313
  %324 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr141, i64 %322
  %325 = bitcast %TSSSg* %323 to <2 x i64>*
  %326 = load <2 x i64>, <2 x i64>* %325, align 8
  %327 = bitcast %TSSSg* %324 to <2 x i64>*
  %328 = load <2 x i64>, <2 x i64>* %327, align 8
  %329 = bitcast %TSSSg* %323 to <2 x i64>*
  store <2 x i64> %328, <2 x i64>* %329, align 8
  %330 = bitcast %TSSSg* %324 to <2 x i64>*
  store <2 x i64> %326, <2 x i64>* %330, align 8
  %331 = icmp eq i64 %314, %234
  br i1 %331, label %.loopexit342, label %.preheader341

.loopexit342:                                     ; preds = %321, %310
  store %Ts28__ContiguousArrayStorageBaseC* %308, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  br label %334

332:                                              ; preds = %240
  %333 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %233) #5
  br label %334

334:                                              ; preds = %.loopexit343, %.loopexit340, %.loopexit342, %332
  %335 = phi %Ts28__ContiguousArrayStorageBaseC* [ %228, %332 ], [ %308, %.loopexit342 ], [ %268, %.loopexit340 ], [ %251, %.loopexit343 ]
  %336 = phi i64 [ %230, %332 ], [ %230, %.loopexit342 ], [ %296, %.loopexit340 ], [ %230, %.loopexit343 ]
  %337 = phi i64 [ %231, %332 ], [ %300, %.loopexit342 ], [ %231, %.loopexit340 ], [ %231, %.loopexit343 ]
  %338 = add i64 %336, 1
  %._storage18.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %335, i64 0, i32 1, i32 0, i32 0, i32 0
  %339 = load i64, i64* %._storage18.count._value, align 8, !range !6
  %340 = add nsw i64 %339, -1
  %341 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %335, i64 0, i32 0
  %342 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %233) #5
  %343 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %341) #19
  br i1 %343, label %346, label %344

344:                                              ; preds = %334
  %345 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %335)
  store %Ts28__ContiguousArrayStorageBaseC* %345, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  br label %346

346:                                              ; preds = %334, %344
  %347 = phi %Ts28__ContiguousArrayStorageBaseC* [ %335, %334 ], [ %345, %344 ]
  %348 = add nuw nsw i64 %229, 1
  %349 = and i64 %340, %338
  %350 = ptrtoint %swift.bridge* %233 to i64
  %351 = icmp slt i64 %336, 0
  br i1 %351, label %1039, label %352, !prof !8

352:                                              ; preds = %346
  %._storage21.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %347, i64 0, i32 1, i32 0, i32 0, i32 0
  %353 = load i64, i64* %._storage21.count._value, align 8, !range !6
  %.not286 = icmp ult i64 %336, %353
  br i1 %.not286, label %354, label %1040, !prof !7

354:                                              ; preds = %352
  %355 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %347, i64 1
  %tailaddr22 = bitcast %Ts28__ContiguousArrayStorageBaseC* %355 to %TSSSg*
  %356 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr22, i64 %336
  %357 = bitcast %TSSSg* %356 to i64*
  %358 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr22, i64 %336, i32 0, i64 8
  %359 = bitcast i8* %358 to i64*
  %360 = load i64, i64* %359, align 8
  %361 = inttoptr i64 %360 to %swift.bridge*
  call void @swift_bridgeObjectRelease(%swift.bridge* %361) #5
  store i64 %232, i64* %357, align 8
  store i64 %350, i64* %359, align 8
  call void @swift_bridgeObjectRelease(%swift.bridge* %233) #5
  %362 = icmp eq i64 %348, %221
  br i1 %362, label %363, label %227

363:                                              ; preds = %354
  call void @swift_release(%swift.refcounted* %225) #5
  br label %364

364:                                              ; preds = %215, %363
  %365 = phi %Ts28__ContiguousArrayStorageBaseC* [ %347, %363 ], [ %218, %215 ]
  %366 = phi i64 [ %337, %363 ], [ 0, %215 ]
  %367 = phi i64 [ %349, %363 ], [ 0, %215 ]
  %368 = icmp slt i64 %108, 1
  br i1 %368, label %1041, label %.preheader338, !prof !8

.preheader338:                                    ; preds = %364
  %369 = bitcast %TSJ* %2 to i8*
  %._str._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %2, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0
  %._str._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %2, i64 0, i32 0, i32 0, i32 0, i32 1
  br label %382

370:                                              ; preds = %944, %812, %679, %551, %417
  %371 = phi %Ts28__ContiguousArrayStorageBaseC* [ %383, %417 ], [ %546, %551 ], [ %672, %679 ], [ %804, %812 ], [ %936, %944 ]
  %372 = phi %Ts28__ContiguousArrayStorageBaseC* [ %384, %417 ], [ %546, %551 ], [ %673, %679 ], [ %805, %812 ], [ %937, %944 ]
  %373 = phi %Ts28__ContiguousArrayStorageBaseC* [ %385, %417 ], [ %546, %551 ], [ %673, %679 ], [ %806, %812 ], [ %938, %944 ]
  %374 = phi %Ts28__ContiguousArrayStorageBaseC* [ %386, %417 ], [ %546, %551 ], [ %673, %679 ], [ %806, %812 ], [ %939, %944 ]
  %375 = phi %Ts28__ContiguousArrayStorageBaseC* [ %387, %417 ], [ %546, %551 ], [ %673, %679 ], [ %806, %812 ], [ %939, %944 ]
  %376 = phi i1 [ %419, %417 ], [ true, %551 ], [ false, %679 ], [ true, %812 ], [ false, %944 ]
  %377 = phi i64 [ %390, %417 ], [ %539, %551 ], [ %661, %679 ], [ %793, %812 ], [ %929, %944 ]
  %378 = phi i64 [ %391, %417 ], [ %535, %551 ], [ %674, %679 ], [ %807, %812 ], [ %925, %944 ]
  %379 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %389, i64 1)
  %380 = extractvalue { i64, i1 } %379, 0
  %381 = extractvalue { i64, i1 } %379, 1
  br i1 %381, label %1049, label %382, !prof !8

382:                                              ; preds = %.preheader338, %370
  %383 = phi %Ts28__ContiguousArrayStorageBaseC* [ %371, %370 ], [ %365, %.preheader338 ]
  %384 = phi %Ts28__ContiguousArrayStorageBaseC* [ %372, %370 ], [ %365, %.preheader338 ]
  %385 = phi %Ts28__ContiguousArrayStorageBaseC* [ %373, %370 ], [ %365, %.preheader338 ]
  %386 = phi %Ts28__ContiguousArrayStorageBaseC* [ %374, %370 ], [ %365, %.preheader338 ]
  %387 = phi %Ts28__ContiguousArrayStorageBaseC* [ %375, %370 ], [ %365, %.preheader338 ]
  %388 = phi i1 [ %376, %370 ], [ true, %.preheader338 ]
  %389 = phi i64 [ %380, %370 ], [ 1, %.preheader338 ]
  %390 = phi i64 [ %377, %370 ], [ %366, %.preheader338 ]
  %391 = phi i64 [ %378, %370 ], [ %367, %.preheader338 ]
  %392 = call swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1 true)
  %393 = extractvalue { i64, i64 } %392, 1
  %394 = icmp eq i64 %393, 0
  br i1 %394, label %1042, label %395

395:                                              ; preds = %382
  %396 = extractvalue { i64, i64 } %392, 0
  %397 = inttoptr i64 %393 to %swift.bridge*
  %398 = icmp eq i64 %389, %108
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %369)
  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()
  %399 = alloca [24 x i8], align 16
  %400 = bitcast [24 x i8]* %399 to %swift.opaque*
  %401 = getelementptr inbounds [24 x i8], [24 x i8]* %399, i64 0, i64 16
  %402 = bitcast i8* %401 to %TSJ**
  store %TSJ* %2, %TSJ** %402, align 16
  %403 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* nonnull returned %397) #5
  %404 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE5split9maxSplits25omittingEmptySubsequences14whereSeparatorSay11SubSequenceQzGSi_S2b7ElementQzKXEtKFSS_Tg5"(i64 9223372036854775807, i1 true, i8* nonnull bitcast (i1 (%TSJ*, %swift.refcounted*, %swift.error**)* @"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5TA.1" to i8*), %swift.opaque* nonnull %400, i64 %396, %swift.bridge* nonnull %397, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %397) #5
  call void @llvm.stackrestore(i8* %spsave)
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %369)
  %405 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE3mapySayqd__Gqd__7ElementQzKXEKlFSaySsG_SSTg585$sSsxs5Error_pIggrzo_SsxsAA_pIegnrzo_lTRSS_TG528$s7llvm_OZ4mainyyFSSSsXEfU0_Tf3nnpf_nTf1cn_n"(%Ts28__ContiguousArrayStorageBaseC* %404, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  %406 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %404, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %406) #5
  %._storage25.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 0, i32 1, i32 0, i32 0, i32 0
  %407 = load i64, i64* %._storage25.count._value, align 8, !range !6
  %.not287 = icmp eq i64 %407, 0
  br i1 %.not287, label %1043, label %408, !prof !8

408:                                              ; preds = %395
  %409 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 1
  %tailaddr26._guts._object._countAndFlagsBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %409 to i64*
  %410 = load i64, i64* %tailaddr26._guts._object._countAndFlagsBits._value, align 8
  %tailaddr26._guts._object._object = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 1, i32 0, i32 1
  %411 = bitcast i64* %tailaddr26._guts._object._object to %swift.bridge**
  %412 = load %swift.bridge*, %swift.bridge** %411, align 8
  %413 = icmp eq i64 %410, 49
  %414 = icmp eq %swift.bridge* %412, inttoptr (i64 -2233785415175766016 to %swift.bridge*)
  %or.cond = select i1 %413, i1 %414, i1 false
  br i1 %or.cond, label %417, label %415

415:                                              ; preds = %408
  %416 = call swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64 %410, %swift.bridge* %412, i64 49, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i8 0)
  br i1 %416, label %417, label %420

417:                                              ; preds = %415, %408
  %418 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %418) #5
  %419 = xor i1 %388, true
  br i1 %398, label %953, label %370

420:                                              ; preds = %415
  %421 = load i64, i64* %._storage25.count._value, align 8, !range !6
  %422 = icmp ult i64 %421, 2
  br i1 %422, label %1044, label %423, !prof !8

423:                                              ; preds = %420
  %._guts29._object._countAndFlagsBits._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 1, i32 1, i32 0, i32 0, i32 0
  %424 = load i64, i64* %._guts29._object._countAndFlagsBits._value, align 8
  %._guts29._object._object = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 1, i32 1, i32 0, i32 1
  %425 = bitcast %TSu* %._guts29._object._object to %swift.bridge**
  %426 = load %swift.bridge*, %swift.bridge** %425, align 8
  %427 = icmp eq i64 %424, 49
  %428 = icmp eq %swift.bridge* %426, inttoptr (i64 -2233785415175766016 to %swift.bridge*)
  %or.cond305 = select i1 %427, i1 %428, i1 false
  br i1 %or.cond305, label %431, label %429

429:                                              ; preds = %423
  %430 = call swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64 %424, %swift.bridge* %426, i64 49, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i8 0)
  br i1 %430, label %431, label %688

431:                                              ; preds = %423, %429
  %432 = load i64, i64* %._storage25.count._value, align 8, !range !6
  %433 = icmp ult i64 %432, 3
  br i1 %388, label %434, label %560

434:                                              ; preds = %431
  br i1 %433, label %1086, label %435, !prof !8

435:                                              ; preds = %434
  %436 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 2
  %._guts112._object._countAndFlagsBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %436 to i64*
  %437 = load i64, i64* %._guts112._object._countAndFlagsBits._value, align 8
  %._guts112._object._object = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 2, i32 0, i32 1
  %438 = bitcast i64* %._guts112._object._object to %swift.bridge**
  %439 = load %swift.bridge*, %swift.bridge** %438, align 8
  %._storage114.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %384, i64 0, i32 1, i32 0, i32 0, i32 0
  %440 = load i64, i64* %._storage114.count._value, align 8, !range !6
  %441 = add nsw i64 %440, -1
  %442 = sub i64 %391, %390
  %443 = and i64 %441, %442
  %444 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %440, i64 %443)
  %445 = extractvalue { i64, i1 } %444, 1
  br i1 %445, label %1087, label %446, !prof !8

446:                                              ; preds = %435
  %447 = extractvalue { i64, i1 } %444, 0
  %448 = icmp eq i64 %447, 1
  %449 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %439) #5
  br i1 %448, label %450, label %531

450:                                              ; preds = %446
  %451 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa9repeating5countSayxGx_SitcfCSSSg_Tg5"(i64 0, i64 0, i64 %440)
  call swiftcc void @"$sSa6append10contentsOfyqd__n_t7ElementQyd__RszSTRd__lFSSSg_SayAEGTg5"(%Ts28__ContiguousArrayStorageBaseC* %451, %TSa* nocapture nonnull swiftself dereferenceable(8) %1)
  %452 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  %._storage121.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %452, i64 0, i32 1, i32 0, i32 0, i32 0
  %453 = load i64, i64* %._storage121.count._value, align 8, !range !6
  %454 = icmp slt i64 %391, %390
  br i1 %454, label %455, label %531

455:                                              ; preds = %450
  %456 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %440, i64 %390)
  %457 = extractvalue { i64, i1 } %456, 0
  %458 = extractvalue { i64, i1 } %456, 1
  br i1 %458, label %1090, label %459, !prof !8

459:                                              ; preds = %455
  %460 = icmp slt i64 %391, %457
  br i1 %460, label %461, label %497

461:                                              ; preds = %459
  %462 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %452, i64 0, i32 0
  %463 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %462) #19
  br i1 %463, label %466, label %464

464:                                              ; preds = %461
  %465 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %452)
  br label %466

466:                                              ; preds = %461, %464
  %467 = phi %Ts28__ContiguousArrayStorageBaseC* [ %465, %464 ], [ %452, %461 ]
  %468 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %467, i64 1
  %tailaddr130 = bitcast %Ts28__ContiguousArrayStorageBaseC* %468 to %TSSSg*
  %469 = icmp slt i64 %391, 0
  br i1 %469, label %1095, label %470, !prof !8

470:                                              ; preds = %466
  %471 = icmp eq i64 %391, 0
  %472 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr130, i64 %440
  %473 = bitcast %Ts28__ContiguousArrayStorageBaseC* %468 to <2 x i64>*
  %474 = load <2 x i64>, <2 x i64>* %473, align 8
  %475 = bitcast %TSSSg* %472 to <2 x i64>*
  %476 = load <2 x i64>, <2 x i64>* %475, align 8
  %477 = bitcast %Ts28__ContiguousArrayStorageBaseC* %468 to <2 x i64>*
  store <2 x i64> %476, <2 x i64>* %477, align 8
  %478 = bitcast %TSSSg* %472 to <2 x i64>*
  store <2 x i64> %474, <2 x i64>* %478, align 8
  br i1 %471, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %470, %483
  %479 = phi i64 [ %480, %483 ], [ 0, %470 ]
  %480 = add nuw nsw i64 %479, 1
  %481 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %480, i64 %440)
  %482 = extractvalue { i64, i1 } %481, 1
  br i1 %482, label %1096, label %483, !prof !8

483:                                              ; preds = %.preheader
  %484 = extractvalue { i64, i1 } %481, 0
  %485 = icmp eq i64 %480, %391
  %486 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr130, i64 %480
  %487 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr130, i64 %484
  %488 = bitcast %TSSSg* %486 to <2 x i64>*
  %489 = load <2 x i64>, <2 x i64>* %488, align 8
  %490 = bitcast %TSSSg* %487 to <2 x i64>*
  %491 = load <2 x i64>, <2 x i64>* %490, align 8
  %492 = bitcast %TSSSg* %486 to <2 x i64>*
  store <2 x i64> %491, <2 x i64>* %492, align 8
  %493 = bitcast %TSSSg* %487 to <2 x i64>*
  store <2 x i64> %489, <2 x i64>* %493, align 8
  br i1 %485, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %483, %470
  store %Ts28__ContiguousArrayStorageBaseC* %467, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  %494 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %391, i64 %440)
  %495 = extractvalue { i64, i1 } %494, 0
  %496 = extractvalue { i64, i1 } %494, 1
  br i1 %496, label %1097, label %531, !prof !8

497:                                              ; preds = %459
  %498 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %453, i64 %457)
  %499 = extractvalue { i64, i1 } %498, 0
  %500 = extractvalue { i64, i1 } %498, 1
  br i1 %500, label %1091, label %501, !prof !8

501:                                              ; preds = %497
  %502 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %452, i64 0, i32 0
  %503 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %502) #19
  br i1 %503, label %506, label %504

504:                                              ; preds = %501
  %505 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %452)
  br label %506

506:                                              ; preds = %501, %504
  %507 = phi %Ts28__ContiguousArrayStorageBaseC* [ %505, %504 ], [ %452, %501 ]
  %508 = icmp slt i64 %440, %390
  br i1 %508, label %1092, label %509, !prof !8

509:                                              ; preds = %506
  %510 = icmp eq i64 %390, %440
  br i1 %510, label %.loopexit325, label %.preheader324.preheader

.preheader324.preheader:                          ; preds = %509
  %511 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %507, i64 1
  %tailaddr125 = bitcast %Ts28__ContiguousArrayStorageBaseC* %511 to %TSSSg*
  br label %.preheader324

.preheader324:                                    ; preds = %.preheader324.preheader, %520
  %512 = phi i64 [ %513, %520 ], [ %390, %.preheader324.preheader ]
  %513 = add i64 %512, 1
  %514 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %512, i64 %390)
  %515 = extractvalue { i64, i1 } %514, 1
  br i1 %515, label %1093, label %516, !prof !8

516:                                              ; preds = %.preheader324
  %517 = extractvalue { i64, i1 } %514, 0
  %518 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %517, i64 %499)
  %519 = extractvalue { i64, i1 } %518, 1
  br i1 %519, label %1094, label %520, !prof !8

520:                                              ; preds = %516
  %521 = extractvalue { i64, i1 } %518, 0
  %522 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr125, i64 %512
  %523 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr125, i64 %521
  %524 = bitcast %TSSSg* %522 to <2 x i64>*
  %525 = load <2 x i64>, <2 x i64>* %524, align 8
  %526 = bitcast %TSSSg* %523 to <2 x i64>*
  %527 = load <2 x i64>, <2 x i64>* %526, align 8
  %528 = bitcast %TSSSg* %522 to <2 x i64>*
  store <2 x i64> %527, <2 x i64>* %528, align 8
  %529 = bitcast %TSSSg* %523 to <2 x i64>*
  store <2 x i64> %525, <2 x i64>* %529, align 8
  %530 = icmp eq i64 %513, %440
  br i1 %530, label %.loopexit325, label %.preheader324

.loopexit325:                                     ; preds = %520, %509
  store %Ts28__ContiguousArrayStorageBaseC* %507, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  br label %531

531:                                              ; preds = %446, %450, %.loopexit, %.loopexit325
  %532 = phi %Ts28__ContiguousArrayStorageBaseC* [ %507, %.loopexit325 ], [ %467, %.loopexit ], [ %452, %450 ], [ %383, %446 ]
  %533 = phi %Ts28__ContiguousArrayStorageBaseC* [ %507, %.loopexit325 ], [ %467, %.loopexit ], [ %452, %450 ], [ %384, %446 ]
  %534 = phi i64 [ %499, %.loopexit325 ], [ %390, %.loopexit ], [ %390, %450 ], [ %390, %446 ]
  %535 = phi i64 [ %391, %.loopexit325 ], [ %495, %.loopexit ], [ %391, %450 ], [ %391, %446 ]
  %._storage115.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %533, i64 0, i32 1, i32 0, i32 0, i32 0
  %536 = load i64, i64* %._storage115.count._value, align 8, !range !6
  %537 = add nsw i64 %536, -1
  %538 = add i64 %534, -1
  %539 = and i64 %537, %538
  %540 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %533, i64 0, i32 0
  %541 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %439) #5
  %542 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %540) #19
  br i1 %542, label %545, label %543

543:                                              ; preds = %531
  %544 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %533)
  store %Ts28__ContiguousArrayStorageBaseC* %544, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  br label %545

545:                                              ; preds = %531, %543
  %546 = phi %Ts28__ContiguousArrayStorageBaseC* [ %532, %531 ], [ %544, %543 ]
  %547 = ptrtoint %swift.bridge* %439 to i64
  %548 = icmp slt i64 %539, 0
  br i1 %548, label %1088, label %549, !prof !8

549:                                              ; preds = %545
  %._storage118.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %546, i64 0, i32 1, i32 0, i32 0, i32 0
  %550 = load i64, i64* %._storage118.count._value, align 8, !range !6
  %.not298 = icmp ult i64 %539, %550
  br i1 %.not298, label %551, label %1089, !prof !7

551:                                              ; preds = %549
  %552 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %546, i64 1
  %tailaddr119 = bitcast %Ts28__ContiguousArrayStorageBaseC* %552 to %TSSSg*
  %553 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr119, i64 %539
  %554 = bitcast %TSSSg* %553 to i64*
  %555 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr119, i64 %539, i32 0, i64 8
  %556 = bitcast i8* %555 to i64*
  %557 = load i64, i64* %556, align 8
  %558 = inttoptr i64 %557 to %swift.bridge*
  call void @swift_bridgeObjectRelease(%swift.bridge* %558) #5
  store i64 %437, i64* %554, align 8
  store i64 %547, i64* %556, align 8
  call void @swift_bridgeObjectRelease(%swift.bridge* %439) #5
  %559 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %559) #5
  br i1 %398, label %953, label %370

560:                                              ; preds = %431
  br i1 %433, label %1074, label %561, !prof !8

561:                                              ; preds = %560
  %562 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 2
  %._guts92._object._countAndFlagsBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %562 to i64*
  %563 = load i64, i64* %._guts92._object._countAndFlagsBits._value, align 8
  %._guts92._object._object = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 2, i32 0, i32 1
  %564 = bitcast i64* %._guts92._object._object to %swift.bridge**
  %565 = load %swift.bridge*, %swift.bridge** %564, align 8
  %._storage94.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %385, i64 0, i32 1, i32 0, i32 0, i32 0
  %566 = load i64, i64* %._storage94.count._value, align 8, !range !6
  %567 = add nsw i64 %566, -1
  %568 = sub i64 %391, %390
  %569 = and i64 %567, %568
  %570 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %566, i64 %569)
  %571 = extractvalue { i64, i1 } %570, 1
  br i1 %571, label %1075, label %572, !prof !8

572:                                              ; preds = %561
  %573 = extractvalue { i64, i1 } %570, 0
  %574 = icmp eq i64 %573, 1
  %575 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %565) #5
  br i1 %574, label %576, label %657

576:                                              ; preds = %572
  %577 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa9repeating5countSayxGx_SitcfCSSSg_Tg5"(i64 0, i64 0, i64 %566)
  call swiftcc void @"$sSa6append10contentsOfyqd__n_t7ElementQyd__RszSTRd__lFSSSg_SayAEGTg5"(%Ts28__ContiguousArrayStorageBaseC* %577, %TSa* nocapture nonnull swiftself dereferenceable(8) %1)
  %578 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  %._storage101.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %578, i64 0, i32 1, i32 0, i32 0, i32 0
  %579 = load i64, i64* %._storage101.count._value, align 8, !range !6
  %580 = icmp slt i64 %391, %390
  br i1 %580, label %581, label %657

581:                                              ; preds = %576
  %582 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %566, i64 %390)
  %583 = extractvalue { i64, i1 } %582, 0
  %584 = extractvalue { i64, i1 } %582, 1
  br i1 %584, label %1078, label %585, !prof !8

585:                                              ; preds = %581
  %586 = icmp slt i64 %391, %583
  br i1 %586, label %587, label %623

587:                                              ; preds = %585
  %588 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %578, i64 0, i32 0
  %589 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %588) #19
  br i1 %589, label %592, label %590

590:                                              ; preds = %587
  %591 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %578)
  br label %592

592:                                              ; preds = %587, %590
  %593 = phi %Ts28__ContiguousArrayStorageBaseC* [ %591, %590 ], [ %578, %587 ]
  %594 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %593, i64 1
  %tailaddr110 = bitcast %Ts28__ContiguousArrayStorageBaseC* %594 to %TSSSg*
  %595 = icmp slt i64 %391, 0
  br i1 %595, label %1083, label %596, !prof !8

596:                                              ; preds = %592
  %597 = icmp eq i64 %391, 0
  %598 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr110, i64 %566
  %599 = bitcast %Ts28__ContiguousArrayStorageBaseC* %594 to <2 x i64>*
  %600 = load <2 x i64>, <2 x i64>* %599, align 8
  %601 = bitcast %TSSSg* %598 to <2 x i64>*
  %602 = load <2 x i64>, <2 x i64>* %601, align 8
  %603 = bitcast %Ts28__ContiguousArrayStorageBaseC* %594 to <2 x i64>*
  store <2 x i64> %602, <2 x i64>* %603, align 8
  %604 = bitcast %TSSSg* %598 to <2 x i64>*
  store <2 x i64> %600, <2 x i64>* %604, align 8
  br i1 %597, label %.loopexit327, label %.preheader326

.preheader326:                                    ; preds = %596, %609
  %605 = phi i64 [ %606, %609 ], [ 0, %596 ]
  %606 = add nuw nsw i64 %605, 1
  %607 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %606, i64 %566)
  %608 = extractvalue { i64, i1 } %607, 1
  br i1 %608, label %1084, label %609, !prof !8

609:                                              ; preds = %.preheader326
  %610 = extractvalue { i64, i1 } %607, 0
  %611 = icmp eq i64 %606, %391
  %612 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr110, i64 %606
  %613 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr110, i64 %610
  %614 = bitcast %TSSSg* %612 to <2 x i64>*
  %615 = load <2 x i64>, <2 x i64>* %614, align 8
  %616 = bitcast %TSSSg* %613 to <2 x i64>*
  %617 = load <2 x i64>, <2 x i64>* %616, align 8
  %618 = bitcast %TSSSg* %612 to <2 x i64>*
  store <2 x i64> %617, <2 x i64>* %618, align 8
  %619 = bitcast %TSSSg* %613 to <2 x i64>*
  store <2 x i64> %615, <2 x i64>* %619, align 8
  br i1 %611, label %.loopexit327, label %.preheader326

.loopexit327:                                     ; preds = %609, %596
  store %Ts28__ContiguousArrayStorageBaseC* %593, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  %620 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %391, i64 %566)
  %621 = extractvalue { i64, i1 } %620, 0
  %622 = extractvalue { i64, i1 } %620, 1
  br i1 %622, label %1085, label %657, !prof !8

623:                                              ; preds = %585
  %624 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %579, i64 %583)
  %625 = extractvalue { i64, i1 } %624, 0
  %626 = extractvalue { i64, i1 } %624, 1
  br i1 %626, label %1079, label %627, !prof !8

627:                                              ; preds = %623
  %628 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %578, i64 0, i32 0
  %629 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %628) #19
  br i1 %629, label %632, label %630

630:                                              ; preds = %627
  %631 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %578)
  br label %632

632:                                              ; preds = %627, %630
  %633 = phi %Ts28__ContiguousArrayStorageBaseC* [ %631, %630 ], [ %578, %627 ]
  %634 = icmp slt i64 %566, %390
  br i1 %634, label %1080, label %635, !prof !8

635:                                              ; preds = %632
  %636 = icmp eq i64 %390, %566
  br i1 %636, label %.loopexit329, label %.preheader328.preheader

.preheader328.preheader:                          ; preds = %635
  %637 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %633, i64 1
  %tailaddr105 = bitcast %Ts28__ContiguousArrayStorageBaseC* %637 to %TSSSg*
  br label %.preheader328

.preheader328:                                    ; preds = %.preheader328.preheader, %646
  %638 = phi i64 [ %639, %646 ], [ %390, %.preheader328.preheader ]
  %639 = add i64 %638, 1
  %640 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %638, i64 %390)
  %641 = extractvalue { i64, i1 } %640, 1
  br i1 %641, label %1081, label %642, !prof !8

642:                                              ; preds = %.preheader328
  %643 = extractvalue { i64, i1 } %640, 0
  %644 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %643, i64 %625)
  %645 = extractvalue { i64, i1 } %644, 1
  br i1 %645, label %1082, label %646, !prof !8

646:                                              ; preds = %642
  %647 = extractvalue { i64, i1 } %644, 0
  %648 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr105, i64 %638
  %649 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr105, i64 %647
  %650 = bitcast %TSSSg* %648 to <2 x i64>*
  %651 = load <2 x i64>, <2 x i64>* %650, align 8
  %652 = bitcast %TSSSg* %649 to <2 x i64>*
  %653 = load <2 x i64>, <2 x i64>* %652, align 8
  %654 = bitcast %TSSSg* %648 to <2 x i64>*
  store <2 x i64> %653, <2 x i64>* %654, align 8
  %655 = bitcast %TSSSg* %649 to <2 x i64>*
  store <2 x i64> %651, <2 x i64>* %655, align 8
  %656 = icmp eq i64 %639, %566
  br i1 %656, label %.loopexit329, label %.preheader328

.loopexit329:                                     ; preds = %646, %635
  store %Ts28__ContiguousArrayStorageBaseC* %633, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  br label %657

657:                                              ; preds = %572, %576, %.loopexit327, %.loopexit329
  %658 = phi %Ts28__ContiguousArrayStorageBaseC* [ %633, %.loopexit329 ], [ %593, %.loopexit327 ], [ %578, %576 ], [ %383, %572 ]
  %659 = phi %Ts28__ContiguousArrayStorageBaseC* [ %633, %.loopexit329 ], [ %593, %.loopexit327 ], [ %578, %576 ], [ %384, %572 ]
  %660 = phi %Ts28__ContiguousArrayStorageBaseC* [ %633, %.loopexit329 ], [ %593, %.loopexit327 ], [ %578, %576 ], [ %385, %572 ]
  %661 = phi i64 [ %625, %.loopexit329 ], [ %390, %.loopexit327 ], [ %390, %576 ], [ %390, %572 ]
  %662 = phi i64 [ %391, %.loopexit329 ], [ %621, %.loopexit327 ], [ %391, %576 ], [ %391, %572 ]
  %663 = add i64 %662, 1
  %._storage95.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %660, i64 0, i32 1, i32 0, i32 0, i32 0
  %664 = load i64, i64* %._storage95.count._value, align 8, !range !6
  %665 = add nsw i64 %664, -1
  %666 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %660, i64 0, i32 0
  %667 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %565) #5
  %668 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %666) #19
  br i1 %668, label %671, label %669

669:                                              ; preds = %657
  %670 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %660)
  store %Ts28__ContiguousArrayStorageBaseC* %670, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  br label %671

671:                                              ; preds = %657, %669
  %672 = phi %Ts28__ContiguousArrayStorageBaseC* [ %658, %657 ], [ %670, %669 ]
  %673 = phi %Ts28__ContiguousArrayStorageBaseC* [ %659, %657 ], [ %670, %669 ]
  %674 = and i64 %665, %663
  %675 = ptrtoint %swift.bridge* %565 to i64
  %676 = icmp slt i64 %662, 0
  br i1 %676, label %1076, label %677, !prof !8

677:                                              ; preds = %671
  %._storage98.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %673, i64 0, i32 1, i32 0, i32 0, i32 0
  %678 = load i64, i64* %._storage98.count._value, align 8, !range !6
  %.not296 = icmp ult i64 %662, %678
  br i1 %.not296, label %679, label %1077, !prof !7

679:                                              ; preds = %677
  %680 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %673, i64 1
  %tailaddr99 = bitcast %Ts28__ContiguousArrayStorageBaseC* %680 to %TSSSg*
  %681 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr99, i64 %662
  %682 = bitcast %TSSSg* %681 to i64*
  %683 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr99, i64 %662, i32 0, i64 8
  %684 = bitcast i8* %683 to i64*
  %685 = load i64, i64* %684, align 8
  %686 = inttoptr i64 %685 to %swift.bridge*
  call void @swift_bridgeObjectRelease(%swift.bridge* %686) #5
  store i64 %563, i64* %682, align 8
  store i64 %675, i64* %684, align 8
  call void @swift_bridgeObjectRelease(%swift.bridge* %565) #5
  %687 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %687) #5
  br i1 %398, label %953, label %370

688:                                              ; preds = %429
  %689 = load i64, i64* %._storage25.count._value, align 8, !range !6
  %690 = icmp ult i64 %689, 3
  br i1 %388, label %691, label %821

691:                                              ; preds = %688
  br i1 %690, label %1062, label %692, !prof !8

692:                                              ; preds = %691
  %693 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 2
  %._guts72._object._countAndFlagsBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %693 to i64*
  %694 = load i64, i64* %._guts72._object._countAndFlagsBits._value, align 8
  %._guts72._object._object = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 2, i32 0, i32 1
  %695 = bitcast i64* %._guts72._object._object to %swift.bridge**
  %696 = load %swift.bridge*, %swift.bridge** %695, align 8
  %._storage74.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %386, i64 0, i32 1, i32 0, i32 0, i32 0
  %697 = load i64, i64* %._storage74.count._value, align 8, !range !6
  %698 = add nsw i64 %697, -1
  %699 = sub i64 %391, %390
  %700 = and i64 %698, %699
  %701 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %697, i64 %700)
  %702 = extractvalue { i64, i1 } %701, 1
  br i1 %702, label %1063, label %703, !prof !8

703:                                              ; preds = %692
  %704 = extractvalue { i64, i1 } %701, 0
  %705 = icmp eq i64 %704, 1
  %706 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %696) #5
  br i1 %705, label %707, label %788

707:                                              ; preds = %703
  %708 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa9repeating5countSayxGx_SitcfCSSSg_Tg5"(i64 0, i64 0, i64 %697)
  call swiftcc void @"$sSa6append10contentsOfyqd__n_t7ElementQyd__RszSTRd__lFSSSg_SayAEGTg5"(%Ts28__ContiguousArrayStorageBaseC* %708, %TSa* nocapture nonnull swiftself dereferenceable(8) %1)
  %709 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  %._storage81.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %709, i64 0, i32 1, i32 0, i32 0, i32 0
  %710 = load i64, i64* %._storage81.count._value, align 8, !range !6
  %711 = icmp slt i64 %391, %390
  br i1 %711, label %712, label %788

712:                                              ; preds = %707
  %713 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %697, i64 %390)
  %714 = extractvalue { i64, i1 } %713, 0
  %715 = extractvalue { i64, i1 } %713, 1
  br i1 %715, label %1066, label %716, !prof !8

716:                                              ; preds = %712
  %717 = icmp slt i64 %391, %714
  br i1 %717, label %718, label %754

718:                                              ; preds = %716
  %719 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %709, i64 0, i32 0
  %720 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %719) #19
  br i1 %720, label %723, label %721

721:                                              ; preds = %718
  %722 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %709)
  store %Ts28__ContiguousArrayStorageBaseC* %722, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  br label %723

723:                                              ; preds = %718, %721
  %724 = phi %Ts28__ContiguousArrayStorageBaseC* [ %722, %721 ], [ %709, %718 ]
  %725 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %724, i64 1
  %tailaddr90 = bitcast %Ts28__ContiguousArrayStorageBaseC* %725 to %TSSSg*
  %726 = icmp slt i64 %391, 0
  br i1 %726, label %1071, label %727, !prof !8

727:                                              ; preds = %723
  %728 = icmp eq i64 %391, 0
  %729 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr90, i64 %697
  %730 = bitcast %Ts28__ContiguousArrayStorageBaseC* %725 to <2 x i64>*
  %731 = load <2 x i64>, <2 x i64>* %730, align 8
  %732 = bitcast %TSSSg* %729 to <2 x i64>*
  %733 = load <2 x i64>, <2 x i64>* %732, align 8
  %734 = bitcast %Ts28__ContiguousArrayStorageBaseC* %725 to <2 x i64>*
  store <2 x i64> %733, <2 x i64>* %734, align 8
  %735 = bitcast %TSSSg* %729 to <2 x i64>*
  store <2 x i64> %731, <2 x i64>* %735, align 8
  br i1 %728, label %.loopexit331, label %.preheader330

.preheader330:                                    ; preds = %727, %740
  %736 = phi i64 [ %737, %740 ], [ 0, %727 ]
  %737 = add nuw nsw i64 %736, 1
  %738 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %737, i64 %697)
  %739 = extractvalue { i64, i1 } %738, 1
  br i1 %739, label %1072, label %740, !prof !8

740:                                              ; preds = %.preheader330
  %741 = extractvalue { i64, i1 } %738, 0
  %742 = icmp eq i64 %737, %391
  %743 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr90, i64 %737
  %744 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr90, i64 %741
  %745 = bitcast %TSSSg* %743 to <2 x i64>*
  %746 = load <2 x i64>, <2 x i64>* %745, align 8
  %747 = bitcast %TSSSg* %744 to <2 x i64>*
  %748 = load <2 x i64>, <2 x i64>* %747, align 8
  %749 = bitcast %TSSSg* %743 to <2 x i64>*
  store <2 x i64> %748, <2 x i64>* %749, align 8
  %750 = bitcast %TSSSg* %744 to <2 x i64>*
  store <2 x i64> %746, <2 x i64>* %750, align 8
  br i1 %742, label %.loopexit331, label %.preheader330

.loopexit331:                                     ; preds = %740, %727
  store %Ts28__ContiguousArrayStorageBaseC* %724, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  %751 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %391, i64 %697)
  %752 = extractvalue { i64, i1 } %751, 0
  %753 = extractvalue { i64, i1 } %751, 1
  br i1 %753, label %1073, label %788, !prof !8

754:                                              ; preds = %716
  %755 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %710, i64 %714)
  %756 = extractvalue { i64, i1 } %755, 0
  %757 = extractvalue { i64, i1 } %755, 1
  br i1 %757, label %1067, label %758, !prof !8

758:                                              ; preds = %754
  %759 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %709, i64 0, i32 0
  %760 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %759) #19
  br i1 %760, label %763, label %761

761:                                              ; preds = %758
  %762 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %709)
  store %Ts28__ContiguousArrayStorageBaseC* %762, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  br label %763

763:                                              ; preds = %758, %761
  %764 = phi %Ts28__ContiguousArrayStorageBaseC* [ %762, %761 ], [ %709, %758 ]
  %765 = icmp slt i64 %697, %390
  br i1 %765, label %1068, label %766, !prof !8

766:                                              ; preds = %763
  %767 = icmp eq i64 %390, %697
  br i1 %767, label %.loopexit333, label %.preheader332.preheader

.preheader332.preheader:                          ; preds = %766
  %768 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %764, i64 1
  %tailaddr85 = bitcast %Ts28__ContiguousArrayStorageBaseC* %768 to %TSSSg*
  br label %.preheader332

.preheader332:                                    ; preds = %.preheader332.preheader, %777
  %769 = phi i64 [ %770, %777 ], [ %390, %.preheader332.preheader ]
  %770 = add i64 %769, 1
  %771 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %769, i64 %390)
  %772 = extractvalue { i64, i1 } %771, 1
  br i1 %772, label %1069, label %773, !prof !8

773:                                              ; preds = %.preheader332
  %774 = extractvalue { i64, i1 } %771, 0
  %775 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %774, i64 %756)
  %776 = extractvalue { i64, i1 } %775, 1
  br i1 %776, label %1070, label %777, !prof !8

777:                                              ; preds = %773
  %778 = extractvalue { i64, i1 } %775, 0
  %779 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr85, i64 %769
  %780 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr85, i64 %778
  %781 = bitcast %TSSSg* %779 to <2 x i64>*
  %782 = load <2 x i64>, <2 x i64>* %781, align 8
  %783 = bitcast %TSSSg* %780 to <2 x i64>*
  %784 = load <2 x i64>, <2 x i64>* %783, align 8
  %785 = bitcast %TSSSg* %779 to <2 x i64>*
  store <2 x i64> %784, <2 x i64>* %785, align 8
  %786 = bitcast %TSSSg* %780 to <2 x i64>*
  store <2 x i64> %782, <2 x i64>* %786, align 8
  %787 = icmp eq i64 %770, %697
  br i1 %787, label %.loopexit333, label %.preheader332

.loopexit333:                                     ; preds = %777, %766
  store %Ts28__ContiguousArrayStorageBaseC* %764, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  br label %788

788:                                              ; preds = %703, %707, %.loopexit331, %.loopexit333
  %789 = phi %Ts28__ContiguousArrayStorageBaseC* [ %764, %.loopexit333 ], [ %724, %.loopexit331 ], [ %709, %707 ], [ %383, %703 ]
  %790 = phi %Ts28__ContiguousArrayStorageBaseC* [ %764, %.loopexit333 ], [ %724, %.loopexit331 ], [ %709, %707 ], [ %384, %703 ]
  %791 = phi %Ts28__ContiguousArrayStorageBaseC* [ %764, %.loopexit333 ], [ %724, %.loopexit331 ], [ %709, %707 ], [ %385, %703 ]
  %792 = phi %Ts28__ContiguousArrayStorageBaseC* [ %764, %.loopexit333 ], [ %724, %.loopexit331 ], [ %709, %707 ], [ %386, %703 ]
  %793 = phi i64 [ %756, %.loopexit333 ], [ %390, %.loopexit331 ], [ %390, %707 ], [ %390, %703 ]
  %794 = phi i64 [ %391, %.loopexit333 ], [ %752, %.loopexit331 ], [ %391, %707 ], [ %391, %703 ]
  %795 = add i64 %794, 1
  %._storage75.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %792, i64 0, i32 1, i32 0, i32 0, i32 0
  %796 = load i64, i64* %._storage75.count._value, align 8, !range !6
  %797 = add nsw i64 %796, -1
  %798 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %792, i64 0, i32 0
  %799 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %696) #5
  %800 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %798) #19
  br i1 %800, label %803, label %801

801:                                              ; preds = %788
  %802 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %792)
  store %Ts28__ContiguousArrayStorageBaseC* %802, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  br label %803

803:                                              ; preds = %788, %801
  %804 = phi %Ts28__ContiguousArrayStorageBaseC* [ %789, %788 ], [ %802, %801 ]
  %805 = phi %Ts28__ContiguousArrayStorageBaseC* [ %790, %788 ], [ %802, %801 ]
  %806 = phi %Ts28__ContiguousArrayStorageBaseC* [ %791, %788 ], [ %802, %801 ]
  %807 = and i64 %797, %795
  %808 = ptrtoint %swift.bridge* %696 to i64
  %809 = icmp slt i64 %794, 0
  br i1 %809, label %1064, label %810, !prof !8

810:                                              ; preds = %803
  %._storage78.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %806, i64 0, i32 1, i32 0, i32 0, i32 0
  %811 = load i64, i64* %._storage78.count._value, align 8, !range !6
  %.not294 = icmp ult i64 %794, %811
  br i1 %.not294, label %812, label %1065, !prof !7

812:                                              ; preds = %810
  %813 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %806, i64 1
  %tailaddr79 = bitcast %Ts28__ContiguousArrayStorageBaseC* %813 to %TSSSg*
  %814 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr79, i64 %794
  %815 = bitcast %TSSSg* %814 to i64*
  %816 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr79, i64 %794, i32 0, i64 8
  %817 = bitcast i8* %816 to i64*
  %818 = load i64, i64* %817, align 8
  %819 = inttoptr i64 %818 to %swift.bridge*
  call void @swift_bridgeObjectRelease(%swift.bridge* %819) #5
  store i64 %694, i64* %815, align 8
  store i64 %808, i64* %817, align 8
  call void @swift_bridgeObjectRelease(%swift.bridge* %696) #5
  %820 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %820) #5
  br i1 %398, label %953, label %370

821:                                              ; preds = %688
  br i1 %690, label %1045, label %822, !prof !8

822:                                              ; preds = %821
  %823 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 2
  %._guts30._object._countAndFlagsBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %823 to i64*
  %824 = load i64, i64* %._guts30._object._countAndFlagsBits._value, align 8
  %._guts30._object._object = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 2, i32 0, i32 1
  %825 = bitcast i64* %._guts30._object._object to %swift.bridge**
  %826 = load %swift.bridge*, %swift.bridge** %825, align 8
  %._storage32.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %387, i64 0, i32 1, i32 0, i32 0, i32 0
  %827 = load i64, i64* %._storage32.count._value, align 8, !range !6
  %828 = add nsw i64 %827, -1
  %829 = sub i64 %391, %390
  %830 = and i64 %828, %829
  %831 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %827, i64 %830)
  %832 = extractvalue { i64, i1 } %831, 1
  br i1 %832, label %1046, label %833, !prof !8

833:                                              ; preds = %822
  %834 = extractvalue { i64, i1 } %831, 0
  %835 = icmp eq i64 %834, 1
  %836 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %826) #5
  br i1 %835, label %837, label %918

837:                                              ; preds = %833
  %838 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa9repeating5countSayxGx_SitcfCSSSg_Tg5"(i64 0, i64 0, i64 %827)
  call swiftcc void @"$sSa6append10contentsOfyqd__n_t7ElementQyd__RszSTRd__lFSSSg_SayAEGTg5"(%Ts28__ContiguousArrayStorageBaseC* %838, %TSa* nocapture nonnull swiftself dereferenceable(8) %1)
  %839 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  %._storage61.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %839, i64 0, i32 1, i32 0, i32 0, i32 0
  %840 = load i64, i64* %._storage61.count._value, align 8, !range !6
  %841 = icmp slt i64 %391, %390
  br i1 %841, label %842, label %918

842:                                              ; preds = %837
  %843 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %827, i64 %390)
  %844 = extractvalue { i64, i1 } %843, 0
  %845 = extractvalue { i64, i1 } %843, 1
  br i1 %845, label %1054, label %846, !prof !8

846:                                              ; preds = %842
  %847 = icmp slt i64 %391, %844
  br i1 %847, label %848, label %884

848:                                              ; preds = %846
  %849 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %839, i64 0, i32 0
  %850 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %849) #19
  br i1 %850, label %853, label %851

851:                                              ; preds = %848
  %852 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %839)
  store %Ts28__ContiguousArrayStorageBaseC* %852, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  br label %853

853:                                              ; preds = %848, %851
  %854 = phi %Ts28__ContiguousArrayStorageBaseC* [ %852, %851 ], [ %839, %848 ]
  %855 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %854, i64 1
  %tailaddr70 = bitcast %Ts28__ContiguousArrayStorageBaseC* %855 to %TSSSg*
  %856 = icmp slt i64 %391, 0
  br i1 %856, label %1059, label %857, !prof !8

857:                                              ; preds = %853
  %858 = icmp eq i64 %391, 0
  %859 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr70, i64 %827
  %860 = bitcast %Ts28__ContiguousArrayStorageBaseC* %855 to <2 x i64>*
  %861 = load <2 x i64>, <2 x i64>* %860, align 8
  %862 = bitcast %TSSSg* %859 to <2 x i64>*
  %863 = load <2 x i64>, <2 x i64>* %862, align 8
  %864 = bitcast %Ts28__ContiguousArrayStorageBaseC* %855 to <2 x i64>*
  store <2 x i64> %863, <2 x i64>* %864, align 8
  %865 = bitcast %TSSSg* %859 to <2 x i64>*
  store <2 x i64> %861, <2 x i64>* %865, align 8
  br i1 %858, label %.loopexit335, label %.preheader334

.preheader334:                                    ; preds = %857, %870
  %866 = phi i64 [ %867, %870 ], [ 0, %857 ]
  %867 = add nuw nsw i64 %866, 1
  %868 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %867, i64 %827)
  %869 = extractvalue { i64, i1 } %868, 1
  br i1 %869, label %1060, label %870, !prof !8

870:                                              ; preds = %.preheader334
  %871 = extractvalue { i64, i1 } %868, 0
  %872 = icmp eq i64 %867, %391
  %873 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr70, i64 %867
  %874 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr70, i64 %871
  %875 = bitcast %TSSSg* %873 to <2 x i64>*
  %876 = load <2 x i64>, <2 x i64>* %875, align 8
  %877 = bitcast %TSSSg* %874 to <2 x i64>*
  %878 = load <2 x i64>, <2 x i64>* %877, align 8
  %879 = bitcast %TSSSg* %873 to <2 x i64>*
  store <2 x i64> %878, <2 x i64>* %879, align 8
  %880 = bitcast %TSSSg* %874 to <2 x i64>*
  store <2 x i64> %876, <2 x i64>* %880, align 8
  br i1 %872, label %.loopexit335, label %.preheader334

.loopexit335:                                     ; preds = %870, %857
  store %Ts28__ContiguousArrayStorageBaseC* %854, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  %881 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %391, i64 %827)
  %882 = extractvalue { i64, i1 } %881, 0
  %883 = extractvalue { i64, i1 } %881, 1
  br i1 %883, label %1061, label %918, !prof !8

884:                                              ; preds = %846
  %885 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %840, i64 %844)
  %886 = extractvalue { i64, i1 } %885, 0
  %887 = extractvalue { i64, i1 } %885, 1
  br i1 %887, label %1055, label %888, !prof !8

888:                                              ; preds = %884
  %889 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %839, i64 0, i32 0
  %890 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %889) #19
  br i1 %890, label %893, label %891

891:                                              ; preds = %888
  %892 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %839)
  store %Ts28__ContiguousArrayStorageBaseC* %892, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  br label %893

893:                                              ; preds = %888, %891
  %894 = phi %Ts28__ContiguousArrayStorageBaseC* [ %892, %891 ], [ %839, %888 ]
  %895 = icmp slt i64 %827, %390
  br i1 %895, label %1056, label %896, !prof !8

896:                                              ; preds = %893
  %897 = icmp eq i64 %390, %827
  br i1 %897, label %.loopexit337, label %.preheader336.preheader

.preheader336.preheader:                          ; preds = %896
  %898 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %894, i64 1
  %tailaddr65 = bitcast %Ts28__ContiguousArrayStorageBaseC* %898 to %TSSSg*
  br label %.preheader336

.preheader336:                                    ; preds = %.preheader336.preheader, %907
  %899 = phi i64 [ %900, %907 ], [ %390, %.preheader336.preheader ]
  %900 = add i64 %899, 1
  %901 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %899, i64 %390)
  %902 = extractvalue { i64, i1 } %901, 1
  br i1 %902, label %1057, label %903, !prof !8

903:                                              ; preds = %.preheader336
  %904 = extractvalue { i64, i1 } %901, 0
  %905 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %904, i64 %886)
  %906 = extractvalue { i64, i1 } %905, 1
  br i1 %906, label %1058, label %907, !prof !8

907:                                              ; preds = %903
  %908 = extractvalue { i64, i1 } %905, 0
  %909 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr65, i64 %899
  %910 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr65, i64 %908
  %911 = bitcast %TSSSg* %909 to <2 x i64>*
  %912 = load <2 x i64>, <2 x i64>* %911, align 8
  %913 = bitcast %TSSSg* %910 to <2 x i64>*
  %914 = load <2 x i64>, <2 x i64>* %913, align 8
  %915 = bitcast %TSSSg* %909 to <2 x i64>*
  store <2 x i64> %914, <2 x i64>* %915, align 8
  %916 = bitcast %TSSSg* %910 to <2 x i64>*
  store <2 x i64> %912, <2 x i64>* %916, align 8
  %917 = icmp eq i64 %900, %827
  br i1 %917, label %.loopexit337, label %.preheader336

.loopexit337:                                     ; preds = %907, %896
  store %Ts28__ContiguousArrayStorageBaseC* %894, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  br label %918

918:                                              ; preds = %833, %837, %.loopexit335, %.loopexit337
  %919 = phi %Ts28__ContiguousArrayStorageBaseC* [ %894, %.loopexit337 ], [ %854, %.loopexit335 ], [ %839, %837 ], [ %383, %833 ]
  %920 = phi %Ts28__ContiguousArrayStorageBaseC* [ %894, %.loopexit337 ], [ %854, %.loopexit335 ], [ %839, %837 ], [ %384, %833 ]
  %921 = phi %Ts28__ContiguousArrayStorageBaseC* [ %894, %.loopexit337 ], [ %854, %.loopexit335 ], [ %839, %837 ], [ %385, %833 ]
  %922 = phi %Ts28__ContiguousArrayStorageBaseC* [ %894, %.loopexit337 ], [ %854, %.loopexit335 ], [ %839, %837 ], [ %386, %833 ]
  %923 = phi %Ts28__ContiguousArrayStorageBaseC* [ %894, %.loopexit337 ], [ %854, %.loopexit335 ], [ %839, %837 ], [ %387, %833 ]
  %924 = phi i64 [ %886, %.loopexit337 ], [ %390, %.loopexit335 ], [ %390, %837 ], [ %390, %833 ]
  %925 = phi i64 [ %391, %.loopexit337 ], [ %882, %.loopexit335 ], [ %391, %837 ], [ %391, %833 ]
  %._storage33.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %923, i64 0, i32 1, i32 0, i32 0, i32 0
  %926 = load i64, i64* %._storage33.count._value, align 8, !range !6
  %927 = add nsw i64 %926, -1
  %928 = add i64 %924, -1
  %929 = and i64 %927, %928
  %930 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %923, i64 0, i32 0
  %931 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %826) #5
  %932 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %930) #19
  br i1 %932, label %935, label %933

933:                                              ; preds = %918
  %934 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %923)
  store %Ts28__ContiguousArrayStorageBaseC* %934, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  br label %935

935:                                              ; preds = %918, %933
  %936 = phi %Ts28__ContiguousArrayStorageBaseC* [ %919, %918 ], [ %934, %933 ]
  %937 = phi %Ts28__ContiguousArrayStorageBaseC* [ %920, %918 ], [ %934, %933 ]
  %938 = phi %Ts28__ContiguousArrayStorageBaseC* [ %921, %918 ], [ %934, %933 ]
  %939 = phi %Ts28__ContiguousArrayStorageBaseC* [ %922, %918 ], [ %934, %933 ]
  %940 = ptrtoint %swift.bridge* %826 to i64
  %941 = icmp slt i64 %929, 0
  br i1 %941, label %1047, label %942, !prof !8

942:                                              ; preds = %935
  %._storage36.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %939, i64 0, i32 1, i32 0, i32 0, i32 0
  %943 = load i64, i64* %._storage36.count._value, align 8, !range !6
  %.not288 = icmp ult i64 %929, %943
  br i1 %.not288, label %944, label %1048, !prof !7

944:                                              ; preds = %942
  %945 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %939, i64 1
  %tailaddr37 = bitcast %Ts28__ContiguousArrayStorageBaseC* %945 to %TSSSg*
  %946 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr37, i64 %929
  %947 = bitcast %TSSSg* %946 to i64*
  %948 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr37, i64 %929, i32 0, i64 8
  %949 = bitcast i8* %948 to i64*
  %950 = load i64, i64* %949, align 8
  %951 = inttoptr i64 %950 to %swift.bridge*
  call void @swift_bridgeObjectRelease(%swift.bridge* %951) #5
  store i64 %824, i64* %947, align 8
  store i64 %940, i64* %949, align 8
  call void @swift_bridgeObjectRelease(%swift.bridge* %826) #5
  %952 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %405, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %952) #5
  br i1 %398, label %953, label %370

953:                                              ; preds = %944, %812, %679, %551, %417
  %954 = phi i1 [ %419, %417 ], [ true, %551 ], [ false, %679 ], [ true, %812 ], [ false, %944 ]
  %955 = phi i64 [ %390, %417 ], [ %539, %551 ], [ %661, %679 ], [ %793, %812 ], [ %929, %944 ]
  %956 = phi i64 [ %391, %417 ], [ %535, %551 ], [ %674, %679 ], [ %807, %812 ], [ %925, %944 ]
  br label %957

957:                                              ; preds = %1011, %953
  %958 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %953 ], [ %1012, %1011 ]
  %959 = phi i64 [ %955, %953 ], [ %988, %1011 ]
  %960 = phi i64 [ %956, %953 ], [ %989, %1011 ]
  %961 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer12._storage, align 8
  %962 = icmp eq i64 %959, %960
  br i1 %954, label %963, label %975

963:                                              ; preds = %957
  br i1 %962, label %1014, label %964

964:                                              ; preds = %963
  %._storage58.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %961, i64 0, i32 1, i32 0, i32 0, i32 0
  %965 = load i64, i64* %._storage58.count._value, align 8, !range !6
  %966 = add nsw i64 %965, -1
  %967 = add i64 %959, 1
  %968 = and i64 %966, %967
  %969 = icmp slt i64 %959, 0
  br i1 %969, label %1052, label %970, !prof !8

970:                                              ; preds = %964
  %.not292 = icmp ult i64 %959, %965
  br i1 %.not292, label %971, label %1053, !prof !7

971:                                              ; preds = %970
  %972 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %961, i64 1
  %tailaddr60 = bitcast %Ts28__ContiguousArrayStorageBaseC* %972 to %TSSSg*
  %973 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr60, i64 %959
  %974 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr60, i64 %959, i32 0, i64 8
  br label %987

975:                                              ; preds = %957
  br i1 %962, label %1014, label %976

976:                                              ; preds = %975
  %._storage40.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %961, i64 0, i32 1, i32 0, i32 0, i32 0
  %977 = load i64, i64* %._storage40.count._value, align 8, !range !6
  %978 = add nsw i64 %977, -1
  %979 = add i64 %960, -1
  %980 = and i64 %978, %979
  %981 = icmp slt i64 %980, 0
  br i1 %981, label %1050, label %982, !prof !8

982:                                              ; preds = %976
  %.not289.not = icmp eq i64 %977, 0
  br i1 %.not289.not, label %1051, label %983, !prof !8

983:                                              ; preds = %982
  %984 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %961, i64 1
  %tailaddr42 = bitcast %Ts28__ContiguousArrayStorageBaseC* %984 to %TSSSg*
  %985 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr42, i64 %980
  %986 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr42, i64 %980, i32 0, i64 8
  br label %987

987:                                              ; preds = %971, %983
  %.in.in = phi %TSSSg* [ %985, %983 ], [ %973, %971 ]
  %.in290.in = phi i8* [ %986, %983 ], [ %974, %971 ]
  %988 = phi i64 [ %959, %983 ], [ %968, %971 ]
  %989 = phi i64 [ %980, %983 ], [ %960, %971 ]
  %.in290 = bitcast i8* %.in290.in to i64*
  %.in = bitcast %TSSSg* %.in.in to i64*
  %990 = load i64, i64* %.in290, align 8
  %991 = load i64, i64* %.in, align 8
  %992 = icmp eq i64 %990, 0
  br i1 %992, label %1014, label %993

993:                                              ; preds = %987
  %994 = inttoptr i64 %990 to %swift.bridge*
  %995 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %958, i64 0, i32 0
  %996 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* nonnull returned %994) #5
  %997 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %995) #19
  br i1 %997, label %1002, label %998

998:                                              ; preds = %993
  %._storage52.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %958, i64 0, i32 1, i32 0, i32 0, i32 0
  %999 = load i64, i64* %._storage52.count._value, align 8, !range !6
  %1000 = add nuw nsw i64 %999, 1
  %1001 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSS_Tg5"(i1 false, i64 %1000, i1 true, %Ts28__ContiguousArrayStorageBaseC* %958)
  br label %1002

1002:                                             ; preds = %993, %998
  %1003 = phi %Ts28__ContiguousArrayStorageBaseC* [ %1001, %998 ], [ %958, %993 ]
  %._storage53.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %1003, i64 0, i32 1, i32 0, i32 0, i32 0
  %1004 = load i64, i64* %._storage53.count._value, align 8, !range !6
  %._storage53._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %1003, i64 0, i32 1, i32 0, i32 1, i32 0
  %1005 = load i64, i64* %._storage53._capacityAndFlags._value, align 8
  %1006 = lshr i64 %1005, 1
  %1007 = add nuw nsw i64 %1004, 1
  %.not291 = icmp ugt i64 %1006, %1004
  br i1 %.not291, label %1011, label %1008, !prof !7

1008:                                             ; preds = %1002
  %1009 = icmp ugt i64 %1005, 1
  %1010 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSS_Tg5"(i1 %1009, i64 %1007, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %1003)
  br label %1011

1011:                                             ; preds = %1002, %1008
  %1012 = phi %Ts28__ContiguousArrayStorageBaseC* [ %1010, %1008 ], [ %1003, %1002 ]
  %._storage54.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %1012, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %1007, i64* %._storage54.count._value, align 8
  %1013 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %1012, i64 1
  %tailaddr55 = bitcast %Ts28__ContiguousArrayStorageBaseC* %1013 to %TSS*
  %._guts56._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %tailaddr55, i64 %1004, i32 0, i32 0, i32 0, i32 0
  store i64 %991, i64* %._guts56._object._countAndFlagsBits._value, align 8
  %._guts56._object._object = getelementptr inbounds %TSS, %TSS* %tailaddr55, i64 %1004, i32 0, i32 0, i32 1
  store %swift.bridge* %994, %swift.bridge** %._guts56._object._object, align 8
  br label %957

1014:                                             ; preds = %987, %975, %963
  %1015 = call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #18
  %1016 = call noalias %swift.refcounted* @swift_allocObject(%swift.type* %1015, i64 64, i64 7) #5
  %1017 = bitcast %swift.refcounted* %1016 to %Ts28__ContiguousArrayStorageBaseC*
  %1018 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %1016, i64 1
  %._storage43.count._value = bitcast %swift.refcounted* %1018 to i64*
  store i64 1, i64* %._storage43.count._value, align 8
  %._storage43._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %1016, i64 1, i32 1
  store i64 2, i64* %._storage43._capacityAndFlags, align 8
  %1019 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %1016, i64 2
  %1020 = bitcast %TSa* %3 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %1020)
  %._buffer45._storage = getelementptr inbounds %TSa, %TSa* %3, i64 0, i32 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* %958, %Ts28__ContiguousArrayStorageBaseC** %._buffer45._storage, align 8
  %1021 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %958, i64 0, i32 0
  %1022 = call %swift.refcounted* @swift_retain(%swift.refcounted* returned %1021) #19
  %1023 = call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$sSaySSGMD") #18
  %1024 = call i8** @"$sSaySsGSayxGSlsWlTm"(i8*** @"$sSaySSGSayxGSKsWL", { i32, i32 }* @"$sSaySSGMD", %swift.protocol_conformance_descriptor* @"$sSayxGSKsMc")
  %1025 = bitcast %TSa* %3 to %swift.opaque*
  %1026 = call swiftcc { i64, %swift.bridge* } @"$sSKsSS7ElementRtzrlE6joined9separatorS2S_tF"(i64 0, %swift.bridge* nonnull inttoptr (i64 -2305843009213693952 to %swift.bridge*), %swift.type* %1023, i8** %1024, %swift.opaque* noalias nocapture nonnull swiftself %1025)
  call void @swift_release(%swift.refcounted* %1021) #5
  %1027 = extractvalue { i64, %swift.bridge* } %1026, 0
  %1028 = extractvalue { i64, %swift.bridge* } %1026, 1
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %1020)
  %1029 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %1016, i64 3, i32 1
  %1030 = bitcast i64* %1029 to %swift.type**
  store %swift.type* @"$sSSN", %swift.type** %1030, align 8
  %._guts50._object._countAndFlagsBits._value = bitcast %swift.refcounted* %1019 to i64*
  store i64 %1027, i64* %._guts50._object._countAndFlagsBits._value, align 8
  %._guts50._object._object = getelementptr inbounds %swift.refcounted, %swift.refcounted* %1016, i64 2, i32 1
  %1031 = bitcast i64* %._guts50._object._object to %swift.bridge**
  store %swift.bridge* %1028, %swift.bridge** %1031, align 8
  call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %1017, i64 32, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i64 10, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*))
  call void @swift_release(%swift.refcounted* %1016) #5
  call void @swift_release(%swift.refcounted* %1021) #5
  %1032 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %961, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %1032) #5
  %1033 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %1033) #5
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %216)
  ret void

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

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

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

1037:                                             ; preds = %67, %107
  call void asm sideeffect "", "n"(i32 4) #5
  call void @llvm.trap()
  unreachable

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

1039:                                             ; preds = %346
  call void asm sideeffect "", "n"(i32 9) #5
  call void @llvm.trap()
  unreachable

1040:                                             ; preds = %352
  call void asm sideeffect "", "n"(i32 10) #5
  call void @llvm.trap()
  unreachable

1041:                                             ; preds = %364
  call void asm sideeffect "", "n"(i32 11) #5
  call void @llvm.trap()
  unreachable

1042:                                             ; preds = %382
  call void asm sideeffect "", "n"(i32 12) #5
  call void @llvm.trap()
  unreachable

1043:                                             ; preds = %395
  call void asm sideeffect "", "n"(i32 13) #5
  call void @llvm.trap()
  unreachable

1044:                                             ; preds = %420
  call void asm sideeffect "", "n"(i32 14) #5
  call void @llvm.trap()
  unreachable

1045:                                             ; preds = %821
  call void asm sideeffect "", "n"(i32 15) #5
  call void @llvm.trap()
  unreachable

1046:                                             ; preds = %822
  call void asm sideeffect "", "n"(i32 17) #5
  call void @llvm.trap()
  unreachable

1047:                                             ; preds = %935
  call void asm sideeffect "", "n"(i32 19) #5
  call void @llvm.trap()
  unreachable

1048:                                             ; preds = %942
  call void asm sideeffect "", "n"(i32 20) #5
  call void @llvm.trap()
  unreachable

1049:                                             ; preds = %370
  call void asm sideeffect "", "n"(i32 21) #5
  call void @llvm.trap()
  unreachable

1050:                                             ; preds = %976
  call void asm sideeffect "", "n"(i32 23) #5
  call void @llvm.trap()
  unreachable

1051:                                             ; preds = %982
  call void asm sideeffect "", "n"(i32 24) #5
  call void @llvm.trap()
  unreachable

1052:                                             ; preds = %964
  call void asm sideeffect "", "n"(i32 26) #5
  call void @llvm.trap()
  unreachable

1053:                                             ; preds = %970
  call void asm sideeffect "", "n"(i32 27) #5
  call void @llvm.trap()
  unreachable

1054:                                             ; preds = %842
  call void asm sideeffect "", "n"(i32 28) #5
  call void @llvm.trap()
  unreachable

1055:                                             ; preds = %884
  call void asm sideeffect "", "n"(i32 29) #5
  call void @llvm.trap()
  unreachable

1056:                                             ; preds = %893
  call void asm sideeffect "", "n"(i32 30) #5
  call void @llvm.trap()
  unreachable

1057:                                             ; preds = %.preheader336
  call void asm sideeffect "", "n"(i32 32) #5
  call void @llvm.trap()
  unreachable

1058:                                             ; preds = %903
  call void asm sideeffect "", "n"(i32 33) #5
  call void @llvm.trap()
  unreachable

1059:                                             ; preds = %853
  call void asm sideeffect "", "n"(i32 35) #5
  call void @llvm.trap()
  unreachable

1060:                                             ; preds = %.preheader334
  call void asm sideeffect "", "n"(i32 37) #5
  call void @llvm.trap()
  unreachable

1061:                                             ; preds = %.loopexit335
  call void asm sideeffect "", "n"(i32 39) #5
  call void @llvm.trap()
  unreachable

1062:                                             ; preds = %691
  call void asm sideeffect "", "n"(i32 40) #5
  call void @llvm.trap()
  unreachable

1063:                                             ; preds = %692
  call void asm sideeffect "", "n"(i32 42) #5
  call void @llvm.trap()
  unreachable

1064:                                             ; preds = %803
  call void asm sideeffect "", "n"(i32 44) #5
  call void @llvm.trap()
  unreachable

1065:                                             ; preds = %810
  call void asm sideeffect "", "n"(i32 45) #5
  call void @llvm.trap()
  unreachable

1066:                                             ; preds = %712
  call void asm sideeffect "", "n"(i32 46) #5
  call void @llvm.trap()
  unreachable

1067:                                             ; preds = %754
  call void asm sideeffect "", "n"(i32 47) #5
  call void @llvm.trap()
  unreachable

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

1069:                                             ; preds = %.preheader332
  call void asm sideeffect "", "n"(i32 50) #5
  call void @llvm.trap()
  unreachable

1070:                                             ; preds = %773
  call void asm sideeffect "", "n"(i32 51) #5
  call void @llvm.trap()
  unreachable

1071:                                             ; preds = %723
  call void asm sideeffect "", "n"(i32 53) #5
  call void @llvm.trap()
  unreachable

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

1073:                                             ; preds = %.loopexit331
  call void asm sideeffect "", "n"(i32 57) #5
  call void @llvm.trap()
  unreachable

1074:                                             ; preds = %560
  call void asm sideeffect "", "n"(i32 58) #5
  call void @llvm.trap()
  unreachable

1075:                                             ; preds = %561
  call void asm sideeffect "", "n"(i32 60) #5
  call void @llvm.trap()
  unreachable

1076:                                             ; preds = %671
  call void asm sideeffect "", "n"(i32 62) #5
  call void @llvm.trap()
  unreachable

1077:                                             ; preds = %677
  call void asm sideeffect "", "n"(i32 63) #5
  call void @llvm.trap()
  unreachable

1078:                                             ; preds = %581
  call void asm sideeffect "", "n"(i32 64) #5
  call void @llvm.trap()
  unreachable

1079:                                             ; preds = %623
  call void asm sideeffect "", "n"(i32 65) #5
  call void @llvm.trap()
  unreachable

1080:                                             ; preds = %632
  call void asm sideeffect "", "n"(i32 66) #5
  call void @llvm.trap()
  unreachable

1081:                                             ; preds = %.preheader328
  call void asm sideeffect "", "n"(i32 68) #5
  call void @llvm.trap()
  unreachable

1082:                                             ; preds = %642
  call void asm sideeffect "", "n"(i32 69) #5
  call void @llvm.trap()
  unreachable

1083:                                             ; preds = %592
  call void asm sideeffect "", "n"(i32 71) #5
  call void @llvm.trap()
  unreachable

1084:                                             ; preds = %.preheader326
  call void asm sideeffect "", "n"(i32 73) #5
  call void @llvm.trap()
  unreachable

1085:                                             ; preds = %.loopexit327
  call void asm sideeffect "", "n"(i32 75) #5
  call void @llvm.trap()
  unreachable

1086:                                             ; preds = %434
  call void asm sideeffect "", "n"(i32 76) #5
  call void @llvm.trap()
  unreachable

1087:                                             ; preds = %435
  call void asm sideeffect "", "n"(i32 78) #5
  call void @llvm.trap()
  unreachable

1088:                                             ; preds = %545
  call void asm sideeffect "", "n"(i32 80) #5
  call void @llvm.trap()
  unreachable

1089:                                             ; preds = %549
  call void asm sideeffect "", "n"(i32 81) #5
  call void @llvm.trap()
  unreachable

1090:                                             ; preds = %455
  call void asm sideeffect "", "n"(i32 82) #5
  call void @llvm.trap()
  unreachable

1091:                                             ; preds = %497
  call void asm sideeffect "", "n"(i32 83) #5
  call void @llvm.trap()
  unreachable

1092:                                             ; preds = %506
  call void asm sideeffect "", "n"(i32 84) #5
  call void @llvm.trap()
  unreachable

1093:                                             ; preds = %.preheader324
  call void asm sideeffect "", "n"(i32 86) #5
  call void @llvm.trap()
  unreachable

1094:                                             ; preds = %516
  call void asm sideeffect "", "n"(i32 87) #5
  call void @llvm.trap()
  unreachable

1095:                                             ; preds = %466
  call void asm sideeffect "", "n"(i32 89) #5
  call void @llvm.trap()
  unreachable

1096:                                             ; preds = %.preheader
  call void asm sideeffect "", "n"(i32 91) #5
  call void @llvm.trap()
  unreachable

1097:                                             ; preds = %.loopexit
  call void asm sideeffect "", "n"(i32 93) #5
  call void @llvm.trap()
  unreachable

1098:                                             ; preds = %256
  call void asm sideeffect "", "n"(i32 95) #5
  call void @llvm.trap()
  unreachable

1099:                                             ; preds = %298
  call void asm sideeffect "", "n"(i32 96) #5
  call void @llvm.trap()
  unreachable

1100:                                             ; preds = %307
  call void asm sideeffect "", "n"(i32 97) #5
  call void @llvm.trap()
  unreachable

1101:                                             ; preds = %.preheader341
  call void asm sideeffect "", "n"(i32 99) #5
  call void @llvm.trap()
  unreachable

1102:                                             ; preds = %317
  call void asm sideeffect "", "n"(i32 100) #5
  call void @llvm.trap()
  unreachable

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

1104:                                             ; preds = %.preheader339
  call void asm sideeffect "", "n"(i32 104) #5
  call void @llvm.trap()
  unreachable

1105:                                             ; preds = %.loopexit340
  call void asm sideeffect "", "n"(i32 106) #5
  call void @llvm.trap()
  unreachable

1106:                                             ; preds = %146
  tail call void asm sideeffect "", "n"(i32 107) #5
  tail call void @llvm.trap()
  unreachable

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

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

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

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

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

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

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

5:                                                ; preds = %4
  %6 = inttoptr i64 %1 to %swift.bridge*
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %6) #5
  br label %21

7:                                                ; preds = %4
  %8 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$sSSSgMD") #18
  %9 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa28_allocateBufferUninitialized15minimumCapacitys016_ContiguousArrayB0VyxGSi_tFZ"(i64 %2, %swift.type* %8)
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %9, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %2, i64* %._storage.count._value, align 8
  %10 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %9, i64 1
  %11 = bitcast %Ts28__ContiguousArrayStorageBaseC* %10 to i64*
  store i64 %0, i64* %11, align 8
  %12 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %9, i64 1, i32 0, i32 1
  store i64 %1, i64* %12, align 8
  %13 = icmp eq i64 %2, 1
  br i1 %13, label %21, label %14

14:                                               ; preds = %7
  %15 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %9, i64 1, i32 1
  %16 = getelementptr %Ts10_ArrayBodyV, %Ts10_ArrayBodyV* %15, i64 0, i32 0, i32 0, i32 0
  store i64 %0, i64* %16, align 8
  %17 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %9, i64 1, i32 1, i32 0, i32 1, i32 0
  store i64 %1, i64* %17, align 8
  %18 = icmp eq i64 %2, 2
  br i1 %18, label %.._crit_edge_crit_edge, label %.lr.ph

.._crit_edge_crit_edge:                           ; preds = %14
  %.pre = inttoptr i64 %1 to %swift.bridge*
  br label %._crit_edge

.lr.ph:                                           ; preds = %14
  %19 = bitcast %Ts10_ArrayBodyV* %15 to %TSSSg*
  %20 = inttoptr i64 %1 to %swift.bridge*
  br label %23

21:                                               ; preds = %7, %5, %._crit_edge
  %22 = phi %Ts28__ContiguousArrayStorageBaseC* [ %9, %7 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %5 ], [ %9, %._crit_edge ]
  ret %Ts28__ContiguousArrayStorageBaseC* %22

23:                                               ; preds = %.lr.ph, %23
  %24 = phi i64 [ 2, %.lr.ph ], [ %27, %23 ]
  %25 = phi %TSSSg* [ %19, %.lr.ph ], [ %26, %23 ]
  %26 = getelementptr inbounds %TSSSg, %TSSSg* %25, i64 1
  %27 = add i64 %24, 1
  %28 = bitcast %TSSSg* %26 to i64*
  store i64 %0, i64* %28, align 8
  %29 = getelementptr inbounds %TSSSg, %TSSSg* %25, i64 1, i32 0, i64 8
  %30 = bitcast i8* %29 to i64*
  store i64 %1, i64* %30, align 8
  %31 = icmp eq i64 %27, %2
  %32 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %20) #5
  br i1 %31, label %._crit_edge, label %23

._crit_edge:                                      ; preds = %23, %.._crit_edge_crit_edge
  %.pre-phi = phi %swift.bridge* [ %.pre, %.._crit_edge_crit_edge ], [ %20, %23 ]
  %33 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %.pre-phi) #5
  br label %21

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

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc void @"$sSa6append10contentsOfyqd__n_t7ElementQyd__RszSTRd__lFSSSg_SayAEGTg5"(%Ts28__ContiguousArrayStorageBaseC* %0, %TSa* nocapture swiftself dereferenceable(8) %1) local_unnamed_addr #0 {
entry:
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 0, i32 1, i32 0, i32 0, i32 0
  %2 = load i64, i64* %._storage.count._value, align 8, !range !6
  %._buffer._storage = getelementptr inbounds %TSa, %TSa* %1, i64 0, i32 0, i32 0
  %3 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage1.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 1, i32 0, i32 0, i32 0
  %4 = load i64, i64* %._storage1.count._value, align 8, !range !6
  %5 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %4, i64 %2)
  %6 = extractvalue { i64, i1 } %5, 0
  %7 = extractvalue { i64, i1 } %5, 1
  br i1 %7, label %43, label %8, !prof !8

8:                                                ; preds = %entry
  %9 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 0
  %10 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %9) #19
  store %Ts28__ContiguousArrayStorageBaseC* %3, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br i1 %10, label %11, label %15

11:                                               ; preds = %8
  %._storage11._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 1, i32 0, i32 1, i32 0
  %12 = load i64, i64* %._storage11._capacityAndFlags._value, align 8
  %13 = lshr i64 %12, 1
  %14 = icmp slt i64 %13, %6
  br i1 %14, label %15, label %19, !prof !8

15:                                               ; preds = %11, %8
  %16 = load i64, i64* %._storage1.count._value, align 8, !range !6
  %17 = tail call i64 @llvm.smax.i64(i64 %16, i64 %6)
  %18 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSSSg_Tg5"(i1 %10, i64 %17, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %3)
  store %Ts28__ContiguousArrayStorageBaseC* %18, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %19

19:                                               ; preds = %11, %15
  %20 = phi %Ts28__ContiguousArrayStorageBaseC* [ %18, %15 ], [ %3, %11 ]
  %._storage5.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %20, i64 0, i32 1, i32 0, i32 0, i32 0
  %21 = load i64, i64* %._storage5.count._value, align 8, !range !6
  %22 = icmp eq i64 %2, 0
  br i1 %22, label %41, label %23

23:                                               ; preds = %19
  %._storage5._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %20, i64 0, i32 1, i32 0, i32 1, i32 0
  %24 = load i64, i64* %._storage5._capacityAndFlags._value, align 8
  %25 = lshr i64 %24, 1
  %26 = sub nsw i64 %25, %21
  %27 = icmp slt i64 %26, %2
  br i1 %27, label %44, label %28, !prof !8

28:                                               ; preds = %23
  %29 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %20, i64 1
  %tailaddr = bitcast %Ts28__ContiguousArrayStorageBaseC* %29 to %TSSSg*
  %30 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr, i64 %21
  %31 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 1
  %32 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$sSSSgMD") #18
  %33 = bitcast %TSSSg* %30 to %swift.opaque*
  %34 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to %swift.opaque*
  tail call void @swift_arrayInitWithCopy(%swift.opaque* nonnull %33, %swift.opaque* nonnull %34, i64 %2, %swift.type* %32) #19
  %35 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage9.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %35, i64 0, i32 1, i32 0, i32 0, i32 0
  %36 = load i64, i64* %._storage9.count._value, align 8, !range !6
  %37 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %36, i64 %2)
  %38 = extractvalue { i64, i1 } %37, 1
  br i1 %38, label %45, label %39, !prof !8

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

41:                                               ; preds = %19, %39
  %42 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %42) #5
  ret void

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

19:                                               ; preds = %14
  %20 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCySsGMD") #18
  %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) #5
  %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) #20
  %gepdiff = add nsw i64 %call.i, -32
  %26 = sdiv i64 %gepdiff, 32
  %27 = shl nsw i64 %26, 1
  %28 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1
  %._storage7.count._value = bitcast %swift.refcounted* %28 to i64*
  store i64 %16, i64* %._storage7.count._value, align 8
  %._storage7._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1, i32 1
  store i64 %27, i64* %._storage7._capacityAndFlags, align 8
  br label %29

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

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

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

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

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

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

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

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

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

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

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

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

19:                                               ; preds = %14
  %20 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCySSGMD") #18
  %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) #5
  %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) #20
  %gepdiff = add nsw i64 %call.i, -32
  %26 = sdiv i64 %gepdiff, 16
  %27 = shl nsw i64 %26, 1
  %28 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1
  %._storage7.count._value = bitcast %swift.refcounted* %28 to i64*
  store i64 %16, i64* %._storage7.count._value, align 8
  %._storage7._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1, i32 1
  store i64 %27, i64* %._storage7._capacityAndFlags, align 8
  br label %29

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

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

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

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

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

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

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

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

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

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

19:                                               ; preds = %14
  %20 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCySSSgGMD") #18
  %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) #5
  %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) #20
  %gepdiff = add nsw i64 %call.i, -32
  %26 = sdiv i64 %gepdiff, 16
  %27 = shl nsw i64 %26, 1
  %28 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1
  %._storage7.count._value = bitcast %swift.refcounted* %28 to i64*
  store i64 %16, i64* %._storage7.count._value, align 8
  %._storage7._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1, i32 1
  store i64 %27, i64* %._storage7._capacityAndFlags, align 8
  br label %29

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

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

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

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

41:                                               ; preds = %29
  %42 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 1
  %43 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$sSSSgMD") #18
  %44 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to %swift.opaque*
  %45 = bitcast %Ts28__ContiguousArrayStorageBaseC* %42 to %swift.opaque*
  tail call void @swift_arrayInitWithCopy(%swift.opaque* nonnull %44, %swift.opaque* nonnull %45, i64 %16, %swift.type* %43) #19
  br label %46

46:                                               ; preds = %"$sSp14moveInitialize4from5countySpyxG_SitFSSSg_Tg5.exit", %41
  %47 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %47) #5
  ret %Ts28__ContiguousArrayStorageBaseC* %30

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: minsize noinline optsize
define linkonce_odr hidden swiftcc { i64, i8 } @"$ss13_parseInteger5ascii5radixq_Sgx_SitSyRzs010FixedWidthB0R_r0_lFSSSiADSSRszsAER_r0_lIetgyr_Tpq5Si_Tg5"(i64 %0, %swift.bridge* %1, i64 %2) local_unnamed_addr #3 {
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) #5
  %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) #5
  %16 = extractvalue { i64, %swift.bridge* } %15, 0
  %17 = extractvalue { i64, %swift.bridge* } %15, 1
  %.pre = ptrtoint %swift.bridge* %17 to i64
  br label %18

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: minsize optsize
define internal swiftcc void @"$sSsxs5Error_pIggrzo_SsxsAA_pIegnrzo_lTRTA"(%swift.opaque* noalias nocapture sret(%swift.opaque) %0, %TSs* noalias nocapture readonly dereferenceable(32) %1, %swift.refcounted* nocapture readonly swiftself %2, %swift.error** noalias nocapture swifterror dereferenceable(8) %3) #0 {
entry:
  %4 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %2, i64 1, i32 1
  %5 = bitcast i64* %4 to void (%swift.opaque*, i64, i64, i64, %swift.bridge*, %swift.refcounted*, %swift.error**)**
  %6 = load void (%swift.opaque*, i64, i64, i64, %swift.bridge*, %swift.refcounted*, %swift.error**)*, void (%swift.opaque*, i64, i64, i64, %swift.bridge*, %swift.refcounted*, %swift.error**)** %5, align 8
  %.data = getelementptr inbounds i64, i64* %4, i64 1
  %7 = bitcast i64* %.data to %swift.refcounted**
  %8 = load %swift.refcounted*, %swift.refcounted** %7, align 8
  tail call void @llvm.experimental.noalias.scope.decl(metadata !14)
  %._slice._startIndex._rawBits._value.i = getelementptr inbounds %TSs, %TSs* %1, i64 0, i32 0, i32 0, i32 0, i32 0
  %9 = load i64, i64* %._slice._startIndex._rawBits._value.i, align 8, !alias.scope !14, !noalias !17
  %._slice._endIndex._rawBits._value.i = getelementptr inbounds %TSs, %TSs* %1, i64 0, i32 0, i32 1, i32 0, i32 0
  %10 = load i64, i64* %._slice._endIndex._rawBits._value.i, align 8, !alias.scope !14, !noalias !17
  %._slice._base._guts._object._countAndFlagsBits._value.i = getelementptr inbounds %TSs, %TSs* %1, i64 0, i32 0, i32 2, i32 0, i32 0, i32 0, i32 0
  %11 = load i64, i64* %._slice._base._guts._object._countAndFlagsBits._value.i, align 8, !alias.scope !14, !noalias !17
  %._slice._base._guts._object._object.i = getelementptr inbounds %TSs, %TSs* %1, i64 0, i32 0, i32 2, i32 0, i32 0, i32 1
  %12 = load %swift.bridge*, %swift.bridge** %._slice._base._guts._object._object.i, align 8, !alias.scope !14, !noalias !17
  tail call swiftcc void %6(%swift.opaque* noalias nocapture sret(%swift.opaque) %0, i64 %9, i64 %10, i64 %11, %swift.bridge* %12, %swift.refcounted* swiftself %8, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %3) #21, !noalias !14
  ret void
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind willreturn
declare void @swift_arrayInitWithCopy(%swift.opaque*, %swift.opaque*, i64, %swift.type*) local_unnamed_addr #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) #12

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

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

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

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

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

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

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

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

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

; Function Attrs: minsize nounwind optsize
define private swiftcc void @objectdestroy(%swift.refcounted* swiftself %0) #13 {
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) #5
  tail call void @swift_deallocObject(%swift.refcounted* %0, i64 24, i64 7) #5
  ret void
}

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

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

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

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

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

; Function Attrs: inaccessiblememonly nocallback nofree nosync nounwind willreturn
declare void @llvm.experimental.noalias.scope.decl(metadata) #15

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

; Function Attrs: minsize optsize
define internal swiftcc i1 @"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5TA.1"(%TSJ* noalias nocapture dereferenceable(16) %0, %swift.refcounted* nocapture readonly swiftself %1, %swift.error** noalias nocapture swifterror dereferenceable(8) %2) #0 {
  %4 = tail call swiftcc i1 @"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5TA"(%TSJ* noalias nocapture dereferenceable(16) %0, %swift.refcounted* nocapture readonly swiftself %1, %swift.error** noalias nocapture swifterror dereferenceable(8) %2) #0
  ret i1 %4
}

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

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

!0 = !{!"standard-library", i1 false}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 4, !"Objective-C Garbage Collection", i32 84477696}
!5 = !{i32 1, !"Swift Version", i32 7}
!6 = !{i64 0, i64 9223372036854775807}
!7 = !{!"branch_weights", i32 2000, i32 1}
!8 = !{!"branch_weights", i32 1, i32 2000}
!9 = !{!"branch_weights", i32 4000000, i32 2001, i32 2000}
!10 = !{!"branch_weights", i32 2000, i32 2002}
!11 = !{!12}
!12 = distinct !{!12, !13, !"$sSS8_copyingySSSsFZSSSRys5UInt8VGXEfU0_: argument 0"}
!13 = distinct !{!13, !"$sSS8_copyingySSSsFZSSSRys5UInt8VGXEfU0_"}
!14 = !{!15}
!15 = distinct !{!15, !16, !"$sSsxs5Error_pIggrzo_SsxsAA_pIegnrzo_lTR: argument 1"}
!16 = distinct !{!16, !"$sSsxs5Error_pIggrzo_SsxsAA_pIegnrzo_lTR"}
!17 = !{!18, !19}
!18 = distinct !{!18, !16, !"$sSsxs5Error_pIggrzo_SsxsAA_pIegnrzo_lTR: argument 0"}
!19 = distinct !{!19, !16, !"$sSsxs5Error_pIggrzo_SsxsAA_pIegnrzo_lTR: argument 2"}
