// File: /workspace/github_c_makefile_star2_O2/zenlinux[P]cwm/group.c
// Function: group_update_names
void
group_update_names(struct screen_ctx *sc)
{
	char		**strings, *p;
	unsigned char	*prop_ret;
	int		 i = 0, j = 0, nstrings = 0, n = 0, setnames = 0;

	if ((j = xu_getprop(sc->rootwin, ewmh[_NET_DESKTOP_NAMES].atom,
	    cwmh[UTF8_STRING].atom, 0xffffff, (u_char **)&prop_ret)) > 0) {
		prop_ret[j - 1] = '\0'; /* paranoia */
		while (i < j) {
			if (prop_ret[i++] == '\0')
				nstrings++;
		}
	}

	strings = xmalloc((nstrings < CALMWM_NGROUPS ? CALMWM_NGROUPS :
	    nstrings) * sizeof(*strings));

	p = (char *)prop_ret;
	while (n < nstrings) {
		strings[n++] = xstrdup(p);
		p += strlen(p) + 1;
	}
	/*
	 * make sure we always set our defaults if nothing is there to
	 * replace them.
	 */
	if (n < CALMWM_NGROUPS) {
		setnames = 1;
		i = 1;
		while (n < CALMWM_NGROUPS)
			strings[n++] = xstrdup(shortcut_to_name[i++]);
	}

	if (prop_ret != NULL)
		XFree(prop_ret);
	if (sc->group_nonames != 0)
		xfree(sc->group_names);

	sc->group_names = strings;
	sc->group_nonames = n;
	if (setnames)
		group_set_names(sc);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, 0x10(%rsp)
movq 0x18(%rdi), %rdi
leaq 0xa61d(%rip), %rax      # 0x144f0
movq 0xa8(%rax), %rsi
leaq 0xa5af(%rip), %rax      # 0x14490
movq 0x58(%rax), %rdx
leaq 0x8(%rsp), %r8
movl $0xffffff, %ecx         # imm = 0xFFFFFF
callq 0x8825
testl %eax, %eax
jle 0x9f1f
movq 0x8(%rsp), %rcx
movl %eax, %eax
movb $0x0, -0x1(%rcx,%rax)
xorl %edx, %edx
movq 0x8(%rsp), %rcx
xorl %ebp, %ebp
cmpq %rdx, %rax
je 0x9f21
cmpb $0x1, (%rcx,%rdx)
leaq 0x1(%rdx), %rdx
adcl $0x0, %ebp
jmp 0x9f0d
xorl %ebp, %ebp
cmpl $0xa, %ebp
pushq $0x9
popq %rdi
cmovgel %ebp, %edi
shlq $0x3, %rdi
callq 0x6014
movq %rax, %r14
movq 0x8(%rsp), %r15
movl %ebp, %r12d
xorl %ebx, %ebx
cmpq %rbx, %r12
je 0x9f64
movq %r15, %rdi
callq 0x6055
movq %rax, (%r14,%rbx,8)
incq %rbx
movq %r15, %rdi
callq 0x5320
addq %rax, %r15
incq %r15
jmp 0x9f40
movl %ebp, %ebx
cmpl $0x8, %ebp
movq 0x10(%rsp), %r15
ja 0x9f95
leaq 0xa781(%rip), %rbx      # 0x146f8
cmpq $0x8, %r12
ja 0x9f92
movq (%rbx), %rdi
callq 0x6055
movq %rax, (%r14,%r12,8)
incq %r12
addq $0x8, %rbx
jmp 0x9f77
movl %r12d, %ebx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x9fa4
callq 0x5060
cmpl $0x0, 0x2dc(%r15)
je 0x9fba
movq 0x2e8(%r15), %rdi
callq 0x6050
movq %r14, 0x2e8(%r15)
movl %ebx, 0x2dc(%r15)
cmpl $0x8, %ebp
ja 0xa068
movl %ebx, %ebx
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq %r12, %rbx
je 0x9ff2
movq (%r14,%r12,8), %rdi
callq 0x5320
addq %rax, %r13
incq %r13
incq %r12
jmp 0x9fd9
pushq $0x1
popq %rsi
movq %r13, %rdi
callq 0x6032
xorl %ebx, %ebx
movq %r13, 0x20(%rsp)
movq %r13, %r12
movq %rax, 0x18(%rsp)
movq %rax, %r13
movslq 0x2dc(%r15), %rax
cmpq %rax, %rbx
jge 0xa056
movq 0x2e8(%r15), %rax
movq (%rax,%rbx,8), %rbp
movq %rbp, %rdi
callq 0x5320
movq %rax, %r14
leaq 0x1(%rax), %r15
movq %r13, %rdi
movq %rbp, %rsi
movq %r12, %rdx
callq 0xcd50
subq %r15, %r12
movq 0x10(%rsp), %r15
addq %r14, %r13
incq %r13
incq %rbx
jmp 0xa00f
movq %r15, %rdi
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x8e1c
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq