import Foundation

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

func main() {
    let nm = readWords { Int($0)! }
    let n = nm[0]
    let m = nm[1]

    let ab: [(Int, Int)] = (1...n).map { _ in 
        let ab = readWords { Int($0)! }
        return (ab[0], ab[1])
    }.sorted(by: <)

    var ans = 0
    var pq = PriorityQueue<Int>(<=)
    var i = 0
    for day in 1...m {
        while i < n && ab[i].0 <= day {
            pq.push(ab[i].1)
            i += 1
        }
        if let b = pq.pop() {
            ans += b
        }
    }

    print(ans)
}

private struct PriorityQueue<T: Comparable> {
    private var data: [T]
    private var ordered: (T, T) -> Bool
    
    public var isEmpty: Bool {
        return data.isEmpty
    }
    
    public var count: Int {
        return data.count
    }

    init(_ order: @escaping (T, T) -> Bool) {
        self.data = []
        self.ordered = order
    }

    init<Seq: Sequence>(_ seq: Seq, _ order: @escaping (T, T) -> Bool) where Seq.Element == T {
        self.data = []
        self.ordered = order
        
        for x in seq {
            push(x)
        }
    }
    
    public mutating func pop() -> T? {
        return data.popLast().map { item in
            var item = item
            if !isEmpty {
                swap(&item, &data[0])
                siftDown()
            }
            return item
        }
    }
    
    public mutating func push(_ item: T) {
        let oldLen = count
        data.append(item)
        siftUp(oldLen)
    }
    
    private mutating func siftDown() {
        var pos = 0
        let end = count
        
        data.withUnsafeMutableBufferPointer { bufferPointer in
            let _data = bufferPointer.baseAddress!
            swap(&_data[0], &_data[end])
            
            var child = 2 * pos + 1
            while child < end {
                let right = child + 1
                if right < end && ordered(_data[child], _data[right]) {
                    child = right
                }
                swap(&_data[pos], &_data[child])
                pos = child
                child = 2 * pos + 1
            }
        }
        siftUp(pos)
    }
    
    private mutating func siftUp(_ pos: Int) {
        var pos = pos
        while pos > 0 {
            let parent = (pos - 1) / 2;
            if ordered(data[pos], data[parent]) {
                break
            }
            data.swapAt(pos, parent)
            pos = parent
        }
    }
}

extension PriorityQueue: Sequence, IteratorProtocol {
    mutating func next() -> T? {
        return pop()
    }
}

main()


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

%struct._SwiftEmptyArrayStorage = type { %struct.HeapObject, %struct._SwiftArrayBodyStorage }
%struct.HeapObject = type { %struct.HeapMetadata*, %struct.InlineRefCountsPlaceholder }
%struct.HeapMetadata = type opaque
%struct.InlineRefCountsPlaceholder = type { i64 }
%struct._SwiftArrayBodyStorage = type { i64, i64 }
%swift.protocol_conformance_descriptor = type { i32, i32, i32, i32 }
%swift.type_descriptor = type opaque
%swift.type = type { i64 }
%swift.protocol = type { i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i32, i32, i32, i32, i32, i32 }
%swift.protocol_requirement = type { i32, i32 }
%swift.method_descriptor = type { i32, i32 }
%swift.full_existential_type = type { i8**, %swift.type }
%swift.full_boxmetadata = type { void (%swift.refcounted*)*, i8**, %swift.type, i32, i8* }
%swift.refcounted = type { %swift.type*, i64 }
%swift.vwtable = type { i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i64, i64, i32, i32 }
%swift.type_metadata_record = type { i32 }
%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_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV = type <{ %TSa, %swift.function }>
%swift.function = type { i8*, %swift.refcounted* }
%swift.metadata_response = type { %swift.type*, i64 }
%TSq.0 = type <{}>
%TSr = type <{ %TSq.2, %TSi }>
%TSq.2 = type <{ [8 x i8] }>
%TSrySi_SitG = type <{ %TSpySi_SitGSg, %TSi }>
%TSpySi_SitGSg = type <{ [8 x i8] }>
%TSnySiG = type <{ %TSi, %TSi }>
%TSs = type <{ %Ts5SliceVySSG }>
%Ts5SliceVySSG = type <{ %TSS5IndexV, %TSS5IndexV, %TSS }>
%TSS5IndexV = type <{ %Ts6UInt64V }>
%Ts5UInt8V = type <{ i8 }>
%Ts16IndexingIteratorVySs8UTF8ViewVG = type <{ %TSs8UTF8ViewV, %TSS5IndexV }>
%TSs8UTF8ViewV = type <{ %Ts5SliceVySS8UTF8ViewVG }>
%Ts5SliceVySS8UTF8ViewVG = type <{ %TSS5IndexV, %TSS5IndexV, %TSS8UTF8ViewV }>
%TSS8UTF8ViewV = type <{ %Ts11_StringGutsV }>
%TSr.13 = type <{ %TSq.12, %TSi }>
%TSq.12 = type <{ [8 x i8] }>

@_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
@"$ss23_ContiguousArrayStorageCMn" = external global %swift.type_descriptor, align 4
@"got.$ss23_ContiguousArrayStorageCMn" = private unnamed_addr constant %swift.type_descriptor* @"$ss23_ContiguousArrayStorageCMn"
@"symbolic _____yypG s23_ContiguousArrayStorageC" = linkonce_odr hidden constant <{ i8, i32, [4 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss23_ContiguousArrayStorageCMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [4 x i8], i8 }>, <{ i8, i32, [4 x i8], i8 }>* @"symbolic _____yypG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [4 x i8] c"yypG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCyypGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [4 x i8], i8 }>* @"symbolic _____yypG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCyypGMD" to i64)) to i32), i32 -9 }, align 8
@"$sSiN" = external global %swift.type, align 8
@"\01l_entry_point" = private constant { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (i32 (i32, i8**)* @main to i64), i64 ptrtoint ({ i32, i32 }* @"\01l_entry_point" to i64)) to i32), i32 0 }, section "swift5_entry", align 4
@"symbolic x" = linkonce_odr hidden constant <{ [1 x i8], i8 }> <{ [1 x i8] c"x", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"symbolic _____ 7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV" = linkonce_odr hidden constant <{ i8, i32, i8 }> <{ i8 1, i32 trunc (i64 sub (i64 ptrtoint (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, i8 }>, <{ i8, i32, i8 }>* @"symbolic _____ 7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV", i32 0, i32 1) to i64)) to i32), i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"symbolic $sSt" = linkonce_odr hidden constant <{ [4 x i8], i8 }> <{ [4 x i8] c"$sSt", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@0 = private constant [8 x i8] c"Element\00", section "swift5_reflstr", no_sanitize_address
@"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMA" = internal constant { i32, i32, i32, i32, i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, i8 }>* @"symbolic _____ 7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV" to i64), i64 ptrtoint ({ i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMA" to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (<{ [4 x i8], i8 }>* @"symbolic $sSt" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32 }, { i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMA", i32 0, i32 1) to i64)) to i32), i32 1, i32 8, i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @0 to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32 }, { i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMA", i32 0, i32 4) to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (<{ [1 x i8], i8 }>* @"symbolic x" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32 }, { i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMA", i32 0, i32 5) to i64)) to i32) }, section "swift5_assocty", no_sanitize_address, align 4
@"$sStMp" = external global %swift.protocol, align 4
@"got.$sStMp" = private unnamed_addr constant %swift.protocol* @"$sStMp"
@"$s7ElementStTl" = external global %swift.protocol_requirement, align 4
@"got.$s7ElementStTl" = private unnamed_addr constant %swift.protocol_requirement* @"$s7ElementStTl"
@"$sSt4next7ElementQzSgyFTq" = external global %swift.method_descriptor, align 4
@"got.$sSt4next7ElementQzSgyFTq" = private unnamed_addr constant %swift.method_descriptor* @"$sSt4next7ElementQzSgyFTq"
@"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMcMK" = internal global [16 x i8*] zeroinitializer
@"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMc" = internal constant { i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 } { i32 add (i32 trunc (i64 sub (i64 ptrtoint (%swift.protocol** @"got.$sStMp" to i64), i64 ptrtoint ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMc" to i64)) to i32), i32 1), i32 trunc (i64 sub (i64 ptrtoint (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMn" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMc", i32 0, i32 1) to i64)) to i32), i32 0, i32 196608, i32 2, i32 add (i32 trunc (i64 sub (i64 ptrtoint (%swift.protocol_requirement** @"got.$s7ElementStTl" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMc", i32 0, i32 5) to i64)) to i32), i32 1), i32 trunc (i64 sub (i64 ptrtoint (i8* getelementptr inbounds (<{ [1 x i8], i8 }>, <{ [1 x i8], i8 }>* @"symbolic x", i32 0, i32 0, i64 1) to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMc", i32 0, i32 6) to i64)) to i32), i32 add (i32 trunc (i64 sub (i64 ptrtoint (%swift.method_descriptor** @"got.$sSt4next7ElementQzSgyFTq" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMc", i32 0, i32 7) to i64)) to i32), i32 1), i32 trunc (i64 sub (i64 ptrtoint (void (%swift.opaque*, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV*, %swift.type*, i8**)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAASt4next7ElementQzSgyFTW" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMc", i32 0, i32 8) to i64)) to i32), i16 0, i16 1, i32 0, i32 trunc (i64 sub (i64 ptrtoint ([16 x i8*]* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMcMK" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMc", i32 0, i32 12) to i64)) to i32) }, section ".rodata", no_sanitize_address, align 4
@"associated conformance 7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAA8IteratorST_St" = linkonce_odr hidden constant <{ i8, i8, i32, i8 }> <{ i8 -1, i8 7, i32 trunc (i64 sub (i64 ptrtoint (i8** (%swift.type*, %swift.type*, i8**)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAA8IteratorST_StWT" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i8, i32, i8 }>, <{ i8, i8, i32, i8 }>* @"associated conformance 7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAA8IteratorST_St", i32 0, i32 2) to i64)) to i32), i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"symbolic _____yxG 7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV" = linkonce_odr hidden constant <{ i8, i32, [3 x i8], i8 }> <{ i8 1, i32 trunc (i64 sub (i64 ptrtoint (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [3 x i8], i8 }>, <{ i8, i32, [3 x i8], i8 }>* @"symbolic _____yxG 7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV", i32 0, i32 1) to i64)) to i32), [3 x i8] c"yxG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"symbolic $sST" = linkonce_odr hidden constant <{ [4 x i8], i8 }> <{ [4 x i8] c"$sST", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@1 = private constant [9 x i8] c"Iterator\00", section "swift5_reflstr", no_sanitize_address
@"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMA" = internal constant { i32, i32, i32, i32, i32, i32, i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, i8 }>* @"symbolic _____ 7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV" to i64), i64 ptrtoint ({ i32, i32, i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMA" to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (<{ [4 x i8], i8 }>* @"symbolic $sST" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMA", i32 0, i32 1) to i64)) to i32), i32 2, i32 8, i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @0 to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMA", i32 0, i32 4) to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (<{ [1 x i8], i8 }>* @"symbolic x" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMA", i32 0, i32 5) to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @1 to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMA", i32 0, i32 6) to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [3 x i8], i8 }>* @"symbolic _____yxG 7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMA", i32 0, i32 7) to i64)) to i32) }, section "swift5_assocty", no_sanitize_address, align 4
@"$sSTMp" = external global %swift.protocol, align 4
@"got.$sSTMp" = private unnamed_addr constant %swift.protocol* @"$sSTMp"
@"$sST8IteratorST_StTn" = external global %swift.protocol_requirement, align 4
@"got.$sST8IteratorST_StTn" = private unnamed_addr constant %swift.protocol_requirement* @"$sST8IteratorST_StTn"
@"$s7ElementSTTl" = external global %swift.protocol_requirement, align 4
@"got.$s7ElementSTTl" = private unnamed_addr constant %swift.protocol_requirement* @"$s7ElementSTTl"
@"$s8IteratorSTTl" = external global %swift.protocol_requirement, align 4
@"got.$s8IteratorSTTl" = private unnamed_addr constant %swift.protocol_requirement* @"$s8IteratorSTTl"
@"$sST12makeIterator0B0QzyFTq" = external global %swift.method_descriptor, align 4
@"got.$sST12makeIterator0B0QzyFTq" = private unnamed_addr constant %swift.method_descriptor* @"$sST12makeIterator0B0QzyFTq"
@"$sST19underestimatedCountSivgTq" = external global %swift.method_descriptor, align 4
@"got.$sST19underestimatedCountSivgTq" = private unnamed_addr constant %swift.method_descriptor* @"$sST19underestimatedCountSivgTq"
@"$sST31_customContainsEquatableElementySbSg0D0QzFTq" = external global %swift.method_descriptor, align 4
@"got.$sST31_customContainsEquatableElementySbSg0D0QzFTq" = private unnamed_addr constant %swift.method_descriptor* @"$sST31_customContainsEquatableElementySbSg0D0QzFTq"
@"$sST22_copyToContiguousArrays0cD0Vy7ElementQzGyFTq" = external global %swift.method_descriptor, align 4
@"got.$sST22_copyToContiguousArrays0cD0Vy7ElementQzGyFTq" = private unnamed_addr constant %swift.method_descriptor* @"$sST22_copyToContiguousArrays0cD0Vy7ElementQzGyFTq"
@"$sST13_copyContents12initializing8IteratorQz_SitSry7ElementQzG_tFTq" = external global %swift.method_descriptor, align 4
@"got.$sST13_copyContents12initializing8IteratorQz_SitSry7ElementQzG_tFTq" = private unnamed_addr constant %swift.method_descriptor* @"$sST13_copyContents12initializing8IteratorQz_SitSry7ElementQzG_tFTq"
@"$sST32withContiguousStorageIfAvailableyqd__Sgqd__SRy7ElementQzGKXEKlFTq" = external global %swift.method_descriptor, align 4
@"got.$sST32withContiguousStorageIfAvailableyqd__Sgqd__SRy7ElementQzGKXEKlFTq" = private unnamed_addr constant %swift.method_descriptor* @"$sST32withContiguousStorageIfAvailableyqd__Sgqd__SRy7ElementQzGKXEKlFTq"
@"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMcMK" = internal global [16 x i8*] zeroinitializer
@"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc" = internal constant { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 } { i32 add (i32 trunc (i64 sub (i64 ptrtoint (%swift.protocol** @"got.$sSTMp" to i64), i64 ptrtoint ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc" to i64)) to i32), i32 1), i32 trunc (i64 sub (i64 ptrtoint (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMn" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 1) to i64)) to i32), i32 0, i32 196608, i32 9, i32 add (i32 trunc (i64 sub (i64 ptrtoint (%swift.protocol_requirement** @"got.$sST8IteratorST_StTn" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 5) to i64)) to i32), i32 1), i32 trunc (i64 sub (i64 ptrtoint (i8* getelementptr (i8, i8* getelementptr inbounds (<{ i8, i8, i32, i8 }>, <{ i8, i8, i32, i8 }>* @"associated conformance 7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAA8IteratorST_St", i32 0, i32 0), i64 1) to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 6) to i64)) to i32), i32 add (i32 trunc (i64 sub (i64 ptrtoint (%swift.protocol_requirement** @"got.$s7ElementSTTl" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 7) to i64)) to i32), i32 1), i32 trunc (i64 sub (i64 ptrtoint (i8* getelementptr inbounds (<{ [1 x i8], i8 }>, <{ [1 x i8], i8 }>* @"symbolic x", i32 0, i32 0, i64 1) to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 8) to i64)) to i32), i32 add (i32 trunc (i64 sub (i64 ptrtoint (%swift.protocol_requirement** @"got.$s8IteratorSTTl" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 9) to i64)) to i32), i32 1), i32 trunc (i64 sub (i64 ptrtoint (i8* getelementptr inbounds (i8, i8* getelementptr inbounds (<{ i8, i32, [3 x i8], i8 }>, <{ i8, i32, [3 x i8], i8 }>* @"symbolic _____yxG 7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV", i32 0, i32 0), i64 1) to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 10) to i64)) to i32), i32 add (i32 trunc (i64 sub (i64 ptrtoint (%swift.method_descriptor** @"got.$sST12makeIterator0B0QzyFTq" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 11) to i64)) to i32), i32 1), i32 trunc (i64 sub (i64 ptrtoint (void (%T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV*, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV*, %swift.type*, i8**)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAST12makeIterator0J0QzyFTW" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 12) to i64)) to i32), i32 add (i32 trunc (i64 sub (i64 ptrtoint (%swift.method_descriptor** @"got.$sST19underestimatedCountSivgTq" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 13) to i64)) to i32), i32 1), i32 trunc (i64 sub (i64 ptrtoint (i64 (%T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV*, %swift.type*, i8**)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAST19underestimatedCountSivgTW" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 14) to i64)) to i32), i32 add (i32 trunc (i64 sub (i64 ptrtoint (%swift.method_descriptor** @"got.$sST31_customContainsEquatableElementySbSg0D0QzFTq" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 15) to i64)) to i32), i32 1), i32 trunc (i64 sub (i64 ptrtoint (i8 (%swift.opaque*, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV*, %swift.type*, i8**)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAST31_customContainsEquatableElementySbSg0L0QzFTW" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 16) to i64)) to i32), i32 add (i32 trunc (i64 sub (i64 ptrtoint (%swift.method_descriptor** @"got.$sST22_copyToContiguousArrays0cD0Vy7ElementQzGyFTq" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 17) to i64)) to i32), i32 1), i32 trunc (i64 sub (i64 ptrtoint (%Ts28__ContiguousArrayStorageBaseC* (%T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV*, %swift.type*, i8**)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAST22_copyToContiguousArrays0kL0Vy7ElementQzGyFTW" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 18) to i64)) to i32), i32 add (i32 trunc (i64 sub (i64 ptrtoint (%swift.method_descriptor** @"got.$sST13_copyContents12initializing8IteratorQz_SitSry7ElementQzG_tFTq" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 19) to i64)) to i32), i32 1), i32 trunc (i64 sub (i64 ptrtoint (i64 (%T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV*, i64, i64, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV*, %swift.type*, i8**)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAST13_copyContents12initializing8IteratorQz_SitSry7ElementQzG_tFTW" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 20) to i64)) to i32), i32 add (i32 trunc (i64 sub (i64 ptrtoint (%swift.method_descriptor** @"got.$sST32withContiguousStorageIfAvailableyqd__Sgqd__SRy7ElementQzGKXEKlFTq" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 21) to i64)) to i32), i32 1), i32 trunc (i64 sub (i64 ptrtoint (void (%swift.opaque*, i8*, %swift.opaque*, %swift.type*, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV*, %swift.error**, %swift.type*, i8**)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAST32withContiguousStorageIfAvailableyqd__Sgqd__SRy7ElementQzGKXEKlFTW" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 22) to i64)) to i32), i16 0, i16 1, i32 0, i32 trunc (i64 sub (i64 ptrtoint ([16 x i8*]* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMcMK" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }, { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc", i32 0, i32 26) to i64)) to i32) }, section ".rodata", no_sanitize_address, align 4
@"$sSayxGSKsMc" = external global %swift.protocol_conformance_descriptor, align 4
@"$sSayxGSmsMc" = external global %swift.protocol_conformance_descriptor, align 4
@"$sytN" = external global %swift.full_existential_type
@"$sSayxGSMsMc" = external global %swift.protocol_conformance_descriptor, align 4
@"symbolic _____ySiG s23_ContiguousArrayStorageC" = linkonce_odr hidden constant <{ i8, i32, [4 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss23_ContiguousArrayStorageCMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [4 x i8], i8 }>, <{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySiG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [4 x i8] c"ySiG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCySiGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySiG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCySiGMD" to i64)) to i32), i32 -9 }, align 8
@"symbolic Si_Sit" = linkonce_odr hidden constant <{ [6 x i8], i8 }> <{ [6 x i8] c"Si_Sit", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$sSi_SitMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ [6 x i8], i8 }>* @"symbolic Si_Sit" to i64), i64 ptrtoint ({ i32, i32 }* @"$sSi_SitMD" to i64)) to i32), i32 -6 }, align 8
@"symbolic _____ySnySiGG s23_ContiguousArrayStorageC" = linkonce_odr hidden constant <{ i8, i32, [8 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss23_ContiguousArrayStorageCMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [8 x i8], i8 }>, <{ i8, i32, [8 x i8], i8 }>* @"symbolic _____ySnySiGG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [8 x i8] c"ySnySiGG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCySnySiGGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [8 x i8], i8 }>* @"symbolic _____ySnySiGG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCySnySiGGMD" to i64)) to i32), i32 -13 }, align 8
@"symbolic _____ySi_SitG s23_ContiguousArrayStorageC" = linkonce_odr hidden constant <{ i8, i32, [8 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss23_ContiguousArrayStorageCMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [8 x i8], i8 }>, <{ i8, i32, [8 x i8], i8 }>* @"symbolic _____ySi_SitG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [8 x i8] c"ySi_SitG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCySi_SitGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [8 x i8], i8 }>* @"symbolic _____ySi_SitG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCySi_SitGMD" to i64)) to i32), i32 -13 }, align 8
@"$sSsN" = external global %swift.type, align 8
@"$sSss25LosslessStringConvertiblesWP" = external global i8*, align 8
@"$sS2sSTsWL" = linkonce_odr hidden local_unnamed_addr global i8** null, align 8
@"$sSsSTsMc" = external global %swift.protocol_conformance_descriptor, align 4
@"$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.3" = 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.3", i32 0, i32 3) to i64)) to i32) }, section "swift5_capture", no_sanitize_address, align 4
@metadata.5 = private constant %swift.full_boxmetadata { void (%swift.refcounted*)* @objectdestroy.4, i8** null, %swift.type { i64 1024 }, i32 16, i8* bitcast ({ i32, i32, i32, i32 }* @"\01l__swift5_reflection_descriptor.3" 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
@"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVWV" = internal constant %swift.vwtable { i8* bitcast (%swift.opaque* ([24 x i8]*, [24 x i8]*, %swift.type*)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVwCP" to i8*), i8* bitcast (void (%swift.opaque*, %swift.type*)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVwxx" to i8*), i8* bitcast (%swift.opaque* (%swift.opaque*, %swift.opaque*, %swift.type*)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVwcp" to i8*), i8* bitcast (%swift.opaque* (%swift.opaque*, %swift.opaque*, %swift.type*)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVwca" to i8*), i8* bitcast (i8* (i8*, i8*, %swift.type*)* @__swift_memcpy24_8 to i8*), i8* bitcast (%swift.opaque* (%swift.opaque*, %swift.opaque*, %swift.type*)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVwta" to i8*), i8* bitcast (i32 (%swift.opaque*, i32, %swift.type*)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVwet" to i8*), i8* bitcast (void (%swift.opaque*, i32, i32, %swift.type*)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVwst" to i8*), i64 24, i64 24, i32 65543, i32 4096 }, align 8
@2 = internal constant <{ i32, i32 }> <{ i32 0, i32 8 }>, align 8
@.str.7.llvm_OZ = private constant [8 x i8] c"llvm_OZ\00"
@"$s7llvm_OZMXM" = linkonce_odr hidden constant <{ i32, i32, i32 }> <{ i32 0, i32 0, i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.7.llvm_OZ to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i32, i32, i32 }>, <{ i32, i32, i32 }>* @"$s7llvm_OZMXM", i32 0, i32 2) to i64)) to i32) }>, section ".rodata", no_sanitize_address, align 4
@"$sSLMp" = external global %swift.protocol, align 4
@"got.$sSLMp" = private unnamed_addr constant %swift.protocol* @"$sSLMp"
@"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMXX" = linkonce_odr hidden constant <{ i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }> <{ i32 194, i32 trunc (i64 sub (i64 ptrtoint (<{ i32, i32, i32 }>* @"$s7llvm_OZMXM" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>, <{ i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMXX", i32 0, i32 1) to i64)) to i32), i16 1, i16 1, i16 2, i16 0, i8 -128, i8 0, i8 0, i8 0, i32 128, i32 trunc (i64 sub (i64 ptrtoint (<{ [1 x i8], i8 }>* @"symbolic x" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>, <{ i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMXX", i32 0, i32 11) to i64)) to i32), i32 add (i32 trunc (i64 sub (i64 ptrtoint (%swift.protocol** @"got.$sSLMp" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>, <{ i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMXX", i32 0, i32 12) to i64)) to i32), i32 1) }>, section ".rodata", no_sanitize_address, align 4
@.str.13.PriorityQueue = private constant [14 x i8] c"PriorityQueue\00"
@"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMI" = internal global [16 x i8*] zeroinitializer, align 8
@"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMn" = internal constant <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }> <{ i32 209, i32 trunc (i64 sub (i64 ptrtoint (<{ i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMXX" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>, <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMn", i32 0, i32 1) to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.13.PriorityQueue to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>, <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMn", i32 0, i32 2) to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (%swift.metadata_response (i64, %swift.type*, i8**)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMa" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>, <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMn", i32 0, i32 3) to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ({ i32, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMF" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>, <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMn", i32 0, i32 4) to i64)) to i32), i32 2, i32 4, i32 trunc (i64 sub (i64 ptrtoint ([16 x i8*]* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMI" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>, <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMn", i32 0, i32 7) to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (<{ i32, i32, i32, i32, i32, i16, i16 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMP" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>, <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMn", i32 0, i32 8) to i64)) to i32), i16 1, i16 1, i16 2, i16 0, i8 -128, i8 0, i8 0, i8 0, i32 128, i32 trunc (i64 sub (i64 ptrtoint (<{ [1 x i8], i8 }>* @"symbolic x" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>, <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMn", i32 0, i32 18) to i64)) to i32), i32 add (i32 trunc (i64 sub (i64 ptrtoint (%swift.protocol** @"got.$sSLMp" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>, <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMn", i32 0, i32 19) to i64)) to i32), i32 1) }>, section ".rodata", no_sanitize_address, align 4
@"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMP" = internal constant <{ i32, i32, i32, i32, i32, i16, i16 }> <{ i32 trunc (i64 sub (i64 ptrtoint (%swift.type* (%swift.type_descriptor*, i8**, i8*)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMi" to i64), i64 ptrtoint (<{ i32, i32, i32, i32, i32, i16, i16 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMP" to i64)) to i32), i32 0, i32 1073741825, i32 trunc (i64 sub (i64 ptrtoint (%swift.vwtable* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVWV" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i32, i32, i32, i32, i32, i16, i16 }>, <{ i32, i32, i32, i32, i32, i16, i16 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMP", i32 0, i32 3) to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint (<{ i32, i32 }>* @2 to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i32, i32, i32, i32, i32, i16, i16 }>, <{ i32, i32, i32, i32, i32, i16, i16 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMP", i32 0, i32 4) to i64)) to i32), i16 2, i16 1 }>, align 8
@"symbolic SayxG" = linkonce_odr hidden constant <{ [5 x i8], i8 }> <{ [5 x i8] c"SayxG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@3 = private constant [5 x i8] c"data\00", section "swift5_reflstr", no_sanitize_address
@"symbolic Sbx_xtc" = linkonce_odr hidden constant <{ [7 x i8], i8 }> <{ [7 x i8] c"Sbx_xtc", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@4 = private constant [8 x i8] c"ordered\00", section "swift5_reflstr", no_sanitize_address
@"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMF" = internal constant { i32, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, i8 }>* @"symbolic _____ 7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV" to i64), i64 ptrtoint ({ i32, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMF" to i64)) to i32), i32 0, i16 0, i16 12, i32 2, i32 2, i32 trunc (i64 sub (i64 ptrtoint (<{ [5 x i8], i8 }>* @"symbolic SayxG" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32 }, { i32, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMF", i32 0, i32 6) to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @3 to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32 }, { i32, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMF", i32 0, i32 7) to i64)) to i32), i32 2, i32 trunc (i64 sub (i64 ptrtoint (<{ [7 x i8], i8 }>* @"symbolic Sbx_xtc" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32 }, { i32, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMF", i32 0, i32 9) to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @4 to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32 }, { i32, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMF", i32 0, i32 10) to i64)) to i32) }, section "swift5_fieldmd", no_sanitize_address, align 4
@"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAHc" = private constant i32 trunc (i64 sub (i64 ptrtoint ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMc" to i64), i64 ptrtoint (i32* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAHc" to i64)) to i32), section "swift5_protocol_conformances", no_sanitize_address, align 4
@"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAHc" = private constant i32 trunc (i64 sub (i64 ptrtoint ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMc" to i64), i64 ptrtoint (i32* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAHc" to i64)) to i32), section "swift5_protocol_conformances", no_sanitize_address, align 4
@"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVHn" = private constant %swift.type_metadata_record { i32 trunc (i64 sub (i64 ptrtoint (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMn" to i64), i64 ptrtoint (%swift.type_metadata_record* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVHn" to i64)) to i32) }, section "swift5_type_metadata", no_sanitize_address, align 4
@__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 [12 x i8*] [i8* bitcast ({ i32, i32, i32, i32 }* @"\01l__swift5_reflection_descriptor" to i8*), i8* bitcast ({ i32, i32, i32, i32 }* @"\01l__swift5_reflection_descriptor.3" to i8*), i8* bitcast ({ i32, i32 }* @"\01l_entry_point" to i8*), i8* bitcast (%swift.type_metadata_record* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVHn" to i8*), i8* bitcast ({ i32, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMF" to i8*), i8* bitcast (i32* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAHc" to i8*), i8* bitcast ({ i32, i32, i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAMA" to i8*), i8* bitcast (i32* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAHc" to i8*), i8* bitcast ({ i32, i32, i32, i32, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMA" to i8*), i8* bitcast (i16* @__swift_reflection_version to i8*), i8* getelementptr inbounds ([172 x i8], [172 x i8]* @_swift1_autolink_entries, i32 0, i32 0), i8* bitcast (i32 (i32, i8**)* @main to i8*)], section "llvm.metadata"

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

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$s7llvm_OZ9readWordsySayxGxSsXElFSi_Tg5"(i8* %0, %swift.opaque* %1) 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 = tail call swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1 true)
  %4 = extractvalue { i64, i64 } %3, 1
  %5 = icmp eq i64 %4, 0
  br i1 %5, label %18, label %6

6:                                                ; preds = %entry
  %7 = extractvalue { i64, i64 } %3, 0
  %8 = inttoptr i64 %4 to %swift.bridge*
  %9 = bitcast %TSJ* %2 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %9)
  %._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()
  %10 = alloca [24 x i8], align 16
  %11 = bitcast [24 x i8]* %10 to %swift.opaque*
  %12 = getelementptr inbounds [24 x i8], [24 x i8]* %10, i64 0, i64 16
  %13 = bitcast i8* %12 to %TSJ**
  store %TSJ* %2, %TSJ** %13, align 16
  %14 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* nonnull returned %8) #6
  %15 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE5split9maxSplits25omittingEmptySubsequences14whereSeparatorSay11SubSequenceQzGSi_S2b7ElementQzKXEtKFSS_Tg5"(i64 9223372036854775807, i1 true, i8* nonnull bitcast (i1 (%TSJ*, %swift.refcounted*, %swift.error**)* @"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5TA.2" to i8*), %swift.opaque* nonnull %11, i64 %7, %swift.bridge* nonnull %8, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %8) #6
  call void @llvm.stackrestore(i8* %spsave)
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %9)
  %16 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE3mapySayqd__Gqd__7ElementQzKXEKlFSaySsG_SiTg546$sSsxs5Error_pIggrzo_SsxsAA_pIegnrzo_lTRSi_TG5SsSis0E0_pIggrzo_Tf1cn_n"(%Ts28__ContiguousArrayStorageBaseC* %15, i8* %0, %swift.opaque* %1, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  %17 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %15, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %17) #6
  ret %Ts28__ContiguousArrayStorageBaseC* %16

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

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

7:                                                ; preds = %entry
  %8 = extractvalue { i64, i64 } %4, 0
  %9 = inttoptr i64 %5 to %swift.bridge*
  %10 = bitcast %TSJ* %2 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %10)
  %._str._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %2, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0
  store i64 32, i64* %._str._guts._object._countAndFlagsBits._value, align 8
  %._str._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %2, i64 0, i32 0, i32 0, i32 0, i32 1
  store %swift.bridge* inttoptr (i64 -2233785415175766016 to %swift.bridge*), %swift.bridge** %._str._guts._object._object, align 8
  %spsave = tail call i8* @llvm.stacksave()
  %11 = alloca [24 x i8], align 16
  %12 = bitcast [24 x i8]* %11 to %swift.opaque*
  %13 = getelementptr inbounds [24 x i8], [24 x i8]* %11, i64 0, i64 16
  %14 = bitcast i8* %13 to %TSJ**
  store %TSJ* %2, %TSJ** %14, align 16
  %15 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* nonnull returned %9) #6
  %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) #6
  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") #24
  %25 = tail call i8** @"$sSaySsGSayxGSlsWl"() #25
  %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) #6
  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) #6
  tail call void @llvm.trap()
  unreachable
}

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

9:                                                ; preds = %entry
  %10 = bitcast %Ts15ContiguousArrayV* %5 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %10)
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %5, i64 0, i32 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSi_Tg5"(i1 false, i64 %7, i1 false, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %5)
  %11 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %12 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 1
  %13 = bitcast %TSi* %6 to i8*
  %14 = bitcast i8* %1 to void (%TSi*, i64, i64, i64, %swift.bridge*, %swift.refcounted*, %swift.error**)*
  %15 = bitcast %swift.opaque* %2 to %swift.refcounted*
  %._value = getelementptr inbounds %TSi, %TSi* %6, i64 0, i32 0
  br label %16

common.ret:                                       ; preds = %42, %entry, %34
  %common.ret.op = phi %Ts28__ContiguousArrayStorageBaseC* [ undef, %34 ], [ %39, %42 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %entry ]
  ret %Ts28__ContiguousArrayStorageBaseC* %common.ret.op

16:                                               ; preds = %9, %38
  %17 = phi i64 [ 0, %9 ], [ %19, %38 ]
  %18 = phi %Ts28__ContiguousArrayStorageBaseC* [ %11, %9 ], [ %39, %38 ]
  %19 = add nuw nsw i64 %17, 1
  %20 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %12, i64 %17
  %._slice._startIndex._rawBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %20 to i64*
  %21 = load i64, i64* %._slice._startIndex._rawBits._value, align 8
  %._slice._endIndex = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %20, i64 0, i32 0, i32 1
  %22 = load i64, i64* %._slice._endIndex, align 8
  %._slice._base = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %20, 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
  %23 = 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
  %24 = bitcast %TSu* %._slice._base._guts._object._object to %swift.bridge**
  %25 = load %swift.bridge*, %swift.bridge** %24, align 8
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %13)
  %26 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %25) #6
  call swiftcc void %14(%TSi* noalias nocapture nonnull sret(%TSi) %6, i64 %21, i64 %22, i64 %23, %swift.bridge* %25, %swift.refcounted* swiftself %15, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %4)
  %27 = load %swift.error*, %swift.error** %4, align 8
  %.not12 = icmp eq %swift.error* %27, null
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %25) #6
  br i1 %.not12, label %28, label %34

