let input = Character(readLine()!).unicodeScalars.first!.value - base
let base = Character("A").unicodeScalars.first!.value

if input - base < 26 {
  print("A")
} else {
  print("a")
}
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/Swift/Source_2153/llvm_O3.ll'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/Swift/Source_2153/llvm_O3.ll"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%Ts6UInt32V = type <{ i32 }>
%struct._SwiftEmptyArrayStorage = type { %struct.HeapObject, %struct._SwiftArrayBodyStorage }
%struct.HeapObject = type { %struct.HeapMetadata*, %struct.InlineRefCountsPlaceholder }
%struct.HeapMetadata = type opaque
%struct.InlineRefCountsPlaceholder = type { i64 }
%struct._SwiftArrayBodyStorage = type { i64, i64 }
%swift.type_descriptor = type opaque
%swift.type = type { i64 }
%swift.bridge = type opaque
%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 }>
%Ts6UInt64V = type <{ i64 }>
%Ts16IndexingIteratorVySs8UTF8ViewVG = type <{ %TSs8UTF8ViewV, %TSS5IndexV }>
%TSs8UTF8ViewV = type <{ %Ts5SliceVySS8UTF8ViewVG }>
%Ts5SliceVySS8UTF8ViewVG = type <{ %TSS5IndexV, %TSS5IndexV, %TSS8UTF8ViewV }>
%TSS8UTF8ViewV = type <{ %Ts11_StringGutsV }>
%Ts11_StringGutsV = type <{ %Ts13_StringObjectV }>
%Ts13_StringObjectV = type <{ %Ts6UInt64V, %swift.bridge* }>
%TSS5IndexV = type <{ %Ts6UInt64V }>
%Ts5UInt8V = type <{ i8 }>

@"$s7llvm_O35inputs6UInt32Vvp" = hidden local_unnamed_addr global %Ts6UInt32V zeroinitializer, align 4
@"$s7llvm_O34bases6UInt32Vvp" = hidden local_unnamed_addr global %Ts6UInt32V zeroinitializer, align 4
@_swiftEmptyArrayStorage = external global %struct._SwiftEmptyArrayStorage, align 8
@"$ss23_ContiguousArrayStorageCMn" = external global %swift.type_descriptor, align 4
@"got.$ss23_ContiguousArrayStorageCMn" = private unnamed_addr constant %swift.type_descriptor* @"$ss23_ContiguousArrayStorageCMn"
@"symbolic _____yypG s23_ContiguousArrayStorageC" = linkonce_odr hidden constant <{ i8, i32, [4 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss23_ContiguousArrayStorageCMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [4 x i8], i8 }>, <{ i8, i32, [4 x i8], i8 }>* @"symbolic _____yypG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [4 x i8] c"yypG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCyypGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [4 x i8], i8 }>* @"symbolic _____yypG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCyypGMD" to i64)) to i32), i32 -9 }, align 8
@"$sSSN" = external global %swift.type, align 8
@"\01l_entry_point" = private constant { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (i32 (i32, i8**)* @main to i64), i64 ptrtoint ({ i32, i32 }* @"\01l_entry_point" to i64)) to i32), i32 0 }, section "swift5_entry", align 4
@"$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
@__swift_reflection_version = linkonce_odr hidden constant i16 3
@_swift1_autolink_entries = private constant [77 x i8] c"-lswift_Concurrency\00-lswiftCore\00-lswift_StringProcessing\00-lswift_RegexParser\00", section ".swift1_autolink_entries", no_sanitize_address, align 8
@llvm.compiler.used = appending global [4 x i8*] [i8* bitcast ({ i32, i32 }* @"\01l_entry_point" to i8*), i8* bitcast (i16* @__swift_reflection_version to i8*), i8* getelementptr inbounds ([77 x i8], [77 x i8]* @_swift1_autolink_entries, i32 0, i32 0), i8* bitcast (i32 (i32, i8**)* @main to i8*)], section "llvm.metadata"

define protected i32 @main(i32 %0, i8** nocapture readnone %1) #0 {
entry:
  %2 = tail call swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1 true)
  %3 = extractvalue { i64, i64 } %2, 0
  %4 = extractvalue { i64, i64 } %2, 1
  %5 = icmp eq i64 %4, 0
  br i1 %5, label %51, label %6

