int main() {
  ;
  do {
    __rps_push(&&__rp64);
    goto x1;
  __rp64:;
  } while (0);
  do {
    __rps_push(&&__rp65);
    goto x1;
  __rp65:;
  } while (0);
  exit(0);
x1:
  printf("here\n");
  do {
    __rps_push(&&__rp74);
    goto x2;
  __rp74:;
  } while (0);
  printf("back\n");
  do {
    void *__rp = __rps_pop();
    goto *__rp;
  } while (0);
x2:
  printf("there\n");
  do {
    void *__rp = __rps_pop();
    goto *__rp;
  } while (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
lea    0xa(%rip),%rdi
call   1040 <__rps_push@plt>
jmp    118b <main+0x4b>
jmp    1167 <main+0x27>
jmp    116c <main+0x2c>
xor    %eax,%eax
lea    0xa(%rip),%rdi
call   1040 <__rps_push@plt>
jmp    118b <main+0x4b>
jmp    1184 <main+0x44>
xor    %edi,%edi
call   1060 <exit@plt>
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
lea    0xa(%rip),%rdi
call   1040 <__rps_push@plt>
jmp    11d9 <main+0x99>
jmp    11b1 <main+0x71>
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <__rps_pop@plt>
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
jmp    11fc <main+0xbc>
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <__rps_pop@plt>
cltq
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
jmp    *%rax

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
lea    0x30(%rip),%rdi
lea    0xeaa(%rip),%r14
lea    0x52(%rip),%r15
lea    0xe9b(%rip),%r12
lea    0x49(%rip),%r13
lea    0xe93(%rip),%rbx
jmp    1183 <main+0x43>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <__rps_push@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <__rps_push@plt>
mov    %r12,%rdi
nop
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <__rps_pop@plt>
cltq
jmp    *%rax
mov    %rbx,%rdi
jmp    11a0 <main+0x60>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"here\0A\00"
@.str.1 = [6 x i8] c"back\0A\00"
@.str.2 = [7 x i8] c"there\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8*
store i32 0, i32* %1
br label %4
4: ; preds = %0
%5 = call i32 (i8*, ...) bitcast (i32 (...)* @__rps_push to i32 (i8*, ...)*)(i8* blockaddress(@main, %6))
br label %12
6: ; preds = %34
br label %7
7: ; preds = %6
br label %8
8: ; preds = %7
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @__rps_push to i32 (i8*, ...)*)(i8* blockaddress(@main, %10))
br label %12
10: ; preds = %34
br label %11
11: ; preds = %10
unreachable
12: ; preds = %8, %4
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %14
14: ; preds = %12
%15 = call i32 (i8*, ...) bitcast (i32 (...)* @__rps_push to i32 (i8*, ...)*)(i8* blockaddress(@main, %16))
br label %25
16: ; preds = %34
br label %17
17: ; preds = %16
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %19
19: ; preds = %17
%20 = call i32 (...) @__rps_pop()
%21 = sext i32 %20 to i64
%22 = inttoptr i64 %21 to i8*
store i8* %22, i8** %2
%23 = load i8*, i8** %2
br label %34
24: ; No predecessors!
br label %25
25: ; preds = %24, %14
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %27
27: ; preds = %25
%28 = call i32 (...) @__rps_pop()
%29 = sext i32 %28 to i64
%30 = inttoptr i64 %29 to i8*
store i8* %30, i8** %3
%31 = load i8*, i8** %3
br label %34
32: ; No predecessors!
%33 = load i32, i32* %1
ret i32 %33
34: ; preds = %27, %19
%35 = phi i8* [ %23, %19 ], [ %31, %27 ]
indirectbr i8* %35, [label %6, label %10, label %16]
}

LLVM IR (-O2):
@str = [5 x i8] c"here\00"
@str.3 = [6 x i8] c"there\00"
@str.4 = [5 x i8] c"back\00"
define i32 @main() {
br label %2
1: ; preds = %7
tail call void @exit(i32 0)
unreachable
2: ; preds = %7, %0
%3 = phi i8* [ blockaddress(@main, %2), %0 ], [ blockaddress(@main, %1), %7 ]
%4 = tail call i32 (i8*, ...) bitcast (i32 (...)* @__rps_push to i32 (i8*, ...)*)(i8* %3)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) bitcast (i32 (...)* @__rps_push to i32 (i8*, ...)*)(i8* blockaddress(@main, %7))
br label %7
7: ; preds = %7, %2
%8 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @str.3, i64 0, i64 0), %2 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @str.4, i64 0, i64 0), %7 ]
%9 = tail call i32 @puts(i8* dereferenceable(1) %8)
%10 = tail call i32 (...) @__rps_pop()
%11 = sext i32 %10 to i64
%12 = inttoptr i64 %11 to i8*
indirectbr i8* %12, [label %2, label %1, label %7]
}