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

%struct._SwiftEmptyArrayStorage = type { %struct.HeapObject, %struct._SwiftArrayBodyStorage }
%struct.HeapObject = type { %struct.HeapMetadata*, %struct.InlineRefCountsPlaceholder }
%struct.HeapMetadata = type opaque
%struct.InlineRefCountsPlaceholder = type { i64 }
%struct._SwiftArrayBodyStorage = type { i64, i64 }
%swift.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 }>
%T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV = type <{ %TSa, %TSi, %TSi }>
%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"

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

define hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$s7llvm_O39readWordsySayxGxSsXElF"(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
}

define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE3mapySayqd__Gqd__7ElementQzKXEKlFSaySsG_SSTg585$sSsxs5Error_pIggrzo_SsxsAA_pIegnrzo_lTRSS_TG528$s7llvm_O34mainyyFSSSsXEfU0_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
}

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

define hidden swiftcc void @"$s7llvm_O34mainyyF"() local_unnamed_addr #0 {
entry:
  %0 = alloca %Ts15ContiguousArrayV, align 8
  %.sroa.6 = alloca i8, align 8
  %1 = alloca %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV, 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 %708, 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 %709, label %.preheader287.preheader, !prof !8

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

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 %710, 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

.preheader287:                                    ; preds = %.preheader287.preheader, %60
  %41 = phi %Ts28__ContiguousArrayStorageBaseC* [ %61, %60 ], [ %.pre, %.preheader287.preheader ]
  %42 = phi i64 [ %62, %60 ], [ 0, %.preheader287.preheader ]
  %43 = phi i64 [ %64, %60 ], [ 15, %.preheader287.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 = %.preheader287
  %._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)
  %.pre333 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %52

52:                                               ; preds = %.preheader287, %49
  %53 = phi %Ts28__ContiguousArrayStorageBaseC* [ %41, %.preheader287 ], [ %.pre333, %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)
  %.pre334 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %60

60:                                               ; preds = %52, %58
  %61 = phi %Ts28__ContiguousArrayStorageBaseC* [ %53, %52 ], [ %.pre334, %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 %.preheader287

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 %711

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 %.thread347, !prof !7

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

.thread347:                                       ; 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
  %.elt104._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %4, i64 0, i32 1, i32 0
  store i64 %77, i64* %.elt104._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 %.thread350

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

.thread350:                                       ; 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
  %.not236 = icmp eq %swift.error* %94, null
  tail call void @llvm.assume(i1 %.not236)
  %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_cast332 = bitcast i8* %.sroa.6 to i1*
  store i1 %97, i1* %.sroa.6.0.sroa_cast332, align 8
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre352 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %102

.thread355:                                       ; preds = %109, %146, %144
  %.sroa.6.0.sroa_cast358 = bitcast i8* %.sroa.6 to i1*
  store i1 true, i1* %.sroa.6.0.sroa_cast358, 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..pre359 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %102

.loopexit283.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_cast362 = 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_cast362, 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..pre363 = load i8, i8* %.sroa.6, align 8
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  br label %102

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

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

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

.loopexit283:                                     ; preds = %.preheader284, %168, %171, %.preheader281, %132, %135, %.preheader278, %203, %206, %.loopexit283.loopexit369.split.loop.exit, %.loopexit283.loopexit366.split.loop.exit, %.loopexit283.loopexit.split.loop.exit
  %.sroa.15.0..sroa.15.0..sroa.15.0..sroa.15.8. = phi i1 [ false, %.loopexit283.loopexit.split.loop.exit ], [ false, %.loopexit283.loopexit366.split.loop.exit ], [ false, %.loopexit283.loopexit369.split.loop.exit ], [ true, %206 ], [ true, %203 ], [ true, %.preheader278 ], [ true, %135 ], [ true, %132 ], [ true, %.preheader281 ], [ true, %171 ], [ true, %168 ], [ true, %.preheader284 ]
  %.sroa.0.0 = phi i64 [ %99, %.loopexit283.loopexit.split.loop.exit ], [ %100, %.loopexit283.loopexit366.split.loop.exit ], [ %101, %.loopexit283.loopexit369.split.loop.exit ], [ 0, %206 ], [ 0, %203 ], [ 0, %.preheader278 ], [ 0, %135 ], [ 0, %132 ], [ 0, %.preheader281 ], [ 0, %171 ], [ 0, %168 ], [ 0, %.preheader284 ]
  %.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 = %.loopexit283.thread, %.thread355, %.thread350, %.loopexit283
  %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre354 = phi i8 [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre352, %.thread350 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre, %.loopexit283 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre359, %.thread355 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre363, %.loopexit283.thread ]
  %.sroa.0159.0353 = phi i64 [ %98, %.thread350 ], [ %.sroa.0.0, %.loopexit283 ], [ 0, %.thread355 ], [ %.sroa.0.0.ph, %.loopexit283.thread ]
  call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %33) #5
  br label %107

103:                                              ; preds = %.thread347, %.loopexit283
  %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.0159.0353, %102 ]
  %.in234.in = phi i8 [ %106, %103 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre354, %102 ]
  %.in234 = and i8 %.in234.in, 1
  %.not235 = icmp eq i8 %.in234, 0
  br i1 %.not235, label %215, label %711

109:                                              ; preds = %75
  switch i64 %37, label %110 [
    i64 0, label %744
    i64 1, label %.thread355
  ], !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 %.loopexit283.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 %.loopexit283.thread, label %118

118:                                              ; preds = %114
  %119 = add i8 %83, -48
  %120 = icmp ult i8 %119, 10
  br i1 %120, label %121, label %.loopexit283.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 %.loopexit283.thread, label %.preheader281.preheader

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

.preheader281:                                    ; preds = %.preheader281.preheader, %140
  %127 = phi i8* [ %142, %140 ], [ %126, %.preheader281.preheader ]
  %128 = phi i64 [ %141, %140 ], [ %124, %.preheader281.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 %.loopexit283, !prof !10

132:                                              ; preds = %.preheader281
  %133 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %128, i64 10)
  %134 = extractvalue { i64, i1 } %133, 1
  br i1 %134, label %.loopexit283, 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 %.loopexit283, 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 %.loopexit283.loopexit366.split.loop.exit, label %.preheader281

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

146:                                              ; preds = %75
  switch i64 %37, label %147 [
    i64 0, label %743
    i64 1, label %.thread355
  ], !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 %.loopexit283.thread, !prof !10

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

154:                                              ; preds = %151
  %155 = add i8 %83, -48
  %156 = icmp ult i8 %155, 10
  br i1 %156, label %157, label %.loopexit283.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 %.loopexit283.thread, label %.preheader284.preheader

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

.preheader284:                                    ; preds = %.preheader284.preheader, %176
  %163 = phi i8* [ %178, %176 ], [ %162, %.preheader284.preheader ]
  %164 = phi i64 [ %177, %176 ], [ %160, %.preheader284.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 %.loopexit283, !prof !10

168:                                              ; preds = %.preheader284
  %169 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %164, i64 10)
  %170 = extractvalue { i64, i1 } %169, 1
  br i1 %170, label %.loopexit283, 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 %.loopexit283, 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 %.loopexit283.loopexit369.split.loop.exit, label %.preheader284

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

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

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

189:                                              ; preds = %186
  %190 = add i8 %81, -48
  %191 = icmp ult i8 %190, 10
  br i1 %191, label %192, label %.loopexit283.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 %.loopexit283.thread, label %.preheader278.preheader

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

.preheader278:                                    ; preds = %.preheader278.preheader, %211
  %198 = phi i8* [ %213, %211 ], [ %197, %.preheader278.preheader ]
  %199 = phi i64 [ %212, %211 ], [ %195, %.preheader278.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 %.loopexit283, !prof !10

203:                                              ; preds = %.preheader278
  %204 = call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %199, i64 10)
  %205 = extractvalue { i64, i1 } %204, 1
  br i1 %205, label %.loopexit283, 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 %.loopexit283, 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 %.loopexit283.loopexit.split.loop.exit, label %.preheader278

215:                                              ; preds = %107
  %216 = bitcast %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV* %1 to i8*
  call void @llvm.lifetime.start.p0i8(i64 24, 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
  %.buffer = getelementptr inbounds %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV, %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV* %1, i64 0, i32 0
  %.buffer._buffer._storage = getelementptr inbounds %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV, %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV* %1, i64 0, i32 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** %.buffer._buffer._storage, align 8
  %.head._value = getelementptr inbounds %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV, %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV* %1, i64 0, i32 1, i32 0
  %.tail._value = getelementptr inbounds %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV, %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV* %1, i64 0, i32 2, i32 0
  %._storage12.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 0, i32 1, i32 0, i32 0, i32 0
  %221 = bitcast i64* %.head._value to i8*
  call void @llvm.memset.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %221, i8 0, i64 16, i1 false)
  %222 = load i64, i64* %._storage12.count._value, align 8, !range !6
  %223 = icmp eq i64 %222, 0
  br i1 %223, label %367, label %224

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