6:                                                ; preds = %entry
  %7 = inttoptr i64 %4 to %swift.bridge*
  %8 = and i64 %4, 2305843009213693952
  %9 = icmp eq i64 %8, 0
  br i1 %9, label %13, label %10

10:                                               ; preds = %6
  %11 = and i64 %4, 1080863910568919040
  %12 = icmp eq i64 %11, 0
  br i1 %12, label %52, label %22, !prof !6

13:                                               ; preds = %6
  %14 = and i64 %3, 281474976710655
  %15 = icmp eq i64 %14, 0
  br i1 %15, label %57, label %16, !prof !6

16:                                               ; preds = %13
  %17 = and i64 %3, 1152921504606846976
  %.not = icmp eq i64 %17, 0
  br i1 %.not, label %18, label %22, !prof !6

18:                                               ; preds = %16
  %19 = tail call swiftcc { i64, %swift.bridge* } @"$sSS8_copyingyS2SFZ"(i64 %3, %swift.bridge* nonnull %7)
  tail call void @swift_bridgeObjectRelease(%swift.bridge* nonnull %7) #3
  %20 = extractvalue { i64, %swift.bridge* } %19, 0
  %21 = extractvalue { i64, %swift.bridge* } %19, 1
  br label %22

22:                                               ; preds = %16, %10, %18
  %23 = phi i64 [ %20, %18 ], [ %3, %10 ], [ %3, %16 ]
  %24 = phi %swift.bridge* [ %21, %18 ], [ %7, %10 ], [ %7, %16 ]
  %25 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %24) #3
  %26 = tail call swiftcc i64 @"$sSlsE5first7ElementQzSgvgSS17UnicodeScalarViewV_Tg5"(i64 %23, %swift.bridge* %24)
  call void @swift_bridgeObjectRelease_n(%swift.bridge* %24, i32 2)
  %27 = and i64 %26, 4294967296
  %.not16 = icmp eq i64 %27, 0
  br i1 %.not16, label %28, label %53

28:                                               ; preds = %22
  %temp-coercion.coerced.sroa.0.0.extract.trunc = trunc i64 %26 to i32
  %29 = load i32, i32* getelementptr inbounds (%Ts6UInt32V, %Ts6UInt32V* @"$s7llvm_O34bases6UInt32Vvp", i64 0, i32 0), align 4
  %30 = tail call { i32, i1 } @llvm.usub.with.overflow.i32(i32 %temp-coercion.coerced.sroa.0.0.extract.trunc, i32 %29)
  %31 = extractvalue { i32, i1 } %30, 1
  br i1 %31, label %54, label %32, !prof !6

32:                                               ; preds = %28
  %33 = extractvalue { i32, i1 } %30, 0
  store i32 %33, i32* getelementptr inbounds (%Ts6UInt32V, %Ts6UInt32V* @"$s7llvm_O35inputs6UInt32Vvp", i64 0, i32 0), align 4
  %34 = tail call swiftcc i64 @"$sSlsE5first7ElementQzSgvgSS17UnicodeScalarViewV_Tg5"(i64 65, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*))
  %35 = and i64 %34, 4294967296
  %.not17 = icmp eq i64 %35, 0
  br i1 %.not17, label %36, label %55

36:                                               ; preds = %32
  %temp-coercion.coerced2.sroa.0.0.extract.trunc = trunc i64 %34 to i32
  store i32 %temp-coercion.coerced2.sroa.0.0.extract.trunc, i32* getelementptr inbounds (%Ts6UInt32V, %Ts6UInt32V* @"$s7llvm_O34bases6UInt32Vvp", i64 0, i32 0), align 4
  %37 = load i32, i32* getelementptr inbounds (%Ts6UInt32V, %Ts6UInt32V* @"$s7llvm_O35inputs6UInt32Vvp", i64 0, i32 0), align 4
  %38 = tail call { i32, i1 } @llvm.usub.with.overflow.i32(i32 %37, i32 %temp-coercion.coerced2.sroa.0.0.extract.trunc)
  %39 = extractvalue { i32, i1 } %38, 1
  br i1 %39, label %56, label %40, !prof !6

