LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/deps/lua/src/fpconv.c
// Function: fpconv_g_fmt
int fpconv_g_fmt(char *str, double num, int precision)
{
    char buf[FPCONV_G_FMT_BUFSIZE];
    char fmt[6];
    int len;
    char *b;

    set_number_format(fmt, precision);

    /* Pass through when decimal point character is dot. */
    if (locale_decimal_point == '.')
        return snprintf(str, FPCONV_G_FMT_BUFSIZE, fmt, num);

    /* snprintf() to a buffer then translate for other decimal point characters */
    len = snprintf(buf, FPCONV_G_FMT_BUFSIZE, fmt, num);

    /* Copy into target location. Translate decimal point if required */
    b = buf;
    do {
        *str++ = (*b == locale_decimal_point ? '.' : *b);
    } while(*b++);

    return len;
}

// Assembly:
pushq %rbx
subq $0x30, %rsp
leal -0x1(%rsi), %eax
cmpl $0xe, %eax
jae 0x9d606
movq %rdi, %rbx
movw $0x2e25, 0xa(%rsp)      # imm = 0x2E25
cmpl $0xa, %esi
jae 0x9d583
leaq 0xc(%rsp), %rax
jmp 0x9d58c
leaq 0xd(%rsp), %rax
movb $0x31, -0x1(%rax)
leal -0xa(%rsi), %ecx
cmpl $0xa, %esi
movzbl %cl, %ecx
cmovbl %esi, %ecx
orb $0x30, %cl
movb %cl, (%rax)
movw $0x67, 0x1(%rax)
cmpb $0x2e, 0x64256(%rip)    # 0x101800
jne 0x9d5c2
leaq 0xa(%rsp), %rdx
movl $0x20, %esi
movq %rbx, %rdi
movb $0x1, %al
callq 0x26120
jmp 0x9d600
leaq 0x10(%rsp), %rdi
leaq 0xa(%rsp), %rdx
movl $0x20, %esi
movb $0x1, %al
callq 0x26120
xorl %ecx, %ecx
movb 0x64220(%rip), %dl      # 0x101800
movl $0x2e, %esi
movzbl 0x10(%rsp,%rcx), %edi
cmpb %dl, %dil
movl %edi, %r8d
cmovel %esi, %r8d
movb %r8b, (%rbx,%rcx)
incq %rcx
testb %dil, %dil
jne 0x9d5e5
addq $0x30, %rsp
popq %rbx
retq
leaq 0x34f93(%rip), %rdi     # 0xd25a0
leaq 0x34fae(%rip), %rsi     # 0xd25c2
leaq 0x34fb0(%rip), %rcx     # 0xd25cb
movl $0x9d, %edx
callq 0x262d0
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/deps/lua/src/fpconv.c
// Function: fpconv_init
static void fpconv_update_locale()
{
    char buf[8];

    snprintf(buf, sizeof(buf), "%g", 0.5);

    /* Failing this test might imply the platform has a buggy dtoa
     * implementation or wide characters */
    if (buf[0] != '0' || buf[2] != '5' || buf[3] != 0) {
        fprintf(stderr, "Error: wide characters found or printf() bug.");
        abort();
    }

    locale_decimal_point = buf[1];
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
leaq 0x2d16a(%rip), %rdx     # 0xca79b
leaq 0x8(%rsp), %rbx
movsd 0x34f5a(%rip), %xmm0    # 0xd2598
movl $0x8, %esi
movq %rbx, %rdi
movb $0x1, %al
callq 0x26120
cmpb $0x30, (%rbx)
jne 0x9d670
cmpb $0x35, 0xa(%rsp)
jne 0x9d670
cmpb $0x0, 0xb(%rsp)
jne 0x9d670
movb 0x9(%rsp), %al
movb %al, 0x64196(%rip)      # 0x101800
addq $0x10, %rsp
popq %rbx
retq
callq 0x277ae
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/deps/geohash-int/geohash.c
// Function: geohashEncode
int geohashEncode(const GeoHashRange *long_range, const GeoHashRange *lat_range,
                  double longitude, double latitude, uint8_t step,
                  GeoHashBits *hash) {
    /* Check basic arguments sanity. */
    if (hash == NULL || step > 32 || step == 0 ||
        RANGEPISZERO(lat_range) || RANGEPISZERO(long_range)) return 0;

    /* Return an error when trying to index outside the supported
     * constraints. */
    if (longitude > 180 || longitude < -180 ||
        latitude > 85.05112878 || latitude < -85.05112878) return 0;

    hash->bits = 0;
    hash->step = step;

    if (latitude < lat_range->min || latitude > lat_range->max ||
        longitude < long_range->min || longitude > long_range->max) {
        return 0;
    }

    double lat_offset =
        (latitude - lat_range->min) / (lat_range->max - lat_range->min);
    double long_offset =
        (longitude - long_range->min) / (long_range->max - long_range->min);

    /* convert to fixed point based on the step size */
    lat_offset *= (1 << step);
    long_offset *= (1 << step);
    hash->bits = interleave64(lat_offset, long_offset);
    return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
xorl %ebx, %ebx
testq %rsi, %rsi
je 0x9d7b0
movq %rcx, %r14
testq %rcx, %rcx
je 0x9d7b0
leal -0x21(%rdx), %eax
cmpb $-0x20, %al
jb 0x9d7b0
movsd 0x8(%rsi), %xmm2
xorpd %xmm3, %xmm3
ucomisd %xmm3, %xmm2
jne 0x9d6c4
jnp 0x9d6ce
testq %rdi, %rdi
jne 0x9d6eb
jmp 0x9d7b0
testq %rdi, %rdi
je 0x9d7b0
movsd (%rsi), %xmm3
xorpd %xmm4, %xmm4
ucomisd %xmm4, %xmm3
jne 0x9d6eb
jnp 0x9d7b0
movsd 0x8(%rdi), %xmm3
xorpd %xmm4, %xmm4
ucomisd %xmm4, %xmm3
jne 0x9d70c
jp 0x9d70c
movsd (%rdi), %xmm5
ucomisd %xmm4, %xmm5
jne 0x9d70c
jnp 0x9d7b0
movsd 0x34f6c(%rip), %xmm4    # 0xd2680
ucomisd %xmm1, %xmm4
ja 0x9d7b0
movapd 0x31e8a(%rip), %xmm4    # 0xcf5b0
andpd %xmm0, %xmm4
ucomisd 0x31e3e(%rip), %xmm4    # 0xcf570
ja 0x9d7b0
ucomisd 0x31e3c(%rip), %xmm1    # 0xcf578
ja 0x9d7b0
movq $0x0, (%r14)
movb %dl, 0x8(%r14)
ucomisd %xmm2, %xmm1
ja 0x9d7b0
movsd (%rsi), %xmm4
ucomisd %xmm1, %xmm4
ja 0x9d7b0
ucomisd %xmm3, %xmm0
ja 0x9d7b0
movsd (%rdi), %xmm5
ucomisd %xmm0, %xmm5
ja 0x9d7b0
subsd %xmm4, %xmm1
subsd %xmm4, %xmm2
divsd %xmm2, %xmm1
subsd %xmm5, %xmm0
subsd %xmm5, %xmm3
divsd %xmm3, %xmm0
movl $0x1, %ebx
movl $0x1, %eax
movl %edx, %ecx
shll %cl, %eax
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
mulsd %xmm2, %xmm1
mulsd %xmm2, %xmm0
cvttsd2si %xmm1, %rdi
cvttsd2si %xmm0, %rsi
callq 0x9d7ba
movq %rax, (%r14)
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/deps/geohash-int/geohash.c
// Function: interleave64
static inline uint64_t interleave64(uint32_t xlo, uint32_t ylo) {
    static const uint64_t B[] = {0x5555555555555555ULL, 0x3333333333333333ULL,
                                 0x0F0F0F0F0F0F0F0FULL, 0x00FF00FF00FF00FFULL,
                                 0x0000FFFF0000FFFFULL};
    static const unsigned int S[] = {1, 2, 4, 8, 16};

    uint64_t x = xlo;
    uint64_t y = ylo;

    x = (x | (x << S[4])) & B[4];
    y = (y | (y << S[4])) & B[4];

    x = (x | (x << S[3])) & B[3];
    y = (y | (y << S[3])) & B[3];

    x = (x | (x << S[2])) & B[2];
    y = (y | (y << S[2])) & B[2];

    x = (x | (x << S[1])) & B[1];
    y = (y | (y << S[1])) & B[1];

    x = (x | (x << S[0])) & B[0];
    y = (y | (y << S[0])) & B[0];

    return x | (y << 1);
}

// Assembly:
movd %edi, %xmm0
movd %esi, %xmm1
punpcklqdq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0]
movdqa %xmm1, %xmm0
psllq $0x10, %xmm0
por %xmm1, %xmm0
pand 0x34e55(%rip), %xmm0    # 0xd2630
movdqa %xmm0, %xmm1
psllq $0x8, %xmm1
por %xmm0, %xmm1
pand 0x34e50(%rip), %xmm1    # 0xd2640
movdqa %xmm1, %xmm0
psllq $0x4, %xmm0
por %xmm1, %xmm0
pand 0x2e58b(%rip), %xmm0    # 0xcbd90
movdqa %xmm0, %xmm1
psllq $0x2, %xmm1
por %xmm0, %xmm1
pand 0x2e566(%rip), %xmm1    # 0xcbd80
movdqa %xmm1, %xmm0
movq %xmm1, %rax
addq %rax, %rax
movq %rax, %xmm2
shufpd $0x2, %xmm1, %xmm2      # xmm2 = xmm2[0],xmm1[1]
psllq $0x2, %xmm1
paddq %xmm0, %xmm0
movsd %xmm1, %xmm0            # xmm0 = xmm1[0],xmm0[1]
orpd %xmm0, %xmm2
andpd 0x34e07(%rip), %xmm2    # 0xd2650
pshufd $0xee, %xmm2, %xmm0     # xmm0 = xmm2[2,3,2,3]
por %xmm2, %xmm0
movq %xmm0, %rax
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/deps/geohash-int/geohash.c
// Function: geohashDecodeToLongLatType
int geohashDecodeToLongLatType(const GeoHashBits hash, double *xy) {
    GeoHashArea area = { { 0 } };
    if (!xy || !geohashDecodeType(hash, &area))
        return 0;
    return geohashDecodeAreaToLongLat(&area, xy);
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x38, %rsp
xorpd %xmm0, %xmm0
movapd %xmm0, 0x20(%rsp)
movapd %xmm0, 0x10(%rsp)
movapd %xmm0, (%rsp)
xorl %ebp, %ebp
testq %rdx, %rdx
je 0x9db8d
movq %rdx, %rbx
movzbl %sil, %esi
movsd 0x34b46(%rip), %xmm0    # 0xd2688
movsd 0x31a26(%rip), %xmm1    # 0xcf570
movsd 0x34b2e(%rip), %xmm2    # 0xd2680
movsd 0x31a1e(%rip), %xmm3    # 0xcf578
movq %rsp, %rdx
callq 0x9d8b8
testl %eax, %eax
je 0x9db8d
movapd 0x10(%rsp), %xmm0
movupd 0x18(%rsp), %xmm1
movhpd 0x28(%rsp), %xmm0       # xmm0 = xmm0[0],mem[0]
addpd %xmm1, %xmm0
mulpd 0x34aec(%rip), %xmm0    # 0xd2670
movupd %xmm0, (%rbx)
movl $0x1, %ebp
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/deps/geohash-int/geohash_helper.c
// Function: geohashEstimateStepsByRadius
uint8_t geohashEstimateStepsByRadius(double range_meters, double lat) {
    if (range_meters == 0) return 26;
    int step = 1;
    while (range_meters < MERCATOR_MAX) {
        range_meters *= 2;
        step++;
    }
    step -= 2; /* Make sure range is included in most of the base cases. */

    /* Wider range torwards the poles... Note: it is possible to do better
     * than this approximation by computing the distance between meridians
     * at this latitude, but this does the trick for now. */
    if (lat > 66 || lat < -66) {
        step--;
        if (lat > 80 || lat < -80) step--;
    }

    /* Frame to valid range. */
    if (step < 1) step = 1;
    if (step > 26) step = 26;
    return step;
}

// Assembly:
movb $0x1a, %al
xorpd %xmm2, %xmm2
ucomisd %xmm2, %xmm0
jne 0x9dda7
jp 0x9dda7
retq
movl $0x1, %eax
movsd 0x348dc(%rip), %xmm2    # 0xd2690
ucomisd %xmm0, %xmm2
jbe 0x9ddc2
addsd %xmm0, %xmm0
incl %eax
jmp 0x9ddb4
andpd 0x317e6(%rip), %xmm1    # 0xcf5b0
ucomisd 0x348c6(%rip), %xmm1    # 0xd2698
jbe 0x9dde3
ucomisd 0x348c4(%rip), %xmm1    # 0xd26a0
jbe 0x9dde8
addl $-0x4, %eax
jmp 0x9ddeb
addl $-0x2, %eax
jmp 0x9ddeb
addl $-0x3, %eax
cmpl $0x2, %eax
movl $0x1, %ecx
cmovgel %eax, %ecx
cmpl $0x1a, %ecx
movl $0x1a, %eax
cmovll %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/deps/geohash-int/geohash_helper.c
// Function: geohashBoundingBox
int geohashBoundingBox(double longitude, double latitude, double radius_meters,
                       double *bounds) {
    if (!bounds) return 0;

    bounds[0] = longitude - rad_deg(radius_meters/EARTH_RADIUS_IN_METERS/cos(deg_rad(latitude)));
    bounds[2] = longitude + rad_deg(radius_meters/EARTH_RADIUS_IN_METERS/cos(deg_rad(latitude)));
    bounds[1] = latitude - rad_deg(radius_meters/EARTH_RADIUS_IN_METERS);
    bounds[3] = latitude + rad_deg(radius_meters/EARTH_RADIUS_IN_METERS);
    return 1;
}

// Assembly:
testq %rdi, %rdi
je 0x9dec6
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movapd %xmm1, %xmm3
mulsd 0x334d9(%rip), %xmm3    # 0xd12f8
movapd %xmm3, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movapd %xmm3, %xmm0
movaps %xmm2, (%rsp)
movapd %xmm1, 0x30(%rsp)
callq 0x263d0
movapd (%rsp), %xmm1
divsd 0x3485e(%rip), %xmm1    # 0xd26a8
movapd %xmm1, (%rsp)
divsd %xmm0, %xmm1
divsd 0x3349d(%rip), %xmm1    # 0xd12f8
movapd 0x10(%rsp), %xmm0
subsd %xmm1, %xmm0
movsd %xmm0, (%rbx)
movapd 0x20(%rsp), %xmm0
callq 0x263d0
movapd (%rsp), %xmm2
movapd %xmm2, %xmm1
divsd %xmm0, %xmm1
unpcklpd %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0]
divpd 0x34833(%rip), %xmm2    # 0xd26c0
movapd 0x30(%rsp), %xmm3
movapd %xmm3, %xmm0
unpcklpd 0x10(%rsp), %xmm0       # xmm0 = xmm0[0],mem[0]
movapd %xmm3, %xmm1
subpd %xmm2, %xmm1
addpd %xmm2, %xmm0
movsd %xmm1, %xmm0            # xmm0 = xmm1[0],xmm0[1]
movupd %xmm0, 0x8(%rbx)
addsd %xmm3, %xmm2
movsd %xmm2, 0x18(%rbx)
movl $0x1, %eax
addq $0x40, %rsp
popq %rbx
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/deps/geohash-int/geohash_helper.c
// Function: geohashGetDistance
double geohashGetDistance(double lon1d, double lat1d, double lon2d, double lat2d) {
    double lat1r, lon1r, lat2r, lon2r, u, v;
    lat1r = deg_rad(lat1d);
    lon1r = deg_rad(lon1d);
    lat2r = deg_rad(lat2d);
    lon2r = deg_rad(lon2d);
    u = sin((lat2r - lat1r) / 2);
    v = sin((lon2r - lon1r) / 2);
    return 2.0 * EARTH_RADIUS_IN_METERS *
           asin(sqrt(u * u + cos(lat1r) * cos(lat2r) * v * v));
}

// Assembly:
subq $0x28, %rsp
movsd 0x32f7a(%rip), %xmm4    # 0xd12f8
mulsd %xmm4, %xmm1
movsd %xmm1, 0x10(%rsp)
mulsd %xmm4, %xmm0
mulsd %xmm4, %xmm3
movsd %xmm3, 0x18(%rsp)
mulsd %xmm2, %xmm4
subsd %xmm0, %xmm4
movsd %xmm4, 0x8(%rsp)
movapd %xmm3, %xmm0
subsd %xmm1, %xmm0
mulsd 0x341e4(%rip), %xmm0    # 0xd2598
callq 0x26c90
movsd %xmm0, 0x20(%rsp)
movsd 0x8(%rsp), %xmm0
mulsd 0x341cb(%rip), %xmm0    # 0xd2598
callq 0x26c90
movsd %xmm0, 0x8(%rsp)
movsd 0x10(%rsp), %xmm0
callq 0x263d0
movsd %xmm0, 0x10(%rsp)
movsd 0x18(%rsp), %xmm0
callq 0x263d0
mulsd 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
mulsd %xmm1, %xmm0
mulsd %xmm1, %xmm0
movsd 0x20(%rsp), %xmm1
mulsd %xmm1, %xmm1
addsd %xmm0, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
movapd %xmm1, %xmm0
jb 0x9e42a
sqrtsd %xmm0, %xmm0
jmp 0x9e42f
callq 0x26c10
callq 0x265a0
mulsd 0x34274(%rip), %xmm0    # 0xd26b0
addq $0x28, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/bind.c
// Function: bind_reset
void bind_reset(void) {
	// unbind _all_ controls
	while (controls) {
		struct bind *b = controls->data;
		controls = list_delete(controls, b);
		free(b);
	}

	// then rebind what's configured
	for (int i = 0; i < NUM_CONTROL_BUILTINS; i++) {
		bind_control(control_builtins[i].ctl, control_builtins[i].func);
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0xaca9(%rip), %rbx      # 0xf700
testq %rbx, %rbx
je 0x4a7f
movq 0x8(%rbx), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x867f
movq %rax, %rbx
movq %rax, 0xac8b(%rip)      # 0xf700
movq %r14, %rdi
callq 0x42d0
jmp 0x4a57
movl $0x8, %ebx
leaq 0x9e85(%rip), %r14      # 0xe910
movq -0x8(%rbx,%r14), %rdi
movq (%rbx,%r14), %rsi
callq 0x4aae
addq $0x10, %rbx
cmpq $0x268, %rbx            # imm = 0x268
jne 0x4a8b
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/bind.c
// Function: bind_modifier
void bind_modifier(const char *modname, const char *modstr) {
	if (!modstr)
		return;
	struct name_to_modifier *destm = modifier_by_name(modname);
	if (!destm)
		return;
	destm->value = 0;

	// parse modstr
	char *moddup = xstrdup(modstr);
	for (char *tmp = strtok(moddup, ",+"); tmp; tmp = strtok(NULL, ",+")) {
		// is this a modifier?
		struct name_to_modifier *m = modifier_by_name(tmp);
		if (m) {
			destm->value |= m->value;
			continue;
		}
	}
	free(moddup);
	if (!strcmp(modname, "altmask"))
		altmask = destm->value;
}

// Assembly:
testq %rsi, %rsi
je 0x4e73
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl $0x8, %r13d
leaq 0xa639(%rip), %rbp      # 0xf3e0
movq -0x8(%r13,%rbp), %rdi
movq %rbx, %rsi
callq 0x4540
testl %eax, %eax
je 0x4dca
addq $0x10, %r13
cmpq $0xc8, %r13
jne 0x4da7
jmp 0x4e65
movl $0x0, (%r13,%rbp)
movq %r14, %rdi
callq 0x9f30
leaq 0x5282(%rip), %rsi      # 0xa064
movq %rax, (%rsp)
movq %rax, %rdi
callq 0x4580
testq %rax, %rax
je 0x4e3e
movq %rax, %r12
leaq 0x5267(%rip), %r15      # 0xa064
movl $0x8, %r14d
movq -0x8(%r14,%rbp), %rdi
movq %r12, %rsi
callq 0x4540
testl %eax, %eax
je 0x4e23
addq $0x10, %r14
cmpq $0xc8, %r14
jne 0x4e03
jmp 0x4e2c
movl (%r14,%rbp), %eax
orl %eax, (%r13,%rbp)
xorl %edi, %edi
movq %r15, %rsi
callq 0x4580
movq %rax, %r12
testq %rax, %rax
jne 0x4dfd
movq (%rsp), %rdi
callq 0x42d0
leaq 0x51de(%rip), %rsi      # 0xa02c
movq %rbx, %rdi
callq 0x4540
testl %eax, %eax
jne 0x4e65
movl (%r13,%rbp), %eax
movl %eax, 0xa5a3(%rip)      # 0xf408
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/bind.c
// Function: bind_grab_for_screen
void bind_grab_for_screen(struct screen *s) {
	// Release any previous grabs
	XUngrabKey(display.dpy, AnyKey, AnyModifier, s->root);

	for (struct list *l = controls; l; l = l->next) {
		struct bind *b = l->data;
		if (b->type == KeyPress) {
			grab_keysym(b->control.key, b->state, s->root);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rax
leaq 0xa89c(%rip), %r12      # 0xf728
movq (%r12), %rdi
movq %rax, 0x10(%rsp)
movq 0x10(%rax), %rcx
xorl %esi, %esi
movl $0x8000, %edx           # imm = 0x8000
callq 0x4240
movq 0xa854(%rip), %r13      # 0xf700
testq %r13, %r13
je 0x4f8d
movl $0x1, %ebx
movq 0x8(%r13), %rax
cmpl $0x2, (%rax)
jne 0x4f80
movq 0x8(%rax), %rsi
movl 0x10(%rax), %ebp
movq 0x10(%rsp), %rax
movq 0x10(%rax), %r14
movq (%r12), %rdi
callq 0x4610
movq (%r12), %rdi
movzbl %al, %r15d
movl %ebx, (%rsp)
movl %r15d, %esi
movl %ebp, %edx
movq %r14, %rcx
movl $0x1, %r8d
movl $0x1, %r9d
callq 0x4660
movq (%r12), %rdi
movl %ebp, %edx
orl $0x2, %edx
movl %ebx, (%rsp)
movl %r15d, %esi
movq %r14, %rcx
movl $0x1, %r8d
movl $0x1, %r9d
callq 0x4660
leaq 0xa9aa(%rip), %rax      # 0xf8d8
movl (%rax), %edx
testl %edx, %edx
je 0x4f80
movq (%r12), %rdi
orl %ebp, %edx
movl %ebx, (%rsp)
movl %r15d, %esi
movq %r14, %rcx
movl $0x1, %r8d
movl $0x1, %r9d
callq 0x4660
movq (%r12), %rdi
leaq 0xa979(%rip), %rax      # 0xf8d8
orl (%rax), %ebp
orl $0x2, %ebp
movl %ebx, (%rsp)
movl %r15d, %esi
movl %ebp, %edx
movq %r14, %rcx
movl $0x1, %r8d
movl $0x1, %r9d
callq 0x4660
movq (%r13), %r13
testq %r13, %r13
jne 0x4eba
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/bind.c
// Function: bind_grab_for_client
void bind_grab_for_client(struct client *c) {
	// Button binds way less configurable than key binds for now.
	// Modifiers in the bind are ignored, and we ONLY use 'mask2' and
	// 'mask2+altmask'.

	for (struct list *l = controls; l; l = l->next) {
		struct bind *b = l->data;
		if (b->type == ButtonPress) {
			grab_button(b->control.button, grabmask2, c->parent);
			grab_button(b->control.button, grabmask2|altmask, c->parent);
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0xa758(%rip), %r14      # 0xf700
testq %r14, %r14
je 0x4fee
movq %rdi, %rbx
movq 0x8(%r14), %r15
cmpl $0x4, (%r15)
jne 0x4fe6
movl 0x8(%r15), %edi
movl 0xa434(%rip), %esi      # 0xf3f8
movq 0x8(%rbx), %rdx
callq 0x4ff4
movl 0x8(%r15), %edi
movl 0xa431(%rip), %esi      # 0xf408
orl 0xa41b(%rip), %esi      # 0xf3f8
movq 0x8(%rbx), %rdx
callq 0x4ff4
movq (%r14), %r14
testq %r14, %r14
jne 0x4fb0
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/bind.c
// Function: grab_button
static void grab_button(unsigned button, unsigned modifiers, Window w) {
	XGrabButton(display.dpy, button, modifiers, w,
		    False, ButtonPressMask | ButtonReleaseMask,
		    GrabModeAsync, GrabModeSync, None, None);
	XGrabButton(display.dpy, button, modifiers|LockMask, w,
		    False, ButtonPressMask | ButtonReleaseMask,
		    GrabModeAsync, GrabModeSync, None, None);
	if (numlockmask) {
		XGrabButton(display.dpy, button, modifiers|numlockmask, w,
			    False, ButtonPressMask | ButtonReleaseMask,
			    GrabModeAsync, GrabModeSync, None, None);
		XGrabButton(display.dpy, button, modifiers|numlockmask|LockMask, w,
			    False, ButtonPressMask | ButtonReleaseMask,
			    GrabModeAsync, GrabModeSync, None, None);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movl %esi, %ebp
movl %edi, %r14d
leaq 0xa717(%rip), %r13      # 0xf728
movq (%r13), %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
xorl %r15d, %r15d
movl %r15d, 0x8(%rsp)
movl $0x1, %r12d
movl %r12d, (%rsp)
movl %r14d, %esi
movl %ebp, %edx
movq %rbx, %rcx
xorl %r8d, %r8d
movl $0xc, %r9d
callq 0x4620
movq (%r13), %rdi
movl %ebp, %edx
orl $0x2, %edx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
movl %r15d, 0x8(%rsp)
movl %r12d, (%rsp)
movl %r14d, %esi
movq %rbx, %rcx
xorl %r8d, %r8d
movl $0xc, %r9d
callq 0x4620
leaq 0xa85e(%rip), %r15      # 0xf8d8
movl (%r15), %edx
testl %edx, %edx
je 0x50df
movq (%r13), %rdi
orl %ebp, %edx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
xorl %eax, %eax
movl %eax, 0x8(%rsp)
movl %r12d, (%rsp)
movl %r14d, %esi
movq %rbx, %rcx
xorl %r8d, %r8d
movl $0xc, %r9d
callq 0x4620
movq (%r13), %rdi
orl (%r15), %ebp
orl $0x2, %ebp
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rsp)
xorl %eax, %eax
movl %eax, 0x8(%rsp)
movl %r12d, (%rsp)
movl %r14d, %esi
movl %ebp, %edx
movq %rbx, %rcx
xorl %r8d, %r8d
movl $0xc, %r9d
callq 0x4620
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/bind.c
// Function: bind_handle_key
void bind_handle_key(XKeyEvent *e) {
	KeySym key = XkbKeycodeToKeysym(display.dpy, e->keycode, 0, 0);

	for (struct list *l = controls; l; l = l->next) {
		struct bind *bind = l->data;
		if (bind->type == KeyPress && key == bind->control.key && (e->state & KEY_STATE_MASK & ~numlockmask) == (bind->state & ~numlockmask)) {
			void *sptr = NULL;
			if (bind->flags & FL_CLIENT) {
				sptr = current;
				if (!sptr)
					return;
			} else if (bind->flags & FL_SCREEN) {
				sptr = find_current_screen();
				if (!sptr)
					return;
			}
			bind->func(sptr, (XEvent *)e, bind->flags);
			break;
		}
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xa62c(%rip), %rax      # 0xf728
movq (%rax), %rdi
movzbl 0x54(%rbx), %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x4260
movq 0xa5ed(%rip), %rcx      # 0xf700
testq %rcx, %rcx
je 0x514d
leaq 0xa7b9(%rip), %rdx      # 0xf8d8
movl (%rdx), %edx
notl %edx
movl $0xfd, %esi
movq 0x8(%rcx), %r14
cmpl $0x2, (%r14)
jne 0x5145
cmpq 0x8(%r14), %rax
jne 0x5145
movl 0x50(%rbx), %edi
andl %esi, %edi
xorl 0x10(%r14), %edi
testl %edx, %edi
je 0x5155
movq (%rcx), %rcx
testq %rcx, %rcx
jne 0x5128
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl 0x20(%r14), %edx
btl $0x10, %edx
jb 0x5168
testw %dx, %dx
js 0x5179
xorl %edi, %edi
jmp 0x518a
leaq 0xa5b1(%rip), %rax      # 0xf720
movq (%rax), %rdi
testq %rdi, %rdi
jne 0x518a
jmp 0x514d
callq 0x95cb
testq %rax, %rax
je 0x514d
movq %rax, %rdi
movl 0x20(%r14), %edx
movq 0x18(%r14), %rax
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rax
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/bind.c
// Function: bind_handle_button
void bind_handle_button(XButtonEvent *e) {
	for (struct list *l = controls; l; l = l->next) {
		struct bind *bind = l->data;
		if (bind->type == ButtonPress && e->button == bind->control.button && (e->state & BUTTON_STATE_MASK & ~numlockmask) == (bind->state & ~numlockmask)) {
			void *sptr = NULL;
			if (bind->flags & FL_CLIENT) {
				sptr = find_client(e->window);
			} else if (bind->flags & FL_SCREEN) {
				sptr = find_current_screen();
			}
			if (!sptr)
				return;
			bind->func(sptr, (XEvent *)e, bind->flags);
			break;
		}
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0xa55b(%rip), %rax      # 0xf700
testq %rax, %rax
je 0x51ee
movq %rdi, %rbx
movl 0xa245(%rip), %ecx      # 0xf3f8
notl %ecx
andl $0xfd, %ecx
leaq 0xa716(%rip), %rdx      # 0xf8d8
movl (%rdx), %edx
notl %edx
movq 0x8(%rax), %r14
cmpl $0x4, (%r14)
jne 0x51e6
movl 0x54(%rbx), %esi
cmpl 0x8(%r14), %esi
jne 0x51e6
movl 0x50(%rbx), %esi
andl %ecx, %esi
xorl 0x10(%r14), %esi
testl %edx, %esi
je 0x51f6
movq (%rax), %rax
testq %rax, %rax
jne 0x51c6
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movl 0x20(%r14), %eax
btl $0x10, %eax
jb 0x520c
testw %ax, %ax
jns 0x51ee
callq 0x95cb
jmp 0x5215
movq 0x20(%rbx), %rdi
callq 0x534f
testq %rax, %rax
je 0x51ee
movq 0x18(%r14), %rcx
movl 0x20(%r14), %edx
movq %rax, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rcx
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/client.c
// Function: get_wm_normal_hints
long get_wm_normal_hints(struct client *c) {
	long flags;
	long dummy;
	XSizeHints *size = XAllocSizeHints();

	LOG_XENTER("XGetWMNormalHints(window=%lx)", (unsigned long)c->window);
	XGetWMNormalHints(display.dpy, c->window, size, &dummy);
	debug_wm_normal_hints(size);
	LOG_XLEAVE();

	flags = size->flags;

	if (flags & PMinSize) {
		c->min_width = size->min_width;
		c->min_height = size->min_height;
	} else {
		c->min_width = c->min_height = 0;
	}

	if (flags & PMaxSize) {
		c->max_width = size->max_width;
		c->max_height = size->max_height;
	} else {
		c->max_width = c->max_height = 0;
	}

	if (flags & PBaseSize) {
		c->base_width = size->base_width;
		c->base_height = size->base_height;
	} else {
		c->base_width = c->min_width;
		c->base_height = c->min_height;
	}

	c->width_inc = c->height_inc = 1;
	if (flags & PResizeInc) {
		c->width_inc = size->width_inc ? size->width_inc : 1;
		c->height_inc = size->height_inc ? size->height_inc : 1;
	}

	if (!(flags & PMinSize)) {
		c->min_width = c->base_width + c->width_inc;
		c->min_height = c->base_height + c->height_inc;
	}

	if (flags & PWinGravity) {
		c->win_gravity_hint = size->win_gravity;
	} else {
		c->win_gravity_hint = NorthWestGravity;
	}
	c->win_gravity = c->win_gravity_hint;

	XFree(size);
	return flags;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x4650
movq %rax, %r14
leaq 0xa4d9(%rip), %rax      # 0xf728
movq (%rax), %rdi
movq (%rbx), %rsi
leaq 0x8(%rsp), %rcx
movq %r14, %rdx
callq 0x4120
movq (%r14), %r15
xorl %eax, %eax
movl $0x0, %ecx
testb $0x10, %r15b
je 0x527a
movl 0x18(%r14), %ecx
movl 0x1c(%r14), %eax
movl %eax, 0x70(%rbx)
movl %ecx, 0x6c(%rbx)
xorps %xmm0, %xmm0
testb $0x20, %r15b
je 0x528f
movsd 0x20(%r14), %xmm0
movlps %xmm0, 0x74(%rbx)
btl $0x8, %r15d
jae 0x52a2
movl 0x40(%r14), %ecx
movl 0x44(%r14), %eax
movl %ecx, 0x84(%rbx)
movl %eax, 0x88(%rbx)
movabsq $0x100000001, %rdx      # imm = 0x100000001
movq %rdx, 0x7c(%rbx)
movl $0x1, %edx
movl $0x1, %esi
testb $0x40, %r15b
je 0x52e9
movl 0x28(%r14), %esi
cmpl $0x1, %esi
adcl $0x0, %esi
movl %esi, 0x7c(%rbx)
movl 0x2c(%r14), %edx
cmpl $0x1, %edx
adcl $0x0, %edx
movl %edx, 0x80(%rbx)
testb $0x10, %r15b
jne 0x52f9
addl %ecx, %esi
movl %esi, 0x6c(%rbx)
addl %eax, %edx
movl %edx, 0x70(%rbx)
movl $0x1, %eax
btl $0x9, %r15d
jae 0x5309
movl 0x48(%r14), %eax
movl %eax, 0x8c(%rbx)
movl %eax, 0x90(%rbx)
movq %r14, %rdi
callq 0x4050
movq %r15, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/client.c
// Function: find_client
struct client *find_client(Window w) {
	for (struct list *iter = clients_tab_order; iter; iter = iter->next) {
		struct client *c = iter->data;
		if (w == c->parent || w == c->window)
			return c;
	}
	return NULL;
}

// Assembly:
leaq 0xa3b2(%rip), %rcx      # 0xf708
movq (%rcx), %rcx
testq %rcx, %rcx
je 0x536e
movq 0x8(%rcx), %rax
cmpq %rdi, 0x8(%rax)
je 0x536d
cmpq %rdi, (%rax)
jne 0x5356
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/client.c
// Function: client_raise
void client_raise(struct client *c) {
	LOG_XDEBUG("XRaiseWindow(window=%lx,parent=%lx)\n", (unsigned long)c->window, (unsigned long)c->parent);
	XRaiseWindow(display.dpy, c->parent);
	clients_stacking_order = list_to_tail(clients_stacking_order, c);
	ewmh_set_net_client_list_stacking(c->screen);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0xa10c(%rip), %rax      # 0xf728
movq (%rax), %rdi
movq 0x8(%rbx), %rsi
callq 0x4180
movq 0xa0e9(%rip), %rdi      # 0xf718
movq %rbx, %rsi
callq 0x8711
movq %rax, 0xa0da(%rip)      # 0xf718
movq 0x10(%rbx), %rdi
popq %rbx
jmp 0x7dd2
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/client.c
// Function: client_lower
void client_lower(struct client *c) {
	LOG_XDEBUG("XLowerWindow(window=%lx,parent=%lx)\n", (unsigned long)c->window, (unsigned long)c->parent);
	XLowerWindow(display.dpy, c->parent);
	clients_stacking_order = list_to_head(clients_stacking_order, c);
	ewmh_set_net_client_list_stacking(c->screen);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0xa0d5(%rip), %rax      # 0xf728
movq (%rax), %rdi
movq 0x8(%rbx), %rsi
callq 0x43f0
movq 0xa0b2(%rip), %rdi      # 0xf718
movq %rbx, %rsi
callq 0x86c8
movq %rax, 0xa0a3(%rip)      # 0xf718
movq 0x10(%rbx), %rdi
popq %rbx
jmp 0x7dd2
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/client.c
// Function: client_gravitate
void client_gravitate(struct client *c, int bw) {
	int dx = 0, dy = 0;
	switch (c->win_gravity) {
	default:
	case NorthWestGravity:
		dx = bw;
		dy = bw;
		break;
	case NorthGravity:
		dy = bw;
		break;
	case NorthEastGravity:
		dx = -bw;
		dy = bw;
		break;
	case EastGravity:
		dx = -bw;
		break;
	case CenterGravity:
		break;
	case WestGravity:
		dx = bw;
		break;
	case SouthWestGravity:
		dx = bw;
		dy = -bw;
		break;
	case SouthGravity:
		dy = -bw;
		break;
	case SouthEastGravity:
		dx = -bw;
		dy = -bw;
		break;
	}
	// Don't gravitate if client would be maximised along either axis
	// (unless it's offset already).
	if (c->x != 0 || c->width != DisplayWidth(display.dpy, c->screen->screen)) {
		c->x += dx;
	}
	if (c->y != 0 || c->height != DisplayHeight(display.dpy, c->screen->screen)) {
		c->y += dy;
	}
}

// Assembly:
movl 0x90(%rdi), %ecx
addl $-0x2, %ecx
cmpl $0x7, %ecx
ja 0x570d
xorl %eax, %eax
leaq 0x4d1a(%rip), %rdx      # 0xa410
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
xorl %eax, %eax
jmp 0x571b
negl %esi
movl %esi, %eax
xorl %esi, %esi
jmp 0x571b
negl %esi
movl %esi, %eax
jmp 0x571b
movl %esi, %eax
negl %eax
jmp 0x571b
movl %esi, %eax
negl %esi
movl 0x28(%rdi), %ecx
testl %ecx, %ecx
jne 0x5748
movl 0x30(%rdi), %edx
leaq 0x9ffc(%rip), %r8       # 0xf728
movq (%r8), %r8
movq 0xe8(%r8), %r8
movq 0x10(%rdi), %r9
movslq (%r9), %r9
shlq $0x7, %r9
cmpl 0x18(%r8,%r9), %edx
je 0x574d
addl %eax, %ecx
movl %ecx, 0x28(%rdi)
movl 0x2c(%rdi), %eax
testl %eax, %eax
jne 0x577a
movl 0x34(%rdi), %ecx
leaq 0x9fca(%rip), %rdx      # 0xf728
movq (%rdx), %rdx
movq 0xe8(%rdx), %rdx
movq 0x10(%rdi), %r8
movslq (%r8), %r8
shlq $0x7, %r8
cmpl 0x1c(%rdx,%r8), %ecx
je 0x577f
addl %esi, %eax
movl %eax, 0x2c(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/client.c
// Function: select_client
void select_client(struct client *c) {
	struct client *old_current = current;
	if (current)
		XSetWindowBorder(display.dpy, current->parent, current->screen->bg.pixel);
	if (c) {
		unsigned long bpixel;
		if (is_fixed(c))
			bpixel = c->screen->fc.pixel;
		else
			bpixel = c->screen->fg.pixel;
		XSetWindowBorder(display.dpy, c->parent, bpixel);
		XInstallColormap(display.dpy, c->cmap);
		XSetInputFocus(display.dpy, c->window, RevertToPointerRoot, CurrentTime);
	}
	current = c;
	// Update _NET_WM_STATE_FOCUSED for old current and _NET_ACTIVE_WINDOW
	// on its screen root.
	if (old_current)
		ewmh_set_net_wm_state(old_current);
	// Now do same for new current.
	if (c)
		ewmh_set_net_wm_state(c);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x9f91(%rip), %r14      # 0xf720
testq %r14, %r14
je 0x57af
leaq 0x9f8d(%rip), %rax      # 0xf728
movq (%rax), %rdi
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rax
movq 0x40(%rax), %rdx
callq 0x4310
testq %rbx, %rbx
je 0x57fa
xorl %eax, %eax
cmpl $-0x1, 0x20(%rbx)
sete %al
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rcx
shll $0x5, %eax
movq 0x30(%rax,%rcx), %rdx
leaq 0x9f54(%rip), %r15      # 0xf728
movq (%r15), %rdi
callq 0x4310
movq (%r15), %rdi
movq 0x18(%rbx), %rsi
callq 0x4590
movq (%r15), %rdi
movq (%rbx), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x44c0
movq %rbx, 0x9f1f(%rip)      # 0xf720
testq %r14, %r14
je 0x580e
movq %r14, %rdi
callq 0x7f2c
testq %rbx, %rbx
je 0x5820
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x7f2c
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/client.c
// Function: client_to_vdesk
void client_to_vdesk(struct client *c, unsigned vdesk) {
	if (valid_vdesk(vdesk)) {
		c->vdesk = vdesk;
		if (c->vdesk == c->screen->vdesk || c->vdesk == VDESK_FIXED) {
			client_show(c);
		} else {
			client_hide(c);
		}
		ewmh_set_net_wm_desktop(c);
		select_client(current);
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $-0x1, %esi
je 0x583d
leaq 0xa0ba(%rip), %rax      # 0xf8f0
cmpl %esi, 0x2c(%rax)
ja 0x583d
popq %rbx
retq
movl %esi, 0x20(%rbx)
cmpl $-0x1, %esi
je 0x5858
movq 0x10(%rbx), %rax
cmpl %esi, 0x60(%rax)
je 0x5858
movq %rbx, %rdi
callq 0x5524
jmp 0x5860
movq %rbx, %rdi
callq 0x55bc
movq %rbx, %rdi
callq 0x80f7
movq 0x9eb1(%rip), %rdi      # 0xf720
popq %rbx
jmp 0x5780
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/client.c
// Function: send_wm_delete
void send_wm_delete(struct client *c, int kill_client) {
	_Bool delete_supported = 0;
	int n;
	Atom *protocols;

	if (!kill_client && XGetWMProtocols(display.dpy, c->window, &protocols, &n)) {
		for (int i = 0; i < n; i++)
			if (protocols[i] == X_ATOM(WM_DELETE_WINDOW))
				delete_supported = 1;
		XFree(protocols);
	}
	if (delete_supported) {
		XEvent ev = {
			.xclient = {
				.type = ClientMessage,
				.window = c->window,
				.message_type = X_ATOM(WM_PROTOCOLS),
				.format = 32,
				.data.l = { X_ATOM(WM_DELETE_WINDOW), CurrentTime }
			}
		};
		XSendEvent(display.dpy, c->window, False, NoEventMask, &ev);
	} else {
		XKillClient(display.dpy, c->window);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xd0, %rsp
movq %rdi, %rbx
testl %esi, %esi
je 0x5a3c
leaq 0x9d04(%rip), %rax      # 0xf728
movq (%rax), %rdi
movq (%rbx), %rsi
callq 0x4770
addq $0xd0, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x9ce5(%rip), %r15      # 0xf728
movq (%r15), %rdi
movq (%rbx), %rsi
leaq 0x8(%rsp), %rdx
leaq 0x4(%rsp), %rcx
callq 0x46a0
testl %eax, %eax
je 0x5a1d
movslq 0x4(%rsp), %rax
movq 0x8(%rsp), %rdi
testq %rax, %rax
jle 0x5ae0
movq 0x18(%r15), %rcx
xorl %edx, %edx
xorl %r14d, %r14d
cmpq %rcx, (%rdi,%rdx,8)
sete %sil
orb %sil, %r14b
incq %rdx
cmpq %rdx, %rax
jne 0x5a74
callq 0x4050
testb $0x1, %r14b
je 0x5a1d
leaq 0x10(%rsp), %r14
movl $0xc0, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x4080
movl $0x21, (%r14)
movq (%rbx), %rsi
movq %rsi, 0x20(%r14)
movq (%r15), %rdi
movq 0x10(%r15), %rax
movq %rax, 0x28(%r14)
movl $0x20, 0x30(%r14)
movq 0x18(%r15), %rax
movq %rax, 0x38(%r14)
xorl %edx, %edx
xorl %ecx, %ecx
movq %r14, %r8
callq 0x4520
jmp 0x5a2f
callq 0x4050
jmp 0x5a1d
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/client.c
// Function: set_shape
void set_shape(struct client *c) {
	Bool bounding_shaped;
	Bool b;  // dummy
	int i;  // dummy
	unsigned u;  // dummy

	if (!display.have_shape) return;

	// Logic to decide if we have a shaped window cribbed from fvwm-2.5.10.
	// Previous method (more than one rectangle returned from
	// XShapeGetRectangles) worked _most_ of the time.

	if (XShapeQueryExtents(display.dpy, c->window, &bounding_shaped, &i, &i,
				&u, &u, &b, &i, &i, &u, &u) && bounding_shaped) {
		LOG_DEBUG("%d shape extents\n", bounding_shaped);
		XShapeCombineShape(display.dpy, c->parent, ShapeBounding, 0, 0,
				c->window, ShapeBounding, ShapeSet);
	}
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
leaq 0x9c30(%rip), %r14      # 0xf728
cmpl $0x0, 0x178(%r14)
je 0x5b5d
movq %rdi, %rbx
movq (%r14), %rdi
movq (%rbx), %rsi
leaq 0xc(%rsp), %r9
leaq 0x10(%rsp), %rcx
leaq 0x14(%rsp), %rax
leaq 0x8(%rsp), %rdx
movq %rcx, %r8
pushq %r9
pushq %r9
pushq %rcx
pushq %rcx
pushq %rax
pushq %r9
callq 0x43e0
addq $0x30, %rsp
testl %eax, %eax
je 0x5b5d
cmpl $0x0, 0x8(%rsp)
je 0x5b5d
movq (%r14), %rdi
movq (%rbx), %r9
movq 0x8(%rbx), %rsi
xorl %eax, %eax
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
pushq %rax
pushq %rax
callq 0x4710
addq $0x10, %rsp
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/client_move.c
// Function: client_show_info
void client_show_info(struct client *c, XEvent *e) {
	unsigned input;

	if (e->type == KeyPress) {
		input = e->xkey.keycode;
		if (XGrabKeyboard(display.dpy, c->screen->root, False, GrabModeAsync, GrabModeAsync, CurrentTime) != GrabSuccess)
			return;
	} else {
		input = e->xbutton.button;
		if (!grab_pointer(c->screen->root, None))
			return;
	}

#ifdef INFOBANNER
	create_info_window(c);
#else
	XGrabServer(display.dpy);
	draw_outline(c);
#endif

	for (;;) {
		XEvent ev;
		if (e->type == KeyPress) {
			XMaskEvent(display.dpy, KeyReleaseMask, &ev);
			if (ev.xkey.keycode != input)
				continue;
			if (XCheckIfEvent(display.dpy, &ev, predicate_keyrepeatpress, (XPointer)&ev)) {
				// Autorepeat keypress detected - ignore!
				continue;
			}
		} else {
			XMaskEvent(display.dpy, ButtonReleaseMask, &ev);
			if (ev.xbutton.button != input)
				continue;
		}
		break;
	}

#ifdef INFOBANNER
	remove_info_window();
#else
	draw_outline(c);
	XUngrabServer(display.dpy);
#endif

	if (e->type == KeyPress) {
		XUngrabKeyboard(display.dpy, CurrentTime);
	} else {
		XUngrabPointer(display.dpy, CurrentTime);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xe0, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl 0x54(%rsi), %ebp
cmpl $0x2, (%rsi)
leaq 0x9074(%rip), %r12      # 0xf728
movq (%r12), %rdi
movq 0x10(%r14), %rax
movq 0x10(%rax), %rsi
jne 0x66d9
xorl %edx, %edx
movl $0x1, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x45e0
jmp 0x6701
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
xorl %edx, %edx
movl $0x4c, %ecx
movl $0x1, %r8d
movl $0x1, %r9d
callq 0x4220
testl %eax, %eax
jne 0x677e
movq %r14, %rdi
callq 0x5b65
leaq 0x20(%rsp), %r14
leaq 0x75(%rip), %r15        # 0x678e
cmpl $0x2, (%rbx)
movq (%r12), %rdi
jne 0x674d
movl $0x2, %esi
movq %r14, %rdx
callq 0x4510
cmpl %ebp, 0x74(%rsp)
jne 0x6719
movq (%r12), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x4550
testl %eax, %eax
jne 0x6719
jmp 0x6760
movl $0x8, %esi
movq %r14, %rdx
callq 0x4510
cmpl %ebp, 0x74(%rsp)
jne 0x6719
callq 0x5de0
cmpl $0x2, (%rbx)
movq (%r12), %rdi
jne 0x6777
xorl %esi, %esi
callq 0x4450
jmp 0x677e
xorl %esi, %esi
callq 0x41b0
addq $0xe0, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/client_move.c
// Function: predicate_keyrepeatpress
static Bool predicate_keyrepeatpress(Display *dummy, XEvent *ev, XPointer arg) {
	(void)dummy;
	XEvent *release_event = (XEvent *)arg;
	if (ev->type != KeyPress)
		return False;
	if (release_event->xkey.keycode != ev->xkey.keycode)
		return False;
	return release_event->xkey.time == ev->xkey.time;
}

// Assembly:
xorl %eax, %eax
cmpl $0x2, (%rsi)
jne 0x67aa
movl 0x54(%rdx), %ecx
cmpl 0x54(%rsi), %ecx
jne 0x67aa
movq 0x38(%rdx), %rcx
xorl %eax, %eax
cmpq 0x38(%rsi), %rcx
sete %al
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/client_move.c
// Function: client_moveresize
void client_moveresize(struct client *c) {
	XMoveResizeWindow(display.dpy, c->parent, c->x - c->border, c->y - c->border,
			c->width, c->height);
	XMoveResizeWindow(display.dpy, c->window, 0, 0, c->width, c->height);
	send_config(c);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8f6f(%rip), %r14      # 0xf728
movq (%r14), %rdi
movq 0x8(%rbx), %rsi
movl 0x28(%rbx), %edx
movl 0x3c(%rbx), %eax
subl %eax, %edx
movl 0x2c(%rbx), %ecx
subl %eax, %ecx
movl 0x30(%rbx), %r8d
movl 0x34(%rbx), %r9d
callq 0x43b0
movq (%r14), %rdi
movq (%rbx), %rsi
movl 0x30(%rbx), %r8d
movl 0x34(%rbx), %r9d
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x43b0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x567f
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/client_move.c
// Function: client_select_next
void client_select_next(void) {
	struct list *newl = list_find(clients_tab_order, current);
	struct client *newc;

	do {
		if (newl) {
			newl = newl->next;
			if (!newl && !current)
				return;
		}
		if (!newl)
			newl = clients_tab_order;
		if (!newl)
			return;
		newc = newl->data;
		if (newc == current)
			return;
	} while ((!is_fixed(newc) && (newc->vdesk != newc->screen->vdesk))
		 || (newc->is_dock && !newc->screen->docks_visible));

	if (!newc)
		return;

	client_show(newc);  // XXX why would it be hidden?
	client_raise(newc);
	select_client(newc);

	// Optionally force the pointer to jump to the newly-selected window.
	// I think this was the default behaviour in much earlier versions of
	// evilwm (possibly to generate the enter event and handle selecting
	// the client as a result of that), but I don't like it now.

#ifdef WARP_POINTER
	setmouse(newc->window, newc->width + newc->border - 1,
			newc->height + newc->border - 1);
#endif

	discard_enter_events(newc);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x8cf0(%rip), %rbx      # 0xf708
movq (%rbx), %rdi
leaq 0x8cfe(%rip), %r14      # 0xf720
movq (%r14), %rsi
callq 0x8731
movq (%r14), %rcx
movq (%rbx), %rdx
testq %rax, %rax
je 0x6a42
movq (%rax), %rax
movq %rax, %rsi
orq %rcx, %rsi
jne 0x6a44
jmp 0x6aa4
xorl %eax, %eax
testq %rax, %rax
cmoveq %rdx, %rax
testq %rax, %rax
je 0x6aa4
movq 0x8(%rax), %rbx
cmpq %rcx, %rbx
je 0x6aa4
movl 0x20(%rbx), %esi
cmpl $-0x1, %esi
je 0x6a6a
movq 0x10(%rbx), %rdi
cmpl 0x60(%rdi), %esi
jne 0x6a30
cmpl $0x0, 0x94(%rbx)
je 0x6a7d
movq 0x10(%rbx), %rsi
cmpl $0x0, 0x68(%rsi)
je 0x6a30
movq %rbx, %rdi
callq 0x55bc
movq %rbx, %rdi
callq 0x5611
movq %rbx, %rdi
callq 0x5780
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x9911
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/display.c
// Function: display_close
void display_close(void) {
	XSetInputFocus(display.dpy, PointerRoot, RevertToPointerRoot, CurrentTime);

	if (display.font)
		XFreeFont(display.dpy, display.font);

	for (int i = 0; i < display.nscreens; i++) {
		screen_deinit(&display.screens[i]);
		XFreeGC(display.dpy, display.screens[i].invert_gc);
		XInstallColormap(display.dpy, DefaultColormap(display.dpy, i));
		free(display.screens[i].display);
	}

	free(display.screens);

	XCloseDisplay(display.dpy);
	display.dpy = 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x8427(%rip), %rdi      # 0xf728
movl $0x1, %esi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x44c0
movq 0x856f(%rip), %rsi      # 0xf888
testq %rsi, %rsi
je 0x732a
movq 0x8403(%rip), %rdi      # 0xf728
callq 0x4170
cmpl $0x0, 0x857f(%rip)      # 0xf8b0
jle 0x73a4
movl $0x50, %ebx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x8573(%rip), %rdi      # 0xf8b8
addq %r14, %rdi
callq 0x9208
movq 0x83d4(%rip), %rdi      # 0xf728
movq 0x855d(%rip), %rax      # 0xf8b8
movq 0x28(%rax,%r14), %rsi
callq 0x4390
movq 0x83bc(%rip), %rdi      # 0xf728
movq 0xe8(%rdi), %rax
movq (%rax,%rbx), %rsi
callq 0x4590
movq 0x8535(%rip), %rax      # 0xf8b8
movq 0x8(%rax,%r14), %rdi
callq 0x42d0
incq %r15
movslq 0x8519(%rip), %rax      # 0xf8b0
addq $0x78, %r14
subq $-0x80, %rbx
cmpq %rax, %r15
jl 0x733e
movq 0x850d(%rip), %rdi      # 0xf8b8
callq 0x42d0
movq 0x8371(%rip), %rdi      # 0xf728
callq 0x4330
movq $0x0, 0x8361(%rip) # 0xf728
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/display.c
// Function: display_manage_clients
void display_manage_clients(void) {
	for (int i = 0; i < display.nscreens; i++) {
		struct screen *s = &display.screens[i];

		LOG_XENTER("XQueryTree(screen=%d)", i);
		unsigned nwins;
		Window dw1, dw2, *wins;
		XQueryTree(display.dpy, s->root, &dw1, &dw2, &wins, &nwins);
		LOG_XDEBUG("%u windows\n", nwins);
		LOG_XLEAVE();

		// Manage all relevant windows
		for (unsigned j = 0; j < nwins; j++) {
			XWindowAttributes winattr;
			XGetWindowAttributes(display.dpy, wins[j], &winattr);
			// Override redirect implies a pop-up that we should ignore.
			// If map_state is not IsViewable, it shouldn't be shown right
			// now, so don't try to manage it.
			if (!winattr.override_redirect && winattr.map_state == IsViewable)
				client_manage_new(wins[j], s);
		}
		XFree(wins);
	}
}

// Assembly:
cmpl $0x0, 0x84dc(%rip)      # 0xf8b0
jle 0x74a9
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
xorl %ebx, %ebx
leaq 0x8(%rsp), %r15
leaq 0x4(%rsp), %r12
leaq 0x20(%rsp), %r13
movq 0x84b5(%rip), %rbp      # 0xf8b8
imulq $0x78, %rbx, %r14
movq 0x831a(%rip), %rdi      # 0xf728
movq 0x10(%rbp,%r14), %rsi
leaq 0x18(%rsp), %rdx
leaq 0x10(%rsp), %rcx
movq %r15, %r8
movq %r12, %r9
callq 0x4730
cmpl $0x0, 0x4(%rsp)
je 0x747b
addq %r14, %rbp
xorl %r14d, %r14d
movq 0x82ec(%rip), %rdi      # 0xf728
movq 0x8(%rsp), %rax
movq (%rax,%r14,8), %rsi
movq %r13, %rdx
callq 0x4630
cmpl $0x0, 0x98(%rsp)
jne 0x746f
cmpl $0x2, 0x7c(%rsp)
jne 0x746f
movq 0x8(%rsp), %rax
movq (%rax,%r14,8), %rdi
movq %rbp, %rsi
callq 0x6aac
incq %r14
movl 0x4(%rsp), %eax
cmpq %rax, %r14
jb 0x7435
movq 0x8(%rsp), %rdi
callq 0x4050
incq %rbx
movslq 0x8421(%rip), %rax      # 0xf8b0
cmpq %rax, %rbx
jl 0x73fc
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/ewmh.c
// Function: ewmh_set_net_client_list
void ewmh_set_net_client_list(struct screen *s) {
	Window *windows = alloc_window_array();
	int i = 0;
	if (windows) {
		for (struct list *iter = clients_mapping_order; iter; iter = iter->next) {
			struct client *c = iter->data;
			if (c->screen == s) {
				windows[i++] = c->window;
			}
		}
	}
	XChangeProperty(display.dpy, s->root, X_ATOM(_NET_CLIENT_LIST),
			XA_WINDOW, 32, PropModeReplace,
			(unsigned char *)windows, i);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x7d99
testq %rax, %rax
sete %dl
leaq 0x79d9(%rip), %rcx      # 0xf710
movq (%rcx), %rcx
testq %rcx, %rcx
sete %sil
xorl %r10d, %r10d
orb %dl, %sil
jne 0x7d6b
xorl %r10d, %r10d
movq 0x8(%rcx), %rdx
cmpq %rbx, 0x10(%rdx)
jne 0x7d63
movq (%rdx), %rdx
movslq %r10d, %rsi
incl %r10d
movq %rdx, (%rax,%rsi,8)
movq (%rcx), %rcx
testq %rcx, %rcx
jne 0x7d4c
leaq 0x79b6(%rip), %rcx      # 0xf728
movq 0x10(%rbx), %rsi
movq (%rcx), %rdi
movq 0x48(%rcx), %rdx
movl $0x21, %ecx
movl $0x20, %r8d
xorl %r9d, %r9d
pushq %r10
pushq %rax
callq 0x4640
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/ewmh.c
// Function: alloc_window_array
static Window *alloc_window_array(void) {
	unsigned count = 0;
	for (struct list *iter = clients_mapping_order; iter; iter = iter->next) {
		count++;
	}
	if (count == 0) count++;
	// Round up to next block of 128
	count = (count + 127) & ~127;
	window_array = realloc(window_array, count * sizeof(Window));
	return window_array;
}

// Assembly:
pushq %rax
leaq 0x796f(%rip), %rax      # 0xf710
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq (%rax), %rax
incl %esi
testq %rax, %rax
jne 0x7da6
cmpl $0x1, %esi
adcl $0x7f, %esi
andl $-0x80, %esi
movq 0x7b10(%rip), %rdi      # 0xf8d0
shlq $0x3, %rsi
callq 0x46c0
movq %rax, 0x7b00(%rip)      # 0xf8d0
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/mati75[P]evilwm/ewmh.c
// Function: ewmh_set_net_client_list_stacking
void ewmh_set_net_client_list_stacking(struct screen *s) {
	Window *windows = alloc_window_array();
	int i = 0;
	if (windows) {
		for (struct list *iter = clients_stacking_order; iter; iter = iter->next) {
			struct client *c = iter->data;
			if (c->screen == s) {
				windows[i++] = c->window;
			}
		}
	}
	XChangeProperty(display.dpy, s->root, X_ATOM(_NET_CLIENT_LIST_STACKING),
			XA_WINDOW, 32, PropModeReplace,
			(unsigned char *)windows, i);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x7d99
testq %rax, %rax
sete %dl
leaq 0x7930(%rip), %rcx      # 0xf718
movq (%rcx), %rcx
testq %rcx, %rcx
sete %sil
xorl %r10d, %r10d
orb %dl, %sil
jne 0x7e1c
xorl %r10d, %r10d
movq 0x8(%rcx), %rdx
cmpq %rbx, 0x10(%rdx)
jne 0x7e14
movq (%rdx), %rdx
movslq %r10d, %rsi
incl %r10d
movq %rdx, (%rax,%rsi,8)
movq (%rcx), %rcx
testq %rcx, %rcx
jne 0x7dfd
leaq 0x7905(%rip), %rcx      # 0xf728
movq 0x10(%rbx), %rsi
movq (%rcx), %rdi
movq 0x50(%rcx), %rdx
movl $0x21, %ecx
movl $0x20, %r8d
xorl %r9d, %r9d
pushq %r10
pushq %rax
callq 0x4640
addq $0x10, %rsp
popq %rbx
retq