228:                                              ; preds = %357, %224
  %229 = phi %Ts28__ContiguousArrayStorageBaseC* [ %218, %224 ], [ %350, %357 ]
  %230 = phi i64 [ 0, %224 ], [ %339, %357 ]
  %231 = phi i64 [ 0, %224 ], [ %351, %357 ]
  %232 = phi i64 [ 0, %224 ], [ %352, %357 ]
  %._guts17._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %tailaddr16, i64 %231, i32 0, i32 0, i32 0, i32 0
  %233 = load i64, i64* %._guts17._object._countAndFlagsBits._value, align 8
  %._guts17._object._object = getelementptr inbounds %TSS, %TSS* %tailaddr16, i64 %231, i32 0, i32 0, i32 1
  %234 = load %swift.bridge*, %swift.bridge** %._guts17._object._object, align 8
  %._storage18.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %229, i64 0, i32 1, i32 0, i32 0, i32 0
  %235 = load i64, i64* %._storage18.count._value, align 8, !range !6
  %236 = add nsw i64 %235, -1
  %237 = sub i64 %232, %230
  %238 = and i64 %237, %236
  %239 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %235, i64 %238)
  %240 = extractvalue { i64, i1 } %239, 1
  br i1 %240, label %712, label %241, !prof !8

241:                                              ; preds = %228
  %242 = extractvalue { i64, i1 } %239, 0
  %243 = icmp eq i64 %242, 1
  br i1 %243, label %244, label %335

244:                                              ; preds = %241
  %.not232 = icmp eq i64 %235, 0
  %245 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %234) #5
  br i1 %.not232, label %.loopexit277, label %246

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

.loopexit277:                                     ; preds = %244, %.loopexit277.loopexit, %246
  %251 = phi %Ts28__ContiguousArrayStorageBaseC* [ %247, %246 ], [ %247, %.loopexit277.loopexit ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %244 ]
  call swiftcc void @"$sSa6append10contentsOfyqd__n_t7ElementQyd__RszSTRd__lFSSSg_SayAEGTg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %251, %TSa* nocapture nonnull swiftself dereferenceable(8) %.buffer)
  %252 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  %._storage91.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %252, i64 0, i32 1, i32 0, i32 0, i32 0
  %253 = load i64, i64* %._storage91.count._value, align 8, !range !6
  %254 = load i64, i64* %.tail._value, align 8
  %255 = icmp slt i64 %232, %254
  br i1 %255, label %258, label %337

.loopexit277.loopexit:                            ; preds = %246
  %scevgep = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %247, i64 1, i32 1, i32 0, i32 0, i32 0
  %scevgep313 = bitcast i64* %scevgep to i8*
  %256 = shl i64 %235, 4
  %257 = add i64 %256, -16
  call void @llvm.memset.p0i8.i64(i8* align 8 %scevgep313, i8 0, i64 %257, i1 false)
  br label %.loopexit277

258:                                              ; preds = %.loopexit277
  %259 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %235, i64 %254)
  %260 = extractvalue { i64, i1 } %259, 0
  %261 = extractvalue { i64, i1 } %259, 1
  br i1 %261, label %734, label %262, !prof !8

262:                                              ; preds = %258
  %263 = icmp slt i64 %232, %260
  br i1 %263, label %264, label %300

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

267:                                              ; preds = %264
  %268 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %252)
  br label %269

269:                                              ; preds = %264, %267
  %270 = phi %Ts28__ContiguousArrayStorageBaseC* [ %268, %267 ], [ %252, %264 ]
  %271 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %270, i64 1
  %tailaddr101 = bitcast %Ts28__ContiguousArrayStorageBaseC* %271 to %TSSSg*
  %272 = icmp slt i64 %232, 0
  br i1 %272, label %740, label %273, !prof !8

273:                                              ; preds = %269
  %274 = icmp eq i64 %232, 0
  %275 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr101, i64 %235
  %276 = bitcast %Ts28__ContiguousArrayStorageBaseC* %271 to <2 x i64>*
  %277 = load <2 x i64>, <2 x i64>* %276, align 8
  %278 = bitcast %TSSSg* %275 to <2 x i64>*
  %279 = load <2 x i64>, <2 x i64>* %278, align 8
  %280 = bitcast %Ts28__ContiguousArrayStorageBaseC* %271 to <2 x i64>*
  store <2 x i64> %279, <2 x i64>* %280, align 8
  %281 = bitcast %TSSSg* %275 to <2 x i64>*
  store <2 x i64> %277, <2 x i64>* %281, align 8
  br i1 %274, label %.loopexit274, label %.preheader273

.preheader273:                                    ; preds = %273, %286
  %282 = phi i64 [ %283, %286 ], [ 0, %273 ]
  %283 = add nuw nsw i64 %282, 1
  %284 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %283, i64 %235)
  %285 = extractvalue { i64, i1 } %284, 1
  br i1 %285, label %741, label %286, !prof !8

286:                                              ; preds = %.preheader273
  %287 = extractvalue { i64, i1 } %284, 0
  %288 = icmp eq i64 %283, %232
  %289 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr101, i64 %283
  %290 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr101, i64 %287
  %291 = bitcast %TSSSg* %289 to <2 x i64>*
  %292 = load <2 x i64>, <2 x i64>* %291, align 8
  %293 = bitcast %TSSSg* %290 to <2 x i64>*
  %294 = load <2 x i64>, <2 x i64>* %293, align 8
  %295 = bitcast %TSSSg* %289 to <2 x i64>*
  store <2 x i64> %294, <2 x i64>* %295, align 8
  %296 = bitcast %TSSSg* %290 to <2 x i64>*
  store <2 x i64> %292, <2 x i64>* %296, align 8
  br i1 %288, label %.loopexit274, label %.preheader273

.loopexit274:                                     ; preds = %286, %273
  store %Ts28__ContiguousArrayStorageBaseC* %270, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  %297 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %232, i64 %235)
  %298 = extractvalue { i64, i1 } %297, 0
  %299 = extractvalue { i64, i1 } %297, 1
  br i1 %299, label %742, label %337, !prof !8

300:                                              ; preds = %262
  %301 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %253, i64 %260)
  %302 = extractvalue { i64, i1 } %301, 0
  %303 = extractvalue { i64, i1 } %301, 1
  br i1 %303, label %735, label %304, !prof !8

304:                                              ; preds = %300
  %305 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %252, i64 0, i32 0
  %306 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %305) #19
  br i1 %306, label %309, label %307

307:                                              ; preds = %304
  %308 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %252)
  br label %309

309:                                              ; preds = %304, %307
  %310 = phi %Ts28__ContiguousArrayStorageBaseC* [ %308, %307 ], [ %252, %304 ]
  %311 = icmp slt i64 %235, %254
  br i1 %311, label %736, label %312, !prof !8

312:                                              ; preds = %309
  %313 = icmp eq i64 %254, %235
  br i1 %313, label %.loopexit276, label %314

314:                                              ; preds = %312
  %315 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %310, i64 1
  %tailaddr95 = bitcast %Ts28__ContiguousArrayStorageBaseC* %315 to %TSSSg*
  %.not233 = icmp slt i64 %254, %235
  br i1 %.not233, label %.preheader275, label %737, !prof !7

.preheader275:                                    ; preds = %314, %324
  %316 = phi i64 [ %317, %324 ], [ %254, %314 ]
  %317 = add i64 %316, 1
  %318 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %316, i64 %254)
  %319 = extractvalue { i64, i1 } %318, 1
  br i1 %319, label %738, label %320, !prof !8

320:                                              ; preds = %.preheader275
  %321 = extractvalue { i64, i1 } %318, 0
  %322 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %321, i64 %302)
  %323 = extractvalue { i64, i1 } %322, 1
  br i1 %323, label %739, label %324, !prof !8

324:                                              ; preds = %320
  %325 = extractvalue { i64, i1 } %322, 0
  %326 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr95, i64 %316
  %327 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr95, i64 %325
  %328 = bitcast %TSSSg* %326 to <2 x i64>*
  %329 = load <2 x i64>, <2 x i64>* %328, align 8
  %330 = bitcast %TSSSg* %327 to <2 x i64>*
  %331 = load <2 x i64>, <2 x i64>* %330, align 8
  %332 = bitcast %TSSSg* %326 to <2 x i64>*
  store <2 x i64> %331, <2 x i64>* %332, align 8
  %333 = bitcast %TSSSg* %327 to <2 x i64>*
  store <2 x i64> %329, <2 x i64>* %333, align 8
  %334 = icmp eq i64 %317, %235
  br i1 %334, label %.loopexit276, label %.preheader275

