LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/open-mesh-mirror[P]batmand/posix/posix.c
// Function: cleanup
void cleanup(void) {

	int8_t i;
	struct list_head *debug_pos, *debug_pos_tmp;


	for ( i = 0; i < debug_level_max; i++ ) {

		if ( debug_clients.clients_num[i] > 0 ) {

			list_for_each_safe( debug_pos, debug_pos_tmp, (struct list_head *)debug_clients.fd_list[i] ) {

				list_del( (struct list_head *)debug_clients.fd_list[i], debug_pos, (struct list_head_first *)debug_clients.fd_list[i] );
				debugFree( debug_pos, 1218 );

			}

		}

		debugFree( debug_clients.fd_list[i], 1219 );
		debugFree( debug_clients.mutex[i], 1220 );

	}

	debugFree( debug_clients.fd_list, 1221 );
	debugFree( debug_clients.mutex, 1222 );
	debugFree( debug_clients.clients_num, 1223 );

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
xorl %ebp, %ebp
leaq 0xbcc2(%rip), %r15      # 0x17288
leaq 0xbd7b(%rip), %r14      # 0x17348
movsbl %bpl, %eax
movzbl (%r15), %ecx
cmpl %ecx, %eax
jge 0xb640
movq (%r14), %rax
movq 0x8(%r14), %rcx
movsbq %bpl, %r12
cmpw $0x0, (%rcx,%r12,2)
movq (%rax,%r12,8), %rdi
jle 0xb61f
movq (%rdi), %rbx
cmpq %rdi, %rbx
je 0xb61f
movq (%rbx), %r13
movq %rbx, %rsi
movq %rdi, %rdx
callq 0x5763
movq %rbx, %rdi
movl $0x4c2, %esi            # imm = 0x4C2
callq 0x5b1a
movq (%r14), %rax
movq (%rax,%r12,8), %rdi
movq %r13, %rbx
jmp 0xb5f3
movl $0x4c3, %esi            # imm = 0x4C3
callq 0x5b1a
movq 0x10(%r14), %rax
movq (%rax,%r12,8), %rdi
movl $0x4c4, %esi            # imm = 0x4C4
callq 0x5b1a
incb %bpl
jmp 0xb5cd
movq (%r14), %rdi
movl $0x4c5, %esi            # imm = 0x4C5
callq 0x5b1a
movq 0x10(%r14), %rdi
movl $0x4c6, %esi            # imm = 0x4C6
callq 0x5b1a
movq 0x8(%r14), %rdi
movl $0x4c7, %esi            # imm = 0x4C7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5b1a
// File: /workspace/github_c_makefile_star2_O2/open-mesh-mirror[P]batmand/posix/posix.c
// Function: main
int main(int argc, char *argv[])
{
	int8_t res;

	/* check if user is root */
	if ((getuid()) || (getgid())) {
		fprintf(stderr, "Error - you must be root to run '%s' !\n", argv[0]);
		exit(EXIT_FAILURE);
	}


	INIT_LIST_HEAD_FIRST(forw_list);
	INIT_LIST_HEAD_FIRST(gw_list);
	INIT_LIST_HEAD_FIRST(if_list);

	hna_init();

	/* save start value */
	system_tick = (float)sysconf(_SC_CLK_TCK);
	last_clock_tick = times_wrapper();
	update_internal_clock();

	apply_init_args(argc, argv);

	init_bh_ports();

	srand(getpid());

	res = batman();

	/* cleaning up */
	hna_free();

	restore_defaults();
	cleanup();
	checkLeak();
	return res;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
callq 0x2140
testl %eax, %eax
jne 0xb72e
callq 0x22b0
testl %eax, %eax
jne 0xb72e
leaq 0xbc98(%rip), %rax      # 0x17338
movq %rax, (%rax)
movq %rax, 0x8(%rax)
leaq 0xbc72(%rip), %rax      # 0x17320
movq %rax, (%rax)
movq %rax, 0x8(%rax)
leaq 0xbc54(%rip), %rax      # 0x17310
movq %rax, (%rax)
movq %rax, 0x8(%rax)
callq 0x64ec
pushq $0x2
popq %rdi
callq 0x23f0
cvtsi2ss %rax, %xmm0
movss %xmm0, 0xbfdb(%rip)     # 0x176b8
callq 0xb751
movq %rax, 0xbfd7(%rip)      # 0x176c0
callq 0xaa4f
movl %ebp, %edi
movq %rbx, %rsi
callq 0x8fb0
callq 0xb780
callq 0x2100
movl %eax, %edi
callq 0x2240
callq 0x3389
movl %eax, %ebx
callq 0x7375
callq 0xb3a3
callq 0xb5b2
callq 0x587e
movsbl %bl, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0xb8bb(%rip), %rax      # 0x16ff0
movq (%rax), %rdi
movq (%rbx), %rdx
leaq 0x5e53(%rip), %rsi      # 0x11595
xorl %eax, %eax
callq 0x2270
pushq $0x1
popq %rdi
callq 0x2440
// File: /workspace/github_c_makefile_star2_O2/open-mesh-mirror[P]batmand/posix/tunnel.c
// Function: choose_vip
static int choose_vip(void *data, int32_t size)
{
	unsigned char *key= data;
	uint32_t hash = 0;
	size_t i;

	for (i = 4; i < 8; i++) {
		hash += key[i];
		hash += (hash << 10);
		hash ^= (hash >> 6);
	}

	hash += (hash << 3);
	hash ^= (hash >> 11);
	hash += (hash << 15);

	return (hash%size);

}

// Assembly:
xorl %eax, %eax
xorl %ecx, %ecx
cmpq $0x4, %rax
je 0xc9e5
movzbl 0x4(%rdi,%rax), %edx
addl %edx, %ecx
imull $0x401, %ecx, %edx      # imm = 0x401
movl %edx, %ecx
shrl $0x6, %ecx
xorl %edx, %ecx
incq %rax
jmp 0xc9c6
leal (%rcx,%rcx,8), %eax
movl %eax, %ecx
shrl $0xb, %ecx
xorl %eax, %ecx
imull $0x8001, %ecx, %eax     # imm = 0x8001
xorl %edx, %edx
divl %esi
movl %edx, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/michaelnmmeyer[P]gourgandine/example.c
// Function: main
int main(int argc, char **argv)
{
   if (argc != 2) {
      fprintf(stderr, "Usage: %s <sentence>\n", *argv);
      return EXIT_FAILURE;
   }

   /* Prepare ourselves for processing. */
   struct mascara *mr;
   int ret = mr_alloc(&mr, "en fsm", MR_SENTENCE);
   if (ret) {
      fprintf(stderr, "cannot create tokenizer: %s\n", mr_strerror(ret));
      return EXIT_FAILURE;
   }
   struct gourgandine *gn = gn_alloc();

   /* Tokenize the string at argv[1]. */
   struct mr_token *sent;
   size_t sent_len;
   mr_set_text(mr, argv[1], strlen(argv[1]));
   while ((sent_len = mr_next(mr, &sent))) {
      /* Iterate over all acronym definitions in this sentence. */
      struct gn_acronym acr = {0};
      while (gn_search(gn, sent, sent_len, &acr))
         printf("%s\t%s\n", acr.acronym, acr.expansion);
   }

   mr_dealloc(mr);
   gn_dealloc(gn);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
cmpl $0x2, %edi
jne 0x23d3
leaq 0x6d0e(%rip), %rsi      # 0x901a
movq %rsp, %rdi
pushq $0x1
popq %rbx
movl %ebx, %edx
callq 0x326d
testl %eax, %eax
jne 0x23f3
callq 0x2a4c
movq %rax, %rbx
movq (%rsp), %r15
movq 0x8(%r14), %r14
movq %r14, %rdi
callq 0x20a0
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x3a49
leaq 0x8(%rsp), %r14
leaq 0x10(%rsp), %r15
leaq 0x6ce6(%rip), %r12      # 0x903e
movq (%rsp), %rdi
movq %r14, %rsi
callq 0x3a77
testq %rax, %rax
je 0x23b0
movq %rax, %r13
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movq 0x8(%rsp), %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %r15, %rcx
callq 0x241c
testl %eax, %eax
je 0x2358
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq %r12, %rdi
xorl %eax, %eax
callq 0x20c0
jmp 0x2383
movq (%rsp), %rdi
callq 0x3a80
movq %rbx, %rdi
callq 0x2aa6
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x10dc1e(%rip), %rax    # 0x10fff8
movq (%rax), %rdi
movq (%r14), %rdx
leaq 0x6c1d(%rip), %rsi      # 0x9004
xorl %eax, %eax
callq 0x2150
pushq $0x1
popq %rbx
jmp 0x23c3
movq 0x10dbfe(%rip), %rcx    # 0x10fff8
movq (%rcx), %r14
movl %eax, %edi
callq 0x3234
leaq 0x6c16(%rip), %rsi      # 0x9021
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x2150
jmp 0x23c3
nop
// File: /workspace/github_c_makefile_star2_O2/michaelnmmeyer[P]gourgandine/src/lib/utf8proc.c
// Function: utf8proc_encode_char
UTF8PROC_DLLEXPORT utf8proc_ssize_t utf8proc_encode_char(utf8proc_int32_t uc, utf8proc_uint8_t *dst) {
  if (uc < 0x00) {
    return 0;
  } else if (uc < 0x80) {
    dst[0] = uc;
    return 1;
  } else if (uc < 0x800) {
    dst[0] = 0xC0 + (uc >> 6);
    dst[1] = 0x80 + (uc & 0x3F);
    return 2;
  // Note: we allow encoding 0xd800-0xdfff here, so as not to change
  // the API, however, these are actually invalid in UTF-8
  } else if (uc < 0x10000) {
    dst[0] = 0xE0 + (uc >> 12);
    dst[1] = 0x80 + ((uc >> 6) & 0x3F);
    dst[2] = 0x80 + (uc & 0x3F);
    return 3;
  } else if (uc < 0x110000) {
    dst[0] = 0xF0 + (uc >> 18);
    dst[1] = 0x80 + ((uc >> 12) & 0x3F);
    dst[2] = 0x80 + ((uc >> 6) & 0x3F);
    dst[3] = 0x80 + (uc & 0x3F);
    return 4;
  } else return 0;
}

// Assembly:
testl %edi, %edi
js 0x764c
cmpl $0x7f, %edi
ja 0x75c5
movb %dil, (%rsi)
pushq $0x1
jmp 0x764a
cmpl $0x7ff, %edi            # imm = 0x7FF
ja 0x75e6
movl %edi, %eax
shrl $0x6, %eax
orb $-0x40, %al
movb %al, (%rsi)
andb $0x3f, %dil
orb $-0x80, %dil
movb %dil, 0x1(%rsi)
pushq $0x2
jmp 0x764a
cmpl $0xffff, %edi           # imm = 0xFFFF
ja 0x7613
movl %edi, %eax
shrl $0xc, %eax
orb $-0x20, %al
movb %al, (%rsi)
movl %edi, %eax
shrl $0x6, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x1(%rsi)
andb $0x3f, %dil
orb $-0x80, %dil
movb %dil, 0x2(%rsi)
pushq $0x3
jmp 0x764a
cmpl $0x10ffff, %edi         # imm = 0x10FFFF
ja 0x764c
movl %edi, %eax
shrl $0x12, %eax
orb $-0x10, %al
movb %al, (%rsi)
movl %edi, %eax
shrl $0xc, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x1(%rsi)
movl %edi, %eax
shrl $0x6, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x2(%rsi)
andb $0x3f, %dil
orb $-0x80, %dil
movb %dil, 0x3(%rsi)
pushq $0x4
popq %rax
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/michaelnmmeyer[P]gourgandine/src/lib/utf8proc.c
// Function: grapheme_break
static utf8proc_bool grapheme_break(int lbc, int tbc) {
  return
    (lbc == UTF8PROC_BOUNDCLASS_START) ? true :
    (lbc == UTF8PROC_BOUNDCLASS_CR &&
     tbc == UTF8PROC_BOUNDCLASS_LF) ? false :
    (lbc >= UTF8PROC_BOUNDCLASS_CR && lbc <= UTF8PROC_BOUNDCLASS_CONTROL) ? true :
    (tbc >= UTF8PROC_BOUNDCLASS_CR && tbc <= UTF8PROC_BOUNDCLASS_CONTROL) ? true :
    (tbc == UTF8PROC_BOUNDCLASS_EXTEND) ? false :
    (lbc == UTF8PROC_BOUNDCLASS_L &&
     (tbc == UTF8PROC_BOUNDCLASS_L ||
      tbc == UTF8PROC_BOUNDCLASS_V ||
      tbc == UTF8PROC_BOUNDCLASS_LV ||
      tbc == UTF8PROC_BOUNDCLASS_LVT)) ? false :
    ((lbc == UTF8PROC_BOUNDCLASS_LV ||
      lbc == UTF8PROC_BOUNDCLASS_V) &&
     (tbc == UTF8PROC_BOUNDCLASS_V ||
      tbc == UTF8PROC_BOUNDCLASS_T)) ? false :
    ((lbc == UTF8PROC_BOUNDCLASS_LVT ||
      lbc == UTF8PROC_BOUNDCLASS_T) &&
     tbc == UTF8PROC_BOUNDCLASS_T) ? false :
    (lbc == UTF8PROC_BOUNDCLASS_REGIONAL_INDICATOR &&
     tbc == UTF8PROC_BOUNDCLASS_REGIONAL_INDICATOR) ? false :
    (tbc != UTF8PROC_BOUNDCLASS_SPACINGMARK);
}

// Assembly:
movb $0x1, %al
testl %edi, %edi
je 0x76d3
movl %edi, %ecx
xorl $0x2, %ecx
movl %esi, %edx
xorl $0x3, %edx
orl %ecx, %edx
jne 0x76d4
xorl %eax, %eax
retq
leal -0x2(%rdi), %ecx
cmpl $0x3, %ecx
setb %cl
leal -0x2(%rsi), %edx
cmpl $0x3, %edx
setb %dl
orb %cl, %dl
jne 0x76d3
cmpl $0x5, %esi
je 0x76d1
cmpl $0x9, %edi
je 0x7710
cmpl $0x7, %edi
je 0x7710
cmpl $0x6, %edi
jne 0x7718
leal -0x6(%rsi), %eax
cmpl $0x5, %eax
jae 0x7718
pushq $0x1b
popq %rcx
btl %eax, %ecx
jb 0x76d1
jmp 0x7718
leal -0x7(%rsi), %eax
cmpl $0x2, %eax
jb 0x76d1
movl %edi, %eax
andl $-0x3, %eax
xorl $0x8, %eax
movl %esi, %ecx
xorl $0x8, %ecx
orl %eax, %ecx
je 0x76d1
xorl $0xb, %edi
movl %esi, %eax
xorl $0xb, %eax
orl %edi, %eax
setne %cl
cmpl $0xc, %esi
setne %al
andb %cl, %al
retq
// File: /workspace/github_c_makefile_star2_O2/michaelnmmeyer[P]gourgandine/src/lib/utf8proc.c
// Function: utf8proc_map
UTF8PROC_DLLEXPORT utf8proc_ssize_t utf8proc_map(
  const utf8proc_uint8_t *str, utf8proc_ssize_t strlen, utf8proc_uint8_t **dstptr, utf8proc_option_t options
) {
  utf8proc_int32_t *buffer;
  utf8proc_ssize_t result;
  *dstptr = NULL;
  result = utf8proc_decompose(str, strlen, NULL, 0, options);
  if (result < 0) return result;
  buffer = (utf8proc_int32_t *) malloc(result * sizeof(utf8proc_int32_t) + 1);
  if (!buffer) return UTF8PROC_ERROR_NOMEM;
  result = utf8proc_decompose(str, strlen, buffer, result, options);
  if (result < 0) {
    free(buffer);
    return result;
  }
  result = utf8proc_reencode(buffer, result, options);
  if (result < 0) {
    free(buffer);
    return result;
  }
  {
    utf8proc_int32_t *newptr;
    newptr = (utf8proc_int32_t *) realloc(buffer, (size_t)result+1);
    if (newptr) buffer = newptr;
  }
  *dstptr = (utf8proc_uint8_t *)buffer;
  return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r13
andq $0x0, (%rdx)
xorl %edx, %edx
xorl %ecx, %ecx
movl %ebp, %r8d
callq 0x7bea
movq %rax, %rbx
testq %rax, %rax
js 0x8210
leaq 0x1(,%rbx,4), %rdi
callq 0x2180
testq %rax, %rax
je 0x820d
movq %rax, %r15
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
movq %rbx, %rcx
movl %ebp, %r8d
callq 0x7bea
movq %rax, %rbx
testq %rax, %rax
js 0x8203
movq %r15, %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x7d78
movq %rax, %rbx
testq %rax, %rax
js 0x8203
movq %rbx, %rsi
incq %rsi
movq %r15, %rdi
callq 0x21b0
testq %rax, %rax
cmovneq %rax, %r15
movq %r15, (%r14)
jmp 0x8210
movq %r15, %rdi
callq 0x2030
jmp 0x8210
pushq $-0x1
popq %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/cwm.c
// Function: usage
__dead void
usage(void)
{
	extern char	*__progname;

	(void)fprintf(stderr, "usage: %s [-c file] [-d display]\n",
	    __progname);
	exit(1);
}

// Assembly:
pushq %rax
movq 0xe211(%rip), %rax      # 0x13fe8
movq (%rax), %rdi
movq 0xe1ff(%rip), %rax      # 0x13fe0
movq (%rax), %rdx
leaq 0x8237(%rip), %rsi      # 0xe022
xorl %eax, %eax
callq 0x5820
pushq $0x1
popq %rdi
callq 0x5180
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/cwm.c
// Function: sigchld_cb
static void
sigchld_cb(int which)
{
	pid_t	 pid;
	int	 save_errno = errno;
	int	 status;

	/* Collect dead children. */
	while ((pid = waitpid(-1, &status, WNOHANG)) > 0 ||
	    (pid < 0 && errno == EINTR))
		;

	errno = save_errno;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
callq 0x5580
movq %rax, %rbx
movl (%rax), %r12d
pushq $-0x1
popq %rbp
leaq 0xc(%rsp), %r14
pushq $0x1
popq %r15
movl %ebp, %edi
movq %r14, %rsi
movl %r15d, %edx
callq 0x5530
testl %eax, %eax
jg 0x5e1d
jns 0x5e35
cmpl $0x4, (%rbx)
je 0x5e1d
movl %r12d, (%rbx)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/screen.c
// Function: screen_updatestackingorder
void
screen_updatestackingorder(struct screen_ctx *sc)
{
	Window			*wins, w0, w1;
	struct client_ctx	*cc;
	u_int			 nwins, i, s;

	if (!XQueryTree(X_Dpy, sc->rootwin, &w0, &w1, &wins, &nwins))
		return;

	for (s = 0, i = 0; i < nwins; i++) {
		/* Skip hidden windows */
		if ((cc = client_find(wins[i])) == NULL ||
		    cc->flags & CLIENT_HIDDEN)
			continue;

		cc->stackingorder = s++;
	}

	XFree(wins);
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x28, %rsp
leaq 0x109be(%rip), %rax     # 0x16848
movq (%rax), %rax
movq 0x18(%rdi), %rsi
leaq 0x20(%rsp), %rdx
leaq 0x18(%rsp), %rcx
leaq 0x10(%rsp), %r8
leaq 0xc(%rsp), %r9
movq %rax, %rdi
callq 0x5850
testl %eax, %eax
je 0x5eec
xorl %ebx, %ebx
xorl %ebp, %ebp
movl 0xc(%rsp), %eax
movq 0x10(%rsp), %rdi
cmpq %rax, %rbx
jae 0x5ee7
movq (%rdi,%rbx,8), %rdi
callq 0x6074
testq %rax, %rax
je 0x5ee2
testb $0x1, 0xa8(%rax)
jne 0x5ee2
movl %ebp, 0xb4(%rax)
incl %ebp
incq %rbx
jmp 0x5eb5
callq 0x5060
addq $0x28, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/screen.c
// Function: screen_find_xinerama
XineramaScreenInfo *
screen_find_xinerama(struct screen_ctx *sc, int x, int y)
{
	XineramaScreenInfo	*info;
	int			 i;

	if (sc->xinerama == NULL)
		return (NULL);

	for (i = 0; i < sc->xinerama_no; i++) {
		info = &sc->xinerama[i];
		if (x >= info->x_org && x < info->x_org + info->width &&
		    y >= info->y_org && y < info->y_org + info->height)
			return (info);
	}
	return (NULL);
}

// Assembly:
movq 0x110(%rdi), %rax
xorl %r8d, %r8d
testq %rax, %rax
je 0x5f44
movl 0x108(%rdi), %ecx
testl %ecx, %ecx
cmovlel %r8d, %ecx
subq $0x1, %rcx
jb 0x5f44
movswl 0x4(%rax), %edi
cmpl %esi, %edi
jg 0x5f3e
movswl 0x8(%rax), %r8d
addl %edi, %r8d
cmpl %esi, %r8d
jle 0x5f3e
movswl 0x6(%rax), %edi
cmpl %edx, %edi
jg 0x5f3e
movswl 0xa(%rax), %r8d
addl %edi, %r8d
cmpl %edx, %r8d
jg 0x5f46
addq $0xc, %rax
jmp 0x5f0e
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/screen.c
// Function: screen_update_geometry
void
screen_update_geometry(struct screen_ctx *sc)
{
	sc->view.x = 0;
	sc->view.y = 0;
	sc->view.w = DisplayWidth(X_Dpy, sc->which);
	sc->view.h = DisplayHeight(X_Dpy, sc->which);

	sc->work.x = sc->view.x + sc->gap.left;
	sc->work.y = sc->view.y + sc->gap.top;
	sc->work.w = sc->view.w - (sc->gap.left + sc->gap.right);
	sc->work.h = sc->view.h - (sc->gap.top + sc->gap.bottom);

	screen_init_xinerama(sc);

	xu_ewmh_net_desktop_geometry(sc);
	xu_ewmh_net_workarea(sc);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
andq $0x0, 0xa4(%rdi)
leaq 0x108eb(%rip), %r14     # 0x16848
movq (%r14), %rdi
movq 0xe8(%rdi), %rax
movl 0x10(%rbx), %ecx
movl 0xc4(%rbx), %edx
shlq $0x7, %rcx
movl 0x18(%rax,%rcx), %esi
movl %esi, 0xac(%rbx)
movl 0x1c(%rax,%rcx), %eax
movl %eax, 0xb0(%rbx)
movl 0xcc(%rbx), %ecx
movl %ecx, 0xb4(%rbx)
movl %edx, 0xb8(%rbx)
addl 0xd0(%rbx), %ecx
subl %ecx, %esi
movl %esi, 0xbc(%rbx)
addl 0xc8(%rbx), %edx
subl %edx, %eax
movl %eax, 0xc0(%rbx)
andl $0x0, 0x4(%rsp)
callq 0x5650
testl %eax, %eax
je 0x5fd6
movq (%r14), %rdi
leaq 0x4(%rsp), %rsi
callq 0x5040
movq %rax, %r14
jmp 0x5fd9
xorl %r14d, %r14d
movq 0x110(%rbx), %rdi
testq %rdi, %rdi
je 0x5fea
callq 0x5060
movq %r14, 0x110(%rbx)
movl 0x4(%rsp), %eax
movl %eax, 0x108(%rbx)
movq %rbx, %rdi
callq 0x8b8d
movq %rbx, %rdi
callq 0x8bd9
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_getsizehints
void
client_getsizehints(struct client_ctx *cc)
{
	long		 tmp;

	if (!XGetWMNormalHints(X_Dpy, cc->win, cc->size, &tmp))
		cc->size->flags = PSize;

	if (cc->size->flags & PBaseSize) {
		cc->hint.basew = cc->size->base_width;
		cc->hint.baseh = cc->size->base_height;
	} else if (cc->size->flags & PMinSize) {
		cc->hint.basew = cc->size->min_width;
		cc->hint.baseh = cc->size->min_height;
	}
	if (cc->size->flags & PMinSize) {
		cc->hint.minw = cc->size->min_width;
		cc->hint.minh = cc->size->min_height;
	} else if (cc->size->flags & PBaseSize) {
		cc->hint.minw = cc->size->base_width;
		cc->hint.minh = cc->size->base_height;
	}
	if (cc->size->flags & PMaxSize) {
		cc->hint.maxw = cc->size->max_width;
		cc->hint.maxh = cc->size->max_height;
	}
	if (cc->size->flags & PResizeInc) {
		cc->hint.incw = cc->size->width_inc;
		cc->hint.inch = cc->size->height_inc;
	}
	cc->hint.incw = MAX(1, cc->hint.incw);
	cc->hint.inch = MAX(1, cc->hint.inch);

	if (cc->size->flags & PAspect) {
		if (cc->size->min_aspect.x > 0)
			cc->hint.mina = (float)cc->size->min_aspect.y /
			    cc->size->min_aspect.x;
		if (cc->size->max_aspect.y > 0)
			cc->hint.maxa = (float)cc->size->max_aspect.x /
			    cc->size->max_aspect.y;
	}
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x1032a(%rip), %rax     # 0x16848
movq (%rax), %rdi
movq 0x38(%rbx), %rsi
movq 0x40(%rbx), %rdx
leaq 0x8(%rsp), %rcx
callq 0x5130
movq 0x40(%rbx), %rcx
testl %eax, %eax
je 0x6552
movq (%rcx), %rax
btl $0x8, %eax
jb 0x655e
testb $0x10, %al
je 0x6582
movq 0x18(%rcx), %rdx
movq %rdx, 0x74(%rbx)
jmp 0x6573
movq $0x8, (%rcx)
pushq $0x8
popq %rax
jmp 0x6595
movl 0x40(%rcx), %esi
movl %esi, 0x74(%rbx)
movl 0x44(%rcx), %edx
movl %edx, 0x78(%rbx)
testb $0x10, %al
jne 0x6573
movl %esi, 0x7c(%rbx)
jmp 0x657c
movl 0x18(%rcx), %edx
movl %edx, 0x7c(%rbx)
movl 0x1c(%rcx), %edx
movl %edx, 0x80(%rbx)
testb $0x20, %al
je 0x6591
movq 0x20(%rcx), %rdx
movq %rdx, 0x84(%rbx)
testb $0x40, %al
jne 0x65a5
leaq 0x8c(%rbx), %rdx
leaq 0x90(%rbx), %rsi
jmp 0x65ad
leaq 0x28(%rcx), %rdx
leaq 0x2c(%rcx), %rsi
movl (%rdx), %edx
movl (%rsi), %esi
cmpl $0x2, %edx
pushq $0x1
popq %rdi
cmovll %edi, %edx
movl %edx, 0x8c(%rbx)
cmpl $0x2, %esi
cmovgel %esi, %edi
movl %edi, 0x90(%rbx)
testb %al, %al
jns 0x6608
movl 0x30(%rcx), %eax
testl %eax, %eax
jle 0x65ec
cvtsi2ssl 0x34(%rcx), %xmm0
cvtsi2ss %eax, %xmm1
divss %xmm1, %xmm0
movss %xmm0, 0x94(%rbx)
movl 0x3c(%rcx), %eax
testl %eax, %eax
jle 0x6608
cvtsi2ssl 0x38(%rcx), %xmm0
cvtsi2ss %eax, %xmm1
divss %xmm1, %xmm0
movss %xmm0, 0x98(%rbx)
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_setname
void
client_setname(struct client_ctx *cc)
{
	struct winname	*wn;
	char		*newname;

	if (!xu_getstrprop(cc->win, ewmh[_NET_WM_NAME].atom, &newname))
		if (!xu_getstrprop(cc->win, XA_WM_NAME, &newname))
			newname = emptystring;

	TAILQ_FOREACH(wn, &cc->nameq, entry)
		if (strcmp(wn->name, newname) == 0) {
			/* Move to the last since we got a hit. */
			TAILQ_REMOVE(&cc->nameq, wn, entry);
			TAILQ_INSERT_TAIL(&cc->nameq, wn, entry);
			goto match;
		}

	wn = xmalloc(sizeof(*wn));
	wn->name = newname;
	TAILQ_INSERT_TAIL(&cc->nameq, wn, entry);
	cc->nameqlen++;

match:
	cc->name = wn->name;

	/* Now, do some garbage collection. */
	if (cc->nameqlen > CLIENT_MAXNAMEQLEN) {
		wn = TAILQ_FIRST(&cc->nameq);
		assert(wn != NULL);
		TAILQ_REMOVE(&cc->nameq, wn, entry);
		if (wn->name != emptystring)
			xfree(wn->name);
		xfree(wn);
		cc->nameqlen--;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x38(%rdi), %rdi
leaq 0xdecc(%rip), %rax      # 0x144f0
movq 0xc8(%rax), %rsi
movq %rsp, %rdx
callq 0x88a0
testl %eax, %eax
jne 0x6655
movq 0x38(%rbx), %rdi
pushq $0x27
popq %rsi
movq %rsp, %rdx
callq 0x88a0
testl %eax, %eax
jne 0x6655
leaq 0x10237(%rip), %rax     # 0x16888
movq %rax, (%rsp)
leaq 0xc0(%rbx), %r12
movq (%rsp), %r15
movq %r12, %r14
movq (%r14), %r14
testq %r14, %r14
je 0x66bb
movq 0x10(%r14), %rdi
movq %r15, %rsi
callq 0x5610
testl %eax, %eax
jne 0x6663
movq (%r14), %rax
movq 0x8(%r14), %rcx
leaq 0xc8(%rbx), %rdx
leaq 0x8(%rax), %rsi
testq %rax, %rax
cmoveq %rdx, %rsi
movq %rcx, (%rsi)
movq %rax, (%rcx)
andq $0x0, (%r14)
movq 0xc8(%rbx), %rax
movq %rax, 0x8(%r14)
movq %r14, (%rax)
movq %r14, 0xc8(%rbx)
movl 0xd0(%rbx), %eax
jmp 0x66f5
pushq $0x18
popq %rdi
callq 0x6014
movq %rax, %r14
movq (%rsp), %rax
movq %rax, 0x10(%r14)
andq $0x0, (%r14)
movq 0xc8(%rbx), %rax
movq %rax, 0x8(%r14)
movq %r14, (%rax)
movq %r14, 0xc8(%rbx)
movl 0xd0(%rbx), %eax
incl %eax
movl %eax, 0xd0(%rbx)
movq 0x10(%r14), %rcx
movq %rcx, 0xd8(%rbx)
cmpl $0x6, %eax
jl 0x6750
movq (%r12), %r14
testq %r14, %r14
je 0x675c
movq (%r14), %rax
movq 0x8(%r14), %rcx
leaq 0xc8(%rbx), %rdx
leaq 0x8(%rax), %rsi
testq %rax, %rax
cmoveq %rdx, %rsi
movq %rcx, (%rsi)
movq %rax, (%rcx)
movq 0x10(%r14), %rdi
leaq 0x10150(%rip), %rax     # 0x16888
cmpq %rax, %rdi
je 0x6742
callq 0x6050
movq %r14, %rdi
callq 0x6050
decl 0xd0(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x794b(%rip), %rdi      # 0xe0ae
leaq 0x794f(%rip), %rsi      # 0xe0b9
leaq 0x7951(%rip), %rcx      # 0xe0c2
movl $0x245, %edx            # imm = 0x245
callq 0x5190
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_draw_border
void
client_draw_border(struct client_ctx *cc)
{
	struct screen_ctx	*sc = cc->sc;
	unsigned long		 pixel;

	if (cc->active)
		switch (cc->highlight) {
		case CLIENT_HIGHLIGHT_GROUP:
			pixel = sc->color[CWM_COLOR_BORDER_GROUP].pixel;
			break;
		case CLIENT_HIGHLIGHT_UNGROUP:
			pixel = sc->color[CWM_COLOR_BORDER_UNGROUP].pixel;
			break;
		default:
			pixel = sc->color[CWM_COLOR_BORDER_ACTIVE].pixel;
			break;
		}
	else
		pixel = sc->color[CWM_COLOR_BORDER_INACTIVE].pixel;

	XSetWindowBorderWidth(X_Dpy, cc->win, cc->bwidth);
	XSetWindowBorder(X_Dpy, cc->win, pixel);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x30(%rdi), %rax
cmpl $0x0, 0xb0(%rdi)
je 0x67d5
movl 0xb8(%rbx), %ecx
cmpl $0x2, %ecx
pushq $0x60
popq %rdx
pushq $0x30
popq %rsi
cmoveq %rdx, %rsi
cmpl $0x1, %ecx
pushq $0x50
popq %rcx
cmovneq %rsi, %rcx
jmp 0x67d8
pushq $0x40
popq %rcx
movq (%rax,%rcx), %r14
leaq 0x10065(%rip), %r15     # 0x16848
movq (%r15), %rdi
movq 0x38(%rbx), %rsi
movl 0x50(%rbx), %edx
callq 0x5660
movq (%r15), %rdi
movq 0x38(%rbx), %rsi
movq %r14, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x5330
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_transient
void
client_transient(struct client_ctx *cc)
{
	struct client_ctx	*tc;
	Window			 trans;

	if (XGetTransientForHint(X_Dpy, cc->win, &trans)) {
		if ((tc = client_find(trans)) && tc->group) {
			group_movetogroup(cc, tc->group->shortcut - 1);
			if (tc->flags & CLIENT_IGNORE)
				cc->flags |= CLIENT_IGNORE;
		}
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10034(%rip), %rax     # 0x16848
movq (%rax), %rdi
movq 0x38(%rbx), %rsi
movq %rsp, %rdx
callq 0x57b0
testl %eax, %eax
je 0x6862
movq (%rsp), %rdi
callq 0x6074
testq %rax, %rax
je 0x6862
movq %rax, %r14
movq 0xf0(%rax), %rax
testq %rax, %rax
je 0x6862
movl 0x20(%rax), %esi
decl %esi
movq %rbx, %rdi
callq 0xa109
testb $0x2, 0xa8(%r14)
je 0x6862
orb $0x2, 0xa8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_hide
void
client_hide(struct client_ctx *cc)
{
	/* XXX - add wm_state stuff */
	XUnmapWindow(X_Dpy, cc->win);

	cc->active = 0;
	cc->flags |= CLIENT_HIDDEN;
	xu_setstate(cc, IconicState);

	if (cc == _curcc)
		client_none(cc->sc);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0xffd3(%rip), %rax      # 0x16848
movq (%rax), %rdi
movq 0x38(%rbx), %rsi
callq 0x53c0
andl $0x0, 0xb0(%rbx)
orb $0x1, 0xa8(%rbx)
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x89ba
cmpq %rbx, 0xffdf(%rip)      # 0x16880
je 0x68a5
popq %rbx
retq
movq 0x30(%rbx), %rdi
popq %rbx
jmp 0x6a11
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_unhide
void
client_unhide(struct client_ctx *cc)
{
	XMapRaised(X_Dpy, cc->win);

	cc->highlight = 0;
	cc->flags &= ~CLIENT_HIDDEN;
	xu_setstate(cc, NormalState);
	client_draw_border(cc);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0xff8e(%rip), %rax      # 0x16848
movq (%rax), %rdi
movq 0x38(%rbx), %rsi
callq 0x5800
andl $0x0, 0xb8(%rbx)
andb $-0x2, 0xa8(%rbx)
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x89ba
movq %rbx, %rdi
popq %rbx
jmp 0x67a1
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_delete
void
client_delete(struct client_ctx *cc)
{
	struct screen_ctx	*sc = cc->sc;
	struct winname		*wn;

	group_client_delete(cc);

	XGrabServer(X_Dpy);
	xu_setstate(cc, WithdrawnState);
	XRemoveFromSaveSet(X_Dpy, cc->win);

	XSync(X_Dpy, False);
	XUngrabServer(X_Dpy);

	TAILQ_REMOVE(&sc->mruq, cc, mru_entry);
	TAILQ_REMOVE(&Clientq, cc, entry);

	xu_ewmh_net_client_list(sc);

	if (_curcc == cc)
		client_none(sc);

	XFree(cc->size);

	while ((wn = TAILQ_FIRST(&cc->nameq)) != NULL) {
		TAILQ_REMOVE(&cc->nameq, wn, entry);
		if (wn->name != emptystring)
			xfree(wn->name);
		xfree(wn);
	}

	client_freehints(cc);
	xfree(cc);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x30(%rdi), %r14
callq 0xa5ab
leaq 0xff45(%rip), %r15      # 0x16848
movq (%r15), %rdi
callq 0x5120
movq %rbx, %rdi
xorl %esi, %esi
callq 0x89ba
movq (%r15), %rdi
movq 0x38(%rbx), %rsi
callq 0x5280
movq (%r15), %rdi
xorl %esi, %esi
callq 0x55b0
movq (%r15), %rdi
callq 0x5420
movq 0x20(%rbx), %rax
movq 0x28(%rbx), %rcx
leaq 0xe0(%r14), %rdx
leaq 0x28(%rax), %rsi
testq %rax, %rax
cmoveq %rdx, %rsi
movq %rcx, (%rsi)
movq %rax, (%rcx)
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
movq %rax, %rdx
testq %rax, %rax
jne 0x6969
leaq 0xdb17(%rip), %rdx      # 0x14480
movq %rcx, 0x8(%rdx)
movq %rax, (%rcx)
movq %r14, %rdi
callq 0x8c56
cmpq %rbx, 0xff01(%rip)      # 0x16880
jne 0x6989
movq %r14, %rdi
callq 0x6a11
movq 0x40(%rbx), %rdi
callq 0x5060
leaq 0xc8(%rbx), %r15
leaq 0xfee8(%rip), %r12      # 0x16888
movq 0xc0(%rbx), %r14
testq %r14, %r14
je 0x69dc
movq (%r14), %rax
movq 0x8(%r14), %rcx
leaq 0x8(%rax), %rdx
testq %rax, %rax
cmoveq %r15, %rdx
movq %rcx, (%rdx)
movq %rax, (%rcx)
movq 0x10(%r14), %rdi
cmpq %r12, %rdi
je 0x69d2
callq 0x6050
movq %r14, %rdi
callq 0x6050
jmp 0x69a0
movq 0x100(%rbx), %rdi
testq %rdi, %rdi
je 0x69ed
callq 0x5060
movq 0xf8(%rbx), %rdi
testq %rdi, %rdi
je 0x69fe
callq 0x5060
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x6050
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_leave
void
client_leave(struct client_ctx *cc)
{
	struct screen_ctx	*sc;

	if (cc == NULL)
		cc = _curcc;
	if (cc == NULL)
		return;

	sc = cc->sc;
	xu_btn_ungrab(sc->rootwin, AnyModifier, Button1);
}

// Assembly:
testq %rdi, %rdi
jne 0x6a2f
movq 0xfe51(%rip), %rdi      # 0x16880
testq %rdi, %rdi
je 0x6a49
movq 0x30(%rdi), %rax
movq 0x18(%rax), %rdi
pushq $0x1
popq %rdx
movl $0x8000, %esi           # imm = 0x8000
jmp 0x8560
retq
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_setactive
void
client_setactive(struct client_ctx *cc, int fg)
{
	struct screen_ctx	*sc;

	if (cc == NULL)
		cc = _curcc;
	if (cc == NULL)
		return;

	sc = cc->sc;

	if (fg) {
		XInstallColormap(X_Dpy, cc->cmap);
		XSetInputFocus(X_Dpy, cc->win,
		    RevertToPointerRoot, CurrentTime);
		conf_grab_mouse(cc);
		/*
		 * If we're in the middle of alt-tabbing, don't change
		 * the order please.
		 */
		if (!sc->cycling)
			client_mtf(cc);
	} else
		client_leave(cc);

	if (fg && _curcc != cc) {
		client_setactive(NULL, 0);
		_curcc = cc;
		xu_ewmh_net_active_window(sc, cc->win);
	}

	cc->active = fg;
	client_draw_border(cc);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
testq %rdi, %rdi
jne 0x6a63
movq 0xfe1d(%rip), %r14      # 0x16880
testq %r14, %r14
je 0x6ad7
testl %ebx, %ebx
je 0x6ae3
movq 0x30(%r14), %r15
leaq 0xfdd1(%rip), %r12      # 0x16848
movq (%r12), %rdi
movq 0x48(%r14), %rsi
callq 0x5640
movq (%r12), %rdi
movq 0x38(%r14), %rsi
pushq $0x1
popq %rdx
xorl %ecx, %ecx
callq 0x5570
movq %r14, %rdi
callq 0x97b2
cmpl $0x0, 0xa0(%r15)
jne 0x6ab0
movq %r14, %rdi
callq 0x6b05
cmpq %r14, 0xfdc9(%rip)      # 0x16880
je 0x6aeb
xorl %edi, %edi
xorl %esi, %esi
callq 0x6a4a
movq %r14, 0xfdb7(%rip)      # 0x16880
movq 0x38(%r14), %rsi
movq %r15, %rdi
callq 0x8ce4
jmp 0x6aeb
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r14, %rdi
callq 0x6a23
movl %ebx, 0xb0(%r14)
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x67a1
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_mtf
void
client_mtf(struct client_ctx *cc)
{
	struct screen_ctx	*sc;

	if (cc == NULL)
		cc = _curcc;
	if (cc == NULL)
		return;

	sc = cc->sc;

	/* Move to front. */
	TAILQ_REMOVE(&sc->mruq, cc, mru_entry);
	TAILQ_INSERT_HEAD(&sc->mruq, cc, mru_entry);
}

// Assembly:
testq %rdi, %rdi
jne 0x6b11
movq 0xfd6f(%rip), %rdi      # 0x16880
testq %rdi, %rdi
je 0x6b69
movq 0x30(%rdi), %rax
leaq 0x20(%rdi), %rcx
movq 0x20(%rdi), %rdx
movq 0x28(%rdi), %rsi
leaq 0xe0(%rax), %r8
leaq 0x28(%rdx), %r9
testq %rdx, %rdx
cmoveq %r8, %r9
movq %rsi, (%r9)
movq %rdx, (%rsi)
leaq 0xd8(%rax), %rdx
movq 0xd8(%rax), %rsi
leaq 0x28(%rsi), %r9
testq %rsi, %rsi
cmoveq %r8, %r9
movq %rsi, 0x20(%rdi)
movq %rcx, (%r9)
movq %rdi, 0xd8(%rax)
movq %rdx, 0x28(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_maximize
void
client_maximize(struct client_ctx *cc)
{
	struct screen_ctx	*sc = cc->sc;
	int			 x_org, y_org, xmax, ymax;
	XineramaScreenInfo	*xine;

	if (cc->flags & CLIENT_FREEZE)
		return;

	if ((cc->flags & CLIENT_MAXFLAGS) == CLIENT_MAXIMIZED) {
		cc->flags &= ~CLIENT_MAXIMIZED;
		cc->geom = cc->savegeom;
		cc->bwidth = Conf.bwidth;
		goto resize;
	}

	if ((cc->flags & CLIENT_VMAXIMIZED) == 0) {
		cc->savegeom.h = cc->geom.h;
		cc->savegeom.y = cc->geom.y;
	}

	if ((cc->flags & CLIENT_HMAXIMIZED) == 0) {
		cc->savegeom.w = cc->geom.w;
		cc->savegeom.x = cc->geom.x;
	}

	/*
	 * pick screen that the middle of the window is on.
	 * that's probably more fair than if just the origin of
	 * a window is poking over a boundary
	 */
	xine = screen_find_xinerama(sc,
	    cc->geom.x + cc->geom.w / 2,
	    cc->geom.y + cc->geom.h / 2);
	if (xine) {
		x_org = xine->x_org;
		y_org = xine->y_org;
		xmax = xine->width;
		ymax = xine->height;
	} else {
		x_org = y_org = 0;
		xmax = sc->view.w;
		ymax = sc->view.h;
	}

	cc->geom.x = x_org + sc->gap.left;
	cc->geom.y = y_org + sc->gap.top;
	cc->geom.h = ymax - (sc->gap.top + sc->gap.bottom);
	cc->geom.w = xmax - (sc->gap.left + sc->gap.right);
	cc->bwidth = 0;
	cc->flags |= CLIENT_MAXIMIZED;

resize:
	client_resize(cc, 0);
}

// Assembly:
movl 0xa8(%rdi), %eax
testb $0x10, %al
jne 0x6bb7
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl %eax, %ecx
notl %ecx
testb $0xc, %cl
jne 0x6bb8
andl $-0x1d, %eax
movl %eax, 0xa8(%rbx)
movups 0x64(%rbx), %xmm0
movups %xmm0, 0x54(%rbx)
leaq 0xdbb4(%rip), %rax      # 0x14760
movl 0x54(%rax), %eax
movl %eax, 0x50(%rbx)
jmp 0x6c63
retq
testb $0x4, %al
jne 0x6bc8
movl 0x58(%rbx), %ecx
movl 0x60(%rbx), %edx
movl %edx, 0x70(%rbx)
movl %ecx, 0x68(%rbx)
movq 0x30(%rbx), %r14
testb $0x8, %al
jne 0x6bde
movl 0x54(%rbx), %esi
movl 0x5c(%rbx), %eax
movl %eax, 0x6c(%rbx)
movl %esi, 0x64(%rbx)
jmp 0x6be4
movl 0x54(%rbx), %esi
movl 0x5c(%rbx), %eax
pushq $0x2
popq %rcx
cltd
idivl %ecx
addl %eax, %esi
movl 0x60(%rbx), %eax
cltd
idivl %ecx
addl 0x58(%rbx), %eax
movq %r14, %rdi
movl %eax, %edx
callq 0x5ef3
testq %rax, %rax
je 0x6c16
movswl 0x4(%rax), %esi
movswl 0x6(%rax), %edx
movswl 0x8(%rax), %ecx
movswl 0xa(%rax), %eax
jmp 0x6c28
movl 0xac(%r14), %ecx
movl 0xb0(%r14), %eax
xorl %edx, %edx
xorl %esi, %esi
movl 0xcc(%r14), %edi
addl %edi, %esi
movl %esi, 0x54(%rbx)
movl 0xc4(%r14), %esi
addl %esi, %edx
movl %edx, 0x58(%rbx)
addl 0xc8(%r14), %esi
subl %esi, %eax
movl %eax, 0x60(%rbx)
addl 0xd0(%r14), %edi
subl %edi, %ecx
movl %ecx, 0x5c(%rbx)
andl $0x0, 0x50(%rbx)
orb $0xc, 0xa8(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x6c74
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_resize
void
client_resize(struct client_ctx *cc, int reset)
{
	if (reset) {
		cc->flags &= ~CLIENT_MAXIMIZED;
		cc->bwidth = Conf.bwidth;
	}

	client_draw_border(cc);

	XMoveResizeWindow(X_Dpy, cc->win, cc->geom.x,
	    cc->geom.y, cc->geom.w, cc->geom.h);
	xu_configure(cc);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
testl %esi, %esi
je 0x6c90
andb $-0xd, 0xa8(%rbx)
leaq 0xdad6(%rip), %rax      # 0x14760
movl 0x54(%rax), %eax
movl %eax, 0x50(%rbx)
movq %rbx, %rdi
callq 0x67a1
leaq 0xfba9(%rip), %rax      # 0x16848
movq (%rax), %rdi
movq 0x38(%rbx), %rsi
movl 0x54(%rbx), %edx
movl 0x58(%rbx), %ecx
movl 0x5c(%rbx), %r8d
movl 0x60(%rbx), %r9d
callq 0x5440
movq %rbx, %rdi
popq %rbx
jmp 0x8763
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_vertmaximize
void
client_vertmaximize(struct client_ctx *cc)
{
	struct screen_ctx	*sc = cc->sc;
	int			 y_org, ymax;
	XineramaScreenInfo	*xine;

	if (cc->flags & CLIENT_FREEZE)
		return;

	if (cc->flags & CLIENT_VMAXIMIZED) {
		cc->geom.y = cc->savegeom.y;
		cc->geom.h = cc->savegeom.h;
		cc->bwidth = Conf.bwidth;
		if (cc->flags & CLIENT_HMAXIMIZED)
			cc->geom.w -= cc->bwidth * 2;
		cc->flags &= ~CLIENT_VMAXIMIZED;
		goto resize;
	}

	cc->savegeom.y = cc->geom.y;
	cc->savegeom.h = cc->geom.h;

	/* if this will make us fully maximized then remove boundary */
	if ((cc->flags & CLIENT_MAXFLAGS) == CLIENT_HMAXIMIZED) {
		cc->geom.w += Conf.bwidth * 2;
		cc->bwidth = 0;
	}

	xine = screen_find_xinerama(sc,
	    cc->geom.x + cc->geom.w / 2,
	    cc->geom.y + cc->geom.h / 2);
	if (xine) {
		y_org = xine->y_org;
		ymax = xine->height;
	} else {
		y_org = 0;
		ymax = sc->view.h;
	}

	cc->geom.y = y_org + sc->gap.top;
	cc->geom.h = ymax - (cc->bwidth * 2) - (sc->gap.top +
	    sc->gap.bottom);
	cc->flags |= CLIENT_VMAXIMIZED;

resize:
	client_resize(cc, 0);
}

// Assembly:
movl 0xa8(%rdi), %eax
testb $0x10, %al
jne 0x6cf0
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testb $0x4, %al
jne 0x6cf1
movq 0x30(%rbx), %r14
movl 0x58(%rbx), %ecx
movl 0x60(%rbx), %esi
movl %ecx, 0x68(%rbx)
movl %esi, 0x70(%rbx)
testb $0x8, %al
jne 0x6d18
movl 0x5c(%rbx), %eax
jmp 0x6d2e
retq
movl 0x68(%rbx), %ecx
movl 0x70(%rbx), %edx
movl %ecx, 0x58(%rbx)
movl %edx, 0x60(%rbx)
leaq 0xda5c(%rip), %rcx      # 0x14760
movl 0x54(%rcx), %ecx
movl %ecx, 0x50(%rbx)
testb $0x8, %al
je 0x6d13
addl %ecx, %ecx
subl %ecx, 0x5c(%rbx)
andl $-0x15, %eax
jmp 0x6d8e
leaq 0xda41(%rip), %rax      # 0x14760
movl 0x54(%rax), %eax
addl %eax, %eax
addl 0x5c(%rbx), %eax
movl %eax, 0x5c(%rbx)
andl $0x0, 0x50(%rbx)
pushq $0x2
popq %rdi
cltd
idivl %edi
movl %eax, %r8d
addl 0x54(%rbx), %r8d
movl %esi, %eax
cltd
idivl %edi
addl %eax, %ecx
movq %r14, %rdi
movl %r8d, %esi
movl %ecx, %edx
callq 0x5ef3
testq %rax, %rax
je 0x6d5e
movswl 0x6(%rax), %edx
movswl 0xa(%rax), %ecx
jmp 0x6d67
movl 0xb0(%r14), %ecx
xorl %edx, %edx
movl 0xc4(%r14), %esi
addl %esi, %edx
movl %edx, 0x58(%rbx)
addl 0xc8(%r14), %esi
movl 0x50(%rbx), %edx
movl 0xa8(%rbx), %eax
leal (%rsi,%rdx,2), %edx
subl %edx, %ecx
movl %ecx, 0x60(%rbx)
orl $0x4, %eax
movl %eax, 0xa8(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x6c74
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_horizmaximize
void
client_horizmaximize(struct client_ctx *cc)
{
	struct screen_ctx	*sc = cc->sc;
	int			 x_org, xmax;
	XineramaScreenInfo	*xine;

	if (cc->flags & CLIENT_FREEZE)
		return;

	if (cc->flags & CLIENT_HMAXIMIZED) {
		cc->geom.x = cc->savegeom.x;
		cc->geom.w = cc->savegeom.w;
		cc->bwidth = Conf.bwidth;
		if (cc->flags & CLIENT_VMAXIMIZED)
			cc->geom.h -= cc->bwidth * 2;
		cc->flags &= ~CLIENT_HMAXIMIZED;
		goto resize;
	}

	cc->savegeom.x = cc->geom.x;
	cc->savegeom.w = cc->geom.w;

	/* if this will make us fully maximized then remove boundary */
	if ((cc->flags & CLIENT_MAXFLAGS) == CLIENT_VMAXIMIZED) {
		cc->geom.h += cc->bwidth * 2;
		cc->bwidth = 0;
	}

	xine = screen_find_xinerama(sc,
	    cc->geom.x + cc->geom.w / 2,
	    cc->geom.y + cc->geom.h / 2);
	if (xine) {
		x_org = xine->x_org;
		xmax = xine->width;
	} else {
		x_org = 0;
		xmax = sc->view.w;
	}

	cc->geom.x = x_org + sc->gap.left;
	cc->geom.w = xmax - (cc->bwidth * 2) - (sc->gap.left +
	    sc->gap.right);
	cc->flags |= CLIENT_HMAXIMIZED;

resize:
	client_resize(cc, 0);
}

// Assembly:
movl 0xa8(%rdi), %ecx
testb $0x10, %cl
jne 0x6dd6
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testb $0x8, %cl
jne 0x6dd7
movq 0x30(%rbx), %r14
movl 0x54(%rbx), %esi
movl 0x5c(%rbx), %eax
movl %esi, 0x64(%rbx)
movl %eax, 0x6c(%rbx)
testb $0x4, %cl
jne 0x6dff
movl 0x60(%rbx), %ecx
jmp 0x6e0e
retq
movl 0x64(%rbx), %eax
movl 0x6c(%rbx), %edx
movl %eax, 0x54(%rbx)
movl %edx, 0x5c(%rbx)
leaq 0xd976(%rip), %rax      # 0x14760
movl 0x54(%rax), %eax
movl %eax, 0x50(%rbx)
testb $0x4, %cl
je 0x6dfa
addl %eax, %eax
subl %eax, 0x60(%rbx)
andl $-0x19, %ecx
jmp 0x6e67
movl 0x50(%rbx), %ecx
addl %ecx, %ecx
addl 0x60(%rbx), %ecx
movl %ecx, 0x60(%rbx)
andl $0x0, 0x50(%rbx)
pushq $0x2
popq %rdi
cltd
idivl %edi
addl %eax, %esi
movl %ecx, %eax
cltd
idivl %edi
addl 0x58(%rbx), %eax
movq %r14, %rdi
movl %eax, %edx
callq 0x5ef3
testq %rax, %rax
je 0x6e37
movswl 0x4(%rax), %ecx
movswl 0x8(%rax), %eax
jmp 0x6e40
movl 0xac(%r14), %eax
xorl %ecx, %ecx
movl 0xcc(%r14), %edx
addl %edx, %ecx
movl %ecx, 0x54(%rbx)
addl 0xd0(%r14), %edx
movl 0x50(%rbx), %esi
movl 0xa8(%rbx), %ecx
leal (%rdx,%rsi,2), %edx
subl %edx, %eax
movl %eax, 0x5c(%rbx)
orl $0x8, %ecx
movl %ecx, 0xa8(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x6c74
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_ptrwarp
void
client_ptrwarp(struct client_ctx *cc)
{
	int	 x = cc->ptr.x, y = cc->ptr.y;

	if (x == -1 || y == -1) {
		x = cc->geom.w / 2;
		y = cc->geom.h / 2;
	}

	(cc->state == IconicState) ? client_unhide(cc) : client_raise(cc);
	xu_ptr_setpos(cc->win, x, y);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl 0x9c(%rdi), %ebp
movl 0xa0(%rdi), %r14d
cmpl $-0x1, %ebp
sete %al
cmpl $-0x1, %r14d
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x6ee8
movl 0x5c(%rbx), %eax
movl 0x60(%rbx), %ecx
pushq $0x2
popq %rsi
cltd
idivl %esi
movl %eax, %ebp
movl %ecx, %eax
cltd
idivl %esi
movl %eax, %r14d
cmpl $0x3, 0xac(%rbx)
jne 0x6efb
movq %rbx, %rdi
callq 0x68af
jmp 0x6f03
movq %rbx, %rdi
callq 0x6e94
movq 0x38(%rbx), %rdi
movl %ebp, %esi
movl %r14d, %edx
popq %rbx
popq %r14
popq %rbp
jmp 0x85f5
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_ptrsave
void
client_ptrsave(struct client_ctx *cc)
{
	int	 x, y;

	xu_ptr_getpos(cc->win, &x, &y);
	if (client_inbound(cc, x, y)) {
		cc->ptr.x = x;
		cc->ptr.y = y;
	} else {
		cc->ptr.x = -1;
		cc->ptr.y = -1;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x38(%rdi), %rdi
leaq 0x4(%rsp), %r14
movq %rsp, %rdx
movq %r14, %rsi
callq 0x85b2
movl (%r14), %eax
testl %eax, %eax
js 0x6f48
cmpl %eax, 0x5c(%rbx)
jle 0x6f48
movl (%rsp), %ecx
testl %ecx, %ecx
js 0x6f48
cmpl %ecx, 0x60(%rbx)
jg 0x6f4d
pushq $-0x1
popq %rax
movl %eax, %ecx
movl %eax, 0x9c(%rbx)
movl %ecx, 0xa0(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_send_delete
void
client_send_delete(struct client_ctx *cc)
{
	if (cc->xproto & CLIENT_PROTO_DELETE)
		xu_sendmsg(cc->win,
		    cwmh[WM_PROTOCOLS].atom, cwmh[WM_DELETE_WINDOW].atom);
	else
		XKillClient(X_Dpy, cc->win);
}

// Assembly:
testb $0x1, 0xa4(%rdi)
jne 0x6f80
leaq 0xf8d7(%rip), %rax      # 0x16848
movq (%rax), %rax
movq 0x38(%rdi), %rsi
movq %rax, %rdi
jmp 0x5890
movq 0x38(%rdi), %rdi
leaq 0xd505(%rip), %rax      # 0x14490
movq 0x18(%rax), %rdx
movq 0x38(%rax), %rsi
jmp 0x87b2
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_cycle
void
client_cycle(struct screen_ctx *sc, int flags)
{
	struct client_ctx	*oldcc, *newcc;
	int			 again = 1;

	oldcc = client_current();

	/* If no windows then you cant cycle */
	if (TAILQ_EMPTY(&sc->mruq))
		return;

	if (oldcc == NULL)
		oldcc = (flags & CWM_RCYCLE ? 
		    TAILQ_LAST(&sc->mruq, cycle_entry_q) :
		    TAILQ_FIRST(&sc->mruq));

	newcc = oldcc;
	while (again) {
		again = 0;

		newcc = (flags & CWM_RCYCLE ? client_mruprev(newcc) :
		    client_mrunext(newcc));

		/* Only cycle visible and non-ignored windows. */
		if ((newcc->flags & (CLIENT_HIDDEN|CLIENT_IGNORE))
			|| ((flags & CWM_INGROUP) && (newcc->group != oldcc->group)))
			again = 1;

		/* Is oldcc the only non-hidden window? */
		if (newcc == oldcc) {
			if (again)
				return;	/* No windows visible. */

			break;
		}
	}

	/* reset when cycling mod is released. XXX I hate this hack */
	sc->cycling = 1;
	client_ptrsave(oldcc);
	client_ptrwarp(newcc);
}

// Assembly:
pushq %rbx
movq 0xd8(%rdi), %rax
testq %rax, %rax
je 0x7060
movq 0xf8d0(%rip), %r8       # 0x16880
testb $0x2, %sil
sete %cl
testq %r8, %r8
sete %dl
setne %r9b
cmovneq %r8, %rax
orb %cl, %r9b
je 0x6fce
orb %dl, %cl
jmp 0x6fde
movq 0xe0(%rdi), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
xorl %ecx, %ecx
xorl %r9d, %r9d
movl $0xd8, %edx
movq %rax, %r8
testb $0x1, %r9b
jne 0x7062
testb %cl, %cl
je 0x7005
movq 0x20(%r8), %rbx
testq %rbx, %rbx
jne 0x7027
movq 0x30(%r8), %r8
addq %rdx, %r8
jmp 0x7024
movq 0x28(%r8), %r9
movq 0x8(%r9), %r9
movq (%r9), %rbx
testq %rbx, %rbx
jne 0x7027
movq 0x30(%r8), %r8
movq 0xe0(%r8), %r8
movq 0x8(%r8), %r8
movq (%r8), %rbx
testb $0x3, 0xa8(%rbx)
je 0x703d
xorl %r9d, %r9d
movq %rbx, %r8
cmpq %rax, %rbx
jne 0x6fe9
jmp 0x7060
testb $0x4, %sil
je 0x7053
movq 0xf0(%rbx), %r8
cmpq 0xf0(%rax), %r8
jne 0x7030
movb $0x1, %r9b
movq %rbx, %r8
cmpq %rax, %rbx
jne 0x6fe9
jmp 0x7065
popq %rbx
retq
movq %r8, %rbx
movl $0x1, 0xa0(%rdi)
movq %rax, %rdi
callq 0x6f15
movq %rbx, %rdi
popq %rbx
jmp 0x6eaa
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_cycle_leave
void
client_cycle_leave(struct screen_ctx *sc, struct client_ctx *cc) 
{
	sc->cycling = 0;

	client_mtf(NULL);
	if (cc) {
		group_sticky_toggle_exit(cc);
		XUngrabKeyboard(X_Dpy, CurrentTime);
	}
}

// Assembly:
pushq %rbx
movq %rsi, %rbx
andl $0x0, 0xa0(%rdi)
xorl %edi, %edi
callq 0x6b05
testq %rbx, %rbx
je 0x70b1
movq %rbx, %rdi
callq 0xa250
leaq 0xf7a2(%rip), %rax      # 0x16848
movq (%rax), %rdi
xorl %esi, %esi
popq %rbx
jmp 0x54d0
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_applysizehints
void
client_applysizehints(struct client_ctx *cc)
{
	Bool		 baseismin;

	baseismin = (cc->hint.basew == cc->hint.minw) &&
	    (cc->hint.baseh == cc->hint.minh);

	/* temporarily remove base dimensions, ICCCM 4.1.2.3 */
	if (!baseismin) {
		cc->geom.w -= cc->hint.basew;
		cc->geom.h -= cc->hint.baseh;
	}

	/* adjust for aspect limits */
	if (cc->hint.mina > 0 && cc->hint.maxa > 0) {
		if (cc->hint.maxa <
		    (float)cc->geom.w / cc->geom.h)
			cc->geom.w = cc->geom.h * cc->hint.maxa;
		else if (cc->hint.mina <
		    (float)cc->geom.h / cc->geom.w)
			cc->geom.h = cc->geom.w * cc->hint.mina;
	}

	/* remove base dimensions for increment */
	if (baseismin) {
		cc->geom.w -= cc->hint.basew;
		cc->geom.h -= cc->hint.baseh;
	}

	/* adjust for increment value */
	cc->geom.w -= cc->geom.w % cc->hint.incw;
	cc->geom.h -= cc->geom.h % cc->hint.inch;

	/* restore base dimensions */
	cc->geom.w += cc->hint.basew;
	cc->geom.h += cc->hint.baseh;

	/* adjust for min width/height */
	cc->geom.w = MAX(cc->geom.w, cc->hint.minw);
	cc->geom.h = MAX(cc->geom.h, cc->hint.minh);

	/* adjust for max width/height */
	if (cc->hint.maxw)
		cc->geom.w = MIN(cc->geom.w, cc->hint.maxw);
	if (cc->hint.maxh)
		cc->geom.h = MIN(cc->geom.h, cc->hint.maxh);
}

// Assembly:
movl 0x7c(%rdi), %r8d
movq 0x74(%rdi), %r9
movq %r9, %xmm1
pshufd $0x55, %xmm1, %xmm0     # xmm0 = xmm1[1,1,1,1]
cmpl %r8d, %r9d
jne 0x70d8
movd %xmm0, %ecx
movb $0x1, %al
cmpl 0x80(%rdi), %ecx
je 0x70e8
movq 0x5c(%rdi), %xmm2
psubd %xmm1, %xmm2
movq %xmm2, 0x5c(%rdi)
xorl %eax, %eax
movss 0x94(%rdi), %xmm1
xorps %xmm3, %xmm3
ucomiss %xmm3, %xmm1
jbe 0x7144
movss 0x98(%rdi), %xmm2
ucomiss %xmm3, %xmm2
jbe 0x7144
movsd 0x5c(%rdi), %xmm3
cvtdq2ps %xmm3, %xmm3
movaps %xmm3, %xmm4
shufps $0x55, %xmm3, %xmm4     # xmm4 = xmm4[1,1],xmm3[1,1]
movaps %xmm3, %xmm5
divss %xmm4, %xmm5
ucomiss %xmm2, %xmm5
jbe 0x712a
leaq 0x5c(%rdi), %rcx
mulss %xmm4, %xmm2
jmp 0x713e
divss %xmm3, %xmm4
ucomiss %xmm1, %xmm4
jbe 0x7144
leaq 0x60(%rdi), %rcx
mulss %xmm3, %xmm1
movaps %xmm1, %xmm2
cvttss2si %xmm2, %edx
movl %edx, (%rcx)
movl 0x5c(%rdi), %ecx
testb %al, %al
je 0x7159
subl %r9d, %ecx
movl 0x60(%rdi), %esi
movd %xmm0, %eax
subl %eax, %esi
jmp 0x715c
movl 0x60(%rdi), %esi
movl %ecx, %eax
cltd
idivl 0x8c(%rdi)
subl %edx, %ecx
movl %esi, %eax
cltd
idivl 0x90(%rdi)
subl %edx, %esi
addl %r9d, %ecx
movd %xmm0, %eax
addl %esi, %eax
cmpl %r8d, %ecx
cmovlel %r8d, %ecx
movl %ecx, 0x5c(%rdi)
movl 0x80(%rdi), %esi
movl 0x84(%rdi), %edx
cmpl %esi, %eax
cmovlel %esi, %eax
movl %eax, 0x60(%rdi)
testl %edx, %edx
je 0x71a5
cmpl %edx, %ecx
cmovll %ecx, %edx
movl %edx, 0x5c(%rdi)
movl 0x88(%rdi), %ecx
testl %ecx, %ecx
je 0x71b7
cmpl %ecx, %eax
cmovll %eax, %ecx
movl %ecx, 0x60(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/client.c
// Function: client_snapcalc
int
client_snapcalc(int n, int dn, int nmax, int bwidth, int snapdist)
{
	int	 n0, n1, s0, s1;

	s0 = s1 = 0;
	n0 = n;
	n1 = n + dn + (bwidth * 2);

	if (abs(n0) <= snapdist)
		s0 = -n0;

	if (nmax - snapdist <= n1 && n1 <= nmax + snapdist)
		s1 = nmax - n1;

	/* possible to snap in both directions */
	if (s0 != 0 && s1 != 0)
		if (abs(s0) < abs(s1))
			return (s0);
		else
			return (s1);
	else if (s0 != 0)
		return (s0);
	else if (s1 != 0)
		return (s1);
	else
		return (0);
}

// Assembly:
movl %edx, %eax
addl %edi, %esi
leal (%rsi,%rcx,2), %edx
movl %edi, %ecx
negl %ecx
cmovnsl %ecx, %edi
xorl %esi, %esi
cmpl %r8d, %edi
cmovgl %esi, %ecx
movl %eax, %edi
subl %r8d, %edi
addl %eax, %r8d
subl %edx, %eax
cmpl %r8d, %edx
cmovgl %esi, %eax
cmpl %edx, %edi
cmovgl %esi, %eax
testl %ecx, %ecx
setne %dl
je 0x7201
testl %eax, %eax
je 0x7201
movl %ecx, %edx
negl %edx
cmovsl %ecx, %edx
movl %eax, %esi
negl %esi
cmovsl %eax, %esi
cmpl %esi, %edx
setb %dl
testb %dl, %dl
cmovnel %ecx, %eax
retq
nop