28:                                               ; preds = %16
  %29 = load i64, i64* %._value, align 8
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %13)
  store %Ts28__ContiguousArrayStorageBaseC* %18, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage3.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %18, 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* %18, 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
  %.not13 = icmp ugt i64 %32, %30
  br i1 %.not13, label %38, label %36, !prof !7

34:                                               ; preds = %16
  %35 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %18, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %35) #6
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %13)
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %10)
  br label %common.ret

36:                                               ; preds = %28
  %37 = icmp ugt i64 %31, 1
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSi_Tg5"(i1 %37, i64 %33, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %5)
  %.pre = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %38

38:                                               ; preds = %28, %36
  %39 = phi %Ts28__ContiguousArrayStorageBaseC* [ %18, %28 ], [ %.pre, %36 ]
  %._storage4.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %39, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %33, i64* %._storage4.count._value, align 8
  %40 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %39, i64 1
  %tailaddr5 = bitcast %Ts28__ContiguousArrayStorageBaseC* %40 to %TSi*
  %._value6 = getelementptr inbounds %TSi, %TSi* %tailaddr5, i64 %30, i32 0
  store i64 %29, i64* %._value6, align 8
  %41 = icmp eq i64 %19, %7
  br i1 %41, label %42, label %16

42:                                               ; preds = %38
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %10)
  br label %common.ret
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE3mapySayqd__Gqd__7ElementQzKXEKlFSaySsG_SiTg598$sSsxs5Error_pIggrzo_SsxsAA_pIegnrzo_lTRSi_TG5032$s7llvm_OZ4mainyyFSi_SitSiXEfU0_f2SsG2U_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
  %.sroa.6 = alloca i8, align 8
  %4 = alloca <{ %Ts6UInt64V, %Ts6UInt64V }>, align 8
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 0, i32 1, i32 0, i32 0, i32 0
  %5 = load i64, i64* %._storage.count._value, align 8, !range !6
  %6 = icmp eq i64 %5, 0
  br i1 %6, label %13, label %7

7:                                                ; preds = %entry
  %8 = bitcast %Ts15ContiguousArrayV* %3 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %8)
  %._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_SiSbtFSi_Tg5"(i1 false, i64 %5, i1 false, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %3)
  %9 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %10 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 1
  %11 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %4 to i8*
  %.elt._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %4, i64 0, i32 0, i32 0
  %.elt7._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %4, i64 0, i32 1, i32 0
  %12 = ptrtoint <{ %Ts6UInt64V, %Ts6UInt64V }>* %4 to i64
  %.sroa.6.0.sroa_cast = bitcast i8* %.sroa.6 to i1*
  %.sroa.6.0.sroa_cast31 = bitcast i8* %.sroa.6 to i1*
  br label %15

13:                                               ; preds = %entry, %80
  %14 = phi %Ts28__ContiguousArrayStorageBaseC* [ %77, %80 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %entry ]
  ret %Ts28__ContiguousArrayStorageBaseC* %14

15:                                               ; preds = %7, %76
  %16 = phi i64 [ 0, %7 ], [ %18, %76 ]
  %17 = phi %Ts28__ContiguousArrayStorageBaseC* [ %9, %7 ], [ %77, %76 ]
  %18 = add nuw nsw i64 %16, 1
  %19 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %10, i64 %16
  %._slice._startIndex._rawBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %19 to i64*
  %20 = load i64, i64* %._slice._startIndex._rawBits._value, align 8
  %._slice._endIndex = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %19, i64 0, i32 0, i32 1
  %21 = load i64, i64* %._slice._endIndex, align 8
  %._slice._base = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %19, 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
  %22 = 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
  %23 = bitcast %TSu* %._slice._base._guts._object._object to %swift.bridge**
  %24 = load %swift.bridge*, %swift.bridge** %23, align 8
  %.unshifted = xor i64 %21, %20
  %25 = icmp ult i64 %.unshifted, 16384
  br i1 %25, label %81, label %26, !prof !8

26:                                               ; preds = %15
  call void @llvm.lifetime.start.p0i8(i64 1, i8* nonnull %.sroa.6)
  %27 = ptrtoint %swift.bridge* %24 to i64
  %28 = and i64 %27, 1152921504606846976
  %29 = icmp eq i64 %28, 0
  br i1 %29, label %30, label %63, !prof !7

30:                                               ; preds = %26
  %31 = and i64 %27, 2305843009213693952
  %32 = icmp eq i64 %31, 0
  br i1 %32, label %33, label %36

33:                                               ; preds = %30
  %34 = and i64 %22, 1152921504606846976
  %35 = icmp eq i64 %34, 0
  br i1 %35, label %45, label %49, !prof !8

36:                                               ; preds = %30
  %37 = lshr i64 %27, 56
  %38 = and i64 %37, 15
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %11)
  %39 = and i64 %27, 72057594037927935
  store i64 %22, i64* %.elt._value, align 8
  store i64 %39, i64* %.elt7._value, align 8
  %40 = call swiftcc { i64, i8 } @"$ss5SliceV32withContiguousStorageIfAvailableyqd__Sgqd__SRy7ElementQzGKXEKlFqd__AGKXEfU_SRys5UInt8VGABySS8UTF8ViewVGSRyxGq_s5Error_pr0_lyAIqd__Isgyrzo_qd__sAO_pALRszr__lIetyggrzo_Tpq5SiSg_Tg5061$ss17FixedWidthIntegerPsE_5radixxSgqd___SitcSyRd__lufcADSRys5H15VGXEfU_Si_SsTG5SiTf1nnc_n"(i64 %12, i64 %38, i64 %20, i64 %21, i64 %22, %swift.bridge* %24, i64 10, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %2)
  %41 = extractvalue { i64, i8 } %40, 1
  %42 = and i8 %41, 1
  %43 = icmp ne i8 %42, 0
  %44 = load %swift.error*, %swift.error** %2, align 8
  %.not22 = icmp eq %swift.error* %44, null
  call void @llvm.assume(i1 %.not22)
  store i1 %43, i1* %.sroa.6.0.sroa_cast, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %11)
  br label %61

45:                                               ; preds = %33
  %46 = call swiftcc { i64, i64 } @"$ss13_StringObjectV10sharedUTF8SRys5UInt8VGvg"(i64 %22, %swift.bridge* %24)
  %47 = extractvalue { i64, i64 } %46, 0
  %48 = extractvalue { i64, i64 } %46, 1
  br label %53

49:                                               ; preds = %33
  %50 = and i64 %27, 1152921504606846975
  %51 = add nuw nsw i64 %50, 32
  %52 = and i64 %22, 281474976710655
  br label %53

53:                                               ; preds = %45, %49
  %54 = phi i64 [ %51, %49 ], [ %47, %45 ]
  %55 = phi i64 [ %52, %49 ], [ %48, %45 ]
  %56 = call swiftcc { i64, i8 } @"$ss5SliceV32withContiguousStorageIfAvailableyqd__Sgqd__SRy7ElementQzGKXEKlFqd__AGKXEfU_SRys5UInt8VGABySS8UTF8ViewVGSRyxGq_s5Error_pr0_lyAIqd__Isgyrzo_qd__sAO_pALRszr__lIetyggrzo_Tpq5SiSg_Tg5061$ss17FixedWidthIntegerPsE_5radixxSgqd___SitcSyRd__lufcADSRys5H15VGXEfU_Si_SsTG5SiTf1nnc_n"(i64 %54, i64 %55, i64 %20, i64 %21, i64 %22, %swift.bridge* %24, i64 10, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %2)
  %57 = load %swift.error*, %swift.error** %2, align 8
  %.not23 = icmp eq %swift.error* %57, null
  call void @llvm.assume(i1 %.not23)
  %58 = extractvalue { i64, i8 } %56, 1
  %59 = and i8 %58, 1
  %60 = icmp ne i8 %59, 0
  store i1 %60, i1* %.sroa.6.0.sroa_cast31, align 8
  br label %61

61:                                               ; preds = %36, %53
  %.pn = phi { i64, i8 } [ %56, %53 ], [ %40, %36 ]
  %.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)
  %62 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %24) #6
  br label %67

63:                                               ; preds = %26
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.6)
  %64 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %24) #6
  %65 = call swiftcc { i64, i8 } @"$ss13_parseInteger5ascii5radixq_Sgx_SitSyRzs010FixedWidthB0R_r0_lFSs_SiTg5"(i64 %20, i64 %21, i64 %22, %swift.bridge* %24, i64 10)
  %66 = extractvalue { i64, i8 } %65, 1
  br label %67

67:                                               ; preds = %61, %63
  %.pn38 = phi { i64, i8 } [ %65, %63 ], [ %.pn, %61 ]
  %.in.in = phi i8 [ %66, %63 ], [ %.sroa.6.0..sroa.6.0..sroa.6.0..sroa.6.8..pre, %61 ]
  %68 = extractvalue { i64, i8 } %.pn38, 0
  %.in = and i8 %.in.in, 1
  %.not21 = icmp eq i8 %.in, 0
  br i1 %.not21, label %69, label %82

69:                                               ; preds = %67
  call void @swift_bridgeObjectRelease(%swift.bridge* %24) #6
  store %Ts28__ContiguousArrayStorageBaseC* %17, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage3.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %17, i64 0, i32 1, i32 0, i32 0, i32 0
  %70 = load i64, i64* %._storage3.count._value, align 8, !range !6
  %._storage3._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %17, i64 0, i32 1, i32 0, i32 1, i32 0
  %71 = load i64, i64* %._storage3._capacityAndFlags._value, align 8
  %72 = lshr i64 %71, 1
  %73 = add nuw nsw i64 %70, 1
  %.not20 = icmp ugt i64 %72, %70
  br i1 %.not20, label %76, label %74, !prof !7

74:                                               ; preds = %69
  %75 = icmp ugt i64 %71, 1
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSi_Tg5"(i1 %75, i64 %73, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %3)
  %.pre = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %76

76:                                               ; preds = %69, %74
  %77 = phi %Ts28__ContiguousArrayStorageBaseC* [ %17, %69 ], [ %.pre, %74 ]
  %._storage4.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %77, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %73, i64* %._storage4.count._value, align 8
  %78 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %77, i64 1
  %tailaddr5 = bitcast %Ts28__ContiguousArrayStorageBaseC* %78 to %TSi*
  %._value6 = getelementptr inbounds %TSi, %TSi* %tailaddr5, i64 %70, i32 0
  store i64 %68, i64* %._value6, align 8
  %79 = icmp eq i64 %18, %5
  br i1 %79, label %80, label %15

80:                                               ; preds = %76
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %8)
  br label %13

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

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

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

; Function Attrs: minsize optsize
define hidden swiftcc void @"$s7llvm_OZ4mainyyF"() local_unnamed_addr #0 {
entry:
  %0 = alloca %Ts15ContiguousArrayV, align 8
  %1 = alloca %TSJ, align 8
  %swifterror = alloca swifterror %swift.error*, align 8
  store %swift.error* null, %swift.error** %swifterror, align 8
  %2 = alloca %Ts15ContiguousArrayV, align 8
  %3 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$s7llvm_OZ9readWordsySayxGxSsXElFSi_Tg5"(i8* nonnull bitcast (void (%TSi*, i64, i64, i64, %swift.bridge*)* @"$s7llvm_OZ4mainyyFSiSsXEfU_" to i8*), %swift.opaque* null)
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 1, i32 0, i32 0, i32 0
  %4 = load i64, i64* %._storage.count._value, align 8, !range !6
  %.not = icmp eq i64 %4, 0
  br i1 %.not, label %243, label %5, !prof !8

5:                                                ; preds = %entry
  %6 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 1
  %tailaddr._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %6 to i64*
  %7 = load i64, i64* %tailaddr._value, align 8
  %.not99 = icmp eq i64 %4, 1
  br i1 %.not99, label %244, label %8, !prof !8

8:                                                ; preds = %5
  %9 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 1, i32 0, i32 1
  %10 = load i64, i64* %9, align 8
  %11 = icmp slt i64 %7, 1
  br i1 %11, label %245, label %12, !prof !8

12:                                               ; preds = %8
  %13 = bitcast %Ts15ContiguousArrayV* %0 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %13)
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %0, i64 0, i32 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSi_Sit_Tg5"(i1 false, i64 %7, i1 false, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %0)
  %14 = bitcast %TSJ* %1 to i8*
  %._str._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSJ, %TSJ* %1, i64 0, i32 0, i32 0, i32 0, i32 0, i32 0
  %._str._guts._object._object = getelementptr inbounds %TSJ, %TSJ* %1, i64 0, i32 0, i32 0, i32 0, i32 1
  br label %20

15:                                               ; preds = %71
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %13)
  %16 = bitcast %Ts15ContiguousArrayV* %2 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %16)
  %._buffer13._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %2, i64 0, i32 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* %64, %Ts28__ContiguousArrayStorageBaseC** %._buffer13._storage, align 8
  %17 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %64, i64 0, i32 0
  %18 = call %swift.refcounted* @swift_retain(%swift.refcounted* returned %17) #26
  call swiftcc void @"$sSMsSkRzrlE4sort2byySb7ElementSTQz_ADtKXE_tKFs15ContiguousArrayVySi_SitG_Tg5032$sS4iSbs5Error_pIgyyyydzo_Si_Sitk1_l23SbsAA_pIegnndzo_TR016$sg66SbIegnnnnd_cD67Iegyyyyd_TR43$ss1loiySbx_q_t_x_q_ttSLRzSLR_r0_lFSi_K23TG5Tf3nnnnpf_nTf3nnpf_nTf1cn_n"(%Ts15ContiguousArrayV* nocapture nonnull dereferenceable(8) %2, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  %19 = load %swift.error*, %swift.error** %swifterror, align 8
  %.not103 = icmp eq %swift.error* %19, null
  br i1 %.not103, label %74, label %78

20:                                               ; preds = %12, %71
  %21 = phi i64 [ 0, %12 ], [ %25, %71 ]
  %22 = phi i64 [ 1, %12 ], [ %72, %71 ]
  %23 = phi i1 [ false, %12 ], [ %66, %71 ]
  %exitcond.not = icmp eq i64 %21, %7
  br i1 %exitcond.not, label %246, label %24, !prof !8

24:                                               ; preds = %20
  %25 = add nuw nsw i64 %21, 1
  br i1 %23, label %247, label %26

26:                                               ; preds = %24
  %27 = call swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1 true)
  %28 = extractvalue { i64, i64 } %27, 1
  %29 = icmp eq i64 %28, 0
  br i1 %29, label %248, label %30

30:                                               ; preds = %26
  %31 = extractvalue { i64, i64 } %27, 0
  %32 = inttoptr i64 %28 to %swift.bridge*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %14)
  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()
  %33 = alloca [24 x i8], align 16
  %34 = bitcast [24 x i8]* %33 to %swift.opaque*
  %35 = getelementptr inbounds [24 x i8], [24 x i8]* %33, i64 0, i64 16
  %36 = bitcast i8* %35 to %TSJ**
  store %TSJ* %1, %TSJ** %36, align 16
  %37 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* nonnull returned %32) #6
  %38 = 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 %34, i64 %31, %swift.bridge* nonnull %32, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %32) #6
  call void @llvm.stackrestore(i8* %spsave)
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %14)
  %39 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE3mapySayqd__Gqd__7ElementQzKXEKlFSaySsG_SiTg598$sSsxs5Error_pIggrzo_SsxsAA_pIegnrzo_lTRSi_TG5032$s7llvm_OZ4mainyyFSi_SitSiXEfU0_f2SsG2U_Tf3nnpf_nTf1cn_n"(%Ts28__ContiguousArrayStorageBaseC* %38, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  %40 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %38, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %40) #6
  %._storage3.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %39, i64 0, i32 1, i32 0, i32 0, i32 0
  %41 = load i64, i64* %._storage3.count._value, align 8, !range !6
  %.not100 = icmp eq i64 %41, 0
  br i1 %.not100, label %249, label %42, !prof !8

42:                                               ; preds = %30
  %43 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %39, i64 1
  %tailaddr4._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %43 to i64*
  %44 = load i64, i64* %tailaddr4._value, align 8
  %.not101 = icmp eq i64 %41, 1
  br i1 %.not101, label %250, label %45, !prof !8

45:                                               ; preds = %42
  %46 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %39, i64 1, i32 0, i32 1
  %47 = load i64, i64* %46, align 8
  %48 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %39, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %48) #6
  %49 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %50 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %49, i64 0, i32 0
  %51 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %50) #26
  br i1 %51, label %55, label %52

