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]
    
    if n >= m {
        print(0)
        return
    }

    let X = readWords { Int($0)! }.sorted()

    // 区間が得られる。
    // 問題を簡単にしてみる。
    // コマが1つなら答えは X[m-1] - X[0]
    // コマが複数あるなら、訪れない区間ができるのでそのうち一番広い区間を選択すれば良い。
    // コマが2つなら、訪れない区間は1つ。-> 全体から最も広い区間を1つ引く。
    // コマがn個なら、訪れない区間はn-1つ。 -> 全体から広い区間をn-1個引く。

    var distances = (1..<m).map { X[$0] - X[$0-1] }
    distances.sort(by: >)

    print(distances[(n-1)...].reduce(0, +))
}


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

%struct._SwiftEmptyArrayStorage = type { %struct.HeapObject, %struct._SwiftArrayBodyStorage }
%struct.HeapObject = type { %struct.HeapMetadata*, %struct.InlineRefCountsPlaceholder }
%struct.HeapMetadata = type opaque
%struct.InlineRefCountsPlaceholder = type { i64 }
%struct._SwiftArrayBodyStorage = type { i64, i64 }
%swift.protocol_conformance_descriptor = type { i32, i32, i32, i32 }
%swift.type_descriptor = type opaque
%swift.type = type { i64 }
%swift.full_boxmetadata = type { void (%swift.refcounted*)*, i8**, %swift.type, i32, i8* }
%swift.refcounted = type { %swift.type*, i64 }
%Ts28__ContiguousArrayStorageBaseC = type <{ %swift.refcounted, %Ts10_ArrayBodyV }>
%Ts10_ArrayBodyV = type <{ %TSo22_SwiftArrayBodyStorageV }>
%TSo22_SwiftArrayBodyStorageV = type <{ %TSi, %TSu }>
%TSi = type <{ i64 }>
%TSu = type <{ i64 }>
%swift.opaque = type opaque
%TSJ = type <{ %TSS }>
%TSS = type <{ %Ts11_StringGutsV }>
%Ts11_StringGutsV = type <{ %Ts13_StringObjectV }>
%Ts13_StringObjectV = type <{ %Ts6UInt64V, %swift.bridge* }>
%Ts6UInt64V = type <{ i64 }>
%swift.bridge = type opaque
%swift.error = type opaque
%TSa = type <{ %Ts22_ContiguousArrayBufferV }>
%Ts22_ContiguousArrayBufferV = type <{ %Ts28__ContiguousArrayStorageBaseC* }>
%Ts15ContiguousArrayV = type <{ %Ts22_ContiguousArrayBufferV }>
%TSrySiG = type <{ %TSpySiGSg, %TSi }>
%TSpySiGSg = 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 }>

@_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 _____ySnySiGG s23_ContiguousArrayStorageC" = linkonce_odr hidden constant <{ i8, i32, [8 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss23_ContiguousArrayStorageCMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [8 x i8], i8 }>, <{ i8, i32, [8 x i8], i8 }>* @"symbolic _____ySnySiGG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [8 x i8] c"ySnySiGG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCySnySiGGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [8 x i8], i8 }>* @"symbolic _____ySnySiGG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCySnySiGGMD" to i64)) to i32), i32 -13 }, align 8
@"symbolic _____ySiG s23_ContiguousArrayStorageC" = linkonce_odr hidden constant <{ i8, i32, [4 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss23_ContiguousArrayStorageCMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [4 x i8], i8 }>, <{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySiG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [4 x i8] c"ySiG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCySiGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySiG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCySiGMD" to i64)) to i32), i32 -9 }, align 8
@"$sSsN" = external global %swift.type, align 8
@"$sSss25LosslessStringConvertiblesWP" = external global i8*, align 8
@"$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.2" = private constant { i32, i32, i32, i32 } { i32 1, i32 0, i32 0, i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, i8 }>* @"symbolic _____ SS5IndexV" to i64), i64 ptrtoint (i32* getelementptr inbounds ({ i32, i32, i32, i32 }, { i32, i32, i32, i32 }* @"\01l__swift5_reflection_descriptor.2", i32 0, i32 3) to i64)) to i32) }, section "swift5_capture", no_sanitize_address, align 4
@metadata.4 = private constant %swift.full_boxmetadata { void (%swift.refcounted*)* @objectdestroy.3, i8** null, %swift.type { i64 1024 }, i32 16, i8* bitcast ({ i32, i32, i32, i32 }* @"\01l__swift5_reflection_descriptor.2" to i8*) }, align 8
@"symbolic _____ySsG s23_ContiguousArrayStorageC" = linkonce_odr hidden constant <{ i8, i32, [4 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss23_ContiguousArrayStorageCMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [4 x i8], i8 }>, <{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySsG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [4 x i8] c"ySsG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCySsGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [4 x i8], i8 }>* @"symbolic _____ySsG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCySsGMD" to i64)) to i32), i32 -9 }, align 8
@__swift_reflection_version = linkonce_odr hidden constant i16 3
@_swift1_autolink_entries = private constant [172 x i8] c"-lFoundation\00-lswiftCore\00-lswift_StringProcessing\00-lswift_RegexParser\00-lswift_Concurrency\00-lswiftGlibc\00-lm\00-lpthread\00-lutil\00-ldl\00-lswiftDispatch\00-ldispatch\00-lBlocksRuntime\00", section ".swift1_autolink_entries", no_sanitize_address, align 8
@llvm.compiler.used = appending global [6 x i8*] [i8* bitcast ({ i32, i32, i32, i32 }* @"\01l__swift5_reflection_descriptor" to i8*), i8* bitcast ({ i32, i32, i32, i32 }* @"\01l__swift5_reflection_descriptor.2" to i8*), i8* bitcast ({ i32, i32 }* @"\01l_entry_point" to i8*), i8* bitcast (i16* @__swift_reflection_version to i8*), i8* getelementptr inbounds ([172 x i8], [172 x i8]* @_swift1_autolink_entries, i32 0, i32 0), i8* bitcast (i32 (i32, i8**)* @main to i8*)], section "llvm.metadata"

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

; Function Attrs: minsize optsize
define 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) #5
  %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.1" 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) #5
  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) #5
  ret %Ts28__ContiguousArrayStorageBaseC* %16

18:                                               ; preds = %entry
  tail call void asm sideeffect "", "n"(i32 0) #5
  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) #5
  %16 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE5split9maxSplits25omittingEmptySubsequences14whereSeparatorSay11SubSequenceQzGSi_S2b7ElementQzKXEtKFSS_Tg5"(i64 9223372036854775807, i1 true, i8* nonnull bitcast (i1 (%TSJ*, %swift.refcounted*, %swift.error**)* @"$sSlsSQ7ElementRpzrlE5split9separator9maxSplits25omittingEmptySubsequencesSay11SubSequenceQzGAB_SiSbtFSbABXEfU_SS_TG5TA" to i8*), %swift.opaque* nonnull %12, i64 %8, %swift.bridge* nonnull %9, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %9) #5
  call void @llvm.stackrestore(i8* %spsave)
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %10)
  %17 = bitcast %TSa* %3 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %17)
  %._buffer._storage = getelementptr inbounds %TSa, %TSa* %3, i64 0, i32 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* %16, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %spsave1 = call i8* @llvm.stacksave()
  %18 = alloca [40 x i8], align 16
  %19 = bitcast [40 x i8]* %18 to %swift.opaque*
  %20 = getelementptr inbounds [40 x i8], [40 x i8]* %18, i64 0, i64 16
  %21 = bitcast i8* %20 to %swift.type**
  store %swift.type* %T, %swift.type** %21, align 16
  %22 = getelementptr inbounds [40 x i8], [40 x i8]* %18, i64 0, i64 24
  %.fn = bitcast i8* %22 to i8**
  store i8* %0, i8** %.fn, align 8
  %.data = getelementptr inbounds [40 x i8], [40 x i8]* %18, i64 0, i64 32
  %23 = bitcast i8* %.data to %swift.opaque**
  store %swift.opaque* %1, %swift.opaque** %23, align 16
  %24 = call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$sSaySsGMD") #17
  %25 = tail call i8** @"$sSaySsGSayxGSlsWl"() #18
  %26 = bitcast %TSa* %3 to %swift.opaque*
  %27 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE3mapySayqd__Gqd__7ElementQzKXEKlF"(i8* nonnull bitcast (void (%swift.opaque*, %TSs*, %swift.refcounted*, %swift.error**)* @"$sSsxs5Error_pIggrzo_SsxsAA_pIegnrzo_lTRTA" to i8*), %swift.opaque* nonnull %19, %swift.type* %24, %swift.type* %T, i8** %25, %swift.opaque* noalias nocapture nonnull swiftself %26, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  %28 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %29 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %28, i64 0, i32 0
  call void @swift_release(%swift.refcounted* %29) #5
  call void @llvm.stackrestore(i8* %spsave1)
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %17)
  ret %Ts28__ContiguousArrayStorageBaseC* %27

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

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE3mapySayqd__Gqd__7ElementQzKXEKlFSnySiG_SiTg527$s7llvm_OZ4mainyyFS2iXEfU1_SaySiGTf1cn_n"(i64 %0, i64 %1, %Ts28__ContiguousArrayStorageBaseC* %2, %swift.refcounted* swiftself %3, %swift.error** noalias nocapture swifterror dereferenceable(8) %4) local_unnamed_addr #0 {
entry:
  %5 = alloca %Ts15ContiguousArrayV, align 8
  %6 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %1, i64 %0)
  %7 = extractvalue { i64, i1 } %6, 0
  %8 = extractvalue { i64, i1 } %6, 1
  br i1 %8, label %56, label %9, !prof !6

9:                                                ; preds = %entry
  %10 = icmp eq i64 %7, 0
  br i1 %10, label %11, label %13

11:                                               ; preds = %9
  %12 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %2, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %12) #5
  br label %20

13:                                               ; preds = %9
  %14 = bitcast %Ts15ContiguousArrayV* %5 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %14)
  %._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
  %15 = tail call i64 @llvm.smax.i64(i64 %7, i64 0)
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSi_Tg5"(i1 false, i64 %15, i1 false, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %5)
  %16 = icmp slt i64 %7, 0
  %17 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %2, i64 1
  %tailaddr = bitcast %Ts28__ContiguousArrayStorageBaseC* %17 to %TSi*
  %18 = icmp slt i64 %1, %0
  %19 = or i1 %18, %16
  br i1 %19, label %57, label %22, !prof !6

20:                                               ; preds = %11, %54
  %21 = phi %Ts28__ContiguousArrayStorageBaseC* [ %49, %54 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %11 ]
  ret %Ts28__ContiguousArrayStorageBaseC* %21

22:                                               ; preds = %13
  %23 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %2, i64 0, i32 1, i32 0, i32 0, i32 0
  %24 = icmp slt i64 %0, 0
  br label %25

25:                                               ; preds = %51, %22
  %26 = phi i64 [ 0, %22 ], [ %30, %51 ]
  %27 = phi i64 [ %0, %22 ], [ %52, %51 ]
  %28 = phi %Ts28__ContiguousArrayStorageBaseC* [ %23, %22 ], [ %49, %51 ]
  %exitcond.not = icmp eq i64 %26, %7
  br i1 %exitcond.not, label %58, label %29, !prof !6

29:                                               ; preds = %25
  %30 = add nuw nsw i64 %26, 1
  br i1 %24, label %59, label %31, !prof !6

31:                                               ; preds = %29
  %32 = load i64, i64* %._storage.count._value, align 8, !range !7
  %.not = icmp ult i64 %27, %32
  br i1 %.not, label %33, label %60, !prof !8

33:                                               ; preds = %31
  %34 = add nsw i64 %27, -1
  %.not16 = icmp ult i64 %34, %32
  br i1 %.not16, label %35, label %61, !prof !8

35:                                               ; preds = %33
  %._value = getelementptr inbounds %TSi, %TSi* %tailaddr, i64 %27, i32 0
  %36 = load i64, i64* %._value, align 8
  %._value2 = getelementptr inbounds %TSi, %TSi* %tailaddr, i64 %34, i32 0
  %37 = load i64, i64* %._value2, align 8
  %38 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %36, i64 %37)
  %39 = extractvalue { i64, i1 } %38, 0
  %40 = extractvalue { i64, i1 } %38, 1
  br i1 %40, label %62, label %41, !prof !6

41:                                               ; preds = %35
  store %Ts28__ContiguousArrayStorageBaseC* %28, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %._storage4.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %28, i64 0, i32 1, i32 0, i32 0, i32 0
  %42 = load i64, i64* %._storage4.count._value, align 8, !range !7
  %._storage4._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %28, i64 0, i32 1, i32 0, i32 1, i32 0
  %43 = load i64, i64* %._storage4._capacityAndFlags._value, align 8
  %44 = lshr i64 %43, 1
  %45 = add nuw nsw i64 %42, 1
  %.not17 = icmp ugt i64 %44, %42
  br i1 %.not17, label %48, label %46, !prof !8

46:                                               ; preds = %41
  %47 = icmp ugt i64 %43, 1
  call swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSi_Tg5"(i1 %47, i64 %45, i1 true, %Ts15ContiguousArrayV* nocapture nonnull swiftself dereferenceable(8) %5)
  %.pre = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  br label %48