.loopexit276:                                     ; preds = %324, %312
  store %Ts28__ContiguousArrayStorageBaseC* %310, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  store i64 %302, i64* %.tail._value, align 8
  br label %337

335:                                              ; preds = %241
  %336 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %234) #5
  br label %337

337:                                              ; preds = %.loopexit277, %.loopexit274, %.loopexit276, %335
  %338 = phi %Ts28__ContiguousArrayStorageBaseC* [ %229, %335 ], [ %310, %.loopexit276 ], [ %270, %.loopexit274 ], [ %252, %.loopexit277 ]
  %339 = phi i64 [ %230, %335 ], [ %302, %.loopexit276 ], [ %254, %.loopexit274 ], [ %254, %.loopexit277 ]
  %340 = phi i64 [ %232, %335 ], [ %232, %.loopexit276 ], [ %298, %.loopexit274 ], [ %232, %.loopexit277 ]
  %341 = add i64 %340, 1
  %._storage19.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %338, i64 0, i32 1, i32 0, i32 0, i32 0
  %342 = load i64, i64* %._storage19.count._value, align 8, !range !6
  %343 = add nsw i64 %342, -1
  %344 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %338, i64 0, i32 0
  %345 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %234) #5
  %346 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %344) #19
  br i1 %346, label %349, label %347

347:                                              ; preds = %337
  %348 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %338)
  store %Ts28__ContiguousArrayStorageBaseC* %348, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  br label %349

349:                                              ; preds = %337, %347
  %350 = phi %Ts28__ContiguousArrayStorageBaseC* [ %338, %337 ], [ %348, %347 ]
  %351 = add nuw nsw i64 %231, 1
  %352 = and i64 %343, %341
  %353 = ptrtoint %swift.bridge* %234 to i64
  %354 = icmp slt i64 %340, 0
  br i1 %354, label %713, label %355, !prof !8

355:                                              ; preds = %349
  %._storage22.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %350, i64 0, i32 1, i32 0, i32 0, i32 0
  %356 = load i64, i64* %._storage22.count._value, align 8, !range !6
  %.not222 = icmp ult i64 %340, %356
  br i1 %.not222, label %357, label %714, !prof !7

357:                                              ; preds = %355
  %358 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %350, i64 1
  %tailaddr23 = bitcast %Ts28__ContiguousArrayStorageBaseC* %358 to %TSSSg*
  %359 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr23, i64 %340
  %360 = bitcast %TSSSg* %359 to i64*
  %361 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr23, i64 %340, i32 0, i64 8
  %362 = bitcast i8* %361 to i64*
  %363 = load i64, i64* %362, align 8
  %364 = inttoptr i64 %363 to %swift.bridge*
  call void @swift_bridgeObjectRelease(%swift.bridge* %364) #5
  store i64 %233, i64* %360, align 8
  store i64 %353, i64* %362, align 8
  call void @swift_bridgeObjectRelease(%swift.bridge* %234) #5
  %365 = icmp eq i64 %351, %222
  br i1 %365, label %366, label %228

366:                                              ; preds = %357
  call void @swift_release(%swift.refcounted* %226) #5
  store i64 %352, i64* %.head._value, align 8
  br label %367

367:                                              ; preds = %215, %366
  %368 = phi %Ts28__ContiguousArrayStorageBaseC* [ %218, %215 ], [ %350, %366 ]
  %369 = icmp slt i64 %108, 1
  br i1 %369, label %715, label %.preheader, !prof !8

.preheader:                                       ; preds = %367
  %370 = 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 %377

371:                                              ; preds = %"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV9pushFrontyyxFSS_Tg5.exit", %"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV8pushBackyyxFSS_Tg5.exit", %523, %469, %406
  %372 = phi %Ts28__ContiguousArrayStorageBaseC* [ %378, %406 ], [ %464, %469 ], [ %518, %523 ], [ %566, %"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV8pushBackyyxFSS_Tg5.exit" ], [ %613, %"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV9pushFrontyyxFSS_Tg5.exit" ]
  %373 = phi i1 [ %408, %406 ], [ true, %469 ], [ false, %523 ], [ true, %"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV8pushBackyyxFSS_Tg5.exit" ], [ false, %"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV9pushFrontyyxFSS_Tg5.exit" ]
  %374 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %380, i64 1)
  %375 = extractvalue { i64, i1 } %374, 0
  %376 = extractvalue { i64, i1 } %374, 1
  br i1 %376, label %720, label %377, !prof !8

377:                                              ; preds = %.preheader, %371
  %378 = phi %Ts28__ContiguousArrayStorageBaseC* [ %372, %371 ], [ %368, %.preheader ]
  %379 = phi i1 [ %373, %371 ], [ true, %.preheader ]
  %380 = phi i64 [ %375, %371 ], [ 1, %.preheader ]
  %381 = call swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1 true)
  %382 = extractvalue { i64, i64 } %381, 1
  %383 = icmp eq i64 %382, 0
  br i1 %383, label %716, label %384

384:                                              ; preds = %377
  %385 = extractvalue { i64, i64 } %381, 0
  %386 = inttoptr i64 %382 to %swift.bridge*
  %387 = icmp eq i64 %380, %108
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %370)
  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()
  %388 = alloca [24 x i8], align 16
  %389 = bitcast [24 x i8]* %388 to %swift.opaque*
  %390 = getelementptr inbounds [24 x i8], [24 x i8]* %388, i64 0, i64 16
  %391 = bitcast i8* %390 to %TSJ**
  store %TSJ* %2, %TSJ** %391, align 16
  %392 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* nonnull returned %386) #5
  %393 = 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 %389, i64 %385, %swift.bridge* nonnull %386, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %386) #5
  call void @llvm.stackrestore(i8* %spsave)
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %370)
  %394 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE3mapySayqd__Gqd__7ElementQzKXEKlFSaySsG_SSTg585$sSsxs5Error_pIggrzo_SsxsAA_pIegnrzo_lTRSS_TG528$s7llvm_O34mainyyFSSSsXEfU0_Tf3nnpf_nTf1cn_n"(%Ts28__ContiguousArrayStorageBaseC* %393, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  %395 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %393, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %395) #5
  %._storage27.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 0, i32 1, i32 0, i32 0, i32 0
  %396 = load i64, i64* %._storage27.count._value, align 8, !range !6
  %.not223 = icmp eq i64 %396, 0
  br i1 %.not223, label %717, label %397, !prof !8

397:                                              ; preds = %384
  %398 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 1
  %tailaddr28._guts._object._countAndFlagsBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %398 to i64*
  %399 = load i64, i64* %tailaddr28._guts._object._countAndFlagsBits._value, align 8
  %tailaddr28._guts._object._object = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 1, i32 0, i32 1
  %400 = bitcast i64* %tailaddr28._guts._object._object to %swift.bridge**
  %401 = load %swift.bridge*, %swift.bridge** %400, align 8
  %402 = icmp eq i64 %399, 49
  %403 = icmp eq %swift.bridge* %401, inttoptr (i64 -2233785415175766016 to %swift.bridge*)
  %or.cond = select i1 %402, i1 %403, i1 false
  br i1 %or.cond, label %406, label %404

404:                                              ; preds = %397
  %405 = call swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64 %399, %swift.bridge* %401, i64 49, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i8 0)
  br i1 %405, label %406, label %409

406:                                              ; preds = %404, %397
  %407 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %407) #5
  %408 = xor i1 %379, true
  br i1 %387, label %629, label %371

409:                                              ; preds = %404
  %410 = load i64, i64* %._storage27.count._value, align 8, !range !6
  %411 = icmp ult i64 %410, 2
  br i1 %411, label %718, label %412, !prof !8

412:                                              ; preds = %409
  %._guts31._object._countAndFlagsBits._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 1, i32 1, i32 0, i32 0, i32 0
  %413 = load i64, i64* %._guts31._object._countAndFlagsBits._value, align 8
  %._guts31._object._object = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 1, i32 1, i32 0, i32 1
  %414 = bitcast %TSu* %._guts31._object._object to %swift.bridge**
  %415 = load %swift.bridge*, %swift.bridge** %414, align 8
  %416 = icmp eq i64 %413, 49
  %417 = icmp eq %swift.bridge* %415, inttoptr (i64 -2233785415175766016 to %swift.bridge*)
  %or.cond237 = select i1 %416, i1 %417, i1 false
  br i1 %or.cond237, label %420, label %418

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

420:                                              ; preds = %412, %418
  %421 = load i64, i64* %._storage27.count._value, align 8, !range !6
  %422 = icmp ult i64 %421, 3
  br i1 %379, label %423, label %478

423:                                              ; preds = %420
  br i1 %422, label %730, label %424, !prof !8