52:                                               ; preds = %45
  %._storage7.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %49, i64 0, i32 1, i32 0, i32 0, i32 0
  %53 = load i64, i64* %._storage7.count._value, align 8, !range !6
  %54 = add nuw nsw i64 %53, 1
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSi_Sit_Tg5"(i1 false, i64 %54, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %0)
  %.pre = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %55

55:                                               ; preds = %45, %52
  %56 = phi %Ts28__ContiguousArrayStorageBaseC* [ %49, %45 ], [ %.pre, %52 ]
  %._storage8.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %56, i64 0, i32 1, i32 0, i32 0, i32 0
  %57 = load i64, i64* %._storage8.count._value, align 8, !range !6
  %._storage8._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %56, i64 0, i32 1, i32 0, i32 1, i32 0
  %58 = load i64, i64* %._storage8._capacityAndFlags._value, align 8
  %59 = lshr i64 %58, 1
  %60 = add nuw nsw i64 %57, 1
  %.not102 = icmp ugt i64 %59, %57
  br i1 %.not102, label %63, label %61, !prof !7

61:                                               ; preds = %55
  %62 = icmp ugt i64 %58, 1
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSi_Sit_Tg5"(i1 %62, i64 %60, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %0)
  %.pre153 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %63

63:                                               ; preds = %55, %61
  %64 = phi %Ts28__ContiguousArrayStorageBaseC* [ %56, %55 ], [ %.pre153, %61 ]
  %._storage9.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %64, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %60, i64* %._storage9.count._value, align 8
  %65 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %64, i64 1
  %tailaddr10 = bitcast %Ts28__ContiguousArrayStorageBaseC* %65 to <{ %TSi, %TSi }>*
  %.elt._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr10, i64 %57, i32 0, i32 0
  store i64 %44, i64* %.elt._value, align 8
  %.elt11._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr10, i64 %57, i32 1, i32 0
  store i64 %47, i64* %.elt11._value, align 8
  %66 = icmp eq i64 %22, %7
  br i1 %66, label %71, label %67

67:                                               ; preds = %63
  %68 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %22, i64 1)
  %69 = extractvalue { i64, i1 } %68, 0
  %70 = extractvalue { i64, i1 } %68, 1
  br i1 %70, label %251, label %71, !prof !8

71:                                               ; preds = %67, %63
  %72 = phi i64 [ 0, %63 ], [ %69, %67 ]
  %73 = icmp eq i64 %25, %7
  br i1 %73, label %15, label %20

74:                                               ; preds = %15
  call void @swift_release(%swift.refcounted* %17) #6
  %75 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer13._storage, align 8
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %16)
  %76 = icmp slt i64 %10, 1
  br i1 %76, label %252, label %.preheader119, !prof !8

.preheader119:                                    ; preds = %74
  %._storage47.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %75, i64 0, i32 1, i32 0, i32 0, i32 0
  %77 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %75, i64 1
  %tailaddr48 = bitcast %Ts28__ContiguousArrayStorageBaseC* %77 to <{ %TSi, %TSi }>*
  br label %85

78:                                               ; preds = %15
  %79 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer13._storage, align 8
  %80 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %79, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %80) #6
  unreachable

81:                                               ; preds = %.thread, %150
  %82 = phi i64 [ %86, %150 ], [ %230, %.thread ]
  %83 = phi %Ts28__ContiguousArrayStorageBaseC* [ %152, %150 ], [ %228, %.thread ]
  %84 = icmp eq i64 %87, %10
  br i1 %84, label %232, label %96

85:                                               ; preds = %.preheader119, %96
  %86 = phi i64 [ %82, %96 ], [ 0, %.preheader119 ]
  %87 = phi i64 [ %98, %96 ], [ 1, %.preheader119 ]
  %88 = phi i64 [ %151, %96 ], [ 0, %.preheader119 ]
  %89 = phi %Ts28__ContiguousArrayStorageBaseC* [ %83, %96 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %.preheader119 ]
  %90 = icmp slt i64 %88, %7
  br i1 %90, label %91, label %150

91:                                               ; preds = %85
  %92 = load i64, i64* %._storage47.count._value, align 8, !range !6
  %.not107 = icmp slt i64 %88, %92
  br i1 %.not107, label %93, label %262, !prof !7

93:                                               ; preds = %91
  %.elt49._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr48, i64 %88, i32 0, i32 0
  %94 = load i64, i64* %.elt49._value, align 8
  %95 = icmp slt i64 %87, %94
  br i1 %95, label %150, label %.preheader117

96:                                               ; preds = %81
  %97 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %87, i64 1)
  %98 = extractvalue { i64, i1 } %97, 0
  %99 = extractvalue { i64, i1 } %97, 1
  br i1 %99, label %255, label %85, !prof !8

.preheader117:                                    ; preds = %93, %141
  %100 = phi i64 [ %135, %141 ], [ %88, %93 ]
  %101 = phi %Ts28__ContiguousArrayStorageBaseC* [ %122, %141 ], [ %89, %93 ]
  %102 = phi i64 [ %140, %141 ], [ %92, %93 ]
  %.not108 = icmp slt i64 %100, %102
  br i1 %.not108, label %103, label %263, !prof !7

103:                                              ; preds = %.preheader117
  %.elt50._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr48, i64 %100, i32 1, i32 0
  %104 = load i64, i64* %.elt50._value, align 8
  %._storage51.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %101, i64 0, i32 1, i32 0, i32 0, i32 0
  %105 = load i64, i64* %._storage51.count._value, align 8, !range !6
  %106 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %101, i64 0, i32 0
  %107 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %106) #26
  br i1 %107, label %112, label %108

108:                                              ; preds = %103
  %109 = load i64, i64* %._storage51.count._value, align 8, !range !6
  %110 = add nuw nsw i64 %109, 1
  %111 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSi_Tg5"(i1 false, i64 %110, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %101)
  br label %112

112:                                              ; preds = %103, %108
  %113 = phi %Ts28__ContiguousArrayStorageBaseC* [ %111, %108 ], [ %101, %103 ]
  %._storage53.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %113, i64 0, i32 1, i32 0, i32 0, i32 0
  %114 = load i64, i64* %._storage53.count._value, align 8, !range !6
  %._storage53._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %113, i64 0, i32 1, i32 0, i32 1, i32 0
  %115 = load i64, i64* %._storage53._capacityAndFlags._value, align 8
  %116 = lshr i64 %115, 1
  %117 = add nuw nsw i64 %114, 1
  %.not109 = icmp ugt i64 %116, %114
  br i1 %.not109, label %121, label %118, !prof !7

118:                                              ; preds = %112
  %119 = icmp ugt i64 %115, 1
  %120 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSi_Tg5"(i1 %119, i64 %117, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %113)
  br label %121

121:                                              ; preds = %112, %118
  %122 = phi %Ts28__ContiguousArrayStorageBaseC* [ %120, %118 ], [ %113, %112 ]
  %._storage54.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %122, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %117, i64* %._storage54.count._value, align 8
  %123 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %122, i64 1
  %tailaddr55 = bitcast %Ts28__ContiguousArrayStorageBaseC* %123 to %TSi*
  %._value56 = getelementptr inbounds %TSi, %TSi* %tailaddr55, i64 %114, i32 0
  store i64 %104, i64* %._value56, align 8
  %.not110 = icmp eq i64 %105, 0
  br i1 %.not110, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %121, %147
  %124 = phi i64 [ %126, %147 ], [ %105, %121 ]
  %125 = add nsw i64 %124, -1
  %126 = sdiv i64 %125, 2
  %127 = load i64, i64* %._storage54.count._value, align 8, !range !6
  %.not112 = icmp slt i64 %124, %127
  br i1 %.not112, label %128, label %266, !prof !7

128:                                              ; preds = %.preheader
  %._value60 = getelementptr inbounds %TSi, %TSi* %tailaddr55, i64 %124, i32 0
  %129 = load i64, i64* %._value60, align 8
  %.not154 = icmp slt i64 %126, %127
  br i1 %.not154, label %130, label %267, !prof !7

130:                                              ; preds = %128
  %._value61 = getelementptr inbounds %TSi, %TSi* %tailaddr55, i64 %126, i32 0
  %131 = load i64, i64* %._value61, align 8
  %132 = icmp slt i64 %131, %129
  br i1 %132, label %133, label %.loopexit

133:                                              ; preds = %130
  %134 = icmp eq i64 %124, %126
  br i1 %134, label %147, label %144

.loopexit:                                        ; preds = %130, %147, %121
  %135 = add nsw i64 %100, 1
  %136 = icmp slt i64 %135, %7
  br i1 %136, label %137, label %.loopexit118

137:                                              ; preds = %.loopexit
  %138 = icmp slt i64 %100, -1
  br i1 %138, label %264, label %139, !prof !8

139:                                              ; preds = %137
  %140 = load i64, i64* %._storage47.count._value, align 8, !range !6
  %.not111 = icmp ult i64 %135, %140
  br i1 %.not111, label %141, label %265, !prof !7

141:                                              ; preds = %139
  %.elt57._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %tailaddr48, i64 %135, i32 0, i32 0
  %142 = load i64, i64* %.elt57._value, align 8
  %143 = icmp slt i64 %87, %142
  br i1 %143, label %.loopexit118, label %.preheader117

144:                                              ; preds = %133
  store i64 %131, i64* %._value60, align 8
  %145 = load i64, i64* %._storage54.count._value, align 8, !range !6
  %.not113 = icmp slt i64 %126, %145
  br i1 %.not113, label %146, label %268, !prof !7

146:                                              ; preds = %144
  store i64 %129, i64* %._value61, align 8
  br label %147

147:                                              ; preds = %133, %146
  %148 = icmp sgt i64 %124, 2
  br i1 %148, label %.preheader, label %.loopexit

.loopexit118:                                     ; preds = %.loopexit, %141
  %149 = add i64 %100, 1
  br label %150

150:                                              ; preds = %.loopexit118, %93, %85
  %151 = phi i64 [ %88, %85 ], [ %88, %93 ], [ %149, %.loopexit118 ]
  %152 = phi %Ts28__ContiguousArrayStorageBaseC* [ %89, %85 ], [ %89, %93 ], [ %122, %.loopexit118 ]
  %._storage16.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %152, i64 0, i32 1, i32 0, i32 0, i32 0
  %153 = load i64, i64* %._storage16.count._value, align 8, !range !6
  %154 = icmp eq i64 %153, 0
  br i1 %154, label %81, label %155

155:                                              ; preds = %150
  %156 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %152, i64 0, i32 0
  %157 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %156) #26
  br i1 %157, label %160, label %158

158:                                              ; preds = %155
  %159 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSi_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %152)
  br label %160

160:                                              ; preds = %155, %158
  %161 = phi %Ts28__ContiguousArrayStorageBaseC* [ %159, %158 ], [ %152, %155 ]
  %._storage17.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %161, i64 0, i32 1, i32 0, i32 0, i32 0
  %162 = load i64, i64* %._storage17.count._value, align 8, !range !6
  %163 = add nsw i64 %162, -1
  %164 = icmp eq i64 %162, 0
  br i1 %164, label %253, label %165, !prof !8

165:                                              ; preds = %160
  %166 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %161, i64 1
  %tailaddr18 = bitcast %Ts28__ContiguousArrayStorageBaseC* %166 to %TSi*
  %._value19 = getelementptr inbounds %TSi, %TSi* %tailaddr18, i64 %163, i32 0
  %167 = load i64, i64* %._value19, align 8
  store i64 %163, i64* %._storage17.count._value, align 8
  %168 = icmp eq i64 %163, 0
  br i1 %168, label %.thread, label %169

169:                                              ; preds = %165
  %tailaddr22._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %166 to i64*
  %170 = load i64, i64* %tailaddr22._value, align 8
  store i64 %167, i64* %tailaddr22._value, align 8
  %171 = load i64, i64* %._value19, align 8
  store i64 %171, i64* %tailaddr22._value, align 8
  store i64 %167, i64* %._value19, align 8
  %172 = icmp ugt i64 %162, 2
  br i1 %172, label %.preheader116, label %.thread

.preheader116:                                    ; preds = %169, %190
  %173 = phi i64 [ %192, %190 ], [ 1, %169 ]
  %174 = phi i64 [ %185, %190 ], [ 0, %169 ]
  %175 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %173, i64 1)
  %176 = extractvalue { i64, i1 } %175, 0
  %177 = extractvalue { i64, i1 } %175, 1
  br i1 %177, label %260, label %178, !prof !8

178:                                              ; preds = %.preheader116
  %179 = icmp slt i64 %176, %163
  br i1 %179, label %180, label %184

180:                                              ; preds = %178
  %._value45 = getelementptr inbounds %TSi, %TSi* %tailaddr18, i64 %173, i32 0
  %181 = load i64, i64* %._value45, align 8
  %._value46 = getelementptr inbounds %TSi, %TSi* %tailaddr18, i64 %176, i32 0
  %182 = load i64, i64* %._value46, align 8
  %183 = icmp slt i64 %182, %181
  %.68 = select i1 %183, i64 %173, i64 %176
  br label %184

184:                                              ; preds = %178, %180
  %185 = phi i64 [ %.68, %180 ], [ %173, %178 ]
  %._value41 = getelementptr inbounds %TSi, %TSi* %tailaddr18, i64 %174, i32 0
  %186 = load i64, i64* %._value41, align 8
  %._value42 = getelementptr inbounds %TSi, %TSi* %tailaddr18, i64 %185, i32 0
  %187 = load i64, i64* %._value42, align 8
  store i64 %187, i64* %._value41, align 8
  store i64 %186, i64* %._value42, align 8
  %188 = add i64 %185, 4611686018427387904
  %189 = icmp slt i64 %188, 0
  br i1 %189, label %261, label %190, !prof !8

190:                                              ; preds = %184
  %191 = shl nsw i64 %185, 1
  %192 = or i64 %191, 1
  %193 = icmp slt i64 %192, %163
  br i1 %193, label %.preheader116, label %194

194:                                              ; preds = %190
  %195 = icmp sgt i64 %185, 0
  br i1 %195, label %.preheader115, label %.thread

.preheader115:                                    ; preds = %194, %224
  %196 = phi i64 [ %199, %224 ], [ %185, %194 ]
  %197 = phi %Ts28__ContiguousArrayStorageBaseC* [ %225, %224 ], [ %161, %194 ]
  %198 = add nsw i64 %196, -1
  %199 = sdiv i64 %198, 2
  %._storage31.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %197, i64 0, i32 1, i32 0, i32 0, i32 0
  %200 = load i64, i64* %._storage31.count._value, align 8, !range !6
  %.not104 = icmp slt i64 %196, %200
  br i1 %.not104, label %201, label %256, !prof !7

201:                                              ; preds = %.preheader115
  %202 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %197, i64 1
  %tailaddr32 = bitcast %Ts28__ContiguousArrayStorageBaseC* %202 to %TSi*
  %._value33 = getelementptr inbounds %TSi, %TSi* %tailaddr32, i64 %196, i32 0
  %203 = load i64, i64* %._value33, align 8
  %204 = icmp slt i64 %196, 0
  %205 = icmp sge i64 %199, %200
  %206 = or i1 %204, %205
  br i1 %206, label %257, label %207, !prof !8

207:                                              ; preds = %201
  %._value34 = getelementptr inbounds %TSi, %TSi* %tailaddr32, i64 %199, i32 0
  %208 = load i64, i64* %._value34, align 8
  %209 = icmp slt i64 %208, %203
  br i1 %209, label %210, label %.thread

210:                                              ; preds = %207
  %211 = icmp eq i64 %196, %199
  br i1 %211, label %224, label %212

212:                                              ; preds = %210
  %213 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %197, i64 0, i32 0
  %214 = call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %213) #26
  br i1 %214, label %217, label %215

215:                                              ; preds = %212
  %216 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSi_Tg5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %197)
  br label %217

217:                                              ; preds = %212, %215
  %218 = phi %Ts28__ContiguousArrayStorageBaseC* [ %216, %215 ], [ %197, %212 ]
  %._storage37.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %218, i64 0, i32 1, i32 0, i32 0, i32 0
  %219 = load i64, i64* %._storage37.count._value, align 8, !range !6
  %.not105 = icmp ult i64 %196, %219
  br i1 %.not105, label %220, label %258, !prof !7

220:                                              ; preds = %217
  %221 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %218, i64 1
  %tailaddr38 = bitcast %Ts28__ContiguousArrayStorageBaseC* %221 to %TSi*
  %._value39 = getelementptr inbounds %TSi, %TSi* %tailaddr38, i64 %196, i32 0
  store i64 %208, i64* %._value39, align 8
  %222 = load i64, i64* %._storage37.count._value, align 8, !range !6
  %.not106 = icmp slt i64 %199, %222
  br i1 %.not106, label %223, label %259, !prof !7

223:                                              ; preds = %220
  %._value40 = getelementptr inbounds %TSi, %TSi* %tailaddr38, i64 %199, i32 0
  store i64 %203, i64* %._value40, align 8
  br label %224

224:                                              ; preds = %210, %223
  %225 = phi %Ts28__ContiguousArrayStorageBaseC* [ %218, %223 ], [ %197, %210 ]
  %226 = icmp ugt i64 %196, 2
  br i1 %226, label %.preheader115, label %.thread

.thread:                                          ; preds = %224, %207, %169, %194, %165
  %227 = phi i64 [ %167, %165 ], [ %170, %194 ], [ %170, %169 ], [ %170, %207 ], [ %170, %224 ]
  %228 = phi %Ts28__ContiguousArrayStorageBaseC* [ %161, %165 ], [ %161, %194 ], [ %161, %169 ], [ %225, %224 ], [ %197, %207 ]
  %229 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %86, i64 %227)
  %230 = extractvalue { i64, i1 } %229, 0
  %231 = extractvalue { i64, i1 } %229, 1
  br i1 %231, label %254, label %81, !prof !8

232:                                              ; preds = %81
  %233 = call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #24
  %234 = call noalias %swift.refcounted* @swift_allocObject(%swift.type* %233, i64 64, i64 7) #6
  %235 = bitcast %swift.refcounted* %234 to %Ts28__ContiguousArrayStorageBaseC*
  %236 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %234, i64 1
  %._storage27.count._value = bitcast %swift.refcounted* %236 to i64*
  store i64 1, i64* %._storage27.count._value, align 8
  %._storage27._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %234, i64 1, i32 1
  store i64 2, i64* %._storage27._capacityAndFlags, align 8
  %237 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %234, i64 2
  %238 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %234, i64 3, i32 1
  %239 = bitcast i64* %238 to %swift.type**
  store %swift.type* @"$sSiN", %swift.type** %239, align 8
  %._value29 = bitcast %swift.refcounted* %237 to i64*
  store i64 %82, i64* %._value29, align 8
  call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %235, 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* %234) #6
  %240 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %83, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %240) #6
  %241 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %75, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %241) #6
  %242 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %3, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %242) #6
  ret void

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: minsize optsize
define internal swiftcc void @"$s7llvm_OZ4mainyyFSiSsXEfU_"(%TSi* noalias nocapture writeonly sret(%TSi) %0, i64 %1, i64 %2, i64 %3, %swift.bridge* %4) #0 {
entry:
  %swifterror = alloca swifterror %swift.error*, align 8
  store %swift.error* null, %swift.error** %swifterror, align 8
  %.unshifted = xor i64 %2, %1
  %5 = icmp ult i64 %.unshifted, 16384
  br i1 %5, label %21, label %6, !prof !8

6:                                                ; preds = %entry
  %7 = call swiftcc { i64, i16 } @"$ss5SliceV32withContiguousStorageIfAvailableyqd__Sgqd__SRy7ElementQzGKXEKlFSRyxGq_s5Error_pr0_lys5UInt8Vqd__Isgyrzo_ABySS8UTF8ViewVGADsAI_pAMRszr__lIetMggrzo_Tpq5SiSg_Tg5061$ss17FixedWidthIntegerPsE_5radixxSgqd___SitcSyRd__lufcADSRys5I15VGXEfU_Si_SsTG5SiTf1cn_n"(i64 %1, i64 %2, i64 %3, %swift.bridge* %4, i64 10, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  %8 = extractvalue { i64, i16 } %7, 1
  %9 = and i16 %8, 256
  %.not6 = icmp eq i16 %9, 0
  br i1 %.not6, label %16, label %10

10:                                               ; preds = %6
  %11 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %4) #6
  %12 = tail call swiftcc { i64, i8 } @"$ss13_parseInteger5ascii5radixq_Sgx_SitSyRzs010FixedWidthB0R_r0_lFSs_SiTg5"(i64 %1, i64 %2, i64 %3, %swift.bridge* %4, i64 10)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %4) #6
  %13 = extractvalue { i64, i8 } %12, 0
  %14 = extractvalue { i64, i8 } %12, 1
  %15 = and i8 %14, 1
  %.not5 = icmp eq i8 %15, 0
  br i1 %.not5, label %19, label %22

16:                                               ; preds = %6
  %17 = extractvalue { i64, i16 } %7, 0
  %18 = and i16 %8, 1
  %.not = icmp eq i16 %18, 0
  br i1 %.not, label %19, label %22

19:                                               ; preds = %10, %16
  %20 = phi i64 [ %13, %10 ], [ %17, %16 ]
  %._value = getelementptr inbounds %TSi, %TSi* %0, i64 0, i32 0
  store i64 %20, i64* %._value, align 8
  ret void

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

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

; Function Attrs: minsize optsize
declare swiftcc void @"$sSayxSicig"(%swift.opaque* noalias nocapture sret(%swift.opaque), i64, %Ts28__ContiguousArrayStorageBaseC*, %swift.type*) local_unnamed_addr #0

; Function Attrs: minsize optsize
define internal swiftcc void @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV3popxSgyF"(%swift.opaque* noalias nocapture sret(%swift.opaque) %0, %swift.type* nocapture readonly %"PriorityQueue<T>", %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* nocapture swiftself dereferenceable(24) %1) unnamed_addr #0 {
entry:
  %swifterror = alloca swifterror %swift.error*, align 8
  store %swift.error* null, %swift.error** %swifterror, align 8
  %2 = getelementptr inbounds %swift.type, %swift.type* %"PriorityQueue<T>", i64 2
  %3 = bitcast %swift.type* %2 to %swift.type**
  %T = load %swift.type*, %swift.type** %3, align 8, !invariant.load !9
  %4 = tail call swiftcc %swift.metadata_response @"$sSqMa"(i64 0, %swift.type* %T) #25
  %5 = extractvalue %swift.metadata_response %4, 0
  %6 = getelementptr inbounds %swift.type, %swift.type* %5, i64 -1
  %7 = bitcast %swift.type* %6 to i8***
  %.valueWitnesses = load i8**, i8*** %7, align 8, !invariant.load !9, !dereferenceable !10
  %8 = getelementptr inbounds i8*, i8** %.valueWitnesses, i64 8
  %9 = bitcast i8** %8 to i64*
  %size = load i64, i64* %9, align 8, !invariant.load !9
  %10 = alloca i8, i64 %size, align 16
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %10)
  %11 = tail call swiftcc %swift.metadata_response @"$sSaMa"(i64 0, %swift.type* %T) #25
  %12 = extractvalue %swift.metadata_response %11, 0
  %13 = tail call i8** @swift_getWitnessTable(%swift.protocol_conformance_descriptor* nonnull @"$sSayxGSKsMc", %swift.type* %12, i8*** undef) #24
  %14 = tail call i8** @swift_getWitnessTable(%swift.protocol_conformance_descriptor* nonnull @"$sSayxGSmsMc", %swift.type* %12, i8*** undef) #24
  %15 = bitcast i8* %10 to %swift.opaque*
  %16 = bitcast %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %1 to %swift.opaque*
  call swiftcc void @"$sSmsSKRzrlE7popLast7ElementSTQzSgyF"(%swift.opaque* noalias nocapture nonnull sret(%swift.opaque) %15, %swift.type* %12, i8** %13, i8** %14, %swift.opaque* nocapture nonnull swiftself %16)
  %17 = alloca [40 x i8], align 16
  %18 = bitcast [40 x i8]* %17 to %swift.opaque*
  %19 = getelementptr inbounds [40 x i8], [40 x i8]* %17, i64 0, i64 16
  %20 = bitcast i8* %19 to %swift.type**
  store %swift.type* %T, %swift.type** %20, align 16
  %21 = getelementptr inbounds [40 x i8], [40 x i8]* %17, i64 0, i64 24
  %22 = getelementptr inbounds %swift.type, %swift.type* %"PriorityQueue<T>", i64 3
  %23 = bitcast %swift.type* %22 to i8***
  %T.Comparable = load i8**, i8*** %23, align 8, !invariant.load !9
  %24 = bitcast i8* %21 to i8***
  store i8** %T.Comparable, i8*** %24, align 8
  %25 = getelementptr inbounds [40 x i8], [40 x i8]* %17, i64 0, i64 32
  %26 = bitcast i8* %25 to %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV**
  store %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %1, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV** %26, align 16
  %27 = bitcast i8* %10 to %TSq.0*
  call swiftcc void @"$sSq3mapyqd__Sgqd__xKXEKlF"(%swift.opaque* noalias nocapture sret(%swift.opaque) %0, i8* nonnull bitcast (void (%swift.opaque*, %swift.opaque*, %swift.refcounted*, %swift.error**)* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV3popxSgyFxxXEfU_TA" to i8*), %swift.opaque* nonnull %18, %swift.type* %5, %swift.type* %T, %TSq.0* noalias nocapture nonnull swiftself %27, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  %28 = getelementptr inbounds i8*, i8** %.valueWitnesses, i64 1
  %29 = bitcast i8** %28 to void (%swift.opaque*, %swift.type*)**
  %30 = load void (%swift.opaque*, %swift.type*)*, void (%swift.opaque*, %swift.type*)** %29, align 8, !invariant.load !9
  call void %30(%swift.opaque* noalias nonnull %15, %swift.type* %5) #6
  call void @llvm.lifetime.end.p0i8(i64 -1, i8* nonnull %10)
  ret void
}

; Function Attrs: minsize optsize
declare swiftcc i1 @"$sSlsE7isEmptySbvg"(%swift.type*, i8**, %swift.opaque* noalias nocapture swiftself) local_unnamed_addr #0

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

; Function Attrs: minsize optsize
declare swiftcc void @"$sSmsSKRzrlE7popLast7ElementSTQzSgyF"(%swift.opaque* noalias nocapture sret(%swift.opaque), %swift.type*, i8**, i8**, %swift.opaque* nocapture swiftself) local_unnamed_addr #0

; Function Attrs: minsize optsize
declare swiftcc void @"$ss4swapyyxz_xztlF"(%swift.opaque* nocapture, %swift.opaque* nocapture, %swift.type*) local_unnamed_addr #0

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

; Function Attrs: minsize optsize
define internal swiftcc void @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV6siftUpyySiF"(i64 %0, %swift.type* nocapture readonly %"PriorityQueue<T>", %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* nocapture swiftself dereferenceable(24) %1) unnamed_addr #0 {
entry:
  %2 = alloca %TSi, align 8
  %3 = alloca %TSi, align 8
  %4 = getelementptr inbounds %swift.type, %swift.type* %"PriorityQueue<T>", i64 2
  %5 = bitcast %swift.type* %4 to %swift.type**
  %T = load %swift.type*, %swift.type** %5, align 8, !invariant.load !9
  %6 = getelementptr inbounds %swift.type, %swift.type* %T, i64 -1
  %7 = bitcast %swift.type* %6 to i8***
  %T.valueWitnesses = load i8**, i8*** %7, align 8, !invariant.load !9, !dereferenceable !10
  %8 = getelementptr inbounds i8*, i8** %T.valueWitnesses, i64 8
  %9 = bitcast i8** %8 to i64*
  %size = load i64, i64* %9, align 8, !invariant.load !9
  %10 = alloca i8, i64 %size, align 16
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %10)
  %11 = bitcast i8* %10 to %swift.opaque*
  %12 = alloca i8, i64 %size, align 16
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %12)
  %13 = bitcast i8* %12 to %swift.opaque*
  %14 = icmp sgt i64 %0, 0
  br i1 %14, label %15, label %.loopexit