48:                                               ; preds = %41, %46
  %49 = phi %Ts28__ContiguousArrayStorageBaseC* [ %28, %41 ], [ %.pre, %46 ]
  %._storage5.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %49, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %45, i64* %._storage5.count._value, align 8
  %50 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %49, i64 1
  %tailaddr6 = bitcast %Ts28__ContiguousArrayStorageBaseC* %50 to %TSi*
  %._value7 = getelementptr inbounds %TSi, %TSi* %tailaddr6, i64 %42, i32 0
  store i64 %39, i64* %._value7, align 8
  %.not21 = icmp slt i64 %27, %1
  br i1 %.not21, label %51, label %63, !prof !8

51:                                               ; preds = %48
  %52 = add nuw nsw i64 %27, 1
  %53 = icmp eq i64 %30, %7
  br i1 %53, label %54, label %25

54:                                               ; preds = %51
  %55 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %2, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %55) #5
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %14)
  br label %20

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

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

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

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

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

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

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

63:                                               ; preds = %48
  tail call void asm sideeffect "", "n"(i32 9) #5
  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 !7
  %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) #5
  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) #5
  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 !7
  %._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 !8

34:                                               ; preds = %16
  %35 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %18, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %35) #5
  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
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
  %swifterror = alloca swifterror %swift.error*, align 8
  store %swift.error* null, %swift.error** %swifterror, align 8
  %1 = alloca %TSa, align 8
  %2 = 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* %2, i64 0, i32 1, i32 0, i32 0, i32 0
  %3 = load i64, i64* %._storage.count._value, align 8, !range !7
  %.not = icmp eq i64 %3, 0
  br i1 %.not, label %74, label %4, !prof !6

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

7:                                                ; preds = %4
  %8 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %2, i64 1, i32 0, i32 1
  %9 = load i64, i64* %8, align 8
  %10 = icmp slt i64 %6, %9
  br i1 %10, label %20, label %11

11:                                               ; preds = %7
  %12 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #17
  %13 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %12, i64 64, i64 7) #5
  %14 = bitcast %swift.refcounted* %13 to %Ts28__ContiguousArrayStorageBaseC*
  %15 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %13, i64 1
  %._storage1.count._value = bitcast %swift.refcounted* %15 to i64*
  store i64 1, i64* %._storage1.count._value, align 8
  %._storage1._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %13, i64 1, i32 1
  store i64 2, i64* %._storage1._capacityAndFlags, align 8
  %16 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %13, i64 2
  %17 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %13, i64 3, i32 1
  %18 = bitcast i64* %17 to %swift.type**
  store %swift.type* @"$sSiN", %swift.type** %18, align 8
  %._value3 = bitcast %swift.refcounted* %16 to i64*
  store i64 0, i64* %._value3, align 8
  tail call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %14, i64 32, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i64 10, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*))
  tail call void @swift_release(%swift.refcounted* %13) #5
  %19 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %2, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %19) #5
  br label %73

20:                                               ; preds = %7
  %21 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$s7llvm_OZ9readWordsySayxGxSsXElFSi_Tg5"(i8* nonnull bitcast (void (%TSi*, i64, i64, i64, %swift.bridge*)* @"$s7llvm_OZ4mainyyFSiSsXEfU0_" to i8*), %swift.opaque* null)
  %22 = bitcast %Ts15ContiguousArrayV* %0 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %22)
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %0, i64 0, i32 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* %21, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %23 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %21, i64 0, i32 0
  %24 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %23) #19
  call swiftcc void @"$sSMsSkRzrlE4sort2byySb7ElementSTQz_ADtKXE_tKFs15ContiguousArrayVySiG_Tg508$sSTsSL7c33RpzrlE6sortedSayABGyFSbAB_ABtcfu_K7SiG_TG5SiXMTTf1cn_n"(%Ts15ContiguousArrayV* nocapture nonnull dereferenceable(8) %0, %swift.type* nonnull @"$sSiN", %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  %25 = load %swift.error*, %swift.error** %swifterror, align 8
  %.not21 = icmp eq %swift.error* %25, null
  br i1 %.not21, label %26, label %53

26:                                               ; preds = %20
  tail call void @swift_release(%swift.refcounted* %23) #5
  %27 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %22)
  %28 = bitcast %TSa* %1 to i8*
  call void @llvm.lifetime.start.p0i8(i64 8, i8* nonnull %28)
  %29 = icmp slt i64 %9, 1
  br i1 %29, label %76, label %30, !prof !6

30:                                               ; preds = %26
  %31 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 0, i32 0
  %32 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %31) #19
  %33 = call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSlsE3mapySayqd__Gqd__7ElementQzKXEKlFSnySiG_SiTg527$s7llvm_OZ4mainyyFS2iXEfU1_SaySiGTf1cn_n"(i64 1, i64 %9, %Ts28__ContiguousArrayStorageBaseC* %27, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  %._buffer6._storage = getelementptr inbounds %TSa, %TSa* %1, i64 0, i32 0, i32 0
  store %Ts28__ContiguousArrayStorageBaseC* %33, %Ts28__ContiguousArrayStorageBaseC** %._buffer6._storage, align 8
  call swiftcc void @"$sSMsSkRzrlE4sort2byySb7ElementSTQz_ADtKXE_tKFSaySiG_Tg530$s7llvm_OZ4mainyyFSbSi_Sitcfu_Tf1cn_n"(%TSa* nocapture nonnull dereferenceable(8) %1, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %swifterror)
  %34 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #17
  %35 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %34, i64 64, i64 7) #5
  %36 = bitcast %swift.refcounted* %35 to %Ts28__ContiguousArrayStorageBaseC*
  %37 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %35, i64 1
  %._storage7.count._value = bitcast %swift.refcounted* %37 to i64*
  store i64 1, i64* %._storage7.count._value, align 8
  %._storage7._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %35, i64 1, i32 1
  store i64 2, i64* %._storage7._capacityAndFlags, align 8
  %38 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %6, i64 -1)
  %39 = extractvalue { i64, i1 } %38, 1
  br i1 %39, label %77, label %40, !prof !6

40:                                               ; preds = %30
  %41 = extractvalue { i64, i1 } %38, 0
  %42 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %35, i64 2
  %43 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer6._storage, align 8
  %44 = tail call swiftcc { %swift.refcounted*, i8*, i64, i64 } @"$sSMsEy11SubSequenceQzqd__cSXRd__5BoundQyd__5IndexRtzluigSaySiG_s16PartialRangeFromVySiGTg5"(i64 %41, %Ts28__ContiguousArrayStorageBaseC* %43)
  %45 = extractvalue { %swift.refcounted*, i8*, i64, i64 } %44, 0
  %46 = extractvalue { %swift.refcounted*, i8*, i64, i64 } %44, 1
  %47 = extractvalue { %swift.refcounted*, i8*, i64, i64 } %44, 2
  %48 = extractvalue { %swift.refcounted*, i8*, i64, i64 } %44, 3
  %49 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %35, i64 3, i32 1
  %50 = bitcast i64* %49 to %swift.type**
  store %swift.type* @"$sSiN", %swift.type** %50, align 8
  %51 = lshr i64 %48, 1
  %52 = icmp eq i64 %47, %51
  br i1 %52, label %.loopexit, label %56

53:                                               ; preds = %20
  %54 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %55 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %54, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %55) #5
  unreachable

56:                                               ; preds = %40
  %.not22 = icmp slt i64 %47, %51
  br i1 %.not22, label %57, label %78, !prof !8

57:                                               ; preds = %56
  %58 = bitcast i8* %46 to %TSi*
  br label %63

.loopexit.loopexit:                               ; preds = %69
  %59 = extractvalue { i64, i1 } %67, 0
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %40
  %60 = phi i64 [ 0, %40 ], [ %59, %.loopexit.loopexit ]
  %._value11 = bitcast %swift.refcounted* %42 to i64*
  store i64 %60, i64* %._value11, align 8
  tail call void @swift_release(%swift.refcounted* %45) #5
  tail call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %36, i64 32, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i64 10, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*))
  tail call void @swift_release(%swift.refcounted* %35) #5
  tail call void @swift_release(%swift.refcounted* %31) #5
  %61 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %2, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %61) #5
  %62 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %43, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %62) #5
  call void @llvm.lifetime.end.p0i8(i64 8, i8* nonnull %28)
  br label %73

63:                                               ; preds = %69, %57
  %64 = phi i64 [ %47, %57 ], [ %71, %69 ]
  %65 = phi i64 [ 0, %57 ], [ %70, %69 ]
  %._value10 = getelementptr inbounds %TSi, %TSi* %58, i64 %64, i32 0
  %66 = load i64, i64* %._value10, align 8
  %67 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %65, i64 %66)
  %68 = extractvalue { i64, i1 } %67, 1
  br i1 %68, label %79, label %69, !prof !6

69:                                               ; preds = %63
  %70 = extractvalue { i64, i1 } %67, 0
  %71 = add i64 %64, 1
  %72 = icmp eq i64 %71, %51
  br i1 %72, label %.loopexit.loopexit, label %63

73:                                               ; preds = %.loopexit, %11
  ret void

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

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

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

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

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

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

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

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

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

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

; Function Attrs: minsize optsize
define internal swiftcc void @"$s7llvm_OZ4mainyyFSiSsXEfU_"(%TSi* noalias nocapture writeonly sret(%TSi) %0, i64 %1, i64 %2, i64 %3, %swift.bridge* %4) #0 {
  tail call swiftcc void @"$s7llvm_OZ4mainyyFSiSsXEfU_Tm"(%TSi* noalias nocapture writeonly sret(%TSi) %0, i64 %1, i64 %2, i64 %3, %swift.bridge* %4) #0
  ret void
}

; Function Attrs: minsize optsize
define internal swiftcc void @"$s7llvm_OZ4mainyyFSiSsXEfU0_"(%TSi* noalias nocapture writeonly sret(%TSi) %0, i64 %1, i64 %2, i64 %3, %swift.bridge* %4) #0 {
  tail call swiftcc void @"$s7llvm_OZ4mainyyFSiSsXEfU_Tm"(%TSi* noalias nocapture writeonly sret(%TSi) %0, i64 %1, i64 %2, i64 %3, %swift.bridge* %4) #0
  ret void
}

