// File: /workspace/github_c_makefile_star2_O2/gitluin[P]sara/src/sara.c
// Function: manage
void
manage(Window parent, XWindowAttributes* wa){
	client* c, * t;
	Window trans = None;

	c = ecalloc(1, sizeof(client));

	if (curmon->current && curmon->current->isfull)
		togglefs(dumbarg);

	c->win = parent;
	c->isfloat = c->oldfloat = c->isfull = c->iscur = 0;
	c->x = wa->x;
	c->y = wa->y;
	c->w = wa->width;
	c->h = wa->height;

	if (XGetTransientForHint(dis, parent, &trans) && (t = findclient(trans))){
		c->desks = t->desks;
		c->mon = t->mon;

	} else {
		c->mon = curmon;
		applyrules(c);
	}
	if (!c->isfloat)
		c->isfloat = c->oldfloat = (trans != None);

	adjustcoords(c);
	c->y = (c->y < c->mon->wy) ? c->mon->wy : c->y;

	configure(c);
	XSelectInput(dis, c->win, EnterWindowMask|FocusChangeMask|PropertyChangeMask
			|StructureNotifyMask);
	grabbuttons(c, 0);

	attach(c, 1);

	/* move out of the way until told otherwise */
	XMoveResizeWindow(dis, c->win, c->x + 2*sw, c->y, c->w, c->h);
	arrange(c->mon);
#ifdef _SHAPE_H_
	roundcorners(c);
#endif
	XMapWindow(dis, c->win);

	if (c->desks & c->mon->seldesks){
		changecurrent(c, c->mon, c->mon->curdesk, 0);
		restack(c->mon);

		/* applyrules */
		if (c->isfull){
			c->isfull = !c->isfull;
			togglefs(dumbarg);
		}
	}

	outputstats();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r15
movq %rdi, %r14
andq $0x0, 0x8(%rsp)
pushq $0x1
popq %rdi
pushq $0x40
popq %rsi
callq 0x25fc
movq %rax, %rbx
movq 0x4681(%rip), %rax      # 0x94e8
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x4e7b
cmpl $0x0, 0x18(%rax)
je 0x4e7b
callq 0x3046
movq %r14, 0x38(%rbx)
andl $0x0, 0x20(%rbx)
andq $0x0, 0x14(%rbx)
movups (%r15), %xmm0
movups %xmm0, (%rbx)
movq 0x462a(%rip), %rdi      # 0x94c0
leaq 0x8(%rsp), %rdx
movq %r14, %rsi
callq 0x2440
testl %eax, %eax
je 0x4ec9
movq 0x8(%rsp), %rdi
callq 0x4b6c
testq %rax, %rax
je 0x4ec9
movl 0x1c(%rax), %ecx
movl %ecx, 0x1c(%rbx)
movq 0x30(%rax), %rax
movq %rax, 0x30(%rbx)
jmp 0x4fae
movq 0x4618(%rip), %r13      # 0x94e8
movq %r13, 0x30(%rbx)
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r15
movaps %xmm0, (%r15)
andl $0x0, 0x10(%rbx)
movq 0x45d5(%rip), %rdi      # 0x94c0
leaq 0x28(%rsp), %r12
movq %r14, %rsi
movq %r12, %rdx
callq 0x23b0
movq 0x45be(%rip), %rdi      # 0x94c0
movq %r14, %rsi
movq %r15, %rdx
callq 0x2210
movq 0x8(%r15), %r14
testq %r14, %r14
leaq 0x1234(%rip), %r15      # 0x614f
cmovneq %r14, %r15
movq (%r12), %rsi
movb $0x1, %bpl
testq %rsi, %rsi
je 0x4f83
leaq 0x1227(%rip), %rdi      # 0x6159
callq 0x2260
testq %rax, %rax
je 0x4f83
leaq 0x1213(%rip), %rsi      # 0x6156
movq %r15, %rdi
callq 0x2260
testq %rax, %rax
je 0x4f83
pushq $0x1
popq %rax
movl %eax, 0x10(%rbx)
movl %eax, 0x18(%rbx)
leaq 0x4660(%rip), %r15      # 0x95c0
movq (%r15), %r15
testq %r15, %r15
je 0x4f79
cmpl $-0x1, 0x20(%r15)
je 0x5096
addq $0x48, %r15
jmp 0x4f60
andq $0x0, 0x4557(%rip)      # 0x94d8
xorl %ebp, %ebp
movq %r13, %r15
testq %r14, %r14
je 0x4f93
movq %r14, %rdi
callq 0x2040
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4fa2
callq 0x2040
movl 0x24(%r15), %eax
movl %eax, 0x1c(%rbx)
testb %bpl, %bpl
je 0x4fbf
xorl %eax, %eax
cmpq $0x0, 0x8(%rsp)
setne %al
movl %eax, 0x14(%rbx)
movl %eax, 0x10(%rbx)
movq %rbx, %rdi
callq 0x4680
movl 0x4(%rbx), %eax
movq 0x30(%rbx), %rcx
movl 0x18(%rcx), %ecx
cmpl %ecx, %eax
cmovgl %eax, %ecx
movl %ecx, 0x4(%rbx)
movq %rbx, %rdi
callq 0x4d43
movq 0x44d8(%rip), %rdi      # 0x94c0
movq 0x38(%rbx), %rsi
movl $0x620010, %edx         # imm = 0x620010
callq 0x2300
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3f7f
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x463c
movq 0x44ae(%rip), %rdi      # 0x94c0
movl 0x45b4(%rip), %edx      # 0x95cc
addl %edx, %edx
addl (%rbx), %edx
movq 0x38(%rbx), %rsi
movl 0x4(%rbx), %ecx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
callq 0x2250
movq 0x30(%rbx), %rdi
callq 0x3a60
movq %rbx, %rdi
callq 0x3c7d
movq 0x4478(%rip), %rdi      # 0x94c0
movq 0x38(%rbx), %rsi
callq 0x22d0
movq 0x30(%rbx), %rsi
movl 0x24(%rsi), %eax
testl %eax, 0x1c(%rbx)
je 0x5082
movl 0x4(%rsi), %edx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x3eb5
movq 0x30(%rbx), %rdi
callq 0x3b63
cmpl $0x0, 0x18(%rbx)
je 0x5082
andl $0x0, 0x18(%rbx)
callq 0x3046
callq 0x4701
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, 0x443b(%rip)      # 0x94d8
movq %r15, 0x30(%rbx)
xorl %ebp, %ebp
jmp 0x4f86