15:                                               ; preds = %entry
  %.ordered = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %1, i64 0, i32 1
  %16 = bitcast %TSi* %2 to i8*
  %17 = bitcast %swift.function* %.ordered to i1 (%swift.opaque*, %swift.opaque*, %swift.refcounted*)**
  %.ordered.data = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %1, i64 0, i32 1, i32 1
  %.data._buffer._storage = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %1, i64 0, i32 0, i32 0, i32 0
  %18 = getelementptr inbounds i8*, i8** %T.valueWitnesses, i64 1
  %19 = bitcast i8** %18 to void (%swift.opaque*, %swift.type*)**
  %._value = getelementptr inbounds %TSi, %TSi* %2, i64 0, i32 0
  %20 = bitcast %TSi* %3 to i8*
  %._value1 = getelementptr inbounds %TSi, %TSi* %3, i64 0, i32 0
  %21 = bitcast %TSi* %2 to %swift.opaque*
  %22 = bitcast %TSi* %3 to %swift.opaque*
  %23 = bitcast %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %1 to %swift.opaque*
  br label %24

24:                                               ; preds = %33, %15
  %25 = phi i64 [ %0, %15 ], [ %27, %33 ]
  %26 = add nsw i64 %25, -1
  %27 = sdiv i64 %26, 2
  %28 = load i1 (%swift.opaque*, %swift.opaque*, %swift.refcounted*)*, i1 (%swift.opaque*, %swift.opaque*, %swift.refcounted*)** %17, align 8
  %29 = load %swift.refcounted*, %swift.refcounted** %.ordered.data, align 8
  %30 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.data._buffer._storage, align 8
  call swiftcc void @"$sSayxSicig"(%swift.opaque* noalias nocapture nonnull sret(%swift.opaque) %13, i64 %25, %Ts28__ContiguousArrayStorageBaseC* %30, %swift.type* %T)
  call swiftcc void @"$sSayxSicig"(%swift.opaque* noalias nocapture nonnull sret(%swift.opaque) %11, i64 %27, %Ts28__ContiguousArrayStorageBaseC* %30, %swift.type* %T)
  %31 = call swiftcc i1 %28(%swift.opaque* noalias nocapture nonnull %13, %swift.opaque* noalias nocapture nonnull %11, %swift.refcounted* swiftself %29)
  %32 = load void (%swift.opaque*, %swift.type*)*, void (%swift.opaque*, %swift.type*)** %19, align 8, !invariant.load !9
  call void %32(%swift.opaque* noalias nonnull %11, %swift.type* %T) #6
  call void %32(%swift.opaque* noalias nonnull %13, %swift.type* %T) #6
  br i1 %31, label %.loopexit, label %33

33:                                               ; preds = %24
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %16)
  store i64 %25, i64* %._value, align 8
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %20)
  store i64 %27, i64* %._value1, align 8
  %34 = call swiftcc %swift.metadata_response @"$sSaMa"(i64 0, %swift.type* %T) #25
  %35 = extractvalue %swift.metadata_response %34, 0
  %36 = call i8** @swift_getWitnessTable(%swift.protocol_conformance_descriptor* nonnull @"$sSayxGSMsMc", %swift.type* %35, i8*** undef) #24
  call swiftcc void @"$sSMsE6swapAtyy5IndexQz_ACtF"(%swift.opaque* noalias nocapture nonnull %21, %swift.opaque* noalias nocapture nonnull %22, %swift.type* %35, i8** %36, %swift.opaque* nocapture nonnull swiftself %23)
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %20)
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %16)
  %37 = icmp sgt i64 %25, 2
  br i1 %37, label %24, label %.loopexit

.loopexit:                                        ; preds = %33, %24, %entry
  call void @llvm.lifetime.end.p0i8(i64 -1, i8* nonnull %12)
  call void @llvm.lifetime.end.p0i8(i64 -1, i8* nonnull %10)
  ret void
}

; Function Attrs: minsize optsize
define internal swiftcc void @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV8siftDownyyFySryxGzXEfU_"(%TSr* nocapture readonly dereferenceable(16) %0, i64 %1, %TSi* nocapture dereferenceable(8) %2, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* nocapture readonly dereferenceable(24) %3, %swift.type* %T) unnamed_addr #0 {
entry:
  %4 = getelementptr inbounds %swift.type, %swift.type* %T, i64 -1
  %5 = bitcast %swift.type* %4 to i8***
  %T.valueWitnesses = load i8**, i8*** %5, align 8, !invariant.load !9, !dereferenceable !10
  %6 = getelementptr inbounds i8*, i8** %T.valueWitnesses, i64 8
  %7 = bitcast i8** %6 to i64*
  %size = load i64, i64* %7, align 8, !invariant.load !9
  %8 = alloca i8, i64 %size, align 16
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %8)
  %9 = bitcast i8* %8 to %swift.opaque*
  %10 = alloca i8, i64 %size, align 16
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %10)
  %11 = bitcast i8* %10 to %swift.opaque*
  %12 = bitcast %TSr* %0 to i64*
  %13 = load i64, i64* %12, align 8
  %.count._value = getelementptr inbounds %TSr, %TSr* %0, i64 0, i32 1, i32 0
  %14 = load i64, i64* %.count._value, align 8
  %15 = tail call swiftcc i64 @"$sSr11baseAddressSpyxGSgvg"(i64 %13, i64 %14, %swift.type* %T)
  %16 = icmp eq i64 %15, 0
  br i1 %16, label %75, label %17

17:                                               ; preds = %entry
  %18 = inttoptr i64 %15 to i8*
  %19 = inttoptr i64 %15 to %swift.opaque*
  %20 = getelementptr inbounds i8*, i8** %T.valueWitnesses, i64 9
  %21 = bitcast i8** %20 to i64*
  %stride = load i64, i64* %21, align 8, !invariant.load !9
  %22 = mul nsw i64 %stride, %1
  %23 = getelementptr inbounds i8, i8* %18, i64 %22
  %24 = bitcast i8* %23 to %swift.opaque*
  tail call swiftcc void @"$ss4swapyyxz_xztlF"(%swift.opaque* nocapture nonnull %19, %swift.opaque* nocapture nonnull %24, %swift.type* nonnull %T)
  %._value = getelementptr inbounds %TSi, %TSi* %2, i64 0, i32 0
  %25 = load i64, i64* %._value, align 8
  %26 = add i64 %25, 4611686018427387904
  %27 = icmp slt i64 %26, 0
  br i1 %27, label %76, label %28, !prof !8

28:                                               ; preds = %17
  %29 = shl nsw i64 %25, 1
  %30 = or i64 %29, 1
  %31 = icmp slt i64 %30, %1
  br i1 %31, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %28
  %.ordered = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %3, i64 0, i32 1
  %32 = bitcast %swift.function* %.ordered to i1 (%swift.opaque*, %swift.opaque*, %swift.refcounted*)**
  %.ordered.data = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %3, i64 0, i32 1, i32 1
  %33 = getelementptr inbounds i8*, i8** %T.valueWitnesses, i64 2
  %34 = bitcast i8** %33 to %swift.opaque* (%swift.opaque*, %swift.opaque*, %swift.type*)**
  %35 = getelementptr inbounds i8*, i8** %T.valueWitnesses, i64 1
  %36 = bitcast i8** %35 to void (%swift.opaque*, %swift.type*)**
  br label %37

37:                                               ; preds = %.preheader, %71
  %38 = phi i64 [ %62, %71 ], [ %25, %.preheader ]
  %39 = phi i64 [ %73, %71 ], [ %30, %.preheader ]
  %40 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %39, i64 1)
  %41 = extractvalue { i64, i1 } %40, 0
  %42 = extractvalue { i64, i1 } %40, 1
  br i1 %42, label %77, label %43, !prof !8

43:                                               ; preds = %37
  %44 = icmp slt i64 %41, %1
  br i1 %44, label %45, label %60

45:                                               ; preds = %43
  %46 = load i1 (%swift.opaque*, %swift.opaque*, %swift.refcounted*)*, i1 (%swift.opaque*, %swift.opaque*, %swift.refcounted*)** %32, align 8
  %47 = load %swift.refcounted*, %swift.refcounted** %.ordered.data, align 8
  %48 = mul nsw i64 %39, %stride
  %49 = getelementptr inbounds i8, i8* %18, i64 %48
  %50 = bitcast i8* %49 to %swift.opaque*
  %51 = load %swift.opaque* (%swift.opaque*, %swift.opaque*, %swift.type*)*, %swift.opaque* (%swift.opaque*, %swift.opaque*, %swift.type*)** %34, align 8, !invariant.load !9
  %52 = call %swift.opaque* %51(%swift.opaque* noalias nonnull %11, %swift.opaque* noalias nonnull %50, %swift.type* %T) #6
  %53 = mul nsw i64 %41, %stride
  %54 = getelementptr inbounds i8, i8* %18, i64 %53
  %55 = bitcast i8* %54 to %swift.opaque*
  %56 = call %swift.opaque* %51(%swift.opaque* noalias nonnull %9, %swift.opaque* noalias nonnull %55, %swift.type* %T) #6
  %57 = call %swift.refcounted* @swift_retain(%swift.refcounted* returned %47) #26
  %58 = call swiftcc i1 %46(%swift.opaque* noalias nocapture nonnull %11, %swift.opaque* noalias nocapture nonnull %9, %swift.refcounted* swiftself %47)
  %59 = load void (%swift.opaque*, %swift.type*)*, void (%swift.opaque*, %swift.type*)** %36, align 8, !invariant.load !9
  call void %59(%swift.opaque* noalias nonnull %9, %swift.type* %T) #6
  call void %59(%swift.opaque* noalias nonnull %11, %swift.type* %T) #6
  call void @swift_release(%swift.refcounted* %47) #6
  %. = select i1 %58, i64 %41, i64 %39
  %.pre = load i64, i64* %._value, align 8
  br label %60

60:                                               ; preds = %43, %45
  %61 = phi i64 [ %.pre, %45 ], [ %38, %43 ]
  %62 = phi i64 [ %., %45 ], [ %39, %43 ]
  %63 = mul nsw i64 %61, %stride
  %64 = getelementptr inbounds i8, i8* %18, i64 %63
  %65 = bitcast i8* %64 to %swift.opaque*
  %66 = mul nsw i64 %62, %stride
  %67 = getelementptr inbounds i8, i8* %18, i64 %66
  %68 = bitcast i8* %67 to %swift.opaque*
  call swiftcc void @"$ss4swapyyxz_xztlF"(%swift.opaque* nocapture nonnull %65, %swift.opaque* nocapture nonnull %68, %swift.type* %T)
  store i64 %62, i64* %._value, align 8
  %69 = add i64 %62, 4611686018427387904
  %70 = icmp slt i64 %69, 0
  br i1 %70, label %78, label %71, !prof !8

71:                                               ; preds = %60
  %72 = shl nsw i64 %62, 1
  %73 = or i64 %72, 1
  %74 = icmp slt i64 %73, %1
  br i1 %74, label %37, label %.loopexit

.loopexit:                                        ; preds = %71, %28
  call void @llvm.lifetime.end.p0i8(i64 -1, i8* nonnull %10)
  call void @llvm.lifetime.end.p0i8(i64 -1, i8* nonnull %8)
  ret void

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

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

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

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

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

; Function Attrs: minsize optsize
declare swiftcc void @"$sSMsE6swapAtyy5IndexQz_ACtF"(%swift.opaque* noalias nocapture, %swift.opaque* noalias nocapture, %swift.type*, i8**, %swift.opaque* nocapture swiftself) local_unnamed_addr #0

; Function Attrs: minsize optsize
define internal swiftcc void @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV4nextxSgyF"(%swift.opaque* noalias nocapture sret(%swift.opaque) %0, %swift.type* nocapture readonly %"PriorityQueue<T>", %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* nocapture swiftself dereferenceable(24) %1) unnamed_addr #0 {
entry:
  tail call swiftcc void @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV3popxSgyF"(%swift.opaque* noalias nocapture sret(%swift.opaque) %0, %swift.type* %"PriorityQueue<T>", %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* nocapture nonnull swiftself dereferenceable(24) %1)
  ret void
}

; Function Attrs: minsize optsize
define internal swiftcc void @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAST12makeIterator0J0QzyFTW"(%T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* noalias nocapture sret(%T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV) %0, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* noalias nocapture swiftself dereferenceable(24) %1, %swift.type* %Self, i8** %SelfWitnessTable) #0 {
entry:
  %2 = bitcast %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %0 to %swift.opaque*
  %3 = bitcast %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %1 to %swift.opaque*
  tail call swiftcc void @"$sSTs8IteratorSTQzRszrlE04makeA0xyF"(%swift.opaque* noalias nocapture sret(%swift.opaque) %2, %swift.type* %Self, i8** %SelfWitnessTable, %swift.opaque* noalias nocapture nonnull swiftself %3) #27
  ret void
}

; Function Attrs: minsize optsize
declare swiftcc void @"$sSTs8IteratorSTQzRszrlE04makeA0xyF"(%swift.opaque* noalias nocapture sret(%swift.opaque), %swift.type*, i8**, %swift.opaque* noalias nocapture swiftself) local_unnamed_addr #0

; Function Attrs: minsize optsize
define internal swiftcc i64 @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAST19underestimatedCountSivgTW"(%T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* noalias nocapture swiftself dereferenceable(24) %0, %swift.type* %Self, i8** %SelfWitnessTable) #0 {
entry:
  %1 = bitcast %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %0 to %swift.opaque*
  %2 = tail call swiftcc i64 @"$sSTsE19underestimatedCountSivg"(%swift.type* %Self, i8** %SelfWitnessTable, %swift.opaque* noalias nocapture nonnull swiftself %1) #27
  ret i64 %2
}

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

; Function Attrs: minsize mustprogress nofree norecurse nosync nounwind optsize readnone willreturn
define internal swiftcc i8 @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAST31_customContainsEquatableElementySbSg0L0QzFTW"(%swift.opaque* noalias nocapture readnone %0, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* noalias nocapture readnone swiftself %1, %swift.type* nocapture readnone %Self, i8** nocapture readnone %SelfWitnessTable) #3 {
entry:
  ret i8 2
}

; Function Attrs: minsize optsize
define internal swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAST22_copyToContiguousArrays0kL0Vy7ElementQzGyFTW"(%T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* noalias nocapture swiftself dereferenceable(24) %0, %swift.type* %Self, i8** %SelfWitnessTable) #0 {
entry:
  %1 = bitcast %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %0 to %swift.opaque*
  %2 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSTsE22_copyToContiguousArrays0cD0Vy7ElementQzGyF"(%swift.type* %Self, i8** %SelfWitnessTable, %swift.opaque* noalias nocapture nonnull swiftself %1) #27
  ret %Ts28__ContiguousArrayStorageBaseC* %2
}

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

; Function Attrs: minsize optsize
define internal swiftcc i64 @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAST13_copyContents12initializing8IteratorQz_SitSry7ElementQzG_tFTW"(%T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* noalias nocapture %0, i64 %1, i64 %2, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* noalias nocapture swiftself dereferenceable(24) %3, %swift.type* %Self, i8** %SelfWitnessTable) #0 {
entry:
  %4 = bitcast %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %0 to %swift.opaque*
  %5 = bitcast %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %3 to %swift.opaque*
  %6 = tail call swiftcc i64 @"$sSTsE13_copyContents12initializing8IteratorQz_SitSry7ElementQzG_tF"(%swift.opaque* noalias nocapture %4, i64 %1, i64 %2, %swift.type* %Self, i8** %SelfWitnessTable, %swift.opaque* noalias nocapture nonnull swiftself %5) #27
  ret i64 %6
}

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

; Function Attrs: minsize optsize
define internal swiftcc void @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAAST32withContiguousStorageIfAvailableyqd__Sgqd__SRy7ElementQzGKXEKlFTW"(%swift.opaque* noalias nocapture sret(%swift.opaque) %0, i8* %1, %swift.opaque* %2, %swift.type* %"\CF\84_1_0", %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* noalias nocapture swiftself dereferenceable(24) %3, %swift.error** noalias nocapture swifterror dereferenceable(8) %4, %swift.type* %Self, i8** %SelfWitnessTable) #0 {
entry:
  %5 = bitcast %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %3 to %swift.opaque*
  tail call swiftcc void @"$sSTsE32withContiguousStorageIfAvailableyqd__Sgqd__SRy7ElementQzGKXEKlF"(%swift.opaque* noalias nocapture sret(%swift.opaque) %0, i8* %1, %swift.opaque* %2, %swift.type* %Self, %swift.type* %"\CF\84_1_0", i8** %SelfWitnessTable, %swift.opaque* noalias nocapture nonnull swiftself %5, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %4) #27
  ret void
}

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

; Function Attrs: minsize optsize
define internal swiftcc void @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAASt4next7ElementQzSgyFTW"(%swift.opaque* noalias nocapture sret(%swift.opaque) %0, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* nocapture swiftself dereferenceable(24) %1, %swift.type* nocapture readonly %Self, i8** nocapture readnone %SelfWitnessTable) #0 {
entry:
  tail call swiftcc void @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV4nextxSgyF"(%swift.opaque* noalias nocapture sret(%swift.opaque) %0, %swift.type* %Self, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* nocapture nonnull swiftself dereferenceable(24) %1) #27
  ret void
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

19:                                               ; preds = %14
  %20 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCySsGMD") #24
  %21 = shl i64 %17, 5
  %22 = add i64 %21, 32
  %23 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %20, i64 %22, i64 7) #6
  %24 = bitcast %swift.refcounted* %23 to %Ts28__ContiguousArrayStorageBaseC*
  %25 = bitcast %swift.refcounted* %23 to i8*
  %call.i = tail call i64 @malloc_usable_size(i8* noundef %25) #28
  %gepdiff = add nsw i64 %call.i, -32
  %26 = sdiv i64 %gepdiff, 32
  %27 = shl nsw i64 %26, 1
  %28 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1
  %._storage7.count._value = bitcast %swift.refcounted* %28 to i64*
  store i64 %16, i64* %._storage7.count._value, align 8
  %._storage7._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1, i32 1
  store i64 %27, i64* %._storage7._capacityAndFlags, align 8
  br label %29

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

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

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

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

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

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

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

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

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

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

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

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

19:                                               ; preds = %14
  %20 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCySiGMD") #24
  %21 = shl i64 %17, 3
  %22 = add i64 %21, 32
  %23 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %20, i64 %22, i64 7) #6
  %24 = bitcast %swift.refcounted* %23 to %Ts28__ContiguousArrayStorageBaseC*
  %25 = bitcast %swift.refcounted* %23 to i8*
  %call.i = tail call i64 @malloc_usable_size(i8* noundef %25) #28
  %gepdiff = add nsw i64 %call.i, -32
  %26 = sdiv i64 %gepdiff, 8
  %27 = shl nsw i64 %26, 1
  %28 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1
  %._storage7.count._value = bitcast %swift.refcounted* %28 to i64*
  store i64 %16, i64* %._storage7.count._value, align 8
  %._storage7._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1, i32 1
  store i64 %27, i64* %._storage7._capacityAndFlags, align 8
  br label %29

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

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

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

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

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

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

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

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

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

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

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

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

19:                                               ; preds = %14
  %20 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCySi_SitGMD") #24
  %21 = shl i64 %17, 4
  %22 = add i64 %21, 32
  %23 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %20, i64 %22, i64 7) #6
  %24 = bitcast %swift.refcounted* %23 to %Ts28__ContiguousArrayStorageBaseC*
  %25 = bitcast %swift.refcounted* %23 to i8*
  %call.i = tail call i64 @malloc_usable_size(i8* noundef %25) #28
  %gepdiff = add nsw i64 %call.i, -32
  %26 = sdiv i64 %gepdiff, 16
  %27 = shl nsw i64 %26, 1
  %28 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1
  %._storage7.count._value = bitcast %swift.refcounted* %28 to i64*
  store i64 %16, i64* %._storage7.count._value, align 8
  %._storage7._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1, i32 1
  store i64 %27, i64* %._storage7._capacityAndFlags, align 8
  br label %29

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

24:                                               ; preds = %.preheader153, %.loopexit
  %25 = phi i64 [ %98, %.loopexit ], [ 0, %.preheader153 ]
  %26 = phi i64 [ %81, %.loopexit ], [ %3, %.preheader153 ]
  %27 = phi %Ts28__ContiguousArrayStorageBaseC* [ %117, %.loopexit ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %.preheader153 ]
  %28 = add nsw i64 %25, 1
  %29 = icmp slt i64 %28, %26
  br i1 %29, label %30, label %.loopexit150

30:                                               ; preds = %24
  %31 = load i64, i64* %23, align 8
  %32 = inttoptr i64 %31 to <{ %TSi, %TSi }>*
  %.elt58._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %32, i64 %28, i32 0, i32 0
  %33 = load i64, i64* %.elt58._value, align 8
  %.elt59._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %32, i64 %28, i32 1, i32 0
  %34 = load i64, i64* %.elt59._value, align 8
  %.elt60._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %32, i64 %25, i32 0, i32 0
  %35 = load i64, i64* %.elt60._value, align 8
  %.elt61._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %32, i64 %25, i32 1, i32 0
  %36 = load i64, i64* %.elt61._value, align 8
  %37 = icmp eq i64 %33, %35
  %38 = icmp slt i64 %33, %35
  %39 = icmp slt i64 %34, %36
  %40 = select i1 %37, i1 %39, i1 %38
  %41 = add nsw i64 %25, 2
  %42 = icmp slt i64 %41, %26
  br i1 %42, label %.preheader151, label %.loopexit152

.preheader151:                                    ; preds = %30, %53
  %43 = phi i64 [ %47, %53 ], [ %34, %30 ]
  %44 = phi i64 [ %46, %53 ], [ %33, %30 ]
  %45 = phi i64 [ %54, %53 ], [ %41, %30 ]
  %.elt66._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %32, i64 %45, i32 0, i32 0
  %46 = load i64, i64* %.elt66._value, align 8
  %.elt67._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %32, i64 %45, i32 1, i32 0
  %47 = load i64, i64* %.elt67._value, align 8
  %48 = icmp eq i64 %46, %44
  %49 = icmp slt i64 %46, %44
  %50 = icmp slt i64 %47, %43
  %51 = select i1 %48, i1 %50, i1 %49
  %52 = xor i1 %40, %51
  br i1 %52, label %.loopexit152, label %53

53:                                               ; preds = %.preheader151
  %54 = add nsw i64 %45, 1
  %55 = icmp slt i64 %54, %26
  br i1 %55, label %.preheader151, label %.loopexit152

.loopexit152:                                     ; preds = %53, %.preheader151, %30
  %56 = phi i64 [ %41, %30 ], [ %26, %53 ], [ %45, %.preheader151 ]
  br i1 %40, label %57, label %.loopexit150

57:                                               ; preds = %.loopexit152
  %58 = icmp slt i64 %56, %25
  br i1 %58, label %343, label %59, !prof !8

59:                                               ; preds = %57
  %60 = icmp slt i64 %25, %56
  br i1 %60, label %.preheader149, label %.loopexit150