; Function Attrs: minsize optsize
define internal swiftcc void @"$s7llvm_OZ4mainyyFSiSsXEfU_Tm"(%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 !6

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

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

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

7:                                                ; preds = %entry
  %8 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSi_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 !7
  %11 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %9, i64 1
  %12 = getelementptr inbounds %TSrySiG, %TSrySiG* %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 %TSrySiG* %3 to i64*
  store i64 %13, i64* %14, align 8
  %.count._value = getelementptr inbounds %TSrySiG, %TSrySiG* %3, i64 0, i32 1, i32 0
  store i64 %10, i64* %.count._value, align 8
  call swiftcc void @"$sSr15_stableSortImpl2byySbx_xtKXE_tKFSi_Tg530$s7llvm_OZ4mainyyFSbSi_Sitcfu_Tf1cn_n"(%TSrySiG* 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 @"$sSMsSkRzrlE4sort2byySb7ElementSTQz_ADtKXE_tKFs15ContiguousArrayVySiG_Tg508$sSTsSL7c33RpzrlE6sortedSayABGyFSbAB_ABtcfu_K7SiG_TG5SiXMTTf1cn_n"(%Ts15ContiguousArrayV* nocapture dereferenceable(8) %0, %swift.type* %1, %swift.refcounted* swiftself %2, %swift.error** noalias nocapture swifterror dereferenceable(8) %3) local_unnamed_addr #0 {
entry:
  %4 = alloca %TSrySiG, align 8
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %0, i64 0, i32 0, i32 0
  %5 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %6 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %5, i64 0, i32 0
  %7 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %6) #19
  br i1 %7, label %common.ret, label %8

8:                                                ; preds = %entry
  %9 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSi_Tg5"(%Ts28__ContiguousArrayStorageBaseC* %5)
  br label %common.ret

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

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc { %swift.refcounted*, i8*, i64, i64 } @"$sSMsEy11SubSequenceQzqd__cSXRd__5BoundQyd__5IndexRtzluigSaySiG_s16PartialRangeFromVySiGTg5"(i64 %0, %Ts28__ContiguousArrayStorageBaseC* %1) local_unnamed_addr #0 {
entry:
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %1, i64 0, i32 1, i32 0, i32 0, i32 0
  %2 = load i64, i64* %._storage.count._value, align 8, !range !7
  %3 = icmp slt i64 %2, %0
  br i1 %3, label %17, label %4, !prof !6

4:                                                ; preds = %entry
  %5 = icmp slt i64 %0, 0
  br i1 %5, label %18, label %6, !prof !6

6:                                                ; preds = %4
  %7 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %1, i64 0, i32 0
  %8 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %1, i64 1
  %9 = bitcast %Ts28__ContiguousArrayStorageBaseC* %8 to i8*
  %10 = shl nuw i64 %2, 1
  %11 = or i64 %10, 1
  %12 = insertvalue { %swift.refcounted*, i8*, i64, i64 } undef, %swift.refcounted* %7, 0
  %13 = insertvalue { %swift.refcounted*, i8*, i64, i64 } %12, i8* %9, 1
  %14 = insertvalue { %swift.refcounted*, i8*, i64, i64 } %13, i64 %0, 2
  %15 = insertvalue { %swift.refcounted*, i8*, i64, i64 } %14, i64 %11, 3
  %16 = tail call %swift.refcounted* @swift_retain(%swift.refcounted* returned %7) #19
  ret { %swift.refcounted*, i8*, i64, i64 } %15

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

107:                                              ; preds = %99
  %._storage4.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %79, i64 0, i32 1, i32 0, i32 0, i32 0
  %108 = load i64, i64* %._storage4.count._value, align 8, !range !7
  %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 !7
  %._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 !8

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 !7
  %129 = icmp eq i64 %128, %0
  br i1 %129, label %48, label %130

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

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

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

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

; Function Attrs: minsize noinline optsize
define linkonce_odr hidden swiftcc void @"$ss15ContiguousArrayV16_createNewBuffer14bufferIsUnique15minimumCapacity13growForAppendySb_SiSbtFSi_Tg5"(i1 %0, i64 %1, i1 %2, %Ts15ContiguousArrayV* nocapture swiftself dereferenceable(8) %3) local_unnamed_addr #3 {
entry:
  %._buffer._storage = getelementptr inbounds %Ts15ContiguousArrayV, %Ts15ContiguousArrayV* %3, i64 0, i32 0, i32 0
  %4 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %5 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_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 noinline optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSs_Tg5"(i1 %0, i64 %1, i1 %2, %Ts28__ContiguousArrayStorageBaseC* %3) local_unnamed_addr #3 {
entry:
  br i1 %2, label %4, label %14

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

19:                                               ; preds = %14
  %20 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCySiGMD") #17
  %21 = shl i64 %17, 3
  %22 = add i64 %21, 32
  %23 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %20, i64 %22, i64 7) #5
  %24 = bitcast %swift.refcounted* %23 to %Ts28__ContiguousArrayStorageBaseC*
  %25 = bitcast %swift.refcounted* %23 to i8*
  %call.i = tail call i64 @malloc_usable_size(i8* noundef %25) #20
  %gepdiff = add nsw i64 %call.i, -32
  %26 = sdiv i64 %gepdiff, 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) #5
  ret %Ts28__ContiguousArrayStorageBaseC* %30

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

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

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

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

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 !7
  tail call swiftcc void @"$sSa36_reserveCapacityAssumingUniqueBuffer8oldCountySi_tFSs_Tg5"(i64 %23, %TSa* nocapture nonnull swiftself dereferenceable(8) %16)
  %24 = load %Ts28__ContiguousArrayStorageBaseC*, %Ts28__ContiguousArrayStorageBaseC** %._buffer._storage, align 8
  %25 = add nuw nsw i64 %23, 1
  %._storage1.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %24, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %25, i64* %._storage1.count._value, align 8
  %26 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %24, i64 1
  %27 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %26, i64 %23
  %._slice._startIndex._rawBits._value = bitcast %Ts28__ContiguousArrayStorageBaseC* %27 to i64*
  store i64 %18, i64* %._slice._startIndex._rawBits._value, align 8
  %._slice._endIndex = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 0, i32 0, i32 1
  store i64 %19, i64* %._slice._endIndex, align 8
  %._slice._base = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 0, i32 1
  %._slice._base._guts._object._countAndFlagsBits._value = getelementptr %Ts10_ArrayBodyV, %Ts10_ArrayBodyV* %._slice._base, i64 0, i32 0, i32 0, i32 0
  store i64 %20, i64* %._slice._base._guts._object._countAndFlagsBits._value, align 8
  %._slice._base._guts._object._object = getelementptr inbounds %Ts10_ArrayBodyV, %Ts10_ArrayBodyV* %._slice._base, i64 0, i32 0, i32 1
  %28 = bitcast %TSu* %._slice._base._guts._object._object to %swift.bridge**
  store %swift.bridge* %21, %swift.bridge** %28, align 8
  br label %11

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

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

4:                                                ; preds = %entry
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %1, i64 0, i32 1, i32 0, i32 0, i32 0
  %5 = load i64, i64* %._storage.count._value, align 8, !range !7
  %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 !6

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 @"$sSr15_stableSortImpl2byySbx_xtKXE_tKFSi_Tg5048$sSTsSL7ElementRpzrlE6sortedSayABGyFSbAB_ABtcfu_K7SiG_TG5SiXMTTf1cn_n"(%TSrySiG* nocapture dereferenceable(16) %0, %swift.type* %1, %swift.refcounted* swiftself %2, %swift.error** noalias nocapture swifterror dereferenceable(8) %3) local_unnamed_addr #0 {
entry:
  %.count._value = getelementptr inbounds %TSrySiG, %TSrySiG* %0, i64 0, i32 1, i32 0
  %4 = load i64, i64* %.count._value, align 8
  %5 = tail call swiftcc i64 @"$ss22_minimumMergeRunLengthyS2iF"(i64 %4)
  %6 = icmp slt i64 %5, %4
  br i1 %6, label %7, label %12

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

10:                                               ; preds = %7
  %11 = icmp sgt i64 %4, 1
  br i1 %11, label %.thread237, label %19

12:                                               ; preds = %entry
  %13 = icmp slt i64 %4, 0
  br i1 %13, label %290, label %14, !prof !6

14:                                               ; preds = %12
  %15 = icmp eq i64 %4, 0
  br i1 %15, label %common.ret, label %288

.thread237:                                       ; preds = %10
  %16 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa28_allocateBufferUninitialized15minimumCapacitys016_ContiguousArrayB0VyxGSi_tFZ"(i64 %8, %swift.type* nonnull @"$sSiN")
  %._storage60.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %8, i64* %._storage60.count._value, align 8
  %17 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %16, i64 1
  %18 = bitcast %Ts28__ContiguousArrayStorageBaseC* %17 to i8*
  br label %.preheader145

19:                                               ; preds = %10
  %20 = icmp eq i64 %4, 1
  br i1 %20, label %.preheader145, label %..loopexit146_crit_edge

..loopexit146_crit_edge:                          ; preds = %19
  %.pre228 = load i64, i64* getelementptr inbounds (%struct._SwiftEmptyArrayStorage, %struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage, i64 0, i32 1, i32 0), align 8, !range !7
  br label %.loopexit146

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

24:                                               ; preds = %.preheader145, %.loopexit
  %25 = phi i64 [ %82, %.loopexit ], [ 0, %.preheader145 ]
  %26 = phi i64 [ %65, %.loopexit ], [ %4, %.preheader145 ]
  %27 = phi %Ts28__ContiguousArrayStorageBaseC* [ %101, %.loopexit ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %.preheader145 ]
  %28 = add nsw i64 %25, 1
  %29 = icmp slt i64 %28, %26
  br i1 %29, label %30, label %.loopexit142

30:                                               ; preds = %24
  %31 = load i64, i64* %23, align 8
  %32 = inttoptr i64 %31 to %TSi*
  %._value54 = getelementptr inbounds %TSi, %TSi* %32, i64 %28, i32 0
  %33 = load i64, i64* %._value54, align 8
  %._value55 = getelementptr inbounds %TSi, %TSi* %32, i64 %25, i32 0
  %34 = load i64, i64* %._value55, align 8
  %35 = icmp slt i64 %33, %34
  %36 = add nsw i64 %25, 2
  %37 = icmp slt i64 %36, %26
  br i1 %37, label %.preheader143, label %.loopexit144

.preheader143:                                    ; preds = %30, %43
  %38 = phi i64 [ %40, %43 ], [ %33, %30 ]
  %39 = phi i64 [ %44, %43 ], [ %36, %30 ]
  %._value58 = getelementptr inbounds %TSi, %TSi* %32, i64 %39, i32 0
  %40 = load i64, i64* %._value58, align 8
  %41 = icmp sge i64 %40, %38
  %42 = xor i1 %35, %41
  br i1 %42, label %43, label %.loopexit144

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

.loopexit144:                                     ; preds = %43, %.preheader143, %30
  %46 = phi i64 [ %36, %30 ], [ %26, %43 ], [ %39, %.preheader143 ]
  br i1 %35, label %47, label %.loopexit142

47:                                               ; preds = %.loopexit144
  %48 = icmp slt i64 %46, %25
  br i1 %48, label %318, label %49, !prof !6

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

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

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

58:                                               ; preds = %56
  %59 = inttoptr i64 %54 to %TSi*
  %._value56 = getelementptr inbounds %TSi, %TSi* %59, i64 %52, i32 0
  %60 = load i64, i64* %._value56, align 8
  %storemerge.in = getelementptr inbounds %TSi, %TSi* %59, i64 %53, i32 0
  %storemerge = load i64, i64* %storemerge.in, align 8
  store i64 %storemerge, i64* %._value56, align 8
  store i64 %60, i64* %storemerge.in, align 8
  br label %61

61:                                               ; preds = %.preheader141, %58
  %62 = add nsw i64 %52, 1
  %63 = icmp slt i64 %62, %53
  br i1 %63, label %.preheader141, label %.loopexit142

.loopexit142:                                     ; preds = %61, %49, %.loopexit144, %24
  %64 = phi i64 [ %28, %24 ], [ %46, %.loopexit144 ], [ %46, %49 ], [ %46, %61 ]
  %65 = load i64, i64* %.count._value, align 8
  %66 = icmp slt i64 %64, %65
  br i1 %66, label %67, label %.loopexit140

67:                                               ; preds = %.loopexit142
  %68 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %64, i64 %25)
  %69 = extractvalue { i64, i1 } %68, 1
  br i1 %69, label %314, label %70, !prof !6

70:                                               ; preds = %67
  %71 = extractvalue { i64, i1 } %68, 0
  %72 = icmp slt i64 %71, %5
  br i1 %72, label %73, label %.loopexit140

73:                                               ; preds = %70
  %74 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %25, i64 %5)
  %75 = extractvalue { i64, i1 } %74, 1
  br i1 %75, label %315, label %76, !prof !6

76:                                               ; preds = %73
  %77 = extractvalue { i64, i1 } %74, 0
  %78 = tail call i64 @llvm.smin.i64(i64 %77, i64 %65)
  %79 = icmp slt i64 %78, %25
  br i1 %79, label %316, label %80, !prof !6

80:                                               ; preds = %76
  %81 = icmp eq i64 %64, %78
  br i1 %81, label %.loopexit140, label %.preheader

.loopexit140:                                     ; preds = %283, %80, %70, %.loopexit142
  %82 = phi i64 [ %64, %.loopexit142 ], [ %64, %70 ], [ %64, %80 ], [ %78, %283 ]
  %83 = icmp slt i64 %82, %25
  br i1 %83, label %297, label %84, !prof !6

84:                                               ; preds = %.loopexit140
  %85 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 0, i32 0
  %86 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %85) #19
  br i1 %86, label %91, label %87

87:                                               ; preds = %84
  %._storage13.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %27, i64 0, i32 1, i32 0, i32 0, i32 0
  %88 = load i64, i64* %._storage13.count._value, align 8, !range !7
  %89 = add nuw nsw i64 %88, 1
  %90 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSnySiG_Tgq5"(i1 false, i64 %89, i1 true, %Ts28__ContiguousArrayStorageBaseC* %27)
  br label %91

91:                                               ; preds = %84, %87
  %92 = phi %Ts28__ContiguousArrayStorageBaseC* [ %90, %87 ], [ %27, %84 ]
  %._storage14.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %92, i64 0, i32 1, i32 0, i32 0, i32 0
  %93 = load i64, i64* %._storage14.count._value, align 8, !range !7
  %._storage14._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %92, i64 0, i32 1, i32 0, i32 1, i32 0
  %94 = load i64, i64* %._storage14._capacityAndFlags._value, align 8
  %95 = lshr i64 %94, 1
  %96 = add nuw nsw i64 %93, 1
  %.not130 = icmp ugt i64 %95, %93
  br i1 %.not130, label %100, label %97, !prof !8

97:                                               ; preds = %91
  %98 = icmp ugt i64 %94, 1
  %99 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSnySiG_Tgq5"(i1 %98, i64 %96, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %92)
  br label %100

100:                                              ; preds = %91, %97
  %101 = phi %Ts28__ContiguousArrayStorageBaseC* [ %99, %97 ], [ %92, %91 ]
  %._storage15.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %101, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %96, i64* %._storage15.count._value, align 8
  %102 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %101, i64 1
  %tailaddr16 = bitcast %Ts28__ContiguousArrayStorageBaseC* %102 to %TSnySiG*
  %.lowerBound17._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %93, i32 0, i32 0
  store i64 %25, i64* %.lowerBound17._value, align 8
  %.upperBound18._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %93, i32 1, i32 0
  store i64 %82, i64* %.upperBound18._value, align 8
  %.not138 = icmp eq i64 %93, 0
  br i1 %.not138, label %.loopexit, label %thread-pre-split

thread-pre-split:                                 ; preds = %100
  %.lowerBound47._value.phi.trans.insert = bitcast %Ts28__ContiguousArrayStorageBaseC* %102 to i64*
  %103 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %101, i64 1, i32 0, i32 1
  %104 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %101, i64 1, i32 0, i32 1
  %.lowerBound40._value.phi.trans.insert = bitcast %Ts28__ContiguousArrayStorageBaseC* %102 to i64*
  br label %105

