#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 __real__xlsmpWSDoSetup_TPO(long, long, long, long, long, long, long, long);
int /*<<< orphan*/ idle_metric_blame_shift_idle();
int /*<<< orphan*/ idle_metric_blame_shift_work();
int __wrap__xlsmpWSDoSetup_TPO(long a1, long a2, long a3, long a4, long a5,
                               long a6, long a7, long a8) {
  int ret;
  ;
  idle_metric_blame_shift_idle();
  ret = __real__xlsmpWSDoSetup_TPO(a1, a2, a3, a4, a5, a6, a7, a8);
  idle_metric_blame_shift_work();
  ;
  return ret;
}


x86 assembly (clang, -O0):
<__wrap__xlsmpWSDoSetup_TPO>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    $0x0,%al
call   1040 <idle_metric_blame_shift_idle@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
mov    0x10(%rbp),%r10
mov    0x18(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1050 <__real__xlsmpWSDoSetup_TPO@plt>
mov    %eax,-0x34(%rbp)
mov    $0x0,%al
call   1030 <idle_metric_blame_shift_work@plt>
mov    -0x34(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__wrap__xlsmpWSDoSetup_TPO>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbx
mov    %rdi,%rbp
xor    %eax,%eax
call   1040 <idle_metric_blame_shift_idle@plt>
movaps 0x50(%rsp),%xmm0
movups %xmm0,(%rsp)
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r13,%rdx
mov    %r12,%rcx
mov    %r15,%r8
mov    %r14,%r9
call   1050 <__real__xlsmpWSDoSetup_TPO@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <idle_metric_blame_shift_work@plt>
mov    %ebx,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @__wrap__xlsmpWSDoSetup_TPO(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5, i64 %6, i64 %7) {
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca i64
%16 = alloca i64
%17 = alloca i32
store i64 %0, i64* %9
store i64 %1, i64* %10
store i64 %2, i64* %11
store i64 %3, i64* %12
store i64 %4, i64* %13
store i64 %5, i64* %14
store i64 %6, i64* %15
store i64 %7, i64* %16
%18 = call i32 (...) @idle_metric_blame_shift_idle()
%19 = load i64, i64* %9
%20 = load i64, i64* %10
%21 = load i64, i64* %11
%22 = load i64, i64* %12
%23 = load i64, i64* %13
%24 = load i64, i64* %14
%25 = load i64, i64* %15
%26 = load i64, i64* %16
%27 = call i32 @__real__xlsmpWSDoSetup_TPO(i64 %19, i64 %20, i64 %21, i64 %22, i64 %23, i64 %24, i64 %25, i64 %26)
store i32 %27, i32* %17
%28 = call i32 (...) @idle_metric_blame_shift_work()
%29 = load i32, i32* %17
ret i32 %29
}

LLVM IR (-O2):
define i32 @__wrap__xlsmpWSDoSetup_TPO(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5, i64 %6, i64 %7) {
%9 = tail call i32 (...) @idle_metric_blame_shift_idle()
%10 = tail call i32 @__real__xlsmpWSDoSetup_TPO(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5, i64 %6, i64 %7)
%11 = tail call i32 (...) @idle_metric_blame_shift_work()
ret i32 %10
}