.preheader149:                                    ; preds = %59, %77
  %61 = phi i64 [ %63, %77 ], [ %56, %59 ]
  %62 = phi i64 [ %78, %77 ], [ %25, %59 ]
  %63 = add nsw i64 %61, -1
  %64 = load i64, i64* %23, align 8
  %65 = icmp eq i64 %62, %63
  br i1 %65, label %77, label %66

66:                                               ; preds = %.preheader149
  %67 = icmp eq i64 %64, 0
  br i1 %67, label %344, label %68

68:                                               ; preds = %66
  %69 = inttoptr i64 %64 to <{ %TSi, %TSi }>*
  %70 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %69, i64 %62
  %71 = bitcast <{ %TSi, %TSi }>* %70 to i8*
  %72 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %69, i64 %63
  %73 = bitcast <{ %TSi, %TSi }>* %72 to i8*
  %74 = bitcast <{ %TSi, %TSi }>* %70 to <2 x i64>*
  %75 = load <2 x i64>, <2 x i64>* %74, align 8
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %71, i8* noundef nonnull align 8 dereferenceable(16) %73, i64 16, i1 false)
  %76 = bitcast <{ %TSi, %TSi }>* %72 to <2 x i64>*
  store <2 x i64> %75, <2 x i64>* %76, align 8
  br label %77

77:                                               ; preds = %.preheader149, %68
  %78 = add nsw i64 %62, 1
  %79 = icmp slt i64 %78, %63
  br i1 %79, label %.preheader149, label %.loopexit150

.loopexit150:                                     ; preds = %77, %59, %.loopexit152, %24
  %80 = phi i64 [ %28, %24 ], [ %56, %.loopexit152 ], [ %56, %59 ], [ %56, %77 ]
  %81 = load i64, i64* %.count._value, align 8
  %82 = icmp slt i64 %80, %81
  br i1 %82, label %83, label %.loopexit148

83:                                               ; preds = %.loopexit150
  %84 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %80, i64 %25)
  %85 = extractvalue { i64, i1 } %84, 1
  br i1 %85, label %339, label %86, !prof !8

86:                                               ; preds = %83
  %87 = extractvalue { i64, i1 } %84, 0
  %88 = icmp slt i64 %87, %4
  br i1 %88, label %89, label %.loopexit148

89:                                               ; preds = %86
  %90 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %25, i64 %4)
  %91 = extractvalue { i64, i1 } %90, 1
  br i1 %91, label %340, label %92, !prof !8

92:                                               ; preds = %89
  %93 = extractvalue { i64, i1 } %90, 0
  %94 = tail call i64 @llvm.smin.i64(i64 %93, i64 %81)
  %95 = icmp slt i64 %94, %25
  br i1 %95, label %341, label %96, !prof !8

96:                                               ; preds = %92
  %97 = icmp eq i64 %80, %94
  br i1 %97, label %.loopexit148, label %.preheader

.loopexit148:                                     ; preds = %306, %96, %86, %.loopexit150
  %98 = phi i64 [ %80, %.loopexit150 ], [ %80, %86 ], [ %80, %96 ], [ %94, %306 ]
  %99 = icmp slt i64 %98, %25
  br i1 %99, label %322, label %100, !prof !8

100:                                              ; preds = %.loopexit148
  %101 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 0, i32 0
  %102 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %101) #26
  br i1 %102, label %107, label %103

103:                                              ; preds = %100
  %._storage13.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 0, i32 1, i32 0, i32 0, i32 0
  %104 = load i64, i64* %._storage13.count._value, align 8, !range !6
  %105 = add nuw nsw i64 %104, 1
  %106 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSnySiG_Tgq5"(i1 false, i64 %105, i1 true, %Ts28__ContiguousArrayStorageBaseC* %27)
  br label %107

107:                                              ; preds = %100, %103
  %108 = phi %Ts28__ContiguousArrayStorageBaseC* [ %106, %103 ], [ %27, %100 ]
  %._storage14.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %108, i64 0, i32 1, i32 0, i32 0, i32 0
  %109 = load i64, i64* %._storage14.count._value, align 8, !range !6
  %._storage14._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %108, i64 0, i32 1, i32 0, i32 1, i32 0
  %110 = load i64, i64* %._storage14._capacityAndFlags._value, align 8
  %111 = lshr i64 %110, 1
  %112 = add nuw nsw i64 %109, 1
  %.not139 = icmp ugt i64 %111, %109
  br i1 %.not139, label %116, label %113, !prof !7

113:                                              ; preds = %107
  %114 = icmp ugt i64 %110, 1
  %115 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSnySiG_Tgq5"(i1 %114, i64 %112, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %108)
  br label %116

116:                                              ; preds = %107, %113
  %117 = phi %Ts28__ContiguousArrayStorageBaseC* [ %115, %113 ], [ %108, %107 ]
  %._storage15.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %117, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %112, i64* %._storage15.count._value, align 8
  %118 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %117, i64 1
  %tailaddr16 = bitcast %Ts28__ContiguousArrayStorageBaseC* %118 to %TSnySiG*
  %.lowerBound17._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %109, i32 0, i32 0
  store i64 %25, i64* %.lowerBound17._value, align 8
  %.upperBound18._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %109, i32 1, i32 0
  store i64 %98, i64* %.upperBound18._value, align 8
  %.not146 = icmp eq i64 %109, 0
  br i1 %.not146, label %.loopexit, label %thread-pre-split

thread-pre-split:                                 ; preds = %116
  %.lowerBound47._value.phi.trans.insert = bitcast %Ts28__ContiguousArrayStorageBaseC* %118 to i64*
  %119 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %117, i64 1, i32 0, i32 1
  %120 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %117, i64 1, i32 0, i32 1
  %.lowerBound40._value.phi.trans.insert = bitcast %Ts28__ContiguousArrayStorageBaseC* %118 to i64*
  br label %121

121:                                              ; preds = %thread-pre-split, %270
  %122 = phi i64 [ %112, %thread-pre-split ], [ %271, %270 ]
  %123 = add nsw i64 %122, -1
  %124 = icmp ult i64 %122, 4
  br i1 %124, label %152, label %125

125:                                              ; preds = %121
  %126 = add nsw i64 %122, -4
  %.lowerBound22._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %126, i32 0, i32 0
  %127 = load i64, i64* %.lowerBound22._value, align 8
  %.upperBound23._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %126, i32 1, i32 0
  %128 = load i64, i64* %.upperBound23._value, align 8
  %129 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %128, i64 %127)
  %130 = extractvalue { i64, i1 } %129, 0
  %131 = extractvalue { i64, i1 } %129, 1
  br i1 %131, label %323, label %132, !prof !8

132:                                              ; preds = %125
  %133 = add nsw i64 %122, -3
  %.lowerBound24._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %133, i32 0, i32 0
  %134 = load i64, i64* %.lowerBound24._value, align 8
  %.upperBound25._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %133, i32 1, i32 0
  %135 = load i64, i64* %.upperBound25._value, align 8
  %136 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %135, i64 %134)
  %137 = extractvalue { i64, i1 } %136, 0
  %138 = extractvalue { i64, i1 } %136, 1
  br i1 %138, label %324, label %139, !prof !8

139:                                              ; preds = %132
  %140 = add nsw i64 %122, -2
  %.lowerBound26._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %140, i32 0, i32 0
  %141 = load i64, i64* %.lowerBound26._value, align 8
  %.upperBound27._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %140, i32 1, i32 0
  %142 = load i64, i64* %.upperBound27._value, align 8
  %143 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %142, i64 %141)
  %144 = extractvalue { i64, i1 } %143, 1
  br i1 %144, label %325, label %145, !prof !8

145:                                              ; preds = %139
  %146 = extractvalue { i64, i1 } %143, 0
  %147 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %137, i64 %146)
  %148 = extractvalue { i64, i1 } %147, 1
  br i1 %148, label %326, label %149, !prof !8

149:                                              ; preds = %145
  %150 = extractvalue { i64, i1 } %147, 0
  %151 = icmp slt i64 %150, %130
  br i1 %151, label %.thread, label %280

152:                                              ; preds = %121
  %.not147 = icmp eq i64 %122, 3
  br i1 %.not147, label %..thread_crit_edge, label %._crit_edge

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

.thread:                                          ; preds = %..thread_crit_edge, %149
  %.pre-phi240 = phi i64 [ %.pre239, %..thread_crit_edge ], [ %137, %149 ]
  %.pre-phi238 = phi { i64, i1 } [ %.pre237, %..thread_crit_edge ], [ %136, %149 ]
  %153 = extractvalue { i64, i1 } %.pre-phi238, 1
  br i1 %153, label %333, label %154, !prof !8

154:                                              ; preds = %.thread
  %155 = add nsw i64 %122, -2
  %.lowerBound42._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %155, i32 0, i32 0
  %156 = load i64, i64* %.lowerBound42._value, align 8
  %.upperBound43._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %155, i32 1, i32 0
  %157 = load i64, i64* %.upperBound43._value, align 8
  %158 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %157, i64 %156)
  %159 = extractvalue { i64, i1 } %158, 0
  %160 = extractvalue { i64, i1 } %158, 1
  br i1 %160, label %334, label %161, !prof !8

161:                                              ; preds = %154
  %.lowerBound44._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %123, i32 0, i32 0
  %162 = load i64, i64* %.lowerBound44._value, align 8
  %.upperBound45._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %123, i32 1, i32 0
  %163 = load i64, i64* %.upperBound45._value, align 8
  %164 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %163, i64 %162)
  %165 = extractvalue { i64, i1 } %164, 0
  %166 = extractvalue { i64, i1 } %164, 1
  br i1 %166, label %335, label %167, !prof !8

167:                                              ; preds = %161
  %168 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %159, i64 %165)
  %169 = extractvalue { i64, i1 } %168, 1
  br i1 %169, label %336, label %170, !prof !8

170:                                              ; preds = %167
  %171 = extractvalue { i64, i1 } %168, 0
  %172 = icmp slt i64 %171, %.pre-phi240
  br i1 %172, label %.thread145, label %278

._crit_edge:                                      ; preds = %152
  %.pre234 = load i64, i64* %.lowerBound47._value.phi.trans.insert, align 8
  %.pre235 = load i64, i64* %119, align 8
  %.pre241 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %.pre235, i64 %.pre234)
  %.pre243 = extractvalue { i64, i1 } %.pre241, 0
  br label %.thread145

.thread145:                                       ; preds = %170, %._crit_edge
  %.pre-phi244 = phi i64 [ %.pre243, %._crit_edge ], [ %159, %170 ]
  %.pre-phi242 = phi { i64, i1 } [ %.pre241, %._crit_edge ], [ %158, %170 ]
  %173 = extractvalue { i64, i1 } %.pre-phi242, 1
  br i1 %173, label %337, label %174, !prof !8

174:                                              ; preds = %.thread145
  %.lowerBound49._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %123, i32 0, i32 0
  %175 = load i64, i64* %.lowerBound49._value, align 8
  %.upperBound50._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %123, i32 1, i32 0
  %176 = load i64, i64* %.upperBound50._value, align 8
  %177 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %176, i64 %175)
  %178 = extractvalue { i64, i1 } %177, 1
  br i1 %178, label %338, label %179, !prof !8

179:                                              ; preds = %174
  %180 = extractvalue { i64, i1 } %177, 0
  %181 = icmp slt i64 %180, %.pre-phi244
  br i1 %181, label %.loopexit, label %244

.loopexit:                                        ; preds = %270, %179, %116
  %182 = phi i64 [ 1, %116 ], [ %271, %270 ], [ %122, %179 ]
  %183 = icmp slt i64 %98, %81
  br i1 %183, label %24, label %.loopexit154

.loopexit154:                                     ; preds = %.loopexit, %..loopexit154_crit_edge
  %184 = phi i8* [ bitcast (%struct.HeapMetadata** getelementptr inbounds (%struct._SwiftEmptyArrayStorage, %struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage, i64 1, i32 0, i32 0) to i8*), %..loopexit154_crit_edge ], [ %21, %.loopexit ]
  %185 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %..loopexit154_crit_edge ], [ %22, %.loopexit ]
  %186 = phi i64 [ %.pre236, %..loopexit154_crit_edge ], [ %182, %.loopexit ]
  %187 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %..loopexit154_crit_edge ], [ %117, %.loopexit ]
  %188 = icmp ugt i64 %186, 1
  br i1 %188, label %189, label %.loopexit288

189:                                              ; preds = %.loopexit154
  %190 = bitcast %TSrySi_SitG* %0 to i64*
  %191 = load i64, i64* %190, align 8
  %192 = icmp eq i64 %191, 0
  %193 = inttoptr i64 %191 to <{ %TSi, %TSi }>*
  br label %194

194:                                              ; preds = %227, %189
  %195 = phi i64 [ %186, %189 ], [ %228, %227 ]
  %196 = phi %Ts28__ContiguousArrayStorageBaseC* [ %187, %189 ], [ %222, %227 ]
  %197 = add nsw i64 %195, -1
  %198 = add nsw i64 %195, -2
  %199 = icmp ult i64 %195, 2
  br i1 %199, label %317, label %200, !prof !8

200:                                              ; preds = %194
  %201 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %196, i64 1
  %tailaddr3 = bitcast %Ts28__ContiguousArrayStorageBaseC* %201 to %TSnySiG*
  %.lowerBound._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr3, i64 %198, i32 0, i32 0
  %202 = load i64, i64* %.lowerBound._value, align 8
  %.upperBound._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr3, i64 %197, i32 1, i32 0
  %203 = load i64, i64* %.upperBound._value, align 8
  br i1 %192, label %318, label %204

204:                                              ; preds = %200
  %.lowerBound4._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr3, i64 %197, i32 0, i32 0
  %205 = load i64, i64* %.lowerBound4._value, align 8
  %206 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %193, i64 %202
  %207 = bitcast <{ %TSi, %TSi }>* %206 to i8*
  %208 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %193, i64 %205
  %209 = bitcast <{ %TSi, %TSi }>* %208 to i8*
  %210 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %193, i64 %203
  %211 = bitcast <{ %TSi, %TSi }>* %210 to i8*
  %212 = tail call swiftcc i1 @"$ss6_merge3low3mid4high6buffer2bySbSpyxG_A3GSbx_xtKXEtKlFSi_Sit_Tg5032$sS4iSbs5Error_pIgyyyydzo_Si_Sitl1_m23SbsAA_pIegnndzo_TR016$sh66SbIegnnnnd_cD67Iegyyyyd_TR43$ss1loiySbx_q_t_x_q_ttSLRzSLR_r0_lFSi_L23TG5Tf3nnnnpf_nTf3nnpf_nTf1nnnnc_n"(i8* nonnull %207, i8* nonnull %209, i8* nonnull %211, i8* nonnull %184, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %2)
  %213 = load %swift.error*, %swift.error** %2, align 8
  %.not136 = icmp eq %swift.error* %213, null
  br i1 %.not136, label %214, label %.loopexit287

214:                                              ; preds = %204
  %215 = icmp slt i64 %203, %202
  br i1 %215, label %319, label %216, !prof !8

216:                                              ; preds = %214
  %217 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %196, i64 0, i32 0
  %218 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %217) #26
  br i1 %218, label %221, label %219

219:                                              ; preds = %216
  %220 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSnySiG_Tgq5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %196)
  br label %221

221:                                              ; preds = %216, %219
  %222 = phi %Ts28__ContiguousArrayStorageBaseC* [ %220, %219 ], [ %196, %216 ]
  %._storage6.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %222, i64 0, i32 1, i32 0, i32 0, i32 0
  %223 = load i64, i64* %._storage6.count._value, align 8, !range !6
  %.not137 = icmp ult i64 %198, %223
  br i1 %.not137, label %224, label %320, !prof !7

224:                                              ; preds = %221
  %225 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %222, i64 1
  %tailaddr7 = bitcast %Ts28__ContiguousArrayStorageBaseC* %225 to %TSnySiG*
  %.lowerBound8._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr7, i64 %198, i32 0, i32 0
  store i64 %202, i64* %.lowerBound8._value, align 8
  %.upperBound9._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr7, i64 %198, i32 1, i32 0
  store i64 %203, i64* %.upperBound9._value, align 8
  %226 = load i64, i64* %._storage6.count._value, align 8, !range !6
  %.not138 = icmp ugt i64 %195, %226
  br i1 %.not138, label %321, label %227, !prof !8

227:                                              ; preds = %224
  %228 = add nsw i64 %226, -1
  %229 = sub nsw i64 %228, %197
  %230 = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr7, i64 %195
  %231 = bitcast %TSnySiG* %230 to i8*
  %232 = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr7, i64 %197
  %233 = bitcast %TSnySiG* %232 to i8*
  %234 = shl nuw i64 %229, 4
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* nonnull align 8 %233, i8* nonnull align 8 %231, i64 %234, i1 false)
  store i64 %228, i64* %._storage6.count._value, align 8
  %235 = icmp ugt i64 %226, 2
  br i1 %235, label %194, label %.loopexit288

.loopexit288:                                     ; preds = %227, %.loopexit154
  %.lcssa261.sink = phi %Ts28__ContiguousArrayStorageBaseC* [ %187, %.loopexit154 ], [ %222, %227 ]
  %236 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %.lcssa261.sink, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %236) #6
  %._storage1.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %185, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 0, i64* %._storage1.count._value, align 8
  %237 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %185, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %237) #6
  br label %common.ret

common.ret:                                       ; preds = %313, %13, %.loopexit288, %242
  ret void

.loopexit287:                                     ; preds = %253, %204
  %.lcssa280.sink = phi %Ts28__ContiguousArrayStorageBaseC* [ %196, %204 ], [ %117, %253 ]
  %238 = phi %Ts28__ContiguousArrayStorageBaseC* [ %185, %204 ], [ %22, %253 ]
  %239 = phi %swift.error* [ %213, %204 ], [ %263, %253 ]
  %240 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %.lcssa280.sink, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %240) #6
  %._storage5.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %238, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 0, i64* %._storage5.count._value, align 8
  %241 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %238, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %241) #6
  br label %242

242:                                              ; preds = %313, %.loopexit287
  %243 = phi %swift.error* [ %239, %.loopexit287 ], [ %314, %313 ]
  store %swift.error* %243, %swift.error** %2, align 8
  br label %common.ret

244:                                              ; preds = %285, %278, %179
  %245 = phi i64 [ %123, %179 ], [ %.71, %278 ], [ %.72, %285 ]
  %246 = add nsw i64 %245, -1
  %.not140 = icmp ult i64 %246, %122
  br i1 %.not140, label %247, label %328, !prof !7

247:                                              ; preds = %244
  %.lowerBound31._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %246, i32 0, i32 0
  %248 = load i64, i64* %.lowerBound31._value, align 8
  %249 = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %245
  %.upperBound33._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %245, i32 1, i32 0
  %250 = load i64, i64* %.upperBound33._value, align 8
  %251 = load i64, i64* %23, align 8
  %252 = icmp eq i64 %251, 0
  br i1 %252, label %329, label %253

253:                                              ; preds = %247
  %.lowerBound32._value = getelementptr inbounds %TSnySiG, %TSnySiG* %249, i64 0, i32 0, i32 0
  %254 = load i64, i64* %.lowerBound32._value, align 8
  %255 = inttoptr i64 %251 to <{ %TSi, %TSi }>*
  %256 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %255, i64 %248
  %257 = bitcast <{ %TSi, %TSi }>* %256 to i8*
  %258 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %255, i64 %254
  %259 = bitcast <{ %TSi, %TSi }>* %258 to i8*
  %260 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %255, i64 %250
  %261 = bitcast <{ %TSi, %TSi }>* %260 to i8*
  %262 = tail call swiftcc i1 @"$ss6_merge3low3mid4high6buffer2bySbSpyxG_A3GSbx_xtKXEtKlFSi_Sit_Tg5032$sS4iSbs5Error_pIgyyyydzo_Si_Sitl1_m23SbsAA_pIegnndzo_TR016$sh66SbIegnnnnd_cD67Iegyyyyd_TR43$ss1loiySbx_q_t_x_q_ttSLRzSLR_r0_lFSi_L23TG5Tf3nnnnpf_nTf3nnpf_nTf1nnnnc_n"(i8* nonnull %257, i8* nonnull %259, i8* nonnull %261, i8* nonnull %21, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %2)
  %263 = load %swift.error*, %swift.error** %2, align 8
  %.not142 = icmp eq %swift.error* %263, null
  br i1 %.not142, label %264, label %.loopexit287

264:                                              ; preds = %253
  %265 = icmp slt i64 %250, %248
  br i1 %265, label %330, label %266, !prof !8

266:                                              ; preds = %264
  %267 = load i64, i64* %._storage15.count._value, align 8, !range !6
  %.not143 = icmp ult i64 %246, %267
  br i1 %.not143, label %268, label %331, !prof !7

268:                                              ; preds = %266
  store i64 %248, i64* %.lowerBound31._value, align 8
  %.upperBound37._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %246, i32 1, i32 0
  store i64 %250, i64* %.upperBound37._value, align 8
  %269 = load i64, i64* %._storage15.count._value, align 8, !range !6
  %.not144 = icmp ult i64 %245, %269
  br i1 %.not144, label %270, label %332, !prof !7

270:                                              ; preds = %268
  %271 = add nsw i64 %269, -1
  %272 = sub nsw i64 %271, %245
  %273 = getelementptr inbounds %TSnySiG, %TSnySiG* %249, i64 1
  %274 = bitcast %TSnySiG* %273 to i8*
  %275 = bitcast %TSnySiG* %249 to i8*
  %276 = shl nuw i64 %272, 4
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* nonnull align 8 %275, i8* nonnull align 8 %274, i64 %276, i1 false)
  store i64 %271, i64* %._storage15.count._value, align 8
  %277 = icmp ugt i64 %269, 2
  br i1 %277, label %121, label %.loopexit

278:                                              ; preds = %170
  %279 = icmp slt i64 %.pre-phi240, %165
  %.71 = select i1 %279, i64 %155, i64 %123
  br label %244

280:                                              ; preds = %149
  %.lowerBound28._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %123, i32 0, i32 0
  %281 = load i64, i64* %.lowerBound28._value, align 8
  %.upperBound29._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %123, i32 1, i32 0
  %282 = load i64, i64* %.upperBound29._value, align 8
  %283 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %282, i64 %281)
  %284 = extractvalue { i64, i1 } %283, 1
  br i1 %284, label %327, label %285, !prof !8

285:                                              ; preds = %280
  %286 = extractvalue { i64, i1 } %283, 0
  %287 = icmp slt i64 %137, %286
  %.72 = select i1 %287, i64 %140, i64 %123
  br label %244

.preheader:                                       ; preds = %96, %306
  %288 = phi i64 [ %307, %306 ], [ %80, %96 ]
  br label %289

289:                                              ; preds = %309, %.preheader
  %290 = phi i64 [ %288, %.preheader ], [ %291, %309 ]
  %291 = add i64 %290, -1
  %292 = load i64, i64* %23, align 8
  %293 = inttoptr i64 %292 to <{ %TSi, %TSi }>*
  %294 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %293, i64 %290
  %.elt._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %294, i64 0, i32 0, i32 0
  %295 = load i64, i64* %.elt._value, align 8
  %.elt51._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %293, i64 %290, i32 1, i32 0
  %296 = load i64, i64* %.elt51._value, align 8
  %297 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %293, i64 %291
  %.elt52._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %297, i64 0, i32 0, i32 0
  %298 = load i64, i64* %.elt52._value, align 8
  %.elt53._value = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %293, i64 %291, i32 1, i32 0
  %299 = load i64, i64* %.elt53._value, align 8
  %300 = icmp eq i64 %295, %298
  %301 = icmp slt i64 %295, %298
  %302 = icmp slt i64 %296, %299
  %303 = select i1 %300, i1 %302, i1 %301
  br i1 %303, label %304, label %306

304:                                              ; preds = %289
  %305 = icmp eq i64 %292, 0
  br i1 %305, label %342, label %309

306:                                              ; preds = %309, %289
  %307 = add i64 %288, 1
  %308 = icmp eq i64 %307, %94
  br i1 %308, label %.loopexit148, label %.preheader

309:                                              ; preds = %304
  %310 = bitcast <{ %TSi, %TSi }>* %297 to i8*
  %311 = bitcast <{ %TSi, %TSi }>* %294 to i8*
  tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %311, i8* noundef nonnull align 8 dereferenceable(16) %310, i64 16, i1 false)
  store i64 %295, i64* %.elt52._value, align 8
  store i64 %296, i64* %.elt53._value, align 8
  %312 = icmp eq i64 %291, %25
  br i1 %312, label %306, label %289

313:                                              ; preds = %13
  tail call swiftcc void @"$sSMsSKRzrlE14_insertionSort6within9sortedEnd2byySny5IndexSlQzG_AFSb7ElementSTQz_AItKXEtKFSrySi_SitG_Tg5032$sS4iSbs5Error_pIgyyyydzo_Si_Sitn1_o23SbsAA_pIegnndzo_TR016$sj66SbIegnnnnd_cD67Iegyyyyd_TR43$ss1loiySbx_q_t_x_q_ttSLRzSLR_r0_lFSi_N23TG5Tf3nnnnpf_nTf3nnpf_nTf1nncn_n"(i64 0, i64 %3, i64 1, %TSrySi_SitG* nocapture nonnull dereferenceable(16) %0, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %2)
  %314 = load %swift.error*, %swift.error** %2, align 8
  %.not = icmp eq %swift.error* %314, null
  br i1 %.not, label %common.ret, label %242

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

25:                                               ; preds = %10
  %26 = icmp eq i64 %13, 0
  br i1 %26, label %34, label %30

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

30:                                               ; preds = %25
  %31 = bitcast <{ %TSi, %TSi }>* %18 to i8*
  %32 = bitcast <{ %TSi, %TSi }>* %15 to i8*
  tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %32, i8* noundef nonnull align 8 dereferenceable(16) %31, i64 16, i1 false)
  store i64 %16, i64* %.elt2._value, align 8
  store i64 %17, i64* %.elt3._value, align 8
  %33 = icmp eq i64 %12, %0
  br i1 %33, label %27, label %10

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

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

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

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

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

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

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

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