105:                                              ; preds = %thread-pre-split, %254
  %106 = phi i64 [ %96, %thread-pre-split ], [ %255, %254 ]
  %107 = add nsw i64 %106, -1
  %108 = icmp ult i64 %106, 4
  br i1 %108, label %136, label %109

109:                                              ; preds = %105
  %110 = add nsw i64 %106, -4
  %.lowerBound22._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %110, i32 0, i32 0
  %111 = load i64, i64* %.lowerBound22._value, align 8
  %.upperBound23._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %110, i32 1, i32 0
  %112 = load i64, i64* %.upperBound23._value, align 8
  %113 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %112, i64 %111)
  %114 = extractvalue { i64, i1 } %113, 0
  %115 = extractvalue { i64, i1 } %113, 1
  br i1 %115, label %298, label %116, !prof !6

116:                                              ; preds = %109
  %117 = add nsw i64 %106, -3
  %.lowerBound24._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %117, i32 0, i32 0
  %118 = load i64, i64* %.lowerBound24._value, align 8
  %.upperBound25._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %117, i32 1, i32 0
  %119 = load i64, i64* %.upperBound25._value, align 8
  %120 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %119, i64 %118)
  %121 = extractvalue { i64, i1 } %120, 0
  %122 = extractvalue { i64, i1 } %120, 1
  br i1 %122, label %299, label %123, !prof !6

123:                                              ; preds = %116
  %124 = add nsw i64 %106, -2
  %.lowerBound26._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %124, i32 0, i32 0
  %125 = load i64, i64* %.lowerBound26._value, align 8
  %.upperBound27._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %124, i32 1, i32 0
  %126 = load i64, i64* %.upperBound27._value, align 8
  %127 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %126, i64 %125)
  %128 = extractvalue { i64, i1 } %127, 1
  br i1 %128, label %300, label %129, !prof !6

129:                                              ; preds = %123
  %130 = extractvalue { i64, i1 } %127, 0
  %131 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %121, i64 %130)
  %132 = extractvalue { i64, i1 } %131, 1
  br i1 %132, label %301, label %133, !prof !6

133:                                              ; preds = %129
  %134 = extractvalue { i64, i1 } %131, 0
  %135 = icmp slt i64 %134, %114
  br i1 %135, label %.thread, label %264

136:                                              ; preds = %105
  %.not139 = icmp eq i64 %106, 3
  br i1 %.not139, label %..thread_crit_edge, label %._crit_edge

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

.thread:                                          ; preds = %..thread_crit_edge, %133
  %.pre-phi232 = phi i64 [ %.pre231, %..thread_crit_edge ], [ %121, %133 ]
  %.pre-phi230 = phi { i64, i1 } [ %.pre229, %..thread_crit_edge ], [ %120, %133 ]
  %137 = extractvalue { i64, i1 } %.pre-phi230, 1
  br i1 %137, label %308, label %138, !prof !6

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

145:                                              ; preds = %138
  %.lowerBound44._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %107, i32 0, i32 0
  %146 = load i64, i64* %.lowerBound44._value, align 8
  %.upperBound45._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %107, i32 1, i32 0
  %147 = load i64, i64* %.upperBound45._value, align 8
  %148 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %147, i64 %146)
  %149 = extractvalue { i64, i1 } %148, 0
  %150 = extractvalue { i64, i1 } %148, 1
  br i1 %150, label %310, label %151, !prof !6

151:                                              ; preds = %145
  %152 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %143, i64 %149)
  %153 = extractvalue { i64, i1 } %152, 1
  br i1 %153, label %311, label %154, !prof !6

154:                                              ; preds = %151
  %155 = extractvalue { i64, i1 } %152, 0
  %156 = icmp slt i64 %155, %.pre-phi232
  br i1 %156, label %.thread137, label %262

._crit_edge:                                      ; preds = %136
  %.pre226 = load i64, i64* %.lowerBound47._value.phi.trans.insert, align 8
  %.pre227 = load i64, i64* %103, align 8
  %.pre233 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %.pre227, i64 %.pre226)
  %.pre235 = extractvalue { i64, i1 } %.pre233, 0
  br label %.thread137

.thread137:                                       ; preds = %154, %._crit_edge
  %.pre-phi236 = phi i64 [ %.pre235, %._crit_edge ], [ %143, %154 ]
  %.pre-phi234 = phi { i64, i1 } [ %.pre233, %._crit_edge ], [ %142, %154 ]
  %157 = extractvalue { i64, i1 } %.pre-phi234, 1
  br i1 %157, label %312, label %158, !prof !6

158:                                              ; preds = %.thread137
  %.lowerBound49._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %107, i32 0, i32 0
  %159 = load i64, i64* %.lowerBound49._value, align 8
  %.upperBound50._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %107, i32 1, i32 0
  %160 = load i64, i64* %.upperBound50._value, align 8
  %161 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %160, i64 %159)
  %162 = extractvalue { i64, i1 } %161, 1
  br i1 %162, label %313, label %163, !prof !6

163:                                              ; preds = %158
  %164 = extractvalue { i64, i1 } %161, 0
  %165 = icmp slt i64 %164, %.pre-phi236
  br i1 %165, label %.loopexit, label %228

.loopexit:                                        ; preds = %254, %163, %100
  %166 = phi i64 [ 1, %100 ], [ %255, %254 ], [ %106, %163 ]
  %167 = icmp slt i64 %82, %65
  br i1 %167, label %24, label %.loopexit146

.loopexit146:                                     ; preds = %.loopexit, %..loopexit146_crit_edge
  %168 = phi i8* [ bitcast (%struct.HeapMetadata** getelementptr inbounds (%struct._SwiftEmptyArrayStorage, %struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage, i64 1, i32 0, i32 0) to i8*), %..loopexit146_crit_edge ], [ %21, %.loopexit ]
  %169 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %..loopexit146_crit_edge ], [ %22, %.loopexit ]
  %170 = phi i64 [ %.pre228, %..loopexit146_crit_edge ], [ %166, %.loopexit ]
  %171 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %..loopexit146_crit_edge ], [ %101, %.loopexit ]
  %172 = icmp ugt i64 %170, 1
  br i1 %172, label %173, label %.loopexit279

173:                                              ; preds = %.loopexit146
  %174 = bitcast %TSrySiG* %0 to i64*
  %175 = load i64, i64* %174, align 8
  %176 = icmp eq i64 %175, 0
  %177 = inttoptr i64 %175 to %TSi*
  br label %178

178:                                              ; preds = %211, %173
  %179 = phi i64 [ %170, %173 ], [ %212, %211 ]
  %180 = phi %Ts28__ContiguousArrayStorageBaseC* [ %171, %173 ], [ %206, %211 ]
  %181 = add nsw i64 %179, -1
  %182 = add nsw i64 %179, -2
  %183 = icmp ult i64 %179, 2
  br i1 %183, label %292, label %184, !prof !6

184:                                              ; preds = %178
  %185 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %180, i64 1
  %tailaddr3 = bitcast %Ts28__ContiguousArrayStorageBaseC* %185 to %TSnySiG*
  %.lowerBound._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr3, i64 %182, i32 0, i32 0
  %186 = load i64, i64* %.lowerBound._value, align 8
  %.upperBound._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr3, i64 %181, i32 1, i32 0
  %187 = load i64, i64* %.upperBound._value, align 8
  br i1 %176, label %293, label %188

188:                                              ; preds = %184
  %.lowerBound4._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr3, i64 %181, i32 0, i32 0
  %189 = load i64, i64* %.lowerBound4._value, align 8
  %190 = getelementptr inbounds %TSi, %TSi* %177, i64 %186
  %191 = bitcast %TSi* %190 to i8*
  %192 = getelementptr inbounds %TSi, %TSi* %177, i64 %189
  %193 = bitcast %TSi* %192 to i8*
  %194 = getelementptr inbounds %TSi, %TSi* %177, i64 %187
  %195 = bitcast %TSi* %194 to i8*
  %196 = tail call swiftcc i1 @"$ss6_merge3low3mid4high6buffer2bySbSpyxG_A3GSbx_xtKXEtKlFSi_Tg5048$sSTsSL7ElementRpzrlE6sortedSayABGyFSbAB_ABtcfu_M7SiG_TG5SiXMTTf1nnnnc_n"(i8* nonnull %191, i8* nonnull %193, i8* nonnull %195, i8* nonnull %168, %swift.type* %1, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %3)
  %197 = load %swift.error*, %swift.error** %3, align 8
  %.not127 = icmp eq %swift.error* %197, null
  br i1 %.not127, label %198, label %.loopexit278

198:                                              ; preds = %188
  %199 = icmp slt i64 %187, %186
  br i1 %199, label %294, label %200, !prof !6

200:                                              ; preds = %198
  %201 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %180, i64 0, i32 0
  %202 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %201) #19
  br i1 %202, label %205, label %203

203:                                              ; preds = %200
  %204 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSnySiG_Tgq5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %180)
  br label %205

205:                                              ; preds = %200, %203
  %206 = phi %Ts28__ContiguousArrayStorageBaseC* [ %204, %203 ], [ %180, %200 ]
  %._storage6.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %206, i64 0, i32 1, i32 0, i32 0, i32 0
  %207 = load i64, i64* %._storage6.count._value, align 8, !range !7
  %.not128 = icmp ult i64 %182, %207
  br i1 %.not128, label %208, label %295, !prof !8

208:                                              ; preds = %205
  %209 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %206, i64 1
  %tailaddr7 = bitcast %Ts28__ContiguousArrayStorageBaseC* %209 to %TSnySiG*
  %.lowerBound8._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr7, i64 %182, i32 0, i32 0
  store i64 %186, i64* %.lowerBound8._value, align 8
  %.upperBound9._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr7, i64 %182, i32 1, i32 0
  store i64 %187, i64* %.upperBound9._value, align 8
  %210 = load i64, i64* %._storage6.count._value, align 8, !range !7
  %.not129 = icmp ugt i64 %179, %210
  br i1 %.not129, label %296, label %211, !prof !6

211:                                              ; preds = %208
  %212 = add nsw i64 %210, -1
  %213 = sub nsw i64 %212, %181
  %214 = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr7, i64 %179
  %215 = bitcast %TSnySiG* %214 to i8*
  %216 = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr7, i64 %181
  %217 = bitcast %TSnySiG* %216 to i8*
  %218 = shl nuw i64 %213, 4
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* nonnull align 8 %217, i8* nonnull align 8 %215, i64 %218, i1 false)
  store i64 %212, i64* %._storage6.count._value, align 8
  %219 = icmp ugt i64 %210, 2
  br i1 %219, label %178, label %.loopexit279

.loopexit279:                                     ; preds = %211, %.loopexit146
  %.lcssa252.sink = phi %Ts28__ContiguousArrayStorageBaseC* [ %171, %.loopexit146 ], [ %206, %211 ]
  %220 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %.lcssa252.sink, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %220) #5
  %._storage1.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %169, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 0, i64* %._storage1.count._value, align 8
  %221 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %169, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %221) #5
  br label %common.ret

common.ret:                                       ; preds = %288, %14, %.loopexit279, %226
  ret void

.loopexit278:                                     ; preds = %237, %188
  %.lcssa271.sink = phi %Ts28__ContiguousArrayStorageBaseC* [ %180, %188 ], [ %101, %237 ]
  %222 = phi %Ts28__ContiguousArrayStorageBaseC* [ %169, %188 ], [ %22, %237 ]
  %223 = phi %swift.error* [ %197, %188 ], [ %247, %237 ]
  %224 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %.lcssa271.sink, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %224) #5
  %._storage5.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %222, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 0, i64* %._storage5.count._value, align 8
  %225 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %222, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %225) #5
  br label %226

226:                                              ; preds = %288, %.loopexit278
  %227 = phi %swift.error* [ %223, %.loopexit278 ], [ %289, %288 ]
  store %swift.error* %227, %swift.error** %3, align 8
  br label %common.ret

228:                                              ; preds = %269, %262, %163
  %229 = phi i64 [ %107, %163 ], [ %.61, %262 ], [ %.62, %269 ]
  %230 = add nsw i64 %229, -1
  %.not131 = icmp ult i64 %230, %106
  br i1 %.not131, label %231, label %303, !prof !8

231:                                              ; preds = %228
  %.lowerBound31._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %230, i32 0, i32 0
  %232 = load i64, i64* %.lowerBound31._value, align 8
  %233 = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %229
  %.upperBound33._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %229, i32 1, i32 0
  %234 = load i64, i64* %.upperBound33._value, align 8
  %235 = load i64, i64* %23, align 8
  %236 = icmp eq i64 %235, 0
  br i1 %236, label %304, label %237

