outname(sname) char *sname;
{
  int len, i, j;
  outasm("qz");
  len = strlen(sname);
  if (len > (7 + 7)) {
    i = 7;
    len = len - 7 - 7;
    while (i-- > 0)
      outbyte(raise(*sname++));
    while (len-- > 0)
      sname++;
    while (*sname)
      outbyte(raise(*sname++));
  } else
    outasm(sname);
}


x86 assembly (clang, -O0):
<outname>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
lea    0xead(%rip),%rdi
mov    $0x0,%al
call   1040 <outasm@plt>
mov    -0x10(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xe,-0x14(%rbp)
jle    1226 <outname+0xe6>
movl   $0x7,-0x18(%rbp)
mov    -0x14(%rbp),%eax
sub    $0x7,%eax
sub    $0x7,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x18(%rbp)
cmp    $0x0,%eax
jle    11be <outname+0x7e>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movsbl (%rax),%edi
mov    $0x0,%al
call   1030 <raise@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1060 <outbyte@plt>
jmp    1183 <outname+0x43>
jmp    11c3 <outname+0x83>
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x14(%rbp)
cmp    $0x0,%eax
jle    11e8 <outname+0xa8>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    11c3 <outname+0x83>
jmp    11ed <outname+0xad>
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     1221 <outname+0xe1>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movsbl (%rax),%edi
mov    $0x0,%al
call   1030 <raise@plt>
mov    %eax,%edi
mov    $0x0,%al
call   1060 <outbyte@plt>
jmp    11ed <outname+0xad>
jmp    1231 <outname+0xf1>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1040 <outasm@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<outname>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xeb2(%rip),%rdi
xor    %eax,%eax
call   1040 <outasm@plt>
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %rax,%r14
cmp    $0xf,%r14d
jl     1230 <outname+0xf0>
movsbl (%rbx),%edi
xor    %eax,%eax
call   1030 <raise@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1060 <outbyte@plt>
movsbl 0x1(%rbx),%edi
xor    %eax,%eax
call   1030 <raise@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1060 <outbyte@plt>
movsbl 0x2(%rbx),%edi
xor    %eax,%eax
call   1030 <raise@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1060 <outbyte@plt>
movsbl 0x3(%rbx),%edi
xor    %eax,%eax
call   1030 <raise@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1060 <outbyte@plt>
movsbl 0x4(%rbx),%edi
xor    %eax,%eax
call   1030 <raise@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1060 <outbyte@plt>
movsbl 0x5(%rbx),%edi
xor    %eax,%eax
call   1030 <raise@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1060 <outbyte@plt>
movsbl 0x6(%rbx),%edi
xor    %eax,%eax
call   1030 <raise@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1060 <outbyte@plt>
add    $0xfffffff1,%r14d
mov    0x8(%r14,%rbx,1),%al
test   %al,%al
je     123a <outname+0xfa>
add    %r14,%rbx
add    $0x9,%rbx
nopl   0x0(%rax)
movsbl %al,%edi
xor    %eax,%eax
call   1030 <raise@plt>
mov    %eax,%edi
xor    %eax,%eax
call   1060 <outbyte@plt>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1210 <outname+0xd0>
jmp    123a <outname+0xfa>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <outasm@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [3 x i8] c"qz\00"
define i32 @outname(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %3
%7 = call i32 (i8*, ...) bitcast (i32 (...)* @outasm to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%8 = load i8*, i8** %3
%9 = call i64 @strlen(i8* %8)
%10 = trunc i64 %9 to i32
store i32 %10, i32* %4
%11 = load i32, i32* %4
%12 = icmp sgt i32 %11, 14
br i1 %12, label %13, label %49
13: ; preds = %1
store i32 7, i32* %5
%14 = load i32, i32* %4
%15 = sub nsw i32 %14, 7
%16 = sub nsw i32 %15, 7
store i32 %16, i32* %4
br label %17
17: ; preds = %21, %13
%18 = load i32, i32* %5
%19 = add nsw i32 %18, -1
store i32 %19, i32* %5
%20 = icmp sgt i32 %18, 0
br i1 %20, label %21, label %28
21: ; preds = %17
%22 = load i8*, i8** %3
%23 = getelementptr inbounds i8, i8* %22, i32 1
store i8* %23, i8** %3
%24 = load i8, i8* %22
%25 = sext i8 %24 to i32
%26 = call i32 (i32, ...) bitcast (i32 (...)* @raise to i32 (i32, ...)*)(i32 %25)
%27 = call i32 (i32, ...) bitcast (i32 (...)* @outbyte to i32 (i32, ...)*)(i32 %26)
br label %17
28: ; preds = %17
br label %29
29: ; preds = %33, %28
%30 = load i32, i32* %4
%31 = add nsw i32 %30, -1
store i32 %31, i32* %4
%32 = icmp sgt i32 %30, 0
br i1 %32, label %33, label %36
33: ; preds = %29
%34 = load i8*, i8** %3
%35 = getelementptr inbounds i8, i8* %34, i32 1
store i8* %35, i8** %3
br label %29
36: ; preds = %29
br label %37
37: ; preds = %41, %36
%38 = load i8*, i8** %3
%39 = load i8, i8* %38
%40 = icmp ne i8 %39, 0
br i1 %40, label %41, label %48
41: ; preds = %37
%42 = load i8*, i8** %3
%43 = getelementptr inbounds i8, i8* %42, i32 1
store i8* %43, i8** %3
%44 = load i8, i8* %42
%45 = sext i8 %44 to i32
%46 = call i32 (i32, ...) bitcast (i32 (...)* @raise to i32 (i32, ...)*)(i32 %45)
%47 = call i32 (i32, ...) bitcast (i32 (...)* @outbyte to i32 (i32, ...)*)(i32 %46)
br label %37
48: ; preds = %37
br label %52
49: ; preds = %1
%50 = load i8*, i8** %3
%51 = call i32 (i8*, ...) bitcast (i32 (...)* @outasm to i32 (i8*, ...)*)(i8* %50)
br label %52
52: ; preds = %49, %48
%53 = load i32, i32* %2
ret i32 %53
}

LLVM IR (-O2):
@.str = [3 x i8] c"qz\00"
define i32 @outname(i8* %0) {
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @outasm to i32 (i8*, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%3 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%4 = trunc i64 %3 to i32
%5 = icmp sgt i32 %4, 14
br i1 %5, label %6, label %56
6: ; preds = %1
%7 = getelementptr inbounds i8, i8* %0, i64 1
%8 = load i8, i8* %0
%9 = sext i8 %8 to i32
%10 = tail call i32 (i32, ...) bitcast (i32 (...)* @raise to i32 (i32, ...)*)(i32 %9)
%11 = tail call i32 (i32, ...) bitcast (i32 (...)* @outbyte to i32 (i32, ...)*)(i32 %10)
%12 = getelementptr inbounds i8, i8* %0, i64 2
%13 = load i8, i8* %7
%14 = sext i8 %13 to i32
%15 = tail call i32 (i32, ...) bitcast (i32 (...)* @raise to i32 (i32, ...)*)(i32 %14)
%16 = tail call i32 (i32, ...) bitcast (i32 (...)* @outbyte to i32 (i32, ...)*)(i32 %15)
%17 = getelementptr inbounds i8, i8* %0, i64 3
%18 = load i8, i8* %12
%19 = sext i8 %18 to i32
%20 = tail call i32 (i32, ...) bitcast (i32 (...)* @raise to i32 (i32, ...)*)(i32 %19)
%21 = tail call i32 (i32, ...) bitcast (i32 (...)* @outbyte to i32 (i32, ...)*)(i32 %20)
%22 = getelementptr inbounds i8, i8* %0, i64 4
%23 = load i8, i8* %17
%24 = sext i8 %23 to i32
%25 = tail call i32 (i32, ...) bitcast (i32 (...)* @raise to i32 (i32, ...)*)(i32 %24)
%26 = tail call i32 (i32, ...) bitcast (i32 (...)* @outbyte to i32 (i32, ...)*)(i32 %25)
%27 = getelementptr inbounds i8, i8* %0, i64 5
%28 = load i8, i8* %22
%29 = sext i8 %28 to i32
%30 = tail call i32 (i32, ...) bitcast (i32 (...)* @raise to i32 (i32, ...)*)(i32 %29)
%31 = tail call i32 (i32, ...) bitcast (i32 (...)* @outbyte to i32 (i32, ...)*)(i32 %30)
%32 = getelementptr inbounds i8, i8* %0, i64 6
%33 = load i8, i8* %27
%34 = sext i8 %33 to i32
%35 = tail call i32 (i32, ...) bitcast (i32 (...)* @raise to i32 (i32, ...)*)(i32 %34)
%36 = tail call i32 (i32, ...) bitcast (i32 (...)* @outbyte to i32 (i32, ...)*)(i32 %35)
%37 = load i8, i8* %32
%38 = sext i8 %37 to i32
%39 = tail call i32 (i32, ...) bitcast (i32 (...)* @raise to i32 (i32, ...)*)(i32 %38)
%40 = tail call i32 (i32, ...) bitcast (i32 (...)* @outbyte to i32 (i32, ...)*)(i32 %39)
%41 = add i64 %3, 4294967281
%42 = and i64 %41, 4294967295
%43 = add nuw nsw i64 %42, 8
%44 = getelementptr i8, i8* %0, i64 %43
%45 = load i8, i8* %44
%46 = icmp eq i8 %45, 0
br i1 %46, label %58, label %47
47: ; preds = %6, %47
%48 = phi i8 [ %54, %47 ], [ %45, %6 ]
%49 = phi i8* [ %50, %47 ], [ %44, %6 ]
%50 = getelementptr inbounds i8, i8* %49, i64 1
%51 = sext i8 %48 to i32
%52 = tail call i32 (i32, ...) bitcast (i32 (...)* @raise to i32 (i32, ...)*)(i32 %51)
%53 = tail call i32 (i32, ...) bitcast (i32 (...)* @outbyte to i32 (i32, ...)*)(i32 %52)
%54 = load i8, i8* %50
%55 = icmp eq i8 %54, 0
br i1 %55, label %58, label %47
56: ; preds = %1
%57 = tail call i32 (i8*, ...) bitcast (i32 (...)* @outasm to i32 (i8*, ...)*)(i8* %0)
br label %58
58: ; preds = %47, %6, %56
ret i32 undef
}