40:                                               ; preds = %36
  %41 = extractvalue { i32, i1 } %38, 0
  %42 = icmp ult i32 %41, 26
  %43 = tail call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #10
  %44 = tail call noalias %swift.refcounted* @swift_allocObject(%swift.type* %43, i64 64, i64 7) #3
  %45 = bitcast %swift.refcounted* %44 to %Ts28__ContiguousArrayStorageBaseC*
  %46 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %44, i64 1
  %._storage3.count._value = bitcast %swift.refcounted* %46 to i64*
  store i64 1, i64* %._storage3.count._value, align 8
  %._storage3._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %44, i64 1, i32 1
  store i64 2, i64* %._storage3._capacityAndFlags, align 8
  %47 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %44, i64 2
  %48 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %44, i64 3, i32 1
  %49 = bitcast i64* %48 to %swift.type**
  store %swift.type* @"$sSSN", %swift.type** %49, align 8
  %._guts5._object._countAndFlagsBits._value = bitcast %swift.refcounted* %47 to i64*
  %._guts5._object._object = getelementptr inbounds %swift.refcounted, %swift.refcounted* %44, i64 2, i32 1
  %50 = bitcast i64* %._guts5._object._object to %swift.bridge**
  %. = select i1 %42, i64 65, i64 97
  store i64 %., i64* %._guts5._object._countAndFlagsBits._value, align 8
  store %swift.bridge* inttoptr (i64 -2233785415175766016 to %swift.bridge*), %swift.bridge** %50, align 8
  tail call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %45, 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* %44) #3
  ret i32 0

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

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

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

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

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

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

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

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

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

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

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

define linkonce_odr hidden swiftcc i64 @"$sSlsE5first7ElementQzSgvgSS17UnicodeScalarViewV_Tg5"(i64 %0, %swift.bridge* %1) local_unnamed_addr #0 {
entry:
  %temp-coercion.coerced.sroa.4 = alloca i8, align 4
  %2 = alloca <{ %Ts6UInt64V, %Ts6UInt64V }>, align 8
  %3 = ptrtoint %swift.bridge* %1 to i64
  %4 = and i64 %3, 2305843009213693952
  %5 = icmp eq i64 %4, 0
  %6 = lshr i64 %3, 56
  %7 = and i64 %6, 15
  %8 = and i64 %0, 281474976710655
  %9 = select i1 %5, i64 %0, i64 %7
  %10 = and i64 %9, 281474976710655
  %11 = icmp eq i64 %10, 0
  br i1 %11, label %43, label %12

12:                                               ; preds = %entry
  %13 = and i64 %3, 1152921504606846976
  %14 = icmp eq i64 %13, 0
  %15 = tail call swiftcc i64 @"$ss11_StringGutsV19validateScalarIndexySS0E0VAEF"(i64 15, i64 %0, %swift.bridge* %1)
  %16 = lshr i64 %15, 16
  br i1 %14, label %17, label %18, !prof !7

17:                                               ; preds = %12
  br i1 %5, label %22, label %25

18:                                               ; preds = %12
  %19 = and i64 %15, -65536
  %20 = tail call swiftcc { i32, i64 } @"$ss11_StringGutsV27foreignErrorCorrectedScalar10startingAts7UnicodeO0F0V_Si12scalarLengthtSS5IndexV_tF"(i64 %19, i64 %0, %swift.bridge* %1)
  %21 = extractvalue { i32, i64 } %20, 0
  br label %43

22:                                               ; preds = %17
  %23 = and i64 %0, 1152921504606846976
  %24 = icmp eq i64 %23, 0
  br i1 %24, label %31, label %35, !prof !6

25:                                               ; preds = %17
  %26 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %2 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %26)
  %27 = and i64 %3, 72057594037927935
  %.elt._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %2, i64 0, i32 0, i32 0
  store i64 %0, i64* %.elt._value, align 8
  %.elt1._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %2, i64 0, i32 1, i32 0
  store i64 %27, i64* %.elt1._value, align 8
  %28 = ptrtoint <{ %Ts6UInt64V, %Ts6UInt64V }>* %2 to i64
  %29 = call swiftcc { i32, i64 } @"$ss13_decodeScalar_10startingAts7UnicodeO0B0V_Si12scalarLengthtSRys5UInt8VG_SitF"(i64 %28, i64 %7, i64 %16)
  %30 = extractvalue { i32, i64 } %29, 0
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %26)
  br label %43

31:                                               ; preds = %22
  %32 = tail call swiftcc { i64, i64 } @"$ss13_StringObjectV10sharedUTF8SRys5UInt8VGvg"(i64 %0, %swift.bridge* %1)
  %33 = extractvalue { i64, i64 } %32, 0
  %34 = extractvalue { i64, i64 } %32, 1
  br label %38