424:                                              ; preds = %423
  %425 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 2
  %._guts74._object._countAndFlagsBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %425 to i64*
  %426 = load i64, i64* %._guts74._object._countAndFlagsBits._value, align 8
  %._guts74._object._object = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 2, i32 0, i32 1
  %427 = bitcast i64* %._guts74._object._object to %swift.bridge**
  %428 = load %swift.bridge*, %swift.bridge** %427, align 8
  %429 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  %._storage78.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %429, i64 0, i32 1, i32 0, i32 0, i32 0
  %430 = load i64, i64* %._storage78.count._value, align 8, !range !6
  %431 = add nsw i64 %430, -1
  %432 = load i64, i64* %.tail._value, align 8
  %433 = load i64, i64* %.head._value, align 8
  %434 = sub i64 %433, %432
  %435 = and i64 %434, %431
  %436 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %430, i64 %435)
  %437 = extractvalue { i64, i1 } %436, 1
  br i1 %437, label %731, label %438, !prof !8

438:                                              ; preds = %424
  %439 = extractvalue { i64, i1 } %436, 0
  %440 = icmp eq i64 %439, 1
  br i1 %440, label %441, label %451

441:                                              ; preds = %438
  %.not231 = icmp eq i64 %430, 0
  %442 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %428) #5
  br i1 %.not231, label %.loopexit, label %443

443:                                              ; preds = %441
  %444 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa28_allocateBufferUninitialized15minimumCapacitys016_ContiguousArrayB0VyxGSi_tFZ"(i64 %430, %swift.type* %217)
  %._storage85.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %444, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %430, i64* %._storage85.count._value, align 8
  %445 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %444, i64 1
  %446 = icmp eq i64 %430, 1
  %447 = bitcast %Ts28__ContiguousArrayStorageBaseC* %445 to i8*
  call void @llvm.memset.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %447, i8 0, i64 16, i1 false)
  br i1 %446, label %.loopexit, label %.loopexit.loopexit

.loopexit:                                        ; preds = %441, %.loopexit.loopexit, %443
  %448 = phi %Ts28__ContiguousArrayStorageBaseC* [ %444, %443 ], [ %444, %.loopexit.loopexit ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %441 ]
  call swiftcc void @"$sSa6append10contentsOfyqd__n_t7ElementQyd__RszSTRd__lFSSSg_SayAEGTg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %448, %TSa* nocapture nonnull swiftself dereferenceable(8) %.buffer)
  call swiftcc void @"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV22handleCapacityIncrease6oldCapySi_tFSS_Tg5"(i64 %430, %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV* nocapture nonnull swiftself dereferenceable(24) %1)
  %.pre341 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  %._storage79.count._value.phi.trans.insert = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %.pre341, i64 0, i32 1, i32 0, i32 0, i32 0
  %.pre342 = load i64, i64* %._storage79.count._value.phi.trans.insert, align 8, !range !6
  %.pre343 = load i64, i64* %.tail._value, align 8
  %.pre344 = add nsw i64 %.pre342, -1
  br label %453

.loopexit.loopexit:                               ; preds = %443
  %scevgep316 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %444, i64 1, i32 1, i32 0, i32 0, i32 0
  %scevgep316317 = bitcast i64* %scevgep316 to i8*
  %449 = shl i64 %430, 4
  %450 = add i64 %449, -16
  call void @llvm.memset.p0i8.i64(i8* align 8 %scevgep316317, i8 0, i64 %450, i1 false)
  br label %.loopexit

451:                                              ; preds = %438
  %452 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %428) #5
  br label %453

453:                                              ; preds = %.loopexit, %451
  %.pre-phi = phi i64 [ %.pre344, %.loopexit ], [ %431, %451 ]
  %454 = phi i64 [ %.pre343, %.loopexit ], [ %432, %451 ]
  %455 = phi %Ts28__ContiguousArrayStorageBaseC* [ %.pre341, %.loopexit ], [ %429, %451 ]
  %456 = add i64 %454, -1
  %457 = and i64 %456, %.pre-phi
  store i64 %457, i64* %.tail._value, align 8
  %458 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %455, i64 0, i32 0
  %459 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %428) #5
  %460 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %458) #19
  br i1 %460, label %463, label %461

461:                                              ; preds = %453
  %462 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %455)
  br label %463

463:                                              ; preds = %453, %461
  %464 = phi %Ts28__ContiguousArrayStorageBaseC* [ %462, %461 ], [ %455, %453 ]
  %465 = ptrtoint %swift.bridge* %428 to i64
  %466 = icmp slt i64 %457, 0
  br i1 %466, label %732, label %467, !prof !8

467:                                              ; preds = %463
  %._storage81.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %464, i64 0, i32 1, i32 0, i32 0, i32 0
  %468 = load i64, i64* %._storage81.count._value, align 8, !range !6
  %.not230 = icmp ult i64 %457, %468
  br i1 %.not230, label %469, label %733, !prof !7

469:                                              ; preds = %467
  %470 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %464, i64 1
  %tailaddr82 = bitcast %Ts28__ContiguousArrayStorageBaseC* %470 to %TSSSg*
  %471 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr82, i64 %457
  %472 = bitcast %TSSSg* %471 to i64*
  %473 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr82, i64 %457, i32 0, i64 8
  %474 = bitcast i8* %473 to i64*
  %475 = load i64, i64* %474, align 8
  %476 = inttoptr i64 %475 to %swift.bridge*
  call void @swift_bridgeObjectRelease(%swift.bridge* %476) #5
  store i64 %426, i64* %472, align 8
  store i64 %465, i64* %474, align 8
  call void @swift_bridgeObjectRelease(%swift.bridge* %428) #5
  %477 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %477) #5
  store %Ts28__ContiguousArrayStorageBaseC* %464, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  br i1 %387, label %629, label %371

478:                                              ; preds = %420
  br i1 %422, label %726, label %479, !prof !8

479:                                              ; preds = %478
  %480 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 2
  %._guts62._object._countAndFlagsBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %480 to i64*
  %481 = load i64, i64* %._guts62._object._countAndFlagsBits._value, align 8
  %._guts62._object._object = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 2, i32 0, i32 1
  %482 = bitcast i64* %._guts62._object._object to %swift.bridge**
  %483 = load %swift.bridge*, %swift.bridge** %482, align 8
  %._storage66.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %378, i64 0, i32 1, i32 0, i32 0, i32 0
  %484 = load i64, i64* %._storage66.count._value, align 8, !range !6
  %485 = add nsw i64 %484, -1
  %486 = load i64, i64* %.tail._value, align 8
  %487 = load i64, i64* %.head._value, align 8
  %488 = sub i64 %487, %486
  %489 = and i64 %488, %485
  %490 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %484, i64 %489)
  %491 = extractvalue { i64, i1 } %490, 1
  br i1 %491, label %727, label %492, !prof !8

492:                                              ; preds = %479
  %493 = extractvalue { i64, i1 } %490, 0
  %494 = icmp eq i64 %493, 1
  br i1 %494, label %495, label %505

495:                                              ; preds = %492
  %.not229 = icmp eq i64 %484, 0
  %496 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %483) #5
  br i1 %.not229, label %.loopexit272, label %497

497:                                              ; preds = %495
  %498 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa28_allocateBufferUninitialized15minimumCapacitys016_ContiguousArrayB0VyxGSi_tFZ"(i64 %484, %swift.type* %217)
  %._storage73.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %498, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %484, i64* %._storage73.count._value, align 8
  %499 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %498, i64 1
  %500 = icmp eq i64 %484, 1
  %501 = bitcast %Ts28__ContiguousArrayStorageBaseC* %499 to i8*
  call void @llvm.memset.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %501, i8 0, i64 16, i1 false)
  br i1 %500, label %.loopexit272, label %.loopexit272.loopexit

.loopexit272:                                     ; preds = %495, %.loopexit272.loopexit, %497
  %502 = phi %Ts28__ContiguousArrayStorageBaseC* [ %498, %497 ], [ %498, %.loopexit272.loopexit ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %495 ]
  call swiftcc void @"$sSa6append10contentsOfyqd__n_t7ElementQyd__RszSTRd__lFSSSg_SayAEGTg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %502, %TSa* nocapture nonnull swiftself dereferenceable(8) %.buffer)
  call swiftcc void @"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV22handleCapacityIncrease6oldCapySi_tFSS_Tg5"(i64 %484, %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV* nocapture nonnull swiftself dereferenceable(24) %1)
  %.pre338 = load i64, i64* %.head._value, align 8
  %.pre339 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  %._storage67.count._value.phi.trans.insert = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %.pre339, i64 0, i32 1, i32 0, i32 0, i32 0
  %.pre340 = load i64, i64* %._storage67.count._value.phi.trans.insert, align 8, !range !6
  %.pre345 = add nsw i64 %.pre340, -1
  br label %507

.loopexit272.loopexit:                            ; preds = %497
  %scevgep314 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %498, i64 1, i32 1, i32 0, i32 0, i32 0
  %scevgep314315 = bitcast i64* %scevgep314 to i8*
  %503 = shl i64 %484, 4
  %504 = add i64 %503, -16
  call void @llvm.memset.p0i8.i64(i8* align 8 %scevgep314315, i8 0, i64 %504, i1 false)
  br label %.loopexit272

