// File: /workspace/github_c_makefile_star2_O2/kyx0r[P]xkeyboard/xkeyboard.c
// Function: resize_keys
void resize_keys(void)
{
	int i, w, h;

	create_pixmaps();
	for (i = 0; i < MAX_KEYS; i++) {
		XMoveResizeWindow(dpy, mykey[i],
			(ox + xk[i].x) * sn / sd, (oy + xk[i].y) * sn / sd,
			xk[i].w * sn / sd, xk[i].h * sn / sd);
		XSetWindowBackgroundPixmap(dpy, mykey[i], mykc[xk[i].p]);
		/* generate a new expose event for window */
		XClearArea(dpy, mykey[i], 0, 0, 0, 0, True);
	}
	for (i = 0; i < NUM_BORDERS; i++) {
		w = mb[i].w * sn / sd;
		h = mb[i].h * sn / sd;
		if (!w)
			w = 4;
		if (!h)
			h = 4;
		XMoveResizeWindow(dpy, myborder[i],
			(ox + mb[i].x) * sn / sd, (oy + mb[i].y) * sn / sd,
			w, h);
	}
	XSetWindowBackgroundPixmap(dpy, zoomwin, cpgm[NUM_CONSTPGM - 3]);
	XSetWindowBackgroundPixmap(dpy, mywindow, cpgm[NUM_CONSTPGM - 1]);
	XClearWindow(dpy, mywindow);
	XClearWindow(dpy, zoomwin);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
callq 0x2ba2
leaq 0x3b6c(%rip), %rbx      # 0x7354
xorl %r14d, %r14d
leaq 0x1436e(%rip), %r15     # 0x17b60
leaq 0x14247(%rip), %r12     # 0x17a40
cmpq $0x348, %r14            # imm = 0x348
je 0x38ba
movq 0x13feb(%rip), %rdi     # 0x177f8
movq (%r14,%r15), %rsi
movl -0x10(%rbx), %eax
movl -0xc(%rbx), %r9d
addl 0x1433a(%rip), %eax     # 0x17b58
movl 0x1420b(%rip), %r8d     # 0x17a30
imull %r8d, %eax
movl 0x14204(%rip), %r11d    # 0x17a34
cltd
idivl %r11d
movl %eax, %ecx
addl 0x1431f(%rip), %r9d     # 0x17b5c
imull %r8d, %r9d
movl %r9d, %eax
cltd
idivl %r11d
movl %eax, %r9d
movl -0x8(%rbx), %eax
imull %r8d, %eax
cltd
idivl %r11d
movl %eax, %r10d
imull -0x4(%rbx), %r8d
movl %r8d, %eax
cltd
idivl %r11d
movl %ecx, %edx
movl %r9d, %ecx
movl %r10d, %r8d
movl %eax, %r9d
callq 0x2100
movq 0x13f7c(%rip), %rdi     # 0x177f8
movq (%r14,%r15), %rsi
movslq (%rbx), %rax
movq (%r12,%rax,8), %rdx
callq 0x2320
movq 0x13f65(%rip), %rdi     # 0x177f8
movq (%r14,%r15), %rsi
movl $0x1, (%rsp)
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x22e0
addq $0x8, %r14
addq $0x18, %rbx
jmp 0x37f9
xorl %ebx, %ebx
leaq 0x394d(%rip), %r14      # 0x7210
pushq $0x4
popq %rbp
leaq 0x145e3(%rip), %r15     # 0x17eb0
cmpq $0x98, %rbx
je 0x395d
movl 0x1414f(%rip), %r11d    # 0x17a30
movl 0x8(%r14,%rbx,2), %eax
imull %r11d, %eax
movl 0x14143(%rip), %r12d    # 0x17a34
cltd
idivl %r12d
movl %eax, %r8d
movl 0xc(%r14,%rbx,2), %eax
imull %r11d, %eax
cltd
idivl %r12d
movl %eax, %r9d
testl %r8d, %r8d
cmovel %ebp, %r8d
testl %eax, %eax
cmovel %ebp, %r9d
movq 0x13edc(%rip), %rdi     # 0x177f8
movq (%rbx,%r15), %rsi
movl (%r14,%rbx,2), %eax
movl 0x4(%r14,%rbx,2), %ecx
addl 0x14229(%rip), %eax     # 0x17b58
imull %r11d, %eax
cltd
idivl %r12d
movl %eax, %r10d
addl 0x1421c(%rip), %ecx     # 0x17b5c
imull %r11d, %ecx
movl %ecx, %eax
cltd
idivl %r12d
movl %r10d, %edx
movl %eax, %ecx
callq 0x2100
addq $0x8, %rbx
jmp 0x38cd
movq 0x13e94(%rip), %rdi     # 0x177f8
movq 0x141bd(%rip), %rsi     # 0x17b28
movq 0x1419e(%rip), %rdx     # 0x17b10
callq 0x2320
movq 0x13e7a(%rip), %rdi     # 0x177f8
movq 0x13feb(%rip), %rsi     # 0x17970
movq 0x14194(%rip), %rdx     # 0x17b20
callq 0x2320
movq 0x13e60(%rip), %rdi     # 0x177f8
movq 0x13fd1(%rip), %rsi     # 0x17970
callq 0x2060
movq 0x13e4d(%rip), %rdi     # 0x177f8
movq 0x14176(%rip), %rsi     # 0x17b28
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2060