237:                                              ; preds = %231
  %.lowerBound32._value = getelementptr inbounds %TSnySiG, %TSnySiG* %233, i64 0, i32 0, i32 0
  %238 = load i64, i64* %.lowerBound32._value, align 8
  %239 = inttoptr i64 %235 to %TSi*
  %240 = getelementptr inbounds %TSi, %TSi* %239, i64 %232
  %241 = bitcast %TSi* %240 to i8*
  %242 = getelementptr inbounds %TSi, %TSi* %239, i64 %238
  %243 = bitcast %TSi* %242 to i8*
  %244 = getelementptr inbounds %TSi, %TSi* %239, i64 %234
  %245 = bitcast %TSi* %244 to i8*
  %246 = tail call swiftcc i1 @"$ss6_merge3low3mid4high6buffer2bySbSpyxG_A3GSbx_xtKXEtKlFSi_Tg5048$sSTsSL7ElementRpzrlE6sortedSayABGyFSbAB_ABtcfu_M7SiG_TG5SiXMTTf1nnnnc_n"(i8* nonnull %241, i8* nonnull %243, i8* nonnull %245, i8* nonnull %21, %swift.type* %1, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %3)
  %247 = load %swift.error*, %swift.error** %3, align 8
  %.not133 = icmp eq %swift.error* %247, null
  br i1 %.not133, label %248, label %.loopexit278

248:                                              ; preds = %237
  %249 = icmp slt i64 %234, %232
  br i1 %249, label %305, label %250, !prof !6

250:                                              ; preds = %248
  %251 = load i64, i64* %._storage15.count._value, align 8, !range !7
  %.not134 = icmp ult i64 %230, %251
  br i1 %.not134, label %252, label %306, !prof !8

252:                                              ; preds = %250
  store i64 %232, i64* %.lowerBound31._value, align 8
  %.upperBound37._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %230, i32 1, i32 0
  store i64 %234, i64* %.upperBound37._value, align 8
  %253 = load i64, i64* %._storage15.count._value, align 8, !range !7
  %.not135 = icmp ult i64 %229, %253
  br i1 %.not135, label %254, label %307, !prof !8

254:                                              ; preds = %252
  %255 = add nsw i64 %253, -1
  %256 = sub nsw i64 %255, %229
  %257 = getelementptr inbounds %TSnySiG, %TSnySiG* %233, i64 1
  %258 = bitcast %TSnySiG* %257 to i8*
  %259 = bitcast %TSnySiG* %233 to i8*
  %260 = shl nuw i64 %256, 4
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* nonnull align 8 %259, i8* nonnull align 8 %258, i64 %260, i1 false)
  store i64 %255, i64* %._storage15.count._value, align 8
  %261 = icmp ugt i64 %253, 2
  br i1 %261, label %105, label %.loopexit

262:                                              ; preds = %154
  %263 = icmp slt i64 %.pre-phi232, %149
  %.61 = select i1 %263, i64 %139, i64 %107
  br label %228

264:                                              ; preds = %133
  %.lowerBound28._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %107, i32 0, i32 0
  %265 = load i64, i64* %.lowerBound28._value, align 8
  %.upperBound29._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %107, i32 1, i32 0
  %266 = load i64, i64* %.upperBound29._value, align 8
  %267 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %266, i64 %265)
  %268 = extractvalue { i64, i1 } %267, 1
  br i1 %268, label %302, label %269, !prof !6

269:                                              ; preds = %264
  %270 = extractvalue { i64, i1 } %267, 0
  %271 = icmp slt i64 %121, %270
  %.62 = select i1 %271, i64 %124, i64 %107
  br label %228

.preheader:                                       ; preds = %80, %283
  %272 = phi i64 [ %284, %283 ], [ %64, %80 ]
  br label %273

273:                                              ; preds = %286, %.preheader
  %274 = phi i64 [ %272, %.preheader ], [ %275, %286 ]
  %275 = add i64 %274, -1
  %276 = load i64, i64* %23, align 8
  %277 = inttoptr i64 %276 to %TSi*
  %._value = getelementptr inbounds %TSi, %TSi* %277, i64 %274, i32 0
  %278 = load i64, i64* %._value, align 8
  %._value51 = getelementptr inbounds %TSi, %TSi* %277, i64 %275, i32 0
  %279 = load i64, i64* %._value51, align 8
  %280 = icmp slt i64 %278, %279
  br i1 %280, label %281, label %283

281:                                              ; preds = %273
  %282 = icmp eq i64 %276, 0
  br i1 %282, label %317, label %286

283:                                              ; preds = %286, %273
  %284 = add i64 %272, 1
  %285 = icmp eq i64 %284, %78
  br i1 %285, label %.loopexit140, label %.preheader

286:                                              ; preds = %281
  store i64 %279, i64* %._value, align 8
  store i64 %278, i64* %._value51, align 8
  %287 = icmp eq i64 %275, %25
  br i1 %287, label %283, label %273

288:                                              ; preds = %14
  tail call swiftcc void @"$sSMsSKRzrlE14_insertionSort6within9sortedEnd2byySny5IndexSlQzG_AFSb7ElementSTQz_AItKXEtKFSrySiG_Tg508$sSTsSL7h33RpzrlE6sortedSayABGyFSbAB_ABtcfu_N7SiG_TG5SiXMTTf1nncn_n"(i64 0, i64 %4, i64 1, %TSrySiG* nocapture nonnull dereferenceable(16) %0, %swift.type* %1, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %3)
  %289 = load %swift.error*, %swift.error** %3, align 8
  %.not = icmp eq %swift.error* %289, null
  br i1 %.not, label %common.ret, label %226

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc void @"$sSr15_stableSortImpl2byySbx_xtKXE_tKFSi_Tg530$s7llvm_OZ4mainyyFSbSi_Sitcfu_Tf1cn_n"(%TSrySiG* 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 %TSrySiG, %TSrySiG* %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 %290, label %9, !prof !6

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

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

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

.thread237:                                       ; preds = %9
  %15 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$sSa28_allocateBufferUninitialized15minimumCapacitys016_ContiguousArrayB0VyxGSi_tFZ"(i64 %7, %swift.type* nonnull @"$sSiN")
  %._storage60.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %15, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %7, i64* %._storage60.count._value, align 8
  %16 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %15, i64 1
  %17 = bitcast %Ts28__ContiguousArrayStorageBaseC* %16 to i8*
  br label %.preheader145

18:                                               ; preds = %9
  %19 = icmp eq i64 %3, 1
  br i1 %19, label %.preheader145, label %..loopexit146_crit_edge

..loopexit146_crit_edge:                          ; preds = %18
  %.pre228 = load i64, i64* getelementptr inbounds (%struct._SwiftEmptyArrayStorage, %struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage, i64 0, i32 1, i32 0), align 8, !range !7
  br label %.loopexit146

.preheader145:                                    ; preds = %.thread237, %18
  %20 = phi i8* [ %17, %.thread237 ], [ bitcast (%struct.HeapMetadata** getelementptr inbounds (%struct._SwiftEmptyArrayStorage, %struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage, i64 1, i32 0, i32 0) to i8*), %18 ]
  %21 = phi %Ts28__ContiguousArrayStorageBaseC* [ %15, %.thread237 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %18 ]
  %22 = bitcast %TSrySiG* %0 to i64*
  br label %23

23:                                               ; preds = %.preheader145, %.loopexit
  %24 = phi i64 [ %81, %.loopexit ], [ 0, %.preheader145 ]
  %25 = phi i64 [ %64, %.loopexit ], [ %3, %.preheader145 ]
  %26 = phi %Ts28__ContiguousArrayStorageBaseC* [ %100, %.loopexit ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %.preheader145 ]
  %27 = add nsw i64 %24, 1
  %28 = icmp slt i64 %27, %25
  br i1 %28, label %29, label %.loopexit142

29:                                               ; preds = %23
  %30 = load i64, i64* %22, align 8
  %31 = inttoptr i64 %30 to %TSi*
  %._value54 = getelementptr inbounds %TSi, %TSi* %31, i64 %27, i32 0
  %32 = load i64, i64* %._value54, align 8
  %._value55 = getelementptr inbounds %TSi, %TSi* %31, i64 %24, i32 0
  %33 = load i64, i64* %._value55, align 8
  %34 = icmp slt i64 %33, %32
  %35 = add nsw i64 %24, 2
  %36 = icmp slt i64 %35, %25
  br i1 %36, label %.preheader143, label %.loopexit144

.preheader143:                                    ; preds = %29, %42
  %37 = phi i64 [ %39, %42 ], [ %32, %29 ]
  %38 = phi i64 [ %43, %42 ], [ %35, %29 ]
  %._value58 = getelementptr inbounds %TSi, %TSi* %31, i64 %38, i32 0
  %39 = load i64, i64* %._value58, align 8
  %40 = icmp sge i64 %37, %39
  %41 = xor i1 %34, %40
  br i1 %41, label %42, label %.loopexit144

42:                                               ; preds = %.preheader143
  %43 = add nsw i64 %38, 1
  %44 = icmp slt i64 %43, %25
  br i1 %44, label %.preheader143, label %.loopexit144

.loopexit144:                                     ; preds = %42, %.preheader143, %29
  %45 = phi i64 [ %35, %29 ], [ %25, %42 ], [ %38, %.preheader143 ]
  br i1 %34, label %46, label %.loopexit142

46:                                               ; preds = %.loopexit144
  %47 = icmp slt i64 %45, %24
  br i1 %47, label %317, label %48, !prof !6

48:                                               ; preds = %46
  %49 = icmp slt i64 %24, %45
  br i1 %49, label %.preheader141, label %.loopexit142

.preheader141:                                    ; preds = %48, %60
  %50 = phi i64 [ %52, %60 ], [ %45, %48 ]
  %51 = phi i64 [ %61, %60 ], [ %24, %48 ]
  %52 = add nsw i64 %50, -1
  %53 = load i64, i64* %22, align 8
  %54 = icmp eq i64 %51, %52
  br i1 %54, label %60, label %55

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

57:                                               ; preds = %55
  %58 = inttoptr i64 %53 to %TSi*
  %._value56 = getelementptr inbounds %TSi, %TSi* %58, i64 %51, i32 0
  %59 = load i64, i64* %._value56, align 8
  %storemerge.in = getelementptr inbounds %TSi, %TSi* %58, i64 %52, i32 0
  %storemerge = load i64, i64* %storemerge.in, align 8
  store i64 %storemerge, i64* %._value56, align 8
  store i64 %59, i64* %storemerge.in, align 8
  br label %60

60:                                               ; preds = %.preheader141, %57
  %61 = add nsw i64 %51, 1
  %62 = icmp slt i64 %61, %52
  br i1 %62, label %.preheader141, label %.loopexit142

.loopexit142:                                     ; preds = %60, %48, %.loopexit144, %23
  %63 = phi i64 [ %27, %23 ], [ %45, %.loopexit144 ], [ %45, %48 ], [ %45, %60 ]
  %64 = load i64, i64* %.count._value, align 8
  %65 = icmp slt i64 %63, %64
  br i1 %65, label %66, label %.loopexit140

66:                                               ; preds = %.loopexit142
  %67 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %63, i64 %24)
  %68 = extractvalue { i64, i1 } %67, 1
  br i1 %68, label %313, label %69, !prof !6

69:                                               ; preds = %66
  %70 = extractvalue { i64, i1 } %67, 0
  %71 = icmp slt i64 %70, %4
  br i1 %71, label %72, label %.loopexit140

72:                                               ; preds = %69
  %73 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %24, i64 %4)
  %74 = extractvalue { i64, i1 } %73, 1
  br i1 %74, label %314, label %75, !prof !6

75:                                               ; preds = %72
  %76 = extractvalue { i64, i1 } %73, 0
  %77 = tail call i64 @llvm.smin.i64(i64 %76, i64 %64)
  %78 = icmp slt i64 %77, %24
  br i1 %78, label %315, label %79, !prof !6

79:                                               ; preds = %75
  %80 = icmp eq i64 %63, %77
  br i1 %80, label %.loopexit140, label %.preheader

.loopexit140:                                     ; preds = %282, %79, %69, %.loopexit142
  %81 = phi i64 [ %63, %.loopexit142 ], [ %63, %69 ], [ %63, %79 ], [ %77, %282 ]
  %82 = icmp slt i64 %81, %24
  br i1 %82, label %296, label %83, !prof !6

83:                                               ; preds = %.loopexit140
  %84 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %26, i64 0, i32 0
  %85 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %84) #19
  br i1 %85, label %90, label %86

86:                                               ; preds = %83
  %._storage13.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %26, i64 0, i32 1, i32 0, i32 0, i32 0
  %87 = load i64, i64* %._storage13.count._value, align 8, !range !7
  %88 = add nuw nsw i64 %87, 1
  %89 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSnySiG_Tgq5"(i1 false, i64 %88, i1 true, %Ts28__ContiguousArrayStorageBaseC* %26)
  br label %90

90:                                               ; preds = %83, %86
  %91 = phi %Ts28__ContiguousArrayStorageBaseC* [ %89, %86 ], [ %26, %83 ]
  %._storage14.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %91, i64 0, i32 1, i32 0, i32 0, i32 0
  %92 = load i64, i64* %._storage14.count._value, align 8, !range !7
  %._storage14._capacityAndFlags._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %91, i64 0, i32 1, i32 0, i32 1, i32 0
  %93 = load i64, i64* %._storage14._capacityAndFlags._value, align 8
  %94 = lshr i64 %93, 1
  %95 = add nuw nsw i64 %92, 1
  %.not130 = icmp ugt i64 %94, %92
  br i1 %.not130, label %99, label %96, !prof !8

