// File: /workspace/github_c_makefile_star2_O3/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
movq $0x0, 0x8(%rsp)
movl $0x1, %edi
movl $0x40, %esi
callq 0x23a0
movq %rax, %rbx
testq %rax, %rax
jne 0x521f
leaq 0xe68(%rip), %rdi       # 0x6080
xorl %eax, %eax
callq 0x5490
movq 0x42c2(%rip), %rax      # 0x94e8
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x523a
cmpl $0x0, 0x18(%rax)
je 0x523a
callq 0x31ff
movq %r14, 0x38(%rbx)
movups (%r15), %xmm0
movups %xmm0, (%rbx)
movq 0x4274(%rip), %rdi      # 0x94c0
leaq 0x8(%rsp), %rdx
movq %r14, %rsi
callq 0x2440
testl %eax, %eax
je 0x527f
movq 0x8(%rsp), %rdi
callq 0x4e87
testq %rax, %rax
je 0x527f
movl 0x1c(%rax), %ecx
movl %ecx, 0x1c(%rbx)
movq 0x30(%rax), %rax
movq %rax, 0x30(%rbx)
jmp 0x536c
movq 0x4262(%rip), %r13      # 0x94e8
movq %r13, 0x30(%rbx)
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r15
movaps %xmm0, (%r15)
movq 0x4223(%rip), %rdi      # 0x94c0
leaq 0x28(%rsp), %r12
movq %r14, %rsi
movq %r12, %rdx
callq 0x23b0
movq 0x420c(%rip), %rdi      # 0x94c0
movq %r14, %rsi
movq %r15, %rdx
callq 0x2210
movq 0x8(%r15), %r14
testq %r14, %r14
leaq 0xeaa(%rip), %r15       # 0x6177
cmovneq %r14, %r15
movq (%r12), %rsi
movb $0x1, %bpl
testq %rsi, %rsi
je 0x5344
leaq 0xe9d(%rip), %rdi       # 0x6181
callq 0x2260
testq %rax, %rax
je 0x5344
leaq 0xe89(%rip), %rsi       # 0x617e
movq %r15, %rdi
callq 0x2260
testq %rax, %rax
je 0x5344
movl $0x1, %eax
movl %eax, 0x10(%rbx)
movl %eax, 0x18(%rbx)
movq 0x42ac(%rip), %rax      # 0x95c0
testq %rax, %rax
je 0x5325
cmpl $-0x1, 0x20(%rax)
je 0x5334
movq 0x48(%rax), %rax
jmp 0x5314
movq $0x0, 0x41a8(%rip) # 0x94d8
xorl %ebp, %ebp
jmp 0x5344
movq %rax, 0x419d(%rip)      # 0x94d8
movq %rax, 0x30(%rbx)
xorl %ebp, %ebp
movq %rax, %r13
testq %r14, %r14
je 0x5351
movq %r14, %rdi
callq 0x2040
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x5360
callq 0x2040
movl 0x24(%r13), %eax
movl %eax, 0x1c(%rbx)
testb %bpl, %bpl
je 0x537d
xorl %eax, %eax
cmpq $0x0, 0x8(%rsp)
setne %al
movl %eax, 0x14(%rbx)
movl %eax, 0x10(%rbx)
movq %rbx, %rdi
callq 0x49e0
movl 0x4(%rbx), %eax
movq 0x30(%rbx), %r15
movl 0x18(%r15), %ebp
cmpl %ebp, %eax
cmovgl %eax, %ebp
movl %ebp, 0x4(%rbx)
movq %rbx, %rdi
callq 0x50e7
movq 0x4119(%rip), %rdi      # 0x94c0
movq 0x38(%rbx), %r14
movl $0x620010, %edx         # imm = 0x620010
movq %r14, %rsi
callq 0x2300
movq %rbx, %rdi
xorl %esi, %esi
callq 0x428a
movq 0x30(%r15), %rax
testq %rax, %rax
je 0x53f4
movq 0x28(%r15), %r15
testq %r15, %r15
je 0x53e2
movq 0x28(%r15), %rax
addq $0x28, %r15
movq %rax, 0x28(%rbx)
jmp 0x5400
movq %rax, %r15
movq 0x28(%rax), %rax
testq %rax, %rax
jne 0x53e2
addq $0x28, %r15
jmp 0x5400
addq $0x30, %r15
movq $0x0, 0x28(%rbx)
movq %rbx, (%r15)
movq 0x40b6(%rip), %rdi      # 0x94c0
movl 0x41bc(%rip), %edx      # 0x95cc
addl %edx, %edx
addl (%rbx), %edx
movl 0x8(%rbx), %r8d
movl 0xc(%rbx), %r9d
movq %r14, %rsi
movl %ebp, %ecx
callq 0x2250
movq 0x30(%rbx), %rdi
callq 0x3d5e
movq %rbx, %rdi
callq 0x3f1d
movq 0x4082(%rip), %rdi      # 0x94c0
movq 0x38(%rbx), %rsi
callq 0x22d0
movq 0x30(%rbx), %rsi
movl 0x24(%rsi), %eax
testl %eax, 0x1c(%rbx)
je 0x547b
movl 0x4(%rsi), %edx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x416d
movq 0x30(%rbx), %rdi
callq 0x3dff
cmpl $0x0, 0x18(%rbx)
je 0x547b
movl $0x0, 0x18(%rbx)
callq 0x31ff
callq 0x4a60
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop