// File: /workspace/github_c_makefile_star2_O3/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, 0x18(%rsp)
movq 0x18(%rdi), %rdi
leaq 0xa260(%rip), %rax      # 0x144f0
movq 0xa8(%rax), %rsi
leaq 0xa1f2(%rip), %rax      # 0x14490
movq 0x58(%rax), %rdx
leaq 0x8(%rsp), %r8
movl $0xffffff, %ecx         # imm = 0xFFFFFF
callq 0x8ac3
xorl %ebp, %ebp
movl $0x0, %r12d
testl %eax, %eax
jle 0xa2e7
movq 0x8(%rsp), %rcx
movl %eax, %eax
movb $0x0, -0x1(%rcx,%rax)
xorl %edx, %edx
movq 0x8(%rsp), %rcx
xorl %r12d, %r12d
cmpb $0x1, (%rcx,%rdx)
leaq 0x1(%rdx), %rsi
adcl $0x0, %r12d
movq %rsi, %rdx
cmpq %rsi, %rax
jne 0xa2d3
cmpl $0xa, %r12d
movl $0x9, %edi
cmovgel %r12d, %edi
shlq $0x3, %rdi
callq 0x6178
movq %rax, %r14
testl %r12d, %r12d
jle 0xa33e
movq 0x8(%rsp), %r15
movl %r12d, %ebx
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x61bd
movq %rax, (%r14,%r13,8)
incq %r13
movq %r15, %rdi
callq 0x5320
addq %rax, %r15
incq %r15
cmpq %r13, %rbx
jne 0xa310
movb $0x1, %r15b
movl %r12d, %ebp
cmpl $0x8, %r12d
ja 0xa376
movl %ebp, %r12d
movl $0xa, %ebx
subl %ebp, %ebx
decq %rbx
leaq (%r14,%r12,8), %r13
xorl %r15d, %r15d
leaq 0xa397(%rip), %rbp      # 0x146f0
movq 0x8(%rbp,%r15,8), %rdi
callq 0x61bd
movq %rax, (%r13,%r15,8)
incq %r15
cmpq %r15, %rbx
jne 0xa359
addl %r15d, %r12d
xorl %r15d, %r15d
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xa385
callq 0x5060
movq 0x18(%rsp), %rbp
cmpl $0x0, 0x2dc(%rbp)
je 0xa39f
movq 0x2e8(%rbp), %rdi
callq 0x61b8
movq %r14, 0x2e8(%rbp)
movl %r12d, 0x2dc(%rbp)
testb %r15b, %r15b
jne 0xa460
testl %r12d, %r12d
jle 0xa3dd
movl %r12d, %ebx
xorl %r12d, %r12d
xorl %r15d, %r15d
movq (%r14,%r12,8), %rdi
callq 0x5320
addq %rax, %r15
incq %r15
incq %r12
cmpq %r12, %rbx
jne 0xa3c4
jmp 0xa3e0
xorl %r15d, %r15d
movl $0x1, %esi
movq %r15, %rdi
callq 0x6198
movq %rax, 0x10(%rsp)
cmpl $0x0, 0x2dc(%rbp)
jle 0xa450
xorl %ebx, %ebx
movq 0x10(%rsp), %r12
movq %r15, %r13
movq 0x2e8(%rbp), %rax
movq (%rax,%rbx,8), %rbp
movq %rbp, %rdi
callq 0x5320
movq %rax, %r14
incq %rax
movq %rax, 0x20(%rsp)
movq %r12, %rdi
movq %rbp, %rsi
movq 0x18(%rsp), %rbp
movq %r13, %rdx
callq 0xd220
subq 0x20(%rsp), %r13
addq %r14, %r12
incq %r12
incq %rbx
movslq 0x2dc(%rbp), %rax
cmpq %rax, %rbx
jl 0xa405
movq %rbp, %rdi
movq 0x10(%rsp), %rsi
movl %r15d, %edx
callq 0x9120
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq