#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int oauth_time_independent_equals_n(char const *, char const *,
                                    int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char const *);
int oauth_time_independent_equals(const char *a, const char *b) {
  return oauth_time_independent_equals_n(a, b, (a ? strlen(a) : 0),
                                         (b ? strlen(b) : 0));
}


x86 assembly (clang, -O0):
<oauth_time_independent_equals>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     115c <oauth_time_independent_equals+0x3c>
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x24(%rbp)
jmp    1166 <oauth_time_independent_equals+0x46>
xor    %eax,%eax
mov    %eax,-0x24(%rbp)
jmp    1166 <oauth_time_independent_equals+0x46>
mov    -0x24(%rbp),%eax
mov    %eax,-0x28(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1188 <oauth_time_independent_equals+0x68>
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x2c(%rbp)
jmp    1192 <oauth_time_independent_equals+0x72>
xor    %eax,%eax
mov    %eax,-0x2c(%rbp)
jmp    1192 <oauth_time_independent_equals+0x72>
mov    -0x28(%rbp),%edx
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdi
mov    -0x2c(%rbp),%ecx
call   1040 <oauth_time_independent_equals_n@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<oauth_time_independent_equals>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
xor    %r15d,%r15d
mov    $0x0,%ebp
test   %rdi,%rdi
je     1144 <oauth_time_independent_equals+0x24>
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
test   %r14,%r14
je     1154 <oauth_time_independent_equals+0x34>
mov    %r14,%rdi
call   1030 <strlen@plt>
mov    %eax,%r15d
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
mov    %r15d,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <oauth_time_independent_equals_n@plt>

LLVM IR (-O0):
define i32 @oauth_time_independent_equals(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = load i8*, i8** %3
%8 = icmp ne i8* %7, null
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i8*, i8** %3
%11 = call i32 @strlen(i8* %10)
br label %13
12: ; preds = %2
br label %13
13: ; preds = %12, %9
%14 = phi i32 [ %11, %9 ], [ 0, %12 ]
%15 = load i8*, i8** %4
%16 = icmp ne i8* %15, null
br i1 %16, label %17, label %20
17: ; preds = %13
%18 = load i8*, i8** %4
%19 = call i32 @strlen(i8* %18)
br label %21
20: ; preds = %13
br label %21
21: ; preds = %20, %17
%22 = phi i32 [ %19, %17 ], [ 0, %20 ]
%23 = call i32 @oauth_time_independent_equals_n(i8* %5, i8* %6, i32 %14, i32 %22)
ret i32 %23
}

LLVM IR (-O2):
define i32 @oauth_time_independent_equals(i8* %0, i8* %1) {
%3 = icmp eq i8* %0, null
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i32 @strlen(i8* %0)
br label %6
6: ; preds = %2, %4
%7 = phi i32 [ %5, %4 ], [ 0, %2 ]
%8 = icmp eq i8* %1, null
br i1 %8, label %11, label %9
9: ; preds = %6
%10 = tail call i32 @strlen(i8* %1)
br label %11
11: ; preds = %6, %9
%12 = phi i32 [ %10, %9 ], [ 0, %6 ]
%13 = tail call i32 @oauth_time_independent_equals_n(i8* %0, i8* %1, i32 %7, i32 %12)
ret i32 %13
}