// File: /workspace/github_c_makefile_star2_O1/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 0x4a59(%rip), %rbx      # 0x8354
xorl %r14d, %r14d
leaq 0x1525b(%rip), %r15     # 0x18b60
leaq 0x15134(%rip), %r12     # 0x18a40
movq 0x14ee5(%rip), %rdi     # 0x187f8
movq (%r14,%r15), %rsi
movl -0x10(%rbx), %eax
movl -0xc(%rbx), %r9d
addl 0x15234(%rip), %eax     # 0x18b58
movl 0x15105(%rip), %r8d     # 0x18a30
imull %r8d, %eax
movl 0x150fe(%rip), %r11d    # 0x18a34
cltd
idivl %r11d
movl %eax, %ecx
addl 0x15219(%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 0x14e76(%rip), %rdi     # 0x187f8
movq (%r14,%r15), %rsi
movslq (%rbx), %rax
movq (%r12,%rax,8), %rdx
callq 0x2320
movq 0x14e5f(%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 0x390c
xorl %ebx, %ebx
leaq 0x483f(%rip), %r14      # 0x8210
movl $0x4, %ebp
leaq 0x154d3(%rip), %r15     # 0x18eb0
movl 0x1504c(%rip), %r11d    # 0x18a30
movl 0x8(%r14,%rbx,2), %eax
imull %r11d, %eax
movl 0x15040(%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 0x14dd9(%rip), %rdi     # 0x187f8
movq (%rbx,%r15), %rsi
movl (%r14,%rbx,2), %eax
movl 0x4(%r14,%rbx,2), %ecx
addl 0x15126(%rip), %eax     # 0x18b58
imull %r11d, %eax
cltd
idivl %r12d
movl %eax, %r10d
addl 0x15119(%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 0x39dd
movq 0x14d89(%rip), %rdi     # 0x187f8
movq 0x150b2(%rip), %rsi     # 0x18b28
movq 0x15093(%rip), %rdx     # 0x18b10
callq 0x2320
movq 0x14d6f(%rip), %rdi     # 0x187f8
movq 0x14ee0(%rip), %rsi     # 0x18970
movq 0x15089(%rip), %rdx     # 0x18b20
callq 0x2320
movq 0x14d55(%rip), %rdi     # 0x187f8
movq 0x14ec6(%rip), %rsi     # 0x18970
callq 0x2060
movq 0x14d42(%rip), %rdi     # 0x187f8
movq 0x1506b(%rip), %rsi     # 0x18b28
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2060