unsigned long long *_ZSt3maxImERKT_S2_S2_(unsigned long long *llvm_cbe___a,
                                          unsigned long long *llvm_cbe___b) {
  unsigned long long *llvm_cbe_retval;
  unsigned long long *llvm_cbe___a_2e_addr;
  unsigned long long *llvm_cbe___b_2e_addr;
  unsigned long long *llvm_cbe_tmp;
  unsigned long long llvm_cbe_tmp1;
  unsigned long long *llvm_cbe_tmp2;
  unsigned long long llvm_cbe_tmp3;
  unsigned long long *llvm_cbe_tmp4;
  unsigned long long *llvm_cbe_tmp5;
  unsigned long long *llvm_cbe_tmp__53;
  *(&llvm_cbe___a_2e_addr) = llvm_cbe___a;
  *(&llvm_cbe___b_2e_addr) = llvm_cbe___b;
  llvm_cbe_tmp = *(&llvm_cbe___a_2e_addr);
  llvm_cbe_tmp1 = *llvm_cbe_tmp;
  llvm_cbe_tmp2 = *(&llvm_cbe___b_2e_addr);
  llvm_cbe_tmp3 = *llvm_cbe_tmp2;
  if ((((unsigned long long)llvm_cbe_tmp1) <
       ((unsigned long long)llvm_cbe_tmp3))) {
    goto llvm_cbe_if_2e_then;
  } else {
    goto llvm_cbe_if_2e_end;
  }
llvm_cbe_if_2e_then:
  llvm_cbe_tmp4 = *(&llvm_cbe___b_2e_addr);
  *(&llvm_cbe_retval) = llvm_cbe_tmp4;
  goto llvm_cbe_return;
llvm_cbe_if_2e_end:
  llvm_cbe_tmp5 = *(&llvm_cbe___a_2e_addr);
  *(&llvm_cbe_retval) = llvm_cbe_tmp5;
  goto llvm_cbe_return;
llvm_cbe_return:
  llvm_cbe_tmp__53 = *(&llvm_cbe_retval);
  return llvm_cbe_tmp__53;
}


x86 assembly (clang, -O0):
<_ZSt3maxImERKT_S2_S2_>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%rax
cmp    -0x48(%rbp),%rax
jae    1155 <_ZSt3maxImERKT_S2_S2_+0x55>
jmp    115a <_ZSt3maxImERKT_S2_S2_+0x5a>
jmp    116f <_ZSt3maxImERKT_S2_S2_+0x6f>
mov    -0x28(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x18(%rbp)
jmp    117f <_ZSt3maxImERKT_S2_S2_+0x7f>
mov    -0x20(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x60(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_ZSt3maxImERKT_S2_S2_>:
mov    %rdi,%rax
mov    (%rdi),%rcx
cmp    (%rsi),%rcx
cmovb  %rsi,%rax
ret

LLVM IR (-O0):
define i64* @_ZSt3maxImERKT_S2_S2_(i64* %0, i64* %1) {
%3 = alloca i64*
%4 = alloca i64*
%5 = alloca i64*
%6 = alloca i64*
%7 = alloca i64*
%8 = alloca i64*
%9 = alloca i64
%10 = alloca i64*
%11 = alloca i64
%12 = alloca i64*
%13 = alloca i64*
%14 = alloca i64*
store i64* %0, i64** %3
store i64* %1, i64** %4
%15 = load i64*, i64** %3
store i64* %15, i64** %6
%16 = load i64*, i64** %4
store i64* %16, i64** %7
%17 = load i64*, i64** %6
store i64* %17, i64** %8
%18 = load i64*, i64** %8
%19 = load i64, i64* %18
store i64 %19, i64* %9
%20 = load i64*, i64** %7
store i64* %20, i64** %10
%21 = load i64*, i64** %10
%22 = load i64, i64* %21
store i64 %22, i64* %11
%23 = load i64, i64* %9
%24 = load i64, i64* %11
%25 = icmp ult i64 %23, %24
br i1 %25, label %26, label %27
26: ; preds = %2
br label %28
27: ; preds = %2
br label %31
28: ; preds = %26
%29 = load i64*, i64** %7
store i64* %29, i64** %12
%30 = load i64*, i64** %12
store i64* %30, i64** %5
br label %34
31: ; preds = %27
%32 = load i64*, i64** %6
store i64* %32, i64** %13
%33 = load i64*, i64** %13
store i64* %33, i64** %5
br label %34
34: ; preds = %31, %28
%35 = load i64*, i64** %5
store i64* %35, i64** %14
%36 = load i64*, i64** %14
ret i64* %36
}

LLVM IR (-O2):
define i64* @_ZSt3maxImERKT_S2_S2_(i64* %0, i64* %1) {
%3 = load i64, i64* %0
%4 = load i64, i64* %1
%5 = icmp ult i64 %3, %4
%6 = select i1 %5, i64* %1, i64* %0
ret i64* %6
}