35:                                               ; preds = %22
  %36 = and i64 %3, 1152921504606846975
  %37 = add nuw nsw i64 %36, 32
  br label %38

38:                                               ; preds = %31, %35
  %39 = phi i64 [ %37, %35 ], [ %33, %31 ]
  %40 = phi i64 [ %8, %35 ], [ %34, %31 ]
  %41 = tail call swiftcc { i32, i64 } @"$ss13_decodeScalar_10startingAts7UnicodeO0B0V_Si12scalarLengthtSRys5UInt8VG_SitF"(i64 %39, i64 %40, i64 %16)
  %42 = extractvalue { i32, i64 } %41, 0
  br label %43

43:                                               ; preds = %18, %25, %38, %entry
  %44 = phi i32 [ 0, %entry ], [ %21, %18 ], [ %30, %25 ], [ %42, %38 ]
  call void @llvm.lifetime.start.p0i8(i64 1, i8* nonnull %temp-coercion.coerced.sroa.4)
  %temp-coercion.coerced.sroa.4.0.sroa_cast = bitcast i8* %temp-coercion.coerced.sroa.4 to i1*
  store i1 %11, i1* %temp-coercion.coerced.sroa.4.0.sroa_cast, align 4
  %temp-coercion.coerced.sroa.4.0.temp-coercion.coerced.sroa.4.0.temp-coercion.coerced.sroa.4.0.temp-coercion.coerced.sroa.4.0. = load i8, i8* %temp-coercion.coerced.sroa.4, align 4
  %temp-coercion.coerced.sroa.4.0.insert.ext = zext i8 %temp-coercion.coerced.sroa.4.0.temp-coercion.coerced.sroa.4.0.temp-coercion.coerced.sroa.4.0.temp-coercion.coerced.sroa.4.0. to i64
  %temp-coercion.coerced.sroa.4.0.insert.shift = shl nuw nsw i64 %temp-coercion.coerced.sroa.4.0.insert.ext, 32
  %temp-coercion.coerced.sroa.0.0.insert.ext = zext i32 %44 to i64
  %temp-coercion.coerced.sroa.0.0.insert.insert = or i64 %temp-coercion.coerced.sroa.4.0.insert.shift, %temp-coercion.coerced.sroa.0.0.insert.ext
  call void @llvm.lifetime.end.p0i8(i64 1, i8* nonnull %temp-coercion.coerced.sroa.4)
  ret i64 %temp-coercion.coerced.sroa.0.0.insert.insert
}

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

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

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

; Function Attrs: mustprogress nofree noinline nounwind readonly willreturn
define linkonce_odr hidden %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* %0) local_unnamed_addr #5 {
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) #11
  %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 #6

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

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

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

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

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

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

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

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

18:                                               ; preds = %12
  %._elements._slice._base._guts._object._object = getelementptr inbounds %Ts16IndexingIteratorVySs8UTF8ViewVG, %Ts16IndexingIteratorVySs8UTF8ViewVG* %4, i64 0, i32 0, i32 0, i32 2, i32 0, i32 0, i32 1
  %19 = load %swift.bridge*, %swift.bridge** %._elements._slice._base._guts._object._object, align 8
  %20 = tail call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %3) #3
  tail call void @swift_bridgeObjectRelease(%swift.bridge* %19) #3
  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 !8
  %25 = tail call swiftcc { i64, %swift.bridge* } @"$sSS18_uncheckedFromUTF8ySSSRys5UInt8VGFZ"(i64 %23, i64 %24), !noalias !9
  %26 = getelementptr %Ts28__ContiguousArrayStorageBaseC, %Ts28__ContiguousArrayStorageBaseC* %21, i64 0, i32 0
  tail call void @swift_release(%swift.refcounted* %26) #3
  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) #3
  tail call void @llvm.trap()
  unreachable
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