505:                                              ; preds = %492
  %506 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %483) #5
  br label %507

507:                                              ; preds = %.loopexit272, %505
  %.pre-phi346 = phi i64 [ %.pre345, %.loopexit272 ], [ %485, %505 ]
  %508 = phi %Ts28__ContiguousArrayStorageBaseC* [ %.pre339, %.loopexit272 ], [ %378, %505 ]
  %509 = phi i64 [ %.pre338, %.loopexit272 ], [ %487, %505 ]
  %510 = add i64 %509, 1
  %511 = and i64 %.pre-phi346, %510
  store i64 %511, i64* %.head._value, align 8
  %512 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %508, i64 0, i32 0
  %513 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %483) #5
  %514 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %512) #19
  br i1 %514, label %517, label %515

515:                                              ; preds = %507
  %516 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %508)
  br label %517

517:                                              ; preds = %507, %515
  %518 = phi %Ts28__ContiguousArrayStorageBaseC* [ %516, %515 ], [ %508, %507 ]
  %519 = ptrtoint %swift.bridge* %483 to i64
  %520 = icmp slt i64 %509, 0
  br i1 %520, label %728, label %521, !prof !8

521:                                              ; preds = %517
  %._storage69.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %518, i64 0, i32 1, i32 0, i32 0, i32 0
  %522 = load i64, i64* %._storage69.count._value, align 8, !range !6
  %.not228 = icmp ult i64 %509, %522
  br i1 %.not228, label %523, label %729, !prof !7

523:                                              ; preds = %521
  %524 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %518, i64 1
  %tailaddr70 = bitcast %Ts28__ContiguousArrayStorageBaseC* %524 to %TSSSg*
  %525 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr70, i64 %509
  %526 = bitcast %TSSSg* %525 to i64*
  %527 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr70, i64 %509, i32 0, i64 8
  %528 = bitcast i8* %527 to i64*
  %529 = load i64, i64* %528, align 8
  %530 = inttoptr i64 %529 to %swift.bridge*
  call void @swift_bridgeObjectRelease(%swift.bridge* %530) #5
  store i64 %481, i64* %526, align 8
  store i64 %519, i64* %528, align 8
  call void @swift_bridgeObjectRelease(%swift.bridge* %483) #5
  %531 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %531) #5
  store %Ts28__ContiguousArrayStorageBaseC* %518, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  br i1 %387, label %629, label %371

532:                                              ; preds = %418
  %533 = load i64, i64* %._storage27.count._value, align 8, !range !6
  %534 = icmp ult i64 %533, 3
  br i1 %379, label %535, label %582

535:                                              ; preds = %532
  br i1 %534, label %725, label %536, !prof !8

536:                                              ; preds = %535
  %537 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 2
  %._guts61._object._countAndFlagsBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %537 to i64*
  %538 = load i64, i64* %._guts61._object._countAndFlagsBits._value, align 8
  %._guts61._object._object = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 2, i32 0, i32 1
  %539 = bitcast i64* %._guts61._object._object to %swift.bridge**
  %540 = load %swift.bridge*, %swift.bridge** %539, align 8
  %._storage.count._value.i = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %378, i64 0, i32 1, i32 0, i32 0, i32 0
  %541 = load i64, i64* %._storage.count._value.i, align 8, !range !6
  %542 = add nsw i64 %541, -1
  %543 = load i64, i64* %.tail._value, align 8
  %544 = load i64, i64* %.head._value, align 8
  %545 = sub i64 %544, %543
  %546 = and i64 %545, %542
  %547 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %541, i64 %546)
  %548 = extractvalue { i64, i1 } %547, 1
  %549 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %540) #5
  br i1 %548, label %570, label %550, !prof !8

550:                                              ; preds = %536
  %551 = extractvalue { i64, i1 } %547, 0
  %552 = icmp eq i64 %551, 1
  br i1 %552, label %553, label %555

553:                                              ; preds = %550
  %554 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa9repeating5countSayxGx_SitcfCSSSg_Tg5"(i64 0, i64 0, i64 %541)
  call swiftcc void @"$sSa6append10contentsOfyqd__n_t7ElementQyd__RszSTRd__lFSSSg_SayAEGTg5"(%Ts28__ContiguousArrayStorageBaseC* %554, %TSa* nocapture nonnull swiftself dereferenceable(8) %.buffer)
  call swiftcc void @"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV22handleCapacityIncrease6oldCapySi_tFSS_Tg5"(i64 %541, %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV* nocapture nonnull swiftself dereferenceable(24) %1)
  %.pre.i = load i64, i64* %.head._value, align 8
  %.pre5.i = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  %._storage1.count._value.phi.trans.insert.i = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %.pre5.i, i64 0, i32 1, i32 0, i32 0, i32 0
  %.pre6.i = load i64, i64* %._storage1.count._value.phi.trans.insert.i, align 8, !range !6
  %.pre7.i = add nsw i64 %.pre6.i, -1
  br label %555

555:                                              ; preds = %553, %550
  %.pre-phi.i = phi i64 [ %542, %550 ], [ %.pre7.i, %553 ]
  %556 = phi %Ts28__ContiguousArrayStorageBaseC* [ %378, %550 ], [ %.pre5.i, %553 ]
  %557 = phi i64 [ %544, %550 ], [ %.pre.i, %553 ]
  %558 = add i64 %557, 1
  %559 = and i64 %558, %.pre-phi.i
  store i64 %559, i64* %.head._value, align 8
  %560 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %556, i64 0, i32 0
  %561 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %540) #5
  %562 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %560) #19
  br i1 %562, label %565, label %563

563:                                              ; preds = %555
  %564 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %556)
  br label %565

565:                                              ; preds = %563, %555
  %566 = phi %Ts28__ContiguousArrayStorageBaseC* [ %564, %563 ], [ %556, %555 ]
  %567 = icmp slt i64 %557, 0
  br i1 %567, label %571, label %568, !prof !8

568:                                              ; preds = %565
  %._storage3.count._value.i = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %566, i64 0, i32 1, i32 0, i32 0, i32 0
  %569 = load i64, i64* %._storage3.count._value.i, align 8, !range !6
  %.not.i = icmp ult i64 %557, %569
  br i1 %.not.i, label %"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV8pushBackyyxFSS_Tg5.exit", label %572, !prof !7

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

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

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

"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV8pushBackyyxFSS_Tg5.exit": ; preds = %568
  %573 = ptrtoint %swift.bridge* %540 to i64
  %574 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %566, i64 1
  %tailaddr.i = bitcast %Ts28__ContiguousArrayStorageBaseC* %574 to %TSSSg*
  %575 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr.i, i64 %557
  %576 = bitcast %TSSSg* %575 to i64*
  %577 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr.i, i64 %557, i32 0, i64 8
  %578 = bitcast i8* %577 to i64*
  %579 = load i64, i64* %578, align 8
  %580 = inttoptr i64 %579 to %swift.bridge*
  call void @swift_bridgeObjectRelease(%swift.bridge* %580) #5
  store i64 %538, i64* %576, align 8
  store i64 %573, i64* %578, align 8
  store %Ts28__ContiguousArrayStorageBaseC* %566, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  call void @swift_bridgeObjectRelease(%swift.bridge* %540) #5
  %581 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %581) #5
  br i1 %387, label %629, label %371

582:                                              ; preds = %532
  br i1 %534, label %719, label %583, !prof !8

583:                                              ; preds = %582
  %584 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 2
  %._guts32._object._countAndFlagsBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %584 to i64*
  %585 = load i64, i64* %._guts32._object._countAndFlagsBits._value, align 8
  %._guts32._object._object = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 2, i32 0, i32 1
  %586 = bitcast i64* %._guts32._object._object to %swift.bridge**
  %587 = load %swift.bridge*, %swift.bridge** %586, align 8
  %._storage.count._value.i241 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %378, i64 0, i32 1, i32 0, i32 0, i32 0
  %588 = load i64, i64* %._storage.count._value.i241, align 8, !range !6
  %589 = add nsw i64 %588, -1
  %590 = load i64, i64* %.tail._value, align 8
  %591 = load i64, i64* %.head._value, align 8
  %592 = sub i64 %591, %590
  %593 = and i64 %592, %589
  %594 = call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %588, i64 %593)
  %595 = extractvalue { i64, i1 } %594, 1
  %596 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %587) #5
  br i1 %595, label %617, label %597, !prof !8

597:                                              ; preds = %583
  %598 = extractvalue { i64, i1 } %594, 0
  %599 = icmp eq i64 %598, 1
  br i1 %599, label %600, label %602

