#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*/ dm_check_check();
int /*<<< orphan*/ dm_cursors_init();
int /*<<< orphan*/ dm_set_multimonitors();
int /*<<< orphan*/ dm_set_root();
int /*<<< orphan*/ dm_set_window_properties();
int /*<<< orphan*/ sigchld(int /*<<< orphan*/);
int /*<<< orphan*/ urgentbar_create();
int /*<<< orphan*/ wm_color_schemes();
int /*<<< orphan*/ wm_grab_keys();
int /*<<< orphan*/ wm_load_config();
int /*<<< orphan*/ wm_run_autostart();
int /*<<< orphan*/ wm_windows_scan();
void wm_setup() {
  sigchld(0);
  dm_check_check();
  dm_cursors_init();
  dm_set_window_properties();
  dm_set_root();
  dm_set_multimonitors();
  wm_load_config();
  wm_grab_keys();
  wm_color_schemes();
  wm_windows_scan();
  wm_run_autostart();
  urgentbar_create();
}


x86 assembly (clang, -O0):
<wm_setup>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1040 <sigchld@plt>
mov    $0x0,%al
call   10d0 <dm_check_check@plt>
mov    $0x0,%al
call   10a0 <dm_cursors_init@plt>
mov    $0x0,%al
call   1050 <dm_set_window_properties@plt>
mov    $0x0,%al
call   10e0 <dm_set_root@plt>
mov    $0x0,%al
call   1080 <dm_set_multimonitors@plt>
mov    $0x0,%al
call   1070 <wm_load_config@plt>
mov    $0x0,%al
call   1090 <wm_grab_keys@plt>
mov    $0x0,%al
call   10b0 <wm_color_schemes@plt>
mov    $0x0,%al
call   10c0 <wm_windows_scan@plt>
mov    $0x0,%al
call   1030 <wm_run_autostart@plt>
mov    $0x0,%al
call   1060 <urgentbar_create@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<wm_setup>:
push   %rax
xor    %edi,%edi
call   1040 <sigchld@plt>
xor    %eax,%eax
call   10d0 <dm_check_check@plt>
xor    %eax,%eax
call   10a0 <dm_cursors_init@plt>
xor    %eax,%eax
call   1050 <dm_set_window_properties@plt>
xor    %eax,%eax
call   10e0 <dm_set_root@plt>
xor    %eax,%eax
call   1080 <dm_set_multimonitors@plt>
xor    %eax,%eax
call   1070 <wm_load_config@plt>
xor    %eax,%eax
call   1090 <wm_grab_keys@plt>
xor    %eax,%eax
call   10b0 <wm_color_schemes@plt>
xor    %eax,%eax
call   10c0 <wm_windows_scan@plt>
xor    %eax,%eax
call   1030 <wm_run_autostart@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <urgentbar_create@plt>

LLVM IR (-O0):
define void @wm_setup() {
%1 = call i32 @sigchld(i32 0)
%2 = call i32 (...) @dm_check_check()
%3 = call i32 (...) @dm_cursors_init()
%4 = call i32 (...) @dm_set_window_properties()
%5 = call i32 (...) @dm_set_root()
%6 = call i32 (...) @dm_set_multimonitors()
%7 = call i32 (...) @wm_load_config()
%8 = call i32 (...) @wm_grab_keys()
%9 = call i32 (...) @wm_color_schemes()
%10 = call i32 (...) @wm_windows_scan()
%11 = call i32 (...) @wm_run_autostart()
%12 = call i32 (...) @urgentbar_create()
ret void
}

LLVM IR (-O2):
define void @wm_setup() {
%1 = tail call i32 @sigchld(i32 0)
%2 = tail call i32 (...) @dm_check_check()
%3 = tail call i32 (...) @dm_cursors_init()
%4 = tail call i32 (...) @dm_set_window_properties()
%5 = tail call i32 (...) @dm_set_root()
%6 = tail call i32 (...) @dm_set_multimonitors()
%7 = tail call i32 (...) @wm_load_config()
%8 = tail call i32 (...) @wm_grab_keys()
%9 = tail call i32 (...) @wm_color_schemes()
%10 = tail call i32 (...) @wm_windows_scan()
%11 = tail call i32 (...) @wm_run_autostart()
%12 = tail call i32 (...) @urgentbar_create()
ret void
}