// File: /workspace/github_c_makefile_star2_O0/odknt[P]st/x.c
// Function: xhints
void
xhints(void)
{
	XClassHint class = {opt_name ? opt_name : "st",
	                    opt_class ? opt_class : "St"};
	XWMHints wm = {.flags = InputHint, .input = 1};
	XSizeHints *sizeh;

	sizeh = XAllocSizeHints();

	sizeh->flags = PSize | PResizeInc | PBaseSize | PMinSize;
	sizeh->height = win.h;
	sizeh->width = win.w;
	sizeh->height_inc = win.ch;
	sizeh->width_inc = win.cw;
	sizeh->base_height = 2 * borderpx;
	sizeh->base_width = 2 * borderpx;
	sizeh->min_height = win.ch + 2 * borderpx;
	sizeh->min_width = win.cw + 2 * borderpx;
	if (xw.isfixed) {
		sizeh->flags |= PMaxSize;
		sizeh->min_width = sizeh->max_width = win.w;
		sizeh->min_height = sizeh->max_height = win.h;
	}
	if (xw.gm & (XValue|YValue)) {
		sizeh->flags |= USPosition | PWinGravity;
		sizeh->x = xw.l;
		sizeh->y = xw.t;
		sizeh->win_gravity = xgeommasktogravity(xw.gm);
	}

	XSetWMProperties(xw.dpy, xw.win, NULL, NULL, NULL, 0, sizeh, &wm,
			&class);
	XFree(sizeh);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
leaq -0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
cmpq $0x0, 0x10d7d(%rip)     # 0x226e8
je 0x1197a
movq 0x10d74(%rip), %rax     # 0x226e8
movq %rax, -0x60(%rbp)
jmp 0x11987
leaq 0x37dc(%rip), %rax      # 0x1515d
movq %rax, -0x60(%rbp)
jmp 0x11987
movq -0x58(%rbp), %rax
movq -0x60(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x10(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x68(%rbp)
cmpq $0x0, 0x10d4a(%rip)     # 0x226f0
je 0x119b5
movq 0x10d41(%rip), %rax     # 0x226f0
movq %rax, -0x70(%rbp)
jmp 0x119c2
leaq 0x37a4(%rip), %rax      # 0x15160
movq %rax, -0x70(%rbp)
jmp 0x119c2
movq -0x68(%rbp), %rax
movq -0x70(%rbp), %rcx
movq %rcx, (%rax)
leaq -0x48(%rbp), %rdi
xorl %esi, %esi
movl $0x38, %edx
callq 0x60b0
movq $0x1, -0x48(%rbp)
movl $0x1, -0x40(%rbp)
callq 0x6900
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq $0x158, (%rax)          # imm = 0x158
movl 0x10cbe(%rip), %ecx     # 0x226c4
movq -0x50(%rbp), %rax
movl %ecx, 0x14(%rax)
movl 0x10cad(%rip), %ecx     # 0x226c0
movq -0x50(%rbp), %rax
movl %ecx, 0x10(%rax)
movl 0x10ca8(%rip), %ecx     # 0x226c8
movq -0x50(%rbp), %rax
movl %ecx, 0x2c(%rax)
movl 0x10c9f(%rip), %ecx     # 0x226cc
movq -0x50(%rbp), %rax
movl %ecx, 0x28(%rax)
movl 0x85c2(%rip), %ecx      # 0x19ffc
shll %ecx
movq -0x50(%rbp), %rax
movl %ecx, 0x44(%rax)
movl 0x85b3(%rip), %ecx      # 0x19ffc
shll %ecx
movq -0x50(%rbp), %rax
movl %ecx, 0x40(%rax)
movl 0x10c70(%rip), %ecx     # 0x226c8
movl 0x859e(%rip), %eax      # 0x19ffc
shll %eax
addl %eax, %ecx
movq -0x50(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl 0x10c5d(%rip), %ecx     # 0x226cc
movl 0x8587(%rip), %eax      # 0x19ffc
shll %eax
addl %eax, %ecx
movq -0x50(%rbp), %rax
movl %ecx, 0x18(%rax)
cmpl $0x0, 0x10bfd(%rip)     # 0x22684
je 0x11abf
movq -0x50(%rbp), %rax
movq (%rax), %rcx
orq $0x20, %rcx
movq %rcx, (%rax)
movl 0x10c23(%rip), %ecx     # 0x226c0
movq -0x50(%rbp), %rax
movl %ecx, 0x20(%rax)
movq -0x50(%rbp), %rax
movl %ecx, 0x18(%rax)
movl 0x10c13(%rip), %ecx     # 0x226c4
movq -0x50(%rbp), %rax
movl %ecx, 0x24(%rax)
movq -0x50(%rbp), %rax
movl %ecx, 0x1c(%rax)
movl 0x10bcb(%rip), %eax     # 0x22690
andl $0x3, %eax
cmpl $0x0, %eax
je 0x11b0c
movq -0x50(%rbp), %rax
movq (%rax), %rcx
orq $0x201, %rcx            # imm = 0x201
movq %rcx, (%rax)
movl 0x10ba4(%rip), %ecx     # 0x22688
movq -0x50(%rbp), %rax
movl %ecx, 0x8(%rax)
movl 0x10b9b(%rip), %ecx     # 0x2268c
movq -0x50(%rbp), %rax
movl %ecx, 0xc(%rax)
movl 0x10b92(%rip), %edi     # 0x22690
callq 0x12290
movl %eax, %ecx
movq -0x50(%rbp), %rax
movl %ecx, 0x48(%rax)
movq 0x10a7d(%rip), %rdi     # 0x22590
movq 0x10a86(%rip), %rsi     # 0x225a0
movq -0x50(%rbp), %r11
xorl %eax, %eax
movl %eax, %r8d
xorl %r9d, %r9d
leaq -0x48(%rbp), %r10
leaq -0x10(%rbp), %rax
movq %r8, %rdx
movq %r8, %rcx
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x6390
movq -0x50(%rbp), %rdi
callq 0x6090
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax)