LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: ipc_window_resize
static void
ipc_window_resize(uint32_t *d)
{
	int16_t w, h;

	if (focused_win == NULL)
		return;

	if (is_special(focused_win)) {
		reset_window(focused_win);
		set_focused(focused_win);
	}

	w = d[2];
	h = d[3];

	if (d[0] == IPC_MUL_MINUS)
		w = -w;
	if (d[1] == IPC_MUL_MINUS)
		h = -h;

	resize_window(focused_win->window, w, h);
	center_pointer(focused_win);
}

// Assembly:
movq 0x5d9c(%rip), %rax      # 0xc7e0
testq %rax, %rax
je 0x6b8e
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpb $0x0, 0x24(%rax)
jne 0x6a72
cmpb $0x0, 0x26(%rax)
jne 0x6a72
cmpb $0x0, 0x25(%rax)
jne 0x6a72
cmpb $0x0, 0x27(%rax)
jne 0x6a72
cmpb $0x1, 0x28(%rax)
jne 0x6aaf
movq %rax, %rdi
callq 0x4f0a
movq 0x5d5f(%rip), %r14      # 0xc7e0
movq %r14, %rdi
callq 0x4f9e
movl (%r14), %esi
leaq 0x4(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x591a(%rip), %rdi      # 0xc3b8
movl $0x40, %edx
callq 0x3200
movq 0x5d31(%rip), %rax      # 0xc7e0
movl 0x8(%rbx), %ecx
movl 0xc(%rbx), %esi
movl %ecx, %edx
negl %edx
cmpl $0x1, (%rbx)
cmovnel %ecx, %edx
movl %esi, %ecx
negl %ecx
cmpl $0x1, 0x4(%rbx)
cmovnel %esi, %ecx
movq 0x58f7(%rip), %rsi      # 0xc3c8
testq %rsi, %rsi
je 0x6b7f
movl (%rax), %edi
movq (%rsi), %r8
cmpl %edi, (%r8)
je 0x6af2
movq 0x10(%rsi), %rsi
testq %rsi, %rsi
jne 0x6adc
jmp 0x6b7f
movzwl 0x8(%r8), %eax
movzwl 0xa(%r8), %esi
movswl %dx, %edx
addl %eax, %edx
testl %edx, %edx
cmovlel %eax, %edx
movswl %cx, %eax
addl %esi, %eax
testl %eax, %eax
cmovlel %esi, %eax
movzwl 0x48(%r8), %ecx
cmpl %ecx, %edx
movl %ecx, %esi
cmovgl %edx, %esi
testl %ecx, %ecx
cmovel %edx, %esi
movzwl 0x4a(%r8), %edx
cmpl %edx, %eax
movl %edx, %ecx
cmovgl %eax, %ecx
testl %edx, %edx
cmovel %eax, %ecx
movzbl 0x5c87(%rip), %r9d      # 0xc7c1
movzwl 0x50(%r8), %r10d
movl %esi, %eax
xorl %edx, %edx
divl %r10d
imull %r9d, %edx
subl %edx, %esi
movw %si, 0x8(%r8)
movzwl 0x52(%r8), %r10d
movl %ecx, %eax
xorl %edx, %edx
divl %r10d
imull %r9d, %edx
subl %edx, %ecx
movw %cx, 0xa(%r8)
movl $0xffff, %eax           # imm = 0xFFFF
andl %eax, %esi
andl %eax, %ecx
movl %ecx, %edx
callq 0x4dd8
movq 0x5c61(%rip), %rax      # 0xc7e0
movq %rax, %rdi
callq 0x5c17
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: ipc_window_resize_absolute
static void
ipc_window_resize_absolute(uint32_t *d)
{
	int16_t w, h;

	if (focused_win == NULL)
		return;

	if (is_special(focused_win)) {
		reset_window(focused_win);
		set_focused(focused_win);
	}

	w = d[0];
	h = d[1];

	if (focused_win->min_width != 0 && w < focused_win->min_width)
		w = focused_win->min_width;

	if (focused_win->min_height != 0 && h < focused_win->min_height)
		h = focused_win->min_height;

	focused_win->geom.width = w;
	focused_win->geom.height = h;

	resize_window_absolute(focused_win->window, w, h);
	center_pointer(focused_win);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x5c43(%rip), %rdi      # 0xc7e0
testq %rdi, %rdi
je 0x6c6c
cmpb $0x0, 0x24(%rdi)
jne 0x6bc4
cmpb $0x0, 0x26(%rdi)
jne 0x6bc4
cmpb $0x0, 0x25(%rdi)
jne 0x6bc4
cmpb $0x0, 0x27(%rdi)
jne 0x6bc4
cmpb $0x1, 0x28(%rdi)
jne 0x6bfe
callq 0x4f0a
movq 0x5c10(%rip), %r14      # 0xc7e0
movq %r14, %rdi
callq 0x4f9e
movl (%r14), %esi
leaq 0x4(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x57cb(%rip), %rdi      # 0xc3b8
movl $0x40, %edx
callq 0x3200
movq 0x5be2(%rip), %rdi      # 0xc7e0
movq (%rbx), %xmm0
pshuflw $0xe8, %xmm0, %xmm1     # xmm1 = xmm0[0,2,2,3,4,5,6,7]
movq 0x48(%rdi), %xmm2
pxor %xmm3, %xmm3
movdqa %xmm2, %xmm4
pcmpeqw %xmm3, %xmm4
movdqa %xmm2, %xmm5
punpcklwd %xmm3, %xmm5    # xmm5 = xmm5[0],xmm3[0],xmm5[1],xmm3[1],xmm5[2],xmm3[2],xmm5[3],xmm3[3]
pslld $0x10, %xmm0
psrad $0x10, %xmm0
pcmpgtd %xmm0, %xmm5
packssdw %xmm5, %xmm5
pand %xmm5, %xmm2
pandn %xmm1, %xmm5
por %xmm2, %xmm5
pand %xmm4, %xmm1
pandn %xmm5, %xmm4
por %xmm1, %xmm4
movd %xmm4, 0x8(%rdi)
movl (%rdi), %edi
pextrw $0x0, %xmm4, %esi
pextrw $0x1, %xmm4, %edx
callq 0x4dd8
movq 0x5b79(%rip), %rdi      # 0xc7e0
callq 0x5c17
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: ipc_window_maximize
static void
ipc_window_maximize(uint32_t *d)
{
	(void)(d);
	int16_t mon_x, mon_y;
	uint16_t mon_w, mon_h;

	if (focused_win == NULL)
		return;

	if (focused_win->maxed) {
		reset_window(focused_win);
	} else {
		get_monitor_size(focused_win, &mon_x, &mon_y, &mon_w, &mon_h);
		maximize_window(focused_win, mon_x, mon_y, mon_w, mon_h);
	}

	set_focused(focused_win);

	xcb_flush(conn);
}

// Assembly:
movq 0x5b65(%rip), %rdi      # 0xc7e0
testq %rdi, %rdi
je 0x6d06
pushq %rbx
subq $0x10, %rsp
cmpb $0x1, 0x24(%rdi)
jne 0x6c96
callq 0x4f0a
jmp 0x6cc8
movq 0x40(%rdi), %rax
testq %rax, %rax
je 0x6ca9
movzwl 0x10(%rax), %esi
movzwl 0x12(%rax), %edx
jmp 0x6cb4
movq 0x5b28(%rip), %rax      # 0xc7d8
xorl %edx, %edx
xorl %esi, %esi
movzwl 0x14(%rax), %ecx
movzwl 0x16(%rax), %r8d
movswl %si, %esi
movswl %dx, %edx
callq 0x4e27
movq 0x5b11(%rip), %rbx      # 0xc7e0
movq %rbx, %rdi
callq 0x4f9e
movl (%rbx), %esi
leaq 0xc(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x56cd(%rip), %rdi      # 0xc3b8
movl $0x40, %edx
callq 0x3200
movq 0x56bc(%rip), %rdi      # 0xc3b8
callq 0x3400
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: ipc_window_unmaximize
static void
ipc_window_unmaximize(uint32_t *d)
{
	(void)(d);

	if (focused_win == NULL)
		return;

	if (is_special(focused_win)) {
		reset_window(focused_win);
		set_focused(focused_win);
	}

	xcb_flush(conn);
}

// Assembly:
movq 0x5ad2(%rip), %rdi      # 0xc7e0
testq %rdi, %rdi
je 0x6d79
pushq %rbx
subq $0x10, %rsp
cmpb $0x0, 0x24(%rdi)
jne 0x6d36
cmpb $0x0, 0x26(%rdi)
jne 0x6d36
cmpb $0x0, 0x25(%rdi)
jne 0x6d36
cmpb $0x0, 0x27(%rdi)
jne 0x6d36
cmpb $0x1, 0x28(%rdi)
jne 0x6d68
callq 0x4f0a
movq 0x5a9e(%rip), %rbx      # 0xc7e0
movq %rbx, %rdi
callq 0x4f9e
movl (%rbx), %esi
leaq 0xc(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x565a(%rip), %rdi      # 0xc3b8
movl $0x40, %edx
callq 0x3200
movq 0x5649(%rip), %rdi      # 0xc3b8
callq 0x3400
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: ipc_window_hor_maximize
static void
ipc_window_hor_maximize(uint32_t *d)
{
	(void)(d);
	int16_t mon_x, mon_y;
	uint16_t mon_w;

	if (focused_win == NULL)
		return;

	if (focused_win->hmaxed) {
		reset_window(focused_win);
	} else {
		get_monitor_size(focused_win, &mon_x, &mon_y, &mon_w, NULL);
		hmaximize_window(focused_win, mon_x, mon_w);
	}

	set_focused(focused_win);

	xcb_flush(conn);
}

// Assembly:
movq 0x5a5f(%rip), %rdi      # 0xc7e0
testq %rdi, %rdi
je 0x6dfa
pushq %rbx
subq $0x10, %rsp
cmpb $0x1, 0x25(%rdi)
jne 0x6d98
callq 0x4f0a
jmp 0x6dbc
movq 0x40(%rdi), %rax
testq %rax, %rax
je 0x6da7
movzwl 0x10(%rax), %ecx
jmp 0x6db0
movq 0x5a2a(%rip), %rax      # 0xc7d8
xorl %ecx, %ecx
movzwl 0x14(%rax), %edx
movswl %cx, %esi
callq 0x5f8d
movq 0x5a1d(%rip), %rbx      # 0xc7e0
movq %rbx, %rdi
callq 0x4f9e
movl (%rbx), %esi
leaq 0xc(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x55d9(%rip), %rdi      # 0xc3b8
movl $0x40, %edx
callq 0x3200
movq 0x55c8(%rip), %rdi      # 0xc3b8
callq 0x3400
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: ipc_window_ver_maximize
static void
ipc_window_ver_maximize(uint32_t *d)
{
	(void)(d);
	int16_t mon_x, mon_y;
	uint16_t mon_h;

	if (focused_win == NULL)
		return;

	if (focused_win->vmaxed) {
		reset_window(focused_win);
	} else {
		get_monitor_size(focused_win, &mon_x, &mon_y, NULL, &mon_h);
		vmaximize_window(focused_win, mon_y, mon_h);
	}

	set_focused(focused_win);

	xcb_flush(conn);
}

// Assembly:
movq 0x59de(%rip), %rdi      # 0xc7e0
testq %rdi, %rdi
je 0x6e7b
pushq %rbx
subq $0x10, %rsp
cmpb $0x1, 0x26(%rdi)
jne 0x6e19
callq 0x4f0a
jmp 0x6e3d
movq 0x40(%rdi), %rax
testq %rax, %rax
je 0x6e28
movzwl 0x12(%rax), %ecx
jmp 0x6e31
movq 0x59a9(%rip), %rax      # 0xc7d8
xorl %ecx, %ecx
movzwl 0x16(%rax), %edx
movswl %cx, %esi
callq 0x5eda
movq 0x599c(%rip), %rbx      # 0xc7e0
movq %rbx, %rdi
callq 0x4f9e
movl (%rbx), %esi
leaq 0xc(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x5558(%rip), %rdi      # 0xc3b8
movl $0x40, %edx
callq 0x3200
movq 0x5547(%rip), %rdi      # 0xc3b8
callq 0x3400
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: ipc_window_monocle
static void
ipc_window_monocle(uint32_t *d)
{
	(void)(d);
	int16_t mon_x, mon_y;
	uint16_t mon_w, mon_h;

	if (focused_win == NULL)
		return;

	if (focused_win->monocled) {
		reset_window(focused_win);
	} else {
		get_monitor_size(focused_win, &mon_x, &mon_y, &mon_w, &mon_h);
		monocle_window(focused_win, mon_x, mon_y, mon_w, mon_h);
	}

	set_focused(focused_win);

	xcb_flush(conn);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq 0x5951(%rip), %rbx      # 0xc7e0
testq %rbx, %rbx
je 0x6fc4
cmpb $0x1, 0x27(%rbx)
jne 0x6eab
movq %rbx, %rdi
callq 0x4f0a
jmp 0x6f8b
movq 0x40(%rbx), %rax
testq %rax, %rax
je 0x6ebf
movzwl 0x10(%rax), %r14d
movzwl 0x12(%rax), %ebp
jmp 0x6ecb
movq 0x5912(%rip), %rax      # 0xc7d8
xorl %ebp, %ebp
xorl %r14d, %r14d
movzwl 0x14(%rax), %r12d
movzwl 0x16(%rax), %r15d
cmpb $0x0, 0x24(%rbx)
jne 0x6eed
cmpb $0x0, 0x26(%rbx)
jne 0x6eed
cmpb $0x0, 0x25(%rbx)
jne 0x6eed
cmpb $0x1, 0x28(%rbx)
jne 0x6ef5
movq %rbx, %rdi
callq 0x4f0a
movzwl 0xc(%rbx), %eax
movw %ax, 0x16(%rbx)
movq 0x4(%rbx), %rax
movq %rax, 0xe(%rbx)
movsbl 0x5897(%rip), %eax      # 0xc7a3
addl %eax, %r14d
movw %r14w, 0x4(%rbx)
movsbl 0x588a(%rip), %ecx      # 0xc7a5
addl %ecx, %ebp
movw %bp, 0x6(%rbx)
movsbl 0x5878(%rip), %edx      # 0xc7a0
addl %edx, %edx
movsbl 0x5875(%rip), %esi      # 0xc7a6
subl %edx, %r12d
addl %eax, %esi
subl %esi, %r12d
movw %r12w, 0x8(%rbx)
movsbl 0x585f(%rip), %eax      # 0xc7a4
subl %edx, %r15d
addl %ecx, %eax
subl %eax, %r15d
movw %r15w, 0xa(%rbx)
movl (%rbx), %edi
movswl %r14w, %esi
movswl %bp, %edx
callq 0x4d70
movl (%rbx), %edi
movzwl 0x8(%rbx), %esi
movzwl 0xa(%rbx), %edx
callq 0x4dd8
movb $0x1, 0x27(%rbx)
movq %rbx, %rdi
callq 0x4f9e
movq %rbx, %rdi
callq 0x50b2
movq %rbx, %rdi
callq 0x510b
movq 0x584e(%rip), %rbx      # 0xc7e0
movq %rbx, %rdi
callq 0x4f9e
movl (%rbx), %esi
leaq 0xc(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x540a(%rip), %rdi      # 0xc3b8
movl $0x40, %edx
callq 0x3200
movq 0x53f9(%rip), %rdi      # 0xc3b8
callq 0x3400
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: ipc_window_put_in_grid
static void
ipc_window_put_in_grid(uint32_t *d)
{
	uint16_t grid_width, grid_height;
	uint16_t grid_x, grid_y;
	uint16_t occ_w, occ_h;
	const uint16_t m1 = 16U, m2 = 0xffffU;

	DMSG("data[4] = %d\n", d[4]);
	grid_width  = d[0] >> m1;
	grid_height = d[0] & m2;
	grid_x      = d[1] >> m1;
	grid_y      = d[1] & m2;
	occ_w       = d[2] >> m1;
	occ_h       = d[2] & m2;

	if (focused_win == NULL || grid_x >= grid_width || grid_y >= grid_height)
		return;

	grid_window(focused_win, grid_width, grid_height, grid_x, grid_y, occ_w, occ_h);
}

// Assembly:
movq %rdi, %rax
movl (%rdi), %ecx
movl 0x4(%rdi), %r8d
movl %ecx, %edx
shrl $0x10, %edx
movl %r8d, %r9d
shrl $0x10, %r9d
movq 0x56f0(%rip), %rdi      # 0xc7e0
testq %rdi, %rdi
setne %sil
cmpl %edx, %r9d
setb %r10b
andb %sil, %r10b
cmpb $0x1, %r10b
jne 0x7142
movl $0xffff, %esi           # imm = 0xFFFF
movl %r8d, %r10d
andl %esi, %r10d
andl %ecx, %esi
cmpl %esi, %r10d
jae 0x7142
pushq %rax
movl 0x8(%rax), %eax
movl %eax, %r10d
shrl $0x10, %r10d
movzwl %ax, %eax
movl %eax, (%rsp)
movzwl %dx, %esi
movzwl %cx, %edx
movzwl %r9w, %ecx
movzwl %r8w, %r8d
movzwl %r10w, %r9d
callq 0x7f23
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: ipc_window_move_in_grid
static void
ipc_window_move_in_grid(uint32_t *d)
{
	uint16_t x, y;

	if (focused_win == NULL)
		return;

	x = d[2];
	y = d[3];

	if (d[0] == IPC_MUL_MINUS)
		x = -x;
	if (d[1] == IPC_MUL_MINUS)
		y = -y;

	move_grid_window(focused_win, x, y);
}

// Assembly:
movq %rdi, %rax
movq 0x5693(%rip), %rdi      # 0xc7e0
testq %rdi, %rdi
je 0x7200
cmpb $0x1, 0x28(%rdi)
jne 0x7200
movq 0x8(%rax), %xmm0
pshuflw $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3,4,5,6,7]
movq (%rax), %xmm1
pcmpeqd 0x1eaa(%rip), %xmm1     # 0x9020
packssdw %xmm1, %xmm1
pxor %xmm2, %xmm2
psubw %xmm0, %xmm2
pand %xmm1, %xmm2
pandn %xmm0, %xmm1
por %xmm2, %xmm1
movd 0x1c(%rdi), %xmm0
paddw %xmm1, %xmm0
movswl 0x18(%rdi), %ecx
movd %xmm0, %eax
movswl %ax, %edx
movswl 0x20(%rdi), %r9d
addl %r9d, %edx
cmpl %ecx, %edx
jg 0x7200
movswl 0x1a(%rdi), %edx
pextrw $0x1, %xmm0, %r8d
movswl %r8w, %r10d
movswl 0x22(%rdi), %esi
addl %esi, %r10d
cmpl %edx, %r10d
jg 0x7200
pshuflw $0x60, %xmm0, %xmm0     # xmm0 = xmm0[0,0,2,1,4,5,6,7]
pshufd $0x50, %xmm0, %xmm0     # xmm0 = xmm0[0,0,1,1]
movmskpd %xmm0, %r10d
testb $0x1, %r10b
jne 0x7200
shrb %r10b
jne 0x7200
pushq %rax
movzwl %si, %esi
movl %esi, (%rsp)
movzwl %cx, %esi
movzwl %dx, %edx
movzwl %ax, %ecx
movzwl %r8w, %r8d
movzwl %r9w, %r9d
callq 0x7f23
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: ipc_window_resize_in_grid
static void
ipc_window_resize_in_grid(uint32_t *d)
{
	uint16_t x, y;

	if (focused_win == NULL)
		return;

	x = d[2];
	y = d[3];

	if (d[0] == IPC_MUL_MINUS)
		x = -x;
	if (d[1] == IPC_MUL_MINUS)
		y = -y;

	resize_grid_window(focused_win, x, y);
}

// Assembly:
movq %rdi, %rax
movq 0x55d5(%rip), %rdi      # 0xc7e0
testq %rdi, %rdi
je 0x72cb
cmpb $0x1, 0x28(%rdi)
jne 0x72cb
movq 0x8(%rax), %xmm0
pshuflw $0xe8, %xmm0, %xmm0     # xmm0 = xmm0[0,2,2,3,4,5,6,7]
movq (%rax), %xmm1
pcmpeqd 0x1dec(%rip), %xmm1     # 0x9020
packssdw %xmm1, %xmm1
pxor %xmm2, %xmm2
psubw %xmm0, %xmm2
pand %xmm1, %xmm2
pandn %xmm0, %xmm1
por %xmm2, %xmm1
movq 0x20(%rdi), %xmm0
paddw %xmm1, %xmm0
movswl 0x18(%rdi), %ecx
movd %xmm0, %eax
movswl %ax, %edx
movswl 0x1c(%rdi), %r8d
addl %r8d, %edx
cmpl %ecx, %edx
jg 0x72cb
movswl 0x1a(%rdi), %edx
pextrw $0x1, %xmm0, %esi
movswl %si, %r10d
movswl 0x1e(%rdi), %r9d
addl %r9d, %r10d
cmpl %edx, %r10d
jg 0x72cb
pshuflw $0x50, %xmm0, %xmm0     # xmm0 = xmm0[0,0,1,1,4,5,6,7]
pshufd $0x50, %xmm0, %xmm0     # xmm0 = xmm0[0,0,1,1]
pxor %xmm1, %xmm1
pcmpgtw %xmm1, %xmm0
movmskpd %xmm0, %r10d
xorl $0x3, %r10d
testb $0x1, %r10b
jne 0x72cb
shrb %r10b
jne 0x72cb
pushq %rax
movzwl %si, %esi
movl %esi, (%rsp)
movzwl %cx, %esi
movzwl %dx, %edx
movzwl %r8w, %ecx
movzwl %r9w, %r8d
movzwl %ax, %r9d
callq 0x7f23
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: ipc_window_rev_cycle
static void
rcycle_window(struct client *client)
{
	struct list_item *item = NULL;
	struct list_item *last_item;
	struct list_item *client_item;
	struct client *data;

	if (win_list == NULL)
		return;

	/* find last window */
	item = win_list;
	while (item != NULL) {
		last_item = item;
		item = item->next;
	}

	/* find item of client */
	item = win_list;
	while (item != NULL && item->data != client)
		item = item->next;

	if (item == NULL)
		item = last_item;

	client_item = item;

	item = client_item;
	do {
		item = item->prev;
		if (item == NULL)
			item = last_item;
		data = item->data;
	} while (!data->mapped);

	if (item != NULL && item->data != client)
		set_focused(item->data);
}

// Assembly:
movq 0x4eea(%rip), %rax      # 0xc3c8
testq %rax, %rax
je 0x7557
pushq %rbx
subq $0x10, %rsp
movq 0x52f1(%rip), %rcx      # 0xc7e0
movq %rax, %rsi
movq %rsi, %rdx
movq 0x10(%rsi), %rsi
testq %rsi, %rsi
jne 0x74f2
jmp 0x7509
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x7510
cmpq %rcx, (%rax)
jne 0x7500
jmp 0x7513
movq %rdx, %rax
movq 0x8(%rax), %rax
testq %rax, %rax
cmoveq %rdx, %rax
movq (%rax), %rbx
cmpb $0x1, 0x54(%rbx)
jne 0x7513
cmpq %rcx, %rbx
je 0x7552
movq %rbx, %rdi
callq 0x4f9e
movl (%rbx), %esi
leaq 0xc(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x4e70(%rip), %rdi      # 0xc3b8
movl $0x40, %edx
callq 0x3200
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: ipc_window_cycle_in_group
static void
ipc_window_cycle_in_group(uint32_t *d)
{
	(void)(d);

	if (focused_win == NULL)
		return;

	cycle_window_in_group(focused_win);
}

// Assembly:
movq 0x5281(%rip), %rax      # 0xc7e0
testq %rax, %rax
je 0x75d4
movq 0x4e5d(%rip), %rcx      # 0xc3c8
testq %rcx, %rcx
je 0x75d4
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rdx
cmpq %rax, (%rdx)
je 0x7588
movq 0x10(%rdx), %rdx
testq %rdx, %rdx
jne 0x7578
jmp 0x75cf
movq 0x10(%rdx), %rdx
testq %rdx, %rdx
cmoveq %rcx, %rdx
movq (%rdx), %rbx
cmpb $0x1, 0x54(%rbx)
jne 0x7588
movl 0x58(%rbx), %esi
cmpl 0x58(%rax), %esi
jne 0x7588
cmpq %rax, %rbx
je 0x75cf
movq %rbx, %rdi
callq 0x4f9e
movl (%rbx), %esi
leaq 0xc(%rsp), %rcx
movl $0x0, (%rcx)
movq 0x4df3(%rip), %rdi      # 0xc3b8
movl $0x40, %edx
callq 0x3200
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: ipc_group_remove_all_windows
static void
group_remove_all_windows(uint32_t group)
{
	if (group >= conf.groups)
		return;

	struct list_item *item;
	struct client *client;

	for (item = win_list; item != NULL; item = item->next) {
		client = item->data;
		if (client != NULL && client->group == group) {
			group_remove_window(client);
		}
	}

	group_in_use[group] = false;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl (%rdi), %ebx
decl %ebx
cmpl %ebx, 0x4c24(%rip)      # 0xc7bc
jbe 0x7bcb
movq 0x4827(%rip), %r14      # 0xc3c8
testq %r14, %r14
je 0x7bbe
movq (%r14), %rdi
testq %rdi, %rdi
je 0x7bb8
cmpl %ebx, 0x58(%rdi)
jne 0x7bb8
callq 0x823b
movq 0x10(%r14), %r14
jmp 0x7ba1
movq 0x4c3b(%rip), %rax      # 0xc800
movl %ebx, %ecx
movb $0x0, (%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: ipc_group_toggle
static void
group_toggle(uint32_t group)
{
	if (group >= conf.groups)
		return;

	if (group_in_use[group])
		group_deactivate(group);
	else
		group_activate(group);
	last_group = group;
	update_group_list();
}

// Assembly:
pushq %rbx
movl (%rdi), %ebx
decl %ebx
cmpl %ebx, 0x4bcc(%rip)      # 0xc7bc
jbe 0x7c0a
movq 0x4c07(%rip), %rax      # 0xc800
movl %ebx, %ecx
cmpb $0x1, (%rax,%rcx)
jne 0x7c0c
movl %ebx, %edi
callq 0x830d
jmp 0x7c13
popq %rbx
retq
movl %ebx, %edi
callq 0x8278
movl %ebx, 0x4bef(%rip)      # 0xc808
popq %rbx
jmp 0x5982
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: ipc_group_activate_specific
static void
group_activate_specific(uint32_t group)
{
	if (group >= conf.groups)
		return;

	for (unsigned int i = 0; i < conf.groups; i++) {
		if (i == group)
			group_activate(i);
		else
			group_deactivate(i);
	}
	update_group_list();
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl (%rdi), %ebx
decl %ebx
cmpl %ebx, 0x4b90(%rip)      # 0xc7bc
jbe 0x7c59
xorl %ebp, %ebp
cmpl %ebp, %ebx
jne 0x7c3d
movl %ebx, %edi
callq 0x8278
jmp 0x7c44
movl %ebp, %edi
callq 0x830d
incl %ebp
cmpl 0x4b70(%rip), %ebp      # 0xc7bc
jb 0x7c30
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x5982
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: is_in_valid_direction
static bool
is_in_valid_direction(uint32_t direction, float window_direction, float delta)
{
	switch((uint32_t)direction) {
		case NORTH:
			if (window_direction >= (180 - delta) || window_direction <= (-180 + delta))
				return true;
			break;
		case SOUTH:
			if (fabs(window_direction) <= ( 0 + delta))
				return true;
			break;
		case EAST:
			if (window_direction <= (90 + delta) && window_direction > (90 - delta))
				return true;
			break;
		case WEST:
			if (window_direction <= (-90 + delta) && window_direction >= (-90 - delta))
				return true;
			break;
	}

	return false;
}

// Assembly:
cmpl $0x3, %edi
ja 0x81b1
movl %edi, %eax
leaq 0xfd0(%rip), %rcx       # 0x910c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movss 0xffb(%rip), %xmm2      # 0x9148
subss %xmm1, %xmm2
ucomiss %xmm2, %xmm0
movb $0x1, %al
jae 0x8181
addss 0xfec(%rip), %xmm1      # 0x914c
jmp 0x81ac
movss 0xfda(%rip), %xmm2      # 0x9144
movaps %xmm1, %xmm3
addss %xmm2, %xmm3
ucomiss %xmm0, %xmm3
jb 0x81b1
subss %xmm1, %xmm2
movb $0x1, %al
ucomiss %xmm2, %xmm0
jbe 0x81b1
retq
movss 0xfb6(%rip), %xmm2      # 0x9140
movaps %xmm1, %xmm3
addss %xmm2, %xmm3
ucomiss %xmm0, %xmm3
jb 0x81b1
subss %xmm1, %xmm2
movb $0x1, %al
ucomiss %xmm2, %xmm0
jae 0x8181
jmp 0x81b1
andps 0xe86(%rip), %xmm0      # 0x9030
movb $0x1, %al
ucomiss %xmm0, %xmm1
jae 0x8181
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: is_overlapping
static bool
is_overlapping(struct client *a, struct client *b)
{
	struct win_position pos_a_top_left = get_window_position(TOP_LEFT, a);
	struct win_position pos_a_top_right = get_window_position(TOP_RIGHT, a);
	struct win_position pos_a_bot_left = get_window_position(BOTTOM_LEFT, a);

	struct win_position pos_b_top_left = get_window_position(TOP_LEFT, b);
	struct win_position pos_b_top_right = get_window_position(TOP_RIGHT, b);
	struct win_position pos_b_bot_left = get_window_position(BOTTOM_LEFT, b);

	bool is_x_top_overlapped = pos_a_top_left.x <= pos_b_top_left.x && pos_a_top_right.x >= pos_b_top_left.x;
	bool is_x_bot_overlapped = pos_a_top_left.x <= pos_b_top_right.x && pos_a_top_right.x >= pos_b_top_right.x;

	bool is_y_top_overlapped = pos_a_top_left.y <= pos_b_top_left.y && pos_a_bot_left.y >= pos_b_top_left.y;
	bool is_y_bot_overlapped = pos_a_top_left.y <= pos_b_bot_left.y && pos_a_bot_left.y >= pos_b_bot_left.y;

	return (is_x_top_overlapped || is_x_bot_overlapped) && (is_y_top_overlapped || is_y_bot_overlapped);
}

// Assembly:
pushq %rbp
pushq %rbx
movzwl 0x4(%rdi), %ecx
movzwl 0x6(%rdi), %eax
movzwl 0x8(%rdi), %edx
addw %cx, %dx
movzwl 0xa(%rdi), %r10d
addw %ax, %r10w
movzwl 0x4(%rsi), %edi
movzwl 0x6(%rsi), %r9d
movzwl 0xa(%rsi), %r11d
addl %r9d, %r11d
cmpw %di, %cx
setle %bl
cmpw %di, %dx
setge %bpl
cmpw %r9w, %ax
setle %r8b
cmpw %r9w, %r10w
setge %r9b
cmpw %r11w, %ax
setle %al
cmpw %r11w, %r10w
setge %r10b
testb %bpl, %bl
jne 0x8229
movzwl 0x8(%rsi), %esi
addl %esi, %edi
cmpw %di, %cx
setle %cl
cmpw %di, %dx
setge %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x8234
andb %r9b, %r8b
andb %r10b, %al
orb %r8b, %al
jmp 0x8236
xorl %eax, %eax
andb $0x1, %al
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: group_remove_window
static void
group_remove_window(struct client *client)
{
	if (client != NULL) {
		client->group = NULL_GROUP;
		update_wm_desktop(client);
		update_group_list();
		update_current_desktop(client);
		update_window_status(client);
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0xffffffff, 0x58(%rdi) # imm = 0xFFFFFFFF
movq 0x4173(%rip), %rdi      # 0xc3c0
movl (%rbx), %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x3450
callq 0x5982
movl 0x58(%rbx), %edx
movq 0x4158(%rip), %rdi      # 0xc3c0
xorl %esi, %esi
callq 0x35c0
movq %rbx, %rdi
popq %rbx
jmp 0x510b
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: group_activate
static void
group_activate(uint32_t group) {
	if (group >= conf.groups)
		return;

	struct list_item *item;
	struct client *client;

	for (item = win_list; item != NULL; item = item->next) {
		client = item->data;
		if (client->group == group) {
			xcb_map_window(conn, client->window);
			set_focused(client);
		}
	}
	group_in_use[group] = true;
	last_group = group;
	update_group_list();
}

// Assembly:
cmpl %edi, 0x453e(%rip)      # 0xc7bc
jbe 0x830c
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
movq 0x4133(%rip), %r12      # 0xc3c8
testq %r12, %r12
je 0x82e9
leaq 0x4(%rsp), %r14
movq (%r12), %r15
cmpl %ebx, 0x58(%r15)
jne 0x82df
movq 0x4108(%rip), %rdi      # 0xc3b8
movl (%r15), %esi
callq 0x3280
movq %r15, %rdi
callq 0x4f9e
movl (%r15), %esi
movl $0x0, 0x4(%rsp)
movq 0x40e6(%rip), %rdi      # 0xc3b8
movl $0x40, %edx
movq %r14, %rcx
callq 0x3200
movq 0x10(%r12), %r12
testq %r12, %r12
jne 0x829f
movq 0x4510(%rip), %rax      # 0xc800
movl %ebx, %ecx
movb $0x1, (%rax,%rcx)
movl %ebx, 0x450c(%rip)      # 0xc808
callq 0x5982
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: group_deactivate
static void
group_deactivate(uint32_t group)
{
	if (group >= conf.groups)
		return;

	struct list_item *item;
	struct client *client;

	for (item = win_list; item != NULL; item = item->next) {
		client = item->data;
		if (client->group == group)
			xcb_unmap_window(conn, client->window);
	}
	group_in_use[group] = false;
	update_group_list();
}

// Assembly:
cmpl %edi, 0x44a9(%rip)      # 0xc7bc
jbe 0x8343
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
movq 0x40a6(%rip), %r14      # 0xc3c8
testq %r14, %r14
je 0x8344
movq (%r14), %rax
cmpl %ebx, 0x58(%rax)
jne 0x833d
movq 0x4082(%rip), %rdi      # 0xc3b8
movl (%rax), %esi
callq 0x3600
movq 0x10(%r14), %r14
jmp 0x8322
retq
movq 0x44b5(%rip), %rax      # 0xc800
movl %ebx, %ecx
movb $0x0, (%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5982
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/wm.c
// Function: pointer_modfield_from_keysym
static int16_t
pointer_modfield_from_keysym(xcb_keysym_t keysym)
{
	uint16_t modfield = 0;
	xcb_keycode_t *keycodes = NULL, *mod_keycodes = NULL;
	xcb_get_modifier_mapping_reply_t *reply = NULL;
	xcb_key_symbols_t *symbols = xcb_key_symbols_alloc(conn);

	/* wrapped all of them in an ugly if to prevent getting values when
	   we don't need them */
	if (!((keycodes = xcb_key_symbols_get_keycode(symbols, keysym)) == NULL ||
		  (reply = xcb_get_modifier_mapping_reply(conn, xcb_get_modifier_mapping(conn), NULL)) == NULL ||
		  reply->keycodes_per_modifier < 1 ||
		  (mod_keycodes = xcb_get_modifier_mapping_keycodes(reply)) == NULL)) {

		int num_mod =
			xcb_get_modifier_mapping_keycodes_length(reply) /
			reply->keycodes_per_modifier;

		for (int i = 0; i < num_mod; i++) {
			for (int j = 0; j < reply->keycodes_per_modifier; j++) {
				xcb_keycode_t mk = mod_keycodes[i * reply->keycodes_per_modifier + j];
				if (mk != XCB_NO_SYMBOL) {
					for (xcb_keycode_t *k = keycodes; *k != XCB_NO_SYMBOL; k++) {
						if (*k == mk)
							modfield |= (1 << i);
					}
				}
			}
		}
	}

	xcb_key_symbols_free(symbols);
	free(keycodes);
	free(reply);
	return modfield;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebp
movq 0x4047(%rip), %rdi      # 0xc3b8
callq 0x3370
movq %rax, %rbx
movq %rax, %rdi
movl %ebp, %esi
callq 0x3030
movq %rax, %r14
testq %rax, %rax
je 0x8460
movq 0x4022(%rip), %r15      # 0xc3b8
movq %r15, %rdi
callq 0x36b0
xorl %r13d, %r13d
movq %r15, %rdi
movl %eax, %esi
xorl %edx, %edx
callq 0x3540
testq %rax, %rax
je 0x8463
movq %rax, %r12
cmpb $0x0, 0x1(%rax)
je 0x8468
movq %r12, %rdi
callq 0x34e0
testq %rax, %rax
je 0x8468
movq %rax, %r13
movq %r12, %rdi
callq 0x3620
movzbl 0x1(%r12), %esi
cltd
idivl %esi
xorl %r15d, %r15d
testl %eax, %eax
jle 0x846b
movq %rbx, (%rsp)
cmpl $0x1, %esi
movl %esi, %edx
adcl $0x0, %esi
movl %eax, %eax
movq %r14, %rdi
incq %rdi
xorl %ecx, %ecx
movl $0x1, %r8d
shll %cl, %r8d
movq %rcx, %r9
imulq %rdx, %r9
addq %r13, %r9
xorl %r10d, %r10d
movb (%r9,%r10), %r11b
testb %r11b, %r11b
je 0x8447
movb (%r14), %bl
testb %bl, %bl
je 0x8447
movq %rdi, %rbp
cmpb %r11b, %bl
movl $0x0, %ebx
cmovel %r8d, %ebx
orl %ebx, %r15d
movb (%rbp), %bl
incq %rbp
testb %bl, %bl
jne 0x842e
incq %r10
cmpq %rsi, %r10
jne 0x841b
incq %rcx
cmpq %rax, %rcx
jne 0x8405
movq %r12, %r13
movq (%rsp), %rbx
jmp 0x846e
xorl %r13d, %r13d
xorl %r15d, %r15d
jmp 0x846e
xorl %r15d, %r15d
movq %r12, %r13
movq %rbx, %rdi
callq 0x34a0
movq %r14, %rdi
callq 0x32d0
movq %r13, %rdi
callq 0x32d0
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/helpers.c
// Function: vasprintf
int
vasprintf(char **buf, const char *fmt, va_list args)
{
	va_list tmp;
	va_copy(tmp, args);
	int size = vsnprintf(NULL, 0, fmt, tmp);
	va_end(tmp);

	if (size < 0) {
		return -1;
	}

	*buf = malloc(size + 1);

	if (*buf == NULL) {
		return -1;
	}

	size = vsprintf(*buf, fmt, args);
	return size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x10(%rdx), %rax
movq %rsp, %rcx
movq %rax, 0x10(%rcx)
movups (%rdx), %xmm0
movaps %xmm0, (%rcx)
xorl %edi, %edi
xorl %esi, %esi
movq %r14, %rdx
callq 0x3490
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %eax, %eax
js 0x8577
incl %eax
movq %rax, %rdi
callq 0x31b0
movq %rax, (%r15)
testq %rax, %rax
je 0x8577
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x32f0
movl %eax, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/helpers.c
// Function: list_move_to_head
void
list_move_to_head(struct list_item **list, struct list_item *item)
{
	if (list == NULL || *list == NULL || *list == item || item == NULL)
		return;

	/* fill the hole */
	if (item->prev != NULL)
	    item->prev->next = item->next;
	if (item->next != NULL)
	    item->next->prev = item->prev;

	/* we are at the head, nothing is behind us now */
	item->prev = NULL;
	item->next = *list;
	item->next->prev = item;
	*list = item;
}

// Assembly:
testq %rdi, %rdi
je 0x85d1
movq (%rdi), %rax
testq %rax, %rax
je 0x85d1
cmpq %rsi, %rax
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x85d1
movq 0x8(%rsi), %rax
movq 0x10(%rsi), %rcx
testq %rax, %rax
je 0x85b2
movq %rcx, 0x10(%rax)
testq %rcx, %rcx
je 0x85bb
movq %rax, 0x8(%rcx)
movq $0x0, 0x8(%rsi)
movq (%rdi), %rax
movq %rax, 0x10(%rsi)
movq %rsi, 0x8(%rax)
movq %rsi, (%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/helpers.c
// Function: list_delete_item
void
list_delete_item(struct list_item **list, struct list_item *item)
{
	if (list == NULL || *list == NULL || item == NULL)
		return;

	if (*list == item) {
		*list = item->next;
		if (*list != NULL) {
			(*list)->prev = NULL;
		}
	} else {
		item->prev->next = item->next;
		if (item->next != NULL)
			item->next->prev = item->prev;
	}

	free(item);
}

// Assembly:
testq %rdi, %rdi
je 0x861a
movq (%rdi), %rcx
testq %rcx, %rcx
sete %al
testq %rsi, %rsi
sete %dl
orb %al, %dl
je 0x861b
retq
movq 0x10(%rsi), %rax
cmpq %rsi, %rcx
je 0x8633
movq 0x8(%rsi), %rcx
movq %rax, 0x10(%rcx)
testq %rax, %rax
jne 0x863d
jmp 0x8641
movq %rax, (%rdi)
testq %rax, %rax
je 0x8641
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rsi, %rdi
jmp 0x32d0
// File: /workspace/github_c_makefile_star2_O3/tudurom[P]windowchef/helpers.c
// Function: list_delete_all_items
void
list_delete_all_items(struct list_item **list, bool can_free_data)
{
	struct list_item *item, *next;

	for (item = *list; item->next != NULL; item = next) {
		next = item->next;
		if (can_free_data)
			free(item->data);
		list_delete_item(list, item);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %r15
movq 0x10(%r15), %rax
testq %rax, %rax
je 0x8689
movl %esi, %ebx
movq %rdi, %r14
movq %rax, %r12
testb %bl, %bl
je 0x8671
movq (%r15), %rdi
callq 0x32d0
movq %r14, %rdi
movq %r15, %rsi
callq 0x8602
movq 0x10(%r12), %rax
movq %r12, %r15
testq %rax, %rax
jne 0x8662
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/Openvario[P]sensord/main.c
// Function: print_runtime_config
void print_runtime_config(void)
{
	// print actual used config
	fprintf(stderr, "=========================================================================\n");
	fprintf(stderr, "Runtime Configuration:\n");
	fprintf(stderr, "----------------------\n");
	fprintf(stderr, "Vario:\n");
	fprintf(stderr, "  Kalman Accel:\t%f\n",config.vario_x_accel);
	fprintf(stderr, "Sensor TEK:\n");
	fprintf(stderr, "  Offset: \t%f\n",tep_sensor.offset);
	fprintf(stderr, "  Linearity: \t%f\n", tep_sensor.linearity);
	fprintf(stderr, "  Address: \t0x%x\n", tep_sensor.address);
	fprintf(stderr, "  Bus: \t\t%u\n", tep_sensor.bus);
	fprintf(stderr, "  Linearity: \t%f\n", static_sensor.linearity);
	fprintf(stderr, "Sensor TOTAL:\n");
	fprintf(stderr, "  Offset: \t%f\n",dynamic_sensor.offset);
	fprintf(stderr, "  Address: \t0x%x\n", static_sensor.address);
	fprintf(stderr, "  Bus: \t\t%u\n", static_sensor.bus);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0xb82a(%rip), %rbp      # 0xdff8
movq (%rbp), %rcx
leaq 0x75dd(%rip), %rdi      # 0x9db6
pushq $0x4a
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
callq 0x22a0
movq (%rbp), %rcx
leaq 0x760f(%rip), %rdi      # 0x9e01
pushq $0x17
popq %r14
movq %r14, %rsi
movq %rbx, %rdx
callq 0x22a0
movq (%rbp), %rcx
leaq 0x760d(%rip), %rdi      # 0x9e19
movq %r14, %rsi
movq %rbx, %rdx
callq 0x22a0
movq (%rbp), %rcx
leaq 0x760f(%rip), %rdi      # 0x9e31
pushq $0x7
popq %rsi
movq %rbx, %rdx
callq 0x22a0
movq (%rbp), %rdi
cvtss2sd 0xbb07(%rip), %xmm0     # 0xe340
leaq 0x75f9(%rip), %rsi      # 0x9e39
movb $0x1, %al
callq 0x21c0
movq (%rbp), %rcx
leaq 0x75fb(%rip), %rdi      # 0x9e4d
pushq $0xc
popq %rsi
movq %rbx, %rdx
callq 0x22a0
movq (%rbp), %rdi
cvtss2sd 0xbabf(%rip), %xmm0     # 0xe328
leaq 0x75ea(%rip), %r14      # 0x9e5a
movq %r14, %rsi
movb $0x1, %al
callq 0x21c0
movq (%rbp), %rdi
cvtss2sd 0xba9e(%rip), %xmm0     # 0xe324
leaq 0x75dc(%rip), %r13      # 0x9e69
movq %r13, %rsi
movb $0x1, %al
callq 0x21c0
movq (%rbp), %rdi
movzbl 0xb9fa(%rip), %edx      # 0xe29c
leaq 0x75d2(%rip), %r15      # 0x9e7b
movq %r15, %rsi
xorl %eax, %eax
callq 0x21c0
movq (%rbp), %rdi
movzbl 0xb9df(%rip), %edx      # 0xe29d
leaq 0x75c8(%rip), %r12      # 0x9e8d
movq %r12, %rsi
xorl %eax, %eax
callq 0x21c0
movq (%rbp), %rdi
cvtss2sd 0xb981(%rip), %xmm0     # 0xe25c
movq %r13, %rsi
movb $0x1, %al
callq 0x21c0
movq (%rbp), %rcx
leaq 0x75aa(%rip), %rdi      # 0x9e9a
pushq $0xe
popq %rsi
movq %rbx, %rdx
callq 0x22a0
movq (%rbp), %rdi
cvtss2sd 0xb989(%rip), %xmm0     # 0xe290
movq %r14, %rsi
movb $0x1, %al
callq 0x21c0
movq (%rbp), %rdi
movzbl 0xb8b8(%rip), %edx      # 0xe1d4
movq %r15, %rsi
xorl %eax, %eax
callq 0x21c0
movq (%rbp), %rdi
movzbl 0xb8a4(%rip), %edx      # 0xe1d5
movq %r12, %rsi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x21c0
// File: /workspace/github_c_makefile_star2_O3/Openvario[P]sensord/24c16.c
// Function: eeprom_open
int eeprom_open(t_24c16 *eeprom, unsigned char i2c_address)
{
	// local variables
	int fd;
	char s;
	int ret_code = 0;
	char offset = 0x00;

	// try to open I2C Bus
	fd = open("/dev/i2c-1", O_RDWR);

	if (fd < 0) {
		fprintf(stderr, "Error opening file: %s\n", strerror(errno));
		ret_code = 1;
	}

	if (ioctl(fd, I2C_SLAVE, i2c_address) < 0) {
		fprintf(stderr, "ioctl error: %s\n", strerror(errno));
		ret_code = 1;
	}

	// assign file handle to sensor object
	eeprom->fd = fd;
	eeprom->address = i2c_address;

	//write address offset to eeprom
	if ((write(eeprom->fd, (void*)&offset, 1)) != 1) {				// Send register we want to read from
		//fprintf(stderr, "Error writing to i2c slave (%s)\n", __func__);
		ret_code = 1;
	}

	if (read(eeprom->fd, &s, 1) != 1) {		// Read back data into buf[]
		ret_code = 1;
	}

	if (ret_code == 0)
	{
		fprintf(stderr, "Opened 24C16 on 0x%x\n", i2c_address);

	}
	else
	{
		fprintf(stderr, "Opened 24C16 on 0x%x failed !!!\n", i2c_address);
	}
	return (ret_code);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
movb $0x0, 0x6(%rsp)
leaq 0x5d0a(%rip), %rdi      # 0x93d8
xorl %r13d, %r13d
pushq $0x2
popq %rsi
xorl %eax, %eax
callq 0x2230
movl %eax, %r15d
testl %eax, %eax
jns 0x3710
movq 0xa90f(%rip), %rax      # 0xdff8
movq (%rax), %r12
callq 0x2040
movl (%rax), %edi
callq 0x22d0
leaq 0x5ce4(%rip), %rsi      # 0x93e3
movq %r12, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x21c0
pushq $0x1
popq %r13
pushq $0x1
popq %rbp
movzbl %r14b, %r14d
movl $0x703, %esi            # imm = 0x703
movl %r15d, %edi
movl %r14d, %edx
xorl %eax, %eax
callq 0x2140
testl %eax, %eax
jns 0x375a
movq 0xa8c4(%rip), %rax      # 0xdff8
movq (%rax), %r12
callq 0x2040
movl (%rax), %edi
callq 0x22d0
leaq 0x58f6(%rip), %rsi      # 0x9040
movq %r12, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x21c0
movl %ebp, %r13d
movl %r15d, (%rbx)
movb %r14b, 0x4(%rbx)
leaq 0x6(%rsp), %rsi
pushq $0x1
popq %r12
movl %r15d, %edi
movq %r12, %rdx
callq 0x20b0
movq %rax, %r15
xorq $0x1, %r15
movl (%rbx), %edi
leaq 0x7(%rsp), %rsi
movq %r12, %rdx
callq 0x2180
xorq $0x1, %rax
orq %r15, %rax
cmovel %r13d, %ebp
testl %ebp, %ebp
movq 0xa859(%rip), %rax      # 0xdff8
movq (%rax), %rdi
leaq 0x7053(%rip), %rax      # 0xa7fc
leaq 0x7062(%rip), %rsi      # 0xa812
cmoveq %rax, %rsi
movl %r14d, %edx
xorl %eax, %eax
callq 0x21c0
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/Openvario[P]sensord/wait.c
// Function: sensor_wait
float sensor_wait (float time)
{
	struct timespec until = sensor_prev;
	timespec_add_us(&until, time);
	while (clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &until, NULL)) {}

	struct timespec curtime;
	clock_gettime(CLOCK_MONOTONIC, &curtime);
	return timespec_delta_us(&curtime, &sensor_prev) - time;
}

// Assembly:
pushq %rbx
subq $0x30, %rsp
movups 0xa57f(%rip), %xmm1     # 0xe1b8
movaps %xmm1, (%rsp)
cvttss2si %xmm0, %rax
movq %rax, %rcx
movaps %xmm0, 0x10(%rsp)
subss 0x53b2(%rip), %xmm0     # 0x9004
cvttss2si %xmm0, %rdx
sarq $0x3f, %rcx
andq %rcx, %rdx
orq %rax, %rdx
imulq $0x3e8, %rdx, %rax      # imm = 0x3E8
addq 0x8(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x3b9aca01, %rax       # imm = 0x3B9ACA01
jl 0x3c89
addq $-0x3b9aca00, %rax      # imm = 0xC4653600
movq %rax, 0x8(%rsp)
incq (%rsp)
movq %rsp, %rbx
movl $0x1, %edi
movl $0x1, %esi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x22b0
testl %eax, %eax
jne 0x3c8c
leaq 0x20(%rsp), %rbx
movl $0x1, %edi
movq %rbx, %rsi
callq 0x20a0
xorps %xmm0, %xmm0
cvtsi2sdq (%rbx), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdq 0x8(%rbx), %xmm1
movsd 0x5341(%rip), %xmm2     # 0x9010
mulsd %xmm2, %xmm1
cvtsi2sdq 0xa4dc(%rip), %xmm3 # 0xe1b8
addsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2sdq 0xa4d4(%rip), %xmm0 # 0xe1c0
mulsd %xmm2, %xmm0
addsd %xmm3, %xmm0
subsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
mulss 0x5301(%rip), %xmm0     # 0x9008
subss 0x10(%rsp), %xmm0
addq $0x30, %rsp
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O3/Openvario[P]sensord/ms5611.c
// Function: ms5611_open
int ms5611_open(t_ms5611 *sensor)
{
	// local variables
	int fd;
	char i2c_dev[PATH_MAX] = {0};
	sprintf(i2c_dev, "/dev/i2c-%hhu", sensor->bus);

	// try to open I2C Bus
	fd = open(i2c_dev, O_RDWR);

	if (fd < 0) {
		fprintf(stderr, "Error opening %s: %s\n", i2c_dev, strerror(errno));
		return 1;
	}

	if (ioctl(fd, I2C_SLAVE, sensor->address) < 0) {
		fprintf(stderr, "ioctl error: %s\n", strerror(errno));
		return 1;
	}

	if (g_debug > 0) fprintf(stderr, "Opened MS5611 on bus %s with address 0x%x\n", i2c_dev, sensor->address);

	// assign file handle to sensor object
	sensor->fd = fd;
	return (0);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x1000, %rsp           # imm = 0x1000
movq %rdi, %rbx
movq %rsp, %r14
movl $0x1000, %edx           # imm = 0x1000
movq %r14, %rdi
xorl %esi, %esi
callq 0x2130
movzbl 0x5(%rbx), %edx
leaq 0x52dd(%rip), %rsi      # 0x901c
movq %r14, %rdi
xorl %eax, %eax
callq 0x2270
movq %r14, %rdi
movl $0x2, %esi
xorl %eax, %eax
callq 0x2230
testl %eax, %eax
js 0x3d90
movl %eax, %ebp
movzbl 0x4(%rbx), %edx
movl $0x703, %esi            # imm = 0x703
movl %eax, %edi
xorl %eax, %eax
callq 0x2140
testl %eax, %eax
js 0x3d9a
leaq 0xa6f9(%rip), %rax      # 0xe474
cmpl $0x0, (%rax)
jg 0x3da6
movl %ebp, (%rbx)
xorl %eax, %eax
addq $0x1000, %rsp           # imm = 0x1000
popq %rbx
popq %r14
popq %rbp
retq
movq %rsp, %rdi
callq 0x235c
jmp 0x3d9f
callq 0x2330
movl $0x1, %eax
jmp 0x3d84
movq 0xa24b(%rip), %rax      # 0xdff8
movq (%rax), %rdi
movzbl 0x4(%rbx), %ecx
leaq 0x5296(%rip), %rsi      # 0x9051
movq %rsp, %rdx
xorl %eax, %eax
callq 0x21c0
jmp 0x3d80
// File: /workspace/github_c_makefile_star2_O3/Openvario[P]sensord/ms5611.c
// Function: crc4
uint8_t crc4(uint16_t n_prom[])
{
	int cnt; // simple counter
	uint16_t n_rem; // crc reminder
	uint16_t crc_read; // original value of the crc
	uint8_t n_bit;
	n_rem = 0x00;
	crc_read=n_prom[7]; //save read CRC
	n_prom[7]=(0xFF00 & (n_prom[7])); //CRC byte is replaced by 0
	for (cnt = 0; cnt < 16; cnt++) // operation is performed on bytes
	{// choose LSB or MSB
		if (cnt%2==1) n_rem ^= (unsigned short) ((n_prom[cnt>>1]) & 0x00FF);
		else n_rem ^= (unsigned short) (n_prom[cnt>>1]>>8);
		for (n_bit = 8; n_bit > 0; n_bit--)
		{
			if (n_rem & (0x8000))
			{
				n_rem = (n_rem << 1) ^ 0x3000;
			}
			else
			{
				n_rem = (n_rem << 1);
			}
		}
	}
	n_rem= (0x000F & (n_rem >> 12)); // final 4-bit reminder is CRC code
	n_prom[7]=crc_read; // restore the crc_read to its original place
	return (n_rem ^ 0x0);
}

// Assembly:
movzwl 0xe(%rdi), %ecx
movl %ecx, %eax
andl $0xff00, %eax           # imm = 0xFF00
movw %ax, 0xe(%rdi)
xorl %eax, %eax
xorl %edx, %edx
movl %eax, %esi
andl $-0x2, %esi
movzwl (%rdi,%rsi), %esi
movzbl %sil, %r8d
shrl $0x8, %esi
testb $0x1, %al
cmovel %esi, %r8d
xorl %r8d, %edx
movb $-0x8, %sil
leal (%rdx,%rdx), %r8d
movl %r8d, %r9d
xorl $0x3000, %r9d           # imm = 0x3000
testw %dx, %dx
cmovnsl %r8d, %r9d
movl %r9d, %edx
incb %sil
jne 0x3df6
incl %eax
cmpl $0x10, %eax
jne 0x3dda
movzwl %dx, %eax
shrl $0xc, %eax
movw %cx, 0xe(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/Openvario[P]sensord/ms5611.c
// Function: ms5611_start_temp
int ms5611_start_temp(t_ms5611 *sensor)
{
	//variables
	unsigned char buf[10]={0x00};

	// start conversion for D2
	buf[0] = 0x58;										// This is the register we want to read from
	if ((write(sensor->fd, buf, 1)) != 1) {				// Send register we want to read from
		fprintf(stderr, "Error writing to i2c slave (%s)\n", __func__);
		return(1);
	}

	return(0);
}

// Assembly:
subq $0x18, %rsp
leaq 0xe(%rsp), %rsi
movb $0x0, 0x9(%rsi)
movq $0x0, 0x1(%rsi)
movb $0x58, (%rsi)
movl (%rdi), %edi
movl $0x1, %edx
callq 0x20b0
movq %rax, %rcx
xorl %eax, %eax
cmpq $0x1, %rcx
jne 0x4125
addq $0x18, %rsp
retq
callq 0x24f7
movl $0x1, %eax
jmp 0x4120
// File: /workspace/github_c_makefile_star2_O3/Openvario[P]sensord/ms5611.c
// Function: ms5611_start_pressure
int ms5611_start_pressure(t_ms5611 *sensor)
{
	//variables
	//struct timespec sample_time;
	uint8_t buf[10]={0x00};

	// start conversion for D1
	buf[0] = 0x48;													// This is the register we want to read from
	if ((write(sensor->fd, buf, 1)) != 1) {								// Send register we want to read from
		fprintf(stderr, "Error writing to i2c slave: start conv: adr %x\n",sensor->address);
		return(1);
	}

	return(0);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x6(%rsp), %rsi
movb $0x0, 0x9(%rsi)
movq $0x0, 0x1(%rsi)
movb $0x48, (%rsi)
movl (%rdi), %edi
movl $0x1, %edx
callq 0x20b0
movq %rax, %rcx
xorl %eax, %eax
cmpq $0x1, %rcx
jne 0x416a
addq $0x10, %rsp
popq %rbx
retq
movq %rbx, %rdi
callq 0x2516
movl $0x1, %eax
jmp 0x4164
// File: /workspace/github_c_makefile_star2_O3/Openvario[P]sensord/ms5611.c
// Function: ms5611_read_pressure
int ms5611_read_pressure(t_ms5611 *sensor)
{
	//variables
	//long d2;
	uint8_t buf[10]={0x00};

	// read result
	buf[0] = 0x00;
	if ((write(sensor->fd, buf, 1)) != 1) {								// Send register we want to read from
		fprintf(stderr, "Error writing to i2c slave: write Read result(%s)\n", __func__);
		return(1);
	}

	if (read(sensor->fd, buf, 3) != 3) {								// Read back data into buf[]
		fprintf(stderr, "Unable to read from slave: read result(%s)\n", __func__);
		return(1);
	}

	// put pressure reading together
	sensor->D1l = sensor->D1;
	sensor->D1 = (buf[0] << 16) + (buf[1] << 8) + buf[2];

	return 0;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq %rsp, %rsi
movw $0x0, 0x8(%rsi)
movq $0x0, (%rsi)
movl (%rdi), %edi
movl $0x1, %edx
callq 0x20b0
cmpq $0x1, %rax
jne 0x43ef
movl (%rbx), %edi
movq %rsp, %rsi
movl $0x3, %edx
callq 0x2180
cmpq $0x3, %rax
jne 0x43f6
movl 0x1c(%rbx), %eax
movl %eax, 0x24(%rbx)
movzbl (%rsp), %eax
shll $0x10, %eax
movzbl 0x1(%rsp), %ecx
shll $0x8, %ecx
orl %eax, %ecx
movzbl 0x2(%rsp), %eax
orl %ecx, %eax
movl %eax, 0x1c(%rbx)
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
retq
callq 0x259d
jmp 0x43fb
callq 0x25bc
movl $0x1, %eax
jmp 0x43e9
// File: /workspace/github_c_makefile_star2_O3/Openvario[P]sensord/ms5611.c
// Function: ms5611_calculate_pressure
int ms5611_calculate_pressure(t_ms5611 *sensor)
{
	sensor->p_meas = (((sensor->D1 * sensor->sens) >> 21) - sensor->off) >> 11;

	// check for valid range
	if ((sensor->temp > -4000) && (sensor->temp < 8500) && (sensor->p_meas > 16000) && (sensor->p_meas < 1920000))
	{
		// correct measured pressure
		sensor->p = (sensor->linearity * (float)(sensor->p_meas + sensor->offset))*.0625;

		// some debugging output
		ddebug_print("%s @ 0x%x: D1: %u\n", __func__, sensor->address, sensor->D1);
		ddebug_print("%s @ 0x%x: OFF: %" PRId64 "\n", __func__, sensor->address, sensor->off);
		ddebug_print("%s @ 0x%x: SENS: %" PRId64 "\n", __func__, sensor->address, sensor->sens);
		debug_print("%s @ 0x%x: Pressure measured: %ld, %f\n", __func__, sensor->address, (unsigned long)sensor->p_meas, sensor->p);
		return(0);
	}
	else
	{
		// TODO add error handling here !!
		return(1);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0x1c(%rdi), %r8d
movq 0x48(%rdi), %rax
imulq %r8, %rax
shrq $0x15, %rax
subq 0x40(%rdi), %rax
shrq $0xb, %rax
movl %eax, 0x50(%rdi)
movl $0xf9f, %ecx            # imm = 0xF9F
addl 0x38(%rdi), %ecx
movl $0x1, %ebp
cmpl $0x30d2, %ecx           # imm = 0x30D2
ja 0x4487
leal -0x3e81(%rax), %ecx
cmpl $0x1d0d7e, %ecx         # imm = 0x1D0D7E
ja 0x4487
movq %rdi, %rbx
cvtsi2ss %eax, %xmm0
addss 0x90(%rdi), %xmm0
mulss 0x8c(%rdi), %xmm0
mulss 0x4bb2(%rip), %xmm0     # 0x9018
movss %xmm0, 0x88(%rdi)
leaq 0x9fff(%rip), %r14      # 0xe474
movl (%r14), %eax
cmpl $0x2, %eax
jge 0x4494
xorl %ebp, %ebp
testl %eax, %eax
jg 0x450f
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x9b5d(%rip), %r15      # 0xdff8
movq (%r15), %rdi
movzbl 0x4(%rbx), %ecx
leaq 0x4e9e(%rip), %rsi      # 0x9347
leaq 0x4eaa(%rip), %rdx      # 0x935a
xorl %eax, %eax
callq 0x21c0
movl (%r14), %eax
cmpl $0x2, %eax
jl 0x447d
movq (%r15), %rdi
movzbl 0x4(%rbx), %ecx
movq 0x40(%rbx), %r8
leaq 0x4ea3(%rip), %rsi      # 0x9374
leaq 0x4e82(%rip), %rdx      # 0x935a
xorl %eax, %eax
callq 0x21c0
movl (%r14), %eax
cmpl $0x2, %eax
jl 0x447d
movq (%r15), %rdi
movzbl 0x4(%rbx), %ecx
movq 0x48(%rbx), %r8
leaq 0x4e90(%rip), %rsi      # 0x9389
leaq 0x4e5a(%rip), %rdx      # 0x935a
xorl %eax, %eax
callq 0x21c0
movl (%r14), %eax
jmp 0x447d
movq 0x9ae2(%rip), %rax      # 0xdff8
movq (%rax), %rdi
movzbl 0x4(%rbx), %ecx
movslq 0x50(%rbx), %r8
xorps %xmm0, %xmm0
cvtss2sd 0x88(%rbx), %xmm0
leaq 0x4e6c(%rip), %rsi      # 0x939f
leaq 0x4e20(%rip), %rdx      # 0x935a
movb $0x1, %al
callq 0x21c0
jmp 0x4487
nop