// File: /workspace/github_c_makefile_star2_O0/kek[P]evilwm/new.c
// Function: reparent
static void reparent(Client *c) {
	XSetWindowAttributes p_attr;

	p_attr.border_pixel = c->screen->bg.pixel;
	p_attr.override_redirect = True;
	p_attr.event_mask = ChildMask | ButtonPressMask | EnterWindowMask;
	c->parent = XCreateWindow(dpy, c->screen->root, c->x-c->border, c->y-c->border,
		c->width, c->height, c->border,
		DefaultDepth(dpy, c->screen->screen), CopyFromParent,
		DefaultVisual(dpy, c->screen->screen),
		CWOverrideRedirect | CWBorderPixel | CWEventMask, &p_attr);

	XAddToSaveSet(dpy, c->window);
	XSetWindowBorderWidth(dpy, c->window, 0);
	XReparentWindow(dpy, c->window, c->parent, 0, 0);
	XMapWindow(dpy, c->window);
#ifdef MOUSE
	grab_button(c->parent, grabmask2, AnyButton);
	grab_button(c->parent, grabmask2 | altmask, AnyButton);
#endif
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0xa8, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x30(%rax), %rax
movq %rax, -0x68(%rbp)
movl $0x1, -0x28(%rbp)
movq $0x180014, -0x38(%rbp)  # imm = 0x180014
leaq 0x6faa(%rip), %rax      # 0xf980
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rsi
movq -0x10(%rbp), %rax
movl 0x24(%rax), %edx
movq -0x10(%rbp), %rax
subl 0x34(%rax), %edx
movq -0x10(%rbp), %rax
movl 0x28(%rax), %ecx
movq -0x10(%rbp), %rax
subl 0x34(%rax), %ecx
movq -0x10(%rbp), %rax
movl 0x2c(%rax), %r8d
movq -0x10(%rbp), %rax
movl 0x30(%rax), %r9d
movq -0x10(%rbp), %rax
movl 0x34(%rax), %ebx
leaq 0x6f61(%rip), %rax      # 0xf980
movq (%rax), %rax
movq 0xe8(%rax), %rax
movq -0x10(%rbp), %r10
movq 0x10(%r10), %r10
movslq (%r10), %r10
shlq $0x7, %r10
addq %r10, %rax
movl 0x38(%rax), %r11d
leaq 0x6f3a(%rip), %rax      # 0xf980
movq (%rax), %rax
movq 0xe8(%rax), %rax
movq -0x10(%rbp), %r10
movq 0x10(%r10), %r10
movslq (%r10), %r10
shlq $0x7, %r10
addq %r10, %rax
movq 0x40(%rax), %r10
xorl %eax, %eax
leaq -0x80(%rbp), %rax
movl %ebx, (%rsp)
movl %r11d, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq $0xa08, 0x20(%rsp)      # imm = 0xA08
movq %rax, 0x28(%rsp)
callq 0x3490
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
leaq 0x6eda(%rip), %rax      # 0xf980
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
callq 0x3580
leaq 0x6ec4(%rip), %rax      # 0xf980
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
xorl %edx, %edx
callq 0x33d0
leaq 0x6eac(%rip), %rax      # 0xf980
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdx
xorl %r8d, %r8d
movl %r8d, %ecx
callq 0x3060
leaq 0x6e88(%rip), %rax      # 0xf980
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
callq 0x3610
leaq 0x6e72(%rip), %rax      # 0xf980
movq (%rax), %rdi
leaq 0x68bc(%rip), %rax      # 0xf3d4
movl (%rax), %edx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
xorl %r8d, %r8d
movl $0xc, %r9d
xorl %eax, %eax
movl %r8d, %esi
movl $0x1, (%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
callq 0x3280
leaq 0x6e23(%rip), %rax      # 0xf980
movq (%rax), %rdi
leaq 0x686d(%rip), %rax      # 0xf3d4
movl (%rax), %edx
orl $0x2, %edx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
xorl %r8d, %r8d
movl $0xc, %r9d
xorl %eax, %eax
movl %r8d, %esi
movl $0x1, (%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
callq 0x3280
leaq 0x6dd1(%rip), %rax      # 0xf980
movq (%rax), %rdi
leaq 0x6d67(%rip), %rax      # 0xf920
movl (%rax), %edx
leaq 0x6812(%rip), %rax      # 0xf3d4
orl (%rax), %edx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
xorl %r8d, %r8d
movl $0xc, %r9d
xorl %eax, %eax
movl %r8d, %esi
movl $0x1, (%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
callq 0x3280
leaq 0x6d79(%rip), %rax      # 0xf980
movq (%rax), %rdi
leaq 0x6d0f(%rip), %rax      # 0xf920
movl (%rax), %edx
orl $0x2, %edx
leaq 0x67b7(%rip), %rax      # 0xf3d4
orl (%rax), %edx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
xorl %r8d, %r8d
movl $0xc, %r9d
xorl %eax, %eax
movl %r8d, %esi
movl $0x1, (%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
callq 0x3280
jmp 0x8c5d
leaq 0x6d1c(%rip), %rax      # 0xf980
movq (%rax), %rdi
leaq 0x6766(%rip), %rax      # 0xf3d4
movl (%rax), %edx
leaq 0x6761(%rip), %rax      # 0xf3d8
orl (%rax), %edx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
xorl %r8d, %r8d
movl $0xc, %r9d
xorl %eax, %eax
movl %r8d, %esi
movl $0x1, (%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
callq 0x3280
leaq 0x6cc4(%rip), %rax      # 0xf980
movq (%rax), %rdi
leaq 0x670e(%rip), %rax      # 0xf3d4
movl (%rax), %edx
leaq 0x6709(%rip), %rax      # 0xf3d8
orl (%rax), %edx
orl $0x2, %edx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
xorl %r8d, %r8d
movl $0xc, %r9d
xorl %eax, %eax
movl %r8d, %esi
movl $0x1, (%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
callq 0x3280
leaq 0x6c69(%rip), %rax      # 0xf980
movq (%rax), %rdi
leaq 0x6bff(%rip), %rax      # 0xf920
movl (%rax), %edx
leaq 0x66aa(%rip), %rax      # 0xf3d4
movl (%rax), %eax
leaq 0x66a5(%rip), %rcx      # 0xf3d8
orl (%rcx), %eax
orl %eax, %edx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
xorl %r8d, %r8d
movl $0xc, %r9d
xorl %eax, %eax
movl %r8d, %esi
movl $0x1, (%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
callq 0x3280
leaq 0x6c06(%rip), %rax      # 0xf980
movq (%rax), %rdi
leaq 0x6b9c(%rip), %rax      # 0xf920
movl (%rax), %edx
orl $0x2, %edx
leaq 0x6644(%rip), %rax      # 0xf3d4
movl (%rax), %eax
leaq 0x663f(%rip), %rcx      # 0xf3d8
orl (%rcx), %eax
orl %eax, %edx
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rcx
xorl %r8d, %r8d
movl $0xc, %r9d
xorl %eax, %eax
movl %r8d, %esi
movl $0x1, (%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
callq 0x3280
addq $0xa8, %rsp
popq %rbx
popq %rbp
retq
nopw %cs:(%rax,%rax)