.preheader:                                       ; preds = %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit", %57
  %38 = phi i8* [ %58, %57 ], [ %3, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit" ]
  %39 = phi i8* [ %60, %57 ], [ %0, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit" ]
  %40 = phi i8* [ %59, %57 ], [ %1, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit" ]
  %.elt4._value = bitcast i8* %40 to i64*
  %41 = load i64, i64* %.elt4._value, align 8
  %.elt5 = getelementptr inbounds i8, i8* %40, i64 8
  %.elt5._value = bitcast i8* %.elt5 to i64*
  %42 = load i64, i64* %.elt5._value, align 8
  %.elt6._value = bitcast i8* %38 to i64*
  %43 = load i64, i64* %.elt6._value, align 8
  %.elt7 = getelementptr inbounds i8, i8* %38, i64 8
  %.elt7._value = bitcast i8* %.elt7 to i64*
  %44 = load i64, i64* %.elt7._value, align 8
  %45 = icmp eq i64 %41, %43
  %46 = icmp slt i64 %41, %43
  %47 = icmp slt i64 %42, %44
  %48 = select i1 %45, i1 %47, i1 %46
  br i1 %48, label %49, label %53

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

53:                                               ; preds = %.preheader
  %54 = getelementptr inbounds i8, i8* %38, i64 16
  %55 = icmp ult i8* %39, %54
  %56 = icmp eq i8* %39, %38
  %or.cond63 = select i1 %56, i1 %55, i1 false
  br i1 %or.cond63, label %57, label %.sink.split

.sink.split:                                      ; preds = %49, %53
  %.sink = phi i8* [ %38, %53 ], [ %40, %49 ]
  %.ph = phi i8* [ %54, %53 ], [ %38, %49 ]
  %.ph57 = phi i8* [ %40, %53 ], [ %50, %49 ]
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %39, i8* noundef nonnull align 8 dereferenceable(16) %.sink, i64 16, i1 false)
  br label %57

57:                                               ; preds = %53, %49, %.sink.split
  %58 = phi i8* [ %.ph, %.sink.split ], [ %38, %49 ], [ %54, %53 ]
  %59 = phi i8* [ %.ph57, %.sink.split ], [ %50, %49 ], [ %40, %53 ]
  %60 = getelementptr inbounds i8, i8* %39, i64 16
  %61 = icmp ult i8* %58, %23
  %62 = icmp ult i8* %59, %2
  %or.cond11 = select i1 %61, i1 %62, i1 false
  br i1 %or.cond11, label %.preheader, label %.loopexit.loopexit

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

.loopexit:                                        ; preds = %95, %.loopexit.loopexit, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit40", %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit"
  %.pre-phi = phi <{ %TSi, %TSi }>* [ %.pre, %.loopexit.loopexit ], [ %33, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit40" ], [ %21, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit" ], [ %33, %95 ]
  %63 = phi i8* [ %23, %.loopexit.loopexit ], [ %35, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit40" ], [ %23, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit" ], [ %96, %95 ]
  %64 = phi i8* [ %58, %.loopexit.loopexit ], [ %3, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit40" ], [ %3, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit" ], [ %3, %95 ]
  %65 = phi i8* [ %60, %.loopexit.loopexit ], [ %1, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit40" ], [ %0, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit" ], [ %97, %95 ]
  %66 = ptrtoint i8* %63 to i64
  %67 = ptrtoint i8* %64 to i64
  %68 = sub i64 %66, %67
  %69 = sdiv i64 %68, 16
  %70 = getelementptr inbounds <{ %TSi, %TSi }>, <{ %TSi, %TSi }>* %.pre-phi, i64 %69
  %71 = bitcast <{ %TSi, %TSi }>* %70 to i8*
  %72 = icmp ult i8* %65, %71
  %73 = icmp eq i8* %65, %64
  %or.cond5.i41 = select i1 %73, i1 %72, i1 false
  br i1 %or.cond5.i41, label %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit43", label %.sink.split.i42

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

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

.preheader44:                                     ; preds = %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit40", %95
  %75 = phi i8* [ %88, %95 ], [ %2, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit40" ]
  %76 = phi i8* [ %96, %95 ], [ %35, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit40" ]
  %77 = phi i8* [ %97, %95 ], [ %1, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Sit_Tg5.exit40" ]
  %78 = getelementptr inbounds i8, i8* %76, i64 -16
  %.elt._value = bitcast i8* %78 to i64*
  %79 = load i64, i64* %.elt._value, align 8
  %.elt1 = getelementptr inbounds i8, i8* %76, i64 -8
  %.elt1._value = bitcast i8* %.elt1 to i64*
  %80 = load i64, i64* %.elt1._value, align 8
  %81 = getelementptr inbounds i8, i8* %77, i64 -16
  %.elt2._value = bitcast i8* %81 to i64*
  %82 = load i64, i64* %.elt2._value, align 8
  %.elt3 = getelementptr inbounds i8, i8* %77, i64 -8
  %.elt3._value = bitcast i8* %.elt3 to i64*
  %83 = load i64, i64* %.elt3._value, align 8
  %84 = icmp eq i64 %79, %82
  %85 = icmp slt i64 %79, %82
  %86 = icmp slt i64 %80, %83
  %87 = select i1 %84, i1 %86, i1 %85
  %88 = getelementptr inbounds i8, i8* %75, i64 -16
  br i1 %87, label %89, label %92

89:                                               ; preds = %.preheader44
  %90 = icmp ult i8* %88, %77
  %91 = icmp eq i8* %75, %77
  %or.cond64 = select i1 %91, i1 %90, i1 false
  br i1 %or.cond64, label %95, label %.sink.split58

92:                                               ; preds = %.preheader44
  %93 = icmp ult i8* %88, %76
  %94 = icmp eq i8* %75, %76
  %or.cond65 = select i1 %94, i1 %93, i1 false
  br i1 %or.cond65, label %95, label %.sink.split58

.sink.split58:                                    ; preds = %89, %92
  %.sink61 = phi i8* [ %78, %92 ], [ %81, %89 ]
  %.ph59 = phi i8* [ %78, %92 ], [ %76, %89 ]
  %.ph60 = phi i8* [ %77, %92 ], [ %81, %89 ]
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(16) %88, i8* noundef nonnull align 8 dereferenceable(16) %.sink61, i64 16, i1 false)
  br label %95

95:                                               ; preds = %92, %89, %.sink.split58
  %96 = phi i8* [ %.ph59, %.sink.split58 ], [ %76, %89 ], [ %78, %92 ]
  %97 = phi i8* [ %.ph60, %.sink.split58 ], [ %81, %89 ], [ %77, %92 ]
  %98 = icmp ugt i8* %96, %3
  %99 = icmp ugt i8* %97, %0
  %or.cond19 = select i1 %98, i1 %99, i1 false
  br i1 %or.cond19, label %.preheader44, label %.loopexit
}

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

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

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

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

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

19:                                               ; preds = %14
  %20 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCySnySiGGMD") #24
  %21 = shl i64 %17, 4
  %22 = add i64 %21, 32
  %23 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %20, i64 %22, i64 7) #6
  %24 = bitcast %swift.refcounted* %23 to %Ts28__ContiguousArrayStorageBaseC*
  %25 = bitcast %swift.refcounted* %23 to i8*
  %call.i = tail call i64 @malloc_usable_size(i8* noundef %25) #28
  %gepdiff = add nsw i64 %call.i, -32
  %26 = sdiv i64 %gepdiff, 16
  %27 = shl nsw i64 %26, 1
  %28 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1
  %._storage7.count._value = bitcast %swift.refcounted* %28 to i64*
  store i64 %16, i64* %._storage7.count._value, align 8
  %._storage7._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %23, i64 1, i32 1
  store i64 %27, i64* %._storage7._capacityAndFlags, align 8
  br label %29

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

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

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

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

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

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

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

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

; Function Attrs: minsize optsize
declare swiftcc void @"$sSa21_makeMutableAndUniqueyyF"(%swift.type*, %TSa* nocapture swiftself dereferenceable(8)) local_unnamed_addr #0

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

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

; Function Attrs: minsize noinline optsize
define linkonce_odr hidden swiftcc { i64, i8 } @"$ss13_parseInteger5ascii5radixq_Sgx_SitSyRzs010FixedWidthB0R_r0_lFSs_SiTg5"(i64 %0, i64 %1, i64 %2, %swift.bridge* %3, i64 %4) local_unnamed_addr #4 {
entry:
  %5 = alloca %TSs, align 8
  %6 = alloca <{ %Ts6UInt64V, %Ts6UInt64V }>, align 8
  %swifterror = alloca swifterror %swift.error*, align 8
  store %swift.error* null, %swift.error** %swifterror, align 8
  %7 = bitcast %TSs* %5 to i8*
  call void @llvm.lifetime.start.p0i8(i64 32, i8* nonnull %7)
  %._slice._startIndex._rawBits._value = getelementptr inbounds %TSs, %TSs* %5, i64 0, i32 0, i32 0, i32 0, i32 0
  store i64 %0, i64* %._slice._startIndex._rawBits._value, align 8
  %._slice._endIndex._rawBits._value = getelementptr inbounds %TSs, %TSs* %5, i64 0, i32 0, i32 1, i32 0, i32 0
  store i64 %1, i64* %._slice._endIndex._rawBits._value, align 8
  %._slice._base._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSs, %TSs* %5, i64 0, i32 0, i32 2, i32 0, i32 0, i32 0, i32 0
  store i64 %2, i64* %._slice._base._guts._object._countAndFlagsBits._value, align 8
  %._slice._base._guts._object._object = getelementptr inbounds %TSs, %TSs* %5, i64 0, i32 0, i32 2, i32 0, i32 0, i32 1
  store %swift.bridge* %3, %swift.bridge** %._slice._base._guts._object._object, align 8
  %8 = bitcast %TSs* %5 to %swift.opaque*
  %9 = tail call i8** @"$sS2sSTsWl"() #25
  %10 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %3) #6
  %11 = call swiftcc { i64, %swift.bridge* } @"$sSSySSxcs25LosslessStringConvertibleRzSTRzSJ7ElementSTRtzlufC"(%swift.opaque* noalias nocapture nonnull %8, %swift.type* nonnull @"$sSsN", i8** nonnull @"$sSss25LosslessStringConvertiblesWP", i8** %9)
  %12 = extractvalue { i64, %swift.bridge* } %11, 0
  %13 = extractvalue { i64, %swift.bridge* } %11, 1
  call void @llvm.lifetime.end.p0i8(i64 32, i8* nonnull %7)
  %14 = ptrtoint %swift.bridge* %13 to i64
  %15 = and i64 %14, 1152921504606846976
  %16 = icmp eq i64 %15, 0
  br i1 %16, label %21, label %17, !prof !7

17:                                               ; preds = %entry
  %18 = tail call swiftcc { i64, %swift.bridge* } @"$sSS8_copyingyS2SFZ"(i64 %12, %swift.bridge* %13)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %13) #6
  %19 = extractvalue { i64, %swift.bridge* } %18, 0
  %20 = extractvalue { i64, %swift.bridge* } %18, 1
  %.pre = ptrtoint %swift.bridge* %20 to i64
  br label %21

21:                                               ; preds = %entry, %17
  %.pre-phi = phi i64 [ %14, %entry ], [ %.pre, %17 ]
  %22 = phi i64 [ %12, %entry ], [ %19, %17 ]
  %23 = phi %swift.bridge* [ %13, %entry ], [ %20, %17 ]
  %24 = and i64 %.pre-phi, 2305843009213693952
  %25 = icmp eq i64 %24, 0
  br i1 %25, label %26, label %29

26:                                               ; preds = %21
  %27 = and i64 %22, 1152921504606846976
  %28 = icmp eq i64 %27, 0
  br i1 %28, label %37, label %41, !prof !8

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

37:                                               ; preds = %26
  %38 = tail call swiftcc { i64, i64 } @"$ss13_StringObjectV10sharedUTF8SRys5UInt8VGvg"(i64 %22, %swift.bridge* %23)
  %39 = extractvalue { i64, i64 } %38, 0
  %40 = extractvalue { i64, i64 } %38, 1
  br label %45

41:                                               ; preds = %26
  %42 = and i64 %.pre-phi, 1152921504606846975
  %43 = add nuw nsw i64 %42, 32
  %44 = and i64 %22, 281474976710655
  br label %45

45:                                               ; preds = %37, %41
  %46 = phi i64 [ %43, %41 ], [ %39, %37 ]
  %47 = phi i64 [ %44, %41 ], [ %40, %37 ]
  %48 = call swiftcc { i64, i8 } @"$ss13_parseInteger5ascii5radixq_Sgx_SitSyRzs010FixedWidthB0R_r0_lFADSRys5UInt8VGXEfU_Ss_SiTg5"(i64 %46, i64 %47, i64 %4, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  %49 = load %swift.error*, %swift.error** %swifterror, align 8
  %.not7 = icmp eq %swift.error* %49, null
  tail call void @llvm.assume(i1 %.not7)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %23) #6
  br label %50

50:                                               ; preds = %45, %29
  %.pn = phi { i64, i8 } [ %35, %29 ], [ %48, %45 ]
  %.in.in = extractvalue { i64, i8 } %.pn, 1
  %.in = and i8 %.in.in, 1
  %51 = insertvalue { i64, i8 } %.pn, i8 %.in, 1
  ret { i64, i8 } %51
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc { i64, i8 } @"$ss13_parseInteger5ascii5radixq_Sgx_SitSyRzs010FixedWidthB0R_r0_lFADSRys5UInt8VGXEfU_Ss_SiTg5"(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 %109 [
    i8 45, label %8
    i8 43, label %62
  ]

8:                                                ; preds = %entry
  %9 = icmp slt i64 %1, 1
  br i1 %9, label %149, 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 %.loopexit, 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 %.loopexit, label %26

26:                                               ; preds = %17
  %27 = inttoptr i64 %14 to %Ts5UInt8V*
  %28 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %27, i64 %15, i32 0
  %29 = inttoptr i64 %14 to i8*
  %30 = icmp eq i8* %28, %29
  br i1 %30, label %.loopexit, label %.preheader35

.preheader35:                                     ; preds = %26, %51
  %31 = phi i8* [ %53, %51 ], [ %29, %26 ]
  %32 = phi i64 [ %52, %51 ], [ 0, %26 ]
  %33 = load i8, i8* %31, align 1
  %34 = icmp ugt i8 %33, 47
  %35 = icmp ult i8 %33, %25
  %or.cond = select i1 %34, i1 %35, i1 false
  br i1 %or.cond, label %42, label %36, !prof !11

36:                                               ; preds = %.preheader35
  %37 = icmp ugt i8 %33, 64
  %38 = icmp ult i8 %33, %24
  %or.cond4 = select i1 %37, i1 %38, i1 false
  br i1 %or.cond4, label %42, label %39, !prof !11

39:                                               ; preds = %36
  %40 = icmp ugt i8 %33, 96
  %41 = icmp ult i8 %33, %23
  %or.cond5 = select i1 %40, i1 %41, i1 false
  br i1 %or.cond5, label %42, label %.loopexit, !prof !11

42:                                               ; preds = %39, %.preheader35, %36
  %.sink = phi i8 [ -55, %36 ], [ -48, %.preheader35 ], [ -87, %39 ]
  %43 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %32, i64 %2)
  %44 = extractvalue { i64, i1 } %43, 1
  br i1 %44, label %.loopexit, label %45

45:                                               ; preds = %42
  %46 = add i8 %33, %.sink
  %47 = extractvalue { i64, i1 } %43, 0
  %48 = zext i8 %46 to i64
  %49 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %47, i64 %48)
  %50 = extractvalue { i64, i1 } %49, 1
  br i1 %50, label %.loopexit, label %51, !prof !8

51:                                               ; preds = %45
  %52 = extractvalue { i64, i1 } %49, 0
  %53 = getelementptr inbounds i8, i8* %31, i64 1
  %54 = icmp eq i8* %53, %28
  br i1 %54, label %.loopexit.loopexit77.split.loop.exit, label %.preheader35

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

.loopexit.loopexit77.split.loop.exit:             ; preds = %51
  %56 = extractvalue { i64, i1 } %49, 0
  br label %.loopexit

.loopexit.loopexit80.split.loop.exit:             ; preds = %105
  %57 = extractvalue { i64, i1 } %103, 0
  br label %.loopexit

.loopexit:                                        ; preds = %99, %96, %93, %45, %42, %39, %138, %135, %132, %.loopexit.loopexit80.split.loop.exit, %.loopexit.loopexit77.split.loop.exit, %.loopexit.loopexit.split.loop.exit, %111, %121, %109, %71, %80, %64, %17, %26, %10
  %58 = phi i64 [ 0, %10 ], [ 0, %17 ], [ 0, %26 ], [ 0, %64 ], [ 0, %71 ], [ 0, %80 ], [ 0, %109 ], [ 0, %111 ], [ 0, %121 ], [ %55, %.loopexit.loopexit.split.loop.exit ], [ %56, %.loopexit.loopexit77.split.loop.exit ], [ %57, %.loopexit.loopexit80.split.loop.exit ], [ 0, %132 ], [ 0, %135 ], [ 0, %138 ], [ 0, %39 ], [ 0, %42 ], [ 0, %45 ], [ 0, %93 ], [ 0, %96 ], [ 0, %99 ]
  %59 = phi i8 [ 1, %10 ], [ 0, %17 ], [ 0, %26 ], [ 1, %64 ], [ 0, %71 ], [ 0, %80 ], [ 1, %109 ], [ 0, %111 ], [ 0, %121 ], [ 0, %.loopexit.loopexit.split.loop.exit ], [ 0, %.loopexit.loopexit77.split.loop.exit ], [ 0, %.loopexit.loopexit80.split.loop.exit ], [ 1, %132 ], [ 1, %135 ], [ 1, %138 ], [ 1, %39 ], [ 1, %42 ], [ 1, %45 ], [ 1, %93 ], [ 1, %96 ], [ 1, %99 ]
  %60 = insertvalue { i64, i8 } undef, i64 %58, 0
  %61 = insertvalue { i64, i8 } %60, i8 %59, 1
  ret { i64, i8 } %61

62:                                               ; preds = %entry
  %63 = icmp slt i64 %1, 1
  br i1 %63, label %148, label %64, !prof !8

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

71:                                               ; preds = %64
  %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 %65, label %.loopexit, label %80

80:                                               ; preds = %71
  %81 = inttoptr i64 %68 to %Ts5UInt8V*
  %82 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %81, i64 %69, i32 0
  %83 = inttoptr i64 %68 to i8*
  %84 = icmp eq i8* %82, %83
  br i1 %84, label %.loopexit, label %.preheader39

.preheader39:                                     ; preds = %80, %105
  %85 = phi i8* [ %107, %105 ], [ %83, %80 ]
  %86 = phi i64 [ %106, %105 ], [ 0, %80 ]
  %87 = load i8, i8* %85, align 1
  %88 = icmp ugt i8 %87, 47
  %89 = icmp ult i8 %87, %79
  %or.cond6 = select i1 %88, i1 %89, i1 false
  br i1 %or.cond6, label %96, label %90, !prof !11

90:                                               ; preds = %.preheader39
  %91 = icmp ugt i8 %87, 64
  %92 = icmp ult i8 %87, %78
  %or.cond7 = select i1 %91, i1 %92, i1 false
  br i1 %or.cond7, label %96, label %93, !prof !11

93:                                               ; preds = %90
  %94 = icmp ugt i8 %87, 96
  %95 = icmp ult i8 %87, %77
  %or.cond8 = select i1 %94, i1 %95, i1 false
  br i1 %or.cond8, label %96, label %.loopexit, !prof !11

96:                                               ; preds = %93, %.preheader39, %90
  %.sink112 = phi i8 [ -55, %90 ], [ -48, %.preheader39 ], [ -87, %93 ]
  %97 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %86, i64 %2)
  %98 = extractvalue { i64, i1 } %97, 1
  br i1 %98, label %.loopexit, label %99

99:                                               ; preds = %96
  %100 = add i8 %87, %.sink112
  %101 = extractvalue { i64, i1 } %97, 0
  %102 = zext i8 %100 to i64
  %103 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %101, i64 %102)
  %104 = extractvalue { i64, i1 } %103, 1
  br i1 %104, label %.loopexit, label %105, !prof !8

105:                                              ; preds = %99
  %106 = extractvalue { i64, i1 } %103, 0
  %107 = getelementptr inbounds i8, i8* %85, i64 1
  %108 = icmp eq i8* %107, %82
  br i1 %108, label %.loopexit.loopexit80.split.loop.exit, label %.preheader39

109:                                              ; preds = %entry
  %110 = icmp eq i64 %1, 0
  br i1 %110, label %.loopexit, label %111, !prof !8

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

121:                                              ; preds = %111
  %122 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %6, i64 %1, i32 0
  %123 = icmp eq i8* %122, %5
  br i1 %123, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %121, %144
  %124 = phi i8* [ %146, %144 ], [ %5, %121 ]
  %125 = phi i64 [ %145, %144 ], [ 0, %121 ]
  %126 = load i8, i8* %124, align 1
  %127 = icmp ugt i8 %126, 47
  %128 = icmp ult i8 %126, %119
  %or.cond9 = select i1 %127, i1 %128, i1 false
  br i1 %or.cond9, label %135, label %129, !prof !11

129:                                              ; preds = %.preheader
  %130 = icmp ugt i8 %126, 64
  %131 = icmp ult i8 %126, %118
  %or.cond10 = select i1 %130, i1 %131, i1 false
  br i1 %or.cond10, label %135, label %132, !prof !11

132:                                              ; preds = %129
  %133 = icmp ugt i8 %126, 96
  %134 = icmp ult i8 %126, %117
  %or.cond11 = select i1 %133, i1 %134, i1 false
  br i1 %or.cond11, label %135, label %.loopexit, !prof !11

135:                                              ; preds = %132, %.preheader, %129
  %.sink113 = phi i8 [ -55, %129 ], [ -48, %.preheader ], [ -87, %132 ]
  %136 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %125, i64 %2)
  %137 = extractvalue { i64, i1 } %136, 1
  br i1 %137, label %.loopexit, label %138

138:                                              ; preds = %135
  %139 = add i8 %126, %.sink113
  %140 = extractvalue { i64, i1 } %136, 0
  %141 = zext i8 %139 to i64
  %142 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %140, i64 %141)
  %143 = extractvalue { i64, i1 } %142, 1
  br i1 %143, label %.loopexit, label %144, !prof !8

144:                                              ; preds = %138
  %145 = extractvalue { i64, i1 } %142, 0
  %146 = getelementptr inbounds i8, i8* %124, i64 1
  %147 = icmp eq i8* %146, %122
  br i1 %147, label %.loopexit.loopexit.split.loop.exit, label %.preheader

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc void @"$sSa30withUnsafeMutableBufferPointeryqd__qd__SryxGzKXEKlF6$deferL_yyr__lF"(%TSr.13* nocapture dereferenceable(16) %0, i8* %1, i64 %2, %TSa* nocapture dereferenceable(8) %3, %swift.type* %Element, %swift.type* %R) local_unnamed_addr #0 {
entry:
  %4 = bitcast %TSr.13* %0 to i64*
  %5 = load i64, i64* %4, align 8
  %6 = icmp eq i64 %5, 0
  br i1 %6, label %13, label %7

7:                                                ; preds = %entry
  %8 = inttoptr i64 %5 to i8*
  %.not = icmp eq i8* %8, %1
  br i1 %.not, label %9, label %14, !prof !7

9:                                                ; preds = %7
  %.count._value = getelementptr inbounds %TSr.13, %TSr.13* %0, i64 0, i32 1, i32 0
  %10 = load i64, i64* %.count._value, align 8
  %.not1 = icmp eq i64 %10, %2
  br i1 %.not1, label %11, label %15, !prof !7

11:                                               ; preds = %9
  %12 = tail call swiftcc %swift.metadata_response @"$sSaMa"(i64 0, %swift.type* %Element) #25
  ret void

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

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

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

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

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

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

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

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

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

; Function Attrs: minsize optsize
define internal swiftcc void @"$sSsxs5Error_pIggrzo_SsxsAA_pIegnrzo_lTRTA"(%swift.opaque* noalias nocapture sret(%swift.opaque) %0, %TSs* noalias nocapture readonly dereferenceable(32) %1, %swift.refcounted* nocapture readonly swiftself %2, %swift.error** noalias nocapture swifterror dereferenceable(8) %3) #0 {
entry:
  %4 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %2, i64 1, i32 1
  %5 = bitcast i64* %4 to void (%swift.opaque*, i64, i64, i64, %swift.bridge*, %swift.refcounted*, %swift.error**)**
  %6 = load void (%swift.opaque*, i64, i64, i64, %swift.bridge*, %swift.refcounted*, %swift.error**)*, void (%swift.opaque*, i64, i64, i64, %swift.bridge*, %swift.refcounted*, %swift.error**)** %5, align 8
  %.data = getelementptr inbounds i64, i64* %4, i64 1
  %7 = bitcast i64* %.data to %swift.refcounted**
  %8 = load %swift.refcounted*, %swift.refcounted** %7, align 8
  tail call void @llvm.experimental.noalias.scope.decl(metadata !15)
  %._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 !15, !noalias !18
  %._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 !15, !noalias !18
  %._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 !15, !noalias !18
  %._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 !15, !noalias !18
  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) #27, !noalias !15
  ret void
}

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

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

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

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

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

cacheIsNull:                                      ; preds = %entry
  %2 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledNameAbstract({ i32, i32 }* nonnull @"$sSaySsGMD") #24
  %3 = tail call i8** @swift_getWitnessTable(%swift.protocol_conformance_descriptor* nonnull @"$sSayxGSlsMc", %swift.type* %2, i8*** undef) #24
  store atomic i8** %3, i8*** @"$sSaySsGSayxGSlsWL" release, align 8
  br label %cont

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: minsize nofree noinline nounwind optsize readonly
define internal swiftcc i8** @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGSTAA8IteratorST_StWT"(%swift.type* readonly %"PriorityQueue<T>.Iterator", %swift.type* nocapture readnone %"PriorityQueue<T>", i8** nocapture readnone %"PriorityQueue<T>.Sequence") #13 {
entry:
  %0 = tail call i8** @swift_getWitnessTable(%swift.protocol_conformance_descriptor* nonnull bitcast ({ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i32, i32 }* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVyxGStAAMc" to %swift.protocol_conformance_descriptor*), %swift.type* %"PriorityQueue<T>.Iterator", i8*** undef) #24
  ret i8** %0
}

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

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

; Function Attrs: minsize optsize
define internal swiftcc void @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV3popxSgyFxxXEfU_TA"(%swift.opaque* noalias nocapture sret(%swift.opaque) %0, %swift.opaque* noalias nocapture %1, %swift.refcounted* nocapture readonly swiftself %2, %swift.error** noalias nocapture readnone swifterror dereferenceable(8) %3) #0 {
entry:
  %4 = alloca %TSi, align 8
  %5 = alloca %TSr, align 8
  %6 = alloca %TSa, align 8
  %7 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %2, i64 1, i32 0
  %T = load %swift.type*, %swift.type** %7, align 8
  %8 = getelementptr inbounds %swift.type*, %swift.type** %7, i64 1
  %9 = bitcast %swift.type** %8 to i8***
  %T.Comparable = load i8**, i8*** %9, align 8
  %10 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %2, i64 2
  %11 = bitcast %swift.refcounted* %10 to %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV**
  %12 = load %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV*, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV** %11, align 8
  %13 = getelementptr inbounds %swift.type, %swift.type* %T, i64 -1
  %14 = bitcast %swift.type* %13 to i8***
  %T.valueWitnesses.i = load i8**, i8*** %14, align 8, !invariant.load !9, !noalias !21, !dereferenceable !10
  %15 = getelementptr inbounds i8*, i8** %T.valueWitnesses.i, i64 2
  %16 = bitcast i8** %15 to %swift.opaque* (%swift.opaque*, %swift.opaque*, %swift.type*)**
  %17 = load %swift.opaque* (%swift.opaque*, %swift.opaque*, %swift.type*)*, %swift.opaque* (%swift.opaque*, %swift.opaque*, %swift.type*)** %16, align 8, !invariant.load !9, !noalias !21
  %18 = tail call %swift.opaque* %17(%swift.opaque* noalias %0, %swift.opaque* noalias %1, %swift.type* %T) #6
  %.data._buffer._storage.i = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %12, i64 0, i32 0, i32 0, i32 0
  %19 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.data._buffer._storage.i, align 8, !noalias !21
  %.ordered.data.i = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %12, i64 0, i32 1, i32 1
  %20 = load %swift.refcounted*, %swift.refcounted** %.ordered.data.i, align 8, !noalias !21
  %21 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %19, i64 0, i32 0
  %22 = bitcast %TSa* %6 to i8*
  %23 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %21) #26
  %24 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %20) #26
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %22), !noalias !21
  %._buffer._storage.i.i = getelementptr inbounds %TSa, %TSa* %6, i64 0, i32 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* %19, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage.i.i, align 8, !noalias !21
  %25 = tail call swiftcc %swift.metadata_response @"$sSaMa"(i64 0, %swift.type* %T) #25
  %26 = extractvalue %swift.metadata_response %25, 0
  %27 = tail call i8** @swift_getWitnessTable(%swift.protocol_conformance_descriptor* nonnull @"$sSayxGSlsMc", %swift.type* %26, i8*** undef) #24
  %28 = bitcast %TSa* %6 to %swift.opaque*
  %29 = call swiftcc i1 @"$sSlsE7isEmptySbvg"(%swift.type* %26, i8** %27, %swift.opaque* noalias nocapture nonnull swiftself %28)
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %22), !noalias !21
  tail call void @swift_release(%swift.refcounted* %21) #6
  tail call void @swift_release(%swift.refcounted* %20) #6
  br i1 %29, label %"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV3popxSgyFxxXEfU_.exit", label %30

30:                                               ; preds = %entry
  %.data.i = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %12, i64 0, i32 0
  tail call swiftcc void @"$sSa21_makeMutableAndUniqueyyF"(%swift.type* %26, %TSa* nocapture nonnull swiftself dereferenceable(8) %.data.i)
  %31 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.data._buffer._storage.i, align 8, !noalias !21
  %._storage.count._value.i.i = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %31, i64 0, i32 1, i32 0, i32 0, i32 0
  %32 = load i64, i64* %._storage.count._value.i.i, align 8, !range !6
  %.not.i.not.i = icmp eq i64 %32, 0
  br i1 %.not.i.not.i, label %33, label %"$sSa24_checkSubscript_mutatingyySiF.exit.i", !prof !8

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

"$sSa24_checkSubscript_mutatingyySiF.exit.i":     ; preds = %30
  %34 = getelementptr inbounds i8*, i8** %T.valueWitnesses.i, i64 10
  %35 = bitcast i8** %34 to i32*
  %flags.i = load i32, i32* %35, align 8, !invariant.load !9
  %36 = and i32 %flags.i, 255
  %flags.alignmentMask.i = zext i32 %36 to i64
  %37 = add nuw nsw i64 %flags.alignmentMask.i, 32
  %38 = xor i64 %flags.alignmentMask.i, -1
  %39 = and i64 %37, %38
  %40 = bitcast %Ts28__ContiguousArrayStorageBaseC* %31 to i8*
  %41 = getelementptr inbounds i8, i8* %40, i64 %39
  %tailaddr.i = bitcast i8* %41 to %swift.opaque*
  tail call swiftcc void @"$ss4swapyyxz_xztlF"(%swift.opaque* nocapture %0, %swift.opaque* nocapture %tailaddr.i, %swift.type* nonnull %T)
  %42 = tail call swiftcc %swift.metadata_response @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMa"(i64 0, %swift.type* nonnull %T, i8** %T.Comparable) #25
  %43 = extractvalue %swift.metadata_response %42, 0
  %44 = bitcast %TSi* %4 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %44), !noalias !21
  %._value.i.i = getelementptr inbounds %TSi, %TSi* %4, i64 0, i32 0
  store i64 0, i64* %._value.i.i, align 8, !noalias !21
  %45 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.data._buffer._storage.i, align 8, !noalias !21
  %46 = load %swift.refcounted*, %swift.refcounted** %.ordered.data.i, align 8, !noalias !21
  %47 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %45, i64 0, i32 0
  %48 = getelementptr inbounds %swift.type, %swift.type* %43, i64 2
  %49 = bitcast %swift.type* %48 to %swift.type**
  %T.i.i = load %swift.type*, %swift.type** %49, align 8, !invariant.load !9
  %50 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %47) #26
  %51 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %46) #26
  %52 = tail call swiftcc i64 @"$sSa5countSivg"(%Ts28__ContiguousArrayStorageBaseC* %45, %swift.type* %T.i.i)
  tail call void @swift_release(%swift.refcounted* %46) #6
  tail call void @swift_release(%swift.refcounted* %47) #6
  %53 = tail call swiftcc %swift.metadata_response @"$sSaMa"(i64 0, %swift.type* %T.i.i) #25
  %54 = extractvalue %swift.metadata_response %53, 0
  tail call swiftcc void @"$sSa21_makeMutableAndUniqueyyF"(%swift.type* %54, %TSa* nocapture nonnull swiftself dereferenceable(8) %.data.i)
  %55 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.data._buffer._storage.i, align 8, !noalias !21
  %._storage.count._value.i2.i = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %55, i64 0, i32 1, i32 0, i32 0, i32 0
  %56 = load i64, i64* %._storage.count._value.i2.i, align 8, !range !6
  %57 = getelementptr inbounds %swift.type, %swift.type* %T.i.i, i64 -1
  %58 = bitcast %swift.type* %57 to %swift.vwtable**
  %T.valueWitnesses3.i.i = load %swift.vwtable*, %swift.vwtable** %58, align 8, !invariant.load !9, !dereferenceable !10
  %59 = getelementptr inbounds %swift.vwtable, %swift.vwtable* %T.valueWitnesses3.i.i, i64 0, i32 10
  %flags.i.i = load i32, i32* %59, align 8, !invariant.load !9
  %60 = and i32 %flags.i.i, 255
  %flags.alignmentMask.i.i = zext i32 %60 to i64
  %61 = add nuw nsw i64 %flags.alignmentMask.i.i, 32
  %62 = xor i64 %flags.alignmentMask.i.i, -1
  %63 = and i64 %61, %62
  %64 = bitcast %Ts28__ContiguousArrayStorageBaseC* %55 to i8*
  %65 = getelementptr inbounds i8, i8* %64, i64 %63
  %66 = getelementptr inbounds %TSr, %TSr* %5, i64 0, i32 0, i32 0, i64 0
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %66), !noalias !21
  %67 = ptrtoint i8* %65 to i64
  %68 = tail call swiftcc { i64, i64 } @"$sSr5start5countSryxGSpyxGSg_SitcfC"(i64 %67, i64 %56, %swift.type* %T.i.i)
  %69 = extractvalue { i64, i64 } %68, 0
  %70 = extractvalue { i64, i64 } %68, 1
  %71 = bitcast %TSr* %5 to i64*
  store i64 %69, i64* %71, align 8, !noalias !21
  %.count._value.i.i = getelementptr inbounds %TSr, %TSr* %5, i64 0, i32 1, i32 0
  store i64 %70, i64* %.count._value.i.i, align 8, !noalias !21
  call swiftcc void @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV8siftDownyyFySryxGzXEfU_"(%TSr* nocapture nonnull dereferenceable(16) %5, i64 %52, %TSi* nocapture nonnull dereferenceable(8) %4, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* nocapture nonnull dereferenceable(24) %12, %swift.type* %T.i.i)
  %72 = bitcast %TSr* %5 to %TSr.13*
  call swiftcc void @"$sSa30withUnsafeMutableBufferPointeryqd__qd__SryxGzKXEKlF6$deferL_yyr__lF"(%TSr.13* nocapture nonnull dereferenceable(16) %72, i8* %65, i64 %56, %TSa* nocapture nonnull dereferenceable(8) %.data.i, %swift.type* %T.i.i, %swift.type* nonnull getelementptr inbounds (%swift.full_existential_type, %swift.full_existential_type* @"$sytN", i64 0, i32 1))
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %66), !noalias !21
  %73 = load i64, i64* %._value.i.i, align 8, !noalias !21
  tail call swiftcc void @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV6siftUpyySiF"(i64 %73, %swift.type* %43, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* nocapture nonnull swiftself dereferenceable(24) %12)
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %44), !noalias !21
  br label %"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV3popxSgyFxxXEfU_.exit"

"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV3popxSgyFxxXEfU_.exit": ; preds = %entry, %"$sSa24_checkSubscript_mutatingyySiF.exit.i"
  ret void
}

; Function Attrs: minsize mustprogress nofree noinline nosync nounwind optsize readnone willreturn
define internal swiftcc %swift.metadata_response @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMa"(i64 %0, %swift.type* readnone %1, i8** readnone %2) #14 {
entry:
  %3 = bitcast %swift.type* %1 to i8*
  %4 = bitcast i8** %2 to i8*
  %5 = tail call swiftcc %swift.metadata_response @__swift_instantiateGenericMetadata(i64 %0, i8* %3, i8* %4, i8* undef, %swift.type_descriptor* nonnull bitcast (<{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i8, i8, i8, i8, i32, i32, i32 }>* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMn" to %swift.type_descriptor*)) #25
  ret %swift.metadata_response %5
}

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

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

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

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc { i64, i16 } @"$ss5SliceV32withContiguousStorageIfAvailableyqd__Sgqd__SRy7ElementQzGKXEKlFSRyxGq_s5Error_pr0_lys5UInt8Vqd__Isgyrzo_ABySS8UTF8ViewVGADsAI_pAMRszr__lIetMggrzo_Tpq5SiSg_Tg5061$ss17FixedWidthIntegerPsE_5radixxSgqd___SitcSyRd__lufcADSRys5I15VGXEfU_Si_SsTG5SiTf1cn_n"(i64 %0, i64 %1, i64 %2, %swift.bridge* %3, i64 %4, %swift.refcounted* swiftself %5, %swift.error** noalias nocapture swifterror dereferenceable(8) %6) local_unnamed_addr #0 {
entry:
  %.sroa.7 = alloca i8, align 8
  %temp-coercion.coerced.sroa.4.sroa.4 = alloca i8, align 1
  %7 = alloca <{ %Ts6UInt64V, %Ts6UInt64V }>, align 8
  call void @llvm.lifetime.start.p0i8(i64 1, i8* nonnull %.sroa.7)
  %8 = ptrtoint %swift.bridge* %3 to i64
  %9 = and i64 %8, 1152921504606846976
  %10 = icmp eq i64 %9, 0
  br i1 %10, label %11, label %44, !prof !7

11:                                               ; preds = %entry
  %12 = and i64 %8, 2305843009213693952
  %13 = icmp eq i64 %12, 0
  br i1 %13, label %14, label %17

14:                                               ; preds = %11
  %15 = and i64 %2, 1152921504606846976
  %16 = icmp eq i64 %15, 0
  br i1 %16, label %25, label %29, !prof !8

17:                                               ; preds = %11
  %18 = lshr i64 %8, 56
  %19 = and i64 %18, 15
  %20 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %7 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %20)
  %21 = and i64 %8, 72057594037927935
  %.elt._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %7, i64 0, i32 0, i32 0
  store i64 %2, i64* %.elt._value, align 8
  %.elt1._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %7, i64 0, i32 1, i32 0
  store i64 %21, i64* %.elt1._value, align 8
  %22 = ptrtoint <{ %Ts6UInt64V, %Ts6UInt64V }>* %7 to i64
  %23 = call swiftcc { i64, i8 } @"$ss5SliceV32withContiguousStorageIfAvailableyqd__Sgqd__SRy7ElementQzGKXEKlFqd__AGKXEfU_SRys5UInt8VGABySS8UTF8ViewVGSRyxGq_s5Error_pr0_lyAIqd__Isgyrzo_qd__sAO_pALRszr__lIetyggrzo_Tpq5SiSg_Tg5061$ss17FixedWidthIntegerPsE_5radixxSgqd___SitcSyRd__lufcADSRys5H15VGXEfU_Si_SsTG5SiTf1nnc_n"(i64 %22, i64 %19, i64 %0, i64 %1, i64 %2, %swift.bridge* %3, i64 %4, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %6)
  %24 = load %swift.error*, %swift.error** %6, align 8
  %.not = icmp eq %swift.error* %24, null
  br i1 %.not, label %50, label %54

25:                                               ; preds = %14
  %26 = tail call swiftcc { i64, i64 } @"$ss13_StringObjectV10sharedUTF8SRys5UInt8VGvg"(i64 %2, %swift.bridge* %3)
  %27 = extractvalue { i64, i64 } %26, 0
  %28 = extractvalue { i64, i64 } %26, 1
  br label %33

29:                                               ; preds = %14
  %30 = and i64 %8, 1152921504606846975
  %31 = add nuw nsw i64 %30, 32
  %32 = and i64 %2, 281474976710655
  br label %33

33:                                               ; preds = %25, %29
  %34 = phi i64 [ %31, %29 ], [ %27, %25 ]
  %35 = phi i64 [ %32, %29 ], [ %28, %25 ]
  %36 = tail call swiftcc { i64, i8 } @"$ss5SliceV32withContiguousStorageIfAvailableyqd__Sgqd__SRy7ElementQzGKXEKlFqd__AGKXEfU_SRys5UInt8VGABySS8UTF8ViewVGSRyxGq_s5Error_pr0_lyAIqd__Isgyrzo_qd__sAO_pALRszr__lIetyggrzo_Tpq5SiSg_Tg5061$ss17FixedWidthIntegerPsE_5radixxSgqd___SitcSyRd__lufcADSRys5H15VGXEfU_Si_SsTG5SiTf1nnc_n"(i64 %34, i64 %35, i64 %0, i64 %1, i64 %2, %swift.bridge* %3, i64 %4, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %6)
  %37 = load %swift.error*, %swift.error** %6, align 8
  %.not15 = icmp eq %swift.error* %37, null
  br i1 %.not15, label %38, label %48

38:                                               ; preds = %33
  %39 = extractvalue { i64, i8 } %36, 1
  %40 = and i8 %39, 1
  %41 = icmp ne i8 %40, 0
  %.sroa.7.0.sroa_cast24 = bitcast i8* %.sroa.7 to i1*
  store i1 %41, i1* %.sroa.7.0.sroa_cast24, align 8
  br label %42

42:                                               ; preds = %38, %50
  %.pn = phi { i64, i8 } [ %36, %38 ], [ %23, %50 ]
  %.sroa.0.0 = extractvalue { i64, i8 } %.pn, 0
  %.sroa.7.0..sroa.7.0..sroa.7.0..sroa.7.8..pre = load i8, i8* %.sroa.7, align 8
  %43 = zext i8 %.sroa.7.0..sroa.7.0..sroa.7.0..sroa.7.8..pre to i16
  br label %44

common.ret:                                       ; preds = %48, %44
  %common.ret.op = phi { i64, i16 } [ %47, %44 ], [ undef, %48 ]
  ret { i64, i16 } %common.ret.op

44:                                               ; preds = %entry, %42
  %.sroa.7.0..sroa.7.0..sroa.7.0..sroa.7.8. = phi i16 [ %43, %42 ], [ 0, %entry ]
  %.sroa.0.1 = phi i64 [ %.sroa.0.0, %42 ], [ 0, %entry ]
  %45 = xor i1 %10, true
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.7)
  call void @llvm.lifetime.start.p0i8(i64 1, i8* nonnull %temp-coercion.coerced.sroa.4.sroa.4)
  %temp-coercion.coerced.sroa.4.sroa.4.0.sroa_cast = bitcast i8* %temp-coercion.coerced.sroa.4.sroa.4 to i1*
  store i1 %45, i1* %temp-coercion.coerced.sroa.4.sroa.4.0.sroa_cast, align 1
  %temp-coercion.coerced.sroa.4.sroa.4.0.temp-coercion.coerced.sroa.4.sroa.4.0.temp-coercion.coerced.sroa.4.sroa.4.0.temp-coercion.coerced.sroa.4.sroa.4.0.temp-coercion.coerced.sroa.4.8. = load i8, i8* %temp-coercion.coerced.sroa.4.sroa.4, align 1
  %temp-coercion.coerced.sroa.4.sroa.4.0.insert.ext = zext i8 %temp-coercion.coerced.sroa.4.sroa.4.0.temp-coercion.coerced.sroa.4.sroa.4.0.temp-coercion.coerced.sroa.4.sroa.4.0.temp-coercion.coerced.sroa.4.sroa.4.0.temp-coercion.coerced.sroa.4.8. to i16
  %temp-coercion.coerced.sroa.4.sroa.4.0.insert.shift = shl nuw i16 %temp-coercion.coerced.sroa.4.sroa.4.0.insert.ext, 8
  %temp-coercion.coerced.sroa.4.sroa.0.0.insert.insert = or i16 %temp-coercion.coerced.sroa.4.sroa.4.0.insert.shift, %.sroa.7.0..sroa.7.0..sroa.7.0..sroa.7.8.
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %temp-coercion.coerced.sroa.4.sroa.4)
  %46 = insertvalue { i64, i16 } undef, i64 %.sroa.0.1, 0
  %47 = insertvalue { i64, i16 } %46, i16 %temp-coercion.coerced.sroa.4.sroa.0.0.insert.insert, 1
  br label %common.ret

48:                                               ; preds = %33, %54
  %49 = phi %swift.error* [ %24, %54 ], [ %37, %33 ]
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %.sroa.7)
  store %swift.error* %49, %swift.error** %6, align 8
  br label %common.ret

50:                                               ; preds = %17
  %51 = extractvalue { i64, i8 } %23, 1
  %52 = and i8 %51, 1
  %53 = icmp ne i8 %52, 0
  %.sroa.7.0.sroa_cast = bitcast i8* %.sroa.7 to i1*
  store i1 %53, i1* %.sroa.7.0.sroa_cast, align 8
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %20)
  br label %42

54:                                               ; preds = %17
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %20)
  br label %48
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc { i64, i8 } @"$ss5SliceV32withContiguousStorageIfAvailableyqd__Sgqd__SRy7ElementQzGKXEKlFqd__AGKXEfU_SRys5UInt8VGABySS8UTF8ViewVGSRyxGq_s5Error_pr0_lyAIqd__Isgyrzo_qd__sAO_pALRszr__lIetyggrzo_Tpq5SiSg_Tg5061$ss17FixedWidthIntegerPsE_5radixxSgqd___SitcSyRd__lufcADSRys5H15VGXEfU_Si_SsTG5SiTf1nnc_n"(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, %swift.bridge* %5, i64 %6, %swift.refcounted* swiftself %7, %swift.error** noalias nocapture swifterror dereferenceable(8) %8) local_unnamed_addr #0 {
entry:
  %9 = ptrtoint %swift.bridge* %5 to i64
  %10 = and i64 %9, 1152921504606846976
  %11 = icmp eq i64 %10, 0
  %12 = and i64 %4, 576460752303423488
  %13 = icmp ne i64 %12, 0
  %14 = select i1 %11, i1 true, i1 %13
  %15 = zext i1 %14 to i64
  %16 = shl nuw nsw i64 4, %15
  %17 = and i64 %2, 12
  %18 = icmp eq i64 %17, %16
  br i1 %18, label %19, label %21, !prof !8

19:                                               ; preds = %entry
  %20 = tail call swiftcc i64 @"$ss11_StringGutsV27_slowEnsureMatchingEncodingySS5IndexVAEF"(i64 %2, i64 %4, %swift.bridge* %5)
  br label %21

21:                                               ; preds = %entry, %19
  %22 = phi i64 [ %20, %19 ], [ %2, %entry ]
  br i1 %11, label %23, label %212, !prof !7

23:                                               ; preds = %21
  %24 = lshr i64 %22, 16
  br label %25

25:                                               ; preds = %23, %221
  %26 = phi i64 [ %222, %221 ], [ %24, %23 ]
  br i1 %18, label %27, label %29, !prof !8

27:                                               ; preds = %25
  %28 = tail call swiftcc i64 @"$ss11_StringGutsV27_slowEnsureMatchingEncodingySS5IndexVAEF"(i64 %2, i64 %4, %swift.bridge* %5)
  br label %29

29:                                               ; preds = %25, %27
  %30 = phi i64 [ %28, %27 ], [ %2, %25 ]
  %31 = and i64 %3, 12
  %32 = icmp eq i64 %31, %16
  br i1 %32, label %33, label %35, !prof !8

33:                                               ; preds = %29
  %34 = tail call swiftcc i64 @"$ss11_StringGutsV27_slowEnsureMatchingEncodingySS5IndexVAEF"(i64 %3, i64 %4, %swift.bridge* %5)
  br label %35

35:                                               ; preds = %29, %33
  %36 = phi i64 [ %34, %33 ], [ %3, %29 ]
  br i1 %11, label %37, label %41

37:                                               ; preds = %35
  %38 = lshr i64 %36, 16
  %39 = lshr i64 %30, 16
  %40 = sub nsw i64 %38, %39
  br label %50

41:                                               ; preds = %35
  %42 = and i64 %9, 2305843009213693952
  %43 = icmp eq i64 %42, 0
  %44 = lshr i64 %9, 56
  %45 = and i64 %44, 15
  %46 = and i64 %4, 281474976710655
  %47 = select i1 %43, i64 %46, i64 %45
  %48 = lshr i64 %30, 16
  %49 = icmp ult i64 %47, %48
  br i1 %49, label %224, label %207, !prof !8

50:                                               ; preds = %37, %210
  %51 = phi i64 [ %211, %210 ], [ %40, %37 ]
  %52 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %26, i64 %51)
  %53 = extractvalue { i64, i1 } %52, 0
  %54 = extractvalue { i64, i1 } %52, 1
  br i1 %54, label %226, label %55, !prof !8

55:                                               ; preds = %50
  %56 = icmp slt i64 %53, %26
  br i1 %56, label %227, label %57, !prof !8

57:                                               ; preds = %55
  %58 = icmp eq i64 %0, 0
  %59 = inttoptr i64 %0 to %Ts5UInt8V*
  %60 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %59, i64 %26, i32 0
  %61 = ptrtoint i8* %60 to i64
  %62 = select i1 %58, i64 0, i64 %61
  %63 = sub i64 %53, %26
  %64 = inttoptr i64 %62 to i8*
  %65 = inttoptr i64 %62 to %Ts5UInt8V*
  %._value1 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %65, i64 0, i32 0
  %66 = load i8, i8* %._value1, align 1
  switch i8 %66, label %130 [
    i8 45, label %67
    i8 43, label %121
  ]

67:                                               ; preds = %57
  %68 = icmp slt i64 %63, 1
  br i1 %68, label %229, label %69, !prof !8

69:                                               ; preds = %67
  %70 = icmp eq i64 %62, 0
  %71 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %65, i64 1, i32 0
  %72 = ptrtoint i8* %71 to i64
  %73 = select i1 %70, i64 0, i64 %72
  %74 = add nsw i64 %63, -1
  %75 = icmp eq i64 %74, 0
  br i1 %75, label %.loopexit, label %76, !prof !8

