#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 /*<<< orphan*/ mips_ejtag_pracc(int);
int /*<<< orphan*/ mips_ejtag_returnWord(unsigned long, int);
void mips_ejtag_restorev0v1(unsigned long v[]) {
  mips_ejtag_pracc(((0x0F << 26) | ((2) << 16) | (0xFF200000 >> 16 & 0xffff)));
  mips_ejtag_pracc(
      ((0x0D << 26) | ((2) << 21) | ((2) << 16) | (0xFF200000 & 0xffff)));
  mips_ejtag_pracc(((0x23 << 26) | ((2) << 21) | ((3) << 16) | (0)));
  mips_ejtag_returnWord(v[1], 0xFF200000);
  mips_ejtag_pracc(((0x23 << 26) | ((2) << 21) | ((2) << 16) | (0)));
  mips_ejtag_returnWord(v[0], 0xFF200000);
}


x86 assembly (clang, -O0):
<mips_ejtag_restorev0v1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x3c02ff20,%edi
call   1030 <mips_ejtag_pracc@plt>
mov    $0x34420000,%edi
call   1030 <mips_ejtag_pracc@plt>
mov    $0x8c430000,%edi
call   1030 <mips_ejtag_pracc@plt>
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rdi
mov    $0xff200000,%esi
call   1040 <mips_ejtag_returnWord@plt>
mov    $0x8c420000,%edi
call   1030 <mips_ejtag_pracc@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
mov    $0xff200000,%esi
call   1040 <mips_ejtag_returnWord@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mips_ejtag_restorev0v1>:
push   %rbx
mov    %rdi,%rbx
mov    $0x3c02ff20,%edi
call   1030 <mips_ejtag_pracc@plt>
mov    $0x34420000,%edi
call   1030 <mips_ejtag_pracc@plt>
mov    $0x8c430000,%edi
call   1030 <mips_ejtag_pracc@plt>
mov    0x8(%rbx),%rdi
mov    $0xff200000,%esi
call   1040 <mips_ejtag_returnWord@plt>
mov    $0x8c420000,%edi
call   1030 <mips_ejtag_pracc@plt>
mov    (%rbx),%rdi
mov    $0xff200000,%esi
pop    %rbx
jmp    1040 <mips_ejtag_returnWord@plt>

LLVM IR (-O0):
define void @mips_ejtag_restorev0v1(i64* %0) {
%2 = alloca i64*
store i64* %0, i64** %2
%3 = call i32 @mips_ejtag_pracc(i32 1006829344)
%4 = call i32 @mips_ejtag_pracc(i32 876740608)
%5 = call i32 @mips_ejtag_pracc(i32 -1941766144)
%6 = load i64*, i64** %2
%7 = getelementptr inbounds i64, i64* %6, i64 1
%8 = load i64, i64* %7
%9 = call i32 @mips_ejtag_returnWord(i64 %8, i32 -14680064)
%10 = call i32 @mips_ejtag_pracc(i32 -1941831680)
%11 = load i64*, i64** %2
%12 = getelementptr inbounds i64, i64* %11, i64 0
%13 = load i64, i64* %12
%14 = call i32 @mips_ejtag_returnWord(i64 %13, i32 -14680064)
ret void
}

LLVM IR (-O2):
define void @mips_ejtag_restorev0v1(i64* nocapture %0) {
%2 = tail call i32 @mips_ejtag_pracc(i32 1006829344)
%3 = tail call i32 @mips_ejtag_pracc(i32 876740608)
%4 = tail call i32 @mips_ejtag_pracc(i32 -1941766144)
%5 = getelementptr inbounds i64, i64* %0, i64 1
%6 = load i64, i64* %5
%7 = tail call i32 @mips_ejtag_returnWord(i64 %6, i32 -14680064)
%8 = tail call i32 @mips_ejtag_pracc(i32 -1941831680)
%9 = load i64, i64* %0
%10 = tail call i32 @mips_ejtag_returnWord(i64 %9, i32 -14680064)
ret void
}