define linkonce_odr hidden swiftcc i64 @"$ss11_StringGutsV19validateScalarIndexySS0E0VAEF"(i64 %0, i64 %1, %swift.bridge* %2) local_unnamed_addr #0 {
entry:
  %3 = ptrtoint %swift.bridge* %2 to i64
  %4 = and i64 %3, 1152921504606846976
  %5 = icmp eq i64 %4, 0
  %6 = and i64 %1, 576460752303423488
  %7 = icmp ne i64 %6, 0
  %8 = select i1 %5, i1 true, i1 %7
  %9 = and i64 %0, 12
  %10 = zext i1 %8 to i64
  %11 = shl nuw nsw i64 4, %10
  %12 = icmp eq i64 %9, %11
  %13 = and i64 %0, 1
  %14 = icmp eq i64 %13, 0
  %or.cond = or i1 %14, %12
  br i1 %or.cond, label %15, label %25

15:                                               ; preds = %entry
  %16 = tail call swiftcc i64 @"$ss11_StringGutsV22validateSubscalarIndexySS0E0VAEF"(i64 %0, i64 %1, %swift.bridge* %2)
  %17 = and i64 %16, 1
  %18 = icmp eq i64 %17, 0
  br i1 %18, label %19, label %33, !prof !6

19:                                               ; preds = %15
  %20 = tail call swiftcc i64 @"$ss11_StringGutsV15scalarAlignSlowySS5IndexVAEF"(i64 %16, i64 %1, %swift.bridge* %2)
  %21 = and i64 %20, -14
  %22 = and i64 %16, 12
  %23 = or i64 %22, %21
  %24 = or i64 %23, 1
  br label %33

25:                                               ; preds = %entry
  %26 = and i64 %3, 2305843009213693952
  %27 = icmp eq i64 %26, 0
  %28 = lshr i64 %3, 56
  %29 = and i64 %28, 15
  %30 = and i64 %1, 281474976710655
  %31 = select i1 %27, i64 %30, i64 %29
  %32 = lshr i64 %0, 16
  %.not = icmp ult i64 %32, %31
  br i1 %.not, label %33, label %35, !prof !7

33:                                               ; preds = %25, %15, %19
  %34 = phi i64 [ %24, %19 ], [ %16, %15 ], [ %0, %25 ]
  ret i64 %34

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

declare swiftcc { i32, i64 } @"$ss13_decodeScalar_10startingAts7UnicodeO0B0V_Si12scalarLengthtSRys5UInt8VG_SitF"(i64, i64, i64) local_unnamed_addr #0

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

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

15:                                               ; preds = %entry, %13
  %16 = phi i64 [ %14, %13 ], [ %0, %entry ]
  %17 = and i64 %3, 2305843009213693952
  %18 = icmp eq i64 %17, 0
  %19 = lshr i64 %3, 56
  %20 = and i64 %19, 15
  %21 = and i64 %1, 281474976710655
  %22 = select i1 %18, i64 %21, i64 %20
  %23 = lshr i64 %16, 16
  %.not = icmp ult i64 %23, %22
  br i1 %.not, label %24, label %25, !prof !7

24:                                               ; preds = %15
  ret i64 %16

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

; Function Attrs: noinline
define linkonce_odr hidden swiftcc i64 @"$ss11_StringGutsV15scalarAlignSlowySS5IndexVAEF"(i64 %0, i64 %1, %swift.bridge* %2) local_unnamed_addr #7 {
entry:
  %3 = alloca <{ %Ts6UInt64V, %Ts6UInt64V }>, align 8
  %4 = and i64 %0, 49152
  %5 = icmp eq i64 %4, 0
  br i1 %5, label %6, label %65

6:                                                ; preds = %entry
  %7 = lshr i64 %0, 16
  %8 = icmp ult i64 %0, 65536
  br i1 %8, label %65, label %9, !prof !6

9:                                                ; preds = %6
  %10 = ptrtoint %swift.bridge* %2 to i64
  %11 = and i64 %10, 1152921504606846976
  %.not = icmp eq i64 %11, 0
  %12 = and i64 %10, 2305843009213693952
  %13 = icmp eq i64 %12, 0
  br i1 %.not, label %14, label %57, !prof !7

14:                                               ; preds = %9
  br i1 %13, label %32, label %15

15:                                               ; preds = %14
  %16 = lshr i64 %10, 56
  %17 = and i64 %16, 15
  %18 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %3 to i8*
  call void @llvm.lifetime.start.p0i8(i64 16, i8* nonnull %18)
  %19 = and i64 %10, 72057594037927935
  %.elt._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %3, i64 0, i32 0, i32 0
  store i64 %1, i64* %.elt._value, align 8
  %.elt1._value = getelementptr inbounds <{ %Ts6UInt64V, %Ts6UInt64V }>, <{ %Ts6UInt64V, %Ts6UInt64V }>* %3, i64 0, i32 1, i32 0
  store i64 %19, i64* %.elt1._value, align 8
  %20 = icmp eq i64 %7, %17
  br i1 %20, label %.loopexit6, label %21, !prof !6

