int Tcl_UtfBackslash(src, readPtr, dst) const char *src;
int *readPtr;
char *dst;
{
  int numRead;
  int result;
  result = TclParseBackslash(src, 128, &numRead, dst);
  if (numRead == 128) {
    result = TclParseBackslash(src, (int)strlen(src), &numRead, dst);
  }
  if (readPtr != 0) {
    *readPtr = numRead;
  }
  return result;
}


x86 assembly (clang, -O0):
<Tcl_UtfBackslash>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0x80,%esi
lea    -0x1c(%rbp),%rdx
mov    $0x0,%al
call   1040 <TclParseBackslash@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x80,-0x1c(%rbp)
jne    1185 <Tcl_UtfBackslash+0x65>
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x28(%rbp),%rdi
mov    %eax,%esi
mov    -0x18(%rbp),%rcx
lea    -0x1c(%rbp),%rdx
mov    $0x0,%al
call   1040 <TclParseBackslash@plt>
mov    %eax,-0x20(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1199 <Tcl_UtfBackslash+0x79>
mov    -0x1c(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x20(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Tcl_UtfBackslash>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rdx,%r15
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xc(%rsp),%rdx
mov    $0x80,%esi
mov    %r15,%rcx
xor    %eax,%eax
call   1040 <TclParseBackslash@plt>
cmpl   $0x80,0xc(%rsp)
jne    116c <Tcl_UtfBackslash+0x4c>
mov    %rbx,%rdi
call   1030 <strlen@plt>
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
mov    %eax,%esi
mov    %r15,%rcx
xor    %eax,%eax
call   1040 <TclParseBackslash@plt>
test   %r14,%r14
je     1178 <Tcl_UtfBackslash+0x58>
mov    0xc(%rsp),%ecx
mov    %ecx,(%r14)
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @Tcl_UtfBackslash(i8* %0, i32* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
store i8* %0, i8** %4
store i32* %1, i32** %5
store i8* %2, i8** %6
%9 = load i8*, i8** %4
%10 = load i8*, i8** %6
%11 = call i32 (i8*, i32, i32*, i8*, ...) bitcast (i32 (...)* @TclParseBackslash to i32 (i8*, i32, i32*, i8*, ...)*)(i8* %9, i32 128, i32* %7, i8* %10)
store i32 %11, i32* %8
%12 = load i32, i32* %7
%13 = icmp eq i32 %12, 128
br i1 %13, label %14, label %21
14: ; preds = %3
%15 = load i8*, i8** %4
%16 = load i8*, i8** %4
%17 = call i64 @strlen(i8* %16)
%18 = trunc i64 %17 to i32
%19 = load i8*, i8** %6
%20 = call i32 (i8*, i32, i32*, i8*, ...) bitcast (i32 (...)* @TclParseBackslash to i32 (i8*, i32, i32*, i8*, ...)*)(i8* %15, i32 %18, i32* %7, i8* %19)
store i32 %20, i32* %8
br label %21
21: ; preds = %14, %3
%22 = load i32*, i32** %5
%23 = icmp ne i32* %22, null
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = load i32, i32* %7
%26 = load i32*, i32** %5
store i32 %25, i32* %26
br label %27
27: ; preds = %24, %21
%28 = load i32, i32* %8
ret i32 %28
}

LLVM IR (-O2):
define i32 @Tcl_UtfBackslash(i8* %0, i32* writeonly %1, i8* %2) {
%4 = alloca i32
%5 = bitcast i32* %4 to i8*
%6 = call i32 (i8*, i32, i32*, i8*, ...) bitcast (i32 (...)* @TclParseBackslash to i32 (i8*, i32, i32*, i8*, ...)*)(i8* %0, i32 128, i32* %4, i8* %2)
%7 = load i32, i32* %4
%8 = icmp eq i32 %7, 128
br i1 %8, label %9, label %13
9: ; preds = %3
%10 = call i64 @strlen(i8* dereferenceable(1) %0)
%11 = trunc i64 %10 to i32
%12 = call i32 (i8*, i32, i32*, i8*, ...) bitcast (i32 (...)* @TclParseBackslash to i32 (i8*, i32, i32*, i8*, ...)*)(i8* %0, i32 %11, i32* %4, i8* %2)
br label %13
13: ; preds = %9, %3
%14 = phi i32 [ %12, %9 ], [ %6, %3 ]
%15 = icmp eq i32* %1, null
br i1 %15, label %18, label %16
16: ; preds = %13
%17 = load i32, i32* %4
store i32 %17, i32* %1
br label %18
18: ; preds = %16, %13
ret i32 %14
}