// File: /workspace/github_c_makefile_star2_O3/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 0x2c43
leaq 0x4ac9(%rip), %rbx      # 0x8354
xorl %r14d, %r14d
leaq 0x152cb(%rip), %r15     # 0x18b60
leaq 0x151a4(%rip), %r12     # 0x18a40
movq 0x14f55(%rip), %rdi     # 0x187f8
movq (%r14,%r15), %rsi
movl -0x10(%rbx), %eax
movl -0xc(%rbx), %r9d
addl 0x152a4(%rip), %eax     # 0x18b58
movl 0x15175(%rip), %r8d     # 0x18a30
imull %r8d, %eax
movl 0x1516e(%rip), %r11d    # 0x18a34
cltd
idivl %r11d
movl %eax, %ecx
addl 0x15289(%rip), %r9d     # 0x18b5c
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 0x14ee6(%rip), %rdi     # 0x187f8
movq (%r14,%r15), %rsi
movslq (%rbx), %rax
movq (%r12,%rax,8), %rdx
callq 0x2320
movq 0x14ecf(%rip), %rdi     # 0x187f8
movq (%r14,%r15), %rsi
movl $0x1, (%rsp)
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x22e0
addq $0x18, %rbx
addq $0x8, %r14
cmpq $0x348, %r14            # imm = 0x348
jne 0x389c
xorl %ebx, %ebx
leaq 0x48af(%rip), %r14      # 0x8210
movl $0x4, %ebp
leaq 0x15543(%rip), %r15     # 0x18eb0
movl 0x150bc(%rip), %r11d    # 0x18a30
movl 0x8(%r14,%rbx,2), %eax
imull %r11d, %eax
movl 0x150b0(%rip), %r12d    # 0x18a34
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 0x14e49(%rip), %rdi     # 0x187f8
movq (%rbx,%r15), %rsi
movl (%r14,%rbx,2), %eax
movl 0x4(%r14,%rbx,2), %ecx
addl 0x15196(%rip), %eax     # 0x18b58
imull %r11d, %eax
cltd
idivl %r12d
movl %eax, %r10d
addl 0x15189(%rip), %ecx     # 0x18b5c
imull %r11d, %ecx
movl %ecx, %eax
cltd
idivl %r12d
movl %r10d, %edx
movl %eax, %ecx
callq 0x2100
addq $0x8, %rbx
cmpq $0x98, %rbx
jne 0x396d
movq 0x14df9(%rip), %rdi     # 0x187f8
movq 0x15122(%rip), %rsi     # 0x18b28
movq 0x15103(%rip), %rdx     # 0x18b10
callq 0x2320
movq 0x14ddf(%rip), %rdi     # 0x187f8
movq 0x14f50(%rip), %rsi     # 0x18970
movq 0x150f9(%rip), %rdx     # 0x18b20
callq 0x2320
movq 0x14dc5(%rip), %rdi     # 0x187f8
movq 0x14f36(%rip), %rsi     # 0x18970
callq 0x2060
movq 0x14db2(%rip), %rdi     # 0x187f8
movq 0x150db(%rip), %rsi     # 0x18b28
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2060