21:                                               ; preds = %15
  %22 = bitcast <{ %Ts6UInt64V, %Ts6UInt64V }>* %3 to %Ts5UInt8V*
  %._value2 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %22, i64 %7, i32 0
  %23 = load i8, i8* %._value2, align 1
  %24 = and i8 %23, -64
  %25 = icmp eq i8 %24, -128
  br i1 %25, label %.preheader, label %.loopexit6, !prof !6

.preheader:                                       ; preds = %21, %.preheader
  %26 = phi i64 [ %27, %.preheader ], [ %7, %21 ]
  %27 = add i64 %26, -1
  %._value3 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %22, i64 %27, i32 0
  %28 = load i8, i8* %._value3, align 1
  %29 = and i8 %28, -64
  %30 = icmp eq i8 %29, -128
  br i1 %30, label %.preheader, label %.loopexit6, !prof !6

.loopexit6:                                       ; preds = %.preheader, %15, %21
  %31 = phi i64 [ %7, %21 ], [ %7, %15 ], [ %27, %.preheader ]
  call void @llvm.lifetime.end.p0i8(i64 16, i8* nonnull %18)
  br label %.loopexit

32:                                               ; preds = %14
  %33 = and i64 %1, 1152921504606846976
  %34 = icmp eq i64 %33, 0
  br i1 %34, label %39, label %35, !prof !6

35:                                               ; preds = %32
  %36 = and i64 %10, 1152921504606846975
  %37 = add nuw nsw i64 %36, 32
  %38 = and i64 %1, 281474976710655
  br label %43

39:                                               ; preds = %32
  %40 = tail call swiftcc { i64, i64 } @"$ss13_StringObjectV10sharedUTF8SRys5UInt8VGvg"(i64 %1, %swift.bridge* %2)
  %41 = extractvalue { i64, i64 } %40, 0
  %42 = extractvalue { i64, i64 } %40, 1
  br label %43

43:                                               ; preds = %39, %35
  %44 = phi i64 [ %37, %35 ], [ %41, %39 ]
  %45 = phi i64 [ %38, %35 ], [ %42, %39 ]
  %46 = icmp eq i64 %7, %45
  br i1 %46, label %.loopexit, label %47, !prof !6

47:                                               ; preds = %43
  %48 = inttoptr i64 %44 to %Ts5UInt8V*
  br label %49

49:                                               ; preds = %49, %47
  %50 = phi i64 [ %7, %47 ], [ %54, %49 ]
  %._value4 = getelementptr inbounds %Ts5UInt8V, %Ts5UInt8V* %48, i64 %50, i32 0
  %51 = load i8, i8* %._value4, align 1
  %52 = and i8 %51, -64
  %53 = icmp eq i8 %52, -128
  %54 = add i64 %50, -1
  br i1 %53, label %49, label %.loopexit, !prof !6

.loopexit:                                        ; preds = %49, %43, %.loopexit6
  %55 = phi i64 [ %31, %.loopexit6 ], [ %7, %43 ], [ %50, %49 ]
  %56 = shl i64 %55, 16
  br label %67

57:                                               ; preds = %9
  %58 = lshr i64 %10, 56
  %59 = and i64 %58, 15
  %60 = and i64 %1, 281474976710655
  %61 = select i1 %13, i64 %60, i64 %59
  %62 = icmp eq i64 %7, %61
  br i1 %62, label %67, label %63

63:                                               ; preds = %57
  %64 = tail call swiftcc i64 @"$ss11_StringGutsV18foreignScalarAlignySS5IndexVAEF"(i64 %0, i64 %1, %swift.bridge* %2)
  br label %67

65:                                               ; preds = %6, %entry
  %66 = and i64 %0, -65536
  br label %67

67:                                               ; preds = %57, %63, %.loopexit, %65
  %68 = phi i64 [ %66, %65 ], [ %56, %.loopexit ], [ %64, %63 ], [ %0, %57 ]
  ret i64 %68
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare void @swift_bridgeObjectRelease_n(%swift.bridge*, i32) #3

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

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

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