76:                                               ; preds = %69
  %77 = icmp sgt i64 %6, 10
  %78 = trunc i64 %6 to i8
  %79 = add i8 %78, 48
  %80 = add i8 %78, 55
  %81 = add i8 %78, 87
  %82 = select i1 %77, i8 %81, i8 97
  %83 = select i1 %77, i8 %80, i8 65
  %84 = select i1 %77, i8 58, i8 %79
  br i1 %70, label %.loopexit, label %92

.loopexit.loopexit.split.loop.exit:               ; preds = %203
  %85 = extractvalue { i64, i1 } %201, 0
  br label %.loopexit

.loopexit.loopexit83.split.loop.exit:             ; preds = %117
  %86 = extractvalue { i64, i1 } %115, 0
  br label %.loopexit

.loopexit.loopexit86.split.loop.exit:             ; preds = %166
  %87 = extractvalue { i64, i1 } %164, 0
  br label %.loopexit

.loopexit:                                        ; preds = %160, %157, %154, %111, %108, %105, %197, %194, %191, %.loopexit.loopexit86.split.loop.exit, %.loopexit.loopexit83.split.loop.exit, %.loopexit.loopexit.split.loop.exit, %170, %180, %130, %132, %141, %123, %76, %92, %69
  %88 = phi i64 [ 0, %69 ], [ 0, %76 ], [ 0, %92 ], [ 0, %123 ], [ 0, %132 ], [ 0, %141 ], [ 0, %130 ], [ 0, %170 ], [ 0, %180 ], [ %85, %.loopexit.loopexit.split.loop.exit ], [ %86, %.loopexit.loopexit83.split.loop.exit ], [ %87, %.loopexit.loopexit86.split.loop.exit ], [ 0, %191 ], [ 0, %194 ], [ 0, %197 ], [ 0, %105 ], [ 0, %108 ], [ 0, %111 ], [ 0, %154 ], [ 0, %157 ], [ 0, %160 ]
  %89 = phi i8 [ 1, %69 ], [ 0, %76 ], [ 0, %92 ], [ 1, %123 ], [ 0, %132 ], [ 0, %141 ], [ 1, %130 ], [ 0, %170 ], [ 0, %180 ], [ 0, %.loopexit.loopexit.split.loop.exit ], [ 0, %.loopexit.loopexit83.split.loop.exit ], [ 0, %.loopexit.loopexit86.split.loop.exit ], [ 1, %191 ], [ 1, %194 ], [ 1, %197 ], [ 1, %105 ], [ 1, %108 ], [ 1, %111 ], [ 1, %154 ], [ 1, %157 ], [ 1, %160 ]
  %90 = insertvalue { i64, i8 } undef, i64 %88, 0
  %91 = insertvalue { i64, i8 } %90, i8 %89, 1
  ret { i64, i8 } %91

92:                                               ; preds = %76
  %93 = inttoptr i64 %73 to %Ts5UInt8V*
  %94 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %93, i64 %74, i32 0
  %95 = inttoptr i64 %73 to i8*
  %96 = icmp eq i8* %94, %95
  br i1 %96, label %.loopexit, label %.preheader41

.preheader41:                                     ; preds = %92, %117
  %97 = phi i8* [ %119, %117 ], [ %95, %92 ]
  %98 = phi i64 [ %118, %117 ], [ 0, %92 ]
  %99 = load i8, i8* %97, align 1
  %100 = icmp ugt i8 %99, 47
  %101 = icmp ult i8 %99, %84
  %or.cond = select i1 %100, i1 %101, i1 false
  br i1 %or.cond, label %108, label %102, !prof !11

102:                                              ; preds = %.preheader41
  %103 = icmp ugt i8 %99, 64
  %104 = icmp ult i8 %99, %83
  %or.cond5 = select i1 %103, i1 %104, i1 false
  br i1 %or.cond5, label %108, label %105, !prof !11

105:                                              ; preds = %102
  %106 = icmp ugt i8 %99, 96
  %107 = icmp ult i8 %99, %82
  %or.cond6 = select i1 %106, i1 %107, i1 false
  br i1 %or.cond6, label %108, label %.loopexit, !prof !11

108:                                              ; preds = %105, %.preheader41, %102
  %.sink = phi i8 [ -55, %102 ], [ -48, %.preheader41 ], [ -87, %105 ]
  %109 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %98, i64 %6)
  %110 = extractvalue { i64, i1 } %109, 1
  br i1 %110, label %.loopexit, label %111

111:                                              ; preds = %108
  %112 = add i8 %99, %.sink
  %113 = extractvalue { i64, i1 } %109, 0
  %114 = zext i8 %112 to i64
  %115 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %113, i64 %114)
  %116 = extractvalue { i64, i1 } %115, 1
  br i1 %116, label %.loopexit, label %117, !prof !8

117:                                              ; preds = %111
  %118 = extractvalue { i64, i1 } %115, 0
  %119 = getelementptr inbounds i8, i8* %97, i64 1
  %120 = icmp eq i8* %119, %94
  br i1 %120, label %.loopexit.loopexit83.split.loop.exit, label %.preheader41

121:                                              ; preds = %57
  %122 = icmp slt i64 %63, 1
  br i1 %122, label %228, label %123, !prof !8

123:                                              ; preds = %121
  %124 = icmp eq i64 %62, 0
  %125 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %65, i64 1, i32 0
  %126 = ptrtoint i8* %125 to i64
  %127 = select i1 %124, i64 0, i64 %126
  %128 = add nsw i64 %63, -1
  %129 = icmp eq i64 %128, 0
  br i1 %129, label %.loopexit, label %132, !prof !8

130:                                              ; preds = %57
  %131 = icmp eq i64 %53, %26
  br i1 %131, label %.loopexit, label %170, !prof !8

132:                                              ; preds = %123
  %133 = icmp sgt i64 %6, 10
  %134 = trunc i64 %6 to i8
  %135 = add i8 %134, 48
  %136 = add i8 %134, 55
  %137 = add i8 %134, 87
  %138 = select i1 %133, i8 %137, i8 97
  %139 = select i1 %133, i8 %136, i8 65
  %140 = select i1 %133, i8 58, i8 %135
  br i1 %124, label %.loopexit, label %141

141:                                              ; preds = %132
  %142 = inttoptr i64 %127 to %Ts5UInt8V*
  %143 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %142, i64 %128, i32 0
  %144 = inttoptr i64 %127 to i8*
  %145 = icmp eq i8* %143, %144
  br i1 %145, label %.loopexit, label %.preheader45

.preheader45:                                     ; preds = %141, %166
  %146 = phi i8* [ %168, %166 ], [ %144, %141 ]
  %147 = phi i64 [ %167, %166 ], [ 0, %141 ]
  %148 = load i8, i8* %146, align 1
  %149 = icmp ugt i8 %148, 47
  %150 = icmp ult i8 %148, %140
  %or.cond7 = select i1 %149, i1 %150, i1 false
  br i1 %or.cond7, label %157, label %151, !prof !11

151:                                              ; preds = %.preheader45
  %152 = icmp ugt i8 %148, 64
  %153 = icmp ult i8 %148, %139
  %or.cond8 = select i1 %152, i1 %153, i1 false
  br i1 %or.cond8, label %157, label %154, !prof !11

154:                                              ; preds = %151
  %155 = icmp ugt i8 %148, 96
  %156 = icmp ult i8 %148, %138
  %or.cond9 = select i1 %155, i1 %156, i1 false
  br i1 %or.cond9, label %157, label %.loopexit, !prof !11

157:                                              ; preds = %154, %.preheader45, %151
  %.sink118 = phi i8 [ -55, %151 ], [ -48, %.preheader45 ], [ -87, %154 ]
  %158 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %147, i64 %6)
  %159 = extractvalue { i64, i1 } %158, 1
  br i1 %159, label %.loopexit, label %160

160:                                              ; preds = %157
  %161 = add i8 %148, %.sink118
  %162 = extractvalue { i64, i1 } %158, 0
  %163 = zext i8 %161 to i64
  %164 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %162, i64 %163)
  %165 = extractvalue { i64, i1 } %164, 1
  br i1 %165, label %.loopexit, label %166, !prof !8

166:                                              ; preds = %160
  %167 = extractvalue { i64, i1 } %164, 0
  %168 = getelementptr inbounds i8, i8* %146, i64 1
  %169 = icmp eq i8* %168, %143
  br i1 %169, label %.loopexit.loopexit86.split.loop.exit, label %.preheader45

170:                                              ; preds = %130
  %171 = icmp sgt i64 %6, 10
  %172 = trunc i64 %6 to i8
  %173 = add i8 %172, 48
  %174 = add i8 %172, 55
  %175 = add i8 %172, 87
  %176 = select i1 %171, i8 %175, i8 97
  %177 = select i1 %171, i8 %174, i8 65
  %178 = select i1 %171, i8 58, i8 %173
  %179 = icmp eq i64 %62, 0
  br i1 %179, label %.loopexit, label %180

180:                                              ; preds = %170
  %181 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %65, i64 %63, i32 0
  %182 = icmp eq i8* %181, %64
  br i1 %182, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %180, %203
  %183 = phi i8* [ %205, %203 ], [ %64, %180 ]
  %184 = phi i64 [ %204, %203 ], [ 0, %180 ]
  %185 = load i8, i8* %183, align 1
  %186 = icmp ugt i8 %185, 47
  %187 = icmp ult i8 %185, %178
  %or.cond10 = select i1 %186, i1 %187, i1 false
  br i1 %or.cond10, label %194, label %188, !prof !11

188:                                              ; preds = %.preheader
  %189 = icmp ugt i8 %185, 64
  %190 = icmp ult i8 %185, %177
  %or.cond11 = select i1 %189, i1 %190, i1 false
  br i1 %or.cond11, label %194, label %191, !prof !11

191:                                              ; preds = %188
  %192 = icmp ugt i8 %185, 96
  %193 = icmp ult i8 %185, %176
  %or.cond12 = select i1 %192, i1 %193, i1 false
  br i1 %or.cond12, label %194, label %.loopexit, !prof !11

194:                                              ; preds = %191, %.preheader, %188
  %.sink119 = phi i8 [ -55, %188 ], [ -48, %.preheader ], [ -87, %191 ]
  %195 = tail call { i64, i1 } @llvm.smul.with.overflow.i64(i64 %184, i64 %6)
  %196 = extractvalue { i64, i1 } %195, 1
  br i1 %196, label %.loopexit, label %197

197:                                              ; preds = %194
  %198 = add i8 %185, %.sink119
  %199 = extractvalue { i64, i1 } %195, 0
  %200 = zext i8 %198 to i64
  %201 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %199, i64 %200)
  %202 = extractvalue { i64, i1 } %201, 1
  br i1 %202, label %.loopexit, label %203, !prof !8

203:                                              ; preds = %197
  %204 = extractvalue { i64, i1 } %201, 0
  %205 = getelementptr inbounds i8, i8* %183, i64 1
  %206 = icmp eq i8* %205, %181
  br i1 %206, label %.loopexit.loopexit.split.loop.exit, label %.preheader

207:                                              ; preds = %41
  %208 = lshr i64 %36, 16
  %209 = icmp ult i64 %47, %208
  br i1 %209, label %225, label %210, !prof !8

210:                                              ; preds = %207
  %211 = tail call swiftcc i64 @"$sSS8UTF8ViewV16_foreignDistance4from2toSiSS5IndexV_AGtF"(i64 %30, i64 %36, i64 %4, %swift.bridge* %5)
  br label %50

212:                                              ; preds = %21
  %213 = and i64 %9, 2305843009213693952
  %214 = icmp eq i64 %213, 0
  %215 = and i64 %4, 281474976710655
  %216 = lshr i64 %9, 56
  %217 = and i64 %216, 15
  %218 = select i1 %214, i64 %215, i64 %217
  %219 = lshr i64 %22, 16
  %220 = icmp ult i64 %218, %219
  br i1 %220, label %223, label %221, !prof !8

221:                                              ; preds = %212
  %222 = tail call swiftcc i64 @"$sSS8UTF8ViewV16_foreignDistance4from2toSiSS5IndexV_AGtF"(i64 15, i64 %22, i64 %4, %swift.bridge* %5)
  br label %25

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: minsize nounwind optsize
define internal %swift.type* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVMi"(%swift.type_descriptor* %0, i8** %1, i8* %2) #17 {
entry:
  %3 = tail call %swift.type* @swift_allocateGenericValueMetadata(%swift.type_descriptor* %0, i8** %1, i8* %2, i64 24) #6
  ret %swift.type* %3
}

; Function Attrs: minsize mustprogress nounwind optsize willreturn
define internal %swift.opaque* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVwCP"([24 x i8]* noalias writeonly %dest, [24 x i8]* noalias nocapture readonly %src, %swift.type* nocapture readnone %"PriorityQueue<T>") #18 {
entry:
  %.data._buffer._storage = bitcast [24 x i8]* %dest to %Ts28__ContiguousArrayStorageBaseC**
  %.data1._buffer._storage = bitcast [24 x i8]* %src to %Ts28__ContiguousArrayStorageBaseC**
  %0 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.data1._buffer._storage, align 8
  %1 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* %0, %Ts28__ContiguousArrayStorageBaseC** %.data._buffer._storage, align 8
  %.ordered = getelementptr inbounds [24 x i8], [24 x i8]* %dest, i64 0, i64 8
  %.ordered2 = getelementptr inbounds [24 x i8], [24 x i8]* %src, i64 0, i64 8
  %.ordered2.fn = bitcast i8* %.ordered2 to i8**
  %.ordered2.fn.load = load i8*, i8** %.ordered2.fn, align 8
  %.ordered2.data = getelementptr inbounds [24 x i8], [24 x i8]* %src, i64 0, i64 16
  %2 = bitcast i8* %.ordered2.data to %swift.refcounted**
  %3 = load %swift.refcounted*, %swift.refcounted** %2, align 8
  %.ordered.fn = bitcast i8* %.ordered to i8**
  store i8* %.ordered2.fn.load, i8** %.ordered.fn, align 8
  %.ordered.data = getelementptr inbounds [24 x i8], [24 x i8]* %dest, i64 0, i64 16
  %4 = bitcast i8* %.ordered.data to %swift.refcounted**
  store %swift.refcounted* %3, %swift.refcounted** %4, align 8
  %5 = bitcast [24 x i8]* %dest to %swift.opaque*
  %6 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %1) #26
  %7 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %3) #26
  ret %swift.opaque* %5
}

; Function Attrs: minsize nounwind optsize
define internal void @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVwxx"(%swift.opaque* noalias nocapture readonly %object, %swift.type* nocapture readnone %"PriorityQueue<T>") #16 {
entry:
  %0 = bitcast %swift.opaque* %object to %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV*
  %.data._buffer._storage = bitcast %swift.opaque* %object to %Ts28__ContiguousArrayStorageBaseC**
  %toDestroy = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.data._buffer._storage, align 8
  %1 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %toDestroy, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %1) #6
  %.ordered.data = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %0, i64 0, i32 1, i32 1
  %2 = load %swift.refcounted*, %swift.refcounted** %.ordered.data, align 8
  tail call void @swift_release(%swift.refcounted* %2) #6
  ret void
}

; Function Attrs: minsize mustprogress nounwind optsize willreturn
define internal %swift.opaque* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVwcp"(%swift.opaque* noalias returned writeonly %dest, %swift.opaque* noalias nocapture readonly %src, %swift.type* nocapture readnone %"PriorityQueue<T>") #18 {
entry:
  %0 = bitcast %swift.opaque* %dest to %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV*
  %1 = bitcast %swift.opaque* %src to %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV*
  %.data._buffer._storage = bitcast %swift.opaque* %dest to %Ts28__ContiguousArrayStorageBaseC**
  %.data1._buffer._storage = bitcast %swift.opaque* %src to %Ts28__ContiguousArrayStorageBaseC**
  %2 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.data1._buffer._storage, align 8
  %3 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %2, i64 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* %2, %Ts28__ContiguousArrayStorageBaseC** %.data._buffer._storage, align 8
  %.ordered2.fn = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %1, i64 0, i32 1, i32 0
  %.ordered2.fn.load = load i8*, i8** %.ordered2.fn, align 8
  %.ordered2.data = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %1, i64 0, i32 1, i32 1
  %4 = load %swift.refcounted*, %swift.refcounted** %.ordered2.data, align 8
  %.ordered.fn = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %0, i64 0, i32 1, i32 0
  store i8* %.ordered2.fn.load, i8** %.ordered.fn, align 8
  %.ordered.data = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %0, i64 0, i32 1, i32 1
  store %swift.refcounted* %4, %swift.refcounted** %.ordered.data, align 8
  %5 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %3) #26
  %6 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %4) #26
  ret %swift.opaque* %dest
}

; Function Attrs: minsize nounwind optsize
define internal %swift.opaque* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVwca"(%swift.opaque* returned %dest, %swift.opaque* nocapture readonly %src, %swift.type* nocapture readnone %"PriorityQueue<T>") #16 {
entry:
  %0 = bitcast %swift.opaque* %dest to %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV*
  %1 = bitcast %swift.opaque* %src to %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV*
  %.data._buffer._storage = bitcast %swift.opaque* %dest to %Ts28__ContiguousArrayStorageBaseC**
  %.data1._buffer._storage = bitcast %swift.opaque* %src to %Ts28__ContiguousArrayStorageBaseC**
  %2 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.data1._buffer._storage, align 8
  %3 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %2, i64 0, i32 0
  %oldValue = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.data._buffer._storage, align 8
  store %Ts28__ContiguousArrayStorageBaseC* %2, %Ts28__ContiguousArrayStorageBaseC** %.data._buffer._storage, align 8
  %4 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %oldValue, i64 0, i32 0
  %5 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %3) #26
  tail call void @swift_release(%swift.refcounted* %4) #6
  %.ordered2.fn = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %1, i64 0, i32 1, i32 0
  %.ordered2.fn.load = load i8*, i8** %.ordered2.fn, align 8
  %.ordered2.data = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %1, i64 0, i32 1, i32 1
  %6 = load %swift.refcounted*, %swift.refcounted** %.ordered2.data, align 8
  %.ordered.fn = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %0, i64 0, i32 1, i32 0
  store i8* %.ordered2.fn.load, i8** %.ordered.fn, align 8
  %.ordered.data = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %0, i64 0, i32 1, i32 1
  %7 = load %swift.refcounted*, %swift.refcounted** %.ordered.data, align 8
  store %swift.refcounted* %6, %swift.refcounted** %.ordered.data, align 8
  %8 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %6) #26
  tail call void @swift_release(%swift.refcounted* %7) #6
  ret %swift.opaque* %dest
}

; Function Attrs: minsize nounwind optsize
define linkonce_odr hidden i8* @__swift_memcpy24_8(i8* %0, i8* %1, %swift.type* %2) #16 {
entry:
  tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* noundef nonnull align 8 dereferenceable(24) %0, i8* noundef nonnull align 8 dereferenceable(24) %1, i64 24, i1 false)
  ret i8* %0
}

; Function Attrs: minsize nounwind optsize
define internal %swift.opaque* @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVwta"(%swift.opaque* noalias returned %dest, %swift.opaque* noalias nocapture readonly %src, %swift.type* nocapture readnone %"PriorityQueue<T>") #16 {
entry:
  %0 = bitcast %swift.opaque* %dest to %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV*
  %1 = bitcast %swift.opaque* %src to %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV*
  %.data._buffer._storage = bitcast %swift.opaque* %dest to %Ts28__ContiguousArrayStorageBaseC**
  %.data1._buffer._storage = bitcast %swift.opaque* %src to %Ts28__ContiguousArrayStorageBaseC**
  %2 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.data1._buffer._storage, align 8
  %oldValue = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %.data._buffer._storage, align 8
  store %Ts28__ContiguousArrayStorageBaseC* %2, %Ts28__ContiguousArrayStorageBaseC** %.data._buffer._storage, align 8
  %3 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %oldValue, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %3) #6
  %.ordered2.fn = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %1, i64 0, i32 1, i32 0
  %4 = load i8*, i8** %.ordered2.fn, align 8
  %.ordered2.data = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %1, i64 0, i32 1, i32 1
  %5 = load %swift.refcounted*, %swift.refcounted** %.ordered2.data, align 8
  %.ordered.fn = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %0, i64 0, i32 1, i32 0
  store i8* %4, i8** %.ordered.fn, align 8
  %.ordered.data = getelementptr inbounds %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV, %T7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLV* %0, i64 0, i32 1, i32 1
  %6 = load %swift.refcounted*, %swift.refcounted** %.ordered.data, align 8
  store %swift.refcounted* %5, %swift.refcounted** %.ordered.data, align 8
  tail call void @swift_release(%swift.refcounted* %6) #6
  ret %swift.opaque* %dest
}

; Function Attrs: argmemonly minsize mustprogress nofree norecurse nosync nounwind optsize readonly willreturn
define internal i32 @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVwet"(%swift.opaque* noalias nocapture readonly %value, i32 %numEmptyCases, %swift.type* nocapture readnone %"PriorityQueue<T>") #19 {
entry:
  %0 = icmp eq i32 %numEmptyCases, 0
  br i1 %0, label %17, label %1

1:                                                ; preds = %entry
  %2 = icmp ugt i32 %numEmptyCases, 4096
  br i1 %2, label %3, label %is-valid-pointer

3:                                                ; preds = %1
  %4 = bitcast %swift.opaque* %value to i8*
  %5 = getelementptr inbounds i8, i8* %4, i64 24
  %6 = load i8, i8* %5, align 1
  %7 = icmp eq i8 %6, 0
  br i1 %7, label %is-valid-pointer, label %8

8:                                                ; preds = %3
  %9 = bitcast %swift.opaque* %value to i192*
  %10 = load i192, i192* %9, align 1
  %11 = trunc i192 %10 to i32
  %12 = add i32 %11, 4096
  br label %17

is-valid-pointer:                                 ; preds = %3, %1
  %13 = bitcast %swift.opaque* %value to i64*
  %14 = load i64, i64* %13, align 8
  %15 = icmp ugt i64 %14, 4095
  %16 = trunc i64 %14 to i32
  %spec.select = select i1 %15, i32 -1, i32 %16
  br label %17

17:                                               ; preds = %entry, %is-valid-pointer, %8
  %18 = phi i32 [ %spec.select, %is-valid-pointer ], [ %12, %8 ], [ -1, %entry ]
  %19 = add i32 %18, 1
  ret i32 %19
}

; Function Attrs: argmemonly minsize mustprogress nofree norecurse nosync nounwind optsize willreturn writeonly
define internal void @"$s7llvm_OZ13PriorityQueue33_180160AE16FDBCF0A925445958C15377LLVwst"(%swift.opaque* noalias nocapture writeonly %value, i32 %whichCase, i32 %numEmptyCases, %swift.type* nocapture readnone %"PriorityQueue<T>") #20 {
entry:
  %0 = bitcast %swift.opaque* %value to i8*
  %1 = getelementptr inbounds i8, i8* %0, i64 24
  %2 = icmp ugt i32 %numEmptyCases, 4096
  %3 = icmp ult i32 %whichCase, 4097
  br i1 %3, label %4, label %12

4:                                                ; preds = %entry
  br i1 %2, label %5, label %6

5:                                                ; preds = %4
  store i8 0, i8* %1, align 8
  br label %6

6:                                                ; preds = %4, %5
  %7 = icmp eq i32 %whichCase, 0
  br i1 %7, label %17, label %8

8:                                                ; preds = %6
  %9 = add nsw i32 %whichCase, -1
  %10 = zext i32 %9 to i64
  %11 = bitcast %swift.opaque* %value to i64*
  store i64 %10, i64* %11, align 8
  br label %17

12:                                               ; preds = %entry
  %13 = add i32 %whichCase, -4097
  %14 = zext i32 %13 to i192
  %15 = bitcast %swift.opaque* %value to i192*
  store i192 %14, i192* %15, align 8
  br i1 %2, label %16, label %17

16:                                               ; preds = %12
  store i8 1, i8* %1, align 8
  br label %17

17:                                               ; preds = %12, %16, %8, %6
  ret void
}

; Function Attrs: nounwind
declare %swift.type* @swift_allocateGenericValueMetadata(%swift.type_descriptor*, i8**, i8*, i64) local_unnamed_addr #6

; Function Attrs: minsize mustprogress nofree noinline nounwind optsize readonly willreturn
define linkonce_odr hidden swiftcc %swift.metadata_response @__swift_instantiateGenericMetadata(i64 %0, i8* %1, i8* %2, i8* %3, %swift.type_descriptor* %4) local_unnamed_addr #7 {
entry:
  %generic.arguments = alloca [3 x i8*], align 8
  %5 = bitcast [3 x i8*]* %generic.arguments to i8*
  call void @llvm.lifetime.start.p0i8(i64 24, i8* nonnull %5)
  %6 = getelementptr inbounds [3 x i8*], [3 x i8*]* %generic.arguments, i64 0, i64 0
  store i8* %1, i8** %6, align 8
  %7 = getelementptr inbounds [3 x i8*], [3 x i8*]* %generic.arguments, i64 0, i64 1
  store i8* %2, i8** %7, align 8
  %8 = getelementptr inbounds [3 x i8*], [3 x i8*]* %generic.arguments, i64 0, i64 2
  store i8* %3, i8** %8, align 8
  %9 = call swiftcc %swift.metadata_response @swift_getGenericMetadata(i64 %0, i8* nonnull %5, %swift.type_descriptor* %4) #24
  ret %swift.metadata_response %9
}

; Function Attrs: nofree nounwind readonly
declare swiftcc %swift.metadata_response @swift_getGenericMetadata(i64, i8*, %swift.type_descriptor*) local_unnamed_addr #10

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

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

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

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

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

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

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

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