600:                                              ; preds = %597
  %601 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa9repeating5countSayxGx_SitcfCSSSg_Tg5"(i64 0, i64 0, i64 %588)
  call swiftcc void @"$sSa6append10contentsOfyqd__n_t7ElementQyd__RszSTRd__lFSSSg_SayAEGTg5"(%Ts28__ContiguousArrayStorageBaseC* %601, %TSa* nocapture nonnull swiftself dereferenceable(8) %.buffer)
  call swiftcc void @"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV22handleCapacityIncrease6oldCapySi_tFSS_Tg5"(i64 %588, %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV* nocapture nonnull swiftself dereferenceable(24) %1)
  %.pre.i243 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  %._storage1.count._value.phi.trans.insert.i244 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %.pre.i243, i64 0, i32 1, i32 0, i32 0, i32 0
  %.pre5.i245 = load i64, i64* %._storage1.count._value.phi.trans.insert.i244, align 8, !range !6
  %.pre6.i246 = load i64, i64* %.tail._value, align 8
  %.pre7.i247 = add nsw i64 %.pre5.i245, -1
  br label %602

602:                                              ; preds = %600, %597
  %.pre-phi.i248 = phi i64 [ %589, %597 ], [ %.pre7.i247, %600 ]
  %603 = phi i64 [ %590, %597 ], [ %.pre6.i246, %600 ]
  %604 = phi %Ts28__ContiguousArrayStorageBaseC* [ %378, %597 ], [ %.pre.i243, %600 ]
  %605 = add i64 %603, -1
  %606 = and i64 %605, %.pre-phi.i248
  store i64 %606, i64* %.tail._value, align 8
  %607 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %604, i64 0, i32 0
  %608 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %587) #5
  %609 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %607) #19
  br i1 %609, label %612, label %610

610:                                              ; preds = %602
  %611 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %604)
  br label %612

612:                                              ; preds = %610, %602
  %613 = phi %Ts28__ContiguousArrayStorageBaseC* [ %611, %610 ], [ %604, %602 ]
  %614 = icmp slt i64 %606, 0
  br i1 %614, label %618, label %615, !prof !8

615:                                              ; preds = %612
  %._storage3.count._value.i249 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %613, i64 0, i32 1, i32 0, i32 0, i32 0
  %616 = load i64, i64* %._storage3.count._value.i249, align 8, !range !6
  %.not.i250 = icmp ult i64 %606, %616
  br i1 %.not.i250, label %"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV9pushFrontyyxFSS_Tg5.exit", label %619, !prof !7

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

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

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

"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV9pushFrontyyxFSS_Tg5.exit": ; preds = %615
  %620 = ptrtoint %swift.bridge* %587 to i64
  %621 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %613, i64 1
  %tailaddr.i251 = bitcast %Ts28__ContiguousArrayStorageBaseC* %621 to %TSSSg*
  %622 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr.i251, i64 %606
  %623 = bitcast %TSSSg* %622 to i64*
  %624 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr.i251, i64 %606, i32 0, i64 8
  %625 = bitcast i8* %624 to i64*
  %626 = load i64, i64* %625, align 8
  %627 = inttoptr i64 %626 to %swift.bridge*
  call void @swift_bridgeObjectRelease(%swift.bridge* %627) #5
  store i64 %585, i64* %623, align 8
  store i64 %620, i64* %625, align 8
  store %Ts28__ContiguousArrayStorageBaseC* %613, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  call void @swift_bridgeObjectRelease(%swift.bridge* %587) #5
  %628 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %394, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %628) #5
  br i1 %387, label %629, label %371

629:                                              ; preds = %"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV9pushFrontyyxFSS_Tg5.exit", %"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV8pushBackyyxFSS_Tg5.exit", %523, %469, %406
  %630 = phi i1 [ %408, %406 ], [ true, %469 ], [ false, %523 ], [ true, %"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV8pushBackyyxFSS_Tg5.exit" ], [ false, %"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV9pushFrontyyxFSS_Tg5.exit" ]
  br label %631

631:                                              ; preds = %684, %629
  %632 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %629 ], [ %685, %684 ]
  %633 = load i64, i64* %.head._value, align 8
  %634 = load i64, i64* %.tail._value, align 8
  %635 = icmp eq i64 %634, %633
  br i1 %630, label %636, label %649

636:                                              ; preds = %631
  br i1 %635, label %687, label %637

637:                                              ; preds = %636
  %638 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  %._storage57.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %638, i64 0, i32 1, i32 0, i32 0, i32 0
  %639 = load i64, i64* %._storage57.count._value, align 8, !range !6
  %640 = add nsw i64 %639, -1
  %641 = add i64 %634, 1
  %642 = and i64 %640, %641
  store i64 %642, i64* %.tail._value, align 8
  %643 = icmp slt i64 %634, 0
  br i1 %643, label %723, label %644, !prof !8

644:                                              ; preds = %637
  %.not227 = icmp ult i64 %634, %639
  br i1 %.not227, label %645, label %724, !prof !7

645:                                              ; preds = %644
  %646 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %638, i64 1
  %tailaddr60 = bitcast %Ts28__ContiguousArrayStorageBaseC* %646 to %TSSSg*
  %647 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr60, i64 %634
  %648 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr60, i64 %634, i32 0, i64 8
  br label %662

649:                                              ; preds = %631
  br i1 %635, label %687, label %650

650:                                              ; preds = %649
  %651 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  %._storage36.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %651, i64 0, i32 1, i32 0, i32 0, i32 0
  %652 = load i64, i64* %._storage36.count._value, align 8, !range !6
  %653 = add nsw i64 %652, -1
  %654 = add i64 %633, -1
  %655 = and i64 %653, %654
  store i64 %655, i64* %.head._value, align 8
  %656 = icmp slt i64 %655, 0
  br i1 %656, label %721, label %657, !prof !8

657:                                              ; preds = %650
  %.not224.not = icmp eq i64 %652, 0
  br i1 %.not224.not, label %722, label %658, !prof !8

658:                                              ; preds = %657
  %659 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %651, i64 1
  %tailaddr39 = bitcast %Ts28__ContiguousArrayStorageBaseC* %659 to %TSSSg*
  %660 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr39, i64 %655
  %661 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr39, i64 %655, i32 0, i64 8
  br label %662

662:                                              ; preds = %645, %658
  %.in.in = phi %TSSSg* [ %660, %658 ], [ %647, %645 ]
  %.in225.in = phi i8* [ %661, %658 ], [ %648, %645 ]
  %.in225 = bitcast i8* %.in225.in to i64*
  %.in = bitcast %TSSSg* %.in.in to i64*
  %663 = load i64, i64* %.in225, align 8
  %664 = load i64, i64* %.in, align 8
  %665 = icmp eq i64 %663, 0
  br i1 %665, label %687, label %666

666:                                              ; preds = %662
  %667 = inttoptr i64 %663 to %swift.bridge*
  %668 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %632, i64 0, i32 0
  %669 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* nonnull returned %667) #5
  %670 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %668) #19
  br i1 %670, label %675, label %671

671:                                              ; preds = %666
  %._storage49.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %632, i64 0, i32 1, i32 0, i32 0, i32 0
  %672 = load i64, i64* %._storage49.count._value, align 8, !range !6
  %673 = add nuw nsw i64 %672, 1
  %674 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSS_Tg5"(i1 false, i64 %673, i1 true, %Ts28__ContiguousArrayStorageBaseC* %632)
  br label %675

675:                                              ; preds = %666, %671
  %676 = phi %Ts28__ContiguousArrayStorageBaseC* [ %674, %671 ], [ %632, %666 ]
  %._storage50.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %676, i64 0, i32 1, i32 0, i32 0, i32 0
  %677 = load i64, i64* %._storage50.count._value, align 8, !range !6
  %._storage50._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %676, i64 0, i32 1, i32 0, i32 1, i32 0
  %678 = load i64, i64* %._storage50._capacityAndFlags._value, align 8
  %679 = lshr i64 %678, 1
  %680 = add nuw nsw i64 %677, 1
  %.not226 = icmp ugt i64 %679, %677
  br i1 %.not226, label %684, label %681, !prof !7

681:                                              ; preds = %675
  %682 = icmp ugt i64 %678, 1
  %683 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSS_Tg5"(i1 %682, i64 %680, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %676)
  br label %684

684:                                              ; preds = %675, %681
  %685 = phi %Ts28__ContiguousArrayStorageBaseC* [ %683, %681 ], [ %676, %675 ]
  %._storage51.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %685, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %680, i64* %._storage51.count._value, align 8
  %686 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %685, i64 1
  %tailaddr52 = bitcast %Ts28__ContiguousArrayStorageBaseC* %686 to %TSS*
  %._guts53._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %tailaddr52, i64 %677, i32 0, i32 0, i32 0, i32 0
  store i64 %664, i64* %._guts53._object._countAndFlagsBits._value, align 8
  %._guts53._object._object = getelementptr inbounds %TSS, %TSS* %tailaddr52, i64 %677, i32 0, i32 0, i32 1
  store %swift.bridge* %667, %swift.bridge** %._guts53._object._object, align 8
  br label %631