96:                                               ; preds = %90
  %97 = icmp ugt i64 %93, 1
  %98 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNew14bufferIsUnique15minimumCapacity13growForAppendAByxGSb_SiSbtFSnySiG_Tgq5"(i1 %97, i64 %95, i1 true, %Ts28__ContiguousArrayStorageBaseC* nonnull %91)
  br label %99

99:                                               ; preds = %90, %96
  %100 = phi %Ts28__ContiguousArrayStorageBaseC* [ %98, %96 ], [ %91, %90 ]
  %._storage15.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %100, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 %95, i64* %._storage15.count._value, align 8
  %101 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %100, i64 1
  %tailaddr16 = bitcast %Ts28__ContiguousArrayStorageBaseC* %101 to %TSnySiG*
  %.lowerBound17._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %92, i32 0, i32 0
  store i64 %24, i64* %.lowerBound17._value, align 8
  %.upperBound18._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %92, i32 1, i32 0
  store i64 %81, i64* %.upperBound18._value, align 8
  %.not138 = icmp eq i64 %92, 0
  br i1 %.not138, label %.loopexit, label %thread-pre-split

thread-pre-split:                                 ; preds = %99
  %.lowerBound47._value.phi.trans.insert = bitcast %Ts28__ContiguousArrayStorageBaseC* %101 to i64*
  %102 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %100, i64 1, i32 0, i32 1
  %103 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %100, i64 1, i32 0, i32 1
  %.lowerBound40._value.phi.trans.insert = bitcast %Ts28__ContiguousArrayStorageBaseC* %101 to i64*
  br label %104

104:                                              ; preds = %thread-pre-split, %253
  %105 = phi i64 [ %95, %thread-pre-split ], [ %254, %253 ]
  %106 = add nsw i64 %105, -1
  %107 = icmp ult i64 %105, 4
  br i1 %107, label %135, label %108

108:                                              ; preds = %104
  %109 = add nsw i64 %105, -4
  %.lowerBound22._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %109, i32 0, i32 0
  %110 = load i64, i64* %.lowerBound22._value, align 8
  %.upperBound23._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %109, i32 1, i32 0
  %111 = load i64, i64* %.upperBound23._value, align 8
  %112 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %111, i64 %110)
  %113 = extractvalue { i64, i1 } %112, 0
  %114 = extractvalue { i64, i1 } %112, 1
  br i1 %114, label %297, label %115, !prof !6

115:                                              ; preds = %108
  %116 = add nsw i64 %105, -3
  %.lowerBound24._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %116, i32 0, i32 0
  %117 = load i64, i64* %.lowerBound24._value, align 8
  %.upperBound25._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %116, i32 1, i32 0
  %118 = load i64, i64* %.upperBound25._value, align 8
  %119 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %118, i64 %117)
  %120 = extractvalue { i64, i1 } %119, 0
  %121 = extractvalue { i64, i1 } %119, 1
  br i1 %121, label %298, label %122, !prof !6

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

128:                                              ; preds = %122
  %129 = extractvalue { i64, i1 } %126, 0
  %130 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %120, i64 %129)
  %131 = extractvalue { i64, i1 } %130, 1
  br i1 %131, label %300, label %132, !prof !6

132:                                              ; preds = %128
  %133 = extractvalue { i64, i1 } %130, 0
  %134 = icmp slt i64 %133, %113
  br i1 %134, label %.thread, label %263

135:                                              ; preds = %104
  %.not139 = icmp eq i64 %105, 3
  br i1 %.not139, label %..thread_crit_edge, label %._crit_edge

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

.thread:                                          ; preds = %..thread_crit_edge, %132
  %.pre-phi232 = phi i64 [ %.pre231, %..thread_crit_edge ], [ %120, %132 ]
  %.pre-phi230 = phi { i64, i1 } [ %.pre229, %..thread_crit_edge ], [ %119, %132 ]
  %136 = extractvalue { i64, i1 } %.pre-phi230, 1
  br i1 %136, label %307, label %137, !prof !6

137:                                              ; preds = %.thread
  %138 = add nsw i64 %105, -2
  %.lowerBound42._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %138, i32 0, i32 0
  %139 = load i64, i64* %.lowerBound42._value, align 8
  %.upperBound43._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %138, i32 1, i32 0
  %140 = load i64, i64* %.upperBound43._value, align 8
  %141 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %140, i64 %139)
  %142 = extractvalue { i64, i1 } %141, 0
  %143 = extractvalue { i64, i1 } %141, 1
  br i1 %143, label %308, label %144, !prof !6

144:                                              ; preds = %137
  %.lowerBound44._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %106, i32 0, i32 0
  %145 = load i64, i64* %.lowerBound44._value, align 8
  %.upperBound45._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %106, i32 1, i32 0
  %146 = load i64, i64* %.upperBound45._value, align 8
  %147 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %146, i64 %145)
  %148 = extractvalue { i64, i1 } %147, 0
  %149 = extractvalue { i64, i1 } %147, 1
  br i1 %149, label %309, label %150, !prof !6

150:                                              ; preds = %144
  %151 = tail call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %142, i64 %148)
  %152 = extractvalue { i64, i1 } %151, 1
  br i1 %152, label %310, label %153, !prof !6

153:                                              ; preds = %150
  %154 = extractvalue { i64, i1 } %151, 0
  %155 = icmp slt i64 %154, %.pre-phi232
  br i1 %155, label %.thread137, label %261

._crit_edge:                                      ; preds = %135
  %.pre226 = load i64, i64* %.lowerBound47._value.phi.trans.insert, align 8
  %.pre227 = load i64, i64* %102, align 8
  %.pre233 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %.pre227, i64 %.pre226)
  %.pre235 = extractvalue { i64, i1 } %.pre233, 0
  br label %.thread137

.thread137:                                       ; preds = %153, %._crit_edge
  %.pre-phi236 = phi i64 [ %.pre235, %._crit_edge ], [ %142, %153 ]
  %.pre-phi234 = phi { i64, i1 } [ %.pre233, %._crit_edge ], [ %141, %153 ]
  %156 = extractvalue { i64, i1 } %.pre-phi234, 1
  br i1 %156, label %311, label %157, !prof !6

157:                                              ; preds = %.thread137
  %.lowerBound49._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %106, i32 0, i32 0
  %158 = load i64, i64* %.lowerBound49._value, align 8
  %.upperBound50._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %106, i32 1, i32 0
  %159 = load i64, i64* %.upperBound50._value, align 8
  %160 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %159, i64 %158)
  %161 = extractvalue { i64, i1 } %160, 1
  br i1 %161, label %312, label %162, !prof !6

162:                                              ; preds = %157
  %163 = extractvalue { i64, i1 } %160, 0
  %164 = icmp slt i64 %163, %.pre-phi236
  br i1 %164, label %.loopexit, label %227

.loopexit:                                        ; preds = %253, %162, %99
  %165 = phi i64 [ 1, %99 ], [ %254, %253 ], [ %105, %162 ]
  %166 = icmp slt i64 %81, %64
  br i1 %166, label %23, label %.loopexit146

.loopexit146:                                     ; preds = %.loopexit, %..loopexit146_crit_edge
  %167 = phi i8* [ bitcast (%struct.HeapMetadata** getelementptr inbounds (%struct._SwiftEmptyArrayStorage, %struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage, i64 1, i32 0, i32 0) to i8*), %..loopexit146_crit_edge ], [ %20, %.loopexit ]
  %168 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %..loopexit146_crit_edge ], [ %21, %.loopexit ]
  %169 = phi i64 [ %.pre228, %..loopexit146_crit_edge ], [ %165, %.loopexit ]
  %170 = phi %Ts28__ContiguousArrayStorageBaseC* [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %..loopexit146_crit_edge ], [ %100, %.loopexit ]
  %171 = icmp ugt i64 %169, 1
  br i1 %171, label %172, label %.loopexit279

172:                                              ; preds = %.loopexit146
  %173 = bitcast %TSrySiG* %0 to i64*
  %174 = load i64, i64* %173, align 8
  %175 = icmp eq i64 %174, 0
  %176 = inttoptr i64 %174 to %TSi*
  br label %177

177:                                              ; preds = %210, %172
  %178 = phi i64 [ %169, %172 ], [ %211, %210 ]
  %179 = phi %Ts28__ContiguousArrayStorageBaseC* [ %170, %172 ], [ %205, %210 ]
  %180 = add nsw i64 %178, -1
  %181 = add nsw i64 %178, -2
  %182 = icmp ult i64 %178, 2
  br i1 %182, label %291, label %183, !prof !6

183:                                              ; preds = %177
  %184 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %179, i64 1
  %tailaddr3 = bitcast %Ts28__ContiguousArrayStorageBaseC* %184 to %TSnySiG*
  %.lowerBound._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr3, i64 %181, i32 0, i32 0
  %185 = load i64, i64* %.lowerBound._value, align 8
  %.upperBound._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr3, i64 %180, i32 1, i32 0
  %186 = load i64, i64* %.upperBound._value, align 8
  br i1 %175, label %292, label %187

187:                                              ; preds = %183
  %.lowerBound4._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr3, i64 %180, i32 0, i32 0
  %188 = load i64, i64* %.lowerBound4._value, align 8
  %189 = getelementptr inbounds %TSi, %TSi* %176, i64 %185
  %190 = bitcast %TSi* %189 to i8*
  %191 = getelementptr inbounds %TSi, %TSi* %176, i64 %188
  %192 = bitcast %TSi* %191 to i8*
  %193 = getelementptr inbounds %TSi, %TSi* %176, i64 %186
  %194 = bitcast %TSi* %193 to i8*
  %195 = tail call swiftcc i1 @"$ss6_merge3low3mid4high6buffer2bySbSpyxG_A3GSbx_xtKXEtKlFSi_Tg530$s7llvm_OZ4mainyyFSbSi_Sitcfu_Tf1nnnnc_n"(i8* nonnull %190, i8* nonnull %192, i8* nonnull %194, i8* nonnull %167, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %2)
  %196 = load %swift.error*, %swift.error** %2, align 8
  %.not127 = icmp eq %swift.error* %196, null
  br i1 %.not127, label %197, label %.loopexit278

197:                                              ; preds = %187
  %198 = icmp slt i64 %186, %185
  br i1 %198, label %293, label %199, !prof !6

199:                                              ; preds = %197
  %200 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %179, i64 0, i32 0
  %201 = tail call zeroext i1 @swift_isUniquelyReferenced_nonNull_native(%swift.refcounted* %200) #19
  br i1 %201, label %204, label %202

202:                                              ; preds = %199
  %203 = tail call swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSnySiG_Tgq5"(%Ts28__ContiguousArrayStorageBaseC* nonnull %179)
  br label %204

204:                                              ; preds = %199, %202
  %205 = phi %Ts28__ContiguousArrayStorageBaseC* [ %203, %202 ], [ %179, %199 ]
  %._storage6.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %205, i64 0, i32 1, i32 0, i32 0, i32 0
  %206 = load i64, i64* %._storage6.count._value, align 8, !range !7
  %.not128 = icmp ult i64 %181, %206
  br i1 %.not128, label %207, label %294, !prof !8

207:                                              ; preds = %204
  %208 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %205, i64 1
  %tailaddr7 = bitcast %Ts28__ContiguousArrayStorageBaseC* %208 to %TSnySiG*
  %.lowerBound8._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr7, i64 %181, i32 0, i32 0
  store i64 %185, i64* %.lowerBound8._value, align 8
  %.upperBound9._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr7, i64 %181, i32 1, i32 0
  store i64 %186, i64* %.upperBound9._value, align 8
  %209 = load i64, i64* %._storage6.count._value, align 8, !range !7
  %.not129 = icmp ugt i64 %178, %209
  br i1 %.not129, label %295, label %210, !prof !6

210:                                              ; preds = %207
  %211 = add nsw i64 %209, -1
  %212 = sub nsw i64 %211, %180
  %213 = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr7, i64 %178
  %214 = bitcast %TSnySiG* %213 to i8*
  %215 = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr7, i64 %180
  %216 = bitcast %TSnySiG* %215 to i8*
  %217 = shl nuw i64 %212, 4
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* nonnull align 8 %216, i8* nonnull align 8 %214, i64 %217, i1 false)
  store i64 %211, i64* %._storage6.count._value, align 8
  %218 = icmp ugt i64 %209, 2
  br i1 %218, label %177, label %.loopexit279

.loopexit279:                                     ; preds = %210, %.loopexit146
  %.lcssa252.sink = phi %Ts28__ContiguousArrayStorageBaseC* [ %170, %.loopexit146 ], [ %205, %210 ]
  %219 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %.lcssa252.sink, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %219) #5
  %._storage1.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %168, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 0, i64* %._storage1.count._value, align 8
  %220 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %168, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %220) #5
  br label %common.ret

common.ret:                                       ; preds = %287, %13, %.loopexit279, %225
  ret void

