// File: /workspace/github_c_makefile_star2_O0/kaiserschmarrn0[P]mywm/margin.c
// Function: create_margins
void create_margins() {
	traverse_margins(create_margin_window);

	uint32_t corner_width = scr->width_in_pixels / 4;
	uint32_t corner_height = scr->height_in_pixels / 4;

	uint32_t width = scr->width_in_pixels - 2 * corner_width; //odd_numbers
	uint32_t height = scr->height_in_pixels - 2 * corner_height; //odd_numbers

	/* dl */

	margins[0].rects[0].x = 0;
	margins[0].rects[0].y = scr->height_in_pixels - corner_height;
	margins[0].rects[0].width = MARGIN;
	margins[0].rects[0].height = corner_height;

	margins[0].rects[1].x = 0;
	margins[0].rects[1].y = scr->height_in_pixels - MARGIN;
	margins[0].rects[1].width = corner_width;
	margins[0].rects[1].height = MARGIN;
	
	/* l */

	margins[1].rects[0].x = 0;
	margins[1].rects[0].y = corner_height;
	margins[1].rects[0].width = MARGIN;
	margins[1].rects[0].height = height;

	/* ul */

	margins[2].rects[0].x = 0;
	margins[2].rects[0].y = 0;
	margins[2].rects[0].width = MARGIN;
	margins[2].rects[0].height = corner_height;

	margins[2].rects[1].x = 0;
	margins[2].rects[1].y = 0;
	margins[2].rects[1].width = corner_width;
	margins[2].rects[1].height = MARGIN;

	/* t */

	margins[3].rects[0].x = corner_width;
	margins[3].rects[0].y = 0;
	margins[3].rects[0].width = width;
	margins[3].rects[0].height = MARGIN;

	/* ur */

	margins[4].rects[0].x = scr->width_in_pixels - corner_width;
	margins[4].rects[0].y = 0;
	margins[4].rects[0].width = corner_width;
	margins[4].rects[0].height = MARGIN;

	margins[4].rects[1].x = scr->width_in_pixels - MARGIN;
	margins[4].rects[1].y = 0;
	margins[4].rects[1].width = MARGIN;
	margins[4].rects[1].height = corner_height;

	/* r */

	margins[5].rects[0].x = scr->width_in_pixels - MARGIN;
	margins[5].rects[0].y = corner_height;
	margins[5].rects[0].width = MARGIN;
	margins[5].rects[0].height = height;

	/* dr */

	margins[6].rects[0].x = scr->width_in_pixels - MARGIN;
	margins[6].rects[0].y = scr->height_in_pixels - corner_height;
	margins[6].rects[0].width = MARGIN;
	margins[6].rects[0].height = corner_height;

	margins[6].rects[1].x = scr->width_in_pixels - corner_width;
	margins[6].rects[1].y = scr->height_in_pixels - MARGIN;
	margins[6].rects[1].width = corner_width;
	margins[6].rects[1].height = MARGIN;
	
	traverse_margins(shape_margin);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
leaq 0x2e1(%rip), %rdi       # 0xac30
callq 0xabf0
leaq 0x5af5(%rip), %rax      # 0x10450
movq (%rax), %rax
movzwl 0x14(%rax), %eax
movl $0x4, %ecx
cltd
idivl %ecx
movl %eax, -0x4(%rbp)
leaq 0x5adc(%rip), %rax      # 0x10450
movq (%rax), %rax
movzwl 0x16(%rax), %eax
movl $0x4, %ecx
cltd
idivl %ecx
movl %eax, -0x8(%rbp)
leaq 0x5ac3(%rip), %rax      # 0x10450
movq (%rax), %rax
movzwl 0x14(%rax), %eax
movl -0x4(%rbp), %ecx
shll %ecx
subl %ecx, %eax
movl %eax, -0xc(%rbp)
leaq 0x5aab(%rip), %rax      # 0x10450
movq (%rax), %rax
movzwl 0x16(%rax), %eax
movl -0x8(%rbp), %ecx
shll %ecx
subl %ecx, %eax
movl %eax, -0x10(%rbp)
movw $0x0, 0x59a1(%rip)      # 0x10360
leaq 0x5a8a(%rip), %rax      # 0x10450
movq (%rax), %rax
movzwl 0x16(%rax), %eax
subl -0x8(%rbp), %eax
movw %ax, 0x598b(%rip)       # 0x10362
movw $0x5, 0x5984(%rip)      # 0x10364
movl -0x8(%rbp), %eax
movw %ax, 0x597c(%rip)       # 0x10366
movw $0x0, 0x5975(%rip)      # 0x10368
leaq 0x5a56(%rip), %rax      # 0x10450
movq (%rax), %rax
movzwl 0x16(%rax), %eax
subl $0x5, %eax
movw %ax, 0x595f(%rip)       # 0x1036a
movl -0x4(%rbp), %eax
movw %ax, 0x5957(%rip)       # 0x1036c
movw $0x5, 0x5950(%rip)      # 0x1036e
movw $0x0, 0x5955(%rip)      # 0x1037c
movl -0x8(%rbp), %eax
movw %ax, 0x594d(%rip)       # 0x1037e
movw $0x5, 0x5946(%rip)      # 0x10380
movl -0x10(%rbp), %eax
movw %ax, 0x593e(%rip)       # 0x10382
movw $0x0, 0x594b(%rip)      # 0x10398
movw $0x0, 0x5944(%rip)      # 0x1039a
movw $0x5, 0x593d(%rip)      # 0x1039c
movl -0x8(%rbp), %eax
movw %ax, 0x5935(%rip)       # 0x1039e
movw $0x0, 0x592e(%rip)      # 0x103a0
movw $0x0, 0x5927(%rip)      # 0x103a2
movl -0x4(%rbp), %eax
movw %ax, 0x591f(%rip)       # 0x103a4
movw $0x5, 0x5918(%rip)      # 0x103a6
movl -0x4(%rbp), %eax
movw %ax, 0x591c(%rip)       # 0x103b4
movw $0x0, 0x5915(%rip)      # 0x103b6
movl -0xc(%rbp), %eax
movw %ax, 0x590d(%rip)       # 0x103b8
movw $0x5, 0x5906(%rip)      # 0x103ba
leaq 0x5995(%rip), %rax      # 0x10450
movq (%rax), %rax
movzwl 0x14(%rax), %eax
subl -0x4(%rbp), %eax
movw %ax, 0x5904(%rip)       # 0x103d0
movw $0x0, 0x58fd(%rip)      # 0x103d2
movl -0x4(%rbp), %eax
movw %ax, 0x58f5(%rip)       # 0x103d4
movw $0x5, 0x58ee(%rip)      # 0x103d6
leaq 0x5961(%rip), %rax      # 0x10450
movq (%rax), %rax
movzwl 0x14(%rax), %eax
subl $0x5, %eax
movw %ax, 0x58d8(%rip)       # 0x103d8
movw $0x0, 0x58d1(%rip)      # 0x103da
movw $0x5, 0x58ca(%rip)      # 0x103dc
movl -0x8(%rbp), %eax
movw %ax, 0x58c2(%rip)       # 0x103de
leaq 0x592d(%rip), %rax      # 0x10450
movq (%rax), %rax
movzwl 0x14(%rax), %eax
subl $0x5, %eax
movw %ax, 0x58b8(%rip)       # 0x103ec
movl -0x8(%rbp), %eax
movw %ax, 0x58b0(%rip)       # 0x103ee
movw $0x5, 0x58a9(%rip)      # 0x103f0
movl -0x10(%rbp), %eax
movw %ax, 0x58a1(%rip)       # 0x103f2
leaq 0x58f8(%rip), %rax      # 0x10450
movq (%rax), %rax
movzwl 0x14(%rax), %eax
subl $0x5, %eax
movw %ax, 0x589f(%rip)       # 0x10408
leaq 0x58e0(%rip), %rax      # 0x10450
movq (%rax), %rax
movzwl 0x16(%rax), %eax
subl -0x8(%rbp), %eax
movw %ax, 0x5889(%rip)       # 0x1040a
movw $0x5, 0x5882(%rip)      # 0x1040c
movl -0x8(%rbp), %eax
movw %ax, 0x587a(%rip)       # 0x1040e
leaq 0x58b5(%rip), %rax      # 0x10450
movq (%rax), %rax
movzwl 0x14(%rax), %eax
subl -0x4(%rbp), %eax
movw %ax, 0x5864(%rip)       # 0x10410
leaq 0x589d(%rip), %rax      # 0x10450
movq (%rax), %rax
movzwl 0x16(%rax), %eax
subl $0x5, %eax
movw %ax, 0x584e(%rip)       # 0x10412
movl -0x4(%rbp), %eax
movw %ax, 0x5846(%rip)       # 0x10414
movw $0x5, 0x583f(%rip)      # 0x10416
leaq 0x132(%rip), %rdi       # 0xad10
callq 0xabf0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)