687:                                              ; preds = %662, %649, %636
  %688 = call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #18
  %689 = call noalias %swift.refcounted* @swift_allocObject(%swift.type* %688, i64 64, i64 7) #5
  %690 = bitcast %swift.refcounted* %689 to %Ts28__ContiguousArrayStorageBaseC*
  %691 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %689, i64 1
  %._storage40.count._value = bitcast %swift.refcounted* %691 to i64*
  store i64 1, i64* %._storage40.count._value, align 8
  %._storage40._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %689, i64 1, i32 1
  store i64 2, i64* %._storage40._capacityAndFlags, align 8
  %692 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %689, i64 2
  %693 = bitcast %TSa* %3 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %693)
  %._buffer42._storage = getelementptr inbounds %TSa, %TSa* %3, i64 0, i32 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* %632, %Ts28__ContiguousArrayStorageBaseC** %._buffer42._storage, align 8
  %694 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %632, i64 0, i32 0
  %695 = call %swift.refcounted* @swift_retain(%swift.refcounted* returned %694) #19
  %696 = call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$sSaySSGMD") #18
  %697 = call i8** @"$sSaySsGSayxGSlsWlTm"(i8*** @"$sSaySSGSayxGSKsWL", { i32, i32 }* @"$sSaySSGMD", %swift.protocol_conformance_descriptor* @"$sSayxGSKsMc")
  %698 = bitcast %TSa* %3 to %swift.opaque*
  %699 = call swiftcc { i64, %swift.bridge* } @"$sSKsSS7ElementRtzrlE6joined9separatorS2S_tF"(i64 0, %swift.bridge* nonnull inttoptr (i64 -2305843009213693952 to %swift.bridge*), %swift.type* %696, i8** %697, %swift.opaque* noalias nocapture nonnull swiftself %698)
  call void @swift_release(%swift.refcounted* %694) #5
  %700 = extractvalue { i64, %swift.bridge* } %699, 0
  %701 = extractvalue { i64, %swift.bridge* } %699, 1
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %693)
  %702 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %689, i64 3, i32 1
  %703 = bitcast i64* %702 to %swift.type**
  store %swift.type* @"$sSSN", %swift.type** %703, align 8
  %._guts47._object._countAndFlagsBits._value = bitcast %swift.refcounted* %692 to i64*
  store i64 %700, i64* %._guts47._object._countAndFlagsBits._value, align 8
  %._guts47._object._object = getelementptr inbounds %swift.refcounted, %swift.refcounted* %689, i64 2, i32 1
  %704 = bitcast i64* %._guts47._object._object to %swift.bridge**
  store %swift.bridge* %701, %swift.bridge** %704, align 8
  call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %690, 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* %694) #5
  %705 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  call void @swift_release(%swift.refcounted* %689) #5
  %706 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %705, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %706) #5
  %707 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %707) #5
  call void @llvm.lifetime.end.p0i8(i64 24, i8* nonnull %216)
  ret void

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

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

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

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

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

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

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

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

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

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

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

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

720:                                              ; preds = %371
  call void asm sideeffect "", "n"(i32 16) #5
  call void @llvm.trap()
  unreachable

721:                                              ; preds = %650
  call void asm sideeffect "", "n"(i32 18) #5
  call void @llvm.trap()
  unreachable

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

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

724:                                              ; preds = %644
  call void asm sideeffect "", "n"(i32 22) #5
  call void @llvm.trap()
  unreachable

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

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

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

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

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

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

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

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

733:                                              ; preds = %467
  call void asm sideeffect "", "n"(i32 36) #5
  call void @llvm.trap()
  unreachable

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

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

736:                                              ; preds = %309
  call void asm sideeffect "", "n"(i32 41) #5
  call void @llvm.trap()
  unreachable

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

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

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

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

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

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

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

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

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

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
}

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
}

define internal swiftcc void @"$s7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV22handleCapacityIncrease6oldCapySi_tFSS_Tg5"(i64 %0, %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV* nocapture swiftself dereferenceable(24) %1) unnamed_addr #0 {
entry:
  %.buffer._buffer._storage = getelementptr inbounds %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV, %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV* %1, i64 0, i32 0, i32 0, i32 0
  %2 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %2, i64 0, i32 1, i32 0, i32 0, i32 0
  %3 = load i64, i64* %._storage.count._value, align 8, !range !6
  %.tail._value = getelementptr inbounds %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV, %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV* %1, i64 0, i32 2, i32 0
  %4 = load i64, i64* %.tail._value, align 8
  %.head._value = getelementptr inbounds %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV, %T7llvm_O35Deque33_73E641EE209B6240D9CA5E4E565FCA33LLV* %1, i64 0, i32 1, i32 0
  %5 = load i64, i64* %.head._value, align 8
  %6 = icmp slt i64 %5, %4
  br i1 %6, label %7, label %85

7:                                                ; preds = %entry
  %8 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %0, i64 %4)
  %9 = extractvalue { i64, i1 } %8, 0
  %10 = extractvalue { i64, i1 } %8, 1
  br i1 %10, label %86, label %11, !prof !8

11:                                               ; preds = %7
  %12 = icmp slt i64 %5, %9
  br i1 %12, label %13, label %50

13:                                               ; preds = %11
  %14 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %2, i64 0, i32 0
  %15 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %14) #19
  store %Ts28__ContiguousArrayStorageBaseC* %2, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  br i1 %15, label %18, label %16

16:                                               ; preds = %13
  %17 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %2)
  store %Ts28__ContiguousArrayStorageBaseC* %17, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  br label %18

18:                                               ; preds = %13, %16
  %19 = phi %Ts28__ContiguousArrayStorageBaseC* [ %17, %16 ], [ %2, %13 ]
  %20 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %19, i64 1
  %tailaddr9 = bitcast %Ts28__ContiguousArrayStorageBaseC* %20 to %TSSSg*
  %21 = icmp slt i64 %5, 0
  br i1 %21, label %92, label %22, !prof !8

22:                                               ; preds = %18
  %23 = icmp eq i64 %5, 0
  %24 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr9, i64 %0
  %25 = bitcast %Ts28__ContiguousArrayStorageBaseC* %20 to <2 x i64>*
  %26 = load <2 x i64>, <2 x i64>* %25, align 8
  %27 = bitcast %TSSSg* %24 to <2 x i64>*
  %28 = load <2 x i64>, <2 x i64>* %27, align 8
  %29 = bitcast %Ts28__ContiguousArrayStorageBaseC* %20 to <2 x i64>*
  store <2 x i64> %28, <2 x i64>* %29, align 8
  %30 = bitcast %TSSSg* %24 to <2 x i64>*
  store <2 x i64> %26, <2 x i64>* %30, align 8
  br i1 %23, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %22, %35
  %31 = phi i64 [ %32, %35 ], [ 0, %22 ]
  %32 = add nuw nsw i64 %31, 1
  %33 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %32, i64 %0)
  %34 = extractvalue { i64, i1 } %33, 1
  br i1 %34, label %93, label %35, !prof !8

35:                                               ; preds = %.preheader
  %36 = extractvalue { i64, i1 } %33, 0
  %37 = icmp eq i64 %32, %5
  %38 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr9, i64 %32
  %39 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr9, i64 %36
  %40 = bitcast %TSSSg* %38 to <2 x i64>*
  %41 = load <2 x i64>, <2 x i64>* %40, align 8
  %42 = bitcast %TSSSg* %39 to <2 x i64>*
  %43 = load <2 x i64>, <2 x i64>* %42, align 8
  %44 = bitcast %TSSSg* %38 to <2 x i64>*
  store <2 x i64> %43, <2 x i64>* %44, align 8
  %45 = bitcast %TSSSg* %39 to <2 x i64>*
  store <2 x i64> %41, <2 x i64>* %45, align 8
  br i1 %37, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %35, %22
  store %Ts28__ContiguousArrayStorageBaseC* %19, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  %46 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %5, i64 %0)
  %47 = extractvalue { i64, i1 } %46, 1
  br i1 %47, label %94, label %48, !prof !8

48:                                               ; preds = %.loopexit
  %49 = extractvalue { i64, i1 } %46, 0
  store i64 %49, i64* %.head._value, align 8
  br label %85

50:                                               ; preds = %11
  %51 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %3, i64 %9)
  %52 = extractvalue { i64, i1 } %51, 0
  %53 = extractvalue { i64, i1 } %51, 1
  br i1 %53, label %87, label %54, !prof !8

54:                                               ; preds = %50
  %55 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %2, i64 0, i32 0
  %56 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %55) #19
  store %Ts28__ContiguousArrayStorageBaseC* %2, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  br i1 %56, label %59, label %57

