#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*/ _sdec_control_wait(int, int /*<<< orphan*/, int, int);
void sdec_init() {
  _sdec_control_wait(0x00, 0, 0x20 | 0x10, 15000);
  _sdec_control_wait(0x00, 0, 0x20 | 0x10, 4100);
  _sdec_control_wait(0x00, 0, 0x20 | 0x10, 100);
  _sdec_control_wait(0x00, 0, 0x20 | 0x10 | 0x08, 100);
  _sdec_control_wait(0x00, 0, 0x08, 40);
  _sdec_control_wait(0x00, 0, 0x01, 1640);
  _sdec_control_wait(0x00, 0, 0x04 | 0x02, 40);
  _sdec_control_wait(0x00, 0, 0x08 | 0x04, 40);
}


x86 assembly (clang, -O0):
<sdec_init>:
push   %rbp
mov    %rsp,%rbp
xor    %esi,%esi
mov    $0x30,%edx
mov    $0x3a98,%ecx
mov    %esi,%edi
call   1030 <_sdec_control_wait@plt>
xor    %esi,%esi
mov    $0x30,%edx
mov    $0x1004,%ecx
mov    %esi,%edi
call   1030 <_sdec_control_wait@plt>
xor    %esi,%esi
mov    $0x30,%edx
mov    $0x64,%ecx
mov    %esi,%edi
call   1030 <_sdec_control_wait@plt>
xor    %esi,%esi
mov    $0x38,%edx
mov    $0x64,%ecx
mov    %esi,%edi
call   1030 <_sdec_control_wait@plt>
xor    %esi,%esi
mov    $0x8,%edx
mov    $0x28,%ecx
mov    %esi,%edi
call   1030 <_sdec_control_wait@plt>
xor    %esi,%esi
mov    $0x1,%edx
mov    $0x668,%ecx
mov    %esi,%edi
call   1030 <_sdec_control_wait@plt>
xor    %esi,%esi
mov    $0x6,%edx
mov    $0x28,%ecx
mov    %esi,%edi
call   1030 <_sdec_control_wait@plt>
xor    %esi,%esi
mov    $0xc,%edx
mov    $0x28,%ecx
mov    %esi,%edi
call   1030 <_sdec_control_wait@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<sdec_init>:
push   %rax
xor    %edi,%edi
xor    %esi,%esi
mov    $0x30,%edx
mov    $0x3a98,%ecx
call   1030 <_sdec_control_wait@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x30,%edx
mov    $0x1004,%ecx
call   1030 <_sdec_control_wait@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x30,%edx
mov    $0x64,%ecx
call   1030 <_sdec_control_wait@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x38,%edx
mov    $0x64,%ecx
call   1030 <_sdec_control_wait@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x8,%edx
mov    $0x28,%ecx
call   1030 <_sdec_control_wait@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x1,%edx
mov    $0x668,%ecx
call   1030 <_sdec_control_wait@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0x6,%edx
mov    $0x28,%ecx
call   1030 <_sdec_control_wait@plt>
xor    %edi,%edi
xor    %esi,%esi
mov    $0xc,%edx
mov    $0x28,%ecx
pop    %rax
jmp    1030 <_sdec_control_wait@plt>

LLVM IR (-O0):
define void @sdec_init() {
%1 = call i32 @_sdec_control_wait(i32 0, i32 0, i32 48, i32 15000)
%2 = call i32 @_sdec_control_wait(i32 0, i32 0, i32 48, i32 4100)
%3 = call i32 @_sdec_control_wait(i32 0, i32 0, i32 48, i32 100)
%4 = call i32 @_sdec_control_wait(i32 0, i32 0, i32 56, i32 100)
%5 = call i32 @_sdec_control_wait(i32 0, i32 0, i32 8, i32 40)
%6 = call i32 @_sdec_control_wait(i32 0, i32 0, i32 1, i32 1640)
%7 = call i32 @_sdec_control_wait(i32 0, i32 0, i32 6, i32 40)
%8 = call i32 @_sdec_control_wait(i32 0, i32 0, i32 12, i32 40)
ret void
}

LLVM IR (-O2):
define void @sdec_init() {
%1 = tail call i32 @_sdec_control_wait(i32 0, i32 0, i32 48, i32 15000)
%2 = tail call i32 @_sdec_control_wait(i32 0, i32 0, i32 48, i32 4100)
%3 = tail call i32 @_sdec_control_wait(i32 0, i32 0, i32 48, i32 100)
%4 = tail call i32 @_sdec_control_wait(i32 0, i32 0, i32 56, i32 100)
%5 = tail call i32 @_sdec_control_wait(i32 0, i32 0, i32 8, i32 40)
%6 = tail call i32 @_sdec_control_wait(i32 0, i32 0, i32 1, i32 1640)
%7 = tail call i32 @_sdec_control_wait(i32 0, i32 0, i32 6, i32 40)
%8 = tail call i32 @_sdec_control_wait(i32 0, i32 0, i32 12, i32 40)
ret void
}