// File: /workspace/github_c_makefile_star2_O0/kaiserschmarrn0[P]mywm/snap.c
// Function: create_snap_regions
void create_snap_regions() {
	/* ld */

	snap_regions[0][0] = GAP;
	snap_regions[0][1] = (scr->height_in_pixels - TOP - BOT) / 2 + GAP / 2 + TOP;
	snap_regions[0][2] = scr->width_in_pixels / 2 - 1.5 * GAP - BORDER * 2;
	snap_regions[0][3] = (scr->height_in_pixels - TOP - BOT) / 2 - 1.5 * GAP - 2 * BORDER;
	
	/* l */

	snap_regions[1][0] = GAP;
	snap_regions[1][1] = GAP + TOP;
	snap_regions[1][2] = scr->width_in_pixels / 2 - 1.5 * GAP - BORDER * 2;
	snap_regions[1][3] = scr->height_in_pixels - 2 * GAP - 2 * BORDER - TOP - BOT;

	/* lu */

	snap_regions[2][0] = GAP;
	snap_regions[2][1] = GAP + TOP;
	snap_regions[2][2] = scr->width_in_pixels / 2 - 1.5 * GAP - BORDER * 2;
	snap_regions[2][3] = (scr->height_in_pixels - TOP - BOT) / 2 - 1.5 * GAP - 2 * BORDER;

	/* max */

#ifndef SNAP_MAX_SMART
	snap_regions[3][0] = GAP;
	snap_regions[3][1] = GAP + TOP;
	snap_regions[3][2] = scr->width_in_pixels - 2 * GAP - 2 * BORDER;
	snap_regions[3][3] = scr->height_in_pixels - 2 * GAP - 2 * BORDER - TOP - BOT;
#else
	snap_regions[3][0] = 0;
	snap_regions[3][1] = TOP;
	snap_regions[3][2] = scr->width_in_pixels;
	snap_regions[3][3] = scr->height_in_pixels - TOP - BOT;
#endif

	/* ru */

	snap_regions[4][0] = scr->width_in_pixels / 2 + GAP / 2;
	snap_regions[4][1] = GAP + TOP;
	snap_regions[4][2] = scr->width_in_pixels / 2 - 1.5 * GAP - BORDER * 2;
	snap_regions[4][3] = (scr->height_in_pixels - TOP - BOT) / 2 - 1.5 * GAP - 2 * BORDER;
	
	/* r */

	snap_regions[5][0] = scr->width_in_pixels / 2 + GAP / 2;
	snap_regions[5][1] = GAP + TOP;
	snap_regions[5][2] = scr->width_in_pixels / 2 - 1.5 * GAP - BORDER * 2;
	snap_regions[5][3] = scr->height_in_pixels - 2 * GAP - 2 * BORDER - TOP - BOT;
	
	/* rd */
	
	snap_regions[6][0] = scr->width_in_pixels / 2 + GAP / 2;
	snap_regions[6][1] = (scr->height_in_pixels - TOP - BOT) / 2 + GAP / 2 + TOP;
	snap_regions[6][2] = scr->width_in_pixels / 2 - 1.5 * GAP - BORDER * 2;
	snap_regions[6][3] = (scr->height_in_pixels - TOP - BOT) / 2 - 1.5 * GAP - 2 * BORDER;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0x0, 0x6502(%rip)      # 0x10aa0
leaq 0x5eab(%rip), %rax      # 0x10450
movq (%rax), %rcx
movzwl 0x16(%rcx), %ecx
shrl %ecx
movl %ecx, 0x64f0(%rip)      # 0x10aa4
movq (%rax), %rcx
movzwl 0x14(%rcx), %ecx
shrl %ecx
movl %ecx, 0x64e5(%rip)      # 0x10aa8
movq (%rax), %rcx
movzwl 0x16(%rcx), %ecx
shrl %ecx
movl %ecx, 0x64da(%rip)      # 0x10aac
movl $0x0, 0x64d4(%rip)      # 0x10ab0
movl $0x0, 0x64ce(%rip)      # 0x10ab4
movq (%rax), %rcx
movzwl 0x14(%rcx), %ecx
shrl %ecx
movl %ecx, 0x64c3(%rip)      # 0x10ab8
movq (%rax), %rcx
movzwl 0x16(%rcx), %ecx
movl %ecx, 0x64ba(%rip)      # 0x10abc
movl $0x0, 0x64b4(%rip)      # 0x10ac0
movl $0x0, 0x64ae(%rip)      # 0x10ac4
movq (%rax), %rcx
movzwl 0x14(%rcx), %ecx
shrl %ecx
movl %ecx, 0x64a3(%rip)      # 0x10ac8
movq (%rax), %rcx
movzwl 0x16(%rcx), %ecx
shrl %ecx
movl %ecx, 0x6498(%rip)      # 0x10acc
movl $0x0, 0x6492(%rip)      # 0x10ad0
movl $0x0, 0x648c(%rip)      # 0x10ad4
movq (%rax), %rcx
movzwl 0x14(%rcx), %ecx
movl %ecx, 0x6483(%rip)      # 0x10ad8
movq (%rax), %rcx
movzwl 0x16(%rcx), %ecx
movl %ecx, 0x647a(%rip)      # 0x10adc
movq (%rax), %rcx
movzwl 0x14(%rcx), %ecx
shrl %ecx
movl %ecx, 0x646f(%rip)      # 0x10ae0
movl $0x0, 0x6469(%rip)      # 0x10ae4
movq (%rax), %rcx
movzwl 0x14(%rcx), %ecx
shrl %ecx
movl %ecx, 0x645e(%rip)      # 0x10ae8
movq (%rax), %rcx
movzwl 0x16(%rcx), %ecx
shrl %ecx
movl %ecx, 0x6453(%rip)      # 0x10aec
movq (%rax), %rcx
movzwl 0x14(%rcx), %ecx
shrl %ecx
movl %ecx, 0x6448(%rip)      # 0x10af0
movl $0x0, 0x6442(%rip)      # 0x10af4
movq (%rax), %rcx
movzwl 0x14(%rcx), %ecx
shrl %ecx
movl %ecx, 0x6437(%rip)      # 0x10af8
movq (%rax), %rcx
movzwl 0x16(%rcx), %ecx
movl %ecx, 0x642e(%rip)      # 0x10afc
movq (%rax), %rcx
movzwl 0x14(%rcx), %ecx
shrl %ecx
movl %ecx, 0x6423(%rip)      # 0x10b00
movq (%rax), %rcx
movzwl 0x16(%rcx), %ecx
shrl %ecx
movl %ecx, 0x6418(%rip)      # 0x10b04
movq (%rax), %rcx
movzwl 0x14(%rcx), %ecx
shrl %ecx
movl %ecx, 0x640d(%rip)      # 0x10b08
movq (%rax), %rax
movzwl 0x16(%rax), %eax
shrl %eax
movl %eax, 0x6402(%rip)      # 0x10b0c
popq %rbp
retq
nopl (%rax)