57:                                               ; preds = %54
  %58 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSSSg_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %2)
  store %Ts28__ContiguousArrayStorageBaseC* %58, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  br label %59

59:                                               ; preds = %54, %57
  %60 = phi %Ts28__ContiguousArrayStorageBaseC* [ %58, %57 ], [ %2, %54 ]
  %61 = icmp sgt i64 %4, %0
  br i1 %61, label %88, label %62, !prof !8

62:                                               ; preds = %59
  %63 = icmp eq i64 %4, %0
  br i1 %63, label %.loopexit18, label %64

64:                                               ; preds = %62
  %65 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %60, i64 1
  %tailaddr = bitcast %Ts28__ContiguousArrayStorageBaseC* %65 to %TSSSg*
  %.not = icmp slt i64 %4, %0
  br i1 %.not, label %.preheader17, label %89, !prof !7

.preheader17:                                     ; preds = %64, %74
  %66 = phi i64 [ %67, %74 ], [ %4, %64 ]
  %67 = add i64 %66, 1
  %68 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %66, i64 %4)
  %69 = extractvalue { i64, i1 } %68, 1
  br i1 %69, label %90, label %70, !prof !8

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

74:                                               ; preds = %70
  %75 = extractvalue { i64, i1 } %72, 0
  %76 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr, i64 %66
  %77 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr, i64 %75
  %78 = bitcast %TSSSg* %76 to <2 x i64>*
  %79 = load <2 x i64>, <2 x i64>* %78, align 8
  %80 = bitcast %TSSSg* %77 to <2 x i64>*
  %81 = load <2 x i64>, <2 x i64>* %80, align 8
  %82 = bitcast %TSSSg* %76 to <2 x i64>*
  store <2 x i64> %81, <2 x i64>* %82, align 8
  %83 = bitcast %TSSSg* %77 to <2 x i64>*
  store <2 x i64> %79, <2 x i64>* %83, align 8
  %84 = icmp eq i64 %67, %0
  br i1 %84, label %.loopexit18, label %.preheader17

.loopexit18:                                      ; preds = %74, %62
  store %Ts28__ContiguousArrayStorageBaseC* %60, %Ts28__ContiguousArrayStorageBaseC** %.buffer._buffer._storage, align 8
  store i64 %52, i64* %.tail._value, align 8
  br label %85

85:                                               ; preds = %entry, %48, %.loopexit18
  ret void

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

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

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

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

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

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

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

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

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

define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE5split9maxSplits25omittingEmptySubsequences14whereSeparatorSay11SubSequenceQzGSi_S2b7ElementQzKXEtKFSS_Tg5"(i64 %0, i1 %1, i8* %2, %swift.opaque* %3, i64 %4, %swift.bridge* %5, %swift.refcounted* swiftself %6, %swift.error** noalias nocapture swifterror dereferenceable(8) %7) local_unnamed_addr #0 {
entry:
  %8 = alloca %TSJ, align 8
  %9 = icmp slt i64 %0, 0
  br i1 %9, label %149, label %10, !prof !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
  %._buffer._storage = bitcast %swift.refcounted* %12 to %Ts28__ContiguousArrayStorageBaseC**
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %13 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* nonnull getelementptr inbounds (%swift.full_boxmetadata, %swift.full_boxmetadata* @metadata.4, i64 0, i32 2), i64 24, i64 7) #5
  %14 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %13, i64 1
  %._rawBits._value = bitcast %swift.refcounted* %14 to i64*
  store i64 15, i64* %._rawBits._value, align 8
  %15 = icmp eq i64 %0, 0
  %.pre = ptrtoint %swift.bridge* %5 to i64
  %.pre47 = and i64 %.pre, 2305843009213693952
  br i1 %15, label %._crit_edge, label %16

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: noinline
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSS_Tg5"(i1 %0, i64 %1, i1 %2, %Ts28__ContiguousArrayStorageBaseC* %3) local_unnamed_addr #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
  %tailaddr4 = bitcast %Ts28__ContiguousArrayStorageBaseC* %32 to %TSS*
  %34 = getelementptr inbounds %TSS, %TSS* %tailaddr4, i64 %16
  %35 = bitcast %TSS* %34 to %Ts28__ContiguousArrayStorageBaseC*
  %36 = icmp ult %Ts28__ContiguousArrayStorageBaseC* %31, %35
  %37 = icmp eq %Ts28__ContiguousArrayStorageBaseC* %30, %3
  %or.cond14 = select i1 %37, i1 %36, i1 false
  br i1 %or.cond14, label %41, label %.sink.split

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

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

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

45:                                               ; preds = %41, %42
  %46 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %46) #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: noinline
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
  %tailaddr4 = bitcast %Ts28__ContiguousArrayStorageBaseC* %34 to %TSSSg*
  %35 = getelementptr inbounds %TSSSg, %TSSSg* %tailaddr4, i64 %16, i32 0, i64 0
  %36 = icmp ugt i8* %35, %33
  %37 = icmp eq %Ts28__ContiguousArrayStorageBaseC* %30, %3
  %or.cond14 = select i1 %37, i1 %36, i1 false
  br i1 %or.cond14, label %40, label %.sink.split

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

40:                                               ; preds = %32, %.sink.split
  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 = %40, %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
}

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

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

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

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

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

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

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

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

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

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

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

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

18:                                               ; preds = %12
  %._elements._slice._base._guts._object._object = getelementptr inbounds %Ts16IndexingIteratorVySs8UTF8ViewVG, %Ts16IndexingIteratorVySs8UTF8ViewVG* %4, i64 0, i32 0, i32 0, i32 2, i32 0, i32 0, i32 1
  %19 = load %swift.bridge*, %swift.bridge** %._elements._slice._base._guts._object._object, align 8
  %20 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %3) #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
}

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
}

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: noinline
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: noinline
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: mustprogress nocallback nofree nosync nounwind willreturn
declare i8* @llvm.stacksave() #4

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

; 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

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: mustprogress nofree noinline nounwind 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: mustprogress nofree noinline nounwind 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

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

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

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

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

; Function Attrs: noinline
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

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

define internal swiftcc i1 @"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5TATm"(%TSJ* noalias nocapture readonly dereferenceable(16) %0, %swift.refcounted* nocapture readonly swiftself %1, %swift.error** noalias nocapture readnone swifterror dereferenceable(8) %2) #0 {
entry:
  %3 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %1, i64 1
  %4 = bitcast %swift.refcounted* %3 to %TSJ**
  %5 = load %TSJ*, %TSJ** %4, align 8
  tail call void @llvm.experimental.noalias.scope.decl(metadata !20)
  tail call void @llvm.experimental.noalias.scope.decl(metadata !23)
  %._str._guts._object._countAndFlagsBits._value.i = getelementptr inbounds %TSJ, %TSJ* %0, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0
  %6 = load i64, i64* %._str._guts._object._countAndFlagsBits._value.i, align 8, !alias.scope !20, !noalias !23
  %._str._guts._object._object.i = getelementptr inbounds %TSJ, %TSJ* %0, i64 0, i32 0, i32 0, i32 0, i32 1
  %7 = load %swift.bridge*, %swift.bridge** %._str._guts._object._object.i, align 8, !alias.scope !20, !noalias !23
  %._str1._guts._object._countAndFlagsBits._value.i = getelementptr inbounds %TSJ, %TSJ* %5, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0
  %8 = load i64, i64* %._str1._guts._object._countAndFlagsBits._value.i, align 8, !alias.scope !23, !noalias !20
  %._str1._guts._object._object.i = getelementptr inbounds %TSJ, %TSJ* %5, i64 0, i32 0, i32 0, i32 0, i32 1
  %9 = load %swift.bridge*, %swift.bridge** %._str1._guts._object._object.i, align 8, !alias.scope !23, !noalias !20
  %10 = icmp eq i64 %6, %8
  %11 = icmp eq %swift.bridge* %7, %9
  %or.cond.i = select i1 %10, i1 %11, i1 false
  br i1 %or.cond.i, label %"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5.exit", label %12

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

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

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

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

; Function Attrs: nofree noinline nosync nounwind 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
}

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: noinline
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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
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: nounwind
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

attributes #0 = { "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { cold noreturn nounwind }
attributes #2 = { argmemonly mustprogress nocallback nofree nosync nounwind willreturn }
attributes #3 = { noinline "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #5 = { nounwind }
attributes #6 = { mustprogress nofree noinline nounwind readonly willreturn "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { nofree noinline nosync nounwind readnone "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #12 = { argmemonly mustprogress nocallback nofree nounwind willreturn }
attributes #13 = { nounwind "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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"}
!20 = !{!21}
!21 = distinct !{!21, !22, !"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5: argument 0"}
!22 = distinct !{!22, !"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5"}
!23 = !{!24}
!24 = distinct !{!24, !22, !"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5: argument 1"}
!25 = !{!21, !24}