.loopexit278:                                     ; preds = %236, %187
  %.lcssa271.sink = phi %Ts28__ContiguousArrayStorageBaseC* [ %179, %187 ], [ %100, %236 ]
  %221 = phi %Ts28__ContiguousArrayStorageBaseC* [ %168, %187 ], [ %21, %236 ]
  %222 = phi %swift.error* [ %196, %187 ], [ %246, %236 ]
  %223 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %.lcssa271.sink, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %223) #5
  %._storage5.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %221, i64 0, i32 1, i32 0, i32 0, i32 0
  store i64 0, i64* %._storage5.count._value, align 8
  %224 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %221, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %224) #5
  br label %225

225:                                              ; preds = %287, %.loopexit278
  %226 = phi %swift.error* [ %222, %.loopexit278 ], [ %288, %287 ]
  store %swift.error* %226, %swift.error** %2, align 8
  br label %common.ret

227:                                              ; preds = %268, %261, %162
  %228 = phi i64 [ %106, %162 ], [ %.61, %261 ], [ %.62, %268 ]
  %229 = add nsw i64 %228, -1
  %.not131 = icmp ult i64 %229, %105
  br i1 %.not131, label %230, label %302, !prof !8

230:                                              ; preds = %227
  %.lowerBound31._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %229, i32 0, i32 0
  %231 = load i64, i64* %.lowerBound31._value, align 8
  %232 = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %228
  %.upperBound33._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %228, i32 1, i32 0
  %233 = load i64, i64* %.upperBound33._value, align 8
  %234 = load i64, i64* %22, align 8
  %235 = icmp eq i64 %234, 0
  br i1 %235, label %303, label %236

236:                                              ; preds = %230
  %.lowerBound32._value = getelementptr inbounds %TSnySiG, %TSnySiG* %232, i64 0, i32 0, i32 0
  %237 = load i64, i64* %.lowerBound32._value, align 8
  %238 = inttoptr i64 %234 to %TSi*
  %239 = getelementptr inbounds %TSi, %TSi* %238, i64 %231
  %240 = bitcast %TSi* %239 to i8*
  %241 = getelementptr inbounds %TSi, %TSi* %238, i64 %237
  %242 = bitcast %TSi* %241 to i8*
  %243 = getelementptr inbounds %TSi, %TSi* %238, i64 %233
  %244 = bitcast %TSi* %243 to i8*
  %245 = tail call swiftcc i1 @"$ss6_merge3low3mid4high6buffer2bySbSpyxG_A3GSbx_xtKXEtKlFSi_Tg530$s7llvm_OZ4mainyyFSbSi_Sitcfu_Tf1nnnnc_n"(i8* nonnull %240, i8* nonnull %242, i8* nonnull %244, i8* nonnull %20, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %2)
  %246 = load %swift.error*, %swift.error** %2, align 8
  %.not133 = icmp eq %swift.error* %246, null
  br i1 %.not133, label %247, label %.loopexit278

247:                                              ; preds = %236
  %248 = icmp slt i64 %233, %231
  br i1 %248, label %304, label %249, !prof !6

249:                                              ; preds = %247
  %250 = load i64, i64* %._storage15.count._value, align 8, !range !7
  %.not134 = icmp ult i64 %229, %250
  br i1 %.not134, label %251, label %305, !prof !8

251:                                              ; preds = %249
  store i64 %231, i64* %.lowerBound31._value, align 8
  %.upperBound37._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %229, i32 1, i32 0
  store i64 %233, i64* %.upperBound37._value, align 8
  %252 = load i64, i64* %._storage15.count._value, align 8, !range !7
  %.not135 = icmp ult i64 %228, %252
  br i1 %.not135, label %253, label %306, !prof !8

253:                                              ; preds = %251
  %254 = add nsw i64 %252, -1
  %255 = sub nsw i64 %254, %228
  %256 = getelementptr inbounds %TSnySiG, %TSnySiG* %232, i64 1
  %257 = bitcast %TSnySiG* %256 to i8*
  %258 = bitcast %TSnySiG* %232 to i8*
  %259 = shl nuw i64 %255, 4
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* nonnull align 8 %258, i8* nonnull align 8 %257, i64 %259, i1 false)
  store i64 %254, i64* %._storage15.count._value, align 8
  %260 = icmp ugt i64 %252, 2
  br i1 %260, label %104, label %.loopexit

261:                                              ; preds = %153
  %262 = icmp slt i64 %.pre-phi232, %148
  %.61 = select i1 %262, i64 %138, i64 %106
  br label %227

263:                                              ; preds = %132
  %.lowerBound28._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %106, i32 0, i32 0
  %264 = load i64, i64* %.lowerBound28._value, align 8
  %.upperBound29._value = getelementptr inbounds %TSnySiG, %TSnySiG* %tailaddr16, i64 %106, i32 1, i32 0
  %265 = load i64, i64* %.upperBound29._value, align 8
  %266 = tail call { i64, i1 } @llvm.ssub.with.overflow.i64(i64 %265, i64 %264)
  %267 = extractvalue { i64, i1 } %266, 1
  br i1 %267, label %301, label %268, !prof !6

268:                                              ; preds = %263
  %269 = extractvalue { i64, i1 } %266, 0
  %270 = icmp slt i64 %120, %269
  %.62 = select i1 %270, i64 %123, i64 %106
  br label %227

.preheader:                                       ; preds = %79, %282
  %271 = phi i64 [ %283, %282 ], [ %63, %79 ]
  br label %272

272:                                              ; preds = %285, %.preheader
  %273 = phi i64 [ %271, %.preheader ], [ %274, %285 ]
  %274 = add i64 %273, -1
  %275 = load i64, i64* %22, align 8
  %276 = inttoptr i64 %275 to %TSi*
  %._value = getelementptr inbounds %TSi, %TSi* %276, i64 %273, i32 0
  %277 = load i64, i64* %._value, align 8
  %._value51 = getelementptr inbounds %TSi, %TSi* %276, i64 %274, i32 0
  %278 = load i64, i64* %._value51, align 8
  %279 = icmp slt i64 %278, %277
  br i1 %279, label %280, label %282

280:                                              ; preds = %272
  %281 = icmp eq i64 %275, 0
  br i1 %281, label %316, label %285

282:                                              ; preds = %285, %272
  %283 = add i64 %271, 1
  %284 = icmp eq i64 %283, %77
  br i1 %284, label %.loopexit140, label %.preheader

285:                                              ; preds = %280
  store i64 %278, i64* %._value, align 8
  store i64 %277, i64* %._value51, align 8
  %286 = icmp eq i64 %274, %24
  br i1 %286, label %282, label %272

287:                                              ; preds = %13
  tail call swiftcc void @"$sSMsSKRzrlE14_insertionSort6within9sortedEnd2byySny5IndexSlQzG_AFSb7ElementSTQz_AItKXEtKFSrySiG_Tg530$s7llvm_OZ4mainyyFSbSi_Sitcfu_Tf1nncn_n"(i64 0, i64 %3, i64 1, %TSrySiG* nocapture nonnull dereferenceable(16) %0, %swift.refcounted* swiftself undef, %swift.error** noalias nocapture nonnull swifterror dereferenceable(8) %2)
  %288 = load %swift.error*, %swift.error** %2, align 8
  %.not = icmp eq %swift.error* %288, null
  br i1 %.not, label %common.ret, label %225

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

318:                                              ; preds = %55
  tail call void asm sideeffect "", "n"(i32 52) #5
  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_AItKXEtKFSrySiG_Tg508$sSTsSL7h33RpzrlE6sortedSayABGyFSbAB_ABtcfu_N7SiG_TG5SiXMTTf1nncn_n"(i64 %0, i64 %1, i64 %2, %TSrySiG* nocapture dereferenceable(16) %3, %swift.type* %4, %swift.refcounted* swiftself %5, %swift.error** noalias nocapture swifterror dereferenceable(8) %6) local_unnamed_addr #0 {
entry:
  %7 = icmp eq i64 %2, %1
  br i1 %7, label %.loopexit, label %.preheader

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

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

9:                                                ; preds = %.preheader, %21
  %10 = phi i64 [ %22, %21 ], [ %2, %.preheader ]
  br label %11

11:                                               ; preds = %24, %9
  %12 = phi i64 [ %10, %9 ], [ %13, %24 ]
  %13 = add i64 %12, -1
  %14 = load i64, i64* %8, align 8
  %15 = inttoptr i64 %14 to %TSi*
  %._value = getelementptr inbounds %TSi, %TSi* %15, i64 %12, i32 0
  %16 = load i64, i64* %._value, align 8
  %._value1 = getelementptr inbounds %TSi, %TSi* %15, i64 %13, i32 0
  %17 = load i64, i64* %._value1, align 8
  %18 = icmp slt i64 %16, %17
  br i1 %18, label %19, label %21

19:                                               ; preds = %11
  %20 = icmp eq i64 %14, 0
  br i1 %20, label %26, label %24

21:                                               ; preds = %24, %11
  %22 = add i64 %10, 1
  %23 = icmp eq i64 %22, %1
  br i1 %23, label %.loopexit, label %9

