// File: /workspace/github_c_makefile_star2_O0/tudurom[P]windowchef/wm.c
// Function: set_focused_no_raise
static void
set_focused_no_raise(struct client *client)
{
	long data[] = {
		XCB_ICCCM_WM_STATE_NORMAL,
		XCB_NONE,
	};
	if (client == NULL)
		return;

	/* show window if hidden */
	xcb_map_window(conn, client->window);

	if (!client->maxed)
		set_borders(client, conf.focus_color, conf.internal_focus_color);

	/* focus the window */
	xcb_set_input_focus(conn, XCB_INPUT_FOCUS_POINTER_ROOT,
			client->window, XCB_CURRENT_TIME);

	/* set ewmh property */
	xcb_change_property(conn, XCB_PROP_MODE_REPLACE, scr->root,
			ewmh->_NET_ACTIVE_WINDOW, XCB_ATOM_WINDOW, 32, 1, &client->window);

	/* set window state */
	xcb_change_property(conn, XCB_PROP_MODE_REPLACE, client->window,
						ewmh->_NET_WM_STATE, ewmh->_NET_WM_STATE, 32, 2, data);

	/* set the focus state to inactive on the previously focused window */
	if (client != focused_win) {
		if (focused_win != NULL && !focused_win->maxed)
			set_borders(focused_win, conf.unfocus_color, conf.internal_unfocus_color);
	}

	if (client->focus_item != NULL)
		list_move_to_head(&focus_list, client->focus_item);

	focused_win = client;

	window_grab_buttons(focused_win->window);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq 0x681d(%rip), %rax      # 0xc150
movq %rax, -0x20(%rbp)
movq 0x681a(%rip), %rax      # 0xc158
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x594e
jmp 0x5a9c
movq 0x9a83(%rip), %rdi      # 0xf3d8
movq -0x8(%rbp), %rax
movl (%rax), %esi
callq 0x3280
movl %eax, -0x24(%rbp)
movq -0x8(%rbp), %rax
testb $0x1, 0x24(%rax)
jne 0x5982
movq -0x8(%rbp), %rdi
movl 0x9e51(%rip), %esi      # 0xf7c8
movl 0x9e53(%rip), %edx      # 0xf7d0
callq 0x5d90
movq 0x9a4f(%rip), %rdi      # 0xf3d8
movq -0x8(%rbp), %rax
movl (%rax), %edx
movl $0x1, %esi
xorl %ecx, %ecx
callq 0x3160
movl %eax, -0x28(%rbp)
movq 0x9a33(%rip), %rdi      # 0xf3d8
movq 0x9e4c(%rip), %rax      # 0xf7f8
movl (%rax), %edx
movq 0x9a2b(%rip), %rax      # 0xf3e0
movl 0x40(%rax), %ecx
movq -0x8(%rbp), %rax
xorl %esi, %esi
movl $0x21, %r8d
movl $0x20, %r9d
movl $0x1, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x35b0
movl %eax, -0x2c(%rbp)
movq 0x99f3(%rip), %rdi      # 0xf3d8
movq -0x8(%rbp), %rax
movl (%rax), %edx
movq 0x99ee(%rip), %rax      # 0xf3e0
movl 0x84(%rax), %ecx
movq 0x99e1(%rip), %rax      # 0xf3e0
movl 0x84(%rax), %r8d
leaq -0x20(%rbp), %rax
xorl %esi, %esi
movl $0x20, %r9d
movl $0x2, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x35b0
movl %eax, -0x30(%rbp)
movq -0x8(%rbp), %rax
cmpq 0x9dcf(%rip), %rax      # 0xf800
je 0x5a64
cmpq $0x0, 0x9dc5(%rip)      # 0xf800
je 0x5a62
movq 0x9dbc(%rip), %rax      # 0xf800
testb $0x1, 0x24(%rax)
jne 0x5a62
movq 0x9daf(%rip), %rdi      # 0xf800
movl 0x9d75(%rip), %esi      # 0xf7cc
movl 0x9d77(%rip), %edx      # 0xf7d4
callq 0x5d90
jmp 0x5a64
movq -0x8(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0x5a83
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rsi
leaq 0x9972(%rip), %rdi      # 0xf3f0
callq 0xb6a0
movq -0x8(%rbp), %rax
movq %rax, 0x9d72(%rip)      # 0xf800
movq 0x9d6b(%rip), %rax      # 0xf800
movl (%rax), %edi
callq 0x6240
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)