24:                                               ; preds = %19
  store i64 %17, i64* %._value, align 8
  store i64 %16, i64* %._value1, align 8
  %25 = icmp eq i64 %13, %0
  br i1 %25, label %21, label %11

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

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc void @"$sSMsSKRzrlE14_insertionSort6within9sortedEnd2byySny5IndexSlQzG_AFSb7ElementSTQz_AItKXEtKFSrySiG_Tg530$s7llvm_OZ4mainyyFSbSi_Sitcfu_Tf1nncn_n"(i64 %0, i64 %1, i64 %2, %TSrySiG* 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 %TSrySiG* %3 to i64*
  br label %8

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

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

10:                                               ; preds = %23, %8
  %11 = phi i64 [ %9, %8 ], [ %12, %23 ]
  %12 = add i64 %11, -1
  %13 = load i64, i64* %7, align 8
  %14 = inttoptr i64 %13 to %TSi*
  %._value = getelementptr inbounds %TSi, %TSi* %14, i64 %11, i32 0
  %15 = load i64, i64* %._value, align 8
  %._value1 = getelementptr inbounds %TSi, %TSi* %14, i64 %12, i32 0
  %16 = load i64, i64* %._value1, align 8
  %17 = icmp slt i64 %16, %15
  br i1 %17, label %18, label %20

18:                                               ; preds = %10
  %19 = icmp eq i64 %13, 0
  br i1 %19, label %25, label %23

20:                                               ; preds = %23, %10
  %21 = add i64 %9, 1
  %22 = icmp eq i64 %21, %1
  br i1 %22, label %.loopexit, label %8

23:                                               ; preds = %18
  store i64 %16, i64* %._value, align 8
  store i64 %15, i64* %._value1, align 8
  %24 = icmp eq i64 %12, %0
  br i1 %24, label %20, label %10

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

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

15:                                               ; preds = %entry
  %16 = bitcast i8* %0 to %TSi*
  %17 = getelementptr inbounds %TSi, %TSi* %16, i64 %10
  %18 = bitcast %TSi* %17 to i8*
  %19 = icmp ugt i8* %18, %3
  %20 = icmp eq i8* %3, %0
  %or.cond5.i = select i1 %20, i1 %19, i1 false
  br i1 %or.cond5.i, label %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit", label %.sink.split.i

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

"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit": ; preds = %15, %.sink.split.i
  %22 = bitcast i8* %3 to %TSi*
  %23 = getelementptr inbounds %TSi, %TSi* %22, i64 %10
  %24 = bitcast %TSi* %23 to i8*
  %25 = icmp ugt i8* %24, %3
  %26 = icmp ult i8* %1, %2
  %or.cond = select i1 %25, i1 %26, i1 false
  br i1 %or.cond, label %.preheader, label %.loopexit

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

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

"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36": ; preds = %27, %.sink.split.i35
  %34 = bitcast i8* %3 to %TSi*
  %35 = getelementptr inbounds %TSi, %TSi* %34, i64 %13
  %36 = bitcast %TSi* %35 to i8*
  %37 = icmp ugt i8* %36, %3
  %38 = icmp ult i8* %0, %1
  %or.cond11 = select i1 %37, i1 %38, i1 false
  br i1 %or.cond11, label %.preheader40, label %.loopexit

.preheader:                                       ; preds = %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit", %54
  %39 = phi i8* [ %55, %54 ], [ %3, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit" ]
  %40 = phi i8* [ %57, %54 ], [ %0, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit" ]
  %41 = phi i8* [ %56, %54 ], [ %1, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit" ]
  %._value2 = bitcast i8* %41 to i64*
  %42 = load i64, i64* %._value2, align 8
  %._value3 = bitcast i8* %39 to i64*
  %43 = load i64, i64* %._value3, align 8
  %44 = icmp slt i64 %42, %43
  br i1 %44, label %45, label %49

45:                                               ; preds = %.preheader
  %46 = getelementptr inbounds i8, i8* %41, i64 8
  %47 = icmp ult i8* %40, %46
  %48 = icmp eq i8* %40, %41
  %or.cond60 = select i1 %48, i1 %47, i1 false
  br i1 %or.cond60, label %54, label %.sink.split

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

.sink.split:                                      ; preds = %45, %49
  %.sink = phi i64 [ %43, %49 ], [ %42, %45 ]
  %.ph = phi i8* [ %50, %49 ], [ %39, %45 ]
  %.ph53 = phi i8* [ %41, %49 ], [ %46, %45 ]
  %53 = bitcast i8* %40 to i64*
  store i64 %.sink, i64* %53, align 8
  br label %54

54:                                               ; preds = %49, %45, %.sink.split
  %55 = phi i8* [ %.ph, %.sink.split ], [ %39, %45 ], [ %50, %49 ]
  %56 = phi i8* [ %.ph53, %.sink.split ], [ %46, %45 ], [ %41, %49 ]
  %57 = getelementptr inbounds i8, i8* %40, i64 8
  %58 = icmp ult i8* %55, %24
  %59 = icmp ult i8* %56, %2
  %or.cond7 = select i1 %58, i1 %59, i1 false
  br i1 %or.cond7, label %.preheader, label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %54
  %.pre = bitcast i8* %55 to %TSi*
  br label %.loopexit

.loopexit:                                        ; preds = %88, %.loopexit.loopexit, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36", %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit"
  %.pre-phi = phi %TSi* [ %.pre, %.loopexit.loopexit ], [ %34, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36" ], [ %22, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit" ], [ %34, %88 ]
  %60 = phi i8* [ %24, %.loopexit.loopexit ], [ %36, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36" ], [ %24, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit" ], [ %89, %88 ]
  %61 = phi i8* [ %55, %.loopexit.loopexit ], [ %3, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36" ], [ %3, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit" ], [ %3, %88 ]
  %62 = phi i8* [ %57, %.loopexit.loopexit ], [ %1, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36" ], [ %0, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit" ], [ %90, %88 ]
  %63 = ptrtoint i8* %60 to i64
  %64 = ptrtoint i8* %61 to i64
  %65 = sub i64 %63, %64
  %66 = sdiv i64 %65, 8
  %67 = getelementptr inbounds %TSi, %TSi* %.pre-phi, i64 %66
  %68 = bitcast %TSi* %67 to i8*
  %69 = icmp ult i8* %62, %68
  %70 = icmp eq i8* %62, %61
  %or.cond5.i37 = select i1 %70, i1 %69, i1 false
  br i1 %or.cond5.i37, label %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit39", label %.sink.split.i38

.sink.split.i38:                                  ; preds = %.loopexit
  %71 = shl nuw nsw i64 %66, 3
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* align 8 %62, i8* align 8 %61, i64 %71, i1 false)
  br label %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit39"

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

.preheader40:                                     ; preds = %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36", %88
  %72 = phi i8* [ %75, %88 ], [ %2, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36" ]
  %73 = phi i8* [ %89, %88 ], [ %36, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36" ]
  %74 = phi i8* [ %90, %88 ], [ %1, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36" ]
  %75 = getelementptr inbounds i8, i8* %72, i64 -8
  %76 = getelementptr inbounds i8, i8* %73, i64 -8
  %._value = bitcast i8* %76 to i64*
  %77 = load i64, i64* %._value, align 8
  %78 = getelementptr inbounds i8, i8* %74, i64 -8
  %._value1 = bitcast i8* %78 to i64*
  %79 = load i64, i64* %._value1, align 8
  %80 = icmp slt i64 %77, %79
  br i1 %80, label %81, label %84

81:                                               ; preds = %.preheader40
  %82 = icmp ult i8* %75, %74
  %83 = icmp eq i8* %72, %74
  %or.cond62 = select i1 %83, i1 %82, i1 false
  br i1 %or.cond62, label %88, label %.sink.split55

84:                                               ; preds = %.preheader40
  %85 = icmp ult i8* %75, %73
  %86 = icmp eq i8* %72, %73
  %or.cond63 = select i1 %86, i1 %85, i1 false
  br i1 %or.cond63, label %88, label %.sink.split55

.sink.split55:                                    ; preds = %81, %84
  %.sink58 = phi i64 [ %77, %84 ], [ %79, %81 ]
  %.ph56 = phi i8* [ %76, %84 ], [ %73, %81 ]
  %.ph57 = phi i8* [ %74, %84 ], [ %78, %81 ]
  %87 = bitcast i8* %75 to i64*
  store i64 %.sink58, i64* %87, align 8
  br label %88

88:                                               ; preds = %84, %81, %.sink.split55
  %89 = phi i8* [ %.ph56, %.sink.split55 ], [ %73, %81 ], [ %76, %84 ]
  %90 = phi i8* [ %.ph57, %.sink.split55 ], [ %78, %81 ], [ %74, %84 ]
  %91 = icmp ugt i8* %89, %3
  %92 = icmp ugt i8* %90, %0
  %or.cond15 = select i1 %91, i1 %92, i1 false
  br i1 %or.cond15, label %.preheader40, label %.loopexit
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc i1 @"$ss6_merge3low3mid4high6buffer2bySbSpyxG_A3GSbx_xtKXEtKlFSi_Tg530$s7llvm_OZ4mainyyFSbSi_Sitcfu_Tf1nnnnc_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, 8
  %10 = ptrtoint i8* %2 to i64
  %11 = sub i64 %10, %6
  %12 = sdiv i64 %11, 8
  %13 = icmp slt i64 %9, %12
  br i1 %13, label %14, label %26

14:                                               ; preds = %entry
  %15 = bitcast i8* %0 to %TSi*
  %16 = getelementptr inbounds %TSi, %TSi* %15, i64 %9
  %17 = bitcast %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_Tg5.exit", label %.sink.split.i

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

"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit": ; preds = %14, %.sink.split.i
  %21 = bitcast i8* %3 to %TSi*
  %22 = getelementptr inbounds %TSi, %TSi* %21, i64 %9
  %23 = bitcast %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*
  %28 = getelementptr inbounds %TSi, %TSi* %27, i64 %12
  %29 = bitcast %TSi* %28 to i8*
  %30 = icmp ugt i8* %29, %3
  %31 = icmp eq i8* %3, %1
  %or.cond5.i34 = select i1 %31, i1 %30, i1 false
  br i1 %or.cond5.i34, label %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36", label %.sink.split.i35

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

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

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

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

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

.sink.split:                                      ; preds = %44, %48
  %.sink = phi i64 [ %42, %48 ], [ %41, %44 ]
  %.ph = phi i8* [ %49, %48 ], [ %38, %44 ]
  %.ph53 = phi i8* [ %40, %48 ], [ %45, %44 ]
  %52 = bitcast i8* %39 to i64*
  store i64 %.sink, i64* %52, align 8
  br label %53

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

.loopexit.loopexit:                               ; preds = %53
  %.pre = bitcast i8* %54 to %TSi*
  br label %.loopexit

.loopexit:                                        ; preds = %87, %.loopexit.loopexit, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36", %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit"
  %.pre-phi = phi %TSi* [ %.pre, %.loopexit.loopexit ], [ %33, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36" ], [ %21, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit" ], [ %33, %87 ]
  %59 = phi i8* [ %23, %.loopexit.loopexit ], [ %35, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36" ], [ %23, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit" ], [ %88, %87 ]
  %60 = phi i8* [ %54, %.loopexit.loopexit ], [ %3, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36" ], [ %3, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit" ], [ %3, %87 ]
  %61 = phi i8* [ %56, %.loopexit.loopexit ], [ %1, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36" ], [ %0, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit" ], [ %89, %87 ]
  %62 = ptrtoint i8* %59 to i64
  %63 = ptrtoint i8* %60 to i64
  %64 = sub i64 %62, %63
  %65 = sdiv i64 %64, 8
  %66 = getelementptr inbounds %TSi, %TSi* %.pre-phi, i64 %65
  %67 = bitcast %TSi* %66 to i8*
  %68 = icmp ult i8* %61, %67
  %69 = icmp eq i8* %61, %60
  %or.cond5.i37 = select i1 %69, i1 %68, i1 false
  br i1 %or.cond5.i37, label %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit39", label %.sink.split.i38

.sink.split.i38:                                  ; preds = %.loopexit
  %70 = shl nuw nsw i64 %65, 3
  tail call void @llvm.memmove.p0i8.p0i8.i64(i8* align 8 %61, i8* align 8 %60, i64 %70, i1 false)
  br label %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit39"

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

.preheader40:                                     ; preds = %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36", %87
  %71 = phi i8* [ %74, %87 ], [ %2, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36" ]
  %72 = phi i8* [ %88, %87 ], [ %35, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36" ]
  %73 = phi i8* [ %89, %87 ], [ %1, %"$sSp14moveInitialize4from5countySpyxG_SitFSi_Tg5.exit36" ]
  %74 = getelementptr inbounds i8, i8* %71, i64 -8
  %75 = getelementptr inbounds i8, i8* %72, i64 -8
  %._value = bitcast i8* %75 to i64*
  %76 = load i64, i64* %._value, align 8
  %77 = getelementptr inbounds i8, i8* %73, i64 -8
  %._value1 = bitcast i8* %77 to i64*
  %78 = load i64, i64* %._value1, align 8
  %79 = icmp slt i64 %78, %76
  br i1 %79, label %80, label %83

80:                                               ; preds = %.preheader40
  %81 = icmp ult i8* %74, %73
  %82 = icmp eq i8* %71, %73
  %or.cond62 = select i1 %82, i1 %81, i1 false
  br i1 %or.cond62, label %87, label %.sink.split55

83:                                               ; preds = %.preheader40
  %84 = icmp ult i8* %74, %72
  %85 = icmp eq i8* %71, %72
  %or.cond63 = select i1 %85, i1 %84, i1 false
  br i1 %or.cond63, label %87, label %.sink.split55

.sink.split55:                                    ; preds = %80, %83
  %.sink58 = phi i64 [ %76, %83 ], [ %78, %80 ]
  %.ph56 = phi i8* [ %75, %83 ], [ %72, %80 ]
  %.ph57 = phi i8* [ %73, %83 ], [ %77, %80 ]
  %86 = bitcast i8* %74 to i64*
  store i64 %.sink58, i64* %86, align 8
  br label %87

87:                                               ; preds = %83, %80, %.sink.split55
  %88 = phi i8* [ %.ph56, %.sink.split55 ], [ %72, %80 ], [ %75, %83 ]
  %89 = phi i8* [ %.ph57, %.sink.split55 ], [ %77, %80 ], [ %73, %83 ]
  %90 = icmp ugt i8* %88, %3
  %91 = icmp ugt i8* %89, %0
  %or.cond15 = select i1 %90, i1 %91, i1 false
  br i1 %or.cond15, label %.preheader40, label %.loopexit
}

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

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

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

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

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

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

29:                                               ; preds = %14, %19
  %30 = phi %Ts28__ContiguousArrayStorageBaseC* [ %24, %19 ], [ bitcast (%struct._SwiftEmptyArrayStorage* @_swiftEmptyArrayStorage to %Ts28__ContiguousArrayStorageBaseC*), %14 ]
  %31 = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %30, i64 1
  br i1 %0, label %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) #5
  ret %Ts28__ContiguousArrayStorageBaseC* %30

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

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

; Function Attrs: minsize noinline optsize
define linkonce_odr hidden swiftcc %Ts28__ContiguousArrayStorageBaseC* @"$ss22_ContiguousArrayBufferV20_consumeAndCreateNewAByxGyFSi_Tg5"(%Ts28__ContiguousArrayStorageBaseC* %0) local_unnamed_addr #3 {
entry:
  %._storage.count._value = getelementptr inbounds %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %0, i64 0, i32 1, i32 0, i32 0, i32 0
  %1 = load i64, i64* %._storage.count._value, align 8, !range !7
  %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 { i64, i8 } @"$ss13_parseInteger5ascii5radixq_Sgx_SitSyRzs010FixedWidthB0R_r0_lFSs_SiTg5"(i64 %0, i64 %1, i64 %2, %swift.bridge* %3, i64 %4) local_unnamed_addr #3 {
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"() #18
  %10 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %3) #5
  %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 !8

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

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

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

17:                                               ; preds = %10
  %18 = icmp sgt i64 %2, 10
  %19 = trunc i64 %2 to i8
  %20 = add i8 %19, 48
  %21 = add i8 %19, 55
  %22 = add i8 %19, 87
  %23 = select i1 %18, i8 %22, i8 97
  %24 = select i1 %18, i8 %21, i8 65
  %25 = select i1 %18, i8 58, i8 %20
  br i1 %11, label %.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 !9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: minsize nofree noinline nosync nounwind optsize readnone
define linkonce_odr hidden i8** @"$sSaySsGSayxGSlsWl"() local_unnamed_addr #8 {
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") #17
  %3 = tail call i8** @swift_getWitnessTable(%swift.protocol_conformance_descriptor* nonnull @"$sSayxGSlsMc", %swift.type* %2, i8*** undef) #17
  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 #6 {
entry:
  %1 = bitcast { i32, i32 }* %0 to i64*
  %2 = load atomic i64, i64* %1 monotonic, align 8
  %3 = icmp slt i64 %2, 0
  br i1 %3, label %7, label %4, !prof !6

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

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

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

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

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

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

; 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 nounwind willreturn
declare %swift.refcounted* @swift_retain(%swift.refcounted* returned) local_unnamed_addr #10

; 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 #10

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

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

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

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

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

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

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
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 #8 {
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) #17
  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 noinline optsize
declare swiftcc { i64, i64 } @"$ss13_StringObjectV10sharedUTF8SRys5UInt8VGvg"(i64, %swift.bridge*) local_